/* GENERATED by build/build.cjs from css/*.css (list: build/build.cjs CSS) — do not hand-edit. */
/* ---- css/tokens.css ---- */
/* tokens.css — palette, type scale and motion tokens. Every other file reads these.
 * Contrast: gold TEXT on ivory uses --gold-ink (darkened; >= 4.5:1 on --ivory). The bright
 * golds are for text on navy and for hairlines/decoration only. */
:root {
  --ivory: #f6eedc;
  --ivory-hi: #fbf6ea;        /* print mats, cartouche fill */
  --navy-800: #14213d;
  --navy-900: #0e1a36;
  --gold: #b8893a;            /* hairlines + decoration on ivory (NOT text) */
  --gold-300: #d9b66a;        /* text on navy */
  --gold-200: #ecd9a6;        /* display text on navy */
  --gold-ink: #7a5a1e;        /* gold-coloured text on ivory (5.3:1) */
  --lotus: #c9697f;
  --ink: #3a2a1e;
  --ink-soft: #5b4636;        /* secondary text on ivory (7:1) */
  --focus: #c9697f;

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-text: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;

  --track-caps: 0.28em;       /* small caps tracking */
  --gutter: clamp(22px, 6.4vw, 64px);
  --measure: 34rem;

  /* motion — slow, weighty, dignified. Every file reads these; nothing hard-codes a time. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* arrivals */
  --ease-soft: cubic-bezier(0.45, 0, 0.25, 1);      /* fades, loops */
  --ease-board: cubic-bezier(0.62, 0.02, 0.3, 1);   /* the cover swinging open */
  --ease-back: cubic-bezier(0.34, 1.45, 0.64, 1);   /* a small overshoot (peacocks, pops) */
  --ease-draw: cubic-bezier(0.65, 0, 0.25, 1);      /* rules + dividers drawing from the centre */
  --motion-fast: 220ms;
  --motion-medium: 700ms;
  --motion-slow: 1200ms;
  --motion-slower: 1700ms;
  --motion-draw: 1400ms;
  --distance-reveal: 22px;    /* text rise */
  --distance-art: 48px;       /* art / print travel */
  --blur-reveal: 6px;         /* titles settle out of this blur */
  --stagger: 140ms;           /* between blocks entering together */
  --stagger-line: 90ms;       /* between lines inside one block */
  --stagger-letter: 55ms;     /* "PremJas" per letter */
  --stagger-word: 70ms;       /* the quote, per word */

  /* gate (js/gate.js + js/fireworks.js read the ms values). t = 0 is the tap. */
  --gate-medal-dur: 1000ms;   /* the seal breaks: the medallion spins and lifts away */
  --gate-light-dur: 1700ms;   /* light floods through the seam */
  --gate-swing-at: 260ms;     /* the leaves start to swing on their outer hinges */
  --gate-swing-dur: 1500ms;
  --gate-swing-ease: cubic-bezier(0.5, 0.02, 0.28, 1);
  --gate-swing-angle: 87deg;
  --gate-push-at: 1150ms;     /* the camera pushes through the doorway */
  --gate-push-dur: 1250ms;
  --gate-push-scale: 2.3;
  --gate-hero-at: 1050ms;     /* page unlocks + the hero text starts (leaves about half open) */
  --gate-done-at: 2400ms;     /* gate removed (fallback timer; the push's animationend normally) */
  --gate-firework-at: 300ms;  /* the first shell launches as the leaves part (bursts ~0.65 s) */
  --gate-reduced-dur: 500ms;
  --gate-nudge-period: 4.6s;  /* closed + ready: the leaves part a hair, light + motes, button ring */
  --gate-nudge-delay: 0.9s;
  --gate-load-delay: 400ms;   /* loader appears only after this (head script) */
  --gate-load-max: 60000ms;   /* last-resort cap, from navigation start */

  /* hero, from html.hero-ready (the doors are still parting): the text arrives */
  --hero-settle-dur: 2600ms;  /* the scene settles from slightly enlarged as the camera pushes through (from the tap) */
  --hero-text-at: 0ms;        /* eyebrow; "PremJas" letters follow, then the cascade */
  --hero-text-dur: 700ms;     /* each block's rise */
  --hero-stagger: 90ms;       /* between blocks (names, the last, done ~1.3 s after hero-ready) */
  --sway-dur: 9s;
  --breathe-dur: 5.5s;
  --boat-bob-dur: 3.4s;
  --glint-dur: 4.2s;
  --moon-dur: 7s;
  --star-dur: 14s;            /* a shooting star crosses in the first ~4% of this */
  --lamp-dur: 2.6s;
  --sheen-dur: 7s;
  --border-creep-dur: 60s;    /* one lotus tile of sideways creep */
}

/* ---- css/fonts.css ---- */
/* fonts.css — OFL faces only (licences beside the files in assets/fonts/).
 *   Cormorant Garamond 400/500/600 + italic: copied from templates/gauri-rachit (subset:
 *     Basic Latin + curly quotes/dashes/ellipsis). Display type only — keep its strings ASCII.
 *     OFL-cormorant-garamond.txt
 *   EB Garamond (variable, Google "latin" subset): running text, dates, the middle dot.
 *     OFL-eb-garamond.txt
 *   Tiro Devanagari Sanskrit 400: the Hindi accents. OFL-tiro-devanagari-sanskrit.txt
 * Keep the ?v= token here equal to VER in build/lib.cjs (the head preloads use it).
 * font-display: block — the gate is sealed until every face is loaded (js/preload.js), so a
 * fallback face is never seen; block only covers a no-preload edge case. */
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-400.woff2?v=7") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-500.woff2?v=7") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-600.woff2?v=7") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "Cormorant Garamond"; src: url("../assets/fonts/cormorant-garamond-italic.woff2?v=7") format("woff2"); font-weight: 400 700; font-style: italic; font-display: block; }
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/eb-garamond-latin-var.woff2?v=7") format("woff2"); font-weight: 400 800; font-style: normal; font-display: block; }
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/eb-garamond-latin-italic-var.woff2?v=7") format("woff2"); font-weight: 400 800; font-style: italic; font-display: block; }
@font-face { font-family: "Tiro Devanagari Sanskrit"; src: url("../assets/fonts/tiro-devanagari-sanskrit-400.woff2?v=7") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }

/* ---- css/base.css ---- */
/* base.css — reset, page ground, shared type (section titles, kickers, buttons), a11y. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ivory); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.55 var(--f-text);
  font-kerning: normal;
  font-variant-numeric: lining-nums; /* every number (50, dates, countdown, phone) in lining figures */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
/* an art file not delivered yet: keep its reserved box, never show a broken-image glyph */
img.img-missing { visibility: hidden; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; }
[lang="hi"] { font-family: var(--f-deva); font-style: normal; letter-spacing: 0; }

/* the paper ground (background-image set by the generated <style> in index.html) */
.page {
  background-color: var(--ivory);
  background-repeat: repeat;
  background-size: 500px auto;
  overflow-x: clip;            /* clip, not hidden: no scroll container is created */
}
main:focus { outline: none; }

.sec { position: relative; padding: clamp(48px, 12vw, 112px) var(--gutter); }

/* the gold filigree divider (L.divider): opens an ivory section, frames the navy bands */
.divider { width: min(80vw, 520px); margin: 0 auto; }
.divider img { width: 100%; }
.divider--flip { transform: scaleY(-1); }
.sec > .divider:first-child { margin-bottom: clamp(28px, 7vw, 56px); }

.kicker {
  font: 500 13px/1.4 var(--f-text);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-ink);
}
.sec-title {
  font: 500 clamp(40px, 11vw, 72px)/1.02 var(--f-display);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.dot { display: inline-block; margin: 0 0.55em; color: var(--gold); font-family: var(--f-text); }

/* buttons — ONE hierarchy, one size (>= 48px tall), one tracking:
 *   .btn               secondary: gold outline on ivory
 *   .btn--primary      primary on ivory: navy fill, light-gold label
 *   .btn--on-navy      primary on a navy band: light-gold outline + label
 * hover / press = an opacity-only ::before wash. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--gold-ink);
  color: var(--gold-ink);
  background: transparent;
  font: 500 14px/1 var(--f-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-soft);
}
.btn:hover::before { opacity: 0.12; }
.btn:active::before { opacity: 0.22; }
.btn--primary { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-200); }
.btn--primary::before { background: var(--gold-300); }
.btn--on-navy { border-color: var(--gold-300); color: var(--gold-200); }
.btn--on-navy::before { background: var(--gold-300); }
.btn--on-navy:focus-visible { outline-color: var(--gold-200); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--gold-200);
  font: 500 14px/1 var(--f-text);
  letter-spacing: 0.12em;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---- css/gate.css ---- */
/* gate.css — the closed palace doors (markup: build/partials/gate.cjs; states: js/gate.js;
 * timings: the --gate-* tokens in css/tokens.css).
 *
 *   html.gate-loading     sealed: button hidden + disabled; after --gate-load-delay
 *     + .gate-load-shown  the gold hairline loader fades in and fills (forward only) and the
 *                         medallion counts up with it
 *   html.gate-art         the door art has decoded: the leaves fade in over the navy ground
 *   (closed, alive)       a gleam crosses the medallion, warm light breathes through the
 *                         seam and under the doors, petals drift in front (js/petals.js),
 *                         and once ready the button's gold ring pulses
 *   html.gate-opening     the tap — ONE continuous move, never a fade of the doors:
 *       0      words lift away; the seal breaks: the medallion spins and lifts off,
 *              throwing gold dust (petals burst: js/petals.js)
 *       150    light floods through the widening seam
 *       --gate-swing-at   the leaves swing AWAY on their outer hinges, darkening as they turn
 *       --gate-push-at    the camera pushes through the doorway (.gate-cam scales up, ease-in)
 *       the hero behind settles from slightly enlarged to 1 (css/hero.css); the elephants
 *       already walk (html.baraat-on, set at the tap); the first firework bursts
 *   html.gate-open        the gate node is removed (the push's animationend)
 * Only transform / opacity animate. will-change only while opening.
 * No JS: nothing here renders (noscript style in index.html). Reduced motion: no 3D, no
 * loops; the gate fades out in --gate-reduced-dur. */
html.gate-lock, html.gate-lock body { overflow: hidden; height: 100%; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
}
.gate-cam, .gate-stage { position: absolute; inset: 0; }
.gate-cam { transform-origin: 50% 54%; }
.gate-stage {
  perspective: max(900px, 95vmax);
  perspective-origin: 50% 54%;
}
.gate-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%; /* a hair of overlap at the seam: never a gap at rest */
  backface-visibility: hidden;
  overflow: hidden;
}
.gate-leaf--l { left: 0; transform-origin: 0% 50%; }
.gate-leaf--r { right: 0; transform-origin: 100% 50%; }
/* each leaf's art box is the cover size of the JOINED pair (--leaf-ar: one leaf's w/h, set
   per orientation in index.html's generated <style>), anchored on the seam and with the calm
   band's centre (--band-c) on the screen's middle row, where the seal sits */
/* lengths in dvh, not %, so they mean the same inside width and top alike (the gate is the
   fixed viewport box) */
.gate { --lh: max(100dvh, calc(50.2vw / var(--leaf-ar, 0.444))); }
.gate-art-box {
  position: absolute;
  height: var(--lh);
  aspect-ratio: var(--leaf-ar, 0.444);
  /* the seal row on the screen's middle, clamped so no edge of the door ever shows */
  top: clamp(calc(100dvh - var(--lh)), calc(50dvh - var(--lh) * var(--band-c, 0.5)), 0px);
}
.gate-leaf--l .gate-art-box { right: 0; }
.gate-leaf--r .gate-art-box { left: 0; }
.gate-art-box picture { display: contents; }
.gate-door {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 220ms var(--ease-soft); /* painted within ~300 ms of its bytes */
}
html.js:not(.gate-art) .gate-door { opacity: 0; }
/* each brass ring handle: a narrow specular highlight runs once round the ring every few
   seconds (a conic sliver masked to the ring's band, rotate + opacity only); as the doors open
   it runs round faster and brighter, catching the seam light. No glow disc. */
