/* BrandBlix Invite Studio — invite page.
   Layout: phone-first single column (max 560px) that sits like a manuscript leaf on wider screens;
   openings (palace doors / sealed envelope) are full-screen overlays above it.
   Each theme supplies six colours; every other shade is derived below. */

:root {
	--bg: #3B0A14;
	--primary: #7A1023;
	--accent: #D9A84E;
	--text: #F8EBD2;
	--paper: #F7EBD5;
	--ink: #4A0F1C;

	--f-label: "Cinzel", "Tiro Devanagari Hindi", Georgia, serif;
	--f-body: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, serif;
	--f-script: "Pinyon Script", "Tiro Devanagari Hindi", cursive;
	--f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Nirmala UI", serif;

	/* Fallbacks for browsers without color-mix */
	--bg2: var(--bg);
	--surface: rgba(255, 255, 255, .05);
	--muted: var(--text);
	--line: var(--accent);
	--line-soft: rgba(217, 168, 78, .35);
	--label: var(--accent);
	--btn: var(--accent);
	--on-btn: var(--bg);
	--danger: #FFB4A8;
	--shade: rgba(0, 0, 0, .45);
	--deep: #000;
	--env-paper: var(--paper);
	--env-flap: var(--paper);
	--env-back: var(--paper);

	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-door: cubic-bezier(.62, .02, .24, 1);
	--col: 560px;
	--gutter: 24px;
	--jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M28 4C36 16 40 20 52 28C40 36 36 40 28 52C20 40 16 36 4 28C16 20 20 16 28 4Z'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='56' cy='0' r='6'/%3E%3Ccircle cx='0' cy='56' r='6'/%3E%3Ccircle cx='56' cy='56' r='6'/%3E%3C/g%3E%3C/svg%3E");
}
[data-mode="light"] { --btn: var(--primary); --on-btn: var(--paper); --danger: #9B1C2C; --shade: rgba(60, 30, 20, .22); }

@supports (color: color-mix(in oklab, red, blue)) {
	:root {
		--bg2: color-mix(in oklab, var(--bg) 93%, var(--accent));
		--surface: color-mix(in oklab, var(--bg) 90%, var(--text));
		--muted: color-mix(in oklab, var(--text) 74%, var(--bg));
		--line: color-mix(in oklab, var(--accent) 72%, transparent);
		--line-soft: color-mix(in oklab, var(--accent) 32%, transparent);
		--label: color-mix(in oklab, var(--accent) 82%, var(--text));
		--deep: color-mix(in oklab, var(--primary) 55%, #000);
		--env-paper: color-mix(in oklab, var(--paper) 90%, var(--accent));
		--env-flap: color-mix(in oklab, var(--paper) 82%, var(--accent));
		--env-back: color-mix(in oklab, var(--paper) 68%, var(--accent));
	}
	[data-mode="light"] {
		--bg2: color-mix(in oklab, var(--bg) 92%, var(--primary));
		--surface: color-mix(in oklab, var(--bg) 40%, #fff);
		--muted: color-mix(in oklab, var(--text) 78%, var(--bg));
		--label: color-mix(in oklab, var(--accent) 78%, var(--text));
		--btn: color-mix(in oklab, var(--primary) 80%, #000);
		--line: color-mix(in oklab, var(--accent) 62%, transparent);
		--line-soft: color-mix(in oklab, var(--accent) 30%, transparent);
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body.bbis-body {
	margin: 0; min-height: 100vh;
	background: var(--bg); color: var(--text);
	font-family: var(--f-body); font-size: 19px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
.bbis-body::before {
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
	background: var(--accent); opacity: .035;
	-webkit-mask: var(--jaali) 0 0 / 56px 56px; mask: var(--jaali) 0 0 / 56px 56px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-hi .is-copy { font-family: var(--f-deva); font-size: .92em; line-height: 1.75; }

/* ---------- Column ---------- */
.inv { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; background: var(--bg); min-height: 100vh; overflow: hidden; overflow: clip; }
@media (min-width: 640px) {
	.inv { margin-block: 40px; border-radius: 28px; box-shadow: 0 0 0 1px var(--line-soft), 0 40px 90px -40px var(--shade); }
}

.sec { position: relative; padding-block: 64px; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sec.alt { background: var(--bg2); }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 32px; }
.eyebrow { margin: 0; font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--label); }
.sec-title { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: clamp(46px, 12.5vw, 62px); line-height: 1.05; color: var(--text); text-wrap: balance; }
.lang-hi .sec-title { font-family: var(--f-deva); font-size: clamp(30px, 8.5vw, 40px); line-height: 1.35; }
.lang-hi .eyebrow { font-family: var(--f-deva); letter-spacing: .06em; font-size: 15px; }
.orn { display: block; width: 168px; height: 20px; color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 40px 20px 0; }
.hero-mandala { position: absolute; z-index: -1; left: 50%; top: 40%; width: 150%; max-width: none; aspect-ratio: 1; translate: -50% -50%; color: var(--accent); opacity: .09; transform: rotate(calc(var(--p, 0) * 40deg)); }
.hero-mandala svg { width: 100%; height: 100%; animation: bbis-spin 160s linear infinite; }
.arch { position: relative; width: min(100%, 400px); min-height: 600px; padding: 22% 30px 128px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.arch-frame { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); overflow: visible; pointer-events: none; }
.shloka { margin: 0; font-family: var(--f-deva); font-size: 17px; color: var(--label); }
.hero .eyebrow { margin-top: 8px; }
.names { margin: 4px 0 0; display: flex; flex-direction: column; align-items: center; font-family: var(--f-script); font-weight: 400; line-height: 1.02; font-size: clamp(58px, 17vw, 86px); color: var(--text); text-wrap: balance; }
.names .amp { font-size: .46em; line-height: 1.2; color: var(--accent); }
.hero-date { margin: 8px 0 0; font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero-city { margin: 0; font-style: italic; color: var(--muted); }
.lang-hi .hero-date { font-family: var(--f-deva); letter-spacing: .02em; font-size: 17px; text-transform: none; }
.scroll-cue { margin-top: 8px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-label); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 1px; height: 32px; background: linear-gradient(var(--accent), transparent); animation: bbis-drip 2.2s var(--ease) infinite; transform-origin: top; }

/* ---------- Invitation copy ---------- */
.invite-copy { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 42ch; margin: 0 auto; }
.dear { margin: 0; font-family: var(--f-script); font-size: clamp(34px, 9vw, 42px); line-height: 1.15; color: var(--accent); }
.lang-hi .dear { font-family: var(--f-deva); font-size: 26px; }
.host { margin: 0; font-style: italic; color: var(--muted); }
.msg { margin: 0; font-size: 20px; }
.portrait { position: relative; width: min(68%, 260px); aspect-ratio: 3 / 4; margin: 8px auto 16px; }
.portrait::before { content: ""; position: absolute; inset: -10px; border: 1px solid var(--line); border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% 50% 8px 8px / 34% 34% 8px 8px; }
.families { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; width: 100%; margin-top: 16px; }
.family { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.family .who { font-family: var(--f-script); font-size: clamp(40px, 11vw, 50px); line-height: 1.1; color: var(--text); }
.family .of { color: var(--muted); font-size: 17px; }
.family-amp { font-family: var(--f-label); color: var(--accent); font-size: 14px; letter-spacing: .3em; }

/* ---------- Countdown ---------- */
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: 0 auto; }
.count-tile { position: relative; perspective: 500px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; aspect-ratio: 3 / 4; padding: 8px 4px 14px; border: 1px solid var(--line); border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; background: var(--surface); }
.count-num { font-family: var(--f-label); font-size: clamp(24px, 7vw, 34px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.count-unit { font-family: var(--f-label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lang-hi .count-unit { font-family: var(--f-deva); font-size: 14px; letter-spacing: 0; }
.count-note { margin: 24px auto 0; text-align: center; color: var(--muted); font-style: italic; max-width: 32ch; }

/* ---------- Events ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0 0 0 28px; max-width: 480px; position: relative; display: flex; flex-direction: column; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(var(--line), var(--line-soft) 85%, transparent); }
.event { --ev: var(--accent); position: relative; }
.ev-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 18px 40px -28px var(--shade); }
.ev-card:hover { box-shadow: 0 26px 50px -26px var(--shade); }
.event::before { content: ""; position: absolute; left: -26px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ev); box-shadow: 0 0 0 4px var(--bg2); }
.event[data-type="haldi"] { --ev: #E8A70C; }
.event[data-type="mehndi"] { --ev: #4E9A51; }
.event[data-type="sangeet"] { --ev: #D14D7E; }
.event[data-type="ring"] { --ev: #9C86D6; }
.event[data-type="baraat"] { --ev: #E07A3F; }
.event[data-type="reception"] { --ev: #C8A2E0; }
[data-mode="light"] .event[data-type="reception"] { --ev: #8A5BB0; }
.ev-top { display: flex; align-items: center; gap: 14px; }
.ev-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ev); border: 1px solid var(--ev); background: rgba(255, 255, 255, .04); }
@supports (color: color-mix(in oklab, red, blue)) {
	.ev-icon { color: color-mix(in oklab, var(--ev) 78%, var(--text)); background: color-mix(in oklab, var(--ev) 15%, transparent); border-color: color-mix(in oklab, var(--ev) 45%, transparent); }
	.event::before { border-color: color-mix(in oklab, var(--ev) 80%, var(--text)); }
}
.ev-icon svg { width: 24px; height: 24px; }
.ev-name { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: 40px; line-height: 1; }
.lang-hi .ev-name { font-family: var(--f-deva); font-size: 28px; }
.ev-when { margin: 6px 0 0; font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.lang-hi .ev-when { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; text-transform: none; }
.ev-venue { margin: 0; line-height: 1.35; }
.ev-venue b { display: block; font-weight: 600; font-size: 20px; }
.ev-addr { color: var(--muted); font-size: 17px; }
.ev-dress { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 6px 14px; line-height: 1.3; border: 1px dashed var(--line); border-radius: 999px; font-size: 16px; color: var(--muted); }
.ev-dress svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-actions .btn { padding: 10px 14px; letter-spacing: .1em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, filter .2s; -webkit-tap-highlight-color: transparent; }
.lang-hi .btn { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; text-transform: none; }
.btn:hover { background: var(--line-soft); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-solid { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.btn-solid:hover { background: var(--btn); filter: brightness(1.08); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; perspective: 900px; padding: 24px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 64%; scroll-snap-align: center; transform: rotateY(calc(var(--off, 0) * -38deg)) scale(var(--sc, 1)); transition: transform .12s linear; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--line); border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-ph { display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; text-align: center; font-family: var(--f-label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); background: radial-gradient(120% 80% at 50% 0%, var(--line-soft), transparent 70%), var(--surface); }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .92); }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox .x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- RSVP ---------- */
.rsvp { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.rsvp-deadline { margin: -16px 0 0; text-align: center; color: var(--muted); font-style: italic; }
.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.f > label, .f > legend { padding: 0; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.lang-hi .f > label, .lang-hi .f > legend { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; text-transform: none; }
.f > legend { margin-bottom: 8px; }
.inp { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--text); font-family: var(--f-body); font-size: 19px; -webkit-appearance: none; appearance: none; }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.45; }
.inp::placeholder { color: var(--muted); opacity: .75; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--line-soft); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 52px; height: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface); text-align: center; line-height: 1.2; font-size: 18px; transition: background .2s, border-color .2s; }
.choice input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--line-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .choice span { min-height: 44px; border-radius: 999px; padding: 8px 18px; font-size: 17px; }
.stepper { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.stepper button { width: 52px; height: 52px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 12px; }
.stepper button:hover { background: var(--line-soft); }
.stepper output { min-width: 44px; text-align: center; font-family: var(--f-label); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin: 0; color: var(--danger); font-size: 17px; }
.rsvp-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px; text-align: center; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.rsvp-done .dear { font-size: 40px; }

/* ---------- Contacts / live ---------- */
.contacts { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; }
.contact { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--surface); }
.contact-txt { flex: 1; min-width: 0; }
.contact-name { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.25; }
.contact-rel { margin: 0; color: var(--muted); font-size: 16px; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.live { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 64px var(--gutter) calc(112px + env(safe-area-inset-bottom, 0px)); }
.hashtag { margin: 0; font-family: var(--f-script); font-size: clamp(38px, 10vw, 48px); line-height: 1.15; color: var(--accent); overflow-wrap: anywhere; }
.thanks { margin: 0; color: var(--muted); font-style: italic; max-width: 34ch; }
.credit { margin-top: 24px; font-family: var(--f-label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.credit:hover { color: var(--accent); }

/* ---------- Floating bar ---------- */
.fab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: var(--col); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.is-open .fab-bar { opacity: 1; transform: none; }
.fab-bar > * { pointer-events: auto; }
.fab { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--accent); cursor: pointer; box-shadow: 0 10px 24px -10px var(--shade); }
.fab .bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.fab .bars i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; }
.fab.is-playing .bars i { animation: bbis-eq 1s ease-in-out infinite; }
.fab.is-playing .bars i:nth-child(2) { animation-delay: .2s; }
.fab.is-playing .bars i:nth-child(3) { animation-delay: .4s; }
.fab-bar .btn-solid { box-shadow: 0 10px 24px -10px var(--shade); }
.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 16px; text-align: center; overflow-wrap: anywhere; box-shadow: 0 10px 30px -10px var(--shade); }

/* ---------- Reveal ---------- */
.rv { transition: opacity .55s var(--ease), transform .7s var(--ease); }
.js-reveal .rv:not(.in) { opacity: 0; transform: translateY(20px); }

/* ---------- Opening overlay (shared) ---------- */
.op { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity 1s ease, visibility 0s linear 1s; }
.op::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: .045; -webkit-mask: var(--jaali) 0 0 / 56px 56px; mask: var(--jaali) 0 0 / 56px 56px; }
.op.is-gone { opacity: 0; visibility: hidden; }
.op-kicker { margin: 0; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--label); }
.op-guest { margin: 0; font-family: var(--f-script); font-size: clamp(38px, 11vw, 54px); line-height: 1.1; color: var(--text); overflow-wrap: anywhere; }
.lang-hi .op-kicker { font-family: var(--f-deva); letter-spacing: .04em; font-size: 15px; text-transform: none; }
.op-hint { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.lang-hi .op-hint { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; text-transform: none; }
.op-hint::before, .op-hint::after { content: ""; width: 24px; height: 1px; background: var(--line); }
.pulse-ring { position: absolute; inset: -12px; border-radius: 50%; border: 1px solid var(--accent); animation: bbis-pulse 2.4s var(--ease) infinite; pointer-events: none; }

/* ---------- Envelope ---------- */
.env-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 24px max(16px, env(safe-area-inset-left, 0px)); text-align: center; transition: transform 1.1s var(--ease), opacity .9s ease; }
.env-intro { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .6s; }
.env { position: relative; width: min(86vw, 380px); aspect-ratio: 10 / 7; perspective: 1400px; cursor: pointer; margin-top: 12px; }
.env-back { position: absolute; inset: 0; border-radius: 8px; background: var(--env-back); box-shadow: 0 46px 60px -34px rgba(0, 0, 0, .7); }
.env-back::before { content: ""; position: absolute; inset: 6px 6px 34% 6px; border-radius: 4px; background: var(--primary); }
.env-back::after { content: ""; position: absolute; inset: 6px 6px 34% 6px; background: var(--accent); opacity: .45; -webkit-mask: var(--jaali) 0 0 / 28px 28px; mask: var(--jaali) 0 0 / 28px 28px; }
.env-card { position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; border-radius: 6px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transition: transform 1.1s var(--ease) .7s; }
.env-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--primary); border-radius: 3px; opacity: .45; }
.env-card .ec-label { font-family: var(--f-label); font-size: 9px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--primary); }
.env-card .ec-names { font-family: var(--f-script); font-size: clamp(28px, 8vw, 36px); line-height: 1.1; }
.env-card .ec-date { font-family: var(--f-label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 8px; background: var(--env-paper); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-front::before, .env-front::after { content: ""; position: absolute; inset: 0; }
.env-front::before { clip-path: polygon(0 0, 50% 54%, 0 100%); background: linear-gradient(60deg, rgba(0, 0, 0, .08), transparent 70%); }
.env-front::after { clip-path: polygon(100% 0, 50% 54%, 100% 100%); background: linear-gradient(-60deg, rgba(0, 0, 0, .12), transparent 70%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; border-radius: 8px 8px 0 0; background: linear-gradient(var(--env-flap), var(--env-paper)); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform 1s var(--ease) .25s, z-index 0s linear .75s; }
.env.is-open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env.is-open .env-card { transform: translateY(-62%); }
.seal { position: absolute; left: 50%; top: 58%; z-index: 5; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0; border: 0; display: grid; place-items: center; cursor: pointer; border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%; background: radial-gradient(circle at 32% 28%, var(--seal-hi, #b8475a) 0, var(--primary) 40%, var(--deep) 100%); box-shadow: 0 10px 18px -6px rgba(0, 0, 0, .55), inset 0 0 0 6px rgba(0, 0, 0, .18), inset 0 0 0 7px var(--line); transition: transform .5s var(--ease), opacity .5s; }
@supports (color: color-mix(in oklab, red, blue)) { .seal, .medallion { --seal-hi: color-mix(in oklab, var(--primary) 60%, #fff); } }
.seal-mono { font-family: var(--f-label); font-weight: 600; font-size: 19px; letter-spacing: .04em; color: var(--accent); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
[data-mode="light"] .seal-mono { color: var(--paper); }
.env.is-open .seal { transform: scale(.3) rotate(-35deg); opacity: 0; pointer-events: none; }
.env.is-open ~ .op-hint, .is-opening .env-intro { opacity: 0; }
.op.is-leaving .env-stage { transform: translateY(-6%) scale(1.12); opacity: 0; }

/* ---------- Royal doors ---------- */
.op-doors { perspective: 1800px; }
.door-glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(55% 45% at 50% 50%, var(--line), transparent 72%); transition: opacity 1.4s ease .4s; }
.doors { position: absolute; inset: 0; display: flex; transform-style: preserve-3d; }
.door { position: relative; flex: 1 1 50%; height: 100%; overflow: hidden; transition: transform 1.3s var(--ease-door); will-change: transform; }
.door-l { transform-origin: 0 50%; background: linear-gradient(90deg, var(--deep), var(--primary) 70%, var(--deep)); box-shadow: inset -2px 0 0 var(--line); }
.door-r { transform-origin: 100% 50%; background: linear-gradient(-90deg, var(--deep), var(--primary) 70%, var(--deep)); box-shadow: inset 2px 0 0 var(--line); }
.op.is-open .door-l { transform: rotateY(-102deg); }
.op.is-open .door-r { transform: rotateY(102deg); }
.op.is-open .door-glow { opacity: 1; }
.door-panel { position: absolute; inset: 17% 14% 9% 14%; border: 2px solid var(--line); border-radius: 50% 50% 6px 6px / 20% 20% 6px 6px; box-shadow: inset 0 0 0 7px rgba(0, 0, 0, .22), inset 0 0 0 8px var(--line-soft), 0 0 0 6px rgba(0, 0, 0, .15); }
.door-panel::before { content: ""; position: absolute; inset: 16px; border-radius: inherit; background: var(--accent); opacity: .12; -webkit-mask: var(--jaali) 50% 0 / 46px 46px; mask: var(--jaali) 50% 0 / 46px 46px; }
.door-studs { position: absolute; left: 12%; right: 12%; height: 10px; background: radial-gradient(circle, var(--accent) 0 2.4px, transparent 3px) 0 0 / 22px 10px repeat-x; opacity: .9; }
.door-studs.t { top: 11%; }
.door-studs.b { bottom: 4.5%; }
.door-ring { position: absolute; top: 55%; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
.door-ring::before { content: ""; position: absolute; top: -13px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); }
.door-l .door-ring { right: 14px; }
.door-r .door-ring { left: 14px; }
.toran { position: absolute; top: 0; left: 0; right: 0; z-index: 3; pointer-events: none; transition: transform 1.3s var(--ease), opacity 1s ease; }
.toran-band { display: flex; justify-content: center; gap: 2px; height: 22px; overflow: hidden; background: linear-gradient(var(--deep), transparent); }
.toran-band b { flex: none; width: 12px; height: 22px; background: #3F8A43; border-radius: 0 0 50% 50% / 0 0 100% 100%; transform-origin: top; }
.toran-band b:nth-child(even) { background: #2F6F33; transform: scaleY(.8); }
.toran-strands { display: flex; justify-content: space-between; padding: 0 2%; margin-top: -4px; }
.strand { display: flex; flex-direction: column; align-items: center; }
.strand i { width: 15px; height: 15px; margin-top: -3px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFD45A, #F29A0C 60%, #BD5F04); box-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.strand i:nth-child(3n) { background: radial-gradient(circle at 40% 35%, #FFF0A6, #F5C215 60%, #C78A05); }
.strand i:last-child { width: 9px; height: 14px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: #C2185B; }
.op.is-open .toran { transform: translateY(-105%); opacity: 0; }
.door-center { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 96px 16px 32px; text-align: center; transition: opacity .6s ease; }
.op.is-open .door-center { opacity: 0; pointer-events: none; }
.plaque { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: min(340px, 88vw); padding: 14px 24px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.medallion { position: relative; width: 136px; height: 136px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle at 35% 30%, var(--seal-hi, #b8475a), var(--primary) 45%, var(--deep)); box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px var(--deep), 0 0 0 9px var(--line), 0 24px 40px -12px rgba(0, 0, 0, .7); }
.medallion .med-ring { position: absolute; inset: 10px; color: var(--accent); opacity: .55; animation: bbis-spin 40s linear infinite; }
.medallion .seal-mono { font-size: 24px; position: relative; }

/* ---------- Petals ---------- */
.petals { position: fixed; inset: 0; z-index: 55; pointer-events: none; }

/* ---------- Gate / owner note ---------- */
.bbis-gate { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px max(24px, env(safe-area-inset-left, 0px)); text-align: center; }
.gate-title { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: clamp(40px, 11vw, 56px); line-height: 1.1; }
.gate-copy { margin: 0; color: var(--muted); }
.bbis-gate form { display: flex; flex-direction: column; gap: 12px; width: min(100%, 360px); }
.bbis-gate form p { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bbis-gate form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.bbis-gate input[type=password] { min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 18px; }
.bbis-gate input[type=submit] { min-height: 52px; border-radius: 999px; border: 0; background: var(--btn); color: var(--on-btn); font-family: var(--f-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.bbis-owner-note { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 8px 16px; background: #1D2327; color: #fff; font: 13px/1.4 system-ui, sans-serif; text-align: center; }

/* ---------- Demo switcher (demo build only) ---------- */
.demo-panel { position: fixed; z-index: 95; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 8px; width: 210px; padding: 12px; border-radius: 14px; background: rgba(20, 16, 18, .86); color: #f4efe8; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(8px); }
.demo-panel[data-collapsed="true"] > :not(.demo-toggle) { display: none; }
.demo-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #c9c0b4; }
.demo-panel select, .demo-panel button { min-height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; padding: 6px 8px; }
.demo-panel select option { color: #111; }
.demo-panel button { cursor: pointer; font-weight: 600; }
.demo-toggle { border: 0 !important; background: none !important; text-align: left; padding: 0 !important; min-height: 24px !important; }

/* =====================================================================
   v2 — sacred symbols, hero scene, 3D motion, new sections
   ===================================================================== */
:root { --silhouette: rgba(0, 0, 0, .35); --map-bg: rgba(255, 255, 255, .06); --map-road: rgba(255, 255, 255, .14); --map-water: rgba(217, 168, 78, .22); --map-block: rgba(255, 255, 255, .09); }
@supports (color: color-mix(in oklab, red, blue)) {
	:root {
		--silhouette: color-mix(in oklab, var(--bg) 62%, #000);
		--map-bg: color-mix(in oklab, var(--bg) 88%, var(--text));
		--map-road: color-mix(in oklab, var(--bg) 70%, var(--text));
		--map-water: color-mix(in oklab, var(--bg) 70%, var(--accent));
		--map-block: color-mix(in oklab, var(--bg) 80%, var(--text));
	}
	[data-mode="light"] { --silhouette: color-mix(in oklab, var(--bg) 80%, var(--primary)); --map-bg: color-mix(in oklab, var(--bg) 60%, #fff); --map-road: #fff; --map-block: color-mix(in oklab, var(--bg) 85%, var(--primary)); }
}
.sec > :not(.sec-mandala) { position: relative; z-index: 1; }

/* Sacred symbol */
.deity { --ds: 96px; position: relative; width: var(--ds); height: var(--ds); display: grid; place-items: center; color: var(--accent); --cut: var(--bg); flex: none; }
.deity-halo { position: absolute; inset: calc(var(--ds) * -.34); width: calc(var(--ds) * 1.68); height: calc(var(--ds) * 1.68); opacity: .55; animation: bbis-spin 50s linear infinite; }
.deity-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, var(--line-soft), transparent 68%); animation: bbis-breathe 4s ease-in-out infinite; }
.deity-svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.deity-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.deity-glyph { position: relative; font-family: var(--f-deva); font-size: calc(var(--ds) * .82); line-height: 1; color: var(--accent); text-shadow: 0 0 18px var(--line-soft); }
.deity-glyph.g-ikonkar { font-family: "Tiro Gurmukhi", "Noto Sans Gurmukhi", var(--f-deva); }
.deity-glyph.g-bismillah { font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: calc(var(--ds) * .46); white-space: nowrap; }
.deity-hero { --ds: 92px; margin-bottom: 18px; }
.deity-hero::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: var(--bg); }
.deity-sm { --ds: 54px; margin-bottom: 20px; }
.deity-door { --ds: 62px; --cut: var(--primary); margin-bottom: 6px; }
.verse { margin: 0; max-width: 30ch; font-family: var(--f-deva); font-size: 15px; line-height: 1.75; color: var(--muted); }
.ceremony { margin: 4px 0 0; font-family: var(--f-deva); font-weight: 400; font-size: clamp(36px, 10.5vw, 48px); line-height: 1.25; color: var(--accent); }
.ceremony, .hashtag { background: linear-gradient(100deg, var(--accent) 25%, #FFF4CC 42%, var(--accent) 58%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: bbis-shimmer 3s ease-in-out .4s 2 both; }
[data-mode="light"] .ceremony, [data-mode="light"] .hashtag { background-image: linear-gradient(100deg, var(--accent) 25%, var(--primary) 45%, var(--accent) 62%); }

/* Hero scene: bells, lanterns, diyas, palace */
.bell { position: absolute; top: 0; z-index: 2; width: 30px; color: var(--accent); --cut: var(--bg); transform-origin: 50% 0; animation: bbis-swing 3.4s ease-in-out infinite; }
.bell svg { display: block; width: 30px; height: 82px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.bell-l { left: 16px; }
.bell-r { right: 16px; animation-delay: -1.7s; }
.lanterns { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lanterns i { position: absolute; bottom: -30px; left: calc(var(--l) * 13.5% + 5%); width: 12px; height: 16px; border-radius: 40% 40% 30% 30%; background: radial-gradient(circle at 50% 70%, #FFE19A, #F28C28 60%, #B4430D); box-shadow: 0 0 16px 5px rgba(255, 170, 60, .4); opacity: 0; animation: bbis-rise-lantern calc(16s + var(--l) * 2.2s) linear infinite; animation-delay: calc(var(--l) * -3.1s); }
.palace { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 120px; color: var(--silhouette); transform: translateY(calc(var(--p, 0) * 50px)); }
.palace svg { display: block; width: 100%; height: 100%; }
.diyas { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; padding: 0 14%; pointer-events: none; }
.diya { position: relative; width: 58px; color: var(--accent); --cut: var(--bg); }
.diya svg { display: block; width: 58px; height: 29px; }
.flame { position: absolute; left: 50%; bottom: 21px; width: 12px; height: 24px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 82%, #FFF8D6 0 18%, #FFC845 42%, #FF7A1A 72%, transparent 74%); transform-origin: 50% 100%; animation: bbis-flicker 1.5s ease-in-out infinite; }
.flame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 180, 80, .38), transparent 70%); }
.diya:last-child .flame { animation-delay: -.7s; }

/* Section mandalas move and turn with scroll */
.sec-mandala { position: absolute; z-index: 0; width: 340px; aspect-ratio: 1; color: var(--accent); opacity: .07; pointer-events: none; transform: translateY(calc(var(--p, 0) * -70px)) rotate(calc(var(--p, 0) * 120deg)); }
.sec-mandala svg { width: 100%; height: 100%; }
.m-right { right: -170px; top: 24px; }
.m-left { left: -170px; top: 48px; }
.m-center { left: 50%; top: 50%; margin: -170px 0 0 -170px; opacity: .045; }

/* 3D reveals */
.rv, .rv3d, .rvL, .rvR, .rvZ { transition: opacity .55s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rv3d { transform-origin: 50% 0; }
.js-reveal .rv3d:not(.in) { opacity: 0; transform: perspective(900px) rotateX(-42deg) translateY(36px); }
.js-reveal .rvL:not(.in) { opacity: 0; transform: perspective(900px) rotateY(34deg) translateX(-36px); }
.js-reveal .rvR:not(.in) { opacity: 0; transform: perspective(900px) rotateY(-34deg) translateX(36px); }
.js-reveal .rvZ:not(.in) { opacity: 0; transform: scale(.72) rotate(-5deg); }

/* Couple */
.couple-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; max-width: 480px; margin: 0 auto; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.p-3d { position: relative; width: min(100%, 176px); aspect-ratio: 3 / 4; margin-bottom: 14px; transform-style: preserve-3d; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); }
.p-frame { position: absolute; inset: 0; overflow: hidden; border: 2px solid var(--accent); border-radius: 50% 50% 12px 12px / 34% 34% 12px 12px; background: var(--surface); box-shadow: 0 24px 40px -20px var(--shade); }
.p-frame img { width: 100%; height: 100%; object-fit: cover; }
.p-mono { display: grid; place-items: center; height: 100%; font-family: var(--f-script); font-size: 88px; color: var(--accent); background: radial-gradient(90% 70% at 50% 30%, var(--line-soft), transparent 70%); }
.p-ring { position: absolute; inset: -9px; border: 1px solid var(--line); border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; transform: translateZ(-30px); pointer-events: none; }
.p-role { margin: 0; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.lang-hi .p-role { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; }
.p-name { margin: 0; font-family: var(--f-script); font-size: clamp(34px, 9vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.p-of { margin: 0; font-size: 15px; line-height: 1.35; color: var(--muted); }
.knot { align-self: center; margin-top: -48px; width: 40px; height: 40px; color: var(--accent); }
.knot svg { width: 40px; height: 40px; animation: bbis-breathe 3s ease-in-out infinite; }
.couple-photo { margin: 40px auto 0; width: min(100%, 340px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px var(--shade); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.couple-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: coarse) { .p-3d { animation: bbis-sway3d 7s ease-in-out infinite; } .person:last-child .p-3d { animation-delay: -3.5s; } }

/* Story */
.story { position: relative; max-width: 420px; margin: 0 auto; padding: 32px 24px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); text-align: center; }
.story p { margin: 0; font-size: 20px; font-style: italic; }
.story-ic { position: absolute; top: -18px; left: 50%; width: 36px; height: 36px; margin-left: -18px; padding: 6px; border-radius: 50%; background: var(--bg); color: var(--accent); border: 1px solid var(--line); }

/* Scratch card + flip countdown */
.scratch { position: relative; width: min(100%, 340px); aspect-ratio: 16 / 10; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -28px var(--shade); }
.scratch-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; }
.scratch-under::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--primary); border-radius: 12px; opacity: .35; }
.sd-week { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--primary); }
.sd-day { font-family: var(--f-label); font-size: 64px; font-weight: 600; line-height: 1; }
.sd-month { font-family: var(--f-script); font-size: 30px; line-height: 1.2; }
.sd-time { font-size: 15px; opacity: .8; }
.lang-hi .sd-week, .lang-hi .sd-month { font-family: var(--f-deva); letter-spacing: 0; font-size: 18px; text-transform: none; }
.scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .9s ease, transform .9s var(--ease); }
.scratch.is-revealed .scratch-foil { opacity: 0; transform: scale(1.12); pointer-events: none; }
.scratch.is-revealed .scratch-under > * { animation: bbis-rise .8s var(--ease) both; }
.scratch.is-revealed .scratch-under > :nth-child(2) { animation-delay: .1s; }
.scratch.is-revealed .scratch-under > :nth-child(3) { animation-delay: .2s; }
.linkish { display: block; min-height: 44px; margin: 4px auto 0; padding: 0 12px; border: 0; background: none; color: var(--muted); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#countdown .count { margin-top: 24px; }
.count-face { display: block; }
.count-num { display: inline-block; transform-origin: 50% 60%; }
.count-num.flip { animation: bbis-flip .55s var(--ease); }
.count-tile::after { content: ""; position: absolute; left: 10px; right: 10px; top: 54%; height: 1px; background: var(--line-soft); }

/* Event card detail */
.ev-band { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--ev) 0 12px, transparent 12px 18px); opacity: .85; }
@supports (color: color-mix(in oklab, red, blue)) {
	.ev-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 100% 0%, color-mix(in oklab, var(--ev) 16%, transparent), transparent 62%); }
}
.ev-card > * { position: relative; }

/* Venue + map */
.venue-card { max-width: 480px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 60px -32px var(--shade); }
.map-frame { position: relative; aspect-ratio: 4 / 3; background: var(--map-bg); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-art { display: block; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 50%; top: 46%; width: 48px; height: 48px; margin: -48px 0 0 -24px; color: var(--btn); animation: bbis-pin 1.4s var(--ease) infinite alternate; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.map-pin svg { width: 48px; height: 48px; fill: var(--accent); stroke: var(--deep); }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 22px; height: 7px; margin-left: -11px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.map-note { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 14px; line-height: 1.35; text-align: center; }
.venue-info { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.venue-name { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: 38px; line-height: 1.1; }
.lang-hi .venue-name { font-family: var(--f-deva); font-size: 26px; }
.venue-addr { margin: 0; color: var(--muted); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Gallery coverflow */
.g-spacer { flex: 0 0 14%; }

/* Family */
.fam-grid { display: flex; flex-wrap: wrap; gap: 14px; max-width: 520px; margin: 0 auto; }
.fam-col { flex: 1 1 150px; padding: 22px 16px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); text-align: center; }
.fam-h { margin: 0 0 12px; font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.lang-hi .fam-h { font-family: var(--f-deva); font-size: 18px; letter-spacing: 0; }
.fam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 18px; line-height: 1.35; }
.baal { position: relative; max-width: 360px; margin: 44px auto 0; padding: 26px 24px; border-radius: 24px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 24px 50px -28px var(--shade); }
.baal-label { margin: 0 0 4px; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--primary); }
.lang-hi .baal-label { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; }
.baal-text { margin: 0; font-family: var(--f-script); font-size: 30px; line-height: 1.25; }
.lang-hi .baal-text { font-family: var(--f-deva); font-size: 22px; line-height: 1.6; }
.baal-balloons { position: absolute; top: -30px; right: 18px; display: flex; gap: 2px; }
.baal-balloons i { width: 20px; height: 26px; border-radius: 50% 50% 48% 48%; background: #E8586F; animation: bbis-float 3s ease-in-out infinite; }
.baal-balloons i:nth-child(2) { background: #F2A541; margin-top: -10px; animation-delay: -1s; }
.baal-balloons i:nth-child(3) { background: var(--accent); animation-delay: -2s; }

/* Stay */
.stay { display: flex; gap: 16px; align-items: flex-start; max-width: 440px; margin: 0 auto; padding: 22px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); }
.stay p { margin: 0; white-space: pre-line; }
.stay-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); }
.stay-ic svg { width: 22px; height: 22px; }

/* Footer kalash */
.foot-kalash { position: relative; width: 108px; height: 108px; color: var(--accent); --cut: var(--bg); }
.foot-kalash svg { position: relative; width: 100%; height: 100%; }
.foot-kalash .deity-glow { inset: -30%; }
.foot-title { font-size: clamp(32px, 9vw, 42px); }

/* Floating bar right group */
.fab-right { display: flex; gap: 8px; }
.fab-pill { background: var(--bg); box-shadow: 0 10px 24px -10px var(--shade); }

/* Opening extras */
.env-3d { perspective: 1100px; }
.env { animation: bbis-envfloat 5.5s ease-in-out infinite; transform-style: preserve-3d; }
.env.is-open { animation: none; }
.door-shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity 1.8s ease; pointer-events: none; }
.door-r .door-shade { transform: scaleX(-1); }
.op.is-open .door-shade { opacity: 1; }
.strand { transform-origin: 50% 0; animation: bbis-sway 4s ease-in-out infinite; animation-delay: calc(var(--s, 0) * -.37s); }
.door-center { gap: 18px; padding-top: 104px; }


/* =====================================================================
   v3 — materials (grain, emboss, wax, paper), editorial type, references
   ===================================================================== */
:root { --emboss: none; --grain: none; --env-base: var(--primary); --wax: #D7A27C; --wax-hi: #F5D6BC; --wax-lo: #7E4A2A; }
@supports (color: color-mix(in oklab, red, blue)) {
	:root { --wax: color-mix(in oklab, var(--accent) 55%, #E6AC8C); --wax-hi: color-mix(in oklab, var(--wax) 45%, #fff); --wax-lo: color-mix(in oklab, var(--wax) 50%, #3A1A0C); }
	[data-mode="light"] { --env-base: color-mix(in oklab, var(--paper) 58%, var(--primary)); }
}

/* Editorial eyebrows instead of letter-spaced caps */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-style: italic; font-weight: 500; font-size: 19px; letter-spacing: .01em; text-transform: none; }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.hero .eyebrow::before, .hero .eyebrow::after { display: none; }

/* Grain over the whole leaf */
.bbis-body::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; background-image: var(--grain); background-size: 140px; opacity: .4; }

/* Paper sections with torn edges */
.sec.alt { background: var(--bg); }
.sec.paper, .patra-inner, .sc-copy {
	--text: var(--ink); --bg: var(--paper); --bg2: var(--paper); --cut: var(--paper);
	--muted: #6B5348; --surface: rgba(80, 40, 20, .045); --line: var(--accent); --line-soft: rgba(80, 40, 20, .16);
	--label: var(--primary); --btn: var(--primary); --on-btn: var(--paper); --shade: rgba(70, 35, 15, .28); --deep: var(--primary);
	color: var(--ink);
}
@supports (color: color-mix(in oklab, red, blue)) {
	.sec.paper, .patra-inner, .sc-copy {
		--muted: color-mix(in oklab, var(--ink) 68%, var(--paper)); --surface: color-mix(in oklab, var(--paper) 94%, var(--ink));
		--line: color-mix(in oklab, var(--accent) 62%, var(--ink)); --line-soft: color-mix(in oklab, var(--accent) 36%, transparent);
		--label: color-mix(in oklab, var(--primary) 82%, var(--ink));
		--map-bg: color-mix(in oklab, var(--paper) 88%, var(--ink)); --map-road: #fff; --map-block: color-mix(in oklab, var(--paper) 80%, var(--accent)); --map-water: color-mix(in oklab, var(--paper) 70%, #5A9BB0);
	}
}
.sec.paper { background: var(--paper); padding-block: 84px; }
.sec.paper::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(125% 95% at 50% 50%, transparent 55%, rgba(120, 75, 30, .14)), var(--grain); background-size: auto, 140px; }
.sec.paper > .tear { position: absolute; left: 0; z-index: 3; width: 100%; height: 18px; color: var(--paper); pointer-events: none; }
.sec.paper > .tear-top { top: -17px; }
.sec.paper > .tear-bot { bottom: -17px; transform: scaleY(-1); }
.sec.paper .ceremony, .patra-inner .ceremony, .sc-copy .ceremony, .sec.paper .hashtag { background-image: linear-gradient(100deg, var(--accent) 25%, var(--primary) 45%, var(--accent) 62%); }
.sec.paper .sec-mandala { opacity: .06; color: var(--primary); }

/* Hero photo variant */
.hero-photo { --text: #FFF8EE; --muted: rgba(255, 248, 238, .82); --label: #F3D9A0; color: var(--text); }
.hero-img { position: absolute; inset: -40px 0; z-index: -2; transform: translateY(calc(var(--p, 0) * 70px)); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .45) 72%, var(--bg)); }
.hero-photo .deity-hero::before { display: none; }

/* Scroll (patra) with rods and tassels */
.patra, .sc { position: relative; max-width: 440px; margin: 0 auto; }
.patra-body { box-shadow: 0 26px 30px -18px rgba(0, 0, 0, .4); }
.rod { position: relative; z-index: 2; height: 22px; margin: 0 -14px; border-radius: 11px; background: linear-gradient(180deg, #3E0710, #8E1A2C 32%, #C9485A 46%, #7A1023 66%, #34060E); }
.rod .knob { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF2C4, #D9A84E 45%, #6E4A10); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }
.rod .knob:first-child { left: -14px; }
.rod .knob:nth-child(2) { right: -14px; }
.tassel { position: absolute; top: 18px; width: 12px; height: 54px; }
.tl { left: -6px; } .tr { right: -6px; }
.tassel::before { content: ""; position: absolute; left: 5px; top: 0; width: 2px; height: 24px; background: #D9A84E; }
.tassel::after { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 30px; border-radius: 5px 5px 2px 2px; background: repeating-linear-gradient(90deg, #A3112F 0 2px, #D6334F 2px 4px); transform-origin: 50% 0; animation: bbis-sway 3.2s ease-in-out infinite; }
.patra-body { display: grid; grid-template-rows: 1fr; margin: -6px 0; transition: grid-template-rows 1.15s cubic-bezier(.6, .04, .24, 1); }
.js-reveal .rv-unroll:not(.in) .patra-body, .op-scroll:not(.is-open) .patra-body { grid-template-rows: 0fr; }
.patra-inner { min-height: 0; overflow: hidden; background: var(--grain), linear-gradient(90deg, rgba(120, 75, 35, .2), transparent 8%, transparent 92%, rgba(120, 75, 35, .2)), linear-gradient(180deg, rgba(120, 75, 35, .12), transparent 6%, transparent 94%, rgba(120, 75, 35, .12)), var(--paper); background-size: 140px, auto, auto, auto; }
.patra .invite-copy { padding: 44px 26px 40px; }

/* Royal scroll opening */
.op-scroll { background: var(--velvet), radial-gradient(circle at 50% 40%, var(--primary), var(--deep) 78%); }
.op-scroll::before { display: none; }
.sc-stage { position: relative; z-index: 1; width: min(86vw, 400px); display: flex; flex-direction: column; align-items: center; gap: 22px; transition: transform 1s var(--ease), opacity .9s ease; }
.sc { width: 100%; }
.sc .patra-inner { max-height: 72vh; }
.sc-copy { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 22px 30px; text-align: center; }
.sc-copy .deity-sm { margin-bottom: 14px; }
.sc-copy .op-kicker { color: var(--label); }
.sc-copy .op-guest { color: var(--ink); font-size: clamp(34px, 9vw, 44px); }
.sc-names { margin: 0; font-family: var(--f-script); font-size: clamp(36px, 10vw, 46px); line-height: 1.1; }
.sc-date { margin: 0; font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lang-hi .sc-date { font-family: var(--f-deva); font-size: 16px; letter-spacing: 0; text-transform: none; }
.op-scroll .seal3 { top: 19px; }
.sc-stage > .op-hint { margin-top: 44px; }
.op-scroll.is-open .op-hint { opacity: 0; }
.op.is-leaving .sc-stage { transform: scale(1.08); opacity: 0; }

/* Wax seal */
.seal3 { position: absolute; left: 50%; top: 50%; z-index: 6; width: 128px; height: 128px; margin: -64px 0 0 -64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); transition: transform .7s var(--ease), opacity .6s ease; }
.seal3.seal-sm { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.wax-svg { display: block; width: 100%; height: 100%; }
.wax-t text { font-family: var(--f-script); font-size: 30px; }
.seal3 .pulse-ring { inset: 4px; }
.op.is-open .seal3 { transform: translateY(70px) rotate(28deg) scale(.55); opacity: 0; pointer-events: none; }

/* Full-screen velvet envelope */
.op-env3 { perspective: 1600px; background: var(--deep); }
.op-env3::before { display: none; }
.env3-light { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, #FFFBEA 0, #FFE3A3 12%, rgba(255, 190, 100, .55) 32%, transparent 66%); transition: opacity 1.2s ease .25s, transform 2.4s ease .25s; }
.env3-light .rays { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 232, 175, .4) 0 3deg, transparent 3deg 12deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 52%); mask: radial-gradient(circle, #000 0, transparent 52%); animation: bbis-spin 50s linear infinite; }
.op-env3.is-open .env3-light { opacity: 1; transform: scale(1.12); }
.env3-card { position: absolute; left: 50%; top: 50%; z-index: 1; width: min(68vw, 290px); aspect-ratio: 3 / 4; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; text-align: center; background: var(--grain), var(--paper); background-size: 140px, auto; color: var(--ink); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.55); transition: opacity .6s ease .45s, transform 1s var(--ease) .45s; }
.env3-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent); border-radius: 3px; }
.env3-card .ec-label { font-family: var(--f-body); font-style: italic; font-size: 16px; color: var(--primary); }
.env3-card .ec-names { font-family: var(--f-script); font-size: clamp(32px, 9vw, 42px); line-height: 1.1; }
.env3-card .ec-date { font-family: var(--f-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.op-env3.is-open .env3-card { opacity: 1; transform: scale(1); }
.flap { position: absolute; inset: 0; background: var(--velvet), var(--flap-shade, none), var(--env-base); backface-visibility: hidden; transition: transform .95s cubic-bezier(.55, .05, .3, 1); will-change: transform; }
.f-top { --flap-shade: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(0, 0, 0, .32)); clip-path: polygon(0 0, 100% 0, 50% 52%); transform-origin: 50% 0; z-index: 4; transition-delay: .1s; }
.f-bottom { --flap-shade: linear-gradient(0deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .38)); clip-path: polygon(0 100%, 100% 100%, 50% 48%); transform-origin: 50% 100%; z-index: 3; transition-delay: .2s; }
.f-left { --flap-shade: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .46)); clip-path: polygon(0 0, 52% 50%, 0 100%); transform-origin: 0 50%; z-index: 2; transition-delay: .28s; }
.f-right { --flap-shade: linear-gradient(-90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .46)); clip-path: polygon(100% 0, 48% 50%, 100% 100%); transform-origin: 100% 50%; z-index: 2; transition-delay: .28s; }
.op-env3.is-open .f-top { transform: rotateX(178deg); }
.op-env3.is-open .f-bottom { transform: rotateX(-178deg); }
.op-env3.is-open .f-left { transform: rotateY(-178deg); }
.op-env3.is-open .f-right { transform: rotateY(178deg); }
.creases { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; color: var(--accent); opacity: .75; pointer-events: none; transition: opacity .4s ease; }
.op-env3.is-open .creases { opacity: 0; }
.flap-copy { position: absolute; left: 0; right: 0; bottom: 11%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 24px; text-align: center; }
.flap-top-copy { position: absolute; left: 0; right: 0; top: calc(9% + env(safe-area-inset-top, 0px)); display: flex; justify-content: center; --cut: var(--env-base); }
.op-env3 .op-guest { background: linear-gradient(100deg, var(--accent) 25%, #FFF4CC 42%, var(--accent) 58%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: bbis-shimmer 3.2s ease-in-out .6s 2 both; }
[data-mode="light"] .op-env3 .op-guest { background-image: linear-gradient(100deg, var(--primary) 25%, var(--accent) 45%, var(--primary) 62%); }
[data-mode="light"] .op-env3 .op-kicker, [data-mode="light"] .op-env3 .op-hint { color: var(--ink); }

/* Carved doors */
.door-l { background: var(--velvet), linear-gradient(90deg, var(--deep), var(--primary) 70%, var(--deep)); }
.door-r { background: var(--velvet), linear-gradient(-90deg, var(--deep), var(--primary) 70%, var(--deep)); }

/* Elephants guarding the date pillars */
.date-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 150px; max-width: 470px; margin: 0 auto; }
.elephant { position: absolute; bottom: -4px; z-index: 2; width: 138px; pointer-events: none; transition: transform 1s var(--ease) .15s; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .25)); }
.elephant svg { display: block; width: 100%; height: auto; animation: bbis-bob 3.2s ease-in-out infinite; }
.el-l { left: max(-14px, calc(50% - 222px)); }
.el-r { right: max(-14px, calc(50% - 222px)); }
.el-r svg { transform: scaleX(-1); animation-name: bbis-bob-r; }
.js-reveal .date-stage:not(.in) .el-l { transform: translateX(-70px); }
.js-reveal .date-stage:not(.in) .el-r { transform: translateX(70px); }
.date-stage .scratch { width: auto; aspect-ratio: auto; margin: 0 0 30px; padding: 6px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; }
.pillars { display: flex; gap: 6px; }
.pillar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 62px; height: 100px; padding-top: 16px; background: var(--velvet), var(--primary); color: #FFF4DC; border: 2px solid var(--accent); border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px; box-shadow: inset 0 0 0 3px var(--primary), inset 0 0 0 4px var(--accent), 0 14px 20px -12px rgba(0, 0, 0, .5); }
.pl-big { font-family: var(--f-label); font-weight: 600; font-size: 23px; line-height: 1; }
.pl-small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lang-hi .pl-big { font-family: var(--f-deva); font-size: 22px; }
.date-stage.is-revealed .pillar { animation: bbis-rise .7s var(--ease) both; }
.date-stage.is-revealed .pillar:nth-child(2) { animation-delay: .12s; }
.date-stage.is-revealed .pillar:nth-child(3) { animation-delay: .24s; }

/* Jharokha event cards */
.timeline { padding-left: 0; gap: 40px; max-width: 400px; }
.timeline::before, .event::before { display: none; }
.event:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -34px; width: 1px; height: 28px; background: linear-gradient(var(--line), transparent); }
.jharokha { align-items: center; padding: 0 22px 24px; text-align: center; border: 1.5px solid var(--line); border-radius: 220px 220px 20px 20px / 150px 150px 20px 20px; background: var(--surface); }
.jharokha::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-soft); border-radius: 214px 214px 15px 15px / 145px 145px 15px 15px; pointer-events: none; }
.ev-window { width: calc(100% + 44px); margin: 0 -22px 6px; aspect-ratio: 16 / 10; display: grid; place-items: end center; padding: 34px 34px 8px; border-radius: 220px 220px 0 0 / 150px 150px 0 0; background: radial-gradient(80% 90% at 50% 100%, var(--line-soft), transparent 72%); --cut: var(--surface); }
.ev-vig { width: 78%; height: auto; overflow: visible; }
.ev-vig .v-flame { transform-origin: 80px 73px; animation: bbis-flicker 1.4s ease-in-out infinite; }
.jharokha .ev-venue { text-align: center; }
.jharokha .ev-dress { margin: 0 auto; }
.jharokha .ev-actions { justify-content: center; }

/* Photo frames hanging on strings */
.wall { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.wall-rod { height: 10px; margin: 0 10px; border-radius: 5px; background: linear-gradient(180deg, #FFF1C2, var(--accent) 50%, #6E4A10); box-shadow: 0 4px 8px -2px rgba(0, 0, 0, .4); }
.frames { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 28px; scrollbar-width: none; }
.frames::-webkit-scrollbar { display: none; }
.frame { flex: 0 0 56%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: bbis-hang 5.5s ease-in-out infinite; animation-delay: var(--sd, 0s); }
.string { position: relative; width: 1px; height: var(--drop, 30px); background: linear-gradient(var(--accent), var(--line)); }
.string::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.frame-in { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 9px; border: 0; background: linear-gradient(135deg, #F7E3A8, #B98A2E 38%, #F3D98C 60%, #8A6424); box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .55); transform: rotate(var(--tilt, 0deg)); cursor: zoom-in; }
.frame-in img, .frame-in .g-ph { display: grid; width: 100%; height: 100%; object-fit: cover; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18); }
@keyframes bbis-hang { 0%, 100% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg); } }
@keyframes bbis-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bbis-bob-r { 0%, 100% { transform: scaleX(-1) translateY(0); } 50% { transform: scaleX(-1) translateY(-3px); } }


/* =====================================================================
   v4 — cinematic: living backgrounds, grand reveal, theatre curtain
   ===================================================================== */
.ambience { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.has-fx .inv, .has-fx .sec:not(.paper), .has-fx .hero:not(.hero-photo), .has-fx .foot { background: transparent; }
.has-fx .inv { box-shadow: none; }
.has-fx .sec:not(.paper) { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .08) 50%, transparent); }
[data-mode="light"].has-fx .sec:not(.paper), [data-mode="light"] .has-fx .sec:not(.paper) { background: transparent; }

/* Gold-foil names that catch the light */
.names > span:not(.amp) { background: linear-gradient(100deg, var(--text) 30%, #FFF6DA 45%, var(--accent) 52%, var(--text) 66%) 0 0 / 280% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: bbis-shimmer 2.6s ease-in-out .9s 2 both; }
[data-mode="light"] .names > span:not(.amp) { background-image: linear-gradient(100deg, var(--text) 30%, var(--accent) 48%, var(--text) 66%); }
.hero-photo .names > span:not(.amp) { background-image: linear-gradient(100deg, #FFF8EE 30%, #FFE7A6 46%, #FFF8EE 62%); }

/* Camera push: the page arrives out of the light */
.is-open .hero { animation: bbis-push 1.4s cubic-bezier(.16, .84, .3, 1) both; }
@keyframes bbis-push { from { transform: scale(1.12); opacity: .2; } to { transform: none; opacity: 1; } }

/* Ambient life on every opening: light sweep + floating gold dust */
.op-ambient { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.sheen { position: absolute; inset: -60% -60%; background: linear-gradient(112deg, transparent 44%, rgba(255, 238, 200, .12) 48%, rgba(255, 252, 238, .38) 50%, rgba(255, 238, 200, .12) 52%, transparent 56%); mix-blend-mode: screen; animation: bbis-sheen 5.2s cubic-bezier(.45, 0, .2, 1) infinite; }
.dust { display: none; position: absolute; inset: -20% 0; opacity: .85; mix-blend-mode: screen; background: radial-gradient(circle, rgba(255, 228, 160, .95) 0 1px, transparent 1.6px) 0 0 / 37px 43px, radial-gradient(circle, rgba(255, 240, 210, .7) 0 1.2px, transparent 1.8px) 13px 21px / 61px 53px; -webkit-mask: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask: radial-gradient(70% 60% at 50% 50%, #000, transparent); animation: bbis-dust 14s linear infinite; }
.dust2 { opacity: .5; transform: scale(1.6); animation-duration: 22s; animation-direction: reverse; }
.op.is-open .op-ambient { opacity: 0; transition: opacity .4s ease; }
@keyframes bbis-sheen { 0% { transform: translateX(-45%); } 55%, 100% { transform: translateX(45%); } }
@keyframes bbis-dust { from { background-position: 0 0, 13px 21px; } to { background-position: 0 -430px, 13px -509px; } }

/* Envelope: glow breathing behind the seal */
.core-glow { position: absolute; left: 50%; top: 50%; z-index: 5; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 226, 160, .55), rgba(255, 190, 100, .18) 35%, transparent 65%); mix-blend-mode: screen; animation: bbis-breathe 2.8s ease-in-out infinite; }
.op.is-open .core-glow { animation: none; transform: scale(3); opacity: 0; transition: transform 1s ease, opacity 1s ease .3s; }

/* Doors: light leaking through the gap */
.door-crack { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 2; width: 4px; margin-left: -2px; background: linear-gradient(180deg, transparent, #FFF1C4 18%, #fff 50%, #FFF1C4 82%, transparent); box-shadow: 0 0 22px 7px rgba(255, 214, 140, .6), 0 0 90px 34px rgba(255, 190, 90, .28); animation: bbis-crack 2.4s ease-in-out infinite; }
.op.is-open .door-crack { animation: none; opacity: 0; transform: scaleX(30); transition: transform .9s ease, opacity .9s ease .2s; }
@keyframes bbis-crack { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Grand reveal burst */
.burst { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
.b-flash { position: absolute; left: var(--bx); top: var(--by); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #FFF4CC 26%, rgba(255, 206, 112, .65) 50%, transparent 72%); animation: b-flash 1.15s cubic-bezier(.2, .7, .2, 1) forwards; }
.b-rays { position: absolute; left: var(--bx); top: var(--by); width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 238, 182, .6) 0 2.4deg, transparent 2.4deg 11deg); -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 16%, transparent 48%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .55) 16%, transparent 48%); mix-blend-mode: screen; animation: b-rays 1.7s ease-out forwards; }
.b-rays2 { background: repeating-conic-gradient(from 5deg, rgba(255, 210, 140, .42) 0 1.4deg, transparent 1.4deg 17deg); animation-name: b-rays2; }
.b-ring { position: absolute; left: var(--bx); top: var(--by); width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 2px solid rgba(255, 234, 176, .95); box-shadow: 0 0 30px rgba(255, 212, 122, .85), inset 0 0 30px rgba(255, 212, 122, .6); animation: b-ring 1.5s cubic-bezier(.1, .7, .3, 1) forwards; }
.b-ring2 { animation-delay: .18s; border-width: 1px; opacity: 0; }
.b-streak { position: absolute; left: -20vw; right: -20vw; top: var(--by); height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, transparent, rgba(255, 246, 222, .95) 50%, transparent); box-shadow: 0 0 20px 7px rgba(255, 214, 140, .55); animation: b-streak 1.6s ease-out forwards; }
.b-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes b-flash { 0% { transform: scale(.2); opacity: 0; } 14% { opacity: 1; } 48% { transform: scale(60); opacity: .96; } 100% { transform: scale(80); opacity: 0; } }
@keyframes b-rays { 0% { opacity: 0; transform: scale(.4) rotate(0); } 16% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) rotate(28deg); } }
@keyframes b-rays2 { 0% { opacity: 0; transform: scale(.5) rotate(0); } 22% { opacity: .9; } 100% { opacity: 0; transform: scale(1.7) rotate(-32deg); } }
@keyframes b-ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(20); opacity: 0; } }
@keyframes b-streak { 0% { transform: scaleX(0); opacity: 0; } 22% { opacity: 1; } 100% { transform: scaleX(1.25); opacity: 0; } }

/* Theatre curtain opening */
.op-curtain { background: radial-gradient(60% 55% at 50% 38%, var(--primary), #0A0204 82%); }
.op-curtain::before { display: none; }
.spot { position: absolute; left: 50%; top: -6%; z-index: 1; width: 130%; height: 112%; translate: -50% 0; background: conic-gradient(from 180deg at 50% 0%, transparent 156deg, rgba(255, 236, 190, .2) 170deg, rgba(255, 248, 225, .36) 180deg, rgba(255, 236, 190, .2) 190deg, transparent 204deg); filter: blur(6px); animation: bbis-spot 7s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes bbis-spot { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.curtain { position: absolute; top: 0; bottom: 0; z-index: 3; width: 51%; background: linear-gradient(180deg, rgba(0, 0, 0, .4), transparent 16%, transparent 78%, rgba(0, 0, 0, .55)), repeating-linear-gradient(90deg, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .06) 4%, rgba(255, 255, 255, .13) 6.5%, rgba(0, 0, 0, .06) 9%, rgba(0, 0, 0, .5) 13%), var(--primary); box-shadow: inset 0 0 60px rgba(0, 0, 0, .5); transition: transform 1.25s cubic-bezier(.65, .02, .25, 1); will-change: transform; }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.cl { left: 0; transform-origin: 0 0; }
.cr { right: 0; transform-origin: 100% 0; }
.op-curtain.is-open .cl { transform: scaleX(.1) skewY(5deg); }
.op-curtain.is-open .cr { transform: scaleX(.1) skewY(-5deg); }
.valance { position: absolute; top: 0; left: 0; right: 0; z-index: 4; height: 74px; background: radial-gradient(circle at 50% 0, var(--primary) 0 34px, transparent 35px) 0 22px / 68px 52px repeat-x, linear-gradient(var(--deep), var(--primary)) 0 0 / 100% 40px no-repeat; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); transition: transform 1s cubic-bezier(.65, .02, .25, 1) .3s; }
.valance::after { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 6px; background: radial-gradient(circle, var(--accent) 0 2.4px, transparent 3px) 0 0 / 12px 6px repeat-x; }
.op-curtain.is-open .valance { transform: translateY(-110%); }
.curtain-center { z-index: 5; padding-top: 96px; }

/* ---------- Orchestrated reveal after opening ---------- */
.is-open .arch > :not(.arch-frame), .is-open .hero-stack > *, .is-open .pcard > :not(.pc-corner):not(.crest) { animation: bbis-rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 65ms + 120ms); }
.is-open .arch-frame { animation: bbis-frame 1s var(--ease) both .05s; transform-origin: 50% 100%; }
.op-doors { transition: opacity 1.2s ease, visibility 0s linear 1.2s, background-color .9s ease .25s; }
.op-doors.is-open { background-color: transparent; }
.op::before { transition: opacity .8s ease; }
.op.is-open::before { opacity: 0; }
.op-hint, .env-intro { transition: opacity .5s ease; }

/* ---------- Keyframes ---------- */
@keyframes bbis-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bbis-frame { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bbis-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes bbis-shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@keyframes bbis-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes bbis-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes bbis-flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 25% { transform: scale(1.08, .93) rotate(2deg); } 50% { transform: scale(.94, 1.07) rotate(-1deg); } 75% { transform: scale(1.04, .97) rotate(1.5deg); } }
@keyframes bbis-rise-lantern { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(16px, -480px); } 88% { opacity: .75; } 100% { transform: translate(-10px, -980px); opacity: 0; } }
@keyframes bbis-flip { 0% { transform: rotateX(-95deg); opacity: .15; } 100% { transform: rotateX(0); opacity: 1; } }
@keyframes bbis-pin { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes bbis-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes bbis-sway3d { 0%, 100% { transform: perspective(800px) rotateY(-10deg) rotateX(3deg); } 50% { transform: perspective(800px) rotateY(10deg) rotateX(-3deg); } }
@keyframes bbis-envfloat { 0%, 100% { transform: rotateX(10deg) rotateY(-6deg) translateY(0); } 50% { transform: rotateX(4deg) rotateY(6deg) translateY(-8px); } }
@keyframes bbis-spin { to { rotate: 360deg; } }
@keyframes bbis-pulse { 0% { transform: scale(.88); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes bbis-drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bbis-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }


/* =====================================================================
   v5 — faster motion, velvet materials, three inner designs
   ===================================================================== */
:root {
	--velvet: radial-gradient(120% 80% at 22% 10%, rgba(255, 255, 255, .14), transparent 55%), radial-gradient(110% 75% at 82% 100%, rgba(0, 0, 0, .42), transparent 62%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px);
	--wr-leaf: #4F7F45; --wr-flower: #D9576F; --wr-flower2: #FFE3E8;
}
@supports (color: color-mix(in oklab, red, blue)) {
	:root { --wr-leaf: color-mix(in oklab, var(--accent) 35%, #3F7A44); --wr-flower: color-mix(in oklab, var(--primary) 45%, #E5607A); --wr-flower2: color-mix(in oklab, #FFFFFF 78%, var(--primary)); }
}

/* Openings: one quiet mandala, a gold frame and soft light instead of repeating stars */
.big-mandala { position: absolute; left: 50%; top: 50%; z-index: 5; width: 150vmin; height: 150vmin; margin: -75vmin 0 0 -75vmin; color: var(--accent); opacity: .13; pointer-events: none; transition: opacity .5s ease, transform 1s var(--ease); }
.big-mandala svg { display: block; width: 100%; height: 100%; animation: bbis-spin 140s linear infinite; will-change: transform; }
.op-scroll .big-mandala { z-index: 0; opacity: .1; }
.op.is-open .big-mandala { opacity: 0; transform: scale(1.3); }
.env3-frame { position: absolute; inset: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 5; border: 1px solid var(--accent); opacity: .55; pointer-events: none; transition: opacity .35s ease; }
.env3-frame::after { content: ""; position: absolute; inset: 5px; border: .5px solid var(--accent); opacity: .7; }
.op.is-open .env3-frame { opacity: 0; }
.orb { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(255, 228, 176, .5), rgba(255, 204, 128, .12) 45%, transparent 70%); mix-blend-mode: screen; animation: bbis-orb 9s ease-in-out infinite; animation-delay: var(--dl, 0s); will-change: transform, opacity; }
@keyframes bbis-orb { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .35; } 50% { transform: translate(14px, -22px) scale(1.18); opacity: .95; } }

/* Hero depth: follows phone tilt / mouse */
.arch { transform: perspective(1100px) rotateY(calc(var(--hx, 0) * 5deg)) rotateX(calc(var(--hy, 0) * -4deg)); transition: transform .35s ease-out; }
.hero .lanterns { translate: calc(var(--hx, 0) * -14px) calc(var(--hy, 0) * -10px); transition: translate .4s ease-out; }
.ev-stub { display: none; }
.count-tile .ring { display: none; }

/* ---------- Gulmohar: floral garden ---------- */
.lay-gulmohar .hero { padding-top: 34px; }
.lay-gulmohar .hero .toran { z-index: 2; }
.lay-gulmohar .hero-mandala { opacity: .05; }
.hero-stack { position: relative; width: min(100%, 420px); padding: 52px 4px 100px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wreath { position: relative; width: min(94vw, 390px); aspect-ratio: 1; display: grid; place-items: center; margin: 4px 0; transform-style: preserve-3d; transform: perspective(900px) rotateY(calc(var(--hx, 0) * 9deg)) rotateX(calc(var(--hy, 0) * -9deg)); transition: transform .35s ease-out; }
.wreath-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: bbis-spin 120s linear infinite; }
.wreath::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 160, .14), transparent 70%); }
.wreath-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 70%; transform: translateZ(46px); }
.wreath-in .names { font-size: clamp(44px, 13vw, 66px); }
.wreath-in .eyebrow { margin-top: 0; }
.is-open .wreath { animation: bbis-bloom 1.1s var(--ease) both .1s; }
.is-open .wreath-in > * { animation: bbis-rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 320ms); }
@keyframes bbis-bloom { from { opacity: 0; scale: .7; rotate: -40deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
.lay-gulmohar .inv .sec.glass { --gutter: 18px; margin: 16px 12px; padding-block: 52px; border-radius: 32px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(217, 168, 78, .3); box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
@supports (color: color-mix(in oklab, red, blue)) {
	.lay-gulmohar .inv .sec.glass { background: color-mix(in oklab, var(--bg) 74%, transparent); border-color: color-mix(in oklab, var(--accent) 28%, transparent); }
	.wreath::before { background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%); }
}
.lay-gulmohar .sec.glass .sec-mandala { display: none; }
/* events: swipeable 3D carousel */
.lay-gulmohar .event:not(:last-child)::after { display: none; }
.lay-gulmohar .jharokha { padding-top: 22px; border-radius: 28px; }
.lay-gulmohar .jharokha::after { border-radius: 22px; }
.lay-gulmohar .ev-window { width: 132px; aspect-ratio: 1; margin: 0 auto 4px; padding: 18px; place-items: center; border-radius: 50%; border: 1px dashed var(--line); background: radial-gradient(circle, var(--line-soft), transparent 72%); }
.lay-gulmohar .ev-vig { width: 100%; }
/* couple + gallery */
.lay-gulmohar .p-3d { aspect-ratio: 1; }
.lay-gulmohar .p-frame { border-radius: 50%; }
.lay-gulmohar .p-ring { inset: -10px; border: 2px dotted var(--accent); border-radius: 50%; animation: bbis-spin 50s linear infinite; }
.lay-gulmohar .wall-rod, .lay-gulmohar .string, .lay-patrika .wall-rod, .lay-patrika .string { display: none; }
.lay-gulmohar .frame, .lay-patrika .frame { animation: none; }
.lay-gulmohar .frames { padding-top: 14px; }
.lay-gulmohar .frame-in { padding: 9px 9px 36px; background: #FFFDF8; box-shadow: 0 18px 28px -16px rgba(0, 0, 0, .55); }
.lay-gulmohar .frame-in img, .lay-gulmohar .frame-in .g-ph { box-shadow: none; }
/* countdown rings */
.lay-gulmohar .count-tile { aspect-ratio: 1; justify-content: center; gap: 0; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, var(--surface) 55%, transparent 72%); }
.lay-gulmohar .count-tile::after { display: none; }
.lay-gulmohar .count-tile .ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rb { fill: none; stroke: var(--line-soft); stroke-width: 1.4; }
.ring .rf { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s var(--ease); }
.lay-gulmohar .count-num { font-size: clamp(20px, 6vw, 28px); }
.lay-gulmohar .count-unit { font-size: 8px; letter-spacing: .06em; }
.lay-gulmohar.lang-hi .count-unit { font-size: 12px; letter-spacing: 0; }

/* 3D heart to scratch */
.heart-stage { position: relative; display: grid; place-items: center; padding: 8px 0 30px; perspective: 900px; }
.heart-stage::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 190px; height: 26px; margin-left: -95px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 0, 20, .4), transparent); animation: bbis-heartshadow 5s ease-in-out infinite; }
.heart-3d { position: relative; width: 260px; height: 236px; transform-style: preserve-3d; animation: bbis-heartfloat 5s ease-in-out infinite; }
.heart-3d::before { content: ""; position: absolute; inset: 0; clip-path: path("M130 236 C 60 180 0 140 0 72 C 0 30 32 0 72 0 C 100 0 120 16 130 34 C 140 16 160 0 188 0 C 228 0 260 30 260 72 C 260 140 200 180 130 236 Z"); background: linear-gradient(160deg, #8C1233, #4A0718); transform: translateZ(-16px) translateY(5px); }
.heart-3d:active, .heart-3d:hover { animation-play-state: paused; }
.scratch.heart { width: 260px; height: 236px; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; clip-path: path("M130 236 C 60 180 0 140 0 72 C 0 30 32 0 72 0 C 100 0 120 16 130 34 C 140 16 160 0 188 0 C 228 0 260 30 260 72 C 260 140 200 180 130 236 Z"); }
.heart-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 40px 44px; text-align: center; background: radial-gradient(90% 80% at 34% 22%, #FFFFFF, var(--paper) 58%), var(--paper); color: var(--ink); }
@supports (color: color-mix(in oklab, red, blue)) { .heart-under { background: radial-gradient(95% 85% at 34% 22%, #FFFFFF, var(--paper) 50%, color-mix(in oklab, var(--paper) 72%, #E5607A) 100%); } }
.scratch { -webkit-user-select: none; user-select: none; }
.heart-under::after { content: ""; position: absolute; left: 16%; top: 9%; width: 30%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent); transform: rotate(-28deg); pointer-events: none; }
.hu-k { font-family: var(--f-script); font-size: 27px; line-height: 1.1; color: var(--primary); }
.hu-d { font-family: var(--f-label); font-size: 30px; font-weight: 600; letter-spacing: .04em; line-height: 1.1; }
.hu-w { font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.lang-hi .hu-k { font-family: var(--f-deva); font-size: 18px; line-height: 1.4; }
.lang-hi .hu-w { font-family: var(--f-deva); font-size: 14px; letter-spacing: 0; text-transform: none; }
.heart-stage.is-revealed .heart-3d { animation: bbis-heartbeat 1.1s var(--ease) both; }
.heart-stage.is-revealed::before { content: ""; position: absolute; left: 50%; top: 45%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 120, 150, .4), transparent); animation: bbis-glowout 1.6s ease-out both; pointer-events: none; }
.scratch.heart.is-revealed .heart-under > * { animation: bbis-rise .7s var(--ease) both; }
.scratch.heart.is-revealed .heart-under > :nth-child(2) { animation-delay: .12s; }
.scratch.heart.is-revealed .heart-under > :nth-child(3) { animation-delay: .24s; }
@keyframes bbis-heartfloat { 0%, 100% { transform: rotateY(-12deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(12deg) rotateX(-3deg) translateY(-8px); } }
@keyframes bbis-heartshadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.86); opacity: .7; } }
@keyframes bbis-heartbeat { 0% { transform: scale(1); } 25% { transform: scale(1.12); } 45% { transform: scale(.97); } 65% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes bbis-glowout { from { opacity: 0; transform: scale(.5); } 40% { opacity: 1; } to { opacity: 0; transform: scale(1.4); } }

/* ---------- Shahi Patrika: royal printed card ---------- */
.pcard {
	--text: var(--ink); --bg: var(--paper); --cut: var(--paper); --muted: #6B5348; --label: var(--primary); --line: var(--accent); --line-soft: rgba(80, 40, 20, .16);
	position: relative; width: min(100%, 380px); margin: 70px 0 128px; padding: 70px 28px 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
	background: var(--grain), radial-gradient(120% 80% at 28% 6%, rgba(255, 255, 255, .55), transparent 52%), var(--paper); background-size: 140px, auto, auto;
	color: var(--ink); border-radius: 6px; box-shadow: 0 50px 70px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .06);
	transform: perspective(1100px) rotateY(calc(var(--hx, 0) * 8deg)) rotateX(calc(var(--hy, 0) * -7deg)); transition: transform .35s ease-out;
	animation: bbis-pfloat 7s ease-in-out infinite;
}
@supports (color: color-mix(in oklab, red, blue)) { .pcard { --muted: color-mix(in oklab, var(--ink) 68%, var(--paper)); --label: color-mix(in oklab, var(--primary) 82%, var(--ink)); } }
.pcard::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid var(--accent); border-radius: 3px; pointer-events: none; }
.pcard::after { content: ""; position: absolute; inset: 18px; border: .5px solid var(--accent); border-radius: 2px; opacity: .65; pointer-events: none; }
.pcard .names { font-size: clamp(46px, 13.5vw, 70px); }
.pcard .names > span:not(.amp), .hero-photo .pcard .names > span:not(.amp) { background-image: linear-gradient(100deg, var(--ink) 30%, var(--accent) 48%, var(--ink) 66%); }
.pcard .ceremony { background-image: linear-gradient(100deg, var(--accent) 25%, var(--primary) 45%, var(--accent) 62%); }
.pcard .deity-hero::before { display: none; }
.pc-corner { position: absolute; width: 44px; height: 44px; color: var(--accent); pointer-events: none; }
.pc-corner svg { display: block; width: 100%; height: 100%; }
.pc-corner.c1 { top: 7px; left: 7px; }
.pc-corner.c2 { top: 7px; right: 7px; transform: scaleX(-1); }
.pc-corner.c3 { bottom: 7px; left: 7px; transform: scaleY(-1); }
.pc-corner.c4 { bottom: 7px; right: 7px; transform: scale(-1); }
.crest { position: absolute; top: -42px; left: 50%; width: 84px; height: 84px; margin-left: -42px; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.crest svg { display: block; width: 100%; height: 100%; }
@keyframes bbis-pfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.lay-patrika .inv .sec.framed { --gutter: 20px; margin: 22px 12px; padding-block: 64px 56px; border-radius: 4px; box-shadow: 0 34px 50px -38px rgba(0, 0, 0, .7); }
.lay-patrika .sec.framed::after { content: ""; position: absolute; inset: 10px; z-index: 0; border: 1px solid var(--accent); border-radius: 2px; pointer-events: none; }
.sec.framed > .pc-corner { position: absolute; z-index: 1; width: 36px; height: 36px; }
.lay-patrika .sec-title { font-family: var(--f-body); font-style: italic; font-weight: 500; font-size: clamp(34px, 9.5vw, 46px); letter-spacing: -.01em; }
.lay-patrika.lang-hi .sec-title { font-family: var(--f-deva); font-style: normal; }
.lay-patrika .p-frame { border-radius: 50%; border: 4px double var(--accent); }
.lay-patrika .p-ring { border-radius: 50%; }
.lay-patrika .frame-in { transform: none; padding: 7px; }
/* events as tickets */
.lay-patrika .timeline { gap: 22px; }
.lay-patrika .event:not(:last-child)::after { display: none; }
.lay-patrika .jharokha { align-items: flex-start; padding: 20px 16px 20px 86px; text-align: left; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.lay-patrika .jharokha::after { inset: 5px 5px 5px 75px; border-radius: 4px; }
.lay-patrika .ev-window { display: none; }
.lay-patrika .jharokha .ev-venue { text-align: left; }
.lay-patrika .jharokha .ev-dress { margin: 0; }
.lay-patrika .jharokha .ev-actions { justify-content: flex-start; }
.lay-patrika .ev-stub { position: absolute; left: 0; top: 0; bottom: 0; width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--velvet), var(--primary); color: var(--paper); border-right: 2px dashed rgba(255, 255, 255, .45); }
.ev-stub b { font-family: var(--f-label); font-size: 32px; font-weight: 600; line-height: 1; }
.ev-stub span { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.ev-stub i { font-size: 14px; opacity: .85; }
.ev-stub::before, .ev-stub::after { content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); }
.ev-stub::before { top: -9px; }
.ev-stub::after { bottom: -9px; }
/* countdown as one engraved bar */
.lay-patrika .count { gap: 0; padding: 12px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.lay-patrika .count-tile { aspect-ratio: auto; padding: 4px 2px; border: 0; border-radius: 0; background: none; }
.lay-patrika .count-tile + .count-tile { border-left: 1px solid var(--line-soft); }
.lay-patrika .count-tile::after { display: none; }
.lay-patrika .count-num { font-family: var(--f-body); font-size: clamp(30px, 9vw, 40px); font-weight: 500; }

/* Gold coin to scratch */
.coin-stage { display: grid; place-items: center; padding: 8px 0 22px; perspective: 900px; }
.coin-3d { position: relative; width: 220px; height: 220px; transform-style: preserve-3d; animation: bbis-coinfloat 6s ease-in-out infinite; }
.coin-3d::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #F2D27C, #9C7224 60%, #5E3F0E); transform: translateZ(-10px); box-shadow: 0 0 0 4px #7A5512; }
.coin-3d:active, .coin-3d:hover { animation-play-state: paused; }
.scratch.coin { width: 220px; height: 220px; aspect-ratio: 1; margin: 0; border: 0; border-radius: 50%; background: transparent; backface-visibility: hidden; box-shadow: 0 0 0 4px #B8892F, 0 0 0 6px #F5DC94, 0 0 0 7px #7A5512, 0 30px 40px -24px rgba(0, 0, 0, .6); }
.coin-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 50%; text-align: center; color: var(--ink); background: radial-gradient(circle at 36% 28%, #FFFDF6, var(--paper) 62%); box-shadow: inset 0 0 0 9px rgba(184, 137, 47, .25), inset 0 0 0 10px var(--accent); }
.coin-under .hu-k { font-size: 24px; }
.coin-d { font-family: var(--f-label); font-size: 70px; font-weight: 600; line-height: 1; color: var(--primary); }
.coin-m { font-family: var(--f-body); font-style: italic; font-size: 17px; }
.lang-hi .coin-m { font-family: var(--f-deva); font-style: normal; }
.coin-stage.is-revealed .coin-3d { animation: bbis-coinflip 1.2s cubic-bezier(.3, .1, .2, 1) both; }
@keyframes bbis-coinfloat { 0%, 100% { transform: rotateY(-14deg) translateY(0); } 50% { transform: rotateY(14deg) translateY(-6px); } }
@keyframes bbis-coinflip { from { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.1); } to { transform: rotateY(360deg) scale(1); } }

/* Small phones */
@media (max-width: 380px) {
	.pcard { padding-inline: 22px; }
	.lay-patrika .jharokha { padding-left: 80px; }
	.lay-patrika .ev-stub { width: 64px; }
	.lay-patrika .jharokha::after { left: 69px; }
}


/* =====================================================================
   v6 — pinned 3D event stacks, lotus & diya openings, Hindi heading fonts
   ===================================================================== */
.lang-hi .sec-title, .lay-patrika.lang-hi .sec-title, .lang-hi .names > span:not(.amp), .lang-hi .op-guest, .lang-hi .ec-names, .lang-hi .sc-names, .lang-hi .ev-name, .lang-hi .venue-name, .lang-hi .p-name, .lang-hi .diya-names { font-family: var(--f-dh, var(--f-deva)); }

/* Event cards: colour of the function on the arch, a days-left chip */
.jharokha { box-shadow: inset 0 3px 0 -1px var(--ev), 0 30px 50px -36px rgba(0, 0, 0, .55); }
.ev-chip { align-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line); background: var(--line-soft); }
.ev-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ev); box-shadow: 0 0 8px var(--ev); }
@supports (color: color-mix(in oklab, red, blue)) { .ev-chip { border-color: color-mix(in oklab, var(--ev) 50%, transparent); background: color-mix(in oklab, var(--ev) 14%, transparent); } }
.lang-hi .ev-chip { font-family: var(--f-deva); font-size: 13px; letter-spacing: 0; text-transform: none; }
.lay-patrika .ev-chip { align-self: flex-start; }

/* Pinned stack: the section stays on screen until every card has played */
.sec.ev-pinned, .lay-gulmohar .inv .sec.glass.ev-pinned, .lay-patrika .inv .sec.framed.ev-pinned { padding-block: 0; height: calc(100vh + (var(--n) - 1) * 70vh); height: calc(100svh + (var(--n) - 1) * 70svh); }
.pin, .sec > .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; box-sizing: border-box; padding: calc(40px + env(safe-area-inset-top, 0px)) 0 calc(86px + env(safe-area-inset-bottom, 0px)); }
.pin > .sec-head { flex: none; margin-bottom: 16px; }
.ev-deck { position: relative; display: block; flex: 1 1 auto; min-height: 0; width: 100%; max-width: 400px; margin: 0 auto; padding: 0; perspective: 1100px; perspective-origin: 50% 20%; }
.ev-deck::before, .ev-deck .event::before, .ev-deck .event:not(:last-child)::after { display: none; }
.ev-deck .event { position: absolute; left: 0; right: 0; top: 0; transform-origin: 50% 0; will-change: transform, opacity; }
.ev-deck .event .ev-card { background: linear-gradient(var(--surface), var(--surface)), var(--bg); box-shadow: inset 0 3px 0 -1px var(--ev), 0 34px 60px -30px rgba(0, 0, 0, .7); }
.ev-dim { position: absolute; inset: 0; z-index: 5; border-radius: 18px; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.pin-rajwada .ev-dim { border-radius: 220px 220px 20px 20px / 150px 150px 20px 20px; }
.pin-gulmohar .ev-dim { border-radius: 28px; }
.pin-patrika .ev-dim { border-radius: 8px; }
.pin-gulmohar .event { transform-origin: 50% 100%; }
.pin-foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 14px; }
.pin-dots { display: flex; gap: 7px; }
.pin-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); opacity: .5; transition: width .3s var(--ease), opacity .3s ease, background .3s ease; }
.pin-dots i.on { width: 22px; opacity: 1; background: var(--accent); }
.pin-hint { font-family: var(--f-label); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: opacity .3s ease; }
.pin-hint::after { content: " ↓"; display: inline-block; animation: bbis-nudge 1.6s ease-in-out infinite; }
.lang-hi .pin-hint { font-family: var(--f-deva); font-size: 13px; letter-spacing: 0; text-transform: none; }
.pin-end .pin-hint { opacity: 0; }
/* Whole sections arrive in 3D as you scroll — a different move for each inner design */
.rv-panel { transition: transform .85s var(--ease), opacity .7s ease; }
.js-reveal.lay-rajwada .sec.paper.rv-panel:not(.in) { transform: perspective(1200px) rotateX(9deg) translateY(40px); transform-origin: 50% 0; opacity: 0; }
.js-reveal.lay-gulmohar .sec.glass.rv-panel:not(.in) { transform: perspective(1000px) translateY(56px) rotateX(14deg) scale(.94); opacity: 0; }
.js-reveal.lay-patrika .sec.framed.rv-panel:not(.in) { transform: perspective(1000px) translateY(64px) rotateX(10deg) rotate(-2.4deg); opacity: 0; }
.js-reveal.lay-patrika .sec.framed.rv-panel.rv-alt:not(.in) { transform: perspective(1000px) translateY(64px) rotateX(10deg) rotate(2.4deg); }
/* Short phones: give the cards more room */
@media (max-height: 760px) {
	.pin > .sec-head { margin-bottom: 8px; }
	.pin > .sec-head .orn { display: none; }
	.pin .sec-title { font-size: 30px; }
	.lang-hi .pin .sec-title { font-size: 26px; }
	.ev-deck .ev-window { aspect-ratio: 16 / 7; padding-top: 22px; }
	.ev-deck .ev-vig { width: 52%; }
	.pin-gulmohar .ev-window { width: 96px; padding: 12px; }
	.ev-deck .ev-card { gap: 8px; }
	.ev-deck .ev-actions .btn { min-height: 38px; padding: 7px 12px; }
}
@keyframes bbis-nudge { 50% { transform: translateY(4px); } }

/* ---------- Opening: blooming lotus on water ---------- */
.op-lotus { --pt: #D9476E; --pm: #F6A3BC; --pb: #FFF4E2; --petal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100'%3E%3Cpath d='M20 0C34 22 40 52 34 80C31 94 9 94 6 80C0 52 6 22 20 0Z'/%3E%3C/svg%3E");
	background: var(--velvet), radial-gradient(75% 55% at 50% 62%, #5C1430, var(--bg) 78%); }
@supports (color: color-mix(in oklab, red, blue)) {
	.op-lotus { --pt: color-mix(in oklab, #D9476E 75%, var(--primary)); background: var(--velvet), radial-gradient(75% 55% at 50% 62%, color-mix(in oklab, var(--primary) 62%, var(--bg)), var(--bg) 78%); }
}
.lotus-stage, .diya-stage { position: relative; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; text-align: center; transition: transform .7s var(--ease), opacity .6s ease; }
.op.is-leaving .lotus-stage, .op.is-leaving .diya-stage { transform: scale(1.45); opacity: 0; }
.op-lotus.is-open .op-hint, .op-diya.is-open .op-hint { opacity: 0; }
.lotus-pond { position: relative; display: grid; place-items: center; width: 300px; height: 248px; margin: 2px 0; }
.lotus-pond::before { content: ""; position: absolute; left: 50%; top: 60%; width: 300px; height: 96px; margin: -48px 0 0 -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .13), transparent); }
.lotus-pond::after { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 222, 150, .55), transparent); opacity: 0; transform: scale(.4); transition: opacity .8s ease .35s, transform 1.2s var(--ease) .35s; pointer-events: none; }
.op-lotus.is-open .lotus-pond::after { opacity: 1; transform: scale(1.25); }
.ripple { position: absolute; left: 50%; top: 62%; width: 280px; height: 84px; margin: -42px 0 0 -140px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: bbis-ripple 4.8s ease-out infinite; }
.ripple.rp2 { animation-delay: 1.6s; }
.ripple.rp3 { animation-delay: 3.2s; }
@keyframes bbis-ripple { 0% { transform: scale(.35); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.lotus-btn { position: relative; z-index: 1; width: 240px; height: 240px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 700px; -webkit-tap-highlight-color: transparent; }
.lotus-btn .pulse-ring { inset: 64px; }
.lotus-btn:focus-visible, .diya-btn:focus-visible { outline: none; }
.lotus-btn:focus-visible .pulse-ring, .diya-btn:focus-visible .pulse-ring { border-width: 2px; }
.op-lotus.is-open .pulse-ring { opacity: 0; }
.lotus { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(50deg + var(--hy, 0) * 8deg)) rotateY(calc(var(--hx, 0) * 10deg)); transition: transform .4s ease-out; animation: bbis-breathe 4s ease-in-out infinite; }
@keyframes bbis-breathe { 50% { scale: 1.04; } }
.lotus-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.lp { position: absolute; left: 50%; bottom: 50%; width: var(--pw); height: var(--ph); margin-left: calc(var(--pw) / -2); transform-origin: 50% 100%; transform: rotate(var(--a)) rotateX(var(--fold)); transition: transform 1.15s cubic-bezier(.25, .75, .2, 1); transition-delay: calc(var(--rd) + var(--k) * 25ms);
	background: linear-gradient(90deg, transparent 48.5%, rgba(160, 30, 70, .28) 50%, transparent 51.5%), linear-gradient(to top, var(--pb) 0%, var(--pm) 60%, var(--pt) 100%);
	-webkit-mask: var(--petal) center / 100% 100% no-repeat; mask: var(--petal) center / 100% 100% no-repeat; }
.r1 .lp { --pw: 62px; --ph: 116px; --fold: -58deg; --rd: 0s; }
.r2 .lp { --pw: 52px; --ph: 100px; --fold: -70deg; --rd: .1s; }
.r3 .lp { --pw: 38px; --ph: 74px; --fold: -80deg; --rd: .2s; --pm: #F9C2D2; }
.op-lotus.is-open .r1 .lp { --fold: 8deg; }
.op-lotus.is-open .r2 .lp { --fold: -14deg; }
.op-lotus.is-open .r3 .lp { --fold: -38deg; }
.lotus-core { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF2B8, #E9B949 55%, #9C6E18); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 0 30px 8px rgba(255, 200, 90, .4); transform: translateZ(16px) rotateX(-50deg) scale(.3); opacity: 0; transition: transform .7s var(--ease) .5s, opacity .4s ease .5s; }
.op-lotus.is-open .lotus-core { transform: translateZ(16px) rotateX(-50deg) scale(1); opacity: 1; }
.lotus-core .seal-mono { font-size: 15px; color: #5A3608; text-shadow: none; }

/* ---------- Opening: light the diya ---------- */
.op-diya { --cut: #0B0604; background: radial-gradient(80% 60% at 50% 58%, #2A1408, #040202 80%); }
@supports (color: color-mix(in oklab, red, blue)) { .op-diya { background: radial-gradient(80% 60% at 50% 58%, color-mix(in oklab, var(--primary) 32%, #0A0503), #040202 80%); } }
.op-diya .op-guest { color: #F7E3C0; }
.op-diya .op-kicker { color: var(--accent); }
.op-diya .op-hint { color: rgba(255, 236, 200, .7); }
.diya-glow { position: absolute; left: 50%; top: 56%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 150, .95) 0%, rgba(255, 170, 70, .5) 10%, rgba(255, 140, 40, .16) 28%, transparent 52%); scale: .02; opacity: 0; transition: scale 1.6s cubic-bezier(.2, .7, .2, 1) .15s, opacity .4s ease .15s; pointer-events: none; }
.op-diya.is-open .diya-glow { scale: 1; opacity: 1; }
.diya-names { margin: 0; font-family: var(--f-script); font-size: clamp(30px, 9vw, 44px); line-height: 1.15; color: #FFE7B8; text-shadow: 0 0 18px rgba(255, 170, 60, .6); opacity: 0; transform: translateY(10px); transition: opacity .8s ease .45s, transform .8s var(--ease) .45s; }
.op-diya.is-open .diya-names { opacity: 1; transform: none; }
.diya-btn { position: relative; display: grid; place-items: end center; width: 180px; height: 160px; padding: 0 0 10px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.diya-btn .pulse-ring { inset: 30px 30px 6px; }
.op-diya.is-open .pulse-ring { opacity: 0; }
.big-diya { position: relative; display: block; width: 140px; color: var(--accent); }
.big-diya svg { display: block; width: 140px; height: 70px; }
.big-diya .flame { width: 28px; height: 56px; margin-left: -14px; bottom: 50px; }
.big-diya .flame::after { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.op-diya .flame { scale: 0; opacity: 0; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1), opacity .25s ease; }
.op-diya.is-open .flame { scale: 1; opacity: 1; }
.diya-row { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 8; display: flex; justify-content: center; padding: 0 8px; transition: opacity .6s ease, transform .7s var(--ease); }
.diya-row .diya { margin: 0 -5px; transform: scale(.7); }
.op-diya.is-open .diya-row .flame { transition-delay: calc(.3s + var(--k) * .12s); }
.op.is-leaving .diya-row { opacity: 0; transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) { .lotus { transform: rotateX(50deg); } }


/* =====================================================================
   v8 — cinematic prologue, 3D photo ring, credits roll, Bollywood Premiere design,
   film-countdown opening, tap sparkles
   ===================================================================== */
/* Tap sparkles (every theme) */
.spark { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.spark i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #FFF7DC 0 30%, var(--accent) 60%, transparent 72%); animation: bbis-spark .75s cubic-bezier(.2, .7, .3, 1) forwards; }
.spark i:nth-child(3n) { border-radius: 1px; transform: rotate(45deg); }
@keyframes bbis-spark { to { transform: translate(var(--x), var(--y)) scale(var(--s)) rotate(90deg); opacity: 0; } }

/* Prologue: scenes arrive out of depth while the section holds */
.sec.prologue { padding: 0; height: calc(100vh + var(--n) * 62vh); height: calc(100svh + var(--n) * 62svh); background: transparent; }
.sec.prologue > .pin { padding: 0; }
.pro-stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; perspective: 900px; }
.pro-mandala { position: absolute; left: 50%; top: 50%; width: 130vmin; height: 130vmin; margin: -65vmin 0 0 -65vmin; color: var(--accent); opacity: .1; will-change: transform; }
.pro-mandala svg { width: 100%; height: 100%; display: block; }
.pro-light { position: absolute; left: 50%; top: 50%; width: 120vmin; height: 120vmin; margin: -60vmin 0 0 -60vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .16), transparent); pointer-events: none; }
.pro-scene { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 28px; text-align: center; will-change: transform, opacity; }
.pro-small { margin: 0; font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--label); }
.lang-hi .pro-small { font-family: var(--f-deva); font-size: 16px; letter-spacing: .02em; text-transform: none; }
.pro-big { margin: 0; font-family: var(--f-body); font-style: italic; font-size: clamp(34px, 9.5vw, 52px); line-height: 1.12; color: var(--text); text-wrap: balance; }
.lang-hi .pro-big { font-family: var(--f-dh, var(--f-deva)); font-style: normal; font-size: clamp(30px, 8.5vw, 44px); }
.pro-line { max-width: 30ch; margin: 0; color: var(--muted); }
.pro-names { display: flex; flex-direction: column; align-items: center; margin: 0; font-family: var(--f-script); font-size: clamp(60px, 18vw, 96px); line-height: 1; color: var(--text); }
.pro-names i { font-style: normal; font-size: .45em; color: var(--accent); margin: 4px 0; }
.lang-hi .pro-names { font-family: var(--f-dh, var(--f-deva)); font-size: clamp(48px, 14vw, 76px); line-height: 1.2; }
.pro-date { margin: 0; font-family: var(--f-label); font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.pro-bar { position: absolute; left: 24px; right: 24px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); height: 2px; border-radius: 1px; background: var(--accent); opacity: .6; transform-origin: 0 50%; transform: scaleX(0); }

/* Gallery as a 3D ring */
.sec.gal-pinned, .lay-gulmohar .inv .sec.glass.gal-pinned, .lay-patrika .inv .sec.framed.gal-pinned { padding-block: 0; height: calc(100vh + var(--n) * 38vh); height: calc(100svh + var(--n) * 38svh); }
.ring-stage { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; perspective: 1000px; perspective-origin: 50% 40%; }
.ring3d { position: relative; width: var(--w); aspect-ratio: 4 / 5; transform-style: preserve-3d; will-change: transform; }
.ring-item { position: absolute; inset: 0; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ring-item .frame-in { display: block; width: 100%; height: 100%; padding: 8px; border: 0; border-radius: 6px; background: linear-gradient(145deg, #F6DE9C, #B8892F); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8); cursor: zoom-in; transform: none; }
.ring-item .frame-in img, .ring-item .frame-in .g-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: grid; place-items: center; }
.lay-gulmohar .ring-item .frame-in { padding: 9px 9px 34px; background: #FFFDF8; border-radius: 2px; }
.lay-patrika .ring-item .frame-in { background: var(--paper); box-shadow: inset 0 0 0 1px var(--accent), 0 30px 50px -30px rgba(0, 0, 0, .7); }
@media (max-height: 700px) { .ring3d { width: calc(var(--w) * .8); } }

/* ---------- Bollywood Premiere ---------- */
.lay-cinema { --gold-hot: #FFD979; --carpet: #8E0F22; }
.lay-cinema .inv { background: radial-gradient(120% 40% at 50% 0%, color-mix(in oklab, var(--primary) 35%, transparent), transparent 70%), var(--bg); }
.hero-cine-fallback { display: none; }
.poster { position: relative; z-index: 2; width: min(100%, 400px); padding: 64px 18px 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transform: perspective(1100px) rotateY(calc(var(--hx, 0) * 6deg)) rotateX(calc(var(--hy, 0) * -5deg)); transition: transform .35s ease-out; }
.is-open .poster > * { animation: bbis-rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.cine-pre { margin: 0; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.lang-hi .cine-pre { font-family: var(--f-deva); font-size: 15px; letter-spacing: .02em; text-transform: none; }
.marquee { position: relative; width: 100%; margin: 10px 0 4px; padding: 30px 18px 26px; border-radius: 18px; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); box-shadow: 0 0 0 1px rgba(255, 217, 121, .35), 0 0 60px -10px rgba(255, 196, 90, .45), inset 0 0 40px rgba(0, 0, 0, .6); }
.marquee::before, .marquee::after { content: ""; position: absolute; inset: 0; padding: 11px; border-radius: 18px; pointer-events: none;
	background: radial-gradient(circle, #FFF1C2 0 2.4px, rgba(255, 200, 90, .5) 3.4px, transparent 4.8px) 0 0 / 16px 16px;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.marquee::after { background-position: 8px 8px; animation: bbis-bulbs 1.1s steps(1) infinite; }
@keyframes bbis-bulbs { 50% { opacity: .15; } }
.marquee .names { margin: 0; font-size: clamp(50px, 15vw, 80px); text-shadow: 0 0 18px rgba(255, 210, 120, .45); }
.lay-cinema .names > span:not(.amp) { background-image: linear-gradient(100deg, #FFF3CF 30%, var(--gold-hot) 48%, #FFF3CF 66%); }
.cine-tag { margin: 6px 0 0; font-family: var(--f-body); font-style: italic; font-size: 22px; color: var(--text); }
.cine-release { display: grid; gap: 2px; margin: 6px 0 0; }
.cine-release small { font-family: var(--f-label); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.lang-hi .cine-release small { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; text-transform: none; }
.cine-release b { font-family: var(--f-label); font-size: 22px; font-weight: 600; letter-spacing: .06em; color: var(--gold-hot); }
.cine-meta { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.cine-u { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--gold-hot); color: var(--gold-hot); font: 700 12px var(--f-label); }
.spot { position: absolute; top: -10%; z-index: 1; width: 46vmax; height: 120%; pointer-events: none; mix-blend-mode: screen; background: conic-gradient(from 168deg at 50% 0%, transparent 0deg, rgba(255, 236, 190, .2) 12deg, rgba(255, 236, 190, .04) 24deg, transparent 26deg); transform-origin: 50% 0; animation: bbis-sweep 7s ease-in-out infinite alternate; }
.spot.s1 { left: -16vmax; }
.spot.s2 { right: -16vmax; animation-delay: -3.5s; animation-direction: alternate-reverse; }
@keyframes bbis-sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.carpet { position: absolute; left: 50%; bottom: 0; z-index: 1; width: 120%; height: 120px; margin-left: -60%; background: linear-gradient(180deg, transparent, var(--carpet) 35%, #5A0614); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); opacity: .85; pointer-events: none; }
.carpet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 39.6%, var(--gold-hot) 40%, transparent 40.6%, transparent 59.4%, var(--gold-hot) 60%, transparent 60.6%); opacity: .5; }
.lay-cinema .hero .lanterns, .lay-cinema .hero-mandala { opacity: .05; }
/* film-strip sections */
.sec.cine { margin: 0 6px; padding-inline: max(28px, var(--gutter)); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .2)), #0D0A0C; border-inline: 1px solid rgba(255, 255, 255, .06); }
.lay-cinema.has-fx .sec.cine:not(.paper) { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .2)), rgba(13, 10, 12, .9); }
.sec.cine::before, .sec.cine::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 12px; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 240, 210, .16) 7px 17px, transparent 17px 26px); border-radius: 2px; }
.sec.cine::before { left: 6px; }
.sec.cine::after { right: 6px; }
.sec.cine .sec-mandala { display: none; }
.lay-cinema .sec-title { color: #FFF3DD; text-shadow: 0 0 22px rgba(255, 200, 100, .35); }
.lay-cinema .eyebrow { display: inline-block; padding: 4px 12px; border: 1px solid rgba(255, 217, 121, .45); border-radius: 999px; color: var(--gold-hot); }
.js-reveal.lay-cinema .sec.cine.rv-panel:not(.in) { transform: perspective(1000px) translateX(-30px) rotateY(10deg); opacity: 0; }
.js-reveal.lay-cinema .sec.cine.rv-panel.rv-alt:not(.in) { transform: perspective(1000px) translateX(30px) rotateY(-10deg); }
/* couple as film posters */
.lay-cinema .p-frame { border-radius: 6px; border: 2px solid var(--gold-hot); box-shadow: 0 0 0 4px #0D0A0C, 0 0 0 5px rgba(255, 217, 121, .4), 0 24px 40px -20px #000; }
.lay-cinema .p-ring { display: none; }
.lay-cinema .p-name { color: #FFF3DD; }
/* events: tickets through the projector gate */
.lay-cinema .timeline { gap: 22px; }
.lay-cinema .event:not(:last-child)::after { display: none; }
.lay-cinema .jharokha { align-items: flex-start; padding: 20px 16px 20px 86px; text-align: left; border-radius: 10px; border: 1px solid rgba(255, 217, 121, .35); background: #161013; }
.lay-cinema .jharokha::after { inset: 5px 5px 5px 75px; border-radius: 6px; border-color: rgba(255, 217, 121, .15); }
.lay-cinema .ev-window { display: none; }
.lay-cinema .jharokha .ev-venue { text-align: left; }
.lay-cinema .jharokha .ev-dress { margin: 0; }
.lay-cinema .jharokha .ev-actions { justify-content: flex-start; }
.lay-cinema .ev-chip { align-self: flex-start; }
.lay-cinema .ev-stub { position: absolute; left: 0; top: 0; bottom: 0; width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(180deg, #FFE08A, #C9952F); color: #2A1405; border-right: 2px dashed rgba(0, 0, 0, .35); }
.lay-cinema .ev-stub::before, .lay-cinema .ev-stub::after { background: var(--bg); }
.lay-cinema .ev-deck .event .ev-card { background: #161013; }
.pin-cinema .ev-dim { border-radius: 10px; }
.pin-cinema .ev-deck { perspective: 900px; }
/* countdown: split-flap board */
.lay-cinema .count { gap: 8px; }
.lay-cinema .count-tile { aspect-ratio: 3 / 4; border: 0; border-radius: 8px; background: linear-gradient(180deg, #1F1A1D 0 49.5%, #000 49.5% 50.5%, #161215 50.5%); box-shadow: 0 10px 20px -10px #000, inset 0 0 0 1px rgba(255, 255, 255, .06); }
.lay-cinema .count-tile::after { display: none; }
.lay-cinema .count-num { color: var(--gold-hot); font-size: clamp(28px, 8vw, 38px); }
/* golden ticket to scratch */
.ticket-stage { display: grid; place-items: center; padding: 10px 0 18px; perspective: 900px; }
.scratch.ticket { width: min(320px, 86vw); height: 160px; aspect-ratio: auto; margin: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .8);
	-webkit-mask: radial-gradient(circle at 0 50%, transparent 14px, #000 15px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 14px, #000 15px) right / 51% 100% no-repeat;
	mask: radial-gradient(circle at 0 50%, transparent 14px, #000 15px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 14px, #000 15px) right / 51% 100% no-repeat;
	animation: bbis-ticket 5s ease-in-out infinite; }
.scratch.ticket.is-revealed { animation: bbis-pop .8s var(--ease) both; }
@keyframes bbis-ticket { 0%, 100% { transform: rotateX(8deg) rotateZ(-2deg); } 50% { transform: rotateX(-4deg) rotateZ(2deg) translateY(-6px); } }
@keyframes bbis-pop { 40% { transform: scale(1.08); } }
.ticket-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 30px; text-align: center; color: #2A1405; background: linear-gradient(135deg, #FFF0C2, #F2C96A 55%, #E2AE45); }
.ticket-under::before { content: ""; position: absolute; inset: 8px 22px; border: 1px dashed rgba(42, 20, 5, .4); border-radius: 6px; pointer-events: none; }
.tk-admit { font-family: var(--f-label); font-size: 10px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }
.tk-title { font-family: var(--f-script); font-size: 30px; line-height: 1.1; }
.lang-hi .tk-title { font-family: var(--f-dh, var(--f-deva)); font-size: 24px; }
.tk-date { font-family: var(--f-label); font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.tk-time { font-size: 12px; opacity: .8; }
.tk-no { position: absolute; right: 26px; bottom: 12px; font: 600 10px var(--f-label); letter-spacing: .12em; opacity: .6; }
.lang-hi .tk-admit { font-family: var(--f-deva); font-size: 13px; letter-spacing: 0; }
/* end credits roll */
.sec.credits-pinned { padding: 0; height: calc(100vh + var(--n) * 60vh); height: calc(100svh + var(--n) * 60svh); }
.cr-view { position: relative; flex: 1; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.credits { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 0 28px; text-align: center; will-change: transform; }
.cr-title { margin: 0 0 10px; font-family: var(--f-body); font-style: italic; font-size: 34px; color: var(--gold-hot, var(--accent)); }
.cr-block { display: grid; gap: 4px; }
.cr-role { margin: 0 0 4px; font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.lang-hi .cr-role { font-family: var(--f-deva); font-size: 15px; letter-spacing: 0; text-transform: none; }
.cr-name { margin: 0; font-family: var(--f-body); font-size: 21px; color: #FFF3DD; }
.lang-hi .cr-name { font-family: var(--f-deva); font-size: 19px; }
.cr-end { display: grid; gap: 4px; margin: 40px 0 0; }
.cr-end b { font-family: var(--f-script); font-weight: 400; font-size: 64px; line-height: 1; color: var(--gold-hot, var(--accent)); }
.lang-hi .cr-end b { font-family: var(--f-dh, var(--f-deva)); font-size: 48px; }
.cr-end span { font-family: var(--f-body); font-style: italic; font-size: 19px; color: var(--muted); }

/* ---------- Opening: film countdown ---------- */
.op-reel { background: radial-gradient(70% 50% at 50% 45%, #2A2025, #070506 75%); color: #F6EBDD; }
.op-reel .op-kicker { color: #FFD979; }
.op-reel .op-guest { color: #FFF3DD; }
.op-reel .op-hint { color: rgba(246, 235, 221, .7); }
.op-reel .op-hint::before, .op-reel .op-hint::after { background: rgba(255, 217, 121, .5); }
.reel-stage { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 22px; text-align: center; transition: transform .7s var(--ease), opacity .5s ease; }
.op.is-leaving .reel-stage { transform: scale(1.5); opacity: 0; }
.op-reel.is-open .op-hint, .op-reel.is-open .pulse-ring { opacity: 0; }
.reel-btn { position: relative; width: 220px; height: 220px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reel-btn:focus-visible { outline: none; }
.reel-btn .pulse-ring { inset: -6px; }
.leader { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #3A3034 0 44%, #1A1416 45% 47%, #2C2427 48%); box-shadow: inset 0 0 0 3px rgba(255, 240, 210, .5), inset 0 0 0 14px #1A1416, inset 0 0 0 15px rgba(255, 240, 210, .35), 0 0 60px rgba(255, 220, 160, .15); }
.leader .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(255, 240, 210, .35) 0deg, rgba(255, 240, 210, .08) 90deg, transparent 90deg); opacity: 0; }
.op-reel.is-open .leader .sweep { opacity: 1; animation: bbis-leader .52s linear 3; }
@keyframes bbis-leader { to { transform: rotate(360deg); } }
.leader .cross { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 240, 210, .4) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)), linear-gradient(transparent calc(50% - .5px), rgba(255, 240, 210, .4) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)); }
.reel-num { position: relative; font: 600 92px/1 var(--f-label); color: #FFF3DD; text-shadow: 0 0 20px rgba(255, 220, 160, .5); }
.reel-num.pop { animation: bbis-num .52s ease-out both; }
@keyframes bbis-num { from { transform: scale(1.5); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.9); opacity: .9; } }
.beam { position: absolute; left: 50%; top: -20%; width: 140vmax; height: 140%; margin-left: -70vmax; pointer-events: none; background: conic-gradient(from 170deg at 50% 0%, transparent 0deg, rgba(255, 240, 210, .1) 8deg, rgba(255, 240, 210, .03) 18deg, transparent 20deg); mix-blend-mode: screen; }
.flicker { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 140px, rgba(255, 255, 255, .03) 140px 141px); animation: bbis-flicker-bg .18s steps(2) infinite; }
@keyframes bbis-flicker-bg { 50% { opacity: .4; transform: translateX(37px); } }

@media (prefers-reduced-motion: reduce) { .spark, .spot, .flicker { display: none; } .marquee::after { animation: none; } }

@media (prefers-reduced-motion: reduce) {
	.op-ambient, .burst, .orb { display: none; }
	.arch, .wreath, .pcard { transform: none !important; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.op { transition: opacity .4s ease, visibility 0s linear .4s !important; }
}
