/* ─────────────────────────────────────────────────────────────
   Amrit & Ankita — Haveli invitation
   Palette: sindoor red, deep maroon, antique gold, ivory paper
   ───────────────────────────────────────────────────────────── */
:root {
  --sindoor: #a8301a;
  --red: #8e2414;
  --maroon: #6a170c;
  --night: #2a0804;
  --gold: #d6a94f;
  --gold-hi: #f7dc96;
  --gold-lo: #9b6c26;
  --ivory: #fbf3e3;
  --paper: #f6ead2;
  --ink: #3b170d;
  --ink-soft: #6b4330;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", "Times New Roman", serif;
  --script: "Pinyon Script", cursive;
  --deva: "Tiro Devanagari Hindi", serif;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --gold-grad: linear-gradient(135deg, #a8792c 0%, #f7dc96 38%, #d6a94f 55%, #fbe7b0 72%, #9b6c26 100%);
  --card-w: 560px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  color: var(--ivory);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(214,169,79,.12), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(143,22,25,.35), transparent 60%),
    var(--night);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
em { font-style: italic; }
.deva { font-family: var(--deva); }

/* Gold foil text */
.gold-text, .names, .sec-title em, .names-script, .date-big, .light-title {
  background: var(--gold-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: foil 8s linear infinite;
}
@keyframes foil { to { background-position: -200% 0; } }

/* ── The card column (phone-first; framed on desktop) ── */
main {
  position: relative; z-index: 2;
  max-width: var(--card-w); margin: 0 auto;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, var(--red), var(--maroon) 40%, var(--red) 70%, var(--maroon));
  box-shadow: 0 0 0 1px rgba(214,169,79,.35), 0 40px 120px rgba(0,0,0,.6);
}
@media (min-width: 600px) {
  main { margin: 32px auto 120px; border-radius: 28px; overflow: hidden; }
  main::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(214,169,79,.35); border-radius: 22px; pointer-events: none; z-index: 5; }
}

section { position: relative; padding: 88px 28px; text-align: center; overflow: hidden; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Shared typography ── */
.eyebrow-gold { font-family: var(--caps); font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 9vw, 46px); line-height: 1.08; color: var(--ivory); margin-bottom: 26px; }
.sec-title em { font-style: italic; }
.sub-title { font-family: var(--caps); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); margin: 48px 0 18px; }

.divider { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 18px auto; max-width: 260px; }
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider.dark i { background: linear-gradient(90deg, transparent, var(--gold-lo), transparent); }
.lotus-mini { width: 34px; height: 22px; display: inline-block; }
.lotus-mini svg { width: 100%; height: 100%; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--caps); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--maroon);
  background: var(--gold-grad); background-size: 200% 100%;
  box-shadow: 0 10px 30px rgba(214,169,79,.28), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .3s var(--ease), background-position .8s var(--ease), box-shadow .3s;
}
.btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(214,169,79,.4); }
.btn-gold:active { transform: scale(.97); }
.btn-gold.big { width: 100%; padding: 17px; font-size: 13px; }
.btn-ghost {
  display: inline-block; padding: 12px 24px; border-radius: 999px; border: 1px solid rgba(214,169,79,.6);
  font-family: var(--caps); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn-ghost:hover { background: rgba(214,169,79,.14); transform: translateY(-2px); }
.btn-ghost.dark { color: var(--ink); border-color: var(--gold-lo); }

/* ═══════════ 1. OPENER — cover → doors video → lotus video → still ═══════════ */
.opener { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #8e2414; transition: opacity 1.4s ease; }
.op-cover, .op-video, .op-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.op-cover { z-index: 3; transition: opacity 1s ease; }
.op-video { z-index: 2; opacity: 0; transition: opacity 2s ease; pointer-events: none; }
.op-still { z-index: 4; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.opener.s-doors #doorsVideo, .opener.s-lotus #lotusVideo { opacity: 1; }
.opener.s-doors .op-cover, .opener.s-lotus .op-cover, .opener.s-still .op-cover { opacity: 0; pointer-events: none; }
.opener.s-still .op-still { opacity: 1; }
.opener.gone { opacity: 0; pointer-events: none; }
.op-hit { position: absolute; inset: 0; z-index: 5; -webkit-tap-highlight-color: transparent; }
.opener:not(.s-cover) .op-hit { display: none; }
.op-ring { position: absolute; z-index: 4; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 1px solid rgba(247,220,150,.35); pointer-events: none; animation: floatRing 4s ease-in-out infinite; transition: opacity .6s; }
.opener:not(.s-cover) .op-ring { opacity: 0; }
@keyframes floatRing { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.12); opacity: .25; } }
.op-skip { position: absolute; z-index: 6; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; display: none; place-items: center; font-family: var(--caps); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); background: rgba(74,7,9,.7); border: 1px solid rgba(214,169,79,.6); backdrop-filter: blur(6px); }
.opener.s-doors .op-skip, .opener.s-lotus .op-skip { display: grid; }
.tap-ripple { position: absolute; z-index: 6; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 1px solid rgba(247,220,150,.7); background: rgba(247,220,150,.12); pointer-events: none; animation: tapRipple .9s ease-out forwards; }
@keyframes tapRipple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ═══════════ Ambient FX ═══════════ */
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -20px; width: 14px; height: 18px; border-radius: 80% 0 80% 0;
  animation: petalFall linear forwards; opacity: .95;
}
@keyframes petalFall {
  0% { transform: translate3d(0, 0, 0) rotate(0); }
  100% { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); opacity: .9; }
}
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 10px 3px rgba(247,220,150,.8); animation: spark .8s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); box-shadow: 0 0 8px var(--gold); }