.gate-handle {
  position: absolute;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 244, 214, 0) 0deg, rgba(255, 244, 214, 0) 300deg, rgba(255, 246, 222, 0.9) 336deg, rgba(255, 244, 214, 0) 352deg);
  -webkit-mask-image: radial-gradient(closest-side, #0000 69%, #000 74%, #000 90%, #0000 96%);
  mask-image: radial-gradient(closest-side, #0000 69%, #000 74%, #000 90%, #0000 96%);
  opacity: 0;
  pointer-events: none;
}
.gate-handle--wide { display: none; }
@media (orientation: landscape) {
  .gate:has(.gate-handle--wide) .gate-handle--phone { display: none; }
  .gate-handle--wide { display: block; }
}
@keyframes gate-handle-glint {
  0%   { opacity: 0; transform: rotate(-40deg); }
  8%   { opacity: 0.85; }
  30%  { opacity: 0.85; }
  40%  { opacity: 0; transform: rotate(320deg); }
  100% { opacity: 0; transform: rotate(320deg); }
}
html.gate-art:not(.gate-opening) .gate-handle { animation: gate-handle-glint var(--gate-nudge-period) var(--ease-soft) calc(var(--k) * 0.35s + 1.4s) infinite; }
@keyframes gate-handle-catch {
  0%   { opacity: 0; transform: rotate(0deg); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(540deg); }
}
html.gate-opening .gate-handle { animation: gate-handle-catch 900ms var(--ease-out) calc(var(--gate-swing-at) + 100ms) both; }

/* ---- the closed doors are alive (transform / opacity only) ------------------------------
   loading + ready: a shimmer sweeps across the gold borders and bosses (.gate-sheen, an
   overlay-blended gradient band: it lifts the gold, barely touches the navy); the light under
   the doors flickers like lamps (.gate-sill); the medallion's ray ring turns very slowly.
   ready only: every --gate-nudge-period the leaves part ~1.5deg for half a second and settle,
   as if the party pushes from inside — a blade of warm light and a few gold motes come through
   the seam, and the button's ring pulses with it (the invitation to tap). */
.gate-sheen {
  position: absolute;
  inset: 0 -100%;
  background: linear-gradient(100deg, rgba(255, 236, 190, 0) 44%, rgba(255, 246, 220, 0.85) 48.5%, #fff6dc 50%, rgba(255, 246, 220, 0.85) 51.5%, rgba(255, 236, 190, 0) 56%);
  mix-blend-mode: overlay;
  transform: translateX(-40%);
  opacity: 0;
  pointer-events: none;
}
@keyframes gate-sheen {
  0%   { opacity: 0; transform: translateX(-40%); }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  34%  { opacity: 0; transform: translateX(40%); }
  100% { opacity: 0; transform: translateX(40%); }
}
html.gate-art:not(.gate-opening) .gate-sheen { animation: gate-sheen 7.5s cubic-bezier(0.45, 0, 0.55, 1) 0.6s infinite; }
html.gate-art:not(.gate-opening) .gate-leaf--r .gate-sheen { animation-delay: 1.35s; }
@keyframes gate-nudge-l {
  0%, 3%, 100% { rotate: y 0deg; }
  6.5%         { rotate: y 1.5deg; }
  11%          { rotate: y 0deg; }
}
@keyframes gate-nudge-r {
  0%, 3%, 100% { rotate: y 0deg; }
  6.5%         { rotate: y -1.5deg; }
  11%          { rotate: y 0deg; }
}
html.gate-art:not(.gate-loading):not(.gate-opening) .gate-leaf--l { animation: gate-nudge-l var(--gate-nudge-period) cubic-bezier(0.4, 0, 0.3, 1) var(--gate-nudge-delay) infinite; }
html.gate-art:not(.gate-loading):not(.gate-opening) .gate-leaf--r { animation: gate-nudge-r var(--gate-nudge-period) cubic-bezier(0.4, 0, 0.3, 1) calc(var(--gate-nudge-delay) + 40ms) infinite; }
/* the blade of light through the parted seam, and the motes it carries */
.gate-blade {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 64px;
  margin-left: -32px;
  background: linear-gradient(90deg, rgba(255, 214, 140, 0), rgba(255, 226, 160, 0.55) 40%, rgba(255, 248, 226, 0.95) 50%, rgba(255, 226, 160, 0.55) 60%, rgba(255, 214, 140, 0));
  -webkit-mask-image: linear-gradient(#0000, #000 10%, #000 90%, #0000);
  mask-image: linear-gradient(#0000, #000 10%, #000 90%, #0000);
  opacity: 0;
  transform: scaleX(0.15);
  pointer-events: none;
}
@keyframes gate-blade {
  0%, 3%, 100% { opacity: 0; transform: scaleX(0.15); }
  6.5%         { opacity: 0.9; transform: scaleX(1); }
  13%          { opacity: 0; transform: scaleX(0.3); }
}
html.gate-art:not(.gate-loading):not(.gate-opening) .gate-blade { animation: gate-blade var(--gate-nudge-period) var(--ease-soft) var(--gate-nudge-delay) infinite; }
.gate-motes { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; pointer-events: none; }
.gate-motes i {
  position: absolute;
  left: -2.5px;
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0 30%, var(--gold-300) 55%, rgba(217, 182, 106, 0) 72%);
  opacity: 0;
}
@keyframes gate-mote {
  0%, 4%, 100% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  7%           { opacity: 1; }
  22%          { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1); }
}
html.gate-art:not(.gate-loading):not(.gate-opening) .gate-motes i { animation: gate-mote var(--gate-nudge-period) var(--ease-out) var(--gate-nudge-delay) infinite; }

/* each leaf darkens as it turns away from the light: a static gradient, opacity only */
.gate-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(6, 4, 12, 0.35), rgba(6, 4, 12, 0.85));
}
.gate-leaf--r .gate-shade { background: linear-gradient(270deg, rgba(6, 4, 12, 0.35), rgba(6, 4, 12, 0.85)); }

/* warm lamplight behind the doors: invisible while they are shut, floods out as they part */
.gate-light {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 140vmax;
  height: 140vmax;
  margin: -70vmax 0 0 -70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, 0.95) 0, rgba(250, 205, 120, 0.55) 18%, rgba(240, 170, 80, 0.18) 38%, rgba(240, 170, 80, 0) 60%);
  opacity: 0;
  transform: scale(0.2);
}
/* the line of light between the closed leaves, and under them */
.gate-seam, .gate-sill { position: absolute; pointer-events: none; opacity: 0; }
.gate-seam {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 10px;
  margin-left: -5px;
  background: linear-gradient(90deg, rgba(255, 214, 140, 0), rgba(255, 228, 170, 0.85) 45%, rgba(255, 246, 220, 1) 50%, rgba(255, 228, 170, 0.85) 55%, rgba(255, 214, 140, 0));
  -webkit-mask-image: linear-gradient(#0000, #000 12%, #000 88%, #0000);
  mask-image: linear-gradient(#0000, #000 12%, #000 88%, #0000);
}
.gate-sill {
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 22px;
  transform-origin: 50% 100%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 220, 150, 0.85), rgba(255, 200, 120, 0) 100%);
}
html.gate-art .gate-seam, html.gate-art .gate-sill { opacity: 0.75; }
/* the light under the doors flickers like oil lamps behind them (irregular, never dark) */
html.gate-art:not(.gate-opening) .gate-sill { animation: gate-sill-flicker 2.9s linear infinite; }
@keyframes gate-sill-flicker {
  0%   { opacity: 0.6;  transform: scaleY(0.9); }
  9%   { opacity: 0.85; transform: scaleY(1.1); }
  16%  { opacity: 0.62; transform: scaleY(0.95); }
  31%  { opacity: 0.95; transform: scaleY(1.2); }
  38%  { opacity: 0.7;  transform: scaleY(1); }
  52%  { opacity: 0.9;  transform: scaleY(1.15); }
  61%  { opacity: 0.58; transform: scaleY(0.9); }
  74%  { opacity: 0.88; transform: scaleY(1.1); }
  86%  { opacity: 0.68; transform: scaleY(1); }
  100% { opacity: 0.6;  transform: scaleY(0.9); }
}

/* ---- the seal over the seam --------------------------------------------------------- */
.gate-face {
  position: absolute;
  inset: 0;
  text-align: center;
  color: var(--gold-200);
  pointer-events: none;
  z-index: 1; /* its own stack: the vignette (::before, z -1) stays above the doors */
  /* the door's own geometry on screen (the art box's clamped top + fractions of its height;
     --leaf-w = one leaf's width). The eyebrow, the medallion and the title stand as ONE stack
     centred in the plain navy seal band (clear of every rail and boss); the medallion takes
     whatever the band leaves after the words. The button stands below the ring handles. */
  --box-top: clamp(calc(100dvh - var(--lh)), calc(50dvh - var(--lh) * var(--band-c, 0.5)), 0px);
  --leaf-w: calc(var(--lh) * var(--leaf-ar, 0.444));
  --band-top: calc(var(--box-top) + var(--lh) * var(--band-t, 0.4));
  --band-h: calc(var(--lh) * (var(--band-b, 0.6) - var(--band-t, 0.4)));
  --eb-h: 12px;
  --gap: clamp(5px, calc(var(--band-h) * 0.03), 10px);
  --pad: clamp(4px, calc(var(--band-h) * 0.03), 12px);
  --title-h: clamp(38px, min(12.5vw, 7.2svh), 84px);
  --medal: min(calc(var(--band-h) - 2 * var(--pad) - var(--eb-h) - 2 * var(--gap) - var(--title-h) * 0.95), 54vw, 280px, 24svh);
  --stack-top: calc(var(--band-top) + (var(--band-h) - var(--eb-h) - 2 * var(--gap) - var(--medal) - var(--title-h) * 0.95) / 2);
  --medal-top: calc(var(--stack-top) + var(--eb-h) + var(--gap));
  --title-top: calc(var(--medal-top) + var(--medal) + var(--gap));
  --hdl-bottom: calc(var(--box-top) + var(--lh) * var(--hdl-y, 0.7) + var(--leaf-w) * 2 * var(--hdl-r, 0));
}
/* wide doors: a smaller title, so the medallion takes the band's height */
@media (orientation: landscape) {
  .gate-face { --title-h: clamp(32px, 4.6svh, 58px); --gap: clamp(4px, calc(var(--band-h) * 0.022), 9px); }
}
.gate-face > * { pointer-events: auto; }
/* the medallion sits ON the seam, centred on the calm band (the screen's middle row); the
   eyebrow stands above it, the title + button below */
/* medallion + title centred together in the band */
.gate-medal { position: absolute; left: 50%; top: var(--medal-top); margin-left: calc(var(--medal) / -2); }
.gate-upper, .gate-lower {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4svh, 22px);
  padding: 0 20px;
}
.gate-upper { top: var(--stack-top); }
.gate-lower { top: var(--title-top); gap: 0; }
/* the button stands clear below the ring handles */
.gate-lower .gate-btn { position: absolute; top: calc(var(--hdl-bottom) - var(--title-top) + clamp(12px, 2.4svh, 26px)); }
/* a soft dark vignette behind the words, so they read on any part of the painted doors */
.gate-face::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(124vw, 820px);
  height: min(100svh, 900px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(8, 10, 26, 0.62), rgba(8, 10, 26, 0.38) 55%, rgba(8, 10, 26, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
.gate-eyebrow {
  font: 500 var(--eb-h)/1 var(--f-text);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-200);
  padding-left: 0.42em; /* optically centre tracked caps */
  text-shadow: 0 1px 10px rgba(6, 8, 20, 0.9), 0 0 2px rgba(6, 8, 20, 0.8);
}
.gate-medal {
  position: relative;
  width: var(--medal);
  aspect-ratio: 1;
  container-type: inline-size;
  display: grid;
  place-items: center;
}
.gate-medal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 300ms var(--ease-soft);
  animation: gate-rays 140s linear infinite; /* the ray ring turns very slowly behind the 50 */
}
@keyframes gate-rays { to { transform: rotate(360deg); } }
html.js:not(.gate-medal-in) .gate-medal-img { opacity: 0; }
/* the placeholder: the painted disc's ivory centre in a gold rim with a faint halo,
   breathing softly; it hands over to the painted medallion (gate-art) */
.gate-medal::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, #fbefd8 0 55%, #f1dcb4 100%);
  box-shadow:
    0 0 0 0.9cqw #c58f2c,
    0 0 0 2.2cqw rgba(232, 196, 112, 0.55),
    0 0 0 9cqw rgba(217, 182, 106, 0.1),
    0 0 7cqw 4cqw rgba(232, 196, 112, 0.28);
  transition: opacity 700ms var(--ease-soft);
}
html.js:not(.gate-medal-in) .gate-medal::before { animation: gate-ring-breathe 2.4s var(--ease-soft) infinite alternate; }
@keyframes gate-ring-breathe { from { opacity: 0.82; transform: scale(0.985); } to { opacity: 1; transform: scale(1.015); } }
html.gate-medal-in .gate-medal::before { opacity: 0; }
.gate-fifty {
  position: relative;
  font: 600 40cqw/1 var(--f-display);
  font-variant-numeric: lining-nums;
  color: var(--navy-900);
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.55);
  top: -1.5cqw; /* optical centre on the disc */
}
.gate-count { display: inline-block; font-variant-numeric: lining-nums tabular-nums; transition: opacity var(--motion-fast) var(--ease-soft); }
/* the static "50" stays hidden until js/gate.js starts the count-up from 0 (.gate-counting),
   so a slow load never shows 50 -> 0 -> 50 */
