/* Scene layouts, shared by site/ and video/. This is the settled (final-frame) state;
   motion lives in the site script and the video compositions.
   Sizes use var(--u) from tokens.css, so one stylesheet serves 390x844, desktop and 1080x1920.
   Rule: no text-transform or font-variant caps anywhere (on-screen text must match the brief exactly). */

.scene {
	position: relative;
	overflow: hidden;
	overflow: clip; /* hidden still lets focus/scrollIntoView scroll the box; clip cannot be scrolled */
	container-type: size;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--font-serif);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

/* Paper grain + soft light, on every scene */
.scene::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / .55), transparent 60%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
	z-index: 0;
}

.scene__fx { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.scene__deco { position: absolute; pointer-events: none; z-index: 0; }

.scene__inner {
	position: relative;
	z-index: 2;
	height: 100%;
	width: min(100%, calc(100 * var(--u)));
	margin: 0 auto;
	padding: var(--sp-4) var(--sp-3);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--sp-1);
}

/* ---------- Type ---------- */
.t-deva { font-family: var(--font-deva); font-size: var(--fs-deva); color: var(--gold-ink); letter-spacing: .03em; margin: 0; }
.t-name { font-family: var(--font-script); font-size: var(--fs-name); color: var(--gold-ink); line-height: 1.15; font-weight: 400;
	/* Room for Imperial's overhanging swashes (background-clip: text paints only inside the border box); layout-neutral */
	padding: .12em .34em .24em; margin: -.12em -.34em -.24em; }
/* Imperial Script's own ampersand is part of the royal look (the owner's pick); a touch smaller than the names */
.t-name .amp { font-size: .8em; padding: 0 .04em; }
.t-title { font-family: var(--font-title); font-size: var(--fs-title); font-weight: 600; letter-spacing: .05em; line-height: 1.15; margin: 0; color: var(--gold-ink); }
.t-lead { font-size: var(--fs-lead); font-style: italic; line-height: 1.32; margin: 0; }
.t-body { font-size: var(--fs-body); line-height: 1.4; margin: 0; }
.t-small { font-size: var(--fs-small); line-height: 1.4; margin: 0; letter-spacing: .01em; }
.t-weds { font-size: var(--fs-lead); font-style: italic; color: var(--gold-ink); margin: var(--sp-1) 0; }
.t-label { font-family: var(--font-title); font-size: var(--fs-small); font-weight: 600; letter-spacing: .22em; color: var(--gold-ink); margin: 0; }

/* Gold rule with a centre diamond */
.rule {
	position: relative;
	width: calc(34 * var(--u));
	height: var(--sp-2);
	margin: var(--sp-1) 0;
	flex: none;
	background: linear-gradient(var(--gold), var(--gold)) left center / 42% var(--line) no-repeat,
		linear-gradient(var(--gold), var(--gold)) right center / 42% var(--line) no-repeat;
}
.rule::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(2 * var(--u));
	height: calc(2 * var(--u));
	border: var(--line) solid var(--gold);
	translate: -50% -50%;
	rotate: 45deg;
}

/* ---------- Couple images (transparent PNGs) + placeholder ---------- */
.couple-img { position: relative; display: grid; place-items: end center; }
/* The img overflows its box (in a grid auto row height: 100% never resolves): cut it at the sill only, so the feet never
   reach the words and tap hearts and halos above stay whole. One rule for every couple slide. */
.couple-img { clip-path: inset(-100% -100% 0 -100%); }
.couple-img img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }
.couple-img.is-missing img { display: none; }
.couple-img.is-missing::after {
	content: "PLACEHOLDER\A" attr(data-file);
	white-space: pre;
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border: var(--line) dashed currentColor;
	border-radius: calc(2 * var(--u));
	font: 600 var(--fs-small) / 1.5 var(--font-serif);
	letter-spacing: .08em;
	color: var(--gold-ink);
	background: rgb(255 255 255 / .35);
}

