/* Wedding invitation pages (site/w/<slug>/), one stylesheet for every couple.
   Gate (knock -> doors open -> scroll through the doorway) -> save the date (scratch) -> letter (unfolds)
   -> families (jharokha shutters) -> events (curtains) -> gallery -> close (light the diyas). */

:root {
  --paper: #f8f0e2;
  --paper-2: #f0e2c8;
  --ink: #3b2416;
  --ink-soft: #745a45;
  --maroon: #8c1d24;
  --gold: #a87a2a;
  --gold-soft: #d8b36b;
  --line: rgba(168, 122, 42, .45);
  --marigold: #ec8a1e;
  --wood: #4a2713;
  --backdrop: #24160c;

  --f-body: "Cormorant Garamond", Georgia, serif;
  --f-label: "Cinzel", Georgia, serif;
  --f-script: "Pinyon Script", "Cormorant Garamond", cursive;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.shut { overflow: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--f-body);
  overflow-x: clip;
}
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main, .foot { position: relative; z-index: 1; }

/* a faint rangoli behind everything, turning as you scroll */
.mandala {
  position: fixed; left: 50%; top: 50%; z-index: 0; width: min(150vw, 1100px);
  translate: -50% -50%; rotate: calc(var(--sy, 0) * .03deg);
  opacity: .045; pointer-events: none; filter: sepia(1) saturate(2);
}
.mandala .rangoli { display: block; width: 100%; height: auto; }

/* write-on: script headings appear as if inked left to right */
.ink {
  -webkit-mask-image: linear-gradient(100deg, #000 44%, transparent 56%); mask-image: linear-gradient(100deg, #000 44%, transparent 56%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.9s cubic-bezier(.5, .1, .3, 1), mask-position 1.9s cubic-bezier(.5, .1, .3, 1);
}
html:not(.js) .ink, .in .ink, .ink.in, .inked .ink { -webkit-mask-position: 0 0; mask-position: 0 0; }
.inked .hero__names .ink:last-child { transition-delay: .7s; }

/* =================================================================== GATE */

.gate { position: relative; height: 280svh; }
.gate__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html:not(.js) .gate { height: auto; }
html:not(.js) .gate__pin { position: relative; height: auto; min-height: 100svh; }
html:not(.js) :is(.gate__scene, .gate__hint, .gate__tap, .gate__skip) { display: none; }

/* inside: what you see through the doorway, then the hero */
.gate__inside {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(96px, 16vw, 150px) 16px 40px;
  background:
    radial-gradient(70% 50% at 50% 45%, rgba(255, 233, 190, .7), transparent 75%),
    linear-gradient(180deg, #f3e2c3, var(--paper) 70%);
}
html:not(.js) .gate__inside { position: relative; min-height: 100svh; }
.gate__inside::before {          /* warm light that fills the doorway, fading as you step through */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(46% 34% at 50% 62%, rgba(255, 244, 214, .5) 0, rgba(255, 205, 130, .3) 45%, rgba(190, 96, 30, .18) 80%, rgba(60, 20, 6, .3) 100%);
  opacity: calc(1 - var(--reveal, 1));
}
.inside__bg { position: absolute; inset: 0; z-index: 0; background: #2a1a10; }
.inside__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25, 12, 4, .25), rgba(25, 12, 4, .15) 40%, rgba(25, 12, 4, .6));
}
.hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%;
  opacity: var(--reveal, 1);
  transform: translateY(calc((1 - var(--reveal, 1)) * 50px)) scale(calc(.9 + var(--reveal, 1) * .1));
}