html.gate-loading:not(.gate-counting) .gate-count { opacity: 0; }
.gate-title {
  font: 500 var(--title-h)/0.95 var(--f-display);
  letter-spacing: 0.02em;
  color: var(--gold-200);
  text-shadow: 0 2px 18px rgba(6, 8, 20, 0.85), 0 0 3px rgba(6, 8, 20, 0.7);
}
.gate-btn {
  position: relative;
  min-height: 48px;
  padding: 13px 30px;
  border: 1px solid var(--gold-300);
  background: rgba(10, 14, 34, 0.55);
  color: var(--gold-200);
  font: 500 14px/1 var(--f-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--motion-medium) var(--ease-soft);
}
.gate-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-300);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-soft);
}
.gate-btn:hover::before { opacity: 0.14; }
/* focus: the SAME frame brightens and thickens (no second, offset ring) */
.gate-btn:focus-visible { outline: none; border-color: #f6e7c1; box-shadow: inset 0 0 0 1px var(--gold-200); }
.gate-btn-label { position: relative; }
html.gate-loading .gate-btn { opacity: 0; pointer-events: none; }
/* once it can be tapped, a soft gold ring pulses out of the button */
.gate-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold-300);
  opacity: 0;
  pointer-events: none;
}
html:not(.gate-loading):not(.gate-opening) .gate-btn::after { animation: gate-btn-ring var(--gate-nudge-period) var(--ease-out) var(--gate-nudge-delay) infinite; }
/* ~12 px out on every side: x by 24px of the button's width, y by 24px of its 48px height */
@keyframes gate-btn-ring {
  0%, 3% { opacity: 0; transform: scale(1); }
  6.5%   { opacity: 0.9; transform: scale(1); }
  30%    { opacity: 0; transform: scale(1.085, 1.5); }
  100%   { opacity: 0; transform: scale(1.085, 1.5); }
}
html:not(.gate-loading) .gate-btn { animation: gate-btn-in var(--motion-medium) var(--ease-out) both; }
@keyframes gate-btn-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the loader: a fine gold hairline that only moves forward */
.gate-load {
  position: absolute;
  left: 50%;
  bottom: max(6vh, 28px);
  width: 160px;
  height: 1px;
  margin-left: -80px;
  background: rgba(217, 182, 106, 0.3);
  opacity: 0;
  transition: opacity var(--motion-medium) var(--ease-soft);
}
.gate-load-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-200);
  transform: scaleX(var(--load-p, 0));
  transform-origin: 0 50%;
  transition: transform 400ms var(--ease-out);
}
html.gate-loading.gate-load-shown .gate-load { opacity: 1; }

/* the medallion while sealed: a slow gleam crosses it every few seconds */
.gate-gleam {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.gate-gleam::before {
  content: "";
  position: absolute;
  inset: -10% -60%;
  background: linear-gradient(105deg, rgba(255, 248, 226, 0) 38%, rgba(255, 248, 226, 0.6) 50%, rgba(255, 248, 226, 0) 62%);
  transform: translateX(-75%);
  opacity: 0;
}
html.gate-art:not(.gate-opening) .gate-gleam::before { animation: gate-gleam-idle 5s var(--ease-soft) 1s infinite; }
@keyframes gate-gleam-idle {
  0%   { transform: translateX(-75%); opacity: 0; }
  6%   { opacity: 1; }
  32%  { transform: translateX(75%); opacity: 0; }
  100% { transform: translateX(75%); opacity: 0; }
}

/* gold dust: the seal breaks outward */
.gate-dust { position: absolute; inset: 0; pointer-events: none; }
.gate-dust i {
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0 30%, var(--gold-300) 55%, rgba(217, 182, 106, 0) 72%);
  opacity: 0;
  --a: calc(var(--k) * 22.5deg);
}

/* ---- opening (t = 0 is the tap) ----------------------------------------------------- */
html.gate-opening .gate { background: transparent; pointer-events: none; }
html.gate-opening .gate-cam, html.gate-opening .gate-leaf { will-change: transform; }
html.gate-opening .gate-light, html.gate-opening .gate-shade { will-change: opacity, transform; }
html.gate-opening .gate-face::before { animation: gate-out 700ms var(--ease-soft) both; }
html.gate-opening .gate-eyebrow,
html.gate-opening .gate-title,
html.gate-opening .gate-btn { animation: gate-lift 520ms var(--ease-soft) both; }
html.gate-opening .gate-title { animation-delay: 50ms; }
html.gate-opening .gate-load { opacity: 0; }
/* the seal breaks: the disc (number, gleam and dust with it) spins and lifts away */
html.gate-opening .gate-medal { animation: gate-seal var(--gate-medal-dur) cubic-bezier(0.45, 0, 0.55, 1) both; }
/* the number never reads mirrored (WebKit ignores backface-visibility): it goes first */
html.gate-opening .gate-fifty { animation: gate-out 180ms linear both; }
html.gate-opening .gate-gleam::before { animation: gate-gleam-hit 600ms var(--ease-out) both; }
html.gate-opening .gate-dust i { animation: gate-dust 1200ms var(--ease-out) calc(120ms + var(--k) * 14ms) both; }
/* light floods through the widening seam */
html.gate-opening .gate-seam { animation: gate-seam-flood 900ms var(--ease-out) 100ms both; }
html.gate-opening .gate-sill { animation: gate-out 600ms var(--ease-soft) 400ms both; }
html.gate-opening .gate-light { animation: gate-light var(--gate-light-dur) var(--ease-soft) 150ms both; }
/* the leaves swing away on their outer hinges and STAY open (fill: both), shading as they turn */
html.gate-opening .gate-leaf--l { animation: gate-swing-l var(--gate-swing-dur) var(--gate-swing-ease) var(--gate-swing-at) both; }
html.gate-opening .gate-leaf--r { animation: gate-swing-r var(--gate-swing-dur) var(--gate-swing-ease) calc(var(--gate-swing-at) + 60ms) both; }
html.gate-opening .gate-shade { animation: gate-shade-in var(--gate-swing-dur) cubic-bezier(0.45, 0, 0.55, 1) var(--gate-swing-at) both; }
/* the camera pushes through the doorway: still accelerating when the last door pixels leave
   (ease-in, no settle on screen); its animationend removes the gate (js/gate.js) */
html.gate-opening .gate-cam { animation: gate-push var(--gate-push-dur) cubic-bezier(0.5, 0, 0.9, 0.55) var(--gate-push-at) both; }

@keyframes gate-out { to { opacity: 0; } }
@keyframes gate-lift { to { opacity: 0; transform: translateY(-14px); } }
@keyframes gate-seal {
  0%   { transform: perspective(800px) translateY(0) rotateY(0) scale(1); opacity: 1; }
  30%  { transform: perspective(800px) translateY(-1vh) rotateY(220deg) scale(1.14); opacity: 1; }
  70%  { opacity: 0.85; }
  100% { transform: perspective(800px) translateY(-42vh) rotateY(720deg) scale(0.55); opacity: 0; }
}
@keyframes gate-gleam-hit {
  0%   { transform: translateX(-75%); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(75%); opacity: 0; }
}
@keyframes gate-dust {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(0.6); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(calc(34cqw + var(--k) * 2.4cqw)) scale(1.3); }
}
@keyframes gate-seam-flood {
  0%   { opacity: 0.8; transform: scaleX(1); }
  35%  { opacity: 1; transform: scaleX(6); }
  100% { opacity: 0; transform: scaleX(40); }
}
@keyframes gate-light {
  0%   { opacity: 0; transform: scale(0.15); }
  30%  { opacity: 1; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.25); }
}
@keyframes gate-swing-l { from { transform: rotateY(0deg); } to { transform: rotateY(var(--gate-swing-angle)); } }
@keyframes gate-swing-r { from { transform: rotateY(0deg); } to { transform: rotateY(calc(var(--gate-swing-angle) * -1)); } }
@keyframes gate-shade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-push { from { transform: scale(1); } to { transform: scale(var(--gate-push-scale)); } }

@media (prefers-reduced-motion: reduce) {
  html.gate-art .gate-seam, html.gate-art .gate-sill,
  html.gate-art .gate-gleam::before, html .gate-btn::after, html.gate-art .gate-handle,
  html.gate-art .gate-leaf, html.gate-art .gate-sheen, html.gate-art .gate-blade, html.gate-art .gate-motes i,
  .gate-medal-img,
  html.js:not(.gate-medal-in) .gate-medal::before { animation: none !important; }
  html:not(.gate-loading) .gate-btn { animation: none; }
  html.gate-opening .gate *, html.gate-opening .gate-face::before { animation: none !important; }
  html.gate-opening .gate { animation: gate-out var(--gate-reduced-dur) ease both; }
  .gate-light { display: none; }
  .gate-load-fill { transition: none; }
}

/* no medallion art on disk yet: the "50" sits straight on the doors */
.gate-medal:has(.gate-medal-img.img-missing) .gate-fifty { color: var(--gold-200); text-shadow: none; }

/* ---- css/hero.css ---- */
/* hero.css — the full-screen night scene (markup: build/partials/hero.cjs; motion:
 * css/hero-fx.css). Bottom-anchored, edge to edge, no margins.
 *
 * Geometry comes from assets/art/scene.json (layoutPhone below aspect 0.65, layoutWide from
 * it), emitted by the build as custom properties on .hero (build/scene.cjs heroVars): widths
 * in cqw of the hero, heights as fractions. Measured UP FROM THE BOTTOM:
 *   terrace   0 .. --ter-h; the elephants' feet on its groundY row (--ter-ground of it), the
 *             peacocks' branch on its front lip (--ter-lip)
 *   --wl      the waterline: the contract's max(--wl-h x H, terrace + --lake-min), but the
 *             lake may give up to 28% of its minimum depth so the text keeps --text-need of
 *             sky (then the type scale shrinks with svh)
 *   palace    its bottom edge ON the waterline; the reflection's top edge under it
 *   sky       everything above the palace: the text lives there, so it can never sit on it
 * Boat lanes: t from the waterline (0) to the terrace top (1); each boat's own waterline
 * row (scene.json waterlineFrac) sits on its lane line. Nothing here moves (hero-fx.css). */
.hero {
  position: relative;
  padding: 0; /* full bleed: no section padding */
  container-type: inline-size;
  --pal-h: calc(var(--pal-w) * 424 / 1400);
  --text-need: clamp(220px, 34svh, 300px);
  --wl: clamp(calc(var(--ter-h) + var(--lake-min) * 0.72), calc(100svh - var(--pal-h) - var(--text-need)), max(calc(var(--wl-h) * 100svh), calc(var(--ter-h) + var(--lake-min))));
  --pea-w: calc(var(--ter-h) * var(--ter-lip) / 0.87); /* the tail ends at the hero's foot */
  background: var(--navy-900);
}
@media (min-aspect-ratio: 13/20) {
  .hero { --text-need: clamp(240px, 33svh, 340px); }
}
.scene {
  position: relative;
  min-height: 100svh;
  overflow: clip;
}
.sc-sky, .sc-text, .sc-palace, .sc-lake, .sc-terrace, .sc-water, .sc-ter { position: absolute; }

/* ---- sky ------------------------------------------------------------------------------ */
.sc-sky { inset: 0; z-index: 0; }
.sc-sky-tile { background-color: var(--navy-900); background-size: 512px auto; background-repeat: repeat; }
.scene > .pj-twinkles { z-index: 1; }
.sc-moon {
  position: absolute;
  top: calc(var(--moon-y, 0.085) * 100svh);
  left: calc(var(--moon-x, 0.84) * 100cqw);
  width: max(var(--moon-w, 6cqw), 30px);
  height: auto;
  translate: -50% -50%;
}
.hero-moon {
  position: absolute;
  top: calc(var(--moon-y, 0.085) * 100svh);
  left: calc(var(--moon-x, 0.84) * 100cqw);
  width: clamp(150px, 40cqw, 300px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 205, 0.3) 0 12%, rgba(243, 217, 147, 0.12) 34%, rgba(243, 217, 147, 0) 68%);
  pointer-events: none;
}
/* a burst briefly lights the sky round it (js/fireworks.js: position + opacity only) */
.sc-skyflash {
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 30%);
  width: var(--fr, 300px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 228, 170, 0.32), rgba(255, 214, 150, 0.12) 45%, rgba(255, 214, 150, 0));
  opacity: 0;
  pointer-events: none;
}
/* the fireworks canvas: the sky down to the waterline (behind the palace + the text) */
.sc-fw {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% - var(--wl));
  pointer-events: none;
}

