/* =========================================================
   Dhruv & Shristi — Engagement invitation
   Jewel-tone night world: aubergine & navy sky, rani velvet,
   peacock teal, marigold, gold leaf, brass lanterns.
   ========================================================= */

:root {
  --night: #1a0b26;
  --night-2: #2a1040;
  --navy: #0f1030;
  --rani: #c2166f;
  --rani-hot: #ff4fa3;
  --rani-deep: #7d0b47;
  --marigold: #ffa31a;
  --teal: #0b6e70;
  --teal-deep: #06474a;
  --gold: #f2c14e;
  --gold-pale: #fff1b8;
  --maroon: #4a0a24;
  --ivory: #fff3e6;
  --ivory-dim: #f3d9e6;

  --f-display: "Rozha One", Georgia, serif;
  --f-script: "Imperial Script", cursive;
  --f-body: "Martel", Georgia, serif;
  --f-deva: "Tiro Devanagari Hindi", "Martel", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .5, 1);
  --scallop: 22px;
  --gutter: clamp(16px, 5vw, 48px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.7;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.8rem); line-height: 1.05;
  margin: 0 0 .5rem; text-wrap: balance; color: var(--gold-pale);
}
.sub { margin: 0 auto 1rem; max-width: 46ch; color: var(--ivory-dim); text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.5rem; border: 0; border-radius: 999px;
  font: 700 .95rem/1.2 var(--f-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--rani { background: linear-gradient(180deg, #e0218a, var(--rani) 60%, var(--rani-deep)); color: var(--gold-pale); box-shadow: 0 10px 22px -10px rgba(125,11,71,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost { background: transparent; color: var(--gold-pale); box-shadow: inset 0 0 0 1.5px rgba(255,241,184,.7); }
.btn--ghost:hover { background: rgba(255,241,184,.1); }
.btn--small { min-height: 42px; font-size: .85rem; }

/* =========================================================
   INTRO — 3D velvet ring box
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; align-content: center; gap: .6rem;
  background:
    radial-gradient(55% 45% at 50% 52%, #4b1240 0%, transparent 70%),
    radial-gradient(120% 70% at 50% 115%, #2d0a2a 0%, transparent 60%),
    linear-gradient(180deg, #12071c, var(--night));
  overflow: hidden;
  transition: opacity 1.2s var(--ease-out) .25s, visibility 0s linear 1.5s;
}
.intro__stars {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 14%, #fffa 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 84% 62%, #ffd76a 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 78%, #fff8 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 52% 48%, #ffd76a88 50%, transparent 51%);
  background-size: 280px 280px;
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate3d(-280px, -140px, 0); } }
.intro__spot {
  position: absolute; left: 50%; top: 0; width: min(520px, 120vw); height: 75%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255,226,170,.12) 172deg, rgba(255,226,170,.18) 180deg, rgba(255,226,170,.12) 188deg, transparent 200deg);
  filter: blur(6px);
  pointer-events: none;
}
.intro__top {
  position: relative; margin: 0; font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem); color: var(--gold-pale);
  transition: opacity .6s, transform .8s var(--ease-out);
}
.intro__hint {
  position: relative; margin: 0; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim);
  animation: pulse 2.2s ease-in-out infinite; transition: opacity .4s;
}
@keyframes pulse { 50% { opacity: .4; } }
.intro__reveal {
  position: absolute; left: 0; right: 0; bottom: max(8svh, 48px); margin: 0; text-align: center;
  display: grid; justify-items: center; gap: .1rem; pointer-events: none;
}
.intro__reveal span, .intro__reveal small { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); }
.intro__reveal span { font-family: var(--f-script); font-size: clamp(3rem, 2rem + 5vw, 4.6rem); line-height: 1; color: var(--ivory); text-shadow: 0 6px 24px rgba(194,22,111,.6); }
.intro__reveal small { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-pale); transition-delay: .25s; }

.intro.is-opening .intro__hint { opacity: 0; animation: none; }
.intro.is-opening .intro__top { opacity: 0; transform: translateY(-14px); }
.intro.is-revealed .intro__reveal span, .intro.is-revealed .intro__reveal small { opacity: 1; transform: none; filter: none; }
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro.is-leaving .stage { transform: scale(var(--s)) translateY(-6%) scale(2.2); filter: blur(10px); }
.intro.is-leaving .intro__reveal { opacity: 0; transition: opacity .6s; }

/* stage + box geometry: W 230, base H 92, depth D 150, lid H 54 */
.stage {
  --s: 1;
  position: relative; width: 320px; height: 330px;
  padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1100px; perspective-origin: 50% 20%;
  transform: scale(var(--s));
  transition: transform 1.4s cubic-bezier(.7, 0, .3, 1), filter 1.2s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 400px) { .stage { --s: .86; margin-block: -20px; } }
.floorshadow {
  position: absolute; left: 50%; top: 82%; width: 280px; height: 46px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
  filter: blur(4px);
}
.box {
  position: absolute; left: 50%; top: 58%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-14deg);
  animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotateX(-24deg) rotateY(-16deg) translateY(0); } to { transform: rotateX(-20deg) rotateY(14deg) translateY(-8px); } }
.intro.is-opening .box { animation-play-state: paused; }
.stage:hover .box { animation-duration: 4s; }

.f { position: absolute; display: block; backface-visibility: visible; }
.box > .f, .lid > .f { transform-style: preserve-3d; }

/* velvet */
.base-front, .base-back, .base-left, .base-right, .lid-front, .lid-back, .lid-left, .lid-right, .lid-top, .base-bottom {
  background-color: #8c0d4e;
  background-image: var(--noise), linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.28));
}
.base-front { left: -115px; top: 0; width: 230px; height: 92px; transform: translateZ(75px); border-radius: 0 0 14px 14px; background-color: #a3115a; box-shadow: inset 0 -14px 22px rgba(0,0,0,.35); }
.base-back  { left: -115px; top: 0; width: 230px; height: 92px; transform: rotateY(180deg) translateZ(75px); background-color: #5c0733; }
.base-left  { left: -75px; top: 0; width: 150px; height: 92px; transform: rotateY(-90deg) translateZ(115px); background-color: #6e0a3f; }
.base-right { left: -75px; top: 0; width: 150px; height: 92px; transform: rotateY(90deg) translateZ(115px); background-color: #6e0a3f; }
.base-bottom { left: -115px; top: 17px; width: 230px; height: 150px; transform: rotateX(90deg); background-color: #3d0422; }
.trim { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #8a5a12, #fff1b8 30%, #d5a23c 55%, #fff1b8 75%, #8a5a12); }
.trim--lid { top: auto; bottom: 0; }

.cushion {
  left: -107px; top: -53px; width: 214px; height: 134px;
  transform: rotateX(90deg);
  border-radius: 22px;
  background: radial-gradient(60% 46% at 50% 28%, #fff9fc, transparent 70%), radial-gradient(60% 46% at 50% 74%, #fff4f9, transparent 70%), linear-gradient(180deg, #f6cfe0, #e6a9c6);
  box-shadow: inset 0 0 0 6px #d58fb3, inset 0 0 20px rgba(125,11,71,.35);
}
.slit { position: absolute; left: 10%; right: 10%; top: calc(50% - 2px); height: 5px; border-radius: 4px; background: linear-gradient(180deg, #6e0a3f, #b8547f); }

.bloom {
  position: absolute; left: -140px; top: -230px; width: 280px; height: 260px;
  transform: translateZ(-40px);
  background: radial-gradient(closest-side, rgba(255,240,200,.85), rgba(255,180,220,.35) 45%, transparent 75%);
  opacity: 0; transition: opacity 1.2s ease .45s;
  pointer-events: none;
}
.intro.is-opening .bloom { opacity: 1; }

.ring {
  position: absolute; left: -80px; top: -138px; width: 160px; height: 190px;
  transform: translateZ(4px) translateY(46px) rotateY(-35deg) scale(.86);
  opacity: 0;
  transition: transform 1.6s cubic-bezier(.2, .9, .25, 1.06) .75s, opacity .35s ease .75s;
}
.ring__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(60,0,30,.45)); }
.intro.is-opening .ring { transform: translateZ(4px) translateY(0) rotateY(0) scale(1); opacity: 1; }
.ring__sheen { transform: skewX(-20deg) translateX(0); }
.intro.is-opening .ring__sheen { animation: sheen 1.4s ease-in-out 1.7s both; }
@keyframes sheen { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(280px); } }
.flare {
  position: absolute; left: 50%; top: 14%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  background:
    radial-gradient(closest-side, #fff 0 6%, rgba(255,255,255,.6) 12%, transparent 40%),
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.95) 49.5% 50.5%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(255,255,255,.95) 49.5% 50.5%, transparent 52%);
  mix-blend-mode: screen; opacity: 0; transform: scale(.2) rotate(0);
  pointer-events: none;
}
.intro.is-opening .flare { animation: flare 1.6s var(--ease-out) 2.1s both; }
@keyframes flare { 0% { opacity: 0; transform: scale(.2) rotate(0); } 30% { opacity: 1; transform: scale(1.15) rotate(30deg); } 100% { opacity: 0; transform: scale(.5) rotate(70deg); } }

/* lid, hinged at the back-top edge */
.lid {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform-style: preserve-3d; transform-origin: 0 0;
  transform: translateZ(-75px) rotateX(0deg);
  transition: transform 1.5s var(--ease-spring) .2s;
}
.intro.is-opening .lid { transform: translateZ(-75px) rotateX(106deg); }
.lid-top   { left: -115px; top: -129px; width: 230px; height: 150px; transform: translateZ(75px) rotateX(90deg); border-radius: 16px; background-color: #b8166a; background-image: var(--noise), radial-gradient(70% 60% at 40% 35%, rgba(255,255,255,.28), transparent 70%); }
.lid-front { left: -115px; top: -54px; width: 230px; height: 54px; transform: translateZ(150px); border-radius: 14px 14px 0 0; background-color: #b31463; display: grid; place-items: center; }
.lid-back  { left: -115px; top: -54px; width: 230px; height: 54px; transform: rotateY(180deg); background-color: #5c0733; }
.lid-left  { left: -75px; top: -54px; width: 150px; height: 54px; transform: translateZ(75px) rotateY(-90deg) translateZ(115px); background-color: #7d0b47; }
.lid-right { left: -75px; top: -54px; width: 150px; height: 54px; transform: translateZ(75px) rotateY(90deg) translateZ(115px); background-color: #7d0b47; }
.lid-inner {
  left: -108px; top: -71px; width: 216px; height: 138px;
  transform: translateZ(75px) rotateX(-90deg) translateZ(2px);
  border-radius: 14px;
  background: radial-gradient(80% 70% at 50% 40%, #fffafc, #f3d2e2 70%, #e3a8c4);
  box-shadow: inset 0 0 0 5px #d58fb3;
  display: grid; place-items: center;
}
.mono { font-family: var(--f-script); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--gold-pale); text-shadow: 0 1px 0 #8a5a12, 0 2px 5px rgba(0,0,0,.4); }
.mono i, .satin-mono i { font-style: normal; font-size: .7em; color: var(--gold); padding-inline: .08em; }
.satin-mono { font-family: var(--f-script); font-weight: 400; font-size: 1.9rem; color: #b98222; text-shadow: 0 1px 0 #fff; }

/* =========================================================
   PETALS + MUSIC
   ========================================================= */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.music {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rani); color: var(--gold-pale); box-shadow: 0 10px 22px -8px rgba(0,0,0,.6); display: grid; place-items: center;
}
.music[hidden] { display: none; }
.music svg { width: 22px; height: 22px; }
.music[aria-pressed="true"] { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 140px var(--gutter) 80px;
  background:
    radial-gradient(70% 45% at 50% 40%, rgba(194,22,111,.42), transparent 70%),
    radial-gradient(50% 40% at 85% 92%, rgba(11,110,112,.45), transparent 70%),
    radial-gradient(45% 35% at 10% 85%, rgba(255,163,26,.2), transparent 70%),
    linear-gradient(180deg, #12061c, var(--night) 40%, var(--night-2));
  overflow: hidden; isolation: isolate;
}
.hero__lights {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 28%, rgba(255,201,77,.55) 0 3px, transparent 14px),
    radial-gradient(circle at 92% 22%, rgba(255,201,77,.5) 0 3px, transparent 16px),
    radial-gradient(circle at 15% 60%, rgba(255,79,163,.45) 0 4px, transparent 20px),
    radial-gradient(circle at 88% 55%, rgba(255,201,77,.45) 0 3px, transparent 18px),
    radial-gradient(circle at 5% 80%, rgba(255,201,77,.5) 0 2px, transparent 12px),
    radial-gradient(circle at 95% 78%, rgba(255,79,163,.4) 0 4px, transparent 22px);
  animation: shimmer 5s ease-in-out infinite alternate;
}
@keyframes shimmer { to { opacity: .55; } }
.hero__inner { width: min(860px, 100%); text-align: center; display: grid; justify-items: center; }

.toran { position: absolute; top: 0; left: 0; right: 0; height: 120px; pointer-events: none; z-index: 2; }
.toran svg { width: 100%; height: 100%; overflow: visible; }
.toran .drop { transform-box: fill-box; transform-origin: 50% 0; animation: sway2 3.6s ease-in-out infinite alternate; }
@keyframes sway2 { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.toran--bottom { position: relative; height: 80px; margin-top: 2.5rem; transform: scaleY(-1); }

.krishna { display: grid; justify-items: center; margin-bottom: 1.2rem; }
.krishna__art { width: clamp(150px, 30vw, 210px); height: auto; overflow: visible; filter: drop-shadow(0 8px 18px rgba(18,164,160,.25)); }
.feather { transform-box: fill-box; transform-origin: 70% 100%; animation: featherSway 5s ease-in-out infinite alternate; }
@keyframes featherSway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.tassel { animation: tassel 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes tassel { to { transform: rotate(8deg); } }
.krishna__text {
  margin: .2rem 0 0; font-family: var(--f-deva);
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); line-height: 1.3;
  color: var(--gold); text-shadow: 0 2px 0 #6e3a08, 0 0 24px rgba(242,193,78,.35);
}

.hero__lead { margin: 0 0 .4rem; max-width: 38ch; font-size: clamp(1rem, .9rem + .5vw, 1.2rem); color: var(--ivory-dim); text-wrap: balance; }
.names { margin: .2rem 0 1.4rem; font-weight: 400; display: grid; justify-items: center; line-height: .95; }
.names__one, .names__two {
  font-family: var(--f-script); font-size: clamp(4.4rem, 2.4rem + 11vw, 9.5rem); color: var(--ivory);
  text-shadow: 0 2px 0 var(--rani-deep), 0 10px 30px rgba(194,22,111,.55); padding-inline: .15em;
}
.names__amp { font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); color: var(--marigold); line-height: 1; margin: -.15em 0 -.05em; }
.datepill {
  display: inline-flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: center;
  padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none;
  background: rgba(255,241,184,.08); box-shadow: inset 0 0 0 1.5px rgba(242,193,78,.65);
  font-size: .9rem; letter-spacing: .08em; color: var(--ivory-dim); transition: background-color .3s;
}
.datepill:hover { background: rgba(255,241,184,.16); }
.datepill b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; color: var(--gold); }
@media (max-width: 520px) { .datepill { flex-direction: column; gap: .1rem; border-radius: 28px; padding: .8rem 1.6rem; } }
.scrollcue { margin-top: 2.2rem; width: 28px; height: 46px; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255,241,184,.55); display: grid; justify-items: center; }
.scrollcue span { width: 4px; height: 9px; margin-top: 9px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   DANCE STORY
   ========================================================= */
.story { position: relative; height: 380vh; background: linear-gradient(180deg, var(--night-2), var(--navy) 30%, var(--navy) 80%, #0c2a3a); }
.story__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__backdrop { position: absolute; inset: 0; }
.story__backdrop::before { /* velvet curtain glow */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 55% at 50% 72%, rgba(255,190,120,.22), transparent 70%),
    radial-gradient(40% 50% at 0% 40%, rgba(194,22,111,.28), transparent 70%),
    radial-gradient(40% 50% at 100% 40%, rgba(18,164,160,.22), transparent 70%);
}
.arches { position: absolute; inset: 0; width: 100%; height: 100%; }
.arches .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .8s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scaleY(1.18) scaleX(.9); opacity: .85; } }
.strings { position: absolute; inset: 0 0 auto 0; height: 70%; pointer-events: none; }
.strings i {
  position: absolute; top: 0; width: 8px; height: var(--h);
  background: radial-gradient(circle, #ffe7a1 0 1.8px, rgba(255,231,161,.35) 2.6px, transparent 4px) 0 0 / 8px 22px repeat-y;
  filter: drop-shadow(0 0 3px rgba(255,214,120,.8));
  animation: twinkle var(--t, 3s) ease-in-out infinite alternate;
}
.strings i::after { content: ""; position: absolute; left: 3.5px; top: 0; bottom: 0; width: 1px; background: rgba(255,231,161,.25); }
@keyframes twinkle { to { opacity: .45; } }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 30%;
  background: repeating-conic-gradient(#efe0c4 0 25%, #1b1638 0 50%) 0 0 / 90px 90px;
  transform: perspective(260px) rotateX(58deg); transform-origin: 50% 100%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}

.story__sticky::after { /* dark halo so captions read over the garlands */
  content: ""; position: absolute; left: 50%; top: -12svh; width: min(900px, 140vw); height: 46svh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10,8,32,.82), rgba(10,8,32,.5) 55%, transparent);
  z-index: 2; pointer-events: none;
}
.story__captions { position: absolute; left: 0; right: 0; top: max(9svh, 64px); text-align: center; padding-inline: var(--gutter); z-index: 3; }
.cap {
  position: absolute; left: 0; right: 0; margin: 0 auto; max-width: 22ch; padding-inline: var(--gutter);
  font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; color: var(--gold-pale);
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), filter .7s;
}
.cap.is-on { opacity: 1; transform: none; filter: none; }

.couple {
  position: absolute; left: 50%; bottom: 2svh; z-index: 2;
  height: min(70svh, 680px); width: auto; aspect-ratio: 400 / 520;
  transform: translateX(-50%); overflow: visible;
}
.couple .eyes { transform-box: fill-box; transform-origin: 50% 60%; animation: blink 5.5s infinite; }
#shristi .eyes { animation-delay: -2.3s; }
@keyframes blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.12); } }
.hand-sparks { opacity: 0; transition: opacity .6s; }
.hand-sparks.is-on { opacity: 1; }
.hand-sparks path { transform-box: fill-box; transform-origin: center; animation: spark 1.6s ease-in-out infinite alternate; }
.hand-sparks path:nth-child(2) { animation-delay: -.5s; } .hand-sparks path:nth-child(3) { animation-delay: -1s; }
@keyframes spark { from { transform: scale(.5) rotate(0); opacity: .4; } to { transform: scale(1.15) rotate(25deg); opacity: 1; } }
.hand-sparks .heart { animation: heartUp 2.4s var(--ease-out) infinite; }
@keyframes heartUp { 0% { transform: translateY(14px) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px) scale(1); opacity: 0; } }

.story__final { position: absolute; left: 0; right: 0; top: max(8svh, 56px); text-align: center; z-index: 3; pointer-events: none; }
.story__names, .story__date { margin: 0; opacity: 0; transform: translateY(24px) scale(.96); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s; }
.story__names { font-family: var(--f-script); font-size: clamp(3.2rem, 2rem + 6vw, 6rem); line-height: 1.05; color: var(--ivory); text-shadow: 0 6px 28px rgba(194,22,111,.7); }
.story__names i { font-style: normal; font-family: var(--f-display); font-size: .5em; color: var(--marigold); }
.story__date { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); letter-spacing: .1em; color: var(--gold); transition-delay: .2s; }
.story__final.is-on .story__names, .story__final.is-on .story__date { opacity: 1; transform: none; filter: none; }
.story__hint { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; z-index: 3; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); opacity: .75; transition: opacity .4s; }
.story__hint.is-off { opacity: 0; }

/* =========================================================
   BANDS — colour fields with scalloped jharokha edges
   ========================================================= */
.band { position: relative; padding: clamp(84px, 10vw, 140px) 0; overflow-x: clip; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--scallop) * -1 + 1px); height: var(--scallop);
  background: radial-gradient(circle at 50% 100%, var(--band) calc(var(--scallop) - 1px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
  z-index: 1;
}
.band > * { position: relative; z-index: 2; }
.band--teal { --band: var(--teal); background: radial-gradient(70% 60% at 100% 0%, #0e8a8c, transparent 60%), radial-gradient(60% 60% at 0% 100%, #085556, transparent 70%), var(--teal); }
.band--teal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff1b8' stroke-width='1.2'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 18c6 8 6 14 0 22-6-8-6-14 0-22zM40 62c6-8 6-14 0-22-6 8-6 14 0 22zM18 40c8-6 14-6 22 0-8 6-14 6-22 0zM62 40c-8-6-14-6-22 0 8 6 14 6 22 0z'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='80' cy='0' r='6'/%3E%3Ccircle cx='0' cy='80' r='6'/%3E%3Ccircle cx='80' cy='80' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Venue ---------- */
.venue { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 880px) { .venue { grid-template-columns: 1fr 1.05fr; } }

.pass {
  position: relative; justify-self: center; width: min(440px, 100%);
  padding: 2rem clamp(1.4rem, 4vw, 2.2rem) 2rem;
  border-radius: 26px;
  color: var(--maroon);
  background:
    radial-gradient(90% 50% at 50% 0%, #fff, transparent 70%),
    linear-gradient(180deg, #fff6ea, #ffe7d6);
  box-shadow: 0 34px 50px -30px rgba(0,0,0,.65), inset 0 0 0 6px #fff, inset 0 0 0 7.5px rgba(194,140,40,.6);
  transform: rotate(-1.5deg);
  transition: transform .8s var(--ease-out);
}
.pass:hover { transform: rotate(0); }
.pass__head { display: flex; align-items: center; gap: .7rem; }
.pass__pin { width: 32px; height: 42px; flex: none; animation: pinDrop 2.6s var(--ease-out) infinite; transform-origin: 50% 100%; }
@keyframes pinDrop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-10px); } 80% { transform: translateY(0) scaleY(.92); } }
.pass__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); line-height: 1; color: var(--rani-deep); }
.pass__venue { margin: 1.1rem 0 .2rem; font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1.1; color: var(--teal-deep); }
.pass__addr { font-style: normal; font-size: 1.05rem; line-height: 1.6; }
.pass__perf { position: relative; margin: 1.4rem calc(-1 * clamp(1.4rem, 4vw, 2.2rem)); height: 0; border-top: 2px dashed rgba(125,11,71,.3); }
.pass__perf::before, .pass__perf::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); }
.pass__perf::before { left: -14px; } .pass__perf::after { right: -14px; }
.pass__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.5rem; text-align: center; }
.pass__grid div { padding: .6rem .3rem; border-radius: 14px; background: rgba(194,22,111,.07); }
.pass__grid dt { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rani); }
.pass__grid dd { margin: .1rem 0 0; font-family: var(--f-display); font-size: clamp(.98rem, .9rem + .4vw, 1.15rem); line-height: 1.2; }
.pass .btn { width: 100%; }