/* ═══════════ 2. HERO ═══════════ */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 22px 96px; }
.hero-mandala { position: absolute; left: 50%; top: 36%; width: 620px; height: 620px; margin: -310px 0 0 -310px; opacity: .2; animation: spin 140s linear infinite; pointer-events: none; }
.hero-mandala.small { width: 420px; height: 420px; margin: -210px 0 0 -210px; top: 50%; opacity: .14; }
@keyframes spin { to { transform: rotate(360deg); } }
.h-step { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.h-step.in { opacity: 1; transform: none; }
.eyebrow { font-size: 17px; color: var(--gold-hi); letter-spacing: .08em; margin: 18px 0 10px; }

/* the hero continues from the opening video's last frame (feet above, lotus below) */
.hero { padding: 0 !important; min-height: 100svh; background: #a8301a; }
/* same size and crop as the full-screen video, so the hand-over is seamless */
.hero-art { position: absolute; left: 0; top: 0; width: 100%; height: 100svh; object-fit: cover; object-position: 50% 50%; }
.hero-content { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 47svh 24px 40px; }
.hero-content .eyebrow { margin: 0 0 4px; font-size: 16px; }
.hero-content .names { margin: 2px 0 14px; }
.hero-content .scratch { height: 100px; }
.hero-content .scroll-cue { margin-top: 14px; }
.spin-slow { animation: spin 140s linear infinite; }
.kicker { font-family: var(--caps); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(251,243,227,.82); margin-top: 2px; }
.names { font-family: var(--script); font-weight: 400; line-height: 1.15; margin: 8px 0 18px; display: flex; align-items: baseline; justify-content: center; gap: .18em; white-space: nowrap; font-size: clamp(46px, 13.5vw, 70px); padding: 0 .1em; }
.names .amp { font-size: .62em; }

/* scratch-to-reveal date card */
.scratch { position: relative; width: min(100%, 330px); height: 116px; border-radius: 16px; overflow: hidden; border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(74,7,9,.8), 0 0 0 6px rgba(214,169,79,.4), 0 18px 40px rgba(0,0,0,.45); }
.scratch-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 30%, rgba(214,169,79,.18), transparent 70%), var(--maroon); padding: 0 12px; }
.sd-date { font-family: var(--caps); font-size: 27px; font-weight: 600; letter-spacing: .2em; padding-left: .2em; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite; }
.sd-sub { font-size: 14.5px; font-style: italic; color: rgba(251,243,227,.85); text-align: center; }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .9s ease; }
.scratch.revealed #scratchCanvas { opacity: 0; pointer-events: none; }
.scratch-hint { font-family: var(--caps); font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }
.scratch-hint.done { opacity: 0 !important; }
.scroll-cue { position: relative; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.scroll-cue span { font-family: var(--caps); font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ═══════════ Ivory paper sections ═══════════ */
.paper {
  color: var(--ink);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .3  0 0 0 0 .1  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"),
    radial-gradient(120% 90% at 50% 0%, #fffaf0, var(--paper) 70%, #ecd9b5);
}
.corner { position: absolute; width: 54px; height: 54px; border: 2px solid var(--gold-lo); opacity: .8; }
.corner::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.corner.tl::after { top: -5px; left: -5px; } .corner.tr::after { top: -5px; right: -5px; }
.corner.bl::after { bottom: -5px; left: -5px; } .corner.br::after { bottom: -5px; right: -5px; }

.invite { padding: 92px 34px; }
.quote { font-size: 23px; font-style: italic; line-height: 1.45; color: var(--ink); }
.blessing { display: flex; flex-direction: column; gap: 6px; font-size: 17px; line-height: 1.45; color: var(--ink-soft); margin-top: 10px; }
.blessing strong { font-family: var(--caps); font-weight: 600; font-size: 14.5px; letter-spacing: .06em; color: var(--sindoor); display: flex; flex-direction: column; gap: 2px; }
.blessing strong span { white-space: nowrap; }
.blessing em { font-size: 16px; }
.names-small { font-family: var(--script); font-size: 46px; color: var(--sindoor); margin-top: 18px; }
.names-small span { color: var(--gold-lo); font-size: 34px; }

/* ═══════════ 4. COUNTDOWN ═══════════ */
.greeting { font-style: italic; font-size: 19px; color: var(--gold-hi); margin-bottom: 10px; }
.cd-big { font-family: var(--serif); font-size: clamp(26px, 7.5vw, 34px); color: rgba(251,243,227,.9); margin: -10px 0 24px; }
.cd-big span { font-family: var(--caps); font-weight: 600; font-size: 1.7em; vertical-align: -0.12em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-big em { color: var(--gold-hi); }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin: 0 auto 18px; }
.unit {
  padding: 16px 4px 12px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(251,243,227,.08), rgba(0,0,0,.18));
  border: 1px solid rgba(214,169,79,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.25);
}
.num { display: block; font-family: var(--caps); font-size: clamp(28px, 8vw, 38px); font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.num.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: translateY(-30%); opacity: .2; } 100% { transform: none; opacity: 1; } }
.lbl { font-family: var(--caps); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(251,243,227,.7); }
.cd-note { font-style: italic; font-size: 16px; color: rgba(251,243,227,.8); margin-bottom: 24px; }

/* ═══════════ 5. STORY ═══════════ */
.story { background: linear-gradient(180deg, transparent, rgba(0,0,0,.18) 30%, rgba(0,0,0,.18) 70%, transparent); }
.timeline { position: relative; margin-top: 30px; padding-bottom: 10px; }
.thread { position: absolute; left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-1px); overflow: visible; }
.thread path { stroke: url(#threadGrad); stroke: var(--gold); stroke-width: 2; fill: none; filter: drop-shadow(0 0 4px rgba(247,220,150,.8)); }
.moment { position: relative; margin-bottom: 70px; }
.moment:last-child { margin-bottom: 0; }
.knot { position: relative; z-index: 2; width: 18px; height: 18px; margin: 0 auto 18px; transform: rotate(45deg); background: var(--maroon); border: 2px solid var(--gold); box-shadow: 0 0 0 5px var(--maroon), 0 0 18px rgba(247,220,150,.5); transition: background .6s, box-shadow .6s; }
.moment.in .knot { background: var(--gold-hi); box-shadow: 0 0 0 5px var(--maroon), 0 0 26px rgba(247,220,150,.9); }
.m-year { font-family: var(--caps); font-size: 54px; font-weight: 600; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-chapter { font-family: var(--caps); font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: rgba(251,243,227,.7); margin: 8px 0 4px; }
.m-title { font-family: var(--serif); font-size: 30px; font-weight: 500; font-style: italic; color: var(--ivory); margin-bottom: 18px; }
.m-photo {
  position: relative; z-index: 2; margin: 0 auto 20px; width: min(100%, 360px); aspect-ratio: 4 / 5;
  border-radius: 180px 180px 14px 14px; overflow: hidden;
  border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--maroon), 0 0 0 7px rgba(214,169,79,.5), 0 30px 60px rgba(0,0,0,.45);
  background: var(--night);
}
.m-photo.wide { aspect-ratio: 5 / 4; border-radius: 14px; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.moment.in .m-photo img { transform: scale(1); }
.m-photo::after {   /* silk veil that lifts when the moment scrolls into view */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sindoor), var(--red));
  transform-origin: top; transition: transform 1.4s cubic-bezier(.77, 0, .18, 1) .15s;
}
.moment.in .m-photo::after { transform: scaleY(0); }
.m-text { position: relative; z-index: 2; max-width: 400px; margin: 0 auto; padding: 18px 20px; font-size: 19px; line-height: 1.55; color: rgba(251,243,227,.92); background: rgba(35,3,4,.55); border-radius: 14px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.m-diya { position: relative; z-index: 2; width: 180px; margin: 0 auto 10px; }
.m-date-pill { display: inline-block; font-family: var(--caps); font-size: 11px; letter-spacing: .3em; padding: 8px 16px; margin-bottom: 16px; border-radius: 999px; color: var(--maroon); background: var(--gold-grad); }

/* ═══════════ 6. FOLLOW THE LIGHT ═══════════ */
.light { text-align: left; padding-bottom: 96px; }
.light-pre { font-style: italic; font-size: 22px; color: var(--gold-hi); }
.light-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 11vw, 56px); line-height: 1.02; margin: 4px 0 16px; }
.light-copy { font-size: 17px; line-height: 1.5; color: rgba(251,243,227,.82); max-width: 380px; margin-bottom: 28px; }
.light-frame {
  --x: 50%; --y: 45%;
  position: relative; aspect-ratio: 3 / 4; width: 100%; border-radius: 240px 240px 18px 18px; overflow: hidden;
  border: 1px solid var(--gold); box-shadow: 0 0 0 7px var(--maroon), 0 0 0 8px rgba(214,169,79,.45), 0 30px 70px rgba(0,0,0,.5);
  touch-action: pan-y; cursor: crosshair; background: #000;
}
.light-frame img { width: 100%; height: 100%; object-fit: cover; }
.light-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 130px at var(--x) var(--y), rgba(0,0,0,0) 0%, rgba(20,2,2,.35) 45%, rgba(12,1,1,.9) 80%);
}
.light-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle 160px at var(--x) var(--y), rgba(255,214,140,.85), rgba(255,180,90,0) 70%);
}
.light-tag { position: absolute; bottom: 18px; right: 22px; font-family: var(--caps); font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase; color: rgba(247,220,150,.85); }

