/* Himanshu & Simran
   Motion rule for this file: only transform and opacity ever animate. */

:root {
  --col: min(100vw, 520px);
  --ink: #4b3424;
  --gold: #b8862b;
  --gold-lt: #f0d28a;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --caps: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; color: var(--ink);
  background: #0a3238 radial-gradient(circle, rgba(240, 210, 138, .12) 1px, rgba(240, 210, 138, 0) 1.6px) 0 0 / 22px 22px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
main { position: relative; width: var(--col); margin: 0 auto; box-shadow: 0 0 60px rgba(0, 0, 0, .45); background: #f1e5da; }

h1, h2, h3, p, figure { margin: 0; }
img, video, svg, canvas { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ───────────── Gateway ───────────── */

.gate { position: relative; height: 280vh; height: 280lvh; }
.gate__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; contain: layout paint; background: #e3e2dc; }
.gate__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 82%; will-change: transform; }
.gate__arch {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: hidden; transform-origin: 50% 60%; will-change: transform, opacity; pointer-events: none;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.gate__edge { fill: none; stroke: rgba(96, 58, 26, .6); stroke-width: 2.5; }
.gate__soffit { fill: none; stroke: #a9794a; stroke-width: 20; }      /* the thickness of the arch */
.gate__shade { fill: none; stroke: rgba(60, 30, 8, .16); stroke-width: 46; }  /* its shadow on what lies behind */
.gate__stone { opacity: .55; }

.gate__inner {
  position: absolute; left: 50%; top: 30%;
  width: 36vh; width: 36lvh; margin-left: -18vh; margin-left: -18lvh;
  text-align: center; transform-origin: 50% 30%; will-change: transform;
  display: flex; flex-direction: column; align-items: center;
}
.deva { font-family: 'Yatra One', 'Kohinoor Devanagari', 'Noto Sans Devanagari', serif; font-size: clamp(.9rem, 2.3lvh, 1.3rem); color: #9a6a1c; }
.gate__names { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 8lvh, 5rem); line-height: .96; color: #5c2c1c; margin-top: 1.4lvh; }
.gate__names span { display: block; }
.amp { color: var(--gold); }
.gate__names .amp { font-size: .5em; line-height: 1.2; }
.gate__date { font-family: var(--caps); font-size: clamp(.56rem, 1.4lvh, .78rem); letter-spacing: .2em; text-transform: uppercase; margin-top: 1.6lvh; color: #5c4630; }
.gate__scroll { font-family: var(--caps); font-size: clamp(.5rem, 1.2lvh, .68rem); letter-spacing: .22em; text-transform: uppercase; margin-top: 1.4lvh; color: #7a644c; }
.gate__scroll span { display: block; width: 1px; height: 2.6lvh; margin: .5em auto 0; background: currentColor; transform-origin: 50% 0; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.doors, .knock { display: none; }
.js .doors { display: block; position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 52%; transition: opacity .8s ease .85s, visibility 0s 1.7s; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; will-change: transform; }
.door--l { left: 0; transform-origin: 0 50%; }
.door--r { right: 0; transform-origin: 100% 50%; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door--l img { object-position: 100% 50%; }
.door--r img { object-position: 0 50%; }
.door__shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, rgba(4, 16, 20, .9), rgba(4, 16, 20, .45)); will-change: opacity; }
.door--r .door__shade { background: linear-gradient(270deg, rgba(4, 16, 20, .9), rgba(4, 16, 20, .45)); }
.door__sheen { position: absolute; top: 0; bottom: 0; left: -70%; width: 70%; background: linear-gradient(100deg, rgba(255, 240, 200, 0), rgba(255, 240, 200, .3) 50%, rgba(255, 240, 200, 0)); will-change: transform; }
.door--r .door__sheen { left: auto; right: -70%; background: linear-gradient(260deg, rgba(255, 240, 200, 0), rgba(255, 240, 200, .3) 50%, rgba(255, 240, 200, 0)); }
.doors__light { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; will-change: opacity; }
.doors__glow, .doors__rays { position: absolute; left: 50%; top: 52%; border-radius: 50%; }
.doors__glow { width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; background: radial-gradient(circle, #fffbe6 0, rgba(255, 232, 160, .9) 14%, rgba(255, 214, 120, .4) 32%, rgba(255, 214, 120, 0) 56%); }
.doors__rays {
  width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  background: repeating-conic-gradient(rgba(255, 246, 210, 0) 0deg 8deg, rgba(255, 246, 210, .34) 11deg 14deg, rgba(255, 246, 210, 0) 17deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0) 52%); mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0) 52%);
  animation: spin 70s linear infinite;
}
.doors__seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 236, 170, 0), rgba(255, 244, 200, .9) 50%, rgba(255, 236, 170, 0)); animation: seam 3.2s ease-in-out infinite; }
@keyframes seam { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
.doors.is-touched .doors__seam { animation: none; opacity: 0; }
.gate.is-open .doors { opacity: 0; visibility: hidden; }
.gate.is-instant .doors, .gate.is-gone .doors, .gate.is-gone .knock { display: none; }

.js .knock { display: block; position: absolute; inset: 0; z-index: 5; color: #fff7e0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: opacity .5s ease, visibility 0s .5s; }
.knock:active { cursor: grabbing; }
.knock__hint { position: absolute; left: 0; right: 0; bottom: 12%; margin: 0; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); pointer-events: none; transition: opacity .4s; }
.knock.is-pushing .knock__hint { opacity: .25; }
.knock__hint b { display: block; font-family: var(--caps); font-weight: 400; font-size: clamp(.72rem, 1.7lvh, .92rem); letter-spacing: .26em; text-transform: uppercase; }
.knock__hint small { display: block; margin-top: .5em; font-style: italic; font-size: clamp(.92rem, 2lvh, 1.08rem); opacity: .9; }
.knock__arrows { display: flex; justify-content: center; gap: 2.4em; margin-bottom: .5em; font-size: clamp(1.5rem, 3.6lvh, 2.1rem); line-height: 1; color: #f8e19a; }
.knock__arrows i { font-style: normal; animation: part 1.3s ease-in-out infinite alternate; }
.knock__arrows i:last-child { animation-name: part-r; }
@keyframes part { from { transform: translateX(0); opacity: .45; } to { transform: translateX(-12px); opacity: 1; } }
@keyframes part-r { from { transform: translateX(0); opacity: .45; } to { transform: translateX(12px); opacity: 1; } }
.knock__skip { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); opacity: 0; pointer-events: none; padding: .7em 1.4em; border-radius: 999px; border: 1px solid #f0d28a; background: rgba(12, 61, 68, .9); color: #fff7e0; font-family: var(--caps); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.knock__skip:focus-visible { opacity: 1; pointer-events: auto; }
.gate.is-open .knock { opacity: 0; visibility: hidden; pointer-events: none; }
.gate.is-instant .knock { transition: none; }

/* petals thrown when the doors open, or an RSVP lands */
.burst { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.burst i {
  position: absolute; left: 50%; top: 58%; width: 12px; height: 17px; border-radius: 80% 0 80% 0; background: var(--c);
  animation: burst var(--t) cubic-bezier(.12, .7, .3, 1) forwards; will-change: transform, opacity;
}
@keyframes burst {
  0% { transform: translate3d(0, 0, 0) rotate(0) scale(.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1); opacity: 0; }
}

/* ───────────── Music and time pill ───────────── */

.music {
  position: fixed; z-index: 30; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  right: calc((100vw - var(--col)) / 2 + 14px); bottom: calc(14px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 35% 30%, #f8e19a, #c8962f 58%, #94681a);
  box-shadow: 0 0 0 2px #fff7e0, 0 6px 16px rgba(0, 0, 0, .35);
  display: grid; place-items: center; touch-action: manipulation;
}
.music[hidden] { display: none; }
.music__disc { position: absolute; inset: 7px; border-radius: 50%; background: repeating-radial-gradient(circle, #2a0d14 0 2px, #4a1622 2px 3.2px); animation: spin 5s linear infinite; animation-play-state: paused; }
.music__disc::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: #f8e19a; }
.music__bars { position: absolute; left: 50%; top: -15px; display: flex; gap: 2px; align-items: flex-end; height: 11px; transform: translateX(-50%); opacity: 0; transition: opacity .3s; }
.music__bars i { width: 3px; height: 11px; background: #fff7e0; border-radius: 1px; transform-origin: 50% 100%; animation: bar .9s ease-in-out infinite alternate; animation-play-state: paused; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.music__bars i:nth-child(2) { animation-delay: -.3s; } .music__bars i:nth-child(3) { animation-delay: -.6s; } .music__bars i:nth-child(4) { animation-delay: -.15s; }
.music.is-playing .music__disc, .music.is-playing .music__bars i { animation-play-state: running; }
.music.is-playing .music__bars { opacity: 1; }
@keyframes bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

.pehar-pill {
  position: fixed; z-index: 20; left: 50%; top: max(12px, env(safe-area-inset-top));
  transform: translate3d(-50%, -180%, 0); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  font-family: var(--caps); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  padding: .55em 1.2em; border-radius: 999px; pointer-events: none;
  color: var(--ink); background: rgba(255, 252, 244, .96); border: 1px solid rgba(184, 134, 43, .6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.pehar-pill.is-on { transform: translate3d(-50%, 0, 0); opacity: 1; }
.pehar-pill { display: flex; align-items: center; gap: .7em; }
.pehar-pill__orb { width: 1em; height: 1em; border-radius: 50%; background: radial-gradient(circle, #fff6c9 0 34%, #f6b93b 62%); box-shadow: 0 0 0 2.5px rgba(246, 185, 59, .28); }
.pehar-pill.is-dark .pehar-pill__orb { background: radial-gradient(circle at 70% 36%, rgba(248, 224, 160, 0) 0 46%, #f8e0a0 48%); box-shadow: none; }
.pehar-pill.is-dark { color: #f6e7c8; background: rgba(24, 8, 22, .94); border-color: rgba(240, 210, 138, .6); }

/* ───────────── Pages ───────────── */

.page { position: relative; isolation: isolate; overflow: clip; background: var(--bg); color: var(--fg, var(--ink)); text-align: center; }
.page__top, .page__bottom { position: relative; z-index: 1; width: 100%; height: auto; will-change: transform; }
.page__art { position: relative; }
.page__fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.page__fx * { animation-play-state: paused; }
.page.is-live .page__fx * { animation-play-state: running; }
.page__body {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 10px 26px;
  margin-top: calc(var(--col) * var(--pt, 0) * -1); margin-bottom: calc(var(--col) * var(--pb, 0) * -1);
}

.kicker { font-family: var(--caps); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent, var(--gold)); }
.heading { font-family: var(--script); font-weight: 400; font-size: calc(var(--col) * .115); line-height: 1.05; color: var(--title, inherit); }
.title { font-weight: 400; line-height: 1; color: var(--title, inherit); }
.title [data-ch] { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0) rotate(9deg); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 45ms + .1s); }
.title.is-in [data-ch] { opacity: 1; transform: none; }
.title--carnival { font-family: 'Sansita Swashed', var(--serif); font-weight: 500; font-size: calc(var(--col) * .118); }
.title--sufi { font-family: 'Rakkas', var(--serif); font-size: calc(var(--col) * .165); text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.title--baraat { font-family: var(--script); font-size: calc(var(--col) * .128); }
.title--baraat em { font-style: normal; font-size: .8em; }
.title--reception { font-family: 'Poiret One', var(--serif); font-size: calc(var(--col) * .145); letter-spacing: .02em; }
.blurb { max-width: 17.5em; font-style: italic; font-size: 1.16rem; line-height: 1.38; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  font-family: var(--caps); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: inherit; border-radius: 999px; padding: .2em 1.7em; cursor: pointer;
  /* frosted glass: lifts the button off whatever artwork sits behind it */
  background: var(--glass, rgba(255, 255, 255, .46));
  border: 1px solid var(--glass-line, rgba(255, 255, 255, .8));
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-shine, rgba(255, 255, 255, .7)), inset 0 -1px 0 rgba(0, 0, 0, .06), 0 6px 18px var(--glass-shadow, rgba(40, 24, 50, .18));
  transition: transform .25s var(--ease);
}
.btn:active { transform: scale(.96); }
.page[data-dark] .btn { --glass: rgba(255, 255, 255, .15); --glass-line: rgba(255, 255, 255, .45); --glass-shine: rgba(255, 255, 255, .3); --glass-shadow: rgba(0, 0, 0, .4); }
.btn--solid {
  background: var(--solid, var(--ink)); color: #fbf4e6; border-color: var(--solid, var(--ink));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px rgba(30, 30, 10, .28);
}
.btn--wide { width: 100%; }
.lotus { width: 84px; height: 28px; color: var(--gold); }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split][data-reveal] { transform: none; }

/* falling petals, sparkles */
.petal { position: absolute; top: -30px; left: var(--x); width: 13px; height: 19px; border-radius: 80% 0 80% 0; background: var(--c, #f2a3b3); opacity: .85; animation: fall var(--t, 12s) linear infinite; animation-delay: var(--dl, 0s); will-change: transform; }
.p1 { --x: 8%; --t: 13s; --dl: -1s; }
.p2 { --x: 22%; --t: 10s; --dl: -6s; --c: #f7c6cf; }
.p3 { --x: 37%; --t: 15s; --dl: -3s; --c: #f6d7a8; }
.p4 { --x: 51%; --t: 11s; --dl: -9s; }
.p5 { --x: 64%; --t: 14s; --dl: -5s; --c: #f7c6cf; }
.p6 { --x: 77%; --t: 12s; --dl: -11s; --c: #e88ba0; }
.p7 { --x: 90%; --t: 16s; --dl: -7s; --c: #f6d7a8; }
.p8 { --x: 45%; --t: 9s; --dl: -4s; }
@keyframes fall { from { transform: translate3d(0, -4vh, 0) rotate(0deg); } to { transform: translate3d(46px, 150vh, 0) rotate(560deg); } }
.sparkle {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 18px 22px, #ffe9a8 50%, rgba(255, 233, 168, 0) 52%),
    radial-gradient(1.2px 1.2px at 96px 64px, #fff 50%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(1.8px 1.8px at 142px 138px, #ffe9a8 50%, rgba(255, 233, 168, 0) 52%),
    radial-gradient(1.2px 1.2px at 58px 158px, #fff 50%, rgba(255, 255, 255, 0) 52%);
  background-size: 190px 190px; animation: twinkle 2.6s ease-in-out infinite alternate; will-change: opacity;
}
.sparkle--b { background-size: 270px 270px; background-position: 40px 90px; animation-duration: 3.8s; animation-delay: -2s; }
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }

/* paper dolls: the couple, cut out and repainted */
.doll { height: auto; will-change: transform; }
.js .doll[data-reveal] { transform: translate3d(0, 30px, 0) rotate(-6deg) scale(.9); transform-origin: 50% 100%; }
.js .doll[data-reveal].is-in { animation: sway 4.5s ease-in-out .9s infinite alternate; }
@keyframes sway { from { transform: rotate(0deg); } to { transform: rotate(2.4deg); } }

/* ── The sky between the pehars: the sun sets, rises and the moon comes up as you scroll ── */
.turn { position: relative; isolation: isolate; height: 64svh; min-height: 400px; overflow: clip; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff6e2; }
.turn--dusk { background: linear-gradient(180deg, #ffe09a 0%, #f9a95c 26%, #dc5f5c 48%, #7c2749 72%, #490102 100%); }
.turn--dawn { background: linear-gradient(180deg, #490102 0%, #5c1b3c 18%, #bb526c 42%, #f6b27a 66%, #ffeacb 86%, #ffffff 100%); }
.turn--night { background: linear-gradient(180deg, #ffffff 0%, #ffe1c4 14%, #f0a078 34%, #8a3f6e 58%, #2e2458 82%, #25234a 100%); }
.turn__orb {
  position: absolute; left: 50%; top: 0; width: calc(var(--col) * .3); aspect-ratio: 1; margin-left: calc(var(--col) * -.15); border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, #fffbe6 0 32%, #ffe27a 48%, rgba(255, 196, 90, .5) 62%, rgba(255, 196, 90, 0) 76%);
}
.turn__orb--moon { width: calc(var(--col) * .17); margin-left: calc(var(--col) * -.085); background: radial-gradient(circle at 40% 35%, #fffdf2, #e7e2cd 72%); box-shadow: 0 0 54px 16px rgba(255, 250, 220, .28); }
.turn__stars {
  position: absolute; inset: 0; opacity: 0; will-change: opacity;
  background-image:
    radial-gradient(1.6px 1.6px at 18px 22px, #fff 50%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(1.2px 1.2px at 96px 64px, #fff 50%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(1.8px 1.8px at 142px 138px, #ffe9a8 50%, rgba(255, 233, 168, 0) 52%),
    radial-gradient(1.2px 1.2px at 58px 158px, #fff 50%, rgba(255, 255, 255, 0) 52%);
  background-size: 180px 180px;
}
.turn__text { position: relative; z-index: 2; font-family: var(--script); font-size: calc(var(--col) * .092); line-height: 1.1; max-width: 6.2em; text-shadow: 0 2px 16px rgba(70, 10, 25, .55); margin-right: calc(var(--col) * .24); }
.turn--dusk .turn__text { margin-right: 0; margin-left: calc(var(--col) * .24); }

/* ── The couple ── */
.page--floral { --bg: linear-gradient(180deg, #eee2d7, #f5e9df); --fg: #5b4636; --pt: .36; --pb: .12; }
.page--floral .page__body { gap: 16px; }
.bless { font-size: 1.02rem; line-height: 1.4; }
.bless em { color: #3d2a1c; }
.eyebrow { font-style: italic; font-size: 1.2rem; max-width: 13em; line-height: 1.3; }
.portrait { position: relative; width: calc(var(--col) * .6); aspect-ratio: 3 / 4; margin: 26px 0 6px; }
.portrait__mandala { position: absolute; left: 50%; top: 44%; width: 176%; height: auto; aspect-ratio: 1; margin: -88% 0 0 -88%; color: #c9992f; opacity: .55; will-change: transform; }
.portrait__clip { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff7ef, #f6d6cb 68%, #ecbdb2); }
.portrait__clip img { position: absolute; left: 0; top: -3%; width: 100%; height: 106%; object-fit: cover; object-position: 50% 0; will-change: transform; }
.portrait__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 2.5; }
.portrait__line--outer { transform: scale(1.075, 1.055); transform-origin: 50% 100%; stroke-width: 1; opacity: .8; }
.names { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.name { font-family: var(--script); font-weight: 400; font-size: calc(var(--col) * .17); line-height: 1.05; color: #5c2c1c; }
.parents { font-family: var(--caps); font-size: .74rem; letter-spacing: .08em; margin-top: .2em; }
.amp--big { font-family: var(--script); font-size: 2.4rem; line-height: 1; }

/* ── The date ── */
.page--date { aspect-ratio: 464 / 832; --bg: #e9d3d6; --fg: #6b4630; --accent: #a8641c; }
.date__plate { position: absolute; inset: 0; width: 100%; height: 100%; }
.date__body { position: absolute; z-index: 2; left: 14%; right: 14%; top: 30%; height: 45%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--col) * .014); }
.scratch { position: relative; padding: 0 .5em; margin: 6px 0 8px; }
.date__big { display: flex; align-items: center; justify-content: center; gap: .08em; font-size: calc(var(--col) * .2); line-height: 1; font-weight: 500; }
.date__big i { font-style: normal; color: var(--gold); }
.scratch__foil { position: absolute; z-index: 2; inset: -6px -10px; width: calc(100% + 20px); height: calc(100% + 12px); border-radius: 16px; touch-action: none; cursor: grab; transition: opacity .7s ease, transform .7s var(--ease); box-shadow: 0 0 0 2px rgba(255, 246, 214, .9), 0 0 0 3px #b8862b, 0 8px 22px rgba(120, 76, 10, .4); }
.scratch__foil.is-gone { opacity: 0; transform: scale(1.12); pointer-events: none; }
/* until it is touched the card begs to be scratched: it rocks, a light sweeps it, a finger shows how */
.scratch:not(.is-touched) { animation: beg 3.4s ease-in-out infinite; }
@keyframes beg { 0%, 62%, 100% { transform: rotate(0); } 68% { transform: rotate(-2.2deg) scale(1.03); } 74% { transform: rotate(2deg) scale(1.03); } 80% { transform: rotate(-1.2deg); } 86% { transform: rotate(0); } }
.scratch__shine { position: absolute; z-index: 3; inset: -6px -10px; border-radius: 16px; overflow: hidden; pointer-events: none; }
.scratch__shine::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0)); transform: translateX(0) skewX(-14deg); animation: sweep 2.6s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(0) skewX(-14deg); } 55%, 100% { transform: translateX(420%) skewX(-14deg); } }
.scratch__hand { position: absolute; z-index: 4; left: 50%; top: 58%; width: calc(var(--col) * .13); height: auto; margin-left: calc(var(--col) * -.065); fill: #fffaf0; stroke: #5c3a0a; stroke-width: 1.8; stroke-linejoin: round; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(60, 30, 0, .35)); animation: rub 2.2s ease-in-out infinite; }
@keyframes rub { 0% { transform: translate(-90%, 10%) rotate(-12deg); opacity: 0; } 12% { opacity: 1; } 30% { transform: translate(60%, -8%) rotate(-4deg); } 48% { transform: translate(-50%, 6%) rotate(-12deg); } 66% { transform: translate(80%, -4%) rotate(-4deg); opacity: 1; } 82%, 100% { transform: translate(80%, -4%) rotate(-4deg); opacity: 0; } }
.scratch.is-touched .scratch__shine, .scratch.is-touched .scratch__hand { display: none; }
.scratch__dust { position: absolute; z-index: 5; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle, #fff6c8, #d9a83c 70%); pointer-events: none; animation: dust .7s ease-out forwards; }
@keyframes dust { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }
.scratch.is-revealed .date__big { animation: pop .9s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 0 22px rgba(255, 226, 140, .9); }
@keyframes pop { from { transform: scale(.7); } to { transform: none; } }
.date__month { font-family: var(--caps); font-size: calc(var(--col) * .04); letter-spacing: .32em; text-transform: uppercase; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: calc(var(--col) * .012); padding: calc(var(--col) * .018) 0; border-top: 1px solid rgba(107, 70, 48, .35); border-bottom: 1px solid rgba(107, 70, 48, .35); }
.countdown div + div { border-left: 1px solid rgba(107, 70, 48, .25); }
.countdown b { display: block; font-size: calc(var(--col) * .068); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--caps); font-size: calc(var(--col) * .024); letter-spacing: .14em; text-transform: uppercase; }
.unlock { display: grid; width: 100%; margin-top: calc(var(--col) * .012); }
.unlock > * { grid-area: 1 / 1; }
.unlock .countdown { margin-top: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.94); transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s, visibility 0s .35s; }
.unlock__teaser { align-self: center; display: flex; align-items: center; justify-content: center; gap: .55em; margin: 0; padding: calc(var(--col) * .03) 0; font-style: italic; font-size: calc(var(--col) * .042); border-top: 1px dashed rgba(107, 70, 48, .4); border-bottom: 1px dashed rgba(107, 70, 48, .4); transition: opacity .4s, visibility 0s .4s; animation: breathe 2s ease-in-out infinite alternate; }
.unlock__teaser svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.date__body.is-unlocked .unlock .countdown { opacity: 1; visibility: visible; transform: none; transition-delay: .35s, .35s, 0s; }
.date__body.is-unlocked .unlock__teaser { opacity: 0; visibility: hidden; animation: none; }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }

/* ── Carnival of Joy ── */
.page--carnival { --bg: linear-gradient(180deg, #cfe6fe, #c0ddf9); --fg: #5a3f6a; --accent: #b0447e; --title: #df4f96; --pt: .09; --pb: .2; }
.pinwheel {
  position: absolute; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 7%, rgba(255, 255, 255, 0) 8%), conic-gradient(#ff5d8f 0 12.5%, #ffd166 0 25%, #35c9a4 0 37.5%, #7cc7ea 0 50%, #ff8a5b 0 62.5%, #b28dff 0 75%, #ffd166 0 87.5%, #35c9a4 0);
  animation: spin 14s linear infinite; will-change: transform;
}
.pinwheel--1 { width: 24%; left: -9%; top: 17%; }
.pinwheel--2 { width: 30%; right: -11%; top: 9%; animation-duration: 20s; animation-direction: reverse; }
.gulal { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; animation: puff 5s ease-in-out infinite alternate; will-change: transform, opacity; }
.gulal--1 { left: -8%; top: 30%; background: radial-gradient(circle, rgba(160, 130, 255, .55), rgba(160, 130, 255, 0) 68%); }
.gulal--2 { right: -6%; top: 26%; background: radial-gradient(circle, rgba(255, 130, 120, .55), rgba(255, 130, 120, 0) 68%); animation-delay: -2s; }
.gulal--3 { left: 28%; top: 18%; background: radial-gradient(circle, rgba(255, 200, 80, .4), rgba(255, 200, 80, 0) 68%); animation-delay: -3.5s; }
@keyframes puff { from { transform: scale(.75); opacity: .35; } to { transform: scale(1.15); opacity: 1; } }

/* ── Sufi Night ── */
.page--sufi { --bg: #490102; --fg: #fbeee0; --accent: #f0d28a; --title: #fff; --pt: .2; --pb: .06; }

/* ── Baraat and Wedding ── */
.page--baraat { --bg: #fff; --fg: #5a4650; --accent: #b8862b; --title: #c6408a; --pt: .2; --pb: .1; }

/* ── Reception ── */
.page--reception { --bg: linear-gradient(180deg, #25234a 0%, #020434 30%, #040636 100%); --fg: #f2ead8; --accent: #f0d28a; --title: #f3e2a0; --pt: .06; --pb: .07; }

/* ── Painted moments and the film ── */
.page--gallery {
  --fg: #f6ecd2; --accent: #f0d28a; --title: #f6dc9a; --cw: calc(var(--col) * .66);
  background: #0e444c radial-gradient(circle, rgba(240, 210, 138, .16) 1px, rgba(240, 210, 138, 0) 1.6px) 0 0 / 22px 22px;
  padding: 76px 0 84px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.reel {
  display: flex; gap: 26px; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 30px calc((var(--col) - var(--cw)) / 2) 22px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.reel::-webkit-scrollbar { display: none; }
.canvas { flex: 0 0 var(--cw); scroll-snap-align: center; }
.canvas__frame {
  padding: 10px; background: linear-gradient(135deg, #f8e19a, #b8862b 28%, #f6dc8f 52%, #8e651a 78%, #e8c66a);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(60, 36, 4, .5);
}
.canvas:nth-child(odd) .canvas__frame { transform: rotate(-1.6deg); }
.canvas:nth-child(even) .canvas__frame { transform: rotate(1.4deg); }
.canvas__frame img { width: 100%; height: auto; border: 6px solid #fbf4e6; box-shadow: 0 0 0 1px rgba(60, 36, 4, .6); }
.canvas figcaption { font-family: var(--script); font-size: 1.75rem; line-height: 1.1; color: #f6dc9a; margin-top: 20px; }
.reel__hint { font-family: var(--caps); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; opacity: .7; transition: opacity .5s; }
.reel__hint span { display: inline-block; animation: nudge 1.2s ease-in-out infinite alternate; }
.reel__hint.is-done { opacity: 0; }
@keyframes nudge { from { transform: translateX(0); } to { transform: translateX(8px); } }

/* ── Venue, RSVP, closing ── */
.page--closing { --bg: linear-gradient(180deg, #d9e0d7 0%, #eef1e4 22%, #e9eecf 70%, #d3d7b0 100%); --fg: #4c4a2c; --accent: #7a8236; --title: #4a4a22; --solid: #4d5a2a; --pt: .1; --pb: .2; }
.addr { font-family: var(--caps); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.actions { display: flex; flex-direction: column; gap: 12px; width: min(100%, 300px); margin-top: 8px; }

.rsvp {
  position: relative; width: 100%; margin-top: calc(var(--col) * .44); padding: calc(var(--col) * .2) 20px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(255, 253, 246, .9); border: 1px solid #b8862b; border-radius: calc(var(--col) * .44) calc(var(--col) * .44) 20px 20px;
  box-shadow: 0 0 0 6px rgba(255, 253, 246, .5), 0 16px 30px rgba(60, 60, 20, .16);
}
.doll--lean { position: absolute; left: 50%; top: calc(var(--col) * -.36); width: 40%; margin-left: -20%; }
.rsvp__form { width: 100%; display: flex; flex-direction: column; gap: 20px; margin-top: 8px; text-align: left; }
.rsvp__form[hidden] { display: none; }
.rsvp__form .field, .rsvp__form legend, .stepper__label { display: block; font-family: var(--caps); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.rsvp__form small { letter-spacing: .04em; text-transform: none; opacity: .7; }
.rsvp__form input[type="text"], .rsvp__form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 2px; border: 0; border-bottom: 1px solid rgba(76, 74, 44, .55); border-radius: 0;
  background: transparent; color: inherit; font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0; text-transform: none;
}
.rsvp__form ::placeholder { color: rgba(76, 74, 44, .4); font-style: italic; }
.rsvp__form textarea { resize: vertical; }
.rsvp__form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rsvp__form legend { margin-bottom: 10px; padding: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { grid-column: 1 / -1; }
.choice__card, .chip { position: relative; display: block; }
.choice__card input, .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__card span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 10px 12px; text-align: center; border: 1px solid rgba(76, 74, 44, .5); border-radius: 14px; transition: transform .25s var(--ease); }
.choice__card b { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.choice__card small { font-family: var(--serif); font-style: italic; font-size: .9rem; }
.choice__card input:checked + span { background: #4d5a2a; color: #f6f8e8; border-color: #4d5a2a; transform: scale(1.03); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.05em; border: 1px solid rgba(76, 74, 44, .5); border-radius: 999px; font-family: var(--serif); font-size: 1.02rem; opacity: .6; }
.chip input:checked + span { background: #4d5a2a; color: #f6f8e8; opacity: 1; }
.choice__card input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid #4d5a2a; outline-offset: 3px; }
.rsvp__more { display: flex; flex-direction: column; gap: 20px; }
.rsvp__more[hidden] { display: none; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper__ctl { display: flex; align-items: center; gap: 6px; }
.stepper__ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(76, 74, 44, .55); background: none; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.stepper__ctl output { min-width: 2ch; text-align: center; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsvp__error { color: #9b2c2c; font-style: italic; font-size: 1rem; }
.rsvp__done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 6px; animation: pop .6s var(--ease) both; }
.rsvp__done[hidden] { display: none; }
.rsvp__done p { font-style: italic; max-width: 16em; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.closing { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: calc(var(--col) * .2); }
.closing__line { font-style: italic; font-size: 1.12rem; max-width: 15em; }
.closing__big { font-family: var(--script); font-size: calc(var(--col) * .13); line-height: 1.05; color: #4a4a22; }
.closing__family { font-family: var(--caps); font-size: .86rem; letter-spacing: .3em; text-transform: uppercase; }

/* ───────────── Reduced motion ───────────── */

/* ── Highlights: the names glow on an ivory halo; dates, times and the venue sit on a gold-edged plaque ── */
.gate__names, .name { color: #5e1a16; text-shadow: 0 0 1px rgba(255, 249, 238, 1), 0 0 12px rgba(255, 249, 238, .95), 0 0 28px rgba(255, 246, 230, .85); }
.parents { color: #4a2418; font-size: .8rem; }
.plaque {
  position: relative; width: fit-content; max-width: 100%; margin-inline: auto; padding: .75em 1.5em;
  border-radius: 10px; color: #4a1d14;
  background: linear-gradient(180deg, rgba(255, 252, 245, .95), rgba(251, 241, 225, .93));
  box-shadow: 0 0 0 1px rgba(184, 134, 43, .75), 0 0 0 4px rgba(255, 250, 240, .9), 0 0 0 5px rgba(184, 134, 43, .45), 0 10px 26px rgba(70, 30, 10, .16);
}
.page[data-dark] .plaque {
  color: #fff3d6;
  background: linear-gradient(180deg, rgba(44, 12, 26, .82), rgba(26, 10, 36, .82));
  box-shadow: 0 0 0 1px rgba(232, 196, 110, .85), 0 0 0 4px rgba(44, 12, 26, .55), 0 0 0 5px rgba(232, 196, 110, .45), 0 10px 26px rgba(0, 0, 0, .35);
}
.gate__date.plaque { margin-top: 1.8lvh; padding: .65em 1.1em; font-size: clamp(.62rem, 1.5lvh, .84rem); letter-spacing: .12em; white-space: nowrap; color: #4a1d14; }
.plaque--arch { padding: 1.6em 1.8em 1.2em; border-radius: 999px 999px 16px 16px / 90px 90px 16px 16px; }
.plaque--arch .heading { color: #5e1a16; margin: .15em 0 .2em; }
.plaque--arch .addr { color: #4a2418; }
.plaque--arch .kicker { color: #9a6a1f; }

.portrait__clip img.portrait__ganesha { object-position: 50% 40%; }

/* ── Sections wash into each other: each one starts with a painted, uneven edge that bleeds over the one above ── */
:root { --blend: clamp(64px, 18vw, 120px); }
main > .page:not(#couple), main > .turn {
  margin-top: calc(var(--blend) * -1);
  -webkit-mask: url(assets/art/edge.png) var(--ex, 30%) 0 / 260% var(--blend) no-repeat, linear-gradient(#000, #000) 0 var(--blend) / 100% 100% no-repeat;
          mask: url(assets/art/edge.png) var(--ex, 30%) 0 / 260% var(--blend) no-repeat, linear-gradient(#000, #000) 0 var(--blend) / 100% 100% no-repeat;
}
.page--date { --ex: 8%; } .page--carnival { --ex: 34%; } .turn--dusk { --ex: 62%; } .page--sufi { --ex: 88%; }
.turn--dawn { --ex: 18%; } .page--baraat { --ex: 50%; } .turn--night { --ex: 76%; } .page--reception { --ex: 4%; }
.page--gallery { --ex: 42%; } .page--closing { --ex: 96%; }
/* and the artwork strips feather out instead of ending on a straight line */
.page__top { -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0), #000 24%); mask-image: linear-gradient(rgba(0, 0, 0, 0), #000 24%); }
.page__bottom { -webkit-mask-image: linear-gradient(#000 80%, rgba(0, 0, 0, 0)); mask-image: linear-gradient(#000 80%, rgba(0, 0, 0, 0)); }

/* ── When: a gold coin with the date, then the day in script and the time ── */
.when {
  display: inline-flex; align-items: center; gap: 14px; margin: 4px 0 2px; padding: 8px 24px 8px 9px; text-align: left;
  border-radius: 999px 22px 22px 999px; color: #4a1d14;
  background: linear-gradient(180deg, rgba(255, 252, 245, .95), rgba(250, 239, 221, .92));
  box-shadow: 0 0 0 1px rgba(184, 134, 43, .65), 0 0 0 4px rgba(255, 250, 240, .55), 0 10px 26px rgba(70, 30, 10, .16);
}
.when__seal {
  position: relative; flex: none; display: grid; place-content: center; justify-items: center; width: 60px; aspect-ratio: 1; border-radius: 50%;
  color: #5e1a16; line-height: 1;
  background: radial-gradient(circle at 34% 28%, #fff8e2, #f3d995 52%, #cfa040 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), inset 0 -3px 6px rgba(120, 70, 10, .25), 0 0 0 1px #b8862b, 0 3px 8px rgba(90, 50, 10, .3);
}
.when__seal::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px dotted #b8862b; animation: turn-ring 30s linear infinite; }
@keyframes turn-ring { to { transform: rotate(1turn); } }
.when__seal b { font-family: var(--caps); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
.when__seal small { font-family: var(--caps); font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; margin: 2px 0 0 .26em; }
.when__info { display: grid; padding-left: 14px; border-left: 1px solid rgba(184, 134, 43, .55); line-height: 1.1; }
.when__info em { font-family: var(--script); font-style: normal; font-size: 1.55rem; color: #8a3b1c; }
.when__info strong { font-family: var(--caps); font-weight: 400; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.when__info small { font-style: italic; font-size: .82rem; opacity: .8; }
.page[data-dark] .when {
  color: #fff3d6; background: linear-gradient(180deg, rgba(44, 12, 26, .84), rgba(26, 10, 36, .84));
  box-shadow: 0 0 0 1px rgba(232, 196, 110, .8), 0 0 0 4px rgba(44, 12, 26, .4), 0 10px 26px rgba(0, 0, 0, .35);
}
.page[data-dark] .when__info { border-left-color: rgba(232, 196, 110, .5); }
.page[data-dark] .when__info em { color: #f0d28a; }

/* ── The date page, calmer: one gold card, a soft veil behind the words, no boxes around the rest ── */
.page--date::after {
  content: ''; position: absolute; z-index: 1; left: 6%; right: 6%; top: 24%; height: 56%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 249, 242, .78), rgba(255, 249, 242, .5) 55%, rgba(255, 249, 242, 0) 100%);
}
.date__month { color: #5e1a16; margin-top: 2px; }
.doll--walk { position: absolute; z-index: 3; left: 0; bottom: 1.5%; width: 34%; }
.unlock__teaser { border: 0; padding: .3em 0; font-size: calc(var(--col) * .038); color: #6b4630; }

/* ── Alignment rhythm: the four pehars alternate sides instead of all sitting in the middle ── */
.page--carnival .page__body, .page--reception .page__body { align-items: flex-start; text-align: left; padding-left: 30px; padding-right: 30px; }
.page--sufi .page__body { align-items: flex-end; text-align: right; padding-left: 30px; padding-right: 30px; }
.page--sufi .when { flex-direction: row-reverse; text-align: right; padding: 8px 9px 8px 24px; border-radius: 22px 999px 999px 22px; }
.page--sufi .when__info { padding: 0 14px 0 0; border-left: 0; border-right: 1px solid rgba(232, 196, 110, .5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .gate { height: 100vh; height: 100lvh; }
  .knock { transition-duration: .01s; }
  .knock__skip { opacity: 1; pointer-events: auto; }
  .js [data-reveal], .title [data-ch], .js .doll[data-reveal] { opacity: 1; transform: none; transition: none; }
}