/* Arched portrait window */
.arch {
	position: relative;
	width: calc(64 * var(--u));
	height: calc(82 * var(--u));
	flex: none;
}
.arch::before,
.arch::after {
	content: "";
	position: absolute;
	border-radius: 999px 999px calc(1 * var(--u)) calc(1 * var(--u));
}
.arch::before { inset: 4% 7% 0; background: var(--powder-soft); border: var(--line) solid var(--gold); }
.arch::after { inset: calc(4% - 1.4 * var(--u)) calc(7% - 1.4 * var(--u)) calc(-1.4 * var(--u)); border: calc(var(--line) * .7) solid var(--gold); opacity: .6; }
.arch .couple-img { position: absolute; inset: 0 0 0; z-index: 1; }

/* ---------- Event details ---------- */
.details { list-style: none; margin: var(--sp-1) 0 0; padding: 0; display: grid; gap: calc(1.2 * var(--u)); justify-items: center; }
/* Icon flows inline with the first word, so a line that wraps keeps its icon beside the text */
.details li { font-size: var(--fs-body); line-height: 1.3; text-align: center; }
.details .ic { display: inline-block; vertical-align: -.16em; margin-right: calc(1.8 * var(--u)); width: calc(4 * var(--u)); height: calc(4 * var(--u)); color: var(--gold); }
.details .dress { font-style: italic; margin-top: calc(.6 * var(--u)); }

/* Website-only UI (removed from the video) */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1); margin-top: var(--sp-2); }
.btn {
	display: inline-flex;
	align-items: center;
	gap: calc(1.2 * var(--u));
	min-height: 44px;
	padding: 0 calc(3.4 * var(--u));
	border: var(--line) solid var(--gold);
	border-radius: 999px;
	background: rgb(255 255 255 / .5);
	color: var(--gold-ink);
	font: 600 var(--fs-small) / 1 var(--font-serif);
	letter-spacing: .03em;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s var(--ease-gentle), color .3s var(--ease-gentle), scale 120ms var(--ease-out);
}
.btn:focus-visible { background: var(--gold-ink); color: var(--ivory); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--gold-ink); color: var(--ivory); } }
.btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.btn .ic { width: calc(3.8 * var(--u)); height: calc(3.8 * var(--u)); }

/* ---------- Particles (positions from tools/particles.py) ---------- */
.petal, .bubble, .sparkle { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); display: block; }
.petal { width: calc(var(--s) * var(--u)); aspect-ratio: 40 / 52; background: center / contain no-repeat; opacity: .6; }
.petal--blush { background-image: url("svg/petal-blush.svg"); }
.petal--white { background-image: url("svg/petal-white.svg"); }
.petal--red { background-image: url("svg/petal-red.svg"); }
.petal--marigold { background-image: url("svg/petal-marigold.svg"); }
.bubble {
	width: calc(var(--s) * var(--u));
	aspect-ratio: 1;
	border-radius: 50%;
	border: var(--line) solid rgb(226 196 99 / .7);
	background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / .55), rgb(226 196 99 / .08) 60%);
}
.sparkle {
	width: calc(var(--s) * var(--u));
	aspect-ratio: 1;
	background: var(--gold-light);
	clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
	filter: drop-shadow(0 0 calc(.8 * var(--u)) rgb(226 196 99 / .8));
}