.mapframe { position: relative; width: min(480px, 100%); margin-inline: auto; padding-top: 46px; }
.mapframe__arch {
  position: relative; aspect-ratio: 4 / 4.6;
  border-radius: 999px 999px 26px 26px; overflow: hidden; padding: 12px;
  background: linear-gradient(180deg, #ffe7a1, #d5a23c 40%, #8a5a12);
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.7), inset 0 0 0 3px #fff1b8;
}
.mapframe__arch::before { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1.5px dashed rgba(122,76,14,.7); pointer-events: none; z-index: 2; }
.mapframe iframe { width: 100%; height: 100%; border: 0; border-radius: 999px 999px 16px 16px; background: #e8efe8; filter: saturate(1.15) contrast(1.03); }
.mapframe__crown {
  position: absolute; left: 50%; top: 4px; width: 64px; height: 56px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%238a5a12'/%3E%3Cstop offset='.4' stop-color='%23fff1b8'/%3E%3Cstop offset='1' stop-color='%23b9822a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M32 2 C36 10 40 12 40 18 C40 22 36 24 32 24 C28 24 24 22 24 18 C24 12 28 10 32 2Z' fill='%23c2166f'/%3E%3Cpath d='M8 54 C10 36 20 28 32 26 C44 28 54 36 56 54Z' fill='url(%23g)'/%3E%3Ccircle cx='32' cy='42' r='6' fill='%23c2166f'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.35));
}
.lamp { position: absolute; top: 0; width: 26px; height: 120px; transform-origin: 50% 0; animation: lampSwing 3.4s ease-in-out infinite alternate; z-index: 3; }
.lamp--l { left: 4%; } .lamp--r { right: 4%; animation-delay: -1.7s; }
.lamp::before { content: ""; position: absolute; left: 12px; top: 0; width: 2px; height: 70px; background: #e8be5a; }
.lamp::after {
  content: ""; position: absolute; left: 0; top: 66px; width: 26px; height: 44px;
  background: url("assets/lantern.svg") center/contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255,190,90,.9));
}
@keyframes lampSwing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (max-width: 520px) { .lamp { display: none; } }