/* the door scene, scaled about the doorway by JS */
.gate__scene { position: absolute; inset: 0; z-index: 4; will-change: transform, opacity; }
.door__stage { position: absolute; inset: 0; overflow: hidden; container-type: size; background: #1a0f08; }
@media (min-aspect-ratio: 3/4) {
  .door__stage {
    inset: auto; left: 50%; top: 50%; translate: -50% -50%;
    height: min(92svh, calc(94vw * 16 / 9)); aspect-ratio: 9 / 16;
    border-radius: 16px;
    box-shadow: 0 0 0 100vmax var(--backdrop), 0 30px 70px rgba(10, 5, 1, .8);
  }
}
.door__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* photo door: the wall is the photo with the doorway cut out; each leaf shows its own half of the
   same photo (leaves span x 33.9-66.7%, y 45.1-85.1% of the frame, meeting at 50.9%) and hinges at its outer edge.
   The doorway and the leaves share one cusped outline, so the painted spandrels stay on the wall. */
.door__photo { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50.9% 66%; }
.door__stage:has(.door__photo) { background: transparent; }   /* the room inside shows through the doorway */
.door__stage:has(.door__photo)::after { display: none; }
.door__wall, .door__leaf { position: absolute; background: url(media/door.jpg) no-repeat; }   /* relative to this stylesheet */
.door__wall {
  inset: 0; background-size: 100% 100%;
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 34.25% 85.10%, 34.25% 50.60%, 35.08% 49.81%, 35.75% 48.23%, 36.91% 47.83%, 37.91% 46.64%, 39.74% 46.04%, 41.24% 45.45%, 50.90% 45.45%, 50.90% 45.45%, 59.86% 45.45%, 61.25% 46.04%, 62.95% 46.64%, 63.88% 47.83%, 64.96% 48.23%, 65.58% 49.81%, 66.35% 50.60%, 66.35% 85.10%, 34.25% 85.10%);
}
.door__leaf {
  top: 45.1%; height: 40.0%;
  transition: transform 2.2s cubic-bezier(.45, .05, .2, 1), filter 2.2s ease;
}
.door__leaf--l { left: 33.9%; width: 17.20%; background-size: 581.40% 250.00%; background-position: 40.94% 75.17%;
  transform-origin: 0 50%; clip-path: polygon(0% 100%, 0% 13%, 5% 11%, 9% 7%, 16% 6%, 22% 3%, 33% 1.5%, 42% 0%, 100% 0%, 100% 100%); }
.door__leaf--r { left: 50.9%; width: 15.80%; background-size: 632.91% 250.00%; background-position: 60.45% 75.17%;
  transform-origin: 100% 50%; clip-path: polygon(100% 100%, 100% 13%, 95% 11%, 91% 7%, 84% 6%, 78% 3%, 67% 1.5%, 58% 0%, 0% 0%, 0% 100%); }
.gate[data-phase="open"] .door__leaf--l { transform: rotateY(-104deg); filter: brightness(.55); }
.gate[data-phase="open"] .door__leaf--r { transform: rotateY(104deg); filter: brightness(.55); }
.gate.instant .door__leaf { transition: none; }
.gate[data-phase="knocking"] .door__leaf { animation: rattle .24s ease-out 3; }
@keyframes rattle { 40% { translate: 0 1px; filter: brightness(1.15); } }
.door__stage::after {            /* soft vignette so the hint text reads */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(15, 8, 3, .55));
}