/* ---- the text: the calm sky above the palace ------------------------------------------ */
.sc-text {
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--wl) + var(--pal-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(env(safe-area-inset-top), 2.5svh) 7cqw 1.5svh;
  text-align: center;
  color: var(--gold-200);
}
.hero-eyebrow {
  font: 500 clamp(11px, min(3.2cqw, 1.8svh), 15px)/1.2 var(--f-text);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.hero-title {
  margin-top: 0.8svh;
  font: 500 clamp(52px, min(19cqw, 9.6svh), 124px)/0.92 var(--f-display);
  letter-spacing: 0.01em;
  color: var(--gold-200);
  text-shadow: 0 2px 24px rgba(4, 8, 24, 0.6);
}
.hero-title .ch { display: inline-block; }
.hero-sub {
  margin-top: 0.3svh;
  font: italic 500 clamp(21px, min(7cqw, 3.7svh), 40px)/1.1 var(--f-display);
  color: var(--gold-200);
}
.hero-rule {
  display: block;
  width: clamp(70px, 24cqw, 150px);
  height: 1px;
  margin: 1.4svh auto 1.3svh;
  background: var(--gold-300);
  transform-origin: 50% 50%;
}
.hero-tag {
  font: 500 clamp(11px, min(3.3cqw, 1.9svh), 16px)/1.3 var(--f-text);
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.hero-date {
  margin-top: 0.5svh;
  font: 400 clamp(13px, min(3.9cqw, 2.2svh), 19px)/1.3 var(--f-text);
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--gold-300);
}
.hero-date .dot { margin: 0 0.45em; color: var(--gold-300); }
.hero-names {
  margin-top: 1.4svh;
  max-width: 30rem;
  font: 500 clamp(13px, min(4cqw, 2.2svh), 19px)/1.45 var(--f-text);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-wrap: balance;
  color: var(--gold-200);
}

/* ---- the palace on the waterline -------------------------------------------------------- */
.sc-palace {
  z-index: 2;
  left: 50%;
  width: var(--pal-w);
  margin-left: calc(var(--pal-w) / -2);
  bottom: calc(var(--wl) - 1px);
  pointer-events: none;
}
.sc-palace-img { display: block; width: 100%; height: 100%; }

/* ---- the lake -------------------------------------------------------------------------- */
.sc-lake {
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--wl); /* from the waterline down; the terrace covers its foot */
  overflow: clip visible; /* sideways only: a boat's sail may rise above the waterline */
  pointer-events: none;
}
.sc-water { inset: 0; }
.sc-water-tile { background-color: #0d1c46; background-size: auto max(100%, 40cqw); background-repeat: repeat-x; background-position: 50% 0; }
.sc-refl {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--pal-w);
  margin-left: calc(var(--pal-w) / -2);
  transform-origin: 50% 0;
}
.sc-refl img { display: block; width: 100%; height: auto; }
/* wide screens: the water's far edge beyond the palace's ends reads as distance, not a cut —
   a short static mist band across the horizon (behind the palace) */
.sc-mist { display: none; }
@media (min-aspect-ratio: 13/20) {
  .sc-mist {
    display: block;
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: calc(var(--wl) - 2.2svh);
    height: 5svh;
    background: linear-gradient(to bottom, rgba(40, 62, 120, 0), rgba(62, 86, 146, 0.55) 46%, rgba(52, 76, 136, 0.35) 60%, rgba(40, 62, 120, 0));
    pointer-events: none;
  }
}
.sc-flash {
  position: absolute;
  top: 0;
  left: var(--fx, 50%);
  width: 46cqw;
  height: 40%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(50% 40% at 50% 10%, rgba(255, 226, 160, 0.55), rgba(255, 210, 140, 0.18) 55%, rgba(255, 210, 140, 0));
  opacity: 0;
}
/* lotus clumps on the near water, their feet tucked behind the terrace's far edge */
.lotus { position: absolute; z-index: 4; }
.lotus img { display: block; width: 100%; height: auto; }
.lotus--1 { left: var(--lot1-l); width: var(--lot1-w); bottom: calc(var(--ter-h) + var(--lot1-b)); }
.lotus--2 { left: var(--lot2-l); width: var(--lot2-w); bottom: calc(var(--ter-h) + var(--lot2-b)); }
.lotus--3 { left: var(--lot3-l); width: var(--lot3-w); bottom: calc(var(--ter-h) + var(--lot3-b)); }
/* boat lanes: a full-width line at t of the way from the waterline to the terrace top; a lane
   is its own inline-size container, so a boat drifts from fully off one side to fully off
   the other. The boat's waterline row (--wlf) sits on the line. */
.lane { position: absolute; left: 0; right: 0; height: 0; container-type: inline-size; }
.lane--far  { bottom: calc(var(--wl) - var(--lane-far-t) * (var(--wl) - var(--ter-h))); z-index: 1; }
.lane--mid  { bottom: calc(var(--wl) - var(--lane-mid-t) * (var(--wl) - var(--ter-h))); z-index: 2; }
.lane--near { bottom: calc(var(--wl) - var(--lane-near-t) * (var(--wl) - var(--ter-h))); z-index: 3; }
.boat { position: absolute; left: 0; bottom: 0; }
.lane--far .boat  { width: var(--lane-far-w); }
.lane--mid .boat  { width: var(--lane-mid-w); }
.lane--near .boat { width: var(--lane-near-w); }
.boat-flip { translate: 0 calc((1 - var(--wlf, 0.92)) * 100%); }
.boat--rtl .boat-flip { transform: scaleX(-1); }
.boat-bob { position: relative; transform-origin: 50% 85%; }
.boat-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.boat-refl {
  position: absolute;
  left: 0;
  top: calc(var(--wlf, 0.92) * 100%);
  width: 100%;
  height: auto;
  transform: scaleY(-0.55);
  transform-origin: 50% 0;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to top, #000 20%, #0000 85%);
  mask-image: linear-gradient(to top, #000 20%, #0000 85%);
}

/* ---- the terrace, the peacocks on its lip, the elephants on its floor ------------------- */
.sc-terrace { z-index: 5; left: 0; right: 0; bottom: 0; height: var(--ter-h); pointer-events: none; }
.sc-ter { inset: 0; }
.sc-terrace-tile { background-color: #f3e6cc; background-size: auto 100%; background-repeat: repeat-x; background-position: 50% 0; }
.peacock {
  position: absolute;
  z-index: 1;
  width: var(--pea-w);
  bottom: calc(var(--ter-h) * var(--ter-lip) - var(--pea-w) * 1.57 * 0.554);
  pointer-events: none;
}
.peacock--l { left: calc(var(--pea-w) * -0.12); }
.peacock--r { right: calc(var(--pea-w) * -0.12); transform: scaleX(-1); }
.peacock-img { display: block; width: 100%; height: auto; }
.peacock-b { position: relative; transform-origin: 60% 45%; }
.peacock-b > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* the elephants: feet on the terrace's groundY row, in front of everything below the text */
.sc-terrace .hero-herd { /* beats .herd (css/walker.css, later in the cascade) */
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(var(--ter-h) * var(--ter-ground));
  height: calc(var(--ele-w) * 568 / 560);
}
.hero-herd .elephant { width: var(--ele-w); }

/* ---- css/hero-fx.css ---- */
/* hero-fx.css — everything that moves in the night scene (layout: css/hero.css).
 *
 * The arrival (t = 0 is the tap on the doors, js/gate.js):
 *   html.gate-opening  the whole scene settles from slightly enlarged to 1 as the camera
 *                      pushes through the doorway (--hero-settle-dur): it is already
 *                      complete behind the doors, so nothing pops in
 *   html.baraat-on     the elephants walk from the tap (css/walker.css)
 *   html.hero-ready    the text arrives (eyebrow, "PremJas" per letter, then the cascade)
 *
 * Alive afterwards, ONLY while the hero is near the screen (.hero.is-live, js/reveal.js):
 *   boats     three lanes on ONE linear drift each (from fully off one side to fully off the
 *             other, so the wrap is unseen): far small + slow, middle, near large + fastest,
 *             mixed directions, ~9-16 s across a phone; out of phase, so one is always well
 *             inside the lake; each bobs/rocks over a faint flipped reflection
 *   fireworks js/fireworks.js (canvas) + a brief flash on the water under each burst
 *   moon      its glow breathes;  star  a rare shooting star;  twinkles  js/twinkles.js
 *   lamps     breathe in the palace windows;  blossoms  drop from its two trees
 *   glints + ripple  light moving on the water;  lotus  a slow sway
 * Scroll: the layers part as the hero leaves (sky slowest, terrace with the page), on a
 * scroll() timeline where supported (static elsewhere).
 * Reduced motion: a still scene — no settle, no drift, no fireworks, everything visible. */

/* ---- arrival ---------------------------------------------------------------------------- */
.scene { transform-origin: 50% 62%; }
html.gate-opening .scene { animation: hero-settle var(--hero-settle-dur) cubic-bezier(0.2, 0.6, 0.3, 1) both; }
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: none; } }

html.js .hero .hx { opacity: 0; transform: translateY(var(--distance-reveal)); }
html.js .hero-title .ch { opacity: 0; transform: translateY(0.32em) scale(0.96); filter: blur(8px); }
html.js .hero-rule { transform: scaleX(0); }
/* the text block starts as the leaves are about half open (html.hero-ready, --gate-hero-at
   after the tap) and is complete by ~2.4 s after the tap */
html.hero-ready .hero .hx {
  opacity: 1;
  transform: none;
  transition: opacity var(--hero-text-dur) var(--ease-out), transform var(--hero-text-dur) var(--ease-out);
  transition-delay: calc(var(--hero-text-at) + var(--i) * var(--hero-stagger));
}
html.hero-ready .hero-title .ch {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), filter 800ms var(--ease-out);
  transition-delay: calc(var(--hero-text-at) + 60ms + var(--c) * 40ms);
}
html.hero-ready .hero-rule {
  transform: scaleX(1);
  transition: transform 900ms var(--ease-draw) calc(var(--hero-text-at) + 4 * var(--hero-stagger));
}

/* ---- boats ------------------------------------------------------------------------------ */
@keyframes boat-ltr { from { transform: translateX(-100%); } to { transform: translateX(100cqw); } }
@keyframes boat-rtl { from { transform: translateX(100cqw); } to { transform: translateX(-100%); } }
@keyframes boat-bob {
  0%, 100% { transform: translateY(0) rotate(-1.3deg); }
  50%      { transform: translateY(-4%) rotate(1.2deg); }
}
.lane--far  { --cross: 16s;   --phase: 0.68; --bob: 3.9s; }
.lane--mid  { --cross: 12.5s; --phase: 0.22; --bob: 3.3s; }
.lane--near { --cross: 9s;    --phase: 0.45; --bob: 2.8s; }
@media (min-aspect-ratio: 13/20) {
  .lane--far  { --cross: 28s; }
  .lane--mid  { --cross: 21s; }
  .lane--near { --cross: 15s; }
}
/* at rest (no JS, reduced motion) each boat sits at a fixed spot on the lake */
.lane--far .boat  { transform: translateX(16cqw); }
.lane--mid .boat  { transform: translateX(58cqw); }
.lane--near .boat { transform: translateX(6cqw); }
html.js .boat {
  animation: boat-ltr var(--cross) linear calc(var(--cross) * var(--phase) * -1) infinite;
  animation-play-state: paused;
}
html.js .boat--rtl { animation-name: boat-rtl; }
html.js .boat-bob { animation: boat-bob var(--bob) var(--ease-soft) infinite; animation-play-state: paused; }
html.js .hero.is-live .boat { animation-play-state: running; will-change: transform; }
html.js .hero.is-live .boat-bob { animation-play-state: running; }

/* ---- firework flash on the water (js/fireworks.js animates its opacity) ---------------- */
.sc-flash { will-change: auto; }

/* ---- the palace reflection shimmers (a small scaleY / sideways wobble) ------------------ */
@keyframes refl-shimmer { 0%, 100% { transform: scaleY(1) translateX(0); } 50% { transform: scaleY(1.035) translateX(0.4%); } }
html.hero-ready .hero.is-live .sc-refl { animation: refl-shimmer 5.5s var(--ease-soft) infinite; }