/* ---------- Countdown: lanterns ---------- */
.band--sky { --band: var(--navy); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; background: radial-gradient(60% 50% at 50% 100%, rgba(255,163,26,.18), transparent 70%), linear-gradient(180deg, var(--navy), #170b2c 70%, var(--night)); }
.sky {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 8%, #fffc 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 55% 30%, #ffe7a1 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 90% 34%, #fffc 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 44%, #fff9 50%, transparent 51%);
  background-size: 360px 300px;
  animation: twinkle 3s ease-in-out infinite alternate;
}
.moon { position: absolute; right: 9%; top: 70px; width: 54px; height: 54px; border-radius: 50%; box-shadow: 12px -8px 0 0 #fff1b8; filter: drop-shadow(0 0 14px rgba(255,241,184,.55)); }
.lanterns {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 3vw, 44px);
  margin-top: 1.4rem; padding-top: 6px;
}
.lanterns::before { /* the rope */
  content: ""; position: absolute; left: 6%; right: 6%; top: 4px; height: 0;
  border-top: 2px solid #c99634;
}
.lantern { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: lanternSwing 4.2s ease-in-out infinite alternate; animation-delay: var(--d); }
.lantern::before { content: ""; width: 2px; height: var(--len); background: linear-gradient(#c99634, #8a5a12); }
@keyframes lanternSwing { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
.lantern__body {
  position: relative; width: clamp(74px, 20vw, 140px); aspect-ratio: 120 / 200;
  background: url("assets/lantern.svg") center / contain no-repeat;
}
.lantern__body::before { /* glow */
  content: ""; position: absolute; left: -40%; right: -40%; top: 10%; bottom: 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,180,80,.55), transparent);
  animation: glow 2.4s ease-in-out infinite alternate; animation-delay: var(--d);
}
@keyframes glow { to { opacity: .55; transform: scale(.92); } }
.lantern__num {
  position: absolute; left: 0; right: 0; top: 38%; text-align: center;
  font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 3.2vw, 3.1rem); line-height: 1; color: var(--maroon);
  font-variant-numeric: tabular-nums;
}
.lantern__num.tick { animation: tick .5s var(--ease-out); }
@keyframes tick { from { transform: translateY(-25%); opacity: .2; filter: blur(3px); } }
.lantern__lbl { position: absolute; left: 0; right: 0; top: 57%; text-align: center; font-size: clamp(.5rem, .42rem + .35vw, .72rem); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7d2a0f; }
@media (max-width: 560px) {
  .lantern__lbl[data-s] { font-size: 0; letter-spacing: .1em; }
  .lantern__lbl[data-s]::after { content: attr(data-s); font-size: .56rem; }
  .lantern__lbl { font-size: .56rem; letter-spacing: .1em; }
}
.count__done { position: relative; z-index: 2; text-align: center; margin: 1.4rem var(--gutter) 0; font-size: 1.2rem; color: var(--gold-pale); }

/* ---------- Close ---------- */
.close {
  position: relative; text-align: center; padding: 3rem var(--gutter) 0; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 30%, rgba(194,22,111,.38), transparent 70%), var(--night);
}
.close__couple { width: 210px; margin: 0 auto -6px; }
.close__couple svg { width: 100%; height: auto; overflow: visible; }
.close__line { margin: 1rem auto .4rem; max-width: 30ch; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--ivory-dim); text-wrap: balance; }
.close__names { margin: 0; font-family: var(--f-script); font-size: clamp(3.2rem, 2rem + 6vw, 5.5rem); line-height: 1.1; color: var(--ivory); }
.close__names i { font-style: normal; font-family: var(--f-display); font-size: .5em; color: var(--marigold); }
.close__meta { margin: .4rem 0 1.6rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-pale); opacity: .8; }