.door__ring {
  position: absolute; left: 50.25%; top: 57%; width: min(17cqw, 90px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 2px solid rgba(255, 246, 228, .85); z-index: 4;
  animation: knockPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes knockPulse {
  0% { box-shadow: 0 0 0 0 rgba(236, 138, 30, .55); }
  100% { box-shadow: 0 0 0 26px rgba(236, 138, 30, 0); }
}

/* knock, then open */
/* three knocks: the frame thuds with each one */
.gate[data-phase="knocking"] .door__film { animation: thud .24s ease-out 3; }
@keyframes thud { 40% { filter: brightness(1.18) contrast(1.04); } }
.gate:not([data-phase="idle"]) .door__ring { opacity: 0; transition: opacity .3s; animation: none; }

/* hints over the scene */
.gate__hint {
  position: absolute; left: 50%; bottom: 17%; translate: -50% 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: min(86%, 30em); text-align: center; pointer-events: none;
  transition: opacity .5s;
}
.gate__hint::before {
  content: ""; position: absolute; inset: -60% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(24, 12, 4, .75), rgba(24, 12, 4, .4) 55%, transparent);
}
.gate__hint--knock { animation: hintFloat 4.6s ease-in-out infinite alternate; }
.gate:not([data-phase="idle"]) .gate__hint--knock { opacity: 0; animation: none; }
@keyframes hintFloat { to { translate: -50% -6px; } }
.gate__hint--enter { bottom: 6%; opacity: 0; }
.gate[data-phase="open"] .gate__hint--enter { opacity: clamp(0, calc(1 - var(--p, 0) * 12), 1); transition: none; }
.gate[data-phase="open"] .gate__hint--enter > *, .gate[data-phase="open"] .gate__hint--enter::before { animation: fadeIn .9s ease 1.5s both; }
.gate.instant .gate__hint--enter > *, .gate.instant .gate__hint--enter::before { animation-delay: 0s; }
@keyframes fadeIn { from { opacity: 0; } }
.gate.nudge .gate__chev { animation-duration: .9s; }
.gate__chev {
  width: 14px; height: 14px; margin-top: 6px;
  border-right: 2px solid #ffe7b4; border-bottom: 2px solid #ffe7b4; rotate: 45deg;
  animation: chev 1.6s ease-in-out infinite;
}
@keyframes chev { 0%, 100% { translate: 0 -3px; opacity: .5; } 50% { translate: 0 4px; opacity: 1; } }
.door__to { font: 400 clamp(15px, 4vw, 19px)/1.3 var(--f-deva); color: #ffe7b4; text-shadow: 0 1px 8px rgba(20, 10, 2, .9); }
.door__deva { font: 400 clamp(22px, 6vw, 32px)/1.4 var(--f-deva); color: #fff8ec; text-shadow: 0 2px 14px rgba(20, 10, 2, .9); }
.door__line {
  font: 500 clamp(10px, 2.6vw, 13px)/1 var(--f-label); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  color: rgba(255, 243, 222, .92); text-shadow: 0 1px 10px rgba(20, 10, 2, .9);
}
.gate__tap {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gate__tap:focus-visible { outline: 3px solid #ffe7b4; outline-offset: -14px; }
.gate.is-through .gate__tap, .gate.is-through .gate__skip { display: none; }
.gate__skip {
  position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top)); z-index: 7;
  font: 500 11px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 240, 215, .8); background: rgba(20, 10, 3, .35); border: 1px solid rgba(255, 230, 190, .3);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}

/* reduced motion: no zoom; the scene simply fades once open */
.gate.is-flat { height: 100svh; }
.gate.is-flat .gate__scene { opacity: 0; transition: opacity .4s; pointer-events: none; }
.gate.is-flat :is(.gate__hint, .gate__tap, .gate__skip) { display: none; }

/* =================================================================== DIYA */

.diya { display: inline-block; position: relative; width: 34px; height: 30px; }
.door__floor .diya i, .lamps .diya:not(.diya--off) i { animation: flicker 1.6s ease-in-out infinite alternate; }
.diya::before {                  /* clay bowl */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13px;
  border-radius: 4px 4px 50% 50% / 3px 3px 100% 100%;
  background: linear-gradient(180deg, #c4622a, #8b3a14);
  box-shadow: inset 0 2px 0 #e08a4a, 0 3px 4px rgba(40, 15, 2, .45);
}
.diya i {                        /* flame */
  position: absolute; left: 50%; bottom: 11px; width: 9px; height: 17px; translate: -50% 0;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe6 0, #ffd65a 35%, #ff8a1c 70%, rgba(255, 90, 0, 0) 100%);
  box-shadow: 0 0 18px 6px rgba(255, 170, 60, .55);
  transform-origin: 50% 100%;
}
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-2deg); }
  40% { transform: scale(.94, 1.08) rotate(2deg); }
  70% { transform: scale(1.04, .95) rotate(-1deg); }
  100% { transform: scale(.97, 1.04) rotate(1.5deg); }
}


/* =================================================================== HERO (inside the gate) */