/* ================= Scene 1: Opening ================= */
.s-opening {
	background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 52%, color-mix(in srgb, var(--powder) 55%, var(--ivory)) 100%);
}
.s-opening .corner { width: calc(90 * var(--u)); opacity: .3; }
.s-opening .corner--tl { left: calc(-45 * var(--u)); top: calc(-45 * var(--u)); }
.s-opening .corner--br { right: calc(-45 * var(--u)); bottom: calc(-45 * var(--u)); }
.s-opening .ganesha { position: relative; width: calc(34 * var(--u)); flex: none; }
.s-opening .ganesha img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 calc(1 * var(--u)) calc(2.5 * var(--u)) rgb(110 70 10 / .3)); }
.s-opening :is(.blessings, .elders, .elders-sub) { margin: 0; }
.s-opening .blessings { font: italic 500 var(--fs-small) / 1.3 var(--font-serif); color: var(--gold-ink); letter-spacing: .05em; }
.s-opening .elders { font: 600 var(--fs-lead) / 1.2 var(--font-serif); color: var(--ink); letter-spacing: .02em; margin-top: calc(.6 * var(--u)); }
.s-opening .elders-sub { font: italic 500 var(--fs-small) / 1.3 var(--font-serif); color: var(--ink); margin-bottom: var(--sp-2); }
.s-opening .t-deva { margin-bottom: var(--sp-2); }
.s-opening .lines { display: grid; gap: var(--sp-1); justify-items: center; }
.s-opening .t-name { font-size: calc(20 * var(--u)); margin: calc(var(--sp-1) - .12em) -.34em calc(var(--sp-1) - .24em); } /* the .t-name swash insets folded in */
.s-opening .date-line { font-family: var(--font-title); font-size: calc(4.4 * var(--u)); font-weight: 500; color: var(--gold-ink); letter-spacing: .06em; margin-top: var(--sp-2); }

.envelope { position: relative; width: calc(80 * var(--u)); aspect-ratio: 320 / 220; flex: none; perspective: 1400px; }
.envelope img { position: absolute; display: block; width: 100%; }
.envelope__back, .envelope__pocket { inset: 0; height: 100%; }
.envelope__flap { left: 0; top: 0; width: 100%; height: 66.4%; transform-origin: 50% 0; transform-style: preserve-3d; }
.envelope__flap img { inset: 0; height: 100%; backface-visibility: hidden; }
/* rotateY, not rotateX: after the flap's own 180deg turn the liner then points up, as a real opened flap does */
.envelope__flap .liner { transform: rotateY(180deg); }
.envelope__seal { width: 22% !important; left: 39%; top: 46%; filter: drop-shadow(0 calc(.6 * var(--u)) calc(1.2 * var(--u)) rgb(120 90 10 / .35)); }
.tap-hint { font-size: var(--fs-small); font-style: italic; color: var(--gold-ink); letter-spacing: .08em; margin-top: var(--sp-2); }

/* ================= Scene 2: The couple ================= */
.s-couple .t-name { font-size: calc(17 * var(--u)); }
.s-couple .arch { height: calc(52 * var(--u)); width: calc(45 * var(--u)); margin-bottom: var(--sp-1); } /* phones: room for the crest above the arch and the hashtag below */
.s-couple .parents { font-size: var(--fs-small); font-style: italic; color: var(--ink); max-width: calc(80 * var(--u)); }
.s-couple .quote { margin-top: var(--sp-3); max-width: calc(78 * var(--u)); color: var(--ink); }

/* ================= Event cards (Scenes 3-5) ================= */
.event .couple-img { width: calc(70 * var(--u)); height: calc(66 * var(--u)); flex: none; margin-bottom: var(--sp-1); }
.event .tagline { max-width: calc(80 * var(--u)); }