/* ---- moon glow, shooting star ------------------------------------------------------------ */
@keyframes moon-breathe { 0%, 100% { transform: scale(0.88); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
html.hero-ready .hero.is-live .hero-moon { animation: moon-breathe var(--moon-dur) var(--ease-soft) infinite; }
.hero-star {
  position: absolute;
  left: 8%;
  top: 6%;
  width: 22%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(243, 217, 147, 0), rgba(243, 217, 147, 0.75) 70%, #fffaf0);
  transform-origin: 100% 50%;
  opacity: 0;
  pointer-events: none;
}
@keyframes star-shoot {
  0%   { opacity: 0; transform: rotate(14deg) translateX(-40%) scaleX(0.2); }
  0.8% { opacity: 1; }
  3.6% { opacity: 0; transform: rotate(14deg) translateX(130%) scaleX(1); }
  100% { opacity: 0; transform: rotate(14deg) translateX(130%) scaleX(1); }
}
html.hero-ready .hero.is-live .hero-star { animation: star-shoot var(--star-dur) linear 4s infinite; }

/* ---- water: glints + a slow ripple ------------------------------------------------------ */
.glint {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: 13%;
  height: 3%;
  min-height: 3px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fffaf0, rgba(255, 238, 196, 0.75) 35%, rgba(243, 217, 147, 0.28) 65%, rgba(243, 217, 147, 0));
  opacity: 0;
}
@keyframes glint {
  0%, 100% { opacity: 0; transform: scaleX(0.4); }
  28%      { opacity: 1; transform: scaleX(1.2); }
  50%      { opacity: 0.35; transform: scaleX(0.9); }
  62%      { opacity: 0; transform: scaleX(0.7); }
}
html.hero-ready .hero.is-live .glint { animation: glint var(--glint-dur) var(--ease-soft) calc(var(--k) * -0.63s) infinite; }
html.hero-ready .hero.is-live .glint:nth-child(even) { animation-duration: calc(var(--glint-dur) * 1.3); }
.ripple {
  position: absolute;
  inset: 30% 0 0;
  overflow: clip;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #0000, #000 30%, #000 85%, #0000);
  mask-image: linear-gradient(to bottom, #0000, #000 30%, #000 85%, #0000);
  opacity: 0.5;
}
.ripple i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  background:
    repeating-linear-gradient(176deg, rgba(255, 246, 222, 0) 0 9%, rgba(255, 246, 222, 0.22) 10.5%, rgba(255, 246, 222, 0) 12%),
    repeating-linear-gradient(184.5deg, rgba(255, 246, 222, 0) 0 13%, rgba(255, 246, 222, 0.15) 14.5%, rgba(255, 246, 222, 0) 16%);
}
@keyframes ripple-slide { from { transform: translateX(0); } to { transform: translateX(-30%); } }
html.hero-ready .hero.is-live .ripple i { animation: ripple-slide 40s var(--ease-soft) infinite alternate; }

/* ---- lotus sway --------------------------------------------------------------------------- */
.lotus { transform-origin: 50% 100%; }
@keyframes lotus-sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg) translateY(-1.5%); } }
html.hero-ready .hero.is-live .lotus { animation: lotus-sway 6s var(--ease-soft) calc(var(--k) * -1.9s) infinite; }

/* ---- lamplight in the palace windows ------------------------------------------------------ */
.lamp {
  position: absolute;
  width: 4.5%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.85), rgba(255, 176, 84, 0.42) 45%, rgba(255, 160, 60, 0));
  opacity: 0.55;
  pointer-events: none;
}
@keyframes lamp-breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  45%      { opacity: 0.95; transform: scale(1.08); }
  60%      { opacity: 0.7; transform: scale(1); }
}
html.hero-ready .hero.is-live .lamp { animation: lamp-breathe calc(var(--lamp-dur) * 1.6) var(--ease-soft) calc(var(--k) * -1.3s) infinite; }

/* ---- blossoms off the two trees ------------------------------------------------------------ */
.blossom { position: absolute; width: 1.6%; opacity: 0; }
.blossom img { display: block; width: 100%; height: auto; }
@keyframes blossom-fall {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  8%   { opacity: 1; }
  80%  { opacity: 0.95; }
  100% { opacity: 0; transform: translate(calc(var(--s) * 260%), 1400%) rotate(calc(var(--s) * 320deg)); }
}
html.hero-ready .hero.is-live .blossom { animation: blossom-fall 8.5s cubic-bezier(0.3, 0.1, 0.6, 1) calc(var(--k) * 1.45s + 1.5s) infinite; }
html.hero-ready .hero.is-live .blossom:nth-child(3n) { animation-duration: 10.5s; }

/* ---- peacocks: a slow breath while the still shows (a playing video carries its own) ------ */
html.hero-ready .hero.is-live .peacock-b { animation: peacock-breathe var(--breathe-dur) var(--ease-soft) infinite alternate; }
html.hero-ready .hero.is-live .peacock--r .peacock-b { animation-delay: -2.6s; animation-duration: calc(var(--breathe-dur) * 1.17); }
html.hero-ready .hero.is-live .peacock .peacock-b.vid-on { animation: none; }
@keyframes peacock-breathe {
  0%   { transform: rotate(-0.9deg) scale(1, 1); }
  100% { transform: rotate(1.1deg) scale(1.006, 1.018); }
}

/* ---- the layers part as the hero scrolls away --------------------------------------------- */
@keyframes hero-depth { from { transform: none; } to { transform: translateY(var(--depth)); } }
@keyframes hero-depth-fade { from { transform: none; opacity: 1; } to { transform: translateY(var(--depth)); opacity: 0.15; } }
@supports (animation-timeline: scroll()) {
  html.gate-open .sc-sky { --depth: 30svh; }
  html.gate-open .sc-palace { --depth: 13svh; }
  html.gate-open .sc-lake { --depth: 9svh; }
  html.gate-open .lane--far { --depth: 3svh; }
  html.gate-open .lane--mid { --depth: 1.5svh; }
  html.gate-open .sc-text { --depth: 22svh; }
  html.gate-open .sc-sky, html.gate-open .sc-palace, html.gate-open .sc-lake,
  html.gate-open .lane--far, html.gate-open .lane--mid {
    animation: hero-depth linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 100svh;
  }
  html.gate-open .sc-text {
    animation: hero-depth-fade linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 90svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.gate-opening .scene { animation: none; }
  html.js .hero .hx, html.js .hero-title .ch { transform: none; filter: none; }
  html.js .hero-rule { transform: none; opacity: 0; }
  html.hero-ready .hero .hx, html.hero-ready .hero-rule, html.hero-ready .hero-title .ch {
    transform: none;
    filter: none;
    opacity: 1;
    transition: opacity 600ms linear;
    transition-delay: 0ms;
  }
  .hero .boat, .hero .boat-bob, .hero .hero-moon, .hero .hero-star, .hero .glint, .hero .ripple i,
  .hero .lotus, .hero .lamp, .hero .sc-refl, .hero .blossom, .hero .peacock-b,
  .hero .sc-sky, .hero .sc-palace, .hero .sc-lake, .hero .lane, .hero .sc-text { animation: none !important; }
  .hero .hero-star, .hero .glint, .hero .blossom, .sc-fw, .sc-flash, .sc-skyflash { display: none; }
}

/* ---- css/album.css ---- */
/* album.css — "Love in Gold". Prints are mounted vintage photographs: an ivory mat with a
 * fine gold hairline just inside its edge, a whisper of contact shadow on the paper, a small
 * fixed tilt (--r, from the build). One grid holds labels + prints; placement per item comes
 * from build/partials/album.cjs (phone --pr/--pc/--ps/--pm on 12 columns; desktop
 * --dr/--dc/--ds/--dm on 24). */
.album-head {
  max-width: 40rem;
  padding-left: clamp(14px, 4vw, 40px);
  border-left: 1px solid var(--gold);
}
.album-head .sec-title { margin-top: 8px; }
.album-intro {
  margin-top: 16px;
  max-width: 30rem;
  font: italic 400 clamp(19px, 5vw, 24px)/1.5 var(--f-text);
  color: var(--ink-soft);
}
.album-names {
  margin-top: 16px;
  font: 500 14px/1.5 var(--f-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.album-chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 13px/1.3 var(--f-text);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-ink);
}
.album-chapter-label::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--gold); }
/* a label heading one narrow column: the rule above, the text free to wrap (balanced) */
.album-chapter-label--col { flex-direction: column; align-items: flex-start; gap: 8px; white-space: normal; text-wrap: balance; }
@media (max-width: 380px) { .album-chapter-label { font-size: 12px; letter-spacing: 0.24em; gap: 8px; } .album-chapter-label::before { width: 20px; } }

.print { position: relative; transform: rotate(var(--r, 0deg)); }
/* the contact shadow is its own layer so it can grow in as the print lands (opacity only) */
.print::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 1px 1px rgba(58, 42, 30, 0.12), 0 6px 14px -8px rgba(58, 42, 30, 0.35);
  pointer-events: none;
}
.print-mat {
  position: relative;
  padding: 4.2%;
  background: var(--ivory-hi);
  border: 1px solid rgba(184, 137, 58, 0.55);
}
/* the mount's gold hairline, just inside the mat edge */
.print-mat::after {
  content: "";
  position: absolute;
  inset: 1.9%;
  border: 1px solid rgba(184, 137, 58, 0.8);
  pointer-events: none;
}
.print-img {
  width: 100%;
  height: auto;
  outline: 1px solid rgba(58, 42, 30, 0.22);
  outline-offset: -1px;
}

/* phone: 12 columns */
.album-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 3.2vw;
  row-gap: 5vw;
  align-items: start;
  margin-top: clamp(32px, 9vw, 64px);
}
.album-grid > * { grid-row: var(--pr); grid-column: var(--pc, 1) / span var(--ps, 12); }
.album-grid > .print { margin-top: var(--pm, 0); align-self: var(--pal, start); }
.album-grid > .album-chapter-label { align-self: end; margin-top: 4vw; }
.album-grid > .album-chapter-label:first-child { margin-top: 0; }

@media (min-width: 900px) {
  .album { padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2)); }
  /* a centred header over the collage */
  .album-head {
    max-width: 36rem;
    margin: 0 auto;
    padding: 0;
    border: 0;
    text-align: center;
  }
  .album-intro { margin-inline: auto; }
  .album-grid {
    grid-template-columns: repeat(24, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 14px;
    margin-top: 56px;
  }
  .album-grid > * { grid-row: var(--dr); grid-column: var(--dc, 1) / span var(--ds, 24); }
  .album-grid > .print { margin: var(--dm, 0) -3% 0; align-self: start; }
  .album-grid > .album-chapter-label { justify-self: start; margin: 28px 0 0 2%; }
  .album-grid > .album-chapter-label--col { flex-direction: row; align-items: center; gap: 12px; white-space: nowrap; }
  .album-grid > .album-chapter-label--narrow { flex-direction: column; align-items: flex-start; gap: 8px; white-space: normal; text-wrap: balance; }
  .album-grid > .album-chapter-label:first-child { margin-top: 0; }
}

/* reveal: each print is LAID DOWN like a photograph — it comes in from its side (--sx,
   alternating), lifted (scaled up, extra tilt), and settles onto the page as its contact
   shadow grows in under it. The mat inside drifts a little on scroll (.par, --par from the
   build, alternating), so neighbours slide against each other (css/scroll-fx.css). */
html.anim-ready .print[data-reveal] {
  opacity: 0;
  transform: translate(calc(var(--sx, 1) * var(--distance-art)), 26px) rotate(calc(var(--r, 0deg) + var(--sx, 1) * 9deg)) scale(1.1);
}
html.anim-ready .print[data-reveal]::before { opacity: 0; }
html.anim-ready .print[data-reveal].is-in {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
  transition: opacity 700ms var(--ease-soft) var(--d, 0ms), transform 1500ms var(--ease-out) var(--d, 0ms);
}
html.anim-ready .print[data-reveal].is-in::before {
  opacity: 1;
  transition: opacity 900ms var(--ease-soft) calc(var(--d, 0ms) + 650ms);
}
@media (min-width: 900px) { .print-mat.par { --par-k: 1.6; } }
/* chapter labels: the gold rule draws in from the left, the words follow */
html.anim-ready .album-chapter-label[data-reveal]::before { transform: scaleX(0); transform-origin: 0 50%; }
html.anim-ready .album-chapter-label[data-reveal].is-in::before {
  transform: none;
  transition: transform var(--motion-draw) var(--ease-draw) calc(var(--d, 0ms) + 150ms);
}
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .print[data-reveal] { transform: rotate(var(--r, 0deg)); }
  html.anim-ready .print[data-reveal].is-in, html.anim-ready .print[data-reveal].is-in::before { transition: opacity 600ms linear; }
  html.anim-ready .album-chapter-label[data-reveal]::before { transform: none; }
}

/* ---- css/quote.css ---- */
/* quote.css — "Jas ka Prem": the first of the two navy bands (.band, shared with the
 * countdown); the quote is the page's single big italic moment, deliberately centred. */
.band {
  background: var(--navy-800);
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(48px, 12vw, 110px);
  overflow: clip;
}
.band > :not(.pj-twinkles) { position: relative; } /* above the gold dust */
.band > .divider:first-child { margin-bottom: 0; }
.quote-kicker {
  margin-top: clamp(24px, 6vw, 44px);
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.4;
  color: var(--gold-300);
}
.quote-text {
  max-width: 19ch;
  margin: 16px auto clamp(28px, 7vw, 52px);
  font: italic 500 clamp(31px, 8.6vw, 58px)/1.18 var(--f-display);
  color: var(--ivory);
}
.quote-text p::before { content: "\201C"; }
.quote-text p::after { content: "\201D"; }

/* ---- css/cartouche.css ---- */
/* cartouche.css — the cusped jharokha frame (L.cartoucheFrame() / cartoucheFrameUrl() in
 * build/lib.cjs), shared by the event cards and the RSVP block. .cf is ONE SVG drawing used
 * as a 9-slice border-image (source URL: the generated <style> in index.html):
 *   slice 200 / 20 / 20 units  ->  drawn 50cqw / 5cqw / 5cqw  (0.25cqw per unit on
 *   every slice), so the arch head keeps its shape, only the straight sides stretch, and the
 *   double hairline runs unbroken from the arch into the sides and base.
 * cqw = the .cartouche's own width (it is the size container; .cf is its child). */