/* ═══════════ 7. RITUAL ═══════════ */
.ritual { background: radial-gradient(60% 50% at 50% 60%, rgba(255,170,80,.12), transparent 70%); }
.ritual-copy { font-size: 18px; line-height: 1.5; color: rgba(251,243,227,.82); max-width: 360px; margin: 0 auto 30px; }
.diya-stage { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: rgba(214,169,79,.25); }
.ring-fg { stroke: var(--gold-hi); stroke-linecap: round; stroke-dasharray: 628.3; stroke-dashoffset: 628.3; filter: drop-shadow(0 0 6px rgba(247,220,150,.9)); }
.diya-btn { position: absolute; inset: 20px; border-radius: 50%; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .3s var(--ease); }
.diya-btn:active { transform: scale(.97); }
.diya-svg { width: 170px; }
.diya-svg svg, .m-diya svg { width: 100%; height: auto; overflow: visible; }
.diya-flame-g { transform-origin: 100px 96px; transform: scale(0); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.diya-glow { opacity: 0; transition: opacity 1.2s; }
.lit .diya-flame-g { transform: scale(1); opacity: 1; }
.lit .diya-flame { animation: flicker 1.6s ease-in-out infinite; transform-origin: 100px 96px; }
.lit .diya-glow { opacity: 1; animation: glow 2.4s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.94, 1.06) skewX(2deg); } 50% { transform: scale(1.04, .95) skewX(-2deg); } 75% { transform: scale(.97, 1.03) skewX(1deg); } }
@keyframes glow { 50% { opacity: .75; } }
.ritual-status { font-family: var(--caps); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 22px; min-height: 1.4em; transition: color .4s; }
.ritual.done .ritual-status { color: var(--gold-hi); }

