/* ═══════════════════════════════════════════════════════════
   Shreyashi ❀ Deepesh — scrolling miniature-painting invitation
   Art slots: /assets/art/*.png (see README). When a file is present the
   server adds `has-<name>` to <html>; otherwise the SVG fallback shows.
   ═══════════════════════════════════════════════════════════ */
:root {
  --crimson: #8e1b24;
  --crimson-d: #5e0f17;
  --rose: #a3283a;
  --gold: #d9b56a;
  --gold-l: #f1dca6;
  --gold-d: #a8823f;
  --ivory: #f6ecd6;
  --parch: #f3e7cc;
  --ink: #3a1418;
  --ink-soft: #6e4a3c;
  --leaf: #203d30;

  --f-script: 'Tangerine Script', 'Pinyon Script', 'Tiro Devanagari Hindi', serif; /* Tangerine for English script headings */
  --f-deva: 'Tiro Devanagari Hindi', 'Cormorant Garamond', serif;
  --f-caps: 'Cinzel', 'Tiro Devanagari Hindi', serif;
  --f-body: 'Tiro Devanagari Hindi', 'Cormorant Garamond', Georgia, serif;
  --f-en: 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dock-h: 0px; /* bottom nav removed */

  /* painterly textures (fallbacks when paper art is missing) */
  --grain: url(/assets/img/tex-grain.png);   /* pre-rendered: SVG noise filters were costly to paint while scrolling */
  --mottle: url(/assets/img/tex-mottle.png);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--crimson-d);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
html[lang='en'] body { font-family: var(--f-en); font-size: 18px; }
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.center { text-align: center; }
::selection { background: var(--gold-l); color: var(--crimson-d); }

/* ───────── painted surfaces ───────── */
.wash { position: relative; isolation: isolate; background-color: var(--wash, var(--crimson)); color: var(--gold-l); }
.wash::before { /* soft light & shadow pooling like gouache */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(255, 230, 190, .16), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(0, 0, 0, .35), transparent 60%),
    var(--mottle) center / 600px 600px;
  mix-blend-mode: soft-light;
}
.wash::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .22; mix-blend-mode: multiply; }
.has-paper-crimson .wash::after { display: none; } /* the painted paper already has grain: one blend layer instead of two */
.has-paper-crimson .wash::before {
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(255, 230, 190, .1), transparent 70%),
    url(/assets/art/paper-crimson.jpg) center / cover;
  mix-blend-mode: luminosity; opacity: .9;
}
@media (max-width: 760px) { .has-paper-crimson .wash::before { background-image: radial-gradient(ellipse 80% 55% at 50% 38%, rgba(255, 230, 190, .1), transparent 70%), url(/assets/art/m/paper-crimson.jpg); } }
.parchment {
  position: relative; isolation: isolate; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, #fbf3e0, var(--parch) 60%, #e9d7b2);
}
.parchment::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .14; mix-blend-mode: multiply; }