.cartouche { position: relative; container-type: inline-size; isolation: isolate; }
.cf {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border-style: solid;
  border-width: 0;
  border-image-slice: 200 20 20 fill;
  border-image-width: 50cqw 5cqw 5cqw;
  border-image-repeat: stretch;
}

/* a large corner-floral spray bleeding off the screen edge beside a section heading:
   decoration only, behind the content, never under the text (positions per section) */
.sec-floral { position: absolute; z-index: 0; pointer-events: none; }
.sec-floral img { width: 100%; }
.sec-floral--r { transform: scaleX(-1); }

/* ---- css/events.css ---- */
/* events.css — the two event cartouches (frame: css/cartouche.css). The vignette sits in the
 * arch head at ~70% of the card width, its own (peachier) paper feathered away by a soft
 * radial mask so no square edge shows on the ivory. Date = two deliberate lines (day, then
 * date). Phone: stacked with an offset; desktop: side by side, the second set lower. */
.celebrations .sec-title { position: relative; max-width: 64vw; margin-left: clamp(0px, 3vw, 40px); }
.cel-floral { top: 6px; right: -15vw; width: 50vw; }
.ev-cards { position: relative; display: flex; flex-direction: column; gap: clamp(32px, 9vw, 56px); margin-top: clamp(28px, 7vw, 56px); }
.ev-card { width: min(90%, 420px); }
.ev-card--b { align-self: flex-end; }
.ev-in { position: relative; padding: 8cqw 9cqw 12cqw; text-align: center; }
.ev-art { width: 70%; margin: 0 auto 2cqw; }
/* the soft radial feather is on the wrapper, so the light overlays (.ev-fx) feather with it */
.ev-art-in {
  position: relative;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, 0.6) 74%, #0000 97%);
  mask-image: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, 0.6) 74%, #0000 97%);
}
.ev-art img { width: 100%; }
.ev-when {
  font: 500 12.5px/1.55 var(--f-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.ev-day, .ev-date { display: block; padding-left: 0.22em; }
.ev-date { white-space: nowrap; }
.ev-name { margin-top: 8px; font: 500 clamp(32px, 8.6vw, 42px)/1.05 var(--f-display); color: var(--ink); }
.ev-line { margin: 10px auto 0; max-width: 24ch; font: italic 400 18px/1.45 var(--f-text); color: var(--ink-soft); }
.ev-meta { margin-top: 12px; font: 400 16px/1.45 var(--f-text); color: var(--ink); }
.ev-venue { letter-spacing: 0.02em; }

@media (min-width: 900px) {
  .celebrations { padding-inline: max(var(--gutter), calc((100vw - 1100px) / 2)); }
  .celebrations .sec-title { max-width: none; }
  .cel-floral { top: 10px; right: -70px; width: 360px; }
  .ev-cards { flex-direction: row; justify-content: center; gap: 56px; }
  .ev-card { width: 420px; }
  .ev-card--b { align-self: auto; margin-top: 88px; }
}

/* reveal, one beat after another: the cartouche unfolds from its top edge, the vignette
   scales up into its arch head, then the lines cascade (css/motion.css .rl, --lines-at) */
html.anim-ready .ev-card[data-reveal] {
  opacity: 0;
  transform: perspective(1200px) rotateX(-16deg) translateY(40px);
  transform-origin: 50% 0;
  --lines-at: 650ms;
}
html.anim-ready .ev-card[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-soft) var(--d, 0ms), transform 1400ms var(--ease-out) var(--d, 0ms);
}
html.anim-ready .ev-card[data-reveal] .ev-art { opacity: 0; transform: scale(0.72) translateY(6%); }
html.anim-ready .ev-card[data-reveal].is-in .ev-art {
  opacity: 1;
  transform: none;
  transition: opacity 1000ms var(--ease-soft) calc(var(--d, 0ms) + 300ms), transform 1600ms var(--ease-out) calc(var(--d, 0ms) + 300ms);
}

/* ---- each vignette's one small ambient loop (positions: build/partials/celebrations.cjs).
   Light only: radial-gradient glows that breathe (opacity + scale), a sheen band that slides
   (transform). Running only while the card is near the screen (.is-live). */
.ev-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ev-fx > i { position: absolute; left: var(--x); top: var(--y); border-radius: 50%; opacity: 0; }
/* bhajan: the three diya flames glow and flicker, out of step */
.ev-flame {
  width: 13%;
  aspect-ratio: 1;
  margin: -6.5% 0 0 -6.5%;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.95) 0 12%, rgba(255, 186, 80, 0.55) 34%, rgba(255, 160, 60, 0) 70%);
}
/* gala: the chandelier's warm halo breathes */
.ev-chand {
  width: 30%;
  aspect-ratio: 1;
  margin: -15% 0 0 -15%;
  background: radial-gradient(circle, rgba(255, 240, 196, 0.7) 0 14%, rgba(255, 206, 120, 0.32) 40%, rgba(255, 206, 120, 0) 70%);
}
/* gala: the painted firework bursts twinkle */
.ev-burst {
  width: 15%;
  aspect-ratio: 1;
  margin: -7.5% 0 0 -7.5%;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.9) 0 8%, rgba(243, 217, 147, 0.4) 30%, rgba(243, 217, 147, 0) 66%);
}
/* gala: a slow sheen across the canopy (the striped tent: y 22-44 %) */
.ev-fx > .ev-sheen {
  left: 0;
  top: 20%;
  height: 25%;
  border-radius: 0;
  opacity: 1;
  background: linear-gradient(100deg, rgba(255, 248, 226, 0) 30%, rgba(255, 248, 226, 0.4) 50%, rgba(255, 248, 226, 0) 70%);
  width: 45%;
  transform: translateX(-110%);
}
@keyframes ev-flicker {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  18%      { opacity: 0.95; transform: scale(1.06); }
  34%      { opacity: 0.7;  transform: scale(0.97); }
  52%      { opacity: 1;    transform: scale(1.1); }
  70%      { opacity: 0.62; transform: scale(0.95); }
}
@keyframes ev-breathe { 0%, 100% { opacity: 0.35; transform: scale(0.9); } 50% { opacity: 0.95; transform: scale(1.08); } }
@keyframes ev-twinkle { 0%, 60%, 100% { opacity: 0; transform: scale(0.6); } 72% { opacity: 1; transform: scale(1.05); } 86% { opacity: 0.2; transform: scale(0.9); } }
@keyframes ev-sheen { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(240%); } }
.ev-card.is-live .ev-flame { animation: ev-flicker var(--lamp-dur) ease-in-out calc(var(--k) * -0.9s) infinite; }
.ev-card.is-live .ev-chand { animation: ev-breathe 4.2s var(--ease-soft) infinite; }
.ev-card.is-live .ev-burst { animation: ev-twinkle 3.6s ease-out calc(var(--k) * 1.2s) infinite; }
.ev-card.is-live .ev-sheen { animation: ev-sheen var(--sheen-dur) var(--ease-soft) 1s infinite; }

@media (prefers-reduced-motion: reduce) {
  html.anim-ready .ev-card[data-reveal], html.anim-ready .ev-card[data-reveal] .ev-art { transform: none; }
  html.anim-ready .ev-card[data-reveal].is-in, html.anim-ready .ev-card[data-reveal].is-in .ev-art { transition: opacity 600ms linear; }
  .ev-fx { display: none; }
}

/* ---- css/venue.css ---- */
/* venue.css — the Kolkata vignette in the album's mount (ivory mat + inner gold hairline),
 * which event this is, the hall's name, left-aligned against it. */
.venue-mat {
  position: relative;
  padding: 2.6%;
  background: var(--ivory-hi);
  border: 1px solid rgba(184, 137, 58, 0.55);
  box-shadow: 0 1px 1px rgba(58, 42, 30, 0.12), 0 8px 18px -10px rgba(58, 42, 30, 0.35);
}
.venue-mat::after { content: ""; position: absolute; inset: 1.1%; border: 1px solid rgba(184, 137, 58, 0.8); pointer-events: none; }
.venue-mat img { width: 100%; }
/* the vignette's window: the image is a touch larger than it and drifts inside on scroll
   (.par, css/scroll-fx.css); the clip keeps it in the mat (clip, not hidden: no scroller) */
.venue-frame { position: relative; overflow: clip; }
.venue-img { --par: 14; scale: 1.08; }
/* the wipe: an ivory leaf the colour of the mat lies over the painting and is drawn away to
   the right (scaleX about its right edge) — a mask-like reveal with transform only */
.venue-wipe {
  position: absolute;
  inset: -1px;
  background: var(--ivory-hi);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  pointer-events: none;
}
.venue-copy { margin-top: clamp(24px, 6vw, 40px); padding-left: clamp(0px, 4vw, 40px); }
/* the kicker: day + event as two deliberate lines on a phone, one line beside the art */
.venue-kicker > span:not(.dot):not(.sr-only) { display: block; }
.venue-kicker .dot { display: none; }
@media (min-width: 900px) {
  .venue-kicker > span:not(.dot):not(.sr-only) { display: inline; }
  .venue-kicker .dot { display: inline-block; margin: 0 0.4em; }
}
.venue-name { margin-top: 10px; font: 500 clamp(40px, 11vw, 68px)/1.02 var(--f-display); color: var(--ink); }
.venue-address { margin-top: 10px; font: 400 19px/1.5 var(--f-text); color: var(--ink-soft); }
.venue .btn { margin-top: 26px; }
@media (min-width: 900px) {
  .venue {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-areas: "div div" "art copy";
    align-items: end;
    gap: 0;
    padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2));
  }
  .venue-divider { grid-area: div; }
  .venue-art { grid-area: art; }
  .venue-copy { grid-area: copy; margin: 0 0 40px 7%; padding: 0; position: relative; z-index: 1; }
}
html.anim-ready .venue-art[data-reveal] { opacity: 0; transform: translateY(30px); }
html.anim-ready .venue-art[data-reveal] .venue-wipe { transform: scaleX(1); }
html.anim-ready .venue-art[data-reveal] .venue-img { scale: 1.22; }
html.anim-ready .venue-art[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 800ms var(--ease-soft), transform 1400ms var(--ease-out); }
html.anim-ready .venue-art[data-reveal].is-in .venue-wipe { transform: scaleX(0); transition: transform 1500ms var(--ease-draw) 350ms; }
html.anim-ready .venue-art[data-reveal].is-in .venue-img { scale: 1.08; transition: scale 2600ms var(--ease-out) 350ms; }
/* "View on map": one restrained gold ring, once, after it has arrived */
html.anim-ready .venue-map.is-in::after { animation: btn-ring 1.8s var(--ease-soft) calc(var(--d, 0ms) + 1500ms) 1 both; }
@keyframes btn-ring {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12, 1.45); }
}
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .venue-art[data-reveal] { transform: none; }
  html.anim-ready .venue-art[data-reveal] .venue-wipe { display: none; }
  html.anim-ready .venue-art[data-reveal] .venue-img, .venue-img { scale: 1; }
  html.anim-ready .venue-art[data-reveal].is-in { transition: opacity 600ms linear; }
}

/* ---- css/countdown.css ---- */
/* countdown.css — the second navy band (.band: css/quote.css): days / hours / minutes /
 * seconds in tall light-gold lining numerals, gold hairline dividers, the outlined gold
 * "Add to calendar". Digits roll in when they change. */