/* ═══════════ 8. CELEBRATIONS ═══════════ */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid rgba(214,169,79,.45); background: rgba(0,0,0,.2); margin-bottom: 28px; }
.tab { padding: 9px 18px; border-radius: 999px; font-family: var(--caps); font-size: 11px; letter-spacing: .18em; color: rgba(251,243,227,.75); transition: all .35s var(--ease); }
.tab.active { background: var(--gold-grad); color: var(--maroon); font-weight: 600; }
.events { display: grid; gap: 26px; }
.event {
  position: relative; text-align: left; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(251,243,227,.07), rgba(0,0,0,.25));
  border: 1px solid rgba(214,169,79,.5);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
  transform-style: preserve-3d; transition: transform .5s var(--ease), opacity .5s, box-shadow .4s;
}
.event.hide { display: none; }
.ev-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.event:hover .ev-photo img { transform: scale(1.06); }
.ev-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(35,3,4,.85)); }
.ev-badge { position: absolute; z-index: 2; top: 14px; left: 14px; font-family: var(--caps); font-size: 10px; letter-spacing: .26em; padding: 7px 12px; border-radius: 999px; background: rgba(35,3,4,.7); border: 1px solid rgba(214,169,79,.6); color: var(--gold-hi); backdrop-filter: blur(6px); }
.ev-icon { position: absolute; z-index: 2; bottom: -26px; right: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--maroon); border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(74,7,9,.7); }
.ev-body { padding: 22px 22px 22px; }
.ev-tag { font-family: var(--caps); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.ev-title { font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1.1; color: var(--ivory); margin: 6px 0 10px; }
.ev-meta { display: grid; gap: 6px; font-size: 17px; color: rgba(251,243,227,.88); margin-bottom: 12px; }
.ev-meta span { display: flex; gap: 10px; align-items: baseline; }
.ev-meta b { font-family: var(--caps); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; color: var(--gold); min-width: 52px; }
.ev-desc { font-size: 17px; line-height: 1.5; font-style: italic; color: rgba(251,243,227,.8); }
.ev-more { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.event.open .ev-more { max-height: 420px; }
.ev-dress { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(214,169,79,.35); }
.ev-dress p { font-size: 16px; color: var(--ivory); margin: 4px 0 10px; }
.ev-dress p.ev-tag { font-size: 9.5px; margin: 0; color: var(--gold); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(251,243,227,.8); padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(0,0,0,.25); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.ev-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ev-actions a, .ev-actions button { font-family: var(--caps); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(214,169,79,.55); color: var(--gold-hi); text-decoration: none; transition: background .3s; }
.ev-actions a:hover, .ev-actions button:hover { background: rgba(214,169,79,.15); }
.ev-toggle { margin-top: 12px; font-family: var(--caps); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }
.ev-toggle::after { content: "+"; font-size: 15px; transition: transform .4s; }
.event.open .ev-toggle::after { transform: rotate(45deg); }

/* ═══════════ 9. VENUE ═══════════ */
.venue-photo { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--gold); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.venue-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
.venue-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 20px 18px; background: linear-gradient(transparent, rgba(35,3,4,.92)); display: flex; flex-direction: column; gap: 2px; }
.venue-photo strong { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--gold-hi); }
.venue-photo span { font-family: var(--caps); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: rgba(251,243,227,.8); }
.venue-actions { margin: 24px 0 18px; }
.map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid rgba(214,169,79,.5); height: 220px; filter: sepia(.25) saturate(.9); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.travel { display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
@media (min-width: 480px) { .travel { grid-template-columns: 1fr 1fr; } .travel-card.wide { grid-column: 1 / -1; } }
.travel-card { padding: 20px; border-radius: 18px; background: rgba(0,0,0,.22); border: 1px solid rgba(214,169,79,.4); }
.t-icon { font-size: 22px; }
.travel-card h4 { font-family: var(--caps); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); margin: 8px 0 10px; }
.travel-card p { font-size: 16.5px; line-height: 1.45; color: rgba(251,243,227,.85); margin-bottom: 6px; }
.travel-card strong { color: var(--ivory); font-weight: 600; }
.stay-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.stay-times div { padding: 12px 10px; border-radius: 14px; text-align: center; background: rgba(0,0,0,.22); border: 1px solid rgba(214,169,79,.45); }
.stay-times span { display: block; font-family: var(--caps); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.stay-times strong { font-family: var(--caps); font-size: 19px; color: var(--gold-hi) !important; letter-spacing: .04em; }
.stay-times em { display: block; margin-top: 2px; font-size: 14.5px; color: rgba(251,243,227,.82); }

/* ═══════════ 10. RSVP ═══════════ */
.rsvp-card { position: relative; border-radius: 24px; padding: 44px 24px 34px; text-align: left; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(155,108,38,.45);
  background: rgba(255,255,255,.6); font: inherit; font-size: 18px; color: var(--ink); outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 4px rgba(214,169,79,.22); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { padding: 14px 10px; border-radius: 14px; border: 1px solid rgba(155,108,38,.45); font-size: 17px; color: var(--ink-soft); background: rgba(255,255,255,.4); transition: all .3s var(--ease); }
.opt.active { background: var(--sindoor); border-color: var(--sindoor); color: var(--ivory); box-shadow: 0 10px 22px rgba(143,22,25,.3); }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(155,108,38,.45); border-radius: 999px; padding: 4px; background: rgba(255,255,255,.4); }
.stepper button { width: 42px; height: 42px; border-radius: 50%; font-size: 22px; color: var(--sindoor); transition: background .2s; }
.stepper button:hover { background: rgba(214,169,79,.2); }
.stepper output { min-width: 42px; text-align: center; font-family: var(--caps); font-size: 20px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(155,108,38,.45); font-size: 15px; color: var(--ink-soft); background: rgba(255,255,255,.4); transition: all .25s; }
.chip.on { background: rgba(143,22,25,.1); border-color: var(--sindoor); color: var(--sindoor); }
.chip.on::before { content: "✓ "; }
.is-declining #guestsField, .is-declining #eventsField { opacity: .35; pointer-events: none; }
.form-error { color: var(--sindoor); font-style: italic; min-height: 1.3em; margin: -6px 0 10px; }
.btn-wa { display: block; text-align: center; margin-top: 14px; padding: 13px; border-radius: 999px; border: 1px solid #1c8c4e; color: #146c3c; font-family: var(--caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .3s; }
.btn-wa:hover { background: rgba(37,211,102,.1); }
.rsvp-done { text-align: center; padding: 20px 0 6px; }
.rsvp-done h3 { font-family: var(--script); font-size: 54px; font-weight: 400; color: var(--sindoor); margin: 14px 0 4px; }
.rsvp-done p { font-size: 19px; color: var(--ink-soft); margin-bottom: 20px; line-height: 1.5; }
.stamp { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; border: 3px double var(--sindoor); color: var(--sindoor); font-family: var(--caps); font-weight: 700; letter-spacing: .2em; font-size: 13px; transform: rotate(-12deg); animation: stamp .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }
.rsvp-contact { margin-top: 22px; font-size: 16px; color: rgba(251,243,227,.8); }
.rsvp-contact a { color: var(--gold-hi); }

/* ═══════════ 11. CLOSING ═══════════ */
.closing { padding: 110px 28px 150px; }
.closing-pre { font-family: var(--caps); font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
.names-script { font-family: var(--script); font-size: clamp(44px, 12.5vw, 72px); margin: 12px 0; line-height: 1.2; white-space: nowrap; padding: 0 .1em; }
.closing-copy { font-size: 19px; font-style: italic; line-height: 1.5; color: rgba(251,243,227,.85); max-width: 380px; margin: 0 auto 26px; }
.dedication { max-width: 360px; margin: 0 auto 30px; padding: 20px 18px 16px; border-top: 1px solid rgba(214,169,79,.35); border-bottom: 1px solid rgba(214,169,79,.35); }
.ded-shloka { font-size: 14px; line-height: 1.7; color: var(--gold); letter-spacing: .02em; margin-bottom: 14px; }
.ded-text { font-size: 17px; line-height: 1.8; color: rgba(251,243,227,.9); }
.ded-sign { margin-top: 10px; font-size: 18px; color: var(--gold-hi); }
.hashtag { font-family: var(--caps); font-size: 14px; letter-spacing: .22em; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-hi); background: rgba(214,169,79,.08); }
.closing-actions { margin-top: 16px; }
.credit { position: absolute; right: 18px; bottom: 86px; font-family: var(--serif); font-style: italic; font-size: 12.5px; color: rgba(247,220,150,.6); letter-spacing: .02em; }
.credit span { font-family: var(--caps); font-style: normal; font-size: 10.5px; letter-spacing: .14em; color: rgba(247,220,150,.85); }
.closing-foot { margin-top: 40px; font-family: var(--caps); font-size: 10px; letter-spacing: .34em; color: rgba(247,220,150,.6); }

/* ═══════════ Dock + toast ═══════════ */
.dock {
  position: fixed; z-index: 50; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); transition: transform .8s var(--ease);
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(35,3,4,.82); border: 1px solid rgba(214,169,79,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: calc(100vw - 20px);
}
.dock.show { transform: translate(-50%, 0); }
.dock a { padding: 9px 11px; font-family: var(--caps); font-size: 10px; letter-spacing: .14em; text-decoration: none; color: rgba(251,243,227,.85); border-radius: 999px; transition: color .3s, background .3s; }
.dock a:hover, .dock a.current { color: var(--gold-hi); background: rgba(214,169,79,.12); }
.dock .dock-rsvp { background: var(--gold-grad); color: var(--maroon); font-weight: 600; }
.music { display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; margin-left: 2px; border-radius: 999px; border: 1px solid rgba(214,169,79,.45); font-family: var(--caps); font-size: 10px; letter-spacing: .12em; color: var(--gold-hi); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 100%; background: var(--gold-hi); border-radius: 2px; animation: eq .8s ease-in-out infinite; transform-origin: bottom; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music.paused .eq i { animation: none; transform: scaleY(.3); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--ivory); color: var(--ink); font-size: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.4); transition: all .4s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) { .dock a { padding: 9px 7px; letter-spacing: .06em; } .music-lbl { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ After the wedding ═══════════ */
.thanks-note { max-width: 400px; margin: 4px auto 0; font-size: 19px; font-style: italic; line-height: 1.6; color: rgba(251,243,227,.9); }
.rsvp-closed { text-align: center; padding: 10px 0 6px; }
.rsvp-closed h3 { font-family: var(--script); font-size: 46px; font-weight: 400; color: var(--sindoor); margin: 16px 0 6px; }
.rsvp-closed p { font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-item { border-radius: 16px; overflow: hidden; border: 1px solid rgba(214,169,79,.5); aspect-ratio: 4 / 5; }
.g-item:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }

/* ═══════════ Personal greeting (?to=Sharma Family) ═══════════ */
.op-guest { position: absolute; z-index: 4; left: 0; right: 0; top: calc(16% + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; transition: opacity .6s; }
.op-guest span { font-family: var(--caps); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,232,190,.85); }
.op-guest strong { font-family: var(--script); font-weight: 400; font-size: clamp(30px, 9vw, 44px); color: #fbe3b4; text-shadow: 0 2px 10px rgba(60,10,0,.55); padding: 0 16px; text-align: center; line-height: 1.15; }
.opener:not(.s-cover) .op-guest { opacity: 0; }
.guest-hello { font-style: italic; font-size: 20px; color: #fbe3b4; margin-bottom: 4px; text-shadow: 0 1px 6px rgba(60,10,0,.5); }
.guest-hello strong { font-style: normal; font-family: var(--script); font-weight: 400; font-size: 1.5em; color: var(--gold-hi); }