/* =========================================================
   Reveal motion (content visible by default; JS opts in)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .hero .reveal { transition-delay: calc(var(--i, 0) * 160ms); }
.js .names.reveal { transform: scale(.9); }
.js .names.reveal.is-in { transform: none; }
.js .pass.reveal.is-in { transform: rotate(-1.5deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .story { height: auto; }
  .story__sticky { position: relative; }
}

/* =========================================================
   RING STORY — two hands, one ring
   ========================================================= */
.story--ring .story__sticky {
  background:
    radial-gradient(60% 50% at 55% 62%, rgba(255,196,130,.30), transparent 70%),
    radial-gradient(45% 60% at 0% 30%, rgba(194,22,111,.30), transparent 70%),
    radial-gradient(45% 60% at 100% 30%, rgba(18,164,160,.22), transparent 70%);
}
.bokeh { position: absolute; inset: 0; pointer-events: none; }
.bokeh span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 38%, transparent 70%);
  opacity: var(--o, .45); filter: blur(var(--b, 1px));
  animation: drift var(--t, 14s) ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes drift { to { transform: translate(var(--x, 20px), var(--y, -30px)) scale(1.15); } }
.hands {
  position: absolute; left: 0; right: 0; top: 22svh; bottom: 3svh; z-index: 2;
  width: 100%; height: auto; overflow: visible;
}
.ring-glint { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-glint .ring-glint { animation: glint 2.6s var(--ease-out) infinite; }
@keyframes glint {
  0% { opacity: 0; transform: scale(.2) rotate(0deg); }
  12% { opacity: 1; transform: scale(1.25) rotate(20deg); }
  40% { opacity: .2; transform: scale(.6) rotate(45deg); }
  100% { opacity: 0; transform: scale(.2) rotate(60deg); }
}
.hands--3d { top: 0; bottom: 0; height: 100%; display: block; }
.no-3d .story__final .story__names, .no-3d .story__final .story__date { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .bokeh span { animation: none; } }

/* 3D ring in the box: the WebGL canvas replaces the drawn ring once it is ready */
.ring__gl { position: absolute; left: -50px; top: -40px; width: 260px; height: 270px; pointer-events: none; }
.ring.ring--3d { transform: translateZ(4px) translateY(46px) scale(.86); }
.ring--3d .ring__svg, .ring--3d .flare { display: none; }
/* closing illustration: the couple under a jharokha arch */
.close__couple { width: min(340px, 84vw); margin: 0 auto -4px; }
.duo { width: 100%; height: auto; overflow: visible; }
.duo__veil { transform-box: fill-box; transform-origin: 20% 0; animation: dupatta 5s ease-in-out infinite alternate; }
.duo__halo { transform-box: fill-box; transform-origin: center; animation: halo 6s ease-in-out infinite alternate; }
@keyframes halo { from { opacity: .75; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.duo__stars circle { animation: twinkle 2.8s ease-in-out infinite alternate; }
.duo__stars circle:nth-child(2n) { animation-delay: -1.3s; }
@keyframes dupatta { to { transform: rotate(1.2deg) skewX(-1deg); } }
.duo__spark { animation: duoSpark 2.4s ease-in-out infinite; }
.duo__spark path, .duo__spark circle { transform-box: fill-box; transform-origin: center; }
@keyframes duoSpark { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.duo__spark path { animation: duoSpin 2.4s ease-in-out infinite; }
@keyframes duoSpin { 0%, 100% { transform: scale(.55) rotate(0); } 50% { transform: scale(1.15) rotate(30deg); } }
.duo__heart { transform-box: fill-box; transform-origin: center; animation: duoHeart 3.2s ease-in-out infinite; }
@keyframes duoHeart { 0% { transform: translateY(6px) scale(.8); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-14px) scale(1.05); opacity: 0; } }
.duo__strands g { transform-box: fill-box; transform-origin: 50% 0; animation: strand 4s ease-in-out infinite alternate; }
.duo__strands g + g { animation-delay: -2s; }
@keyframes strand { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .duo * { animation: none !important; } }
/* closing sign-off from both families */
.close__from { margin: .2rem 0 0; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-pale); opacity: .85; }
.close__names--family { font-size: clamp(2.5rem, 1.7rem + 4.2vw, 4.4rem); line-height: 1.15; text-wrap: balance; }
