/*
 * Theme six — "Greenery Portrait"
 * Fresh sage paper, watercolour eucalyptus, a portrait in a hexagon.
 * Every rule is scoped to .theme-six (cover is teleported, so it carries the class too).
 */

.theme-six {
	--th-bg: #f7f8f4;
	--th-bg-deep: #eef1ea;
	--th-bg-soft: #e3eadf;
	--th-gold: #3f6b4f;
	--th-gold-strong: #2f5a3f;
	--th-gold-line: rgba(36, 51, 42, 0.16);
	--th-ivory: #24332a;
	--th-muted: #5f6d63;
	--th-panel: rgba(255, 255, 255, 0.82);

	/* Reusable cards stay ivory on velvet; accent uses the sage ink */
	--inv-accent: #3f6b4f;
	--inv-accent-hover: #f7f8f4;
	--inv-border: #dfe7dc;
	--inv-border-strong: #c5d4c4;
	--inv-tint: #f0f4ee;
	--inv-surface: #ffffff;
	--inv-shadow: #24332a;

	width: 100%;
	color: var(--th-ivory);
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 0.95rem;
	line-height: 1.8;
	background-color: var(--th-bg);
	background-image: url('images/paper.svg');
	-webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

.theme-six h1,
.theme-six h2,
.theme-six h3,
.theme-six .caption,
.theme-six .six-display {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.theme-six .six-italic {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}

.theme-six .six-eyebrow {
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.34em;
	line-height: 1.7;
	text-transform: uppercase;
	color: var(--th-gold);
}

.theme-six .text-secondary {
	color: var(--th-gold) !important;
}

.theme-six .six-muted {
	color: var(--th-muted);
}

.theme-six .six-gold {
	color: var(--th-gold);
}

/* ---------- Layout ---------- */

.theme-six .container {
	max-width: 30rem !important;
	margin-inline: auto;
	padding-inline: 1.5rem;
	text-align: center;
}

.theme-six .six-section {
	position: relative;
	padding-block: 4.5rem;
}

.theme-six .six-band {
	background:
		url('images/paper.svg'),
		radial-gradient(90% 50% at 50% 0%, rgba(127, 162, 135, 0.08), transparent 70%),
		linear-gradient(180deg, var(--th-bg) 0%, var(--th-bg-deep) 15%, var(--th-bg-deep) 85%, var(--th-bg) 100%);
}

.theme-six .six-panel {
	position: relative;
	border: 1px solid var(--th-gold-line);
	border-radius: 0.25rem;
	background: var(--th-panel);
	box-shadow: 0 24px 48px -32px rgba(36, 51, 42, 0.35);
}

.theme-six .six-panel::before {
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(127, 162, 135, 0.16);
	content: '';
	pointer-events: none;
}

/* ---------- Section heading ---------- */

.theme-six .six-heading {
	margin-bottom: 2.25rem;
	text-align: center;
}

.theme-six .six-heading__title {
	margin-top: 0.4rem;
	font-size: 1.75rem;
	color: var(--th-ivory);
}

.theme-six .six-heading__rule {
	display: block;
	width: 4.5rem;
	height: auto;
	margin: 0.9rem auto 0;
}

/* ---------- Hero & cover ---------- */

.theme-six .six-hero {
	position: relative;
	display: flex;
	min-height: 100dvh;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 5.5rem 1.75rem 6rem;
	text-align: center;
	background:
		url('images/paper.svg'),
		radial-gradient(60% 40% at 50% 42%, rgba(127, 162, 135, 0.14), transparent 70%),
		linear-gradient(180deg, var(--th-bg-deep) 0%, var(--th-bg) 50%, var(--th-bg-deep) 100%);
}

.theme-six .six-portal {
	position: relative;
	z-index: 3;
	display: flex;
	width: 100%;
	max-width: 20rem;
	flex-direction: column;
	align-items: center;
	padding: 1rem 0.5rem;
}

.theme-six .six-hex {
	position: relative;
	width: min(66vw, 15.5rem);
	aspect-ratio: 847 / 876;
}

.theme-six .six-hex__photo {
	position: absolute;
	inset: 13% 13% 14% 14%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(160deg, #e3eadf, #c5d4c4);
	clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.theme-six .six-hex__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.theme-six .six-hex__initials {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 2.75rem;
	font-style: italic;
	color: var(--th-gold);
}

.theme-six .six-hex__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.theme-six .six-ornament {

	width: 9.5rem;
	height: auto;
	opacity: 0.85;
}

.theme-six .six-names {
	margin-top: 1.1rem;
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(2.5rem, 11.5vw, 3rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: 0;
	color: var(--th-ivory);
	text-wrap: balance;
}

.theme-six .six-names .six-amp {
	display: block;
	margin-block: 0.05rem;
	font-size: 0.6em;
	color: var(--th-gold);
}

.theme-six .six-date {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.35rem;
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--th-gold);
}

.theme-six .six-date i {
	width: 1px;
	height: 1.1rem;
	background: var(--th-gold-line);
}

.theme-six .six-guest {
	width: 100%;
	margin-top: 1.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--th-gold-line);
}

.theme-six .six-guest__name {
	margin-top: 0.25rem;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--th-ivory);
}

.theme-six .six-guest__address {
	font-size: 0.85rem;
	font-style: italic;
	color: var(--th-muted);
}

.theme-six .six-btn {
	position: relative;
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 1.5rem;
	padding: 0.75rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #7fa287 0%, var(--th-gold) 50%, var(--th-gold-strong) 100%);
	box-shadow:
		0 14px 30px -14px rgba(127, 162, 135, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
	color: var(--th-bg-deep);
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.25s ease;
}

.theme-six .six-btn::before {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	content: '';
	animation: six-ripple 2.6s ease-out infinite;
}

.theme-six .six-btn:hover {
	transform: translateY(-2px);
}

.theme-six .six-btn:focus-visible {
	outline: 2px solid var(--th-gold);
	outline-offset: 4px;
}

@keyframes six-ripple {
	0% {
		box-shadow: 0 0 0 0 rgba(127, 162, 135, 0.4);
	}

	70%,
	100% {
		box-shadow: 0 0 0 16px rgba(127, 162, 135, 0);
	}
}

.theme-six .six-btn-outline {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.5rem;
	padding-inline: 1.25rem;
	border: 1px solid var(--th-gold-line);
	border-radius: 999px;
	color: var(--th-gold);
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition:
		background 0.25s ease,
		color 0.25s ease;
}

.theme-six .six-btn-outline:hover {
	background: var(--th-gold);
	color: var(--th-bg-deep);
}

.theme-six .six-scroll-cue {
	position: absolute;
	bottom: calc(6.25rem + env(safe-area-inset-bottom));
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--th-gold);
	transform: translateX(-50%);
}

.theme-six .six-scroll-cue svg {
	animation: six-bob 2.2s ease-in-out infinite;
}

@keyframes six-bob {
	50% {
		translate: 0 5px;
	}
}

@media (max-height: 760px) {
	.theme-six .six-hero {
		padding-block: 4rem;
	}

	.theme-six .six-portal {
		padding-block: 2.25rem 1.6rem;
	}

	.theme-six .six-crest {
		width: 3.5rem;
	}

	.theme-six .six-names {
		margin-top: 0.75rem;
		font-size: clamp(1.9rem, 9vw, 2.25rem);
	}

	.theme-six .six-date,
	.theme-six .six-guest,
	.theme-six .six-btn {
		margin-top: 1rem;
	}

	.theme-six .six-corner {
		width: min(40%, 9rem);
	}
}

/* Cover overlay — fixed, teleported to <body> */
.theme-six.theme-six-cover {
	position: fixed;
	top: 0;
	left: 50%;
	z-index: 99999;
	width: 100%;
	max-width: 430px;
	height: 100dvh;
	overflow: hidden;
	background: var(--th-bg);
	transform: translateX(-50%) translateY(0);
	transition:
		transform 1s cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 0s;
}

.theme-six.theme-six-cover .six-hero {
	height: 100dvh;
}

.theme-six.theme-six-cover.is-open {
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(-100%);
	transition:
		transform 1s cubic-bezier(0.77, 0, 0.18, 1),
		visibility 0s linear 1s;
}

/* ---------- Line-art botanicals (Florals.vue) ---------- */

.theme-six .six-corner {
	position: absolute;
	z-index: 2;
	width: min(44%, 11rem);
	height: auto;
	pointer-events: none;
	opacity: 0;
	animation:
		six-corner-in 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) var(--six-delay, 0.4s) forwards,
		six-sway 10s ease-in-out calc(var(--six-delay, 0.4s) + 1.4s) infinite;
}

.theme-six .six-corner--tl {
	top: -0.5rem;
	left: -0.75rem;
	transform-origin: top left;
	--six-from: -16px -16px;
}

.theme-six .six-corner--tr {
	top: -0.5rem;
	right: -0.75rem;
	transform-origin: top right;
	--six-from: 16px -16px;
}

.theme-six .six-corner--bl {
	bottom: -0.5rem;
	left: -0.75rem;
	transform-origin: bottom left;
	--six-from: -16px 16px;
	--six-delay: 0.6s;
}

.theme-six .six-corner--br {
	right: -0.75rem;
	bottom: -0.5rem;
	transform-origin: bottom right;
	--six-from: 16px 16px;
	--six-delay: 0.6s;
}

@keyframes six-corner-in {
	from {
		opacity: 0;
		translate: var(--six-from);
	}

	to {
		opacity: 0.9;
		translate: 0 0;
	}
}

@keyframes six-sway {
	50% {
		transform: rotate(1.5deg);
	}
}

/* ---------- Drifting petals (Petals.vue) ---------- */

.theme-six .six-dust {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.theme-six .six-dust span {
	position: absolute;
	top: -6%;
	left: var(--dust-x);
	width: calc(var(--dust-size) * 2.2);
	height: calc(var(--dust-size) * 1.6);
	border-radius: 80% 0 80% 0;
	background: linear-gradient(135deg, #b9cfb4, #6f9a77);
	opacity: 0;
	animation: six-fall var(--dust-duration) linear var(--dust-delay) infinite;
}

@keyframes six-fall {
	0% {
		opacity: 0;
		transform: translate(0, 0) rotate(0deg);
	}

	12%,
	80% {
		opacity: var(--dust-opacity);
	}

	100% {
		opacity: 0;
		transform: translate(var(--dust-drift), 105dvh) rotate(320deg);
	}
}

/* ---------- Information ---------- */

.theme-six .information-content .caption-notes {
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	color: var(--th-ivory);
}

.theme-six .information-content .content-notes {
	color: var(--th-muted);
	line-height: 1.85;
}

/* ---------- Profile — arch portrait ---------- */

.theme-six .six-arch {
	position: relative;
	width: 12.5rem;
	margin: 0 auto 1.75rem;
}

.theme-six .six-arch__photo {
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: 999px 999px 1.25rem 1.25rem;
	box-shadow: 0 22px 40px -26px rgba(36, 51, 42, 0.55);
}

.theme-six .six-arch__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.theme-six .six-couple-amp {
	margin-block: 1.5rem;
	font-family: 'Fraunces', Georgia, serif;
	font-size: 3.5rem;
	font-style: italic;
	line-height: 1;
	color: var(--th-gold);
}

/* ---------- Agenda ---------- */

.theme-six .six-event {
	position: relative;
	overflow: hidden;
	padding: 2.5rem 1.5rem 2.25rem;
	border: 1px solid #dfe7dc;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 22px 40px -30px rgba(36, 51, 42, 0.5);
}

.theme-six .six-event__sprig {
	position: absolute;
	width: 6rem;
	pointer-events: none;
}

.theme-six .six-event__sprig--tl {
	top: -0.5rem;
	left: -0.5rem;
}

.theme-six .six-event__sprig--br {
	right: -0.5rem;
	bottom: -0.5rem;
}

.theme-six .six-event__title {
	font-size: 1.85rem;
	font-style: italic;
	color: var(--th-ivory);
}

/* ---------- Countdown — eucalyptus diamonds ---------- */

.theme-six .six-countbar {
	display: flex;
	justify-content: center;
	gap: 0.15rem;
}

.theme-six .six-countbar > div {
	position: relative;
	isolation: isolate;
	display: flex;
	width: 5rem;
	height: 5rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.theme-six .six-countbar > div::before {
	position: absolute;
	inset: 0.75rem;
	z-index: -1;
	border: 1px solid #c5d4c4;
	border-radius: 0.6rem;
	background: #fff;
	box-shadow: 0 12px 24px -18px rgba(36, 51, 42, 0.55);
	content: '';
	transform: rotate(45deg);
}

.theme-six .six-countbar > div:nth-child(even)::before {
	background: #f0f4ee;
}

.theme-six .six-count__value {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.45rem;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: 1;
	color: var(--th-gold);
}

.theme-six .six-count__label {
	margin-top: 0.2rem;
	font-size: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--th-muted);
}

/* ---------- Gallery & video ---------- */

.theme-six .six-photo {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--th-bg-soft);
	box-shadow: 0 14px 28px -20px rgba(36, 51, 42, 0.45);
}

.theme-six .six-photo::after {
	position: absolute;
	inset: 0;
	border: 0;
	content: '';
	pointer-events: none;
}

.theme-six .videoWrapper {
	position: relative;
	height: 0;
	margin-bottom: 1rem;
	padding-bottom: 56.25%;
	overflow: hidden;
	border: 1px solid var(--th-gold-line);
	border-radius: 0.25rem;
}

.theme-six .videoWrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ---------- Closing ---------- */

.theme-six .six-closing {
	position: relative;
	overflow: hidden;
	padding: 4rem 1.75rem 9rem;
	text-align: center;
	background:
		url('images/paper.svg'),
		radial-gradient(70% 45% at 50% 40%, rgba(127, 162, 135, 0.12), transparent 70%),
		var(--th-bg-deep);
}

.theme-six .six-closing .six-corner {
	opacity: 0.85;
	animation: none;
}

.theme-six footer {
	background: url('images/paper.svg'), var(--th-bg-deep);
	color: var(--th-muted);
}

/* ---------- Scroll reveal ---------- */

.theme-six .aos-init {
	opacity: 0 !important;
	pointer-events: none;
}

.theme-six .aos-init[data-aos='fade-up'] {
	transform: translate3d(0, 2rem, 0);
}

.theme-six .aos-init[data-aos='zoom-in'] {
	transform: scale3d(0.92, 0.92, 0.92);
}

@media (prefers-reduced-motion: reduce) {
	.theme-six .aos-init {
		opacity: 1 !important;
		pointer-events: auto;
		transform: none !important;
	}

	.theme-six .six-corner {
		opacity: 0.9;
		animation: none;
	}

	.theme-six .six-dust {
		display: none;
	}

	.theme-six .six-btn::before,
	.theme-six .six-scroll-cue svg {
		animation: none;
	}

	.theme-six.theme-six-cover,
	.theme-six.theme-six-cover.is-open {
		transition: none;
	}
}