.countdown .sec-title { margin-top: clamp(22px, 6vw, 40px); color: var(--gold-200); }
.cd { margin: clamp(22px, 6vw, 40px) auto 0; max-width: 640px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cd-unit { display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
.cd-unit + .cd-unit { border-left: 1px solid rgba(217, 182, 106, 0.45); }
.cd-num {
  display: block;
  overflow: hidden;
  font: 500 clamp(42px, 12.5vw, 80px)/1.1 var(--f-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-200);
}
.cd-digits { display: inline-block; }
/* a changed digit group rolls down into place out of a slight blur */
.cd-digits.roll { animation: cd-roll 560ms var(--ease-out) both; }
@keyframes cd-roll {
  from { transform: translateY(-60%); opacity: 0; filter: blur(2px); }
  60%  { filter: blur(0); }
  to   { transform: none; opacity: 1; filter: blur(0); }
}
.cd-lab {
  margin-top: 4px;
  font: 500 11.5px/1 var(--f-text);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.cd-label { margin-top: 20px; font: italic 400 19px/1.4 var(--f-text); color: #e9dec6; }
.cd.is-past .cd-grid { display: none; }
.cd.is-past .cd-label { font: italic 500 clamp(26px, 7vw, 40px)/1.2 var(--f-display); color: var(--gold-200); }
.countdown .btn { margin: clamp(26px, 7vw, 40px) 0 clamp(26px, 7vw, 44px); }
/* arrival: the four units rise one after another, each hairline divider drawing down */
html.anim-ready [data-reveal="cd"] .cd-unit { opacity: 0; transform: translateY(26px) scale(0.94); }
html.anim-ready [data-reveal="cd"] .cd-unit + .cd-unit { border-left-color: transparent; }
html.anim-ready [data-reveal="cd"] .cd-unit { position: relative; }
html.anim-ready [data-reveal="cd"] .cd-unit + .cd-unit::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(217, 182, 106, 0.45);
  transform: scaleY(0);
}
html.anim-ready [data-reveal="cd"] .cd-label { opacity: 0; transform: translateY(12px); }
html.anim-ready [data-reveal="cd"].is-in .cd-unit {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-soft), transform 1100ms var(--ease-back);
  transition-delay: calc(var(--d, 0ms) + var(--i) * 130ms);
}
html.anim-ready [data-reveal="cd"].is-in .cd-unit + .cd-unit::before {
  transform: none;
  transition: transform 900ms var(--ease-draw) calc(var(--d, 0ms) + 300ms + var(--i) * 130ms);
}
html.anim-ready [data-reveal="cd"].is-in .cd-label {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-soft) calc(var(--d, 0ms) + 700ms), transform 900ms var(--ease-out) calc(var(--d, 0ms) + 700ms);
}
@media (prefers-reduced-motion: reduce) {
  .cd-digits.roll { animation: none; }
  html.anim-ready [data-reveal="cd"] .cd-unit, html.anim-ready [data-reveal="cd"] .cd-label, html.anim-ready [data-reveal="cd"] .cd-unit + .cd-unit::before { transform: none; }
  html.anim-ready [data-reveal="cd"].is-in .cd-unit, html.anim-ready [data-reveal="cd"].is-in .cd-label { transition: opacity 600ms linear; }
}

/* ---- css/rsvp.css ---- */
/* rsvp.css — the RSVP block in a cusped cartouche (frame: css/cartouche.css), the number set
 * large. Below it two elephants walk the lotus border forever (css/walker.css): the section
 * has no bottom padding, so the footer band starts right under their feet. */
.rsvp {
  --ele-w: min(42vw, 300px);
  text-align: center;
  padding-bottom: 0;
  overflow-x: clip;
}
.rsvp-floral { top: 6px; left: -17vw; width: 52vw; }
.rsvp-card { z-index: 1; width: min(94%, 480px); margin: 0 auto; }
.rsvp-in { position: relative; padding: 19cqw 8cqw 10cqw; }
.rsvp-line { margin-top: 10px; font: italic 400 clamp(19px, 5vw, 23px)/1.45 var(--f-text); color: var(--ink-soft); }
.rsvp-num {
  display: inline-block;
  margin-top: clamp(18px, 5vw, 28px);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  font: 500 clamp(30px, 8.6vw, 46px)/1.1 var(--f-display);
  font-variant-numeric: lining-nums;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.rsvp-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 6vw, 32px); }
.rsvp-actions .btn { min-width: 7.6em; padding-inline: 20px; }
.rsvp-closing {
  margin-top: clamp(22px, 6vw, 32px);
  font: 500 11.5px/1.4 var(--f-text);
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--gold-ink);
}
/* the elephants' lane (css/walker.css; js/walker.js): full width, below the cartouche on
   every screen, feet on the lotus border that follows (no bottom padding). */
.rsvp-herd {
  height: calc(var(--ele-w) * 1.016);
  margin: clamp(14px, 4vw, 28px) calc(var(--gutter) * -1) 0;
  pointer-events: none;
}
.elephant { width: var(--ele-w); }

@media (min-width: 900px) {
  .rsvp { --ele-w: min(230px, 17vw); }
  .rsvp-floral { top: 10px; left: -60px; width: 380px; }
}

/* the cartouche settles in, then its lines cascade (css/motion.css .rl) */
html.anim-ready .rsvp-card[data-reveal] { opacity: 0; transform: translateY(32px) scale(0.97); --lines-at: 350ms; }
html.anim-ready .rsvp-card[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-soft) var(--d, 0ms), transform 1400ms var(--ease-out) var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .rsvp-card[data-reveal] { transform: none; }
  html.anim-ready .rsvp-card[data-reveal].is-in { transition: opacity 600ms linear; }
}

/* ---- css/walker.css ---- */
/* walker.css — a figure that walks across a clipped lane forever (the RSVP elephants), and the
 * optional transparent-video slot shared with the peacocks (js/loop-video.js).
 * Model: pukhraj-poorva-wedding's baraat drift (css/ambient.css proc-drift) + its
 * couple-video poster rule.
 *
 *   .walker       the drift: ONE linear translateX from fully off one side to fully off the
 *                 other, infinite. `linear` is required (any easing makes the speed jump at
 *                 the wrap); the wrap happens off-frame, so there is no pop and no fade.
 *                 js/walker.js measures the lane and sets --drift-dur so the speed is
 *                 data walkers.elephant.widthsPerSec x the elephant's width (or the clip's
 *                 own foot speed); both lanes share ONE period, so they cross once a loop,
 *                 near the centre; lane B lags a little so the two never wrap together and the
 *                 lane is never left with only slivers (js/walker.js LAG).
 *   .walker-flip  lane B's mirror (never animated: the drift owns .walker's transform)
 *   .walker-gait  the still poster's stride: a small rise + rock about the feet, two
 *                 footfalls per --stride. OFF as soon as a video frame is on screen (.vid-on):
 *                 the clip carries the gait.
 *   poster <img>  always there underneath; hidden only once a video frame was PRESENTED.
 *
 * At rest (no JS, reduced motion, before js/walker.js has measured) the two stand facing each
 * other either side of the centre. The lane clips sideways only (overflow: clip, not hidden:
 * no scroll container), so it can never widen the page. */
.walker-gait { position: relative; transform-origin: 50% 100%; }
.walker-gait > img, .walker-gait > video { display: block; width: 100%; height: auto; }
.walker-gait > video {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.vid-on > .walker-poster, .vid-on > .peacock-img { visibility: hidden; }
/* no JS: the source-less players never load, and browsers draw native controls on a
   <video> when scripting is off — leave only the still */
html:not(.js) video[data-mov] { display: none; }

.herd {
  position: relative;
  overflow: clip visible;
  container-type: inline-size;
}
.walker { position: absolute; bottom: 0; left: 0; }
.walker--a { z-index: 2; left: calc(50% - var(--ele-w) - 2px); }
.walker--b { z-index: 1; width: calc(var(--ele-w) * var(--back, 0.88)); left: calc(50% + 2px); bottom: calc(var(--ele-w) * 0.04); }
.walker--b .walker-flip { transform: scaleX(-1); }

@keyframes walk-ltr { from { transform: translateX(-100%); } to { transform: translateX(100cqw); } }
@keyframes walk-rtl { from { transform: translateX(100cqw); } to { transform: translateX(-100%); } }
@keyframes gait {
  0%, 50%, 100% { transform: translateY(0) rotate(0deg); }
  25%           { transform: translateY(-1.3%) rotate(0.7deg); }
  75%           { transform: translateY(-1.3%) rotate(-0.5deg); }
}
/* js/walker.js adds .is-walking once it has measured (never under reduced motion) */
.herd.is-walking .walker {
  left: 0;
  animation: walk-ltr var(--drift-dur, 24s) linear var(--drift-delay, 0s) infinite;
  animation-play-state: paused;
}
.herd.is-walking .walker--b { animation-name: walk-rtl; animation-delay: var(--drift-delay-b, var(--drift-delay, 0s)); }
.herd.is-walking .walker-gait { animation: gait var(--stride) ease-in-out infinite; animation-play-state: paused; }
.herd.is-walking .walker--b .walker-gait { animation-duration: var(--stride-b, var(--stride)); }
.herd.is-walking .walker-gait.vid-on { animation: none; }
/* moving only while the lane is near the screen; the drift keeps its compositor layer
   only while it actually runs */
.herd.is-walking:is(.is-live, .is-live *) .walker { animation-play-state: running; will-change: transform; }
.herd.is-walking:is(.is-live, .is-live *) .walker-gait { animation-play-state: running; }
/* the hero's pair waits behind the closed doors and sets off at the tap (html.baraat-on,
   js/gate.js): mid-approach, so they are already crossing when the leaves part */
html:not(.baraat-on) .hero-herd .walker, html:not(.baraat-on) .hero-herd .walker-gait { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .herd .walker, .herd .walker-gait { animation: none !important; }
}

/* ---- css/foot.css ---- */
/* foot.css — the lotus border band, tiled horizontally (background-image set by the
 * generated <style> in index.html). */
/* bottom padding clears the fixed music button (46px + 14px inset + safe area, css/music.css)
   so it never sits over the credit when the page is scrolled to the very end. */
.foot { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
/* the lotus border creeps sideways, very slowly: a strip one tile wider than the band
   (--tile = the tile's drawn width; --tile-ar comes from the file, build.cjs) slides left by exactly one tile
   and wraps (transform only; never background-position). Only while near the screen. */
.foot-band { --band-h: clamp(56px, 12.5vw, 100px); --tile: calc(var(--band-h) * var(--tile-ar, 2.6867)); height: var(--band-h); overflow: clip; }
.foot-strip {
  height: 100%;
  width: calc(100% + var(--tile));
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
}
@keyframes foot-creep { from { transform: translateX(0); } to { transform: translateX(calc(var(--tile) * -1)); } }
.foot.is-live .foot-strip { animation: foot-creep var(--border-creep-dur) linear infinite; }
@media (prefers-reduced-motion: reduce) { .foot.is-live .foot-strip { animation: none; } }
.foot-line {
  margin-top: 22px;
  text-align: center;
  font: 500 12px/1.4 var(--f-text);
  letter-spacing: var(--track-caps);
  padding-left: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-ink);
}
/* studio credit — quiet, last on the page; the padding gives a >= 44px tap target. */
.foot-credit-wrap { margin-top: 10px; text-align: center; }
.foot-credit {
  display: inline-block;
  padding: 14px 12px;
  min-height: 44px;
  font: 500 11px/16px var(--f-text);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  text-underline-offset: 4px;
  border-radius: 4px;
  transition: color var(--motion-fast) var(--ease-out);
}
.foot-credit:hover, .foot-credit:focus-visible { color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); }
.foot-credit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- css/reveal.css ---- */
/* reveal.css — generic one-shot text reveal ([data-reveal="text"], js/reveal.js adds .is-in).
 * Hidden states are armed only under html.anim-ready (set after the observers exist), so a
 * failed script never leaves text invisible. Section-specific reveals live in their files;
 * the shared vocabulary (titles, line cascades, words, dividers) is css/motion.css.
 * Uses the individual `translate` property, not `transform`: a revealed button keeps its own
 * hover/press `transform` (css/motion.css) without the two fighting over one property. */
html.anim-ready [data-reveal="text"] { opacity: 0; translate: 0 var(--distance-reveal); }
html.anim-ready [data-reveal="text"].is-in {
  opacity: 1;
  translate: none;
  transition:
    opacity var(--motion-slow) var(--ease-out) var(--d, 0ms),
    translate var(--motion-slow) var(--ease-out) var(--d, 0ms),
    transform var(--motion-fast) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  html.anim-ready [data-reveal="text"] { translate: none; }
  html.anim-ready [data-reveal="text"].is-in { transition: opacity 600ms linear; }
}

/* ---- css/motion.css ---- */
/* motion.css — the page's shared entrance vocabulary (one-shot, js/reveal.js adds .is-in as
 * a block rises into view; blocks arriving together get a --d stagger). Section-specific
 * entrances live in their own files and use the same tokens.
 *
 *   [data-reveal="title"]    section titles: rise + fade, settling out of a soft blur
 *   [data-reveal] .rl        inside ANY revealed block, .rl children (--i) cascade line by
 *                            line, after --lines-at (set per block kind)
 *   [data-reveal="words"]    the quote: .wd words (--w) rise out of a blur one by one
 *   [data-reveal="divider"]  the gold filigree draws out from the centre, then its lotus pops
 *   .btn                     hover lift / press / focus states (every button on the page)
 *
 * Never-invisible: every hidden state is behind html.anim-ready, which js/reveal.js adds
 * only once its observers exist (no JS / a throw / no IO => everything simply shows).
 * transform / opacity / filter only. Reduced motion: short plain fades, nothing travels. */

/* ---- section titles ------------------------------------------------------------------ */
html.anim-ready [data-reveal="title"] {
  opacity: 0;
  transform: translateY(calc(var(--distance-reveal) * 1.4));
  filter: blur(var(--blur-reveal));
}
html.anim-ready [data-reveal="title"].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity var(--motion-slow) var(--ease-out) var(--d, 0ms),
    transform var(--motion-slower) var(--ease-out) var(--d, 0ms),
    filter var(--motion-slow) var(--ease-out) var(--d, 0ms);
}

/* ---- line cascades ------------------------------------------------------------------- */
html.anim-ready [data-reveal] .rl {
  opacity: 0;
  transform: translateY(var(--distance-reveal));
}
html.anim-ready [data-reveal].is-in .rl {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--lines-at, 0ms) + var(--i, 0) * var(--stagger-line));
}

/* ---- words --------------------------------------------------------------------------- */
.wd { display: inline-block; }
html.anim-ready [data-reveal="words"] .wd {
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(4px);
}
html.anim-ready [data-reveal="words"].is-in .wd {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out),
    filter 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + 200ms + var(--w, 0) * var(--stagger-word));
}