/* Scene 3: Haldi. Powder blue, never yellow. */
.s-haldi { background: linear-gradient(180deg, color-mix(in srgb, var(--powder) 70%, #fff) 0%, var(--powder) 100%); }
.s-haldi .t-title { color: var(--powder-ink); }
.s-haldi .btn { background: rgb(255 255 255 / .55); color: var(--powder-ink); border-color: var(--powder-ink); }
.s-haldi .btn:focus-visible { background: var(--powder-ink); color: var(--ivory); outline-color: var(--powder-ink); }
@media (hover: hover) and (pointer: fine) { .s-haldi .btn:hover { background: var(--powder-ink); color: var(--ivory); } }
.s-haldi .couple-img { color: var(--powder-ink); }
/* Sehra Bandi: one tall portrait, so a taller box, and the image held inside it (an auto grid track would let it overflow) */
.s-sehra .couple-img { grid-template: 100% / 100%; width: calc(60 * var(--u)); height: calc(88 * var(--u)); }
.s-haldi .couple-img.is-missing::after { color: var(--powder-ink); }

/* Scene 4: Cocktail. The ONLY place midnight blue is used. */
.s-cocktail { background: radial-gradient(120% 80% at 50% 30%, #24365C 0%, var(--midnight) 70%); color: var(--ivory); }
.s-cocktail::before { opacity: .5; }
.s-cocktail .t-title { background: var(--foil-light, var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; font-kerning: none; filter: drop-shadow(0 calc(.5 * var(--u)) calc(1.6 * var(--u)) rgb(0 0 0 / .5)); }
/* Split for the marquee (marqueeIn, never reverted): the h2 drops its foil and each char paints its slice of the same box-sized band */
.s-cocktail .t-title.is-split { background: none; }
.s-cocktail .t-title .mq-char { background: var(--foil-light, var(--gold-light)) calc(-1 * var(--ox)) calc(-1 * var(--oy)) / var(--tw) var(--th) no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-cocktail .scene__fx .sparkle { filter: none; } /* the static drop-shadow re-rastered on every twinkle scale frame */
.s-cocktail .t-lead { color: var(--ivory); }
.s-cocktail .details .ic { color: var(--gold-light); }
.s-cocktail .rule { background: linear-gradient(var(--gold-light), var(--gold-light)) left center / 42% var(--line) no-repeat, linear-gradient(var(--gold-light), var(--gold-light)) right center / 42% var(--line) no-repeat; }
.s-cocktail .rule::after { border-color: var(--gold-light); }
.s-cocktail .frame { position: relative; width: calc(66 * var(--u)); aspect-ratio: 300 / 420; flex: none; margin-bottom: var(--sp-1); max-height: 44cqh; }
.s-cocktail .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-cocktail .frame .couple-img { position: absolute; inset: 9% 9% 4%; width: auto; height: auto; color: var(--gold-light); }
.s-cocktail .couple-img.is-missing::after { color: var(--gold-light); background: rgb(255 255 255 / .04); }
.s-cocktail .btn { color: var(--gold-light); border-color: var(--gold-light); background: rgb(255 255 255 / .04); }
.s-cocktail .btn:focus-visible { background: var(--gold-light); color: var(--midnight); }
@media (hover: hover) and (pointer: fine) { .s-cocktail .btn:hover { background: var(--gold-light); color: var(--midnight); } }

/* Scene 5: Wedding */
/* The Wedding at night: firelit mandap, light text with warm maroon halos (midnight blue stays Scene 4's) */
.s-wedding { background: radial-gradient(120% 80% at 50% 35%, #4A1A22 0%, #23090F 75%); color: var(--ivory); }
.s-wedding .t-title { color: var(--gold-light); }
.s-wedding :is(.t-lead, .details li) { color: var(--ivory); }
.s-wedding .details .ic { color: var(--gold-light); }
.s-wedding .rule { background: linear-gradient(var(--gold-light), var(--gold-light)) left center / 42% var(--line) no-repeat, linear-gradient(var(--gold-light), var(--gold-light)) right center / 42% var(--line) no-repeat; }
.s-wedding .rule::after { border-color: var(--gold-light); }
.s-wedding .btn { color: var(--gold-light); border-color: var(--gold-light); background: rgb(255 255 255 / .05); }
.s-wedding .btn:focus-visible { background: var(--gold-light); color: #3A0E16; }
@media (hover: hover) and (pointer: fine) { .s-wedding .btn:hover { background: var(--gold-light); color: #3A0E16; } }
.s-wedding .mandap .couple-img--pheras { opacity: 0; visibility: hidden; }
.s-wedding .mandap { position: relative; width: calc(88 * var(--u)); aspect-ratio: 400 / 446; flex: none; max-height: 46cqh; margin-bottom: var(--sp-1); }
.s-wedding .mandap .couple-img { position: absolute; left: 28%; right: 28%; top: 33%; bottom: 8.6%; width: auto; height: auto; }
/* The fire's light and the seven vows sit at the havan kund of pheras.webp (a square drawn width-limited and bottom-aligned
   in the couple box: fire at 48% / 85% of the square, vow ring at 48% / 88%), in .mandap percent; centred with margins */
.s-wedding .agni { position: absolute; left: 48.2%; top: 87.6%; width: 52%; aspect-ratio: 1; margin: -26% 0 0 -26%; opacity: 0; visibility: hidden; pointer-events: none; }
.agni__glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 214 140 / .85), rgb(255 140 50 / .4) 40%, rgb(185 29 3 / 0)); }
.s-wedding .vow { position: absolute; left: 48.2%; top: 90.1%; width: calc(2.6 * var(--u)); aspect-ratio: 1; margin: calc(-1.3 * var(--u)) 0 0 calc(-1.3 * var(--u)); border-radius: 50%; background: radial-gradient(circle, #FFF8E1 0 18%, rgb(244 226 161 / .85) 34%, rgb(226 196 99 / 0) 68%); opacity: 0; pointer-events: none; }

/* Scene 6: Venue */
.s-venue .resort { position: relative; width: calc(92 * var(--u)); aspect-ratio: 400 / 300; flex: none; margin-bottom: var(--sp-2); }
.s-venue .resort > img { width: 100%; height: 100%; display: block; }
.s-venue .pin { position: absolute; left: 50%; top: 2%; width: 11%; translate: -50% 0; }
.s-venue .pin img { width: 100%; display: block; filter: drop-shadow(0 calc(1 * var(--u)) calc(1 * var(--u)) rgb(120 90 10 / .3)); }
.s-venue .t-title { margin-bottom: var(--sp-1); }
.s-venue .address { font-style: italic; }
.s-venue .map { width: calc(88 * var(--u)); height: calc(54 * var(--u)); border: var(--line) solid var(--gold); border-radius: calc(2 * var(--u)); margin-top: var(--sp-2); flex: none; overflow: hidden; background: var(--powder-soft); }
.s-venue .map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.25) saturate(.8); }

/* Scene 7: Closing and RSVP */
.s-closing .halo { position: relative; width: calc(46 * var(--u)); height: calc(48 * var(--u)); flex: none; margin-bottom: var(--sp-1); }
.s-closing .halo .mandala { position: absolute; width: calc(104 * var(--u)); left: 50%; top: 46%; translate: -50% -50%; opacity: .5; }
.s-closing .halo .couple-img { position: absolute; inset: 0; }
.s-closing .closing-line { max-width: calc(80 * var(--u)); }
.s-closing .with-love { font-style: italic; margin-top: var(--sp-1); }
.s-closing .t-name { font-size: calc(17 * var(--u)); }
.s-closing .t-label { margin-top: var(--sp-2); }
.s-closing .rsvp { list-style: none; padding: 0; margin: 0; display: grid; gap: calc(1.6 * var(--u)); justify-items: center; }
.s-closing .rsvp a, .s-closing .rsvp span { font-size: var(--fs-body); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: calc(1.6 * var(--u)); }
.s-closing .rsvp a { min-height: 44px; padding: 0 calc(4.5 * var(--u)); border: var(--line) solid var(--gold); border-radius: 999px; background: rgb(255 255 255 / .55); transition: background-color .3s var(--ease-gentle), color .3s var(--ease-gentle), scale 120ms var(--ease-out); }
.s-closing .rsvp a .ic { width: calc(4.2 * var(--u)); height: calc(4.2 * var(--u)); color: var(--gold-ink); }
.s-closing .rsvp a:focus-visible { background: var(--gold-ink); color: var(--ivory); }
.s-closing .rsvp a:focus-visible .ic { color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
	.s-closing .rsvp a:hover { background: var(--gold-ink); color: var(--ivory); }
	.s-closing .rsvp a:hover .ic { color: var(--ivory); }
}
.s-closing .rsvp a:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* ================= Scene 1 cover: a full-screen photoreal envelope that opens to the invitation =================
   Photo + wax seal generated in ChatGPT (shared/photo). Flap and pocket are cut from the SAME photo with one
   polygon measured on it (outer lace edge: sides at 16.5%, tip at 50% / 61.5%), so they meet seamlessly at rest.
   Sequence (site: on tap; video: on its own): press, lift (the seal rises; its shadow stays on the paper), open (the flap
   folds up on a 3D hinge), bloom (light rays + confetti + gold dust, flash to ivory), hero (the invitation rises). */
.cover { position: absolute; inset: 0; z-index: 20; overflow: hidden; overflow: clip; background: #EFE6D3 url("svg/lace.svg") center / calc(15 * var(--u)) calc(15 * var(--u));
	/* the whole envelope is the tap target: no long-press callout, no label selection (the tap highlight is off on html) */
	cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.cover > * { position: absolute; }
.cover img, .cover svg { pointer-events: none; -webkit-user-drag: none; } /* no ghost-image drags; events land on the wrappers */
/* Cover-fit the photo and pin the flap tip (61.5% of the photo) at 60% of the frame: on a phone this is the whole
   envelope (wide screens: site.css fits it to the height). 0.8232 = 0.615 * 1451 / 1084.
   Its background is the envelope's inside, seen once the flap folds. */
.cover__photo { --pw: max(100cqw, calc(100cqh * 1084 / 1451)); left: 50%; width: var(--pw); aspect-ratio: 1084 / 1451; top: calc(60cqh - var(--pw) * 0.8232); translate: -50% 0; background: radial-gradient(70% 45% at 50% 42%, #FFFBF0 0%, #EAF1F7 45%, #C9D9E6 100%);
	--sw: min(32%, 46cqh); /* seal width, shared with its shadow; the % resolves at each use against the photo */ }
.cover__photo > * { position: absolute; }
.cover__pocket { inset: 0; width: 100%; height: 100%; clip-path: polygon(0 16.5%, 50% 61.5%, 100% 16.5%, 100% 100%, 0 100%); z-index: 1; }
.cover__glow {
	left: 50%; top: 42%;
	width: calc(170 * var(--u)); aspect-ratio: 1;
	margin: calc(-85 * var(--u)) 0 0 calc(-85 * var(--u));
	border-radius: 50%;
	background: radial-gradient(circle, #FFFFFF 0%, rgb(255 252 240 / .96) 22%, rgb(255 244 214 / .55) 45%, rgb(255 244 214 / 0) 70%);
	opacity: 0;
	z-index: 0;
}
.cover__rays {
	left: 50%; top: 44%;
	width: calc(220 * var(--u)); aspect-ratio: 1;
	margin: calc(-110 * var(--u)) 0 0 calc(-110 * var(--u));
	border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, rgb(255 246 214 / 0) 0deg 6deg, rgb(255 246 214 / .7) 9deg, rgb(255 246 214 / 0) 12deg 18deg);
	-webkit-mask-image: radial-gradient(circle, #000 0 12%, rgb(0 0 0 / .6) 30%, transparent 62%);
	mask-image: radial-gradient(circle, #000 0 12%, rgb(0 0 0 / .6) 30%, transparent 62%);
	opacity: 0;
	z-index: 2;
}
.cover__confetti { left: 50%; top: 50%; width: 0; height: 0; z-index: 3; }
.confetti { position: absolute; left: 0; top: 0; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); border-radius: 1px; opacity: 0; }
.confetti:nth-child(6n + 1) { background: linear-gradient(135deg, #E9CF78, #B8901F); }
.confetti:nth-child(6n + 2) { background: #BCD4E6; }
.confetti:nth-child(6n + 3) { background: #F3C9C6; }
.confetti:nth-child(6n + 4) { background: linear-gradient(135deg, #F4E2A1, #C9A227); }
.confetti:nth-child(6n + 5) { background: #8B1E2D; border-radius: 50%; }
.confetti:nth-child(6n + 6) { background: #FFFFFF; box-shadow: 0 0 0 .5px rgb(201 162 39 / .5); }
.cover__dust { inset: 0; z-index: 3; pointer-events: none; }
.cover__dust .sparkle { opacity: 0; }
.cover__flap { inset: 0; z-index: 4; transform-origin: 50% 0; }
.cover__flap, .cover__flap > * { backface-visibility: hidden; } /* Chrome culls backfaces per layer, and the shade has its own */
/* Darkens the flap as it folds; the box is trimmed to the triangle (26.8% = 16.5 / 61.5) to save layer memory */
.cover__flap-shade { position: absolute; inset: 0 0 38.5% 0; background: #2A1C0C; opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 26.8%, 50% 100%, 0 26.8%); }
.cover__flap > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: polygon(0 0, 100% 0, 100% 16.5%, 50% 61.5%, 0 16.5%); filter: drop-shadow(0 calc(.6 * var(--u)) calc(1.2 * var(--u)) rgb(70 50 20 / .25)); }
.cover__ganesha { position: absolute; left: 50%; top: 21%; width: calc(20 * var(--u)); translate: -50% 0; filter: drop-shadow(0 1px 1px rgb(255 255 255 / .6)); }
.cover__seal { left: 50%; top: 61.5%; width: var(--sw); translate: -50% -50%; z-index: 5; }
.cover__seal img { display: block; width: 100%; filter: drop-shadow(0 calc(.5 * var(--u)) calc(.8 * var(--u)) rgb(60 10 15 / .4)); } /* contact shadow only */
/* The cast shadow: stays on the paper when the seal lifts. After the flap in the DOM at the same z, so it paints over
   the flap and under the seal; centred with margins, not translate (GSAP owns its transform) */
.cover__seal-shadow { left: 50%; top: calc(61.5% + 1.4 * var(--u)); z-index: 4; width: calc(var(--sw) * .94); aspect-ratio: 1.12; margin: calc(var(--sw) * -.42) 0 0 calc(var(--sw) * -.47); border-radius: 50%; background: radial-gradient(closest-side, rgb(60 10 15 / .42), rgb(60 10 15 / .2) 55%, transparent); pointer-events: none; }
/* The seal breathes by CSS on its img; GSAP tweens only the .cover__seal wrapper */
@media (prefers-reduced-motion: no-preference) { .cover__seal img { animation: seal-breathe 4.2s ease-in-out infinite alternate; } }
@keyframes seal-breathe { to { transform: scale(1.02); } }
.cover__petals { inset: 0; z-index: 7; pointer-events: none; }
.cover__btn {
	left: 50%; bottom: calc(10 * var(--u)); z-index: 8;
	display: inline-flex; align-items: center; gap: calc(2 * var(--u));
	min-height: 48px; padding: 0 calc(6 * var(--u));
	translate: -50% 0;
	/* a static foil ring: the fill on the padding box over --foil on the border box */
	--fill: rgb(250 246 236 / .94);
	border: 1px solid transparent; border-radius: 999px;
	background: linear-gradient(var(--fill), var(--fill)) padding-box, var(--foil) border-box;
	color: var(--gold-ink);
	font: 500 calc(4.6 * var(--u)) / 1 var(--font-title);
	letter-spacing: .12em;
	text-shadow: 0 1px 0 rgb(255 255 255 / .7);
	white-space: nowrap; /* abspos at left 50%: shrink-to-fit would wrap the wider Cinzel label at half the frame */
	box-shadow: 0 calc(1 * var(--u)) calc(4 * var(--u)) rgb(90 70 30 / .18);
	cursor: pointer;
}
.cover__btn svg { width: calc(5 * var(--u)); height: calc(5 * var(--u)); }
.cover__btn:active { --fill: var(--ivory-deep); }
.cover__btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.cover__flash { inset: 0; z-index: 9; background: #FFFDF7; opacity: 0; pointer-events: none; }

/* Hero (scene 1 after opening): marigold toran along the top */
.s-opening .toran { left: -3%; top: 0; width: 106%; z-index: 1; }

/* ================= Premium pass: painted backgrounds (ChatGPT, shared/photo/bg-*) + stronger type ================= */
.scene { font-weight: 500; }
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.scene:has(.scene__bg) .corner { display: none; }
/* Legible over the paintings: a soft ivory halo around the glyphs, never a box */
.scene__inner { text-shadow: 0 0 calc(2.6 * var(--u)) rgb(250 246 236 / .95), 0 0 calc(.8 * var(--u)) rgb(250 246 236 / .95); }
.s-haldi .scene__inner { text-shadow: 0 0 calc(2.6 * var(--u)) rgb(236 243 249 / .95), 0 0 calc(.8 * var(--u)) rgb(236 243 249 / .95); }
.s-cocktail .scene__inner { text-shadow: 0 0 calc(3 * var(--u)) rgb(27 42 74 / .95), 0 1px 2px rgb(0 0 0 / .35); }
.t-name, .s-wedding .t-title { text-shadow: none; filter: drop-shadow(0 1px 0 rgb(255 255 255 / .75)) drop-shadow(0 calc(.5 * var(--u)) calc(1.4 * var(--u)) rgb(110 82 10 / .28)); }
.s-wedding .t-title { filter: drop-shadow(0 calc(.5 * var(--u)) calc(1.6 * var(--u)) rgb(0 0 0 / .5)); }
.s-wedding .scene__inner { text-shadow: 0 0 calc(3 * var(--u)) rgb(35 9 15 / .95), 0 1px 2px rgb(0 0 0 / .4); }
.t-title { letter-spacing: .005em; }

/* Balanced lines: no lone word on the last line of names, dates, parents, taglines */
.scene__inner :is(p, h1, h2, li, a) { text-wrap: balance; }

/* Painted mandap (bg-wedding) and resort (bg-venue) replace the drawn scenery; the couple, flickering light and pin stay */
/* The drawn mandap decor is gone from the site; preview/index.html still carries it, kept hidden as before */
.s-wedding .mandap__art, .s-wedding .garland, .s-wedding .diya { display: none; }
.s-wedding .mandap .couple-img { left: 4%; right: 4%; top: 6%; bottom: 0; }
.diya-glow {
	position: absolute; bottom: 3%; z-index: 1;
	width: 48%; height: 20%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(255 206 122 / .6), rgb(255 190 95 / .2) 60%, transparent);
	mix-blend-mode: screen;
	pointer-events: none;
}
.diya-glow--l { left: -10%; }
.diya-glow--r { right: -10%; }
.s-venue .resort > img { visibility: hidden; }
.s-venue .pin { top: 12%; }

/* Venue: text starts below the painted resort and pool */
.s-venue .scene__inner { justify-content: flex-start; }
.s-venue .resort { aspect-ratio: auto; height: calc(84 * var(--u)); margin-bottom: 0; }
.s-venue .map { height: calc(44 * var(--u)); }

/* Venue: the painting fades into ivory behind the text */
.s-venue::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(transparent 36%, rgb(250 246 236 / .82) 48%, rgb(250 246 236 / .9) 100%); }
.s-venue .resort { height: calc(84 * var(--u)); }
.s-venue .map { height: calc(40 * var(--u)); }