/* arch-scalloped top edge so scenes melt into each other instead of hard blocks */
.edge-top { margin-top: -34px; padding-top: 110px !important; }
.edge-top::before { /* gold hairline that follows the scallops */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 36px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 24px 36px, transparent 22px, rgba(217, 181, 106, .85) 22.5px, rgba(217, 181, 106, .85) 23.5px, transparent 24px) 0 0 / 48px 36px repeat-x;
}
.edge-top { -webkit-mask: radial-gradient(circle at 24px 36px, #000 23px, transparent 23.5px) 0 0 / 48px 36px repeat-x, linear-gradient(#000, #000) 0 35px / 100% calc(100% - 35px) no-repeat;
            mask: radial-gradient(circle at 24px 36px, #000 23px, transparent 23.5px) 0 0 / 48px 36px repeat-x, linear-gradient(#000, #000) 0 35px / 100% calc(100% - 35px) no-repeat; }

/* art slots vs. fallbacks */
.art { display: none; pointer-events: none; user-select: none; }
.has-garden-left .art-garden-left, .has-garden-strip .art-garden-strip, .has-vine .art-vine, .has-kalka-gold .art-kalka,
.has-palace-row .art-palace-row { display: block; }
.has-garden-left .fb-garden-left, .has-garden-strip .fb-garden-strip, .has-vine .fb-vine, .has-kalka-gold .fb-kalka,
.has-palace-row .fb-palace-row { display: none; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.6em; border-radius: 999px; border: 0; text-decoration: none;
  font-family: var(--f-deva); font-size: 1rem; letter-spacing: .02em; line-height: 1.2;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s, color .4s;
}
html[lang='en'] .btn { font-family: var(--f-caps); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.btn:active { transform: scale(.97); }
.btn-gold { color: var(--crimson-d); background: linear-gradient(135deg, #b8913f, #f3dc9f 35%, #d9b56a 55%, #f6e6b8 80%, #b8913f); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.btn-line { color: var(--gold-l); background: transparent; box-shadow: inset 0 0 0 1px rgba(241, 220, 166, .7); }
.btn-line:hover { background: rgba(241, 220, 166, .1); }
.btn-line-dark { color: var(--crimson); background: transparent; box-shadow: inset 0 0 0 1px rgba(142, 27, 36, .5); }
.btn-crimson { color: var(--gold-l); background: linear-gradient(180deg, #a3283a, var(--crimson-d)); box-shadow: 0 10px 24px -12px rgba(94, 15, 23, .9), inset 0 0 0 1px rgba(241, 220, 166, .35); }
.btn-crimson:hover { transform: translateY(-2px); }
.btn.wide { width: 100%; padding: 1em; font-size: 1.05rem; }
.link-btn { border: 0; background: none; padding: .2em .1em; color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }

/* ───────── icons (CSS masks) ───────── */
.ico { display: inline-block; width: 1.15em; height: 1.15em; background: currentColor; vertical-align: -.18em; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.ico-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ico-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico-cam { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E"); }
.ico-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s7-6.3 7-12a7 7 0 0 0-14 0c0 5.7 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.ico-heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.3-9.2C1.4 7.4 3.6 4 7 4c2 0 3.4 1.1 5 3 1.6-1.9 3-3 5-3 3.4 0 5.6 3.4 4.3 6.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
.ico-share { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='M8.3 10.8l7.4-4.4M8.3 13.2l7.4 4.4'/%3E%3C/svg%3E"); }
.ico-music { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E"); }
.ico-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ico-route { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2l10 10-10 10L2 12z'/%3E%3Cpath d='M9 14v-2a2 2 0 0 1 2-2h4M13 8l2 2-2 2'/%3E%3C/svg%3E"); }
.ico-wa { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l1.3-4.2A8.5 8.5 0 1 1 8 19.4z'/%3E%3C/svg%3E"); }

/* ───────── ornament sprite paint ───────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* kalka (paisley) — colours come from --k-line / --k-fill on the <svg> */
.k-outer { fill: var(--k-fill, rgba(240, 222, 180, .1)); stroke: var(--k-line, #e6cc8f); stroke-width: 2.6; }
.k-inner { fill: none; stroke: var(--k-line, #e6cc8f); stroke-width: 1.1; opacity: .8; }
.k-dots { fill: none; stroke: var(--k-line, #e6cc8f); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 9; }
.k-line { fill: none; stroke: var(--k-line, #e6cc8f); stroke-width: 1.8; stroke-linecap: round; }
.k-leaf { fill: var(--k-line, #e6cc8f); opacity: .9; }
.k-flower ellipse { fill: var(--k-line, #e6cc8f); }
.k-eye { fill: var(--k-eye, #8e1b24); }
.k-dot { fill: var(--k-line, #e6cc8f); }
.k-fill { fill: var(--k-line, #e6cc8f); }
/* chhatri */
.c-body { fill: #ecdcbc; stroke: #a8885a; stroke-width: 1.2; }
.c-shade { fill: rgba(140, 100, 50, .18); }
.c-rib { fill: none; stroke: #b39563; stroke-width: 1; }
.c-trim { fill: #e2c98f; stroke: #a8885a; stroke-width: 1; }
.c-gold { fill: #d7b46a; stroke: #9b7a3e; stroke-width: .8; }
.c-open { fill: #5b2a22; opacity: .55; stroke: #a8885a; }
.c-fringe { fill: none; stroke: #c49c55; stroke-width: 1.4; }
/* cypress */
.cy-body { fill: #2f5a3c; }
.cy-shade { fill: #20402b; opacity: .7; }
.cy-mark { fill: none; stroke: #4f8156; stroke-width: 1.4; opacity: .8; }
.cy-trunk { fill: #5a4228; }
/* garden */
.g-leaf { fill: #3d6a3c; stroke: #2a4c2b; stroke-width: .8; }
.g-leaf2 { fill: #527f45; }
.g-leaf3 { fill: #2c5531; }
.g-vein { stroke: #a9c38a; stroke-width: .8; opacity: .6; }
.g-bush { fill: #2e5232; }
.g-bloom { fill: #b8232c; }
.g-bloom2 { fill: #dd4b45; }
.g-white ellipse { fill: #fbf4e4; } .g-white .k-eye { fill: #e8c45c; }
/* vine */
.v-stem { fill: none; stroke: #6f6a3a; stroke-width: 1.6; }
.v-leaf { fill: #6b8b4a; }
.v-flower ellipse { fill: #f7efe2; } .v-flower2 ellipse { fill: #e9a3a8; }
.v-flower .k-eye, .v-flower2 .k-eye { fill: #e3b54e; }
/* palace portal */
.p-wall { fill: #e9dcc0; stroke: #a08458; stroke-width: 1.2; }
.p-line { fill: none; stroke: #a8895a; stroke-width: 1; }
.p-thick { stroke: #c9a45e; stroke-width: 3; }
.p-gold { fill: #d3ad62; }
.p-pinn path { fill: #e9dcc0; stroke: #a08458; }
.p-fringe { fill: none; stroke: #b8945a; stroke-width: 1.4; }
.p-carve { stroke: #c2a874; stroke-width: 6; stroke-dasharray: 2 6; }
/* door leaf */
.d-wood { fill: #efe5cf; }
.d-line { fill: none; stroke: #b39a6b; stroke-width: 1.4; }
.d-motif { --k-line: #b59a68; --k-fill: rgba(180, 150, 100, .08); --k-eye: #efe5cf; }
.d-ring { fill: none; stroke: #b08d4c; stroke-width: 2; }

/* ───────── motion: everything eases in softly ───────── */
.reveal { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); transition: opacity 1.3s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.rise { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(5px); }
body.ready .rise { opacity: 1; transform: none; filter: none; transition: opacity 1.6s var(--ease), transform 1.8s var(--ease), filter 1.4s var(--ease); transition-delay: calc(var(--d, 0s) + .2s); }
[data-speed] { will-change: transform; }

/* ═════════ PALACE DOOR INTRO ═════════ */
#gate {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #3b4a3e 0%, #1f2a23 60%, #141c17 100%);
  transition: opacity .9s var(--ease-io) 3.05s, visibility 0s 4.2s;
}
.gate-sky { position: absolute; inset: 0; background: var(--grain); opacity: .25; mix-blend-mode: overlay; }
.gate-sky::after { /* drifting fireflies / dust */
  content: ''; position: absolute; inset: -20%;
  background-image: radial-gradient(circle, rgba(255, 244, 214, .8) 0 1px, transparent 1.6px), radial-gradient(circle, rgba(255, 244, 214, .5) 0 1px, transparent 1.5px);
  background-size: 140px 160px, 90px 110px; background-position: 0 0, 40px 60px;
  animation: drift 26s linear infinite;
}
@keyframes drift { to { transform: translate3d(-60px, -120px, 0); } }
/* the stage is always 9:16 so art + doors line up; it crops on tall phones and centres on wide screens */
.stage916 { position: absolute; left: 50%; top: 50%; height: 100svh; aspect-ratio: 9 / 16; transform: translate(-50%, -50%); }
.portal {
  --hx: var(--door-hx, 18.33%); --hy: var(--door-hy, 30.6%); --hw: var(--door-hw, 63.33%); --hh: var(--door-hh, 68.2%); /* doorway box — real art sets --door-* via art.json */
  transform-origin: calc(var(--hx) + var(--hw) / 2) calc(var(--hy) + var(--hh) / 2);
  transition: transform 2.3s var(--ease-io) 1.15s;
  perspective: 1100px;
}
.portal-inside { position: absolute; left: var(--hx); top: var(--hy); width: var(--hw); height: var(--hh); display: grid; place-items: center; overflow: hidden; }
.pi-kalka { width: 46%; opacity: .95; height: auto; }
.seal-k { height: auto; }
.pdoor { position: absolute; top: var(--hy); height: var(--hh); width: calc(var(--hw) / 2); transition: transform 2s cubic-bezier(.6, .04, .22, 1) .3s, filter 2s var(--ease) .3s; }
.pdoor svg, .pdoor img { width: 100%; height: 100%; display: block; }
.pdoor img { object-fit: fill; }
.pdoor-l { left: var(--hx); transform-origin: left center; }
.pdoor-r { left: calc(var(--hx) + var(--hw) / 2); transform-origin: right center; }
.pdoor-r svg, .pdoor-r img { transform: scaleX(-1); }
.portal-frame, .portal-frame-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-frame-img { object-fit: fill; display: none; }
.has-door-frame .portal-frame-img { display: block; }
.has-door-frame .portal-frame, .has-door-frame .gate-ground { display: none; }
.has-door-leaf .pdoor svg { display: none; }
.pdoor img { display: none; } .has-door-leaf .pdoor img { display: block; }
.gate-ground { position: absolute; inset: 0; pointer-events: none; }
.gcy { position: absolute; bottom: 4%; width: 7%; aspect-ratio: 60 / 280; }
.gcy-1 { left: -1%; height: auto; width: 8%; } .gcy-2 { left: 6%; width: 6%; bottom: 3%; }
.gcy-3 { right: -1%; width: 8%; } .gcy-4 { right: 6%; width: 6%; bottom: 3%; }
.gate-garden { position: absolute; left: -5%; right: -5%; bottom: -1%; width: 110%; height: 16%; }
.gate-vine { position: absolute; top: -2%; width: 26vw; max-width: 180px; aspect-ratio: 110 / 260; z-index: 2; transform-origin: top; animation: sway 7s ease-in-out infinite alternate; }
.gv-l { left: -2vw; } .gv-r { right: -2vw; transform: scaleX(-1); animation-name: swayR; }
@keyframes sway { from { rotate: -1.5deg; } to { rotate: 1.5deg; } }
@keyframes swayR { from { transform: scaleX(-1) rotate(-1.5deg); } to { transform: scaleX(-1) rotate(1.5deg); } }

.seal {
  position: absolute; left: 50%; top: 61%; z-index: 5; transform: translate(-50%, -50%);
  width: 150px; height: 150px; border: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 0;
  color: var(--crimson-d);
  background: radial-gradient(circle at 40% 30%, #fffaf0, #f3e6c8 55%, #e3cf9e 100%);
  box-shadow: 0 0 0 3px #d9b56a, 0 0 0 7px #f6ecd6, 0 0 0 8px #b8913f, 0 18px 40px rgba(0, 0, 0, .55);
  transition: transform .9s var(--ease), opacity .7s var(--ease);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 3px #d9b56a, 0 0 0 7px #f6ecd6, 0 0 0 8px #b8913f, 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 22px rgba(241, 220, 166, .12); } }
.seal-k { width: 46px; --k-line: #a8823f; --k-fill: rgba(217, 181, 106, .12); --k-eye: #f6ecd6; }
.seal .art-kalka { width: 54px; }
.seal-names { font: 400 1.25rem/1.1 var(--f-script); color: var(--crimson); margin-top: 2px; }
.seal-names i { font: italic 500 1rem 'Cormorant Garamond', serif; color: var(--gold-d); }
.seal-tap { font: 500 .6rem/1.2 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
html[lang='hi'] .seal-tap { font-family: var(--f-deva); font-size: .72rem; letter-spacing: .02em; text-transform: none; }
/* monogram seal / medallion (when /assets/art/monogram.* exists) */
.has-monogram .art-monogram { display: block; }
.seal-mono, .med-mono { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.has-monogram .seal > :not(.seal-mono), .has-monogram .medallion > :not(.med-mono) { display: none; }
.has-monogram .medallion { width: 170px; height: 170px; }
.seal:focus-visible { outline: 2px solid #fff; outline-offset: 10px; }
.seal-hint { position: absolute; left: 50%; top: calc(61% + 96px); z-index: 5; margin: 0; transform: translateX(-50%); white-space: nowrap; padding: .3em 1em; border-radius: 999px; font-size: .78rem; color: #f6ecd6; background: rgba(30, 22, 16, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .5s; }

/* main screen: paintings and paper fade in together once all have loaded */
#home::before { transition: opacity 1.1s var(--ease); }
#home:not(.loaded)::before { opacity: 0 !important; }
#home:not(.loaded) .scenery, #home:not(.loaded) .vine, #home:not(.loaded) img.art-vine { opacity: 0; }
#home.loaded .scenery, #home.loaded .vine, #home.loaded img.art-vine { animation: gateIn 1.2s var(--ease) backwards; }
/* Safari can play transitions while the page first lays out, so positioned pieces glide in from a corner.
   Until the page has settled, nothing transitions. */
.preload *, .preload *::before, .preload *::after { transition: none !important; }
/* entrance: nothing of the door shows until every piece has loaded, then it all fades in together */
#gate:not(.loaded) .portal, #gate:not(.loaded) .seal, #gate:not(.loaded) .seal-hint, #gate:not(.loaded) .gate-vine { opacity: 0; }
#gate.loaded .portal, #gate.loaded .gate-vine { animation: gateIn 1.2s var(--ease) backwards; }
#gate.loaded .seal { animation: gateIn 1s var(--ease) .45s backwards; }
#gate.loaded .seal-hint { animation: gateIn 1s var(--ease) .7s backwards; }
@keyframes gateIn { from { opacity: 0; } }
#gate::after { /* soft gold loader while the door loads */
  content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; z-index: 6; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(217, 181, 106, .75), 0 0 24px rgba(217, 181, 106, .35);
  animation: gateLoad 1.4s ease-in-out infinite; transition: opacity .5s ease;
}
#gate.loaded::after { opacity: 0; animation: none; }
@keyframes gateLoad { 50% { transform: scale(1.18); opacity: .45; } }
/* opening: seal lifts → doors swing inward → camera glides through the doorway → fade */
#gate.open .seal { animation: none; transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
#gate.open .seal-hint { opacity: 0; }
#gate.open .pdoor-l { transform: rotateY(82deg); filter: brightness(.65); }
#gate.open .pdoor-r { transform: rotateY(-82deg); filter: brightness(.65); }
#gate.open .portal { transform: translate(-50%, -50%) scale(var(--push, 2.6)); }
#gate.open .gate-vine { opacity: 0; transition: opacity 1.2s ease 1.2s; }
#gate.open { opacity: 0; visibility: hidden; }

#petals { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ═════════ NAV / CONTROLS ═════════ */
.dock {
  position: fixed; z-index: 50; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px; border-radius: 20px;
  background: rgba(40, 8, 12, .62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(241, 220, 166, .28);
  transition: transform .6s var(--ease), opacity .6s;
}
.dock a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 10px; min-width: 56px; text-decoration: none; color: rgba(246, 236, 214, .82); font-size: .68rem; border-radius: 15px; transition: background .4s, color .4s; }
.dock a .ico { font-size: 1.15rem; }
.dock a.active { color: var(--gold-l); background: rgba(241, 220, 166, .12); }
.dock a.dock-cta { color: var(--crimson-d); background: linear-gradient(135deg, #d9b56a, #f3dc9f); }
.controls { position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top)); right: 12px; display: flex; gap: 8px; }
.ctl { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(40, 8, 12, .5); color: var(--gold-l); font: 500 .75rem var(--f-caps); box-shadow: inset 0 0 0 1px rgba(241, 220, 166, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ctl.playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═════════ SCENES (shared) ═════════ */
.scene { position: relative; padding: 96px 20px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.kicker { margin: 0; font: 500 .78rem/1.4 var(--f-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--crimson); }
html[lang='hi'] .kicker { font: 400 1rem var(--f-deva); letter-spacing: .04em; text-transform: none; }
.sec-head h2 { margin: .1em 0 0; font: 400 clamp(2.4rem, 9vw, 3.6rem)/1.15 var(--f-deva); color: var(--crimson-d); }
html[lang='en'] .sec-head h2 { font-family: var(--f-script); font-size: clamp(2.8rem, 11vw, 4.2rem); line-height: 1.1; }
.sec-head h2::after { content: ''; display: block; width: 120px; height: 14px; margin: 12px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cg fill='none' stroke='%23c9a45e' stroke-width='1'%3E%3Cpath d='M0 7h46M74 7h46'/%3E%3Cpath d='M60 1l6 6-6 6-6-6z' fill='%23d9b56a'/%3E%3Ccircle cx='50' cy='7' r='1.6' fill='%23d9b56a'/%3E%3Ccircle cx='70' cy='7' r='1.6' fill='%23d9b56a'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.sec-head.light .kicker, .wash .kicker { color: var(--gold); }
.sec-head.light h2, .wash .sec-head h2 { color: var(--gold-l); }
.sec-sub { margin: .8em auto 0; max-width: 540px; opacity: .9; }

/* scenery layers */
.scenery, .palace, .footer-garden { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cy { position: absolute; bottom: 0; aspect-ratio: 60 / 280; }
.pavilion { position: absolute; bottom: 0; aspect-ratio: 200 / 290; }
svg.garden { position: absolute; left: -4%; width: 108%; bottom: -2px; height: clamp(110px, 18vh, 170px); }
svg.garden.flip { transform: scaleX(-1); }
img.art-garden-strip { position: absolute; left: 50%; bottom: -2px; width: max(110%, 900px); max-width: none; transform: translateX(-50%); }
.vine { position: absolute; top: -10px; width: clamp(90px, 26vw, 200px); aspect-ratio: 110 / 260; z-index: 1; pointer-events: none; transform-origin: top; }
.vine-l { left: -14px; } .vine-r { right: -14px; transform: scaleX(-1); }
img.art-vine { position: absolute; top: -6px; width: clamp(120px, 34vw, 280px); z-index: 1; }
img.art-vine.vine-r { transform: scaleX(-1); }

/* ═════════ HERO ═════════ */
.hero { min-height: 100svh; display: grid; place-items: center; padding: 70px 20px 150px; text-align: center; overflow: hidden; }
.cy-a { left: -3%; width: clamp(46px, 13vw, 90px); bottom: 70px; }
.cy-b { left: 8%; width: clamp(34px, 9vw, 64px); bottom: 60px; }
.cy-c { right: -2%; width: clamp(50px, 14vw, 96px); bottom: 66px; }
.cy-d { right: 10%; width: clamp(32px, 8vw, 60px); bottom: 60px; }
.pav-hero { left: -10%; width: clamp(150px, 46vw, 300px); bottom: 50px; }
img.art-garden-left { position: absolute; left: -14%; bottom: 46px; height: min(50svh, 620px); width: auto; max-width: none; }
img.art-garden-right { position: absolute; right: -16%; bottom: 40px; height: min(36svh, 460px); width: auto; max-width: none; transform: scaleX(-1); }
.has-garden-left .art-garden-right { display: block; }
.has-garden-left .scenery .cy, .has-garden-left .scenery .pavilion, .has-garden-strip .footer-garden .cy { display: none; }
@media (min-width: 900px) { img.art-garden-left { left: 0; height: min(70svh, 680px); } img.art-garden-right { right: 0; height: min(56svh, 560px); } }
.hero-copy { position: relative; z-index: 2; max-width: 560px; padding-bottom: 6vh; }
.hero-kalka { width: clamp(118px, 34vw, 170px); margin: 0 auto 6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.hk { opacity: 0; }
body.kalka-landed .hk { opacity: 1; }
.fly-kalka { position: fixed; z-index: 101; margin: 0; pointer-events: none; transform-origin: 0 0; height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .3)); transition: transform 1.45s cubic-bezier(.6, 0, .2, 1); will-change: transform; }
img.hero-kalka { height: auto; }
.hero-om { margin: 0 0 .2em; font: 400 .95rem var(--f-deva); color: var(--gold); letter-spacing: .04em; }
.couple { margin: 0; font-weight: 400; line-height: 1; color: var(--gold-l); text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.couple span { display: block; font: 400 clamp(2.4rem, 11vw, 3.8rem)/1.15 var(--f-deva); }
html[lang='en'] .couple span { font-family: var(--f-script); font-size: clamp(3.4rem, 16.5vw, 5.3rem); line-height: 1.05; }
.couple .amp { display: block; font: italic 500 clamp(2rem, 8vw, 2.8rem)/1 'Cormorant Garamond', serif; color: var(--gold); margin: .05em 0; }
.hero-dates { margin: 1.1em 0 0; font: 500 .82rem/1.5 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); }
html[lang='hi'] .hero-dates { font: 400 1.05rem var(--f-deva); letter-spacing: .03em; }
@media (max-width: 440px) { html[lang='en'] .hero-dates { font-size: .74rem; letter-spacing: .14em; } }
.hero-city { margin: .1em 0 1.6em; font: 500 .82rem var(--f-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
html[lang='hi'] .hero-city { font: 400 1rem var(--f-deva); letter-spacing: .05em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--dock-h) + 30px); transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--gold-l); font: 500 .62rem var(--f-caps); letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
html[lang='hi'] .scroll-cue { font: 400 .8rem var(--f-deva); letter-spacing: .05em; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--gold-l), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ═════════ INVITATION ═════════ */
.invite { text-align: center; padding: 90px 22px 0; overflow: hidden; }
.invite::before { /* melt from hero colour */ background: linear-gradient(var(--crimson), transparent 140px), radial-gradient(ellipse 120% 80% at 50% 110%, rgba(0, 0, 0, .3), transparent 60%), var(--mottle) center / 600px; }
.inv-copy { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; padding-bottom: 30px; }
.inv-om { margin: 0; font: 400 .95rem var(--f-deva); color: var(--gold); letter-spacing: .06em; }
.inv-row { margin: .4em 0 0; display: flex; gap: .8em; justify-content: center; align-items: center; font-size: .88rem; color: rgba(241, 220, 166, .85); }
.inv-row b { color: var(--gold); font-size: .7em; }
.inv-bless { margin: 1.4em auto 1.6em; max-width: 440px; font-size: .98rem; color: var(--gold-l); opacity: .92; }
html[lang='en'] .inv-bless { font-family: var(--f-caps); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.9; }
.inv-name { margin: 0; font: 400 clamp(2.1rem, 9vw, 3rem)/1.2 var(--f-deva); color: var(--gold-l); }
html[lang='en'] .inv-name { font: 500 clamp(1.6rem, 7vw, 2.3rem)/1.2 var(--f-caps); letter-spacing: .08em; }
.inv-lineage { margin: .35em 0 0; font-size: .9rem; line-height: 1.55; color: rgba(241, 220, 166, .82); }
.inv-lineage span { display: block; }
.inv-amp { margin: .3em 0; font: italic 500 2.6rem/1 'Cormorant Garamond', serif; color: var(--gold); }
.inv-line { margin: 1.6em auto 0; max-width: 480px; color: rgba(241, 220, 166, .9); font-size: .98rem; }
.inv-line b { display: block; font: 400 1.9rem/1.3 var(--f-deva); color: var(--gold-l); }
html[lang='en'] .inv-line b { font-family: var(--f-script); font-size: 2.6rem; }
.palace { position: relative; inset: auto; height: clamp(230px, 46vw, 380px); margin: 0 -22px; }
.pav-l { left: 2%; width: 34%; bottom: 48px; } .pav-c { left: 33%; width: 34%; bottom: 70px; opacity: .92; } .pav-r { right: 2%; width: 34%; bottom: 44px; }
.cy-p1 { left: 26%; width: 9%; bottom: 60px; } .cy-p2 { left: 64%; width: 8%; bottom: 66px; } .cy-p3 { right: -1%; width: 10%; bottom: 40px; }
img.art-palace-row { position: relative; left: 50%; width: max(100%, 560px); max-width: none; transform: translateX(-50%); }
.has-palace-row .palace { height: auto; margin-top: -10px; }
.has-palace-row .palace > svg { display: none; }

/* ═════════ SCRATCH + COUNTDOWN ═════════ */
.muhurat { text-align: center; padding-top: 110px; }
.muhurat::before { background: linear-gradient(#5e0f17, transparent 120px), radial-gradient(ellipse 80% 55% at 50% 38%, rgba(255, 230, 190, .14), transparent 70%), var(--mottle) center / 600px; }
.scratch-wrap { position: relative; display: grid; justify-items: center; gap: 12px; }
.scratch-fx { position: absolute; left: 50%; top: -70px; width: min(100vw, 560px); height: calc(100% + 150px); transform: translateX(-50%); pointer-events: none; z-index: 3; }
/* invitation to scratch: a light sweep across the foil + a glowing fingertip trail */
.scratch-shine { position: absolute; inset: 0; pointer-events: none; clip-path: url(#scratchArch); -webkit-clip-path: url(#scratchArch);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 235, .55) 50%, transparent 62%) no-repeat; background-size: 250% 100%; background-position: 150% 0;
  animation: shine 3.8s var(--ease-io) 1.2s infinite; transition: opacity .5s; }
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
.scratch-trail { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
.scratch-trail i { position: absolute; left: 30%; top: 56%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fffdf0 0 28%, rgba(255, 241, 184, .75) 45%, transparent 72%); box-shadow: 0 0 22px 8px rgba(255, 241, 184, .45);
  animation: trail 3.8s ease-in-out 2.2s infinite; }
.scratch-trail i:nth-child(2) { width: 15px; height: 15px; margin: -7.5px; animation-delay: 2.32s; box-shadow: none; }
.scratch-trail i:nth-child(3) { width: 9px; height: 9px; margin: -4.5px; animation-delay: 2.44s; box-shadow: none; }
@keyframes trail {
  0% { left: 26%; top: 42%; opacity: 0; } 8% { opacity: .95; }
  25% { left: 74%; top: 48%; } 45% { left: 28%; top: 60%; } 65% { left: 72%; top: 70%; }
  80% { left: 40%; top: 80%; opacity: .9; } 92%, 100% { left: 46%; top: 82%; opacity: 0; } }
.scratch.touched .scratch-shine, .scratch.touched .scratch-trail, .scratch.done .scratch-shine, .scratch.done .scratch-trail { opacity: 0; animation: none; }
.scratch.touched .scratch-trail i { animation: none; }
.scratch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: relative; width: min(76vw, 310px); aspect-ratio: 3 / 3.9; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .4)); }
.scratch::before { content: ''; position: absolute; inset: -6px; clip-path: url(#scratchArch); -webkit-clip-path: url(#scratchArch); background: linear-gradient(135deg, #8a6416, #f3dc9f 30%, #c99a2e 55%, #f6e6b8 80%, #8a6416); }
.scratch-under, .scratch-foil { position: absolute; inset: 0; clip-path: url(#scratchArch); -webkit-clip-path: url(#scratchArch); }
.scratch-under {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26% 12% 6%;
  color: var(--gold-l); background: radial-gradient(ellipse at 50% 60%, #a3283a, #5e0f17 80%);
}
.scratch-under p { margin: 0; }
.su-kicker { font: 400 1rem var(--f-deva); color: var(--gold); }
html[lang='en'] .su-kicker { font: 500 .66rem var(--f-caps); letter-spacing: .2em; text-transform: uppercase; }
.su-date { font: 400 1.05rem/1.35 var(--f-deva); margin-top: .3em !important; }
html[lang='en'] .su-date { font-family: var(--f-en); font-weight: 600; font-size: 1.1rem; }
.su-time { margin-top: .2em !important; font: 400 1.45rem/1.2 var(--f-deva); color: #fff2cc; }
html[lang='en'] .su-time { font: 400 2.2rem/1.1 var(--f-script); }
.su-venue { margin-top: .4em !important; font-size: .76rem; line-height: 1.4; opacity: .85; }
.scratch-foil { width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.4s var(--ease); }
.scratch.done .scratch-foil { opacity: 0; filter: blur(8px) brightness(1.3); transform: scale(1.05); pointer-events: none; }
.scratch.done .su-time { animation: glowText 2.6s var(--ease) .4s 1; }
@keyframes glowText { 30% { text-shadow: 0 0 18px rgba(255, 241, 184, .9), 0 0 2px #fff; } }
.save-date.glow { animation: glowBtn 2.4s var(--ease) .6s 2; }
@keyframes glowBtn { 40% { box-shadow: 0 0 0 6px rgba(241, 220, 166, .25), 0 0 34px 6px rgba(241, 220, 166, .55); transform: translateY(-2px); } }
.scratch.done { animation: bloom 1.6s var(--ease) 1; }
@keyframes bloom { 0% { transform: scale(1); } 35% { transform: scale(1.04); } 100% { transform: scale(1); } }
.scratch-hint { margin: 0; color: rgba(241, 220, 166, .85); font-size: .88rem; display: flex; gap: .8em; align-items: center; justify-content: center; flex-wrap: wrap; }
.scratch-hint.done span { visibility: hidden; }
.save-date { margin-top: 22px; }
.forever { margin: 64px auto 0; max-width: 520px; }
.forever-title { margin: 0 0 18px; font: 400 clamp(1.4rem, 6vw, 1.9rem)/1.35 var(--f-deva); color: var(--gold-l); }
html[lang='en'] .forever-title { font: 400 clamp(2.2rem, 9vw, 2.9rem)/1.1 var(--f-script); }
.countdown { display: flex; justify-content: center; align-items: flex-start; }
.countdown div { position: relative; min-width: 74px; padding: 0 6px; }
.countdown div + div::before { content: '◆'; position: absolute; left: -5px; top: .55em; font-size: .5rem; color: var(--gold); }
.countdown b { display: block; font: 400 2.6rem/1 var(--f-caps); color: var(--gold-l); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font: 500 .62rem var(--f-caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
html[lang='hi'] .countdown small { font: 400 .82rem var(--f-deva); letter-spacing: .02em; }
.cd-caption { margin: 14px 0 0; font-size: .88rem; color: rgba(241, 220, 166, .8); }

/* ═════════ EVENTS — sticky carved arch, panels glide sideways with scroll ═════════ */
.events-scroll { margin-bottom: 44px; /* room for the next section's scalloped edge */ position: relative; height: calc(100svh + (var(--n, 7) - 1) * 90svh); background: var(--crimson-d); }
.ev-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--crimson-d); }
.ev-stage::before { /* wide screens: painted wall around the 9:16 frame */
  content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #7d1620, #3f0a10 80%); }
.ev-frame {
  --wx: var(--arch-wx, 11%); --wy: var(--arch-wy, 13%); --ww: var(--arch-ww, 78%); --wh: var(--arch-wh, 87%); /* arch window — real art sets --arch-* via art.json */
  position: absolute; left: 50%; top: 0; height: 100svh; aspect-ratio: 9 / 16; transform: translateX(-50%);
  background: #ecdfc3; overflow: hidden;
}
.ev-frame::before { /* carved ivory: jaali dots + inlay bands (fallback frame) */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle, rgba(168, 130, 63, .35) 1.2px, transparent 1.8px) 0 0 / 12px 12px,
    linear-gradient(90deg, transparent 4%, rgba(168, 130, 63, .4) 4% 4.4%, transparent 4.4% 95.6%, rgba(168, 130, 63, .4) 95.6% 96%, transparent 96%),
    linear-gradient(90deg, #e6d6b4, #f3e8cf 50%, #e6d6b4);
}
.ev-frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: 3; pointer-events: none; display: none; }
.has-arch-frame .ev-frame-img { display: block; }
.has-arch-frame .ev-frame::before, .has-arch-frame .ev-window-edge, .has-arch-frame .ev-vine { display: none; }
.has-arch-frame .ev-window { clip-path: none; -webkit-clip-path: none; }
.ev-window-edge, .ev-window { position: absolute; left: var(--wx); top: var(--wy); width: var(--ww); height: var(--wh); }
.ev-window-edge { margin: -7px; width: calc(var(--ww) + 14px); height: calc(var(--wh) + 14px); clip-path: url(#cusp); -webkit-clip-path: url(#cusp); background: linear-gradient(135deg, #a8823f, #f3dc9f 40%, #c9a45e 70%, #f1dca6); }
.ev-window { clip-path: url(#cusp); -webkit-clip-path: url(#cusp); overflow: hidden; background: var(--crimson); }
.ev-kicker { position: absolute; left: 0; right: 0; top: 3.2%; z-index: 4; margin: 0; text-align: center; font: 400 1.05rem var(--f-deva); color: var(--crimson); letter-spacing: .04em; }
html[lang='en'] .ev-kicker { font: 500 .62rem var(--f-caps); letter-spacing: .18em; text-transform: uppercase; }
.has-arch-frame .ev-kicker { top: calc(var(--wy) + 5.5%); color: var(--gold); opacity: .9; }
.ev-vine { position: absolute; top: 2%; width: 19%; opacity: .95; aspect-ratio: 110 / 260; z-index: 2; pointer-events: none; }
.ev-vine-l { left: 0; } .ev-vine-r { right: 0; transform: scaleX(-1); }
.ev-track { position: absolute; inset: 0; }
.ev-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26% 9% 0; will-change: transform; overflow: hidden;
}
.ev-panel .ev-copy { position: relative; z-index: 2; will-change: transform, opacity; }
.ev-day { margin: 0; font: 500 .62rem var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang='hi'] .ev-day { font: 400 .95rem var(--f-deva); letter-spacing: .02em; }
.ev-title { margin: .15em 0 .1em; font: 400 clamp(1.8rem, 7.4vw, 2.5rem)/1.2 var(--f-deva); color: var(--gold-l); text-wrap: balance; }
html[lang='en'] .ev-title { font: 400 clamp(2.3rem, 10vw, 3.2rem)/1.08 var(--f-script); }
.ev-tag { margin: .2em auto .5em; max-width: 300px; font-size: .86rem; font-style: italic; opacity: .85; }
.ev-shloka { margin: .2em auto .5em; max-width: 300px; font-size: .78rem; opacity: .8; }
.ev-times { list-style: none; margin: .8em 0 0; padding: 0; display: grid; gap: .25em; }
.ev-times li { display: flex; justify-content: center; gap: .6em; font-size: .95rem; }
.ev-times li span { opacity: .82; }
.ev-times li b { font-weight: 400; color: #fff2cc; }
html[lang='en'] .ev-times li { font: 500 .78rem/1.8 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; }
.ev-venue { margin: .9em auto 0; max-width: 300px; font-size: .85rem; line-height: 1.45; }
.ev-landmark { display: block; font-size: .8rem; opacity: .8; }
.ev-venue small { display: block; font: 500 .58rem var(--f-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .2em; }
html[lang='hi'] .ev-venue small { font: 400 .78rem var(--f-deva); letter-spacing: .02em; }
.ev-acts { display: flex; gap: 8px; justify-content: center; margin-top: 1em; }
.ev-acts .btn { padding: .5em 1.05em; font-size: .85rem; }
html[lang='en'] .ev-acts .btn { font-size: .66rem; }
.ev-live { display: inline-block; margin-bottom: .4em; padding: .1em .8em; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .7rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.ev-panel.past .ev-copy { opacity: .7; }
.ev-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 1; pointer-events: none; will-change: transform; }
.ev-scene .pavilion { width: 44%; bottom: 14%; }
.ev-scene .cy { width: 11%; bottom: 16%; }
.ev-scene svg.garden { height: 44%; }
.ev-scene.flip .pavilion { right: -8%; left: auto; } .ev-scene:not(.flip) .pavilion { left: -8%; }
.ev-scene .cy-e1 { left: 2%; } .ev-scene .cy-e2 { right: 3%; } .ev-scene.flip .cy-e1 { left: auto; right: 34%; }
.ev-scene img.art-event { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: 112%; object-fit: contain; object-position: bottom; transform: translateX(-50%); display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.ev-scene.has-art:not(.painting) { height: 40%; bottom: 2%; }
.ev-scene.has-art > svg { display: none; }
/* full paintings (jpg) instead of cut-outs: crop the painted border, melt the top into the wash */
.ev-scene.painting { height: auto; aspect-ratio: 3 / 2; bottom: calc(var(--dock-h) + 4px); } /* whole painting, edge to edge, above the nav */
.ev-scene.painting img.art-event { inset: 0; width: 100%; height: 100%; max-width: none; filter: none; object-fit: cover; object-position: 50% 100%; transform: translateX(var(--shift, 0)) scale(var(--zoom, 1.06)); transform-origin: 50% 100%;
  -webkit-mask: linear-gradient(to bottom, transparent 4%, rgba(0, 0, 0, .3) calc(var(--fade, 52%) * .42), rgba(0, 0, 0, .78) calc(var(--fade, 52%) * .74), #000 var(--fade, 52%), #000 94%, transparent 100%); mask: linear-gradient(to bottom, transparent 4%, rgba(0, 0, 0, .3) calc(var(--fade, 52%) * .42), rgba(0, 0, 0, .78) calc(var(--fade, 52%) * .74), #000 var(--fade, 52%), #000 94%, transparent 100%); }

.ev-stage { touch-action: pan-y; }
.ev-stage.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.ev-nav { position: absolute; z-index: 4; top: 58%; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0 0 3px;
  font: 400 1.6rem/1 var(--f-en); color: var(--crimson-d); background: rgba(246, 236, 214, .82); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(217, 181, 106, .8);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .4s var(--ease), opacity .4s; }
.ev-nav:active { transform: scale(.92); }
.ev-prev { left: max(4px, calc(var(--wx) - 19px)); } .ev-next { right: max(4px, calc(100% - var(--wx) - var(--ww) - 19px)); }
.events-scroll.static .ev-nav { display: none; }
.ev-dots { position: absolute; z-index: 4; right: max(6px, calc(100% - var(--wx) - var(--ww) + 8px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; } /* vertical, matching the rising panels */
.ev-dots button { width: 9px; height: 9px; padding: 0; border: 0; transform: rotate(45deg); background: rgba(241, 220, 166, .35); transition: background .4s, transform .5s var(--ease); }
.ev-dots button.on { background: var(--gold-l); transform: rotate(45deg) scale(1.35); }
.ev-after { display: grid; place-items: center; padding: 34px 20px 60px; }
/* reduced motion / no sticky: simply stack the panels */
.events-scroll.static { height: auto; }
.events-scroll.static .ev-stage { position: relative; height: auto; overflow: visible; }
.events-scroll.static .ev-frame { position: relative; left: auto; transform: none; height: auto; aspect-ratio: auto; width: min(100%, 520px); margin: 0 auto; padding: 60px 0; }
.events-scroll.static .ev-window, .events-scroll.static .ev-window-edge { position: relative; inset: auto; width: auto; height: auto; clip-path: none; -webkit-clip-path: none; }
.events-scroll.static .ev-window-edge, .events-scroll.static .ev-dots, .events-scroll.static .ev-frame-img { display: none; }
.events-scroll.static .ev-track { position: relative; display: grid; gap: 14px; }
.events-scroll.static .ev-panel { position: relative; inset: auto; min-height: 640px; transform: none !important; }

/* ═════════ GALLERY — collage ═════════ */
.gallery { padding-bottom: 80px; }
.collage { --g: 10px; --cw: calc((min(100vw - 40px, 820px) - 5 * var(--g)) / 6); max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: var(--cw); gap: var(--g); }
.tile {
  position: relative; display: block; border: 0; padding: 5px; min-width: 0; cursor: zoom-in;
  background: #fffaf0; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(168, 130, 63, .55), 0 16px 28px -18px rgba(60, 20, 10, .6);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; transition: transform 1.6s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(168, 130, 63, .8), 0 22px 34px -18px rgba(60, 20, 10, .7); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption { position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 26px 8px 7px; border-radius: 0 0 3px 3px; font: 400 .82rem var(--f-deva); color: var(--gold-l); text-align: center; background: linear-gradient(transparent, rgba(40, 8, 12, .78)); opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html[lang='en'] .tile figcaption { font: italic 600 .9rem var(--f-en); }
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
.t-half { grid-column: span 3; grid-row: span 4; }                /* ≈ 3:4 portrait */
.t-wide { grid-column: span 6; grid-row: span 4; }                /* 3:2 landscape */
.t-wide-tall { grid-column: span 6; grid-row: span 5; }           /* 6:5 */
.t-feature { grid-column: span 4; grid-row: span 5; }              /* large photo, 4:5 */
.t-side-tall { grid-column: span 2; grid-row: span 3; }            /* stacked beside the feature, tall */
.t-side-sq { grid-column: span 2; grid-row: span 2; }              /* stacked beside the feature, square */
.t-hero { padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.t-hero::before { content: ''; position: absolute; inset: -5px; clip-path: url(#cuspLow); -webkit-clip-path: url(#cuspLow); background: linear-gradient(135deg, #a8823f, #f3dc9f 40%, #c9a45e 70%, #f1dca6); }
.t-hero img { position: relative; clip-path: url(#cuspLow); -webkit-clip-path: url(#cuspLow); border-radius: 0; }
.t-hero figcaption { left: 0; right: 0; bottom: 0; opacity: 1; transform: none; border-radius: 0; font-size: .95rem; }
.t-hero:hover { transform: none; box-shadow: none; }
.share-photos { max-width: 620px; margin: 60px auto 0; text-align: center; }
.share-photos h3 { margin: 0; font: 400 1.35rem var(--f-deva); color: var(--crimson-d); }
html[lang='en'] .share-photos h3 { font: 400 2rem var(--f-script); }
.share-photos p { margin: .3em 0 1.1em; color: var(--ink-soft); font-size: .93rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.inline-form input:not([type=file]) { flex: 1 1 200px; }

/* ═════════ FORMS (underline style) ═════════ */
input:not([type=radio]):not([type=checkbox]), textarea {
  width: 100%; padding: .65em .2em; border: 0; border-bottom: 1px solid rgba(142, 27, 36, .35); border-radius: 0; background: transparent; outline: none; transition: border-color .4s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-bottom-color: var(--crimson); }
.form-msg { margin: .5em 0 0; min-height: 1.2em; width: 100%; font-size: .93rem; }
.form-msg.ok { color: #2f6b3a; } .form-msg.err { color: var(--crimson); }
.file-btn { cursor: pointer; }

/* ═════════ VENUE ═════════ */
.venue { padding-bottom: 80px; }
.venue-list { max-width: 1040px; margin: 0 auto; display: grid; gap: 54px; }
.venue-card { text-align: center; }
.venue-map { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 3.6; margin: 0 auto; border-radius: 18px; overflow: hidden; isolation: isolate; transform: translateZ(0);
  background: #e8dfca; box-shadow: 0 0 0 2px #d9b56a, 0 0 0 7px rgba(246, 236, 214, .1), 0 0 0 8px rgba(217, 181, 106, .45), 0 24px 44px -22px rgba(0, 0, 0, .65); }
/* plain rectangle on purpose: mobile Safari won't draw a Google Maps iframe that is clip-pathed or filtered */
.venue-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 18px; }
.venue-photo { aspect-ratio: 4 / 5; border-radius: 0; overflow: visible; box-shadow: none; background: none; transform: none; }
.venue-photo::before { content: ''; position: absolute; inset: -5px; clip-path: url(#cuspLow); -webkit-clip-path: url(#cuspLow); background: linear-gradient(135deg, #a8823f, #f3dc9f 40%, #c9a45e 70%, #f1dca6); }
.venue-card.reveal { filter: none !important; } /* no blur around live maps either */
.venue-photo { display: block; text-decoration: none; }
.venue-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: url(#cuspLow); -webkit-clip-path: url(#cuspLow); transition: transform 1.2s var(--ease); }
.venue-photo:hover img { transform: scale(1.03); }
.vp-pill { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; padding: .45em 1.1em; border-radius: 999px; font-size: .85rem; color: var(--leaf); background: rgba(246, 236, 214, .92); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(217, 181, 106, .8); }
.venue-body { padding: 22px 6px 0; }
.venue-body h3 { margin: 0; font: 400 1.5rem/1.25 var(--f-deva); color: var(--gold-l); }
html[lang='en'] .venue-body h3 { font: 400 2.2rem/1.1 var(--f-script); }
.venue-body p { margin: .4em auto .8em; max-width: 380px; color: rgba(241, 220, 166, .82); font-size: .92rem; }
.venue-events { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 16px; }
.venue-events span { font-size: .8rem; color: var(--gold); }
.venue-events span + span::before { content: '◆'; font-size: .5em; margin-right: 14px; vertical-align: middle; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ev-actions .btn { padding: .6em 1.2em; font-size: .88rem; }
.venue .btn-crimson, .venue .btn-ghost { color: var(--gold-l); background: transparent; box-shadow: inset 0 0 0 1px rgba(241, 220, 166, .6); }
.venue .btn-crimson:first-child { color: var(--leaf); background: linear-gradient(135deg, #d9b56a, #f3dc9f); }
.venue-art { width: min(78vw, 340px); margin: -6px auto 46px; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }
.has-venue-path .venue-art { display: block; }
.home-addr { max-width: 640px; margin: 44px auto 0; text-align: center; color: rgba(241, 220, 166, .8); font-size: .9rem; }

/* ═════════ RSVP ═════════ */
.rsvp { padding-bottom: 90px; }
.rsvp-card {
  position: relative; max-width: 640px; margin: 0 auto; padding: 120px 24px 34px; color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, #fdf6e6, var(--parch) 70%);
  border-radius: 320px 320px 18px 18px / 150px 150px 18px 18px;
  box-shadow: 0 0 0 1px rgba(217, 181, 106, .8), 0 0 0 7px rgba(246, 236, 214, .08), 0 0 0 8px rgba(217, 181, 106, .45), 0 40px 80px -30px rgba(0, 0, 0, .6);
  display: grid; gap: 18px;
}
.rsvp-kalka { position: absolute; left: 50%; top: 22px; width: 62px; transform: translateX(-50%); --k-line: #b8913f; --k-fill: rgba(217, 181, 106, .08); --k-eye: #f6ecd6; }
.grid2 { display: grid; gap: 16px; }
.fld { display: grid; gap: 2px; }
.fld > span { font: 400 .95rem var(--f-deva); color: var(--crimson); }
html[lang='en'] .fld > span { font: 500 .66rem var(--f-caps); letter-spacing: .2em; text-transform: uppercase; }
.att-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(142, 27, 36, .25); }
.att-toggle input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.att-toggle span { display: block; padding: .7em .5em; text-align: center; border-radius: 999px; cursor: pointer; font-family: var(--f-deva); color: var(--ink-soft); transition: background .5s var(--ease), color .4s; line-height: 1.3; font-size: .92rem; }
.att-toggle input:checked + span { background: linear-gradient(180deg, #a3283a, var(--crimson-d)); color: var(--gold-l); }
.att-toggle input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; }
.chips span { display: inline-block; padding: .4em 1em; border-radius: 999px; cursor: pointer; font-size: .88rem; box-shadow: inset 0 0 0 1px rgba(168, 130, 63, .55); transition: background .4s, color .4s; }
.chips input:checked + span { background: var(--crimson); color: var(--gold-l); box-shadow: none; }
.stepper { display: flex; align-items: center; max-width: 170px; gap: 4px; }
.stepper button { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--crimson); font-size: 1.2rem; box-shadow: inset 0 0 0 1px rgba(142, 27, 36, .35); }
.stepper input { text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: .6em; align-items: center; cursor: pointer; font-size: .95rem; }
.checks input { width: 18px; height: 18px; accent-color: var(--crimson); }
.rsvp-card.declined .when-yes { display: none; }
.rsvp-done { text-align: center; padding: 10px 0; }
.rsvp-done .big { font: 400 2rem/1.2 var(--f-deva); color: var(--crimson); margin: 0; }
html[lang='en'] .rsvp-done .big { font: 400 3rem/1.1 var(--f-script); }
.rsvp-done p { margin: .4em 0 1em; color: var(--ink-soft); }
.rsvp-done .btn { margin: 4px; }
.btn-ghost { color: var(--crimson); background: transparent; box-shadow: inset 0 0 0 1px rgba(142, 27, 36, .4); }

/* ═════════ BLESSINGS ═════════ */
.bless-form { max-width: 620px; margin: 0 auto 50px; display: grid; gap: 14px; text-align: center; }
.bless-form .btn { justify-self: center; }
.bless-wall { max-width: 1080px; margin: 0 auto; columns: 1; column-gap: 26px; }
.bless { break-inside: avoid; margin: 0 0 26px; padding: 4px 6px 4px 22px; position: relative; border-left: 1px solid rgba(168, 130, 63, .55); }
.bless::before { content: '❀'; position: absolute; left: -.5em; top: 0; color: var(--gold-d); background: var(--parch); line-height: 1; }
.bless p { margin: 0 0 .5em; white-space: pre-line; font-size: 1rem; }
.bless footer { font: 400 .95rem var(--f-deva); color: var(--crimson); }
html[lang='en'] .bless footer { font: 400 1.5rem var(--f-script); }
.bless footer small { display: block; font: 400 .78rem var(--f-body); color: var(--ink-soft); }
.bless.new { animation: glowIn 2.4s var(--ease); }
@keyframes glowIn { from { background: rgba(217, 181, 106, .25); } }
.empty { text-align: center; color: var(--ink-soft); font-style: italic; }

/* ═════════ FAMILY ═════════ */
.family { padding-bottom: 90px; text-align: center; }
.family-grid { max-width: 1040px; margin: 0 auto; display: grid; gap: 40px; }
.fam-wrap { position: relative; }
.fam-wrap + .fam-wrap::before { content: '❦'; display: block; margin: -18px auto 18px; color: var(--gold); opacity: .7; }
.fam-card h3 { margin: 0 0 .4em; font: 400 1.3rem var(--f-deva); color: var(--gold); }
html[lang='en'] .fam-card h3 { font: 400 2.1rem/1.1 var(--f-script); }
.fam-card p { margin: 0; line-height: 1.9; color: rgba(246, 236, 214, .9); font-size: .98rem; }

/* ═════════ CONTACT ═════════ */
.contact { padding-bottom: 90px; }
.contact-list { max-width: 900px; margin: 0 auto; display: grid; gap: 0; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px; border-bottom: 1px solid rgba(168, 130, 63, .35); }
.contact-card b { display: block; font: 400 1.15rem var(--f-deva); color: var(--crimson-d); }
html[lang='en'] .contact-card b { font: 600 1.15rem var(--f-en); }
.contact-card span { color: var(--ink-soft); font-size: .9rem; letter-spacing: .04em; }
.contact-card .acts { display: flex; gap: 8px; }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 1.05rem; }
.round.call { color: var(--crimson); box-shadow: inset 0 0 0 1px rgba(142, 27, 36, .45); }
.round.wa { color: #1f8b4c; box-shadow: inset 0 0 0 1px rgba(31, 139, 76, .5); }

/* ═════════ FOOTER ═════════ */
.footer { position: relative; padding: 70px 20px calc(var(--dock-h) + 260px); text-align: center; overflow: hidden; }
.footer-garden { top: auto; height: 260px; }
.cy-f1 { left: 4%; width: 54px; bottom: 60px; } .cy-f2 { right: 6%; width: 60px; bottom: 60px; }
.footer-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.medallion { position: relative; width: 140px; height: 140px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #fffaf0, #f3e6c8 60%, #e3cf9e); box-shadow: 0 0 0 3px #d9b56a, 0 0 0 7px rgba(246, 236, 214, .15), 0 0 0 8px #b8913f; color: var(--crimson); }
.medallion svg { position: absolute; width: 74px; top: 16px; left: 50%; transform: translateX(-50%); --k-line: #c9a45e; --k-fill: rgba(217, 181, 106, .12); --k-eye: #f6ecd6; opacity: .55; }
.medallion span { position: relative; font: 400 2.4rem var(--f-script); margin-top: 30px; }
.medallion span i { color: var(--gold-d); font: italic 500 .6em 'Cormorant Garamond', serif; }
.nivedan-tag { margin: 0; font: 500 .7rem var(--f-caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
html[lang='hi'] .nivedan-tag { font: 400 1rem var(--f-deva); letter-spacing: .04em; }
.nivedan { margin: .8em auto 2em; max-width: 480px; font-size: .98rem; color: rgba(246, 236, 214, .9); }
.with-love { margin: 0; font: 500 .7rem var(--f-caps); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
html[lang='hi'] .with-love { font: 400 1rem var(--f-deva); letter-spacing: .04em; }
.hosts { margin: .1em 0 .6em; font: 400 2rem/1.3 var(--f-deva); color: var(--gold-l); }
html[lang='en'] .hosts { font: 400 3rem/1.1 var(--f-script); }
.tiny { font-size: .72rem; opacity: .6; letter-spacing: .14em; }
.credits { margin: 1.4em 0 0; font-size: .66rem; opacity: .5; } .credits a { color: inherit; }

/* ═════════ LIGHTBOX ═════════ */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; background: rgba(30, 6, 9, .94); animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; margin: 0 auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(241, 220, 166, .5); }
.lightbox figcaption { margin-top: 12px; color: var(--gold-l); font-family: var(--f-deva); }
.lightbox button { background: none; border: 0; color: var(--gold-l); font-size: 2.6rem; }
.lb-close { position: absolute; top: 10px; right: 16px; }

/* ═════════ CHAT ═════════ */
.chat-fab {
  position: fixed; z-index: 60; right: 14px; bottom: calc(var(--dock-h) + 26px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border: 0; border-radius: 999px;
  background: rgba(246, 236, 214, .92); color: var(--crimson-d); font: 400 .9rem var(--f-deva); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(217, 181, 106, .8);
}
.chat-fab, .wa-fab { transition: opacity .5s var(--ease), transform .5s var(--ease); }
body.in-events .chat-fab, body.in-events .wa-fab { opacity: 0; transform: translateY(12px); pointer-events: none; }
.chat-fab .diya { font-size: 1.2rem; animation: flicker 2.5s infinite; }
@keyframes flicker { 50% { filter: brightness(1.3) drop-shadow(0 0 6px #f59e0b); } }
.wa-fab { position: fixed; z-index: 60; right: 18px; bottom: calc(var(--dock-h) + 84px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.chat {
  position: fixed; z-index: 110; right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: min(78vh, 640px);
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--parch);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold); animation: riseIn .5s var(--ease);
}
@keyframes riseIn { from { transform: translateY(30px); opacity: 0; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--gold-l); background: linear-gradient(90deg, var(--crimson-d), var(--crimson)); }
.chat-head b { display: block; font: 400 1.2rem var(--f-deva); }
.chat-head small { font-size: .75rem; opacity: .85; }
.chat-close { background: none; border: 0; color: var(--gold-l); font-size: 1.8rem; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #fffdf6; border-top-left-radius: 4px; box-shadow: inset 0 0 0 1px rgba(217, 181, 106, .45); }
.msg.me { align-self: flex-end; background: var(--crimson); color: var(--gold-l); border-top-right-radius: 4px; }
.msg a { color: var(--crimson); word-break: break-all; }
.msg.typing { color: var(--ink-soft); font-style: italic; }
.chat-chips { flex: none; /* never squeezed by the message list */ display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 6px 12px 10px; scrollbar-width: none; }
.chat-chips button { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: .3em 1em; border-radius: 999px; border: 0; background: transparent; color: var(--crimson); font-size: .85rem; line-height: 1.3; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(168, 130, 63, .7); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(217, 181, 106, .4); }
.chat-input input { border-bottom: 0 !important; background: #fffdf6 !important; border-radius: 999px !important; padding: .6em 1em !important; }
.chat-input button { flex: none; width: 44px; border-radius: 50%; border: 0; background: var(--crimson); color: var(--gold-l); font-size: 1.1rem; }

/* ═════════ 404 ═════════ */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--gold-l); padding: 20px; }
.nf h1 { font: 400 3rem var(--f-deva); margin: 0; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-height: 720px) {
  .ev-panel { padding-top: 21%; }
  .ev-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  html[lang='en'] .ev-title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .ev-tag, .ev-shloka { display: none; }
  .ev-scene { height: 30%; } .ev-scene.painting { height: auto; }
}
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .bless-wall { columns: 2; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .fam-wrap + .fam-wrap::before { display: none; }
  .chat { left: auto; width: 390px; right: 18px; }
  .rsvp-card { padding: 130px 44px 40px; }
}
@media (min-width: 900px) {
  :root { --dock-h: 0px; }
  .dock { top: 14px; bottom: auto; flex-direction: row; padding: 5px 8px; }
  .dock a { flex-direction: row; gap: 6px; font-size: .85rem; padding: 8px 14px; }
  .dock a .ico { font-size: 1rem; }
  .controls { top: 16px; right: 18px; }
  .venue-list { grid-template-columns: 1fr 1fr; }
  .bless-wall { columns: 3; }
  .family-grid { grid-template-columns: repeat(3, 1fr); }
  .chat-fab { bottom: 24px; right: 24px; }
  .wa-fab { bottom: 84px; right: 28px; }
  .scroll-cue { bottom: 34px; }
  .palace { width: min(100%, 820px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .reveal, .rise { opacity: 1 !important; transform: none !important; filter: none !important; }
}

.chat-head, .chat-input { flex: none; } /* only the messages scroll; header, chips and input keep their size */