/* ---- dividers: the arms draw from the centre, then the lotus pops ----------------------
 * Two copies of the same image with complementary masks (build/lib.cjs divider()): the
 * centre band (45-55%, the lotus) and everything else. At rest = the original pixels. */
.divider { position: relative; }
.divider-lotus { position: absolute; inset: 0; }
.divider-arms {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, #0000 45%, #0000 55%, #000 55%);
  mask-image: linear-gradient(90deg, #000 45%, #0000 45%, #0000 55%, #000 55%);
}
.divider-lotus {
  -webkit-mask-image: linear-gradient(90deg, #0000 45%, #000 45%, #000 55%, #0000 55%);
  mask-image: linear-gradient(90deg, #0000 45%, #000 45%, #000 55%, #0000 55%);
}
html.anim-ready [data-reveal="divider"] .divider-arms { transform: scaleX(0); opacity: 0; }
html.anim-ready [data-reveal="divider"] .divider-lotus { transform: scale(0.2) rotate(-40deg); opacity: 0; }
html.anim-ready [data-reveal="divider"].is-in .divider-arms {
  transform: none;
  opacity: 1;
  transition: transform var(--motion-draw) var(--ease-draw) var(--d, 0ms), opacity 500ms var(--ease-soft) var(--d, 0ms);
}
html.anim-ready [data-reveal="divider"].is-in .divider-lotus {
  transform: none;
  opacity: 1;
  transition: transform 900ms var(--ease-back) calc(var(--d, 0ms) + 120ms), opacity 400ms var(--ease-soft) calc(var(--d, 0ms) + 120ms);
}

/* ---- buttons: hover lift, press, focus ------------------------------------------------ */
.btn { transition: transform var(--motion-fast) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 90ms; }
.btn:focus-visible { outline-offset: 5px; }
/* a one-shot attention ring (venue map): opacity + scale only */
.btn-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
.btn--on-navy.btn-ring::after { border-color: var(--gold-300); }

/* a [data-reveal="text"] button keeps its hover transform after the reveal: the reveal's
   transition is on transform too, so the hover just retargets it */

@media (prefers-reduced-motion: reduce) {
  html.anim-ready [data-reveal="title"],
  html.anim-ready [data-reveal] .rl,
  html.anim-ready [data-reveal="words"] .wd,
  html.anim-ready [data-reveal="divider"] .divider-arms,
  html.anim-ready [data-reveal="divider"] .divider-lotus { transform: none; filter: none; }
  html.anim-ready [data-reveal].is-in,
  html.anim-ready [data-reveal].is-in .rl,
  html.anim-ready [data-reveal].is-in .wd,
  html.anim-ready [data-reveal].is-in .divider-arms,
  html.anim-ready [data-reveal].is-in .divider-lotus { transition: opacity 600ms linear !important; }
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
  .btn-ring::after { animation: none !important; }
}

/* ---- css/scroll-fx.css ---- */
/* scroll-fx.css — art that moves WITH the scroll (pukhraj-poorva-wedding's contract):
 * things come IN as they enter, go OUT as they leave, and reverse when you scroll back.
 *
 *   [data-fx="flora"]    the corner sprays: grow out of their own corner, recede when passed
 *   .par                 depth parallax (--par = travel in px, + down / - up, over the
 *                        element's whole pass through the screen)
 *   (the hero's own scroll parallax lives in css/hero-fx.css)
 *
 * Two mutually exclusive branches split by @supports:
 *   1. view() timelines — scrubbed by the element's own scroll position. `linear` on
 *      purpose: the scroll is the easing. animation-timeline is reset-only in the
 *      `animation` shorthand, so it must stay in the same rule as, and AFTER, it.
 *   2. no view() (Firefox, Safari < 26) — js/reveal.js toggles .fx-in both ways with an
 *      IntersectionObserver and the transitions run on a clock; parallax simply rests.
 * Trap: an ancestor with overflow:hidden is a scroll container and silently freezes every
 * view() inside it — ancestors here use overflow: clip.
 * Never-invisible: hidden states live only in keyframe `from`s (an inactive timeline = no
 * effect = rest) and, on the IO branch, behind html.anim-ready. Reduced motion: all rest. */

.sec-floral img { transform-origin: 0 0; }

@keyframes fx-flora-in {
  from { opacity: 0; transform: rotate(-14deg) scale(0.3); }
  to   { opacity: 1; transform: none; }
}
@keyframes fx-flora-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0.2; transform: rotate(-8deg) scale(0.62); }
}
@keyframes fx-par {
  from { transform: translateY(calc(var(--par, 0) * var(--par-k, 1) * 1px)); }
  to   { transform: translateY(calc(var(--par, 0) * var(--par-k, 1) * -1px)); }
}

@supports (animation-timeline: view()) {
  html.anim-ready [data-fx="flora"] img {
    animation: fx-flora-in linear both, fx-flora-out linear forwards;
    animation-timeline: view(), view();
    animation-range: entry 0% cover 38%, exit 10% exit 100%;
  }
  html.anim-ready .par {
    animation: fx-par linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}

@supports not (animation-timeline: view()) {
  html.anim-ready [data-fx="flora"] img {
    transition: opacity 1100ms var(--ease-soft), transform 1600ms var(--ease-out);
  }
  html.anim-ready [data-fx="flora"]:not(.fx-in) img { opacity: 0; transform: rotate(-14deg) scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
  html.anim-ready [data-fx] img, html.anim-ready .par {
    animation: none !important;
    transition: opacity 600ms linear !important;
    transform: none !important;
  }
}
@media print {
  [data-fx] img, .par { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---- css/twinkles.css ---- */
/* twinkles.css — sparse gold dust on the navy areas (js/twinkles.js puts one field in the
 * gate board, the hero arch's sky and each navy band). Each field is absolutely positioned
 * in its host, untransformed and pointer-events:none, and animates only while its host is
 * near the screen (.is-live).
 * FORBIDDEN here (iOS compositor rules): mix-blend-mode, filter, backdrop-filter,
 * will-change. Keyframes animate only opacity + transform on small nodes. */
.pj-twinkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout style paint;
}
.pj-tw {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  opacity: 0;
  animation: pj-tw-flash var(--dur) var(--delay) infinite;
  animation-play-state: paused;
}
.pj-twinkles.is-live .pj-tw { animation-play-state: running; }
.pj-tw i {
  display: block;
  width: 100%;
  height: 100%;
  opacity: var(--peak);
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0 22%, #f3d993 42%, rgba(214, 166, 72, 0.4) 60%, rgba(214, 166, 72, 0) 74%);
}
.pj-tw--star i { background: none; border-radius: 0; }
.pj-tw--star svg { display: block; width: 100%; height: 100%; }
@keyframes pj-tw-flash {
  0%   { opacity: 0; transform: scale(0.4) rotate(0deg); animation-timing-function: ease-out; }
  12%  { opacity: 1; transform: scale(1) rotate(20deg); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  55%  { opacity: 0; transform: scale(0.75) rotate(35deg); }
  100% { opacity: 0; transform: scale(0.75) rotate(35deg); }
}
@media (prefers-reduced-motion: reduce) { .pj-twinkles { display: none !important; } }

/* ---- css/petals.css ---- */
/* petals.css — the falling petals (js/petals.js). Ported from
 * templates/pukhraj-poorva-wedding/css/petals.css: one element cannot run two transform
 * animations, so each petal is four nested layers:
 *   .pj-petal      falls (linear, constant speed)      — the burst variant: out of the
 *                                                         medallion, up, then down and away
 *   .pj-petal__d   drifts side to side (pendulum)
 *   .pj-petal__b   bobs at half the drift period (each half-swing traces a falling-leaf arc)
 *   .pj-petal__i   spins + flutters (scaleY) + rocks
 * Fixed full-viewport overlay above everything (the burst shows over the opening cover),
 * pointer-events none. Kept readable: few aloft, small, and on phones mostly at the edges.
 * iOS compositor rules (css/twinkles.css): no will-change, no blend modes, no filter. */
.pj-petals {
  position: fixed;
  inset: 0;
  z-index: 1001;
  overflow: hidden;
  pointer-events: none;
  contain: layout style paint;
}
.pj-petal {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  animation: pj-petal-fall var(--fall, 10s) linear both;
}
.pj-petal--burst {
  top: 42%;
  left: 50%;
  animation: pj-petal-burst var(--fall, 4.5s) cubic-bezier(0.2, 0.6, 0.5, 1) both;
}
.pj-petal__d { display: block; animation: pj-petal-drift var(--driftDur, 5s) ease-in-out var(--driftDelay, 0s) infinite alternate; }
.pj-petal__b { display: block; animation: pj-petal-bob var(--bobDur, 2.5s) ease-in-out var(--bobDelay, 0s) infinite alternate; }
.pj-petal__i {
  display: block;
  width: var(--size, 18px);
  height: auto;
  transform-origin: 50% 50%;
  animation: pj-petal-spin var(--swayDur, 5s) ease-in-out var(--swayDelay, 0s) infinite alternate;
}
.pj-petal__i--far { opacity: 0.75; }

@keyframes pj-petal-fall {
  from { transform: translate3d(0, -8vh, 0); }
  to   { transform: translate3d(0, 108vh, 0); }
}
@keyframes pj-petal-burst {
  0%   { transform: translate3d(0, 0, 0) scale(0.3); opacity: 0; }
  8%   { opacity: 1; }
  28%  { transform: translate3d(var(--bx), var(--by), 0) scale(1); }
  100% { transform: translate3d(var(--ex), 70vh, 0) scale(1); opacity: 1; }
}
@keyframes pj-petal-drift {
  from { transform: translate3d(calc(var(--driftX, 40px) * -1), 0, 0); }
  to   { transform: translate3d(var(--driftX, 40px), 0, 0); }
}
@keyframes pj-petal-bob {
  from { transform: translate3d(0, calc(var(--bob, 8px) * -1), 0); }
  to   { transform: translate3d(0, var(--bob, 8px), 0); }
}
@keyframes pj-petal-spin {
  from { transform: rotate(var(--r0, 0deg)) scale(var(--flip, 1), 1) translateX(calc(var(--sway, 10px) * -1)); }
  50%  { transform: rotate(calc((var(--r0, 0deg) + var(--r1, 180deg)) / 2)) scale(var(--flip, 1), var(--tilt, 0.5)) translateX(0); }
  to   { transform: rotate(var(--r1, 180deg)) scale(var(--flip, 1), 1) translateX(var(--sway, 10px)); }
}
@media (prefers-reduced-motion: reduce) { .pj-petals { display: none !important; } }
@media print { .pj-petals { display: none !important; } }

/* ---- css/music.css ---- */
/* music.css — the background-music toggle (markup: build/partials/music.cjs; behaviour:
 * js/audio.js sets .is-on + aria-pressed). Pattern: templates/pukhraj-poorva-wedding/css/audio.css.
 * Fixed bottom-right, clear of the iOS home bar (safe-area insets). z 1002: above the petals
 * (1001), below the skip link (2000). The gate is 1000, so the control stays invisible (and
 * unfocusable) until html.gate-open — the gate node is removed by then: it is never over the
 * doors. No JS: the `hidden` attribute is never lifted, nothing shows.
 * Only opacity / transform animate. Reduced motion: no fade, the bars stand still. */
.music {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 1002;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(217, 182, 106, 0.7); /* --gold-300 */
  border-radius: 50%;
  background: rgba(14, 26, 54, 0.86);         /* --navy-900 */
  box-shadow: 0 4px 14px rgba(14, 26, 54, 0.28);
  color: var(--gold-200);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--motion-medium) var(--ease-soft), transform var(--motion-medium) var(--ease-out), visibility 0s linear var(--motion-medium);
}
.music[hidden] { display: none; }
html.gate-open .music {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--motion-medium) var(--ease-soft), transform var(--motion-medium) var(--ease-out), visibility 0s;
}
html.gate-open .music:active { transform: scale(0.94); }
.music:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 3px; }

.music-ico { width: 22px; height: 22px; pointer-events: none; }
.music-ico--on { display: none; }
.music.is-on .music-ico--on { display: block; }
.music.is-on .music-ico--off { display: none; }

/* equaliser: each bar grows from its foot */
.music-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.55);
}
.music.is-on .music-bar { animation: music-eq 0.9s var(--ease-soft) infinite alternate; }
.music.is-on .music-bar--1 { animation-duration: 0.82s; }
.music.is-on .music-bar--2 { animation-duration: 0.64s; animation-delay: -0.3s; }
.music.is-on .music-bar--3 { animation-duration: 0.95s; animation-delay: -0.55s; }
@keyframes music-eq {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .music, html.gate-open .music { transition: none; transform: none; }
  .music.is-on .music-bar { animation: none; }
  .music-bar--1 { transform: scaleY(0.6); }
  .music-bar--2 { transform: scaleY(1); }
  .music-bar--3 { transform: scaleY(0.75); }
}