.hero__toran { position: absolute; top: -2px; left: 50%; translate: -50% 0; z-index: 2; width: min(980px, 118vw); filter: drop-shadow(0 4px 5px rgba(80, 40, 6, .3)); }
.toran { display: block; width: 100%; height: auto; transform-origin: 50% 0; animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -.7deg; } to { rotate: .7deg; } }
.hero__arch {
  position: relative;
  width: min(100%, 470px);
  padding: clamp(50px, 11vw, 80px) clamp(18px, 6vw, 40px) clamp(30px, 6vw, 46px);
  border: 1px solid var(--line);
  border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px;
  background: radial-gradient(90% 60% at 50% 30%, rgba(255, 250, 238, .97), rgba(250, 238, 214, .92));   /* solid enough to read over the lit window behind */
  box-shadow: 0 0 0 6px rgba(248, 240, 226, .8), 0 0 0 7px var(--line), 0 30px 60px -30px rgba(120, 70, 20, .35);
}
.hero__om, .ornament { font: 400 19px/1.4 var(--f-deva); color: var(--maroon); letter-spacing: .04em; }
.hero__lead { margin-top: 12px; font-style: italic; color: var(--ink-soft); font-size: 18px; line-height: 1.4; }
.hero__names { margin: 12px 0 6px; font: 400 clamp(40px, 11vw, 62px)/1.05 var(--f-script); color: var(--maroon); }
.hero__names span { display: block; }
.hero__amp { font: italic 400 .55em/1.4 var(--f-body); color: var(--gold); }
.hero__hi { font: 400 18px/1.4 var(--f-deva); color: var(--gold); margin-bottom: 12px; }
.hero__date {
  display: inline-block; padding: 9px 0; margin-top: 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 500 clamp(12px, 3.3vw, 14px)/1.4 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.hero__venue { margin-top: 10px; font-size: 18px; color: var(--ink-soft); }
.hero__tag { margin-top: 26px; max-width: 26em; font-style: italic; font-size: 19px; color: #fbe9c8; text-shadow: 0 1px 12px rgba(20, 8, 2, .8); }
@media (max-height: 720px) {
  .hero__names { font-size: clamp(36px, 9.5vw, 54px); }
  .hero__lead, .hero__tag { font-size: 16px; }
  .hero__tag { margin-top: 16px; }
}

/* falling petals in the hero */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petals i {
  position: absolute; top: -30px; left: var(--x); width: 11px; height: 15px;
  border-radius: 80% 0 80% 0; background: var(--c); opacity: 0;
  animation: fall var(--d) linear var(--delay) infinite; animation-play-state: paused;
}
.gate[data-phase="open"] .petals i, html:not(.js) .petals i { animation-play-state: running; }
@keyframes fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  8% { opacity: .85; }
  90% { opacity: .75; }
  100% { opacity: 0; transform: translate(var(--w), 105svh) rotate(540deg); }
}

/* =================================================================== SECTIONS */

.sec { position: relative; max-width: 640px; margin: 0 auto; padding: 84px 16px; text-align: center; }
.sec + .sec::before {
  content: "❁"; position: absolute; top: 0; left: 50%; translate: -50% -50%;
  color: var(--gold-soft); font-size: 20px; line-height: 1;
}
.sec__label { font: 500 12px/1.5 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sec__title { margin: 8px 0 26px; font: 400 clamp(34px, 9vw, 48px)/1.15 var(--f-script); color: var(--maroon); }
.sec__note { margin: 36px auto 0; max-width: 28em; font-style: italic; color: var(--ink-soft); }
.deva-head { font: 400 clamp(26px, 7vw, 34px)/1.3 var(--f-deva); color: var(--gold); }
.deva-head--sm { font-size: 24px; }

.reveal { opacity: 0; translate: 0 26px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.reveal.in, html:not(.js) .reveal { opacity: 1; translate: 0 0; }

/* ---------- save the date: scratch card ---------- */
.scratch { position: relative; max-width: 420px; margin: 0 auto; border-radius: 10px; }
.cal {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  padding: 22px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cal__wd, .cal__my { font: 500 13px/1.6 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.cal__wd { text-align: right; }
.cal__my { text-align: left; }
.cal__day {
  font: 500 clamp(64px, 18vw, 92px)/1 var(--f-body); color: var(--maroon);
  padding: 0 20px; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.scratch__foil {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px;
  touch-action: none; cursor: grab; box-shadow: 0 10px 26px -12px rgba(110, 70, 10, .6);
  transition: opacity .9s ease;
}
html:not(.js) .scratch__foil { display: none; }
.scratch.done .scratch__foil { opacity: 0; pointer-events: none; }
.scratch.done .cal__day { animation: pop .7s var(--ease); }
@keyframes pop { 0% { scale: .7; } 60% { scale: 1.08; } 100% { scale: 1; } }
.scratch__btn {               /* keyboard route to the same reveal */
  position: absolute; left: 50%; bottom: -14px; translate: -50% 0; opacity: 0; pointer-events: none;
  font: 500 10px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--maroon); background: var(--paper); cursor: pointer;
}
.scratch__btn:focus-visible { opacity: 1; pointer-events: auto; }
.scratch.done .scratch__btn { display: none; }
.scratch__hint { margin-top: 14px; font-style: italic; color: var(--ink-soft); font-size: 17px; }
.scratch__hint::before { content: "✦ "; color: var(--gold); }
.sec--date.revealed .scratch__hint { visibility: hidden; }
.cal__time { margin-top: 14px; font: 500 14px/1 var(--f-label); letter-spacing: .2em; color: var(--ink); }

.count { display: flex; justify-content: center; gap: clamp(10px, 4vw, 22px); margin-top: 26px; perspective: 400px; }
html.js .sec--date:not(.revealed) .count { opacity: .25; filter: blur(3px); }
.sec--date .count { transition: opacity 1s, filter 1s; }
.count span {
  display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 12px 6px 10px;
  border: 1px solid var(--line); border-radius: 40px 40px 8px 8px; background: rgba(255, 250, 240, .6);
  font: 500 10px/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.count b { display: block; font: 500 30px/1.1 var(--f-body); color: var(--maroon); margin-bottom: 6px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.count__done { margin-top: 26px; font-style: italic; font-size: 21px; color: var(--maroon); }

/* ---------- the letter unfolds like a chitthi ---------- */
.sec--letter { perspective: 1100px; }
.letter {
  position: relative; padding: 46px clamp(20px, 6vw, 44px) 42px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #fbf4e6, #f3e4c8);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line), 0 24px 50px -28px rgba(110, 60, 15, .45);
  transform-origin: 50% 0;
}
html.js .sec--letter .letter { transform: rotateX(-75deg); opacity: 0; transition: transform 1.4s var(--ease) .1s, opacity .8s ease .1s; }
html.js .sec--letter.in .letter { transform: none; opacity: 1; }
.letter p + p { margin-top: 14px; }
.letter .sec__title { margin-bottom: 18px; }
.letter p:not(.ornament) { font-size: 20px; }

/* ---------- families behind jharokha shutters ---------- */
.families { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 24px; }
.families__amp { font: 400 46px/1 var(--f-script); color: var(--gold); }
.jharokha {
  position: relative; overflow: hidden; perspective: 900px;
  border: 1px solid var(--line); border-radius: 50% 50% 10px 10px / 26% 26% 10px 10px;
  background: radial-gradient(90% 60% at 50% 25%, #fffaf0, #f4e6cb);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line), 0 20px 40px -26px rgba(110, 60, 15, .5);
}
.fam { padding: 44px 12px 26px; }
.fam__side { font: 500 11px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.fam__name { margin: 12px 0 10px; font: 400 clamp(28px, 7.4vw, 38px)/1.15 var(--f-script); color: var(--maroon); }
.fam__rel { font-style: italic; color: var(--ink-soft); }
.fam__parents { margin-top: 2px; font-weight: 600; font-size: 18px; line-height: 1.45; }
.shutter {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  background:
    radial-gradient(circle, transparent 0 34%, #6b3f1a 36% 44%, transparent 46%) 0 0 / 20px 20px,
    radial-gradient(circle, rgba(255, 222, 160, .5) 0 30%, transparent 32%) 10px 10px / 20px 20px,
    linear-gradient(180deg, #a06c36, #7c4c22);
  box-shadow: inset 0 0 0 7px #5d3415, inset 0 0 0 9px #c99556, inset 0 0 22px rgba(0, 0, 0, .45);
  transition: transform 1.5s cubic-bezier(.6, .05, .25, 1) calc(.35s + var(--i, 0) * .3s);
}
.shutter--l { left: 0; transform-origin: 0 50%; }
.shutter--r { right: 0; transform-origin: 100% 50%; }
.shutter::after {               /* brass pull */
  content: ""; position: absolute; top: 55%; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6dc95, #a87a2a 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.shutter--l::after { right: 9px; }
.shutter--r::after { left: 9px; }
html:not(.js) .shutter { display: none; }
.sec--families.in .jharokha:not(.closed) .shutter--l { transform: rotateY(-112deg); }
.sec--families.in .jharokha:not(.closed) .shutter--r { transform: rotateY(112deg); }
.jharokha.toggled .shutter { transition-delay: 0s; }
.jharokha__tap { position: absolute; inset: 0; z-index: 3; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 560px) {
  .families { grid-template-columns: 1fr; gap: 6px; padding: 0 6%; }
  .families__amp { margin: 10px 0; }
}
.awaiting { margin-top: 46px; }
.awaiting .sec__label { margin-top: 4px; }
.awaiting__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 20px; }
.awaiting ul { list-style: none; margin: 0; padding: 0; }
.awaiting li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
html.js .awaiting li { opacity: 0; translate: 0 12px; transition: opacity .7s ease calc(1.2s + var(--i) * .15s), translate .7s var(--ease) calc(1.2s + var(--i) * .15s); }
html.js .in .awaiting li { opacity: 1; translate: 0 0; }
.awaiting li span { display: block; font-weight: 600; font-size: 19px; }
.awaiting li small { font: 500 10px/1.4 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 330px) { .awaiting__cols { grid-template-columns: 1fr; } }

/* ---------- events: velvet curtains part ---------- */
.events { display: grid; gap: 28px; }
.ev {
  position: relative; padding: 0 clamp(16px, 5vw, 32px) 30px;
  background: linear-gradient(180deg, #fbf3e3, #f4e5ca);
  border: 1px solid var(--line); border-radius: 220px 220px 10px 10px / 150px 150px 10px 10px;
  box-shadow: 0 24px 50px -30px rgba(110, 60, 15, .5);
  overflow: hidden;
}
.ev__arch {
  margin: 0 calc(-1 * clamp(16px, 5vw, 32px)) 22px; padding: 56px 16px 26px;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(255, 196, 110, .55), transparent 70%),
    linear-gradient(180deg, #8c1d24, #6e141b);
  color: #fff3dc;
  border-bottom: 3px double var(--gold-soft);
}
.ev__hi { font: 400 clamp(30px, 8vw, 40px)/1.3 var(--f-deva); color: #ffd98c; }
.ev__name { margin: 4px 0 0; font: 500 13px/1.4 var(--f-label); letter-spacing: .3em; text-transform: uppercase; }
.ev__when { font: 500 13px/1.6 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.ev__where { margin-top: 12px; font-size: 19px; line-height: 1.45; }
.ev__where strong { font-weight: 600; }
.ev__note { margin-top: 14px; font-style: italic; color: var(--ink-soft); }
.ev__dress { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.ev__dress span { width: 100%; font: 500 10px/1.6 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ev__dress em { font-style: normal; font-size: 16px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; }
.ev__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 220, 150, .25), transparent 12%),
    repeating-linear-gradient(90deg, #6a131a 0 6px, #94232b 12px, #7a1820 20px, #5c1016 26px);
  box-shadow: inset 0 -10px 0 #c9973e, inset 0 -12px 0 #7a5418;
  transition: transform 1.6s cubic-bezier(.7, 0, .2, 1) .45s;
}
.curtain--l { left: 0; transform-origin: 0 50%; }
.curtain--r { right: 0; transform-origin: 100% 50%; }
html:not(.js) .curtain { display: none; }
.ev.in .curtain { transform: scaleX(.06); }
.btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  font: 500 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--maroon); border: 1px solid var(--maroon); border-radius: 999px; background: transparent;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: rgba(140, 29, 36, .07); }
.btn:active { transform: scale(.96); }
.btn--solid { background: var(--maroon); color: #fff3dc; }
.btn--solid:hover { background: #6e141b; }

/* gallery + hashtag */
.gallery { columns: 2 160px; column-gap: 10px; }
.gallery img { display: block; width: 100%; margin-bottom: 10px; border-radius: 6px; break-inside: avoid; }
.hashtag { margin-top: 10px; font: 400 clamp(34px, 9vw, 46px)/1.2 var(--f-script); color: var(--maroon); }

/* ---------- close: light the diyas ---------- */
.lamps { display: flex; justify-content: center; gap: 34px; margin: 40px 0 26px; }
.lamps .diya { border: 0; padding: 0; background: none; cursor: pointer; scale: 1.6; margin: 0 8px; -webkit-tap-highlight-color: transparent; }
.lamps .diya i { transition: scale .55s cubic-bezier(.3, 1.6, .5, 1), opacity .4s; }
.lamps .diya--off i { scale: 0; opacity: 0; }
.lamps .diya--off { animation: lampAsk 2s ease-in-out infinite; }
.lamps .diya--off:nth-child(2) { animation-delay: .3s; }
.lamps .diya--off:nth-child(3) { animation-delay: .6s; }
@keyframes lampAsk { 0%, 100% { filter: drop-shadow(0 0 0 rgba(236, 138, 30, 0)); } 50% { filter: drop-shadow(0 0 7px rgba(236, 138, 30, .8)); } }
.lamps .diya:focus-visible { outline: 2px solid var(--maroon); outline-offset: 6px; border-radius: 6px; }
.lamps__hint { font-style: italic; color: var(--ink-soft); font-size: 17px; margin-top: 18px; }
.lamps__done { margin-top: 30px; font: 400 clamp(22px, 6vw, 28px)/1.4 var(--f-deva); color: var(--maroon); animation: rise 1s var(--ease); }
.lamps__done small { display: block; font: italic 400 18px/1.4 var(--f-body); color: var(--ink-soft); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
.close__line { max-width: 22em; margin: 34px auto 0; font-style: italic; font-size: clamp(22px, 5.6vw, 27px); line-height: 1.45; color: var(--ink); }
.up {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 30px;
  font: 500 11px/1 var(--f-label); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--gold);
}
.up::before { content: ""; width: 1px; height: 34px; background: linear-gradient(transparent, var(--gold)); }

.foot {
  padding: 46px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center;
  background: linear-gradient(180deg, #6e141b, #4c0d12); color: #f4e3c4;
}
.foot__names { font: 400 clamp(30px, 8vw, 40px)/1.2 var(--f-script); color: #ffe2a8; }
.foot__names span { font: italic 400 .6em var(--f-body); color: var(--gold-soft); }
.foot__date { margin-top: 6px; font: 500 13px/1 var(--f-label); letter-spacing: .3em; color: var(--gold-soft); }
.foot__cal { margin-top: 22px; font-size: 17px; }
.foot__music { margin-top: 18px; font-size: 14px; font-style: italic; color: rgba(244, 227, 196, .6); }
.foot__credit { margin-top: 14px; font: 500 10px/1.6 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 227, 196, .6); }
.foot a { color: inherit; text-underline-offset: 3px; }

/* =================================================================== OG CARD (?og) */

html.og .ogcard {
  flex-direction: column; align-items: center; justify-content: center;
  padding-top: 110px; text-align: center;
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(255, 236, 196, .9), transparent 75%),
    linear-gradient(180deg, #f1ddb9, var(--paper));
  box-shadow: inset 0 0 0 18px var(--paper), inset 0 0 0 19px var(--line);
}
html.og .toran { animation: none; }
.ogcard__toran { position: absolute; top: -4px; left: 0; right: 0; }
.ogcard .hero__om { font-size: 30px; }
.ogcard__names { margin: 6px 0 22px; font: 400 128px/1.1 var(--f-script); color: var(--maroon); }
.ogcard__names span { font: italic 400 .5em var(--f-body); color: var(--gold); }
.ogcard .hero__date { font-size: 22px; padding: 12px 0; }
.ogcard .hero__venue { font-size: 28px; margin-top: 14px; }

/* =================================================================== MOTION */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .petals { display: none; }
  .mandala { rotate: 0deg; }
}
