/* ==========================================================================
   MARIGOLD MANTAPA
   A festive South Indian wedding in daylight. It opens on a carved gold
   doorway hung with marigolds, on maroon velvet at night; the guest walks
   through it into an ivory, sandalwood-warm world of painted places: the
   temple, the card, the mandap, the garden. Every picture is the owner's own
   (assets/art/, from ChatGPT, 2026-09-25). Phone first.
   ========================================================================== */

:root {
  --maroon-950: #22030a;
  --maroon-900: #3a0710;
  --maroon-800: #4d0a15;
  --maroon-700: #5f0f1b;
  --maroon-600: #7a1624;
  --maroon-500: #8f1d2c;

  --gold-900: #6b4f16;
  --gold-700: #85641a;   /* small text on ivory: about 5:1 */
  --gold-600: #a47c2c;
  --gold-500: #c9a24d;
  --gold-400: #d8b868;
  --gold-300: #e7cd8a;
  --gold-200: #f1dda6;
  --gold-100: #f8ebc8;

  --ivory: #fffaf1;
  --paper: #fdf6e8;
  --sandal: #f4e7cf;
  --sandal-2: #ecdcbc;
  --ink: #3d1f16;
  --ink-2: #6b4a33;
  --marigold: #f2a51f;

  --foil: linear-gradient(100deg, #8c6a20 0%, #c9a24d 18%, #f6e4ae 36%, #d4b15e 50%, #9c7728 66%, #e3c679 84%, #a8832f 100%);

  --f-script: "Parisienne", "Segoe Script", cursive;
  --f-caps: "Marcellus", "Times New Roman", serif;
  --f-serif: "EB Garamond", Georgia, serif;
  --f-prayer: "Tiro Kannada", "Noto Serif Kannada", "Nirmala UI", serif;

  --col: 480px;
  --W: min(100vw, var(--col));                 /* the phone column's width */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  --velvet: url("assets/art/velvet.webp");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--maroon-950); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--maroon-950);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;                   /* no sideways scroll, without breaking sticky */
  -webkit-tap-highlight-color: transparent;
}
html.is-locked, body.is-locked { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.script { font-family: var(--f-script); font-weight: 400; }
[hidden] { display: none !important; }
.is-off { display: none !important; }

/* A required value that config.js left blank. Loud on purpose. */
.is-missing {
  display: inline-block;
  font: 600 13px/1.3 system-ui, sans-serif !important;
  letter-spacing: 0 !important; text-transform: none !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  background: #c0262d !important;
  outline: 2px dashed #ffd0d0; outline-offset: 2px;
  border-radius: 6px; padding: 3px 8px;
  filter: none !important; white-space: normal !important;
}

/* a label in small capitals, never tiny */
.label {
  font-family: var(--f-caps);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-700);
  text-align: center;
  padding-left: .22em;
  text-wrap: balance;
}
.sec-title {
  margin-top: 8px;
  font-family: var(--f-caps);
  font-size: clamp(26px, 7.4vw, 32px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--maroon-700);
  text-align: center;
  line-height: 1.25;
  text-wrap: balance;
}
.sec-script {
  margin-top: 6px;
  font-size: clamp(28px, 8vw, 36px);
  color: var(--gold-700);
  text-align: center;
  line-height: 1.3;
}

/* the marigold rule: a gold line, a marigold, a gold line */
.rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; }
.rule i { display: block; height: 1px; width: min(70px, 18vw); background: linear-gradient(90deg, transparent, var(--gold-500)); }
.rule i:last-child { transform: scaleX(-1); }
.rule img { width: 30px; height: 30px; }
.rule--sm { margin-top: 14px; }
.rule--sm img { width: 22px; height: 22px; }

/* ---------- things arrive as they come into view ---------- */
.rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.rv.in { opacity: 1; transform: none; }
.sec-title.rv, .script.rv { filter: blur(6px); transition-property: opacity, transform, filter; }
.sec-title.rv.in, .script.rv.in { filter: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn:active { transform: scale(.975); }
.btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.btn--sm { min-height: 46px; padding: 10px 18px; font-size: 12.5px; }
.btn--maroon {
  background: linear-gradient(180deg, var(--maroon-500), var(--maroon-700));
  color: var(--gold-100);
  box-shadow: 0 10px 22px -12px rgba(58,7,16,.8), inset 0 1px 0 rgba(255,220,170,.18);
}
.btn--line { background: transparent; color: var(--maroon-700); border-color: var(--gold-500); }
.btn--gold {
  background: linear-gradient(180deg, #fbe7b0, #d8ae55 60%, #b8883a);
  color: var(--maroon-900);
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn--ghost { background: rgba(255,240,210,.04); color: var(--gold-200); border-color: rgba(231,205,138,.5); }

/* ==========================================================================
   OUTSIDE THE PHONE COLUMN (wide screens only)
   ========================================================================== */
.backdrop { display: none; }
@media (min-width: 481px) {
  .backdrop {
    display: block; position: fixed; inset: -60px; z-index: -1;
    background: var(--velvet) center / cover;
    filter: blur(20px) brightness(.55) saturate(1.1);
  }
  .invite { box-shadow: 0 0 0 1px rgba(201,162,77,.14), 0 30px 120px rgba(0,0,0,.65); }
}

/* ==========================================================================
   OPENING: the doorway
   The arch's size is worked out once (--aw) so the garlands, the names inside
   the arch and the button all stay in place on any phone, short or tall.
   ========================================================================== */
.opening {
  --aw: min(calc(var(--W) * .84), 41svh);        /* the arch's width */
  --at: max(9svh, calc(var(--W) * .2));          /* the arch's top: below the toran */
  position: fixed; inset: 0; z-index: 100;
  width: 100%; max-width: var(--col); margin-inline: auto;
  overflow: hidden;
  background: var(--maroon-900);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  transition: opacity 1s var(--ease-io);
}
body.is-open .opening { opacity: 0; pointer-events: none; }
.opening.is-gone { display: none; }

/* The arch picture's see-through opening, measured from the file itself
   (2026-09-25): 15%–85% of its width, from its peak at about 18% of its
   height down to the sill at 90%. The doors, the light and the rays all sit
   in this box, slightly larger than the opening so the gold frame, drawn on
   top, hides their edges. */
.opening {
  --ow: calc(var(--aw) * .70);
  --oh: calc(var(--aw) * 1.11);
  --ot: calc(var(--at) + var(--aw) * .25);
}
.door { position: absolute; inset: 0; transform-origin: 50% calc(var(--ot) + var(--oh) * .5); }
.door__velvet {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 40%, rgba(12,0,2,.78) 100%),
    var(--velvet) center / cover;
}
/* the world beyond the doorway: golden light, waiting behind the doors */
.door__beyond, .door__rays, .door__leaves {
  position: absolute; left: 50%; top: var(--ot);
  width: var(--ow); height: var(--oh);
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.door__beyond {
  background: radial-gradient(80% 70% at 50% 62%, #fff4d6, #ffd98f 38%, #f0a94a 70%, #b45a24);
}
/* rays of light that turn slowly, seen only as the doors open */
.door__rays {
  overflow: hidden; opacity: 0;
  transition: opacity 1s ease;
}
.door__rays::before {
  content: ""; position: absolute; left: 50%; top: 62%;
  width: 260%; aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,240,.6) 0deg 5deg, rgba(255,255,240,0) 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 58%);
  mask: radial-gradient(circle, #000 8%, transparent 58%);
  animation: rays-turn 18s linear infinite;
}
@keyframes rays-turn { to { rotate: 360deg; } }

/* Two carved, brass-studded temple doors. They swing inwards, away from the
   guest, hinged at the frame (script.js adds .is-entering on the tap). */
.door__leaves { overflow: hidden; perspective: 900px; }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(circle, #f1d489 0 1.5px, rgba(0,0,0,0) 2.1px) 7px 9px / 17px 17px,
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,.34)),
    linear-gradient(180deg, #7a3a1a, #5a2610 55%, #43190a);
  box-shadow:
    inset 0 0 0 4px #331105,
    inset 0 0 0 5px rgba(231,205,138,.75),
    inset 0 0 0 11px rgba(51,17,5,.55),
    inset 0 0 0 12px rgba(231,205,138,.4);
  backface-visibility: hidden;
}
.leaf--l { left: 0; transform-origin: 0 50%; }
.leaf--r { right: 0; transform-origin: 100% 50%; }
/* a carved panel on each door */
.leaf::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: 30%; bottom: 10%;
  border-radius: 50% 50% 6px 6px / 22% 22% 6px 6px;
  border: 1px solid rgba(231,205,138,.55);
  box-shadow: inset 0 0 18px rgba(0,0,0,.45), 0 0 0 4px rgba(51,17,5,.35);
}
/* a brass ring on each door, where they meet */
.leaf::after {
  content: ""; position: absolute; top: 60%; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid #e7c46c;
  box-shadow: 0 2px 3px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.4);
}
.leaf--l::after { right: 9%; }
.leaf--r::after { left: 9%; }
.door__arch {
  position: absolute; left: 50%; top: var(--at);
  width: var(--aw); height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}
/* a soft shadow on the wood behind the painted names, so they read over the studs */
.door__inside::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30,8,2,.62), rgba(30,8,2,.35) 60%, rgba(30,8,2,0));
}
/* the names, painted in gold across the closed doors */
.door__inside {
  position: absolute; left: 50%; top: calc(var(--ot) + var(--oh) * .24);
  width: calc(var(--ow) * .92);
  transform: translateX(-50%);
  text-align: center; color: var(--gold-100);
  text-shadow: 0 2px 6px rgba(20,4,0,.85), 0 0 18px rgba(20,4,0,.6);
  transition: opacity .35s ease;
}
.door__invocation {
  font-family: var(--f-prayer); font-size: 14px; color: var(--gold-300);
  letter-spacing: .04em; line-height: 1.4;
}
.door__names {
  margin-top: 8px;
  font-family: var(--f-script);
  font-size: clamp(32px, calc(var(--aw) * .14), 52px);
  line-height: 1.05;
  background: linear-gradient(180deg, #fff3cf, #f0cf7d 55%, #c99a3e);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(20,4,0,.9));
  text-shadow: none;
}
.door__names > span:not(.door__amp) { display: block; }
.door__amp { display: block; margin: 2px 0; font-size: .6em; color: var(--gold-400); }
.door__kicker {
  margin-top: 12px;
  font-family: var(--f-caps); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-300);
}
/* Garlands tied to the pillars: the strand's middle sits on the pillar's outer
   edge (the picture was trimmed to the strand, so its width is the strand's). */
.door__garland {
  position: absolute; top: calc(var(--at) + var(--aw) * .04);
  height: calc(var(--aw) * 1.18); width: auto; max-width: none;
  transform-origin: 50% 0;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.5));
  animation: garland-sway 6.5s ease-in-out infinite;
}
.door__garland--l { left: calc(50% - var(--aw) * .56); }
.door__garland--r { right: calc(50% - var(--aw) * .56); transform: scaleX(-1); animation-delay: -3.2s; }
@keyframes garland-sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
.door__toran {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  overflow: hidden; pointer-events: none;
}
.door__toran img {
  height: auto;
  width: 116%; max-width: none; margin: -1% 0 0 -8%;
  transform-origin: 50% 0;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.45));
  animation: toran-breeze 7s ease-in-out infinite;
}
@keyframes toran-breeze { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(.8deg) translateX(-2px); } }
.door__florals {
  position: absolute; left: -4%; right: -4%; bottom: calc(var(--aw) * -.02); z-index: 3;
  pointer-events: none;
}
.door__florals img { width: 100%; height: auto; max-width: none; filter: drop-shadow(0 -6px 14px rgba(0,0,0,.45)); }
.door__petals { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }

/* the diya's flame glows and flickers, wherever the flower cluster sits */
.diya-glow {
  position: absolute; left: 50%; top: 58%; z-index: 2;
  width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,120,.75), rgba(255,170,70,.25) 40%, rgba(255,170,70,0) 68%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: diya-flicker 2.8s ease-in-out infinite;
}
@keyframes diya-flicker {
  0%, 100% { opacity: .85; scale: 1; }
  30% { opacity: 1; scale: 1.06; }
  55% { opacity: .78; scale: .97; }
  80% { opacity: .95; scale: 1.03; }
}

.door__enter {
  position: absolute; left: 50%; z-index: 5;
  top: calc(var(--at) + var(--aw) * 1.5 + 16px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-family: var(--f-caps); font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--maroon-900);
  background: linear-gradient(180deg, #fbe7b0, #d8ae55);
  box-shadow: 0 0 0 6px rgba(244,223,163,.16), 0 14px 28px -10px rgba(0,0,0,.75);
  transition: opacity .3s ease;
}
.door__enter-ring {
  position: absolute; inset: -6px; border-radius: inherit;
  border: 1px solid rgba(244,223,163,.7);
  animation: enter-ring 2.4s ease-out infinite;
}
@keyframes enter-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.28, 1.55); } }
.door__enter:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 6px; }

.door__light {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 45% at 50% 50%, #fffaf0, rgba(255,236,200,.95) 45%, rgba(255,226,180,.85));
}

/* Walking through (script.js adds .is-entering on the tap). Slowed on
   2026-09-25 at the owner's request: the first version (all over in under 2s)
   was "kinda fast"; guests should feel the doors open.
   0.0s  the bells ring, the garlands swing, the painted names fade
   0.4s  the doors unlatch and light slips through; they rest a breath, then
         swing slowly open inwards onto turning rays (open at about 3.4s)
   2.5s  the doorway grows past the guest
   3.3s  light floods the screen; the invitation is behind it at 4.1s */
.opening.is-entering .door__inside, .opening.is-entering .door__enter { opacity: 0; }
.opening.is-entering .door__garland { animation: garland-swing 1.8s var(--ease-out); }
.opening.is-entering .door__garland--r { animation-delay: .08s; }
@keyframes garland-swing { 0% { rotate: 0; } 25% { rotate: 6deg; } 55% { rotate: -4deg; } 80% { rotate: 2deg; } 100% { rotate: 0; } }
.opening.is-entering .leaf--l { animation: leaf-open-l 3s .4s both; }
.opening.is-entering .leaf--r { animation: leaf-open-r 3s .5s both; }
@keyframes leaf-open-l {
  0%   { transform: rotateY(0); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  15%  { transform: rotateY(14deg); animation-timing-function: linear; }
  25%  { transform: rotateY(15deg); animation-timing-function: cubic-bezier(.42, 0, .35, 1); }
  100% { transform: rotateY(104deg); }
}
@keyframes leaf-open-r {
  0%   { transform: rotateY(0); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  15%  { transform: rotateY(-14deg); animation-timing-function: linear; }
  25%  { transform: rotateY(-15deg); animation-timing-function: cubic-bezier(.42, 0, .35, 1); }
  100% { transform: rotateY(-104deg); }
}
.opening.is-entering .door__rays { opacity: 1; transition-duration: 1.6s; transition-delay: .7s; }
.opening.is-entering .door {
  animation: walk-through 1.9s 2.5s var(--ease-io) forwards;
}
@keyframes walk-through { to { transform: scale(3.8); } }
.opening.is-entering .door__light { animation: flood 1.1s 3.3s ease-in forwards; }
@keyframes flood { to { opacity: 1; } }

/* ==========================================================================
   SOUND · LANGUAGE · TOAST
   ========================================================================== */
.sound {
  position: fixed; z-index: 110;
  top: calc(var(--safe-t) + 12px);
  right: calc(max(0px, (100vw - var(--col)) / 2) + 12px);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(231,205,138,.55);
  background: rgba(40,4,10,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--gold-200);
  cursor: pointer;
  transition: opacity .5s ease, transform .2s ease;
}
.sound:active { transform: scale(.92); }
.sound svg { width: 21px; height: 21px; fill: currentColor; grid-area: 1 / 1; transition: opacity .2s ease; }
.sound__off { opacity: 0; }
.sound[aria-pressed="false"] .sound__on { opacity: 0; }
.sound[aria-pressed="false"] .sound__off { opacity: 1; }
.sound.is-quiet { opacity: 0; pointer-events: none; }
.sound__wave { animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 50% { opacity: .35; } }

.lang {
  position: fixed; z-index: 112;
  top: calc(var(--safe-t) + 12px);
  left: calc(max(0px, (100vw - var(--col)) / 2) + 12px);
  transition: opacity .35s ease, transform .35s var(--ease-out);
}
.lang.is-away { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 15px 0 12px;
  border-radius: 999px; border: 1px solid rgba(231,205,138,.55);
  background: rgba(40,4,10,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--gold-100); cursor: pointer;
  font-family: "EB Garamond", "Tiro Kannada", "Tiro Devanagari Hindi", Georgia, serif;
  font-size: 16px; font-weight: 600; line-height: 1;
}
.lang__btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lang__btn:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 3px; }
.lang.is-compact .lang__now { display: none; }
.lang.is-compact .lang__btn { width: 44px; padding: 0; justify-content: center; }
.lang__menu {
  position: absolute; top: 52px; left: 0; width: max-content; min-width: 214px;
  padding: 6px; border-radius: 16px;
  background: rgba(34,3,10,.97); border: 1px solid rgba(201,162,77,.45);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.75);
}
.lang__note { padding: 8px 12px 6px; font-family: system-ui, sans-serif; font-size: 12.5px; line-height: 1.35; color: var(--gold-300); }
.lang__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  color: var(--gold-100);
  font-family: "EB Garamond", "Tiro Kannada", "Tiro Devanagari Hindi", Georgia, serif;
  font-size: 18px; font-weight: 600;
}
.lang__item:hover, .lang__item:focus-visible { background: rgba(201,162,77,.1); outline: none; }
.lang__item[aria-checked="true"] { background: rgba(201,162,77,.18); color: var(--gold-200); }
.lang__item[aria-checked="true"]::after { content: "\2713"; color: var(--gold-300); font-family: system-ui, sans-serif; }

.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(var(--safe-b) + 64px);
  width: max-content; max-width: min(88vw, 400px);
  padding: 13px 20px; border-radius: 16px;
  background: rgba(34,3,10,.94); color: var(--gold-100);
  border: 1px solid rgba(201,162,77,.5);
  font-size: 17px; line-height: 1.4; text-align: center;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.noscript {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 30px; text-align: center; font-size: 20px; color: var(--gold-100);
  background: radial-gradient(80% 60% at 50% 40%, #5f0f1b, #22030a);
}
.noscript img { width: 120px; height: auto; margin-bottom: 10px; }

/* ==========================================================================
   THE INVITATION
   ========================================================================== */
.invite {
  position: relative;
  max-width: var(--col); margin: 0 auto;
  background: var(--paper);
  visibility: hidden;
}
.invite.is-visible { visibility: visible; }
.petals {
  position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30;
  width: var(--W); height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}
section, .hero, .foot { position: relative; }

/* ---------- 1 · HERO: the same doorway's flowers, in daylight ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  overflow: clip;
  background:
    var(--grain),
    radial-gradient(90% 60% at 50% 42%, #fffdf7 0%, var(--paper) 45%, var(--sandal) 100%);
  text-align: center;
}
.hero__toran { position: absolute; left: 0; right: 0; top: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.hero__toran img {
  height: auto;
  width: 116%; max-width: none; margin: -1% 0 0 -8%;
  transform-origin: 50% 0;
  filter: drop-shadow(0 6px 8px rgba(90,40,10,.25));
  animation: toran-breeze 7s ease-in-out infinite;
}
/* the garlands hang at the very edges, half off the page, clear of the words */
.hero__garland {
  position: absolute; z-index: 2; top: calc(var(--W) * .12);
  height: min(58svh, calc(var(--W) * 1.25)); width: auto; max-width: none;
  transform-origin: 50% 0;
  translate: 0 calc(var(--x, 0) * -70px);
  filter: drop-shadow(0 10px 10px rgba(90,40,10,.25));
  animation: garland-sway 7s ease-in-out infinite;
  pointer-events: none;
}
.hero__garland--l { left: calc(var(--W) * -.07); }
.hero__garland--r { right: calc(var(--W) * -.07); transform: scaleX(-1); animation-delay: -3.5s; }
.hero__content {
  position: relative; z-index: 4;
  width: 100%; max-width: 300px;
  padding: calc(var(--W) * .3) 4px 0;
}
.hero__stage { position: relative; margin-top: 10px; }
.hero__stage .hero__names { position: relative; z-index: 1; margin-top: 0; }
/* the lotus mandala behind the names: it draws itself as the doorway gives
   way, then turns, very slowly, for as long as the page is open */
.mandala {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: min(125%, 390px); aspect-ratio: 1; height: auto;
  translate: -50% -50%;
  opacity: .5;
  pointer-events: none;
  animation: mandala-turn 180s linear infinite;
}
@keyframes mandala-turn { to { rotate: 360deg; } }
.md { fill: none; stroke: var(--gold-500); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; }
.md-dot { fill: var(--gold-500); opacity: 0; }
body.is-open .md { stroke-dashoffset: 0; transition: stroke-dashoffset 3.4s var(--ease-out) .5s; }
body.is-open .md-dot { opacity: 1; transition: opacity 1.2s ease 2.4s; }
/* each name appears as if written, left to right */
.hero__name { clip-path: inset(-25% 100% -25% -8%); transition: clip-path 1.5s var(--ease-io); }
body.is-open .hero__name { clip-path: inset(-25% -8% -25% -8%); }
body.is-open .hero__name:first-child { transition-delay: .65s; }
body.is-open .hero__name:last-child { transition-delay: 1.35s; }
.hero__invocation { font-family: var(--f-prayer); font-size: 17px; color: var(--gold-700); line-height: 1.5; }
.hero__eyebrow {
  margin-top: 16px;
  font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-700); text-wrap: balance;
}
.hero__names { margin-top: 12px; line-height: 1; }
.hero__name {
  display: block;
  font-size: clamp(56px, 17vw, 76px); line-height: 1.12;
  color: var(--maroon-700);
  padding: 0 .2em;
  white-space: nowrap;
}
.hero__amp { display: block; margin: 2px 0 4px; font-family: var(--f-script); font-size: 34px; color: var(--gold-600); }
.hero__tagline { margin-top: 14px; font-style: italic; font-size: 19px; color: var(--ink-2); text-wrap: balance; }
.hero__date {
  margin-top: 12px;
  font-family: var(--f-caps); font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--maroon-700); text-wrap: balance;
}
.hero__city { margin-top: 4px; font-size: 18px; color: var(--ink-2); }
.hero__florals {
  position: relative; z-index: 3;
  width: 108%; margin: auto -4% -1%;
  padding-top: 18px;
  translate: 0 calc(var(--x, 0) * 36px);
  pointer-events: none;
}
.hero__florals img { width: 100%; height: auto; max-width: none; filter: drop-shadow(0 -4px 12px rgba(90,40,10,.2)); }

/* the hero's words arrive one after another as the doorway gives way */
.step, .hero__names {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}
body.is-open .step, body.is-open .hero__names { opacity: 1; transform: none; }
body.is-open .hero__invocation { transition-delay: .25s; }
body.is-open .hero__eyebrow { transition-delay: .4s; }
body.is-open .hero__names { transition-delay: .55s; }
body.is-open .hero__content .rule { transition-delay: .8s; }
body.is-open .hero__tagline { transition-delay: .9s; }
body.is-open .hero__date { transition-delay: 1s; }
body.is-open .hero__city { transition-delay: 1.1s; }

/* ---------- 2 · PRAYER, before the temple ---------- */
.blessing {
  overflow: clip;           /* the flat rangoli's near edge is wider than the screen */
  padding: 40px 22px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--sandal), var(--paper) 60%);
}
/* edge to edge on the phone: the painting has its own soft margins */
.blessing__temple { position: relative; margin: 0 -22px; }
.blessing__temple::before {
  content: ""; position: absolute; inset: 8% 10% 0; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,140,.55), rgba(255,214,140,0) 68%);
}
.blessing__temple img { position: relative; z-index: 1; width: 100%; height: auto; } /* without height: auto the 507px height attribute squashed it sideways */

/* the rangoli, laid flat on the ground before the temple steps */
.kolam-wrap {
  position: relative; z-index: 2;
  width: 76%; max-width: 360px; margin: -24% auto -20%;
  perspective: 700px;
}
.kolam {
  width: 100%; height: auto; overflow: visible;
  transform: rotateX(63deg); transform-origin: 50% 35%;
  filter: drop-shadow(0 2px 1px rgba(90,40,10,.25));
}
.k {
  stroke-width: 2.4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  transition: stroke-dashoffset 1.3s var(--ease-out), fill-opacity .9s ease;
  transition-delay: calc(var(--i) * .26s + .2s), calc(var(--i) * .26s + 1s);
}
.kolam-wrap.in .k { stroke-dashoffset: 0; fill-opacity: .9; }
.k-teal { fill: #1f8a86; stroke: #146864; }
.k-white { fill: #fffaf1; stroke: #d9c7a4; }
.k-rose { fill: #d9466a; stroke: #9e2446; }
.k-yellow { fill: #f7cf52; stroke: #c99a1e; }
.k-green { fill: #4f8a3a; stroke: #2f5f24; }
.k-marigold { fill: #f2a51f; stroke: #c26d10; }
.k-maroon { fill: none; stroke: #8f1d2c; stroke-width: 3.2; }
.k-dot { fill: #fffaf1; stroke: rgba(90,40,10,.35); stroke-width: .6; opacity: 0; transition: opacity .6s ease calc(var(--i) * .26s + .9s); }
.kolam-wrap.in .k-dot { opacity: 1; }
.blessing__title { margin-top: 18px; font-family: var(--f-prayer); font-size: 19px; color: var(--gold-700); }
.blessing__shloka { margin-top: 14px; }
.shloka-line {
  display: block;
  font-family: var(--f-prayer);
  font-size: clamp(22px, 6.4vw, 27px); line-height: 1.7;
  color: var(--maroon-700);
}
.blessing__meaning {
  max-width: 30ch; margin: 18px auto 0;
  font-style: italic; font-size: 18px; line-height: 1.65; color: var(--ink-2);
}

/* ---------- 3 · THE FORMAL INVITATION ---------- */
.card-sec { padding: 26px 18px 72px; background: var(--paper); }
.card {
  position: relative;
  max-width: 420px; margin: 0 auto;
  padding: clamp(64px, 18vw, 80px) clamp(24px, 7vw, 36px);
  border-radius: 16px;
  background: var(--grain), linear-gradient(180deg, #fffdf8, #fcf3e2);
  border: 1px solid rgba(190,140,60,.45);
  box-shadow:
    inset 0 0 0 8px #fffaf1,
    inset 0 0 0 9px rgba(201,160,77,.6),
    0 30px 50px -32px rgba(90,40,10,.55);
  text-align: center;
  scale: calc(.95 + var(--e, 1) * .05);
}
.card__corner {
  position: absolute; z-index: 2;
  width: clamp(92px, 30%, 128px); height: auto;
  pointer-events: none;
}
.card__corner--tl { left: -10px; top: -10px; }
.card__corner--tr { right: -10px; top: -10px; transform: scaleX(-1); }
.card__corner--bl { left: -10px; bottom: -10px; transform: scaleY(-1); }
.card__corner--br { right: -10px; bottom: -10px; transform: scale(-1, -1); }
.card__body { position: relative; z-index: 1; }
.card__small { font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); }
.card__elders { margin-top: 6px; font-size: 18px; color: var(--ink-2); text-wrap: balance; }
.card__hosts {
  margin-top: 22px;
  font-family: var(--f-caps); font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--maroon-700); line-height: 1.5; text-wrap: balance;
}
.card__line { margin-top: 10px; font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.card__couple { margin-top: 16px; }
.card__name { display: block; font-size: clamp(40px, 12vw, 52px); line-height: 1.15; color: var(--maroon-700); }
.card__with { display: block; margin: 4px 0; font-style: italic; font-size: 19px; color: var(--gold-700); }
.card__of { margin-top: 8px; font-style: italic; font-size: 17.5px; color: var(--ink-2); text-wrap: balance; }
.card__when {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  margin: 26px auto 0; max-width: 320px;
}
.card__day, .card__time {
  padding: 8px 0;
  border-block: 1px solid rgba(201,162,77,.55);
  font-family: var(--f-caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon-700);
}
.card__date { display: grid; justify-items: center; line-height: 1.1; }
.card__date span { font-family: var(--f-caps); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); }
.card__date b { font-family: var(--f-caps); font-weight: 400; font-size: 46px; color: var(--maroon-700); }
.card__muhurtham { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.card__venue {
  margin-top: 16px;
  font-family: var(--f-caps); font-size: 16px; letter-spacing: .06em; color: var(--maroon-700);
  text-wrap: balance;
}
.card__address { margin-top: 2px; font-size: 17px; color: var(--ink-2); }
.card__close { margin-top: 22px; font-style: italic; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }

/* ---------- 4 · COUNTDOWN on four marigolds, on velvet ---------- */
.count-sec {
  padding: 76px 18px 70px;
  text-align: center;
  color: var(--gold-100);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(160,34,52,.35), rgba(160,34,52,0) 70%),
    linear-gradient(rgba(34,3,10,.55), rgba(34,3,10,.72)),
    var(--velvet) center / 560px auto;
}
.count-sec .label { color: var(--gold-300); }
.count-sec__title {
  margin-top: 4px;
  font-size: clamp(40px, 11.6vw, 52px); line-height: 1.2;
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: 0 .3em;
}
.count {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 2.2vw, 12px);
  max-width: 400px; margin: 26px auto 0;
}
.count__unit { min-width: 0; }
.mari { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.mari img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.mari__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf0, #f5e3bd);
  box-shadow: 0 0 0 2px rgba(201,162,77,.85), 0 4px 10px rgba(90,20,10,.35);
  font-family: var(--f-caps); font-weight: 400;
  font-size: clamp(18px, 5.4vw, 24px); line-height: 1;
  color: var(--maroon-800);
  font-variant-numeric: tabular-nums;
}
.mari.is-tick img { animation: mari-turn .8s var(--ease-out); }
@keyframes mari-turn { from { rotate: -14deg; scale: .96; } to { rotate: 0deg; scale: 1; } }
.count__label {
  display: block; margin-top: 8px;
  font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-200);
}
.count-sec__when { margin-top: 22px; font-style: italic; font-size: 19px; color: var(--gold-100); }
.count-sec__petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.count-sec__thanks {
  margin: 18px auto 0; max-width: 16em;
  font-size: clamp(30px, 8.4vw, 38px); line-height: 1.25; color: var(--gold-200);
  text-wrap: balance;
}
.count-sec__thanks[hidden] { display: none; }

/* ---------- toran bands at the top of a section ---------- */
.band-toran { overflow: hidden; margin: 0 -18px 22px; pointer-events: none; }
.note-sec .band-toran { margin-inline: -24px; }
.band-toran img {
  height: auto;
  width: 116%; max-width: none; margin: -1% 0 0 -8%;
  transform-origin: 50% 0;
  filter: drop-shadow(0 6px 8px rgba(90,40,10,.25));
  animation: toran-breeze 7s ease-in-out infinite;
}
.band-toran--dark img { filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }

/* ---------- golden sparks rising on the velvet sections (script.js) ---------- */
.sparks { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sparks i {
  position: absolute; left: var(--x); bottom: -12px;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff6d0, #f2b54a 45%, rgba(242,181,74,0) 72%);
  box-shadow: 0 0 8px 2px rgba(255,200,90,.4);
  opacity: 0;
  animation: spark-rise var(--t) linear var(--dl) infinite;
}
@keyframes spark-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .95; }
  75% { opacity: .6; }
  100% { transform: translate(var(--dx), -460px); opacity: 0; }
}
/* the words stay above the sparks */
.count-sec > :not(.sparks):not(canvas),
.note-sec > :not(.sparks),
.rsvp-sec > :not(.sparks):not(.bells) { position: relative; z-index: 1; }

/* ---------- 5 · THE CELEBRATIONS ---------- */
.events-sec { padding: 0 18px 60px; background: var(--grain), var(--paper); }
.timeline {
  position: relative;
  list-style: none; margin: 34px 0 0; padding: 0 0 0 56px;
}
/* A thread of marigold beads that strings itself down the timeline as the
   guest scrolls (script.js sets --t from 0 to 1). The faint dots are the
   beads still to come. */
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 17px; top: 22px; width: 10px;
}
.timeline::before {
  bottom: 22px;
  background: radial-gradient(circle, rgba(201,162,77,.35) 0 2px, rgba(201,162,77,0) 2.6px) 50% 0 / 10px 12px repeat-y;
}
.timeline::after {
  height: calc(var(--t, 0) * (100% - 44px));
  background:
    radial-gradient(circle at 50% 45%, #ffd36a 0 1.6px, #f2a51f 2.2px, #d9771a 4.4px, rgba(217,119,26,0) 5px) 50% 0 / 10px 12px repeat-y;
  filter: drop-shadow(0 1px 1px rgba(90,40,10,.35));
}
.ev { position: relative; margin: 0 0 22px; }
.ev__node {
  position: absolute; left: -56px; top: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory); color: var(--gold-700);
  border: 1.5px solid rgba(174,136,52,.6);
  transition: background .6s ease, color .6s ease, box-shadow .6s ease, transform .6s var(--ease-out);
}
.ev__node svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ev__node svg .fill { fill: currentColor; stroke: none; }
.ev.is-lit .ev__node {
  background: radial-gradient(circle at 40% 35%, #ffc14d, var(--marigold) 60%, #d9771a);
  color: var(--maroon-900); border-color: var(--gold-500);
  box-shadow: 0 0 0 6px rgba(242,165,31,.18), 0 8px 18px -8px rgba(90,40,10,.6);
  transform: scale(1.06);
}
.ev__card {
  position: relative; overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8, #fbf1de);
  border: 1px solid rgba(174,136,52,.32);
  box-shadow: 0 22px 40px -28px rgba(90,40,10,.55);
}
.ev__card::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold-300), var(--marigold));
}
.ev__day { font-family: var(--f-caps); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); }
.ev__name { margin-top: 2px; font-family: var(--f-caps); font-size: 24px; letter-spacing: .06em; color: var(--maroon-700); }
.ev__subtitle { margin-top: 2px; font-style: italic; font-size: 17px; color: var(--ink-2); }
.ev__meta { display: grid; gap: 8px; margin-top: 12px; }
.ev__row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.ev__row svg { width: 19px; height: 19px; margin-top: 3px; fill: none; stroke: var(--gold-700); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ev__row p { font-size: 17.5px; line-height: 1.45; color: var(--ink); }
.ev__row small { display: block; font-size: 15.5px; color: var(--ink-2); }
.swatches { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.swatches i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ev__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ev__actions .btn { padding: 10px 10px; font-size: 12px; letter-spacing: .08em; min-height: 46px; }
.events-sec__all { margin-top: 12px; text-align: center; }
.events-sec__all .btn { width: 100%; max-width: 360px; }

/* ---------- 6 · VENUES, each with its own painting ---------- */
.venues-sec { padding: 20px 18px 70px; background: linear-gradient(180deg, var(--paper), var(--sandal)); }
.venues { display: grid; gap: 26px; margin-top: 28px; }
.venue {
  overflow: hidden;
  max-width: 420px; width: 100%; margin: 0 auto;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: var(--grain), linear-gradient(180deg, #fffdf8, #fbf1de);
  border: 1px solid rgba(174,136,52,.32);
  box-shadow: 0 26px 44px -30px rgba(90,40,10,.6);
  text-align: center;
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.venue.in { opacity: 1; transform: none; }
.venue__for { font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700); }
.venue__art { margin: 8px -8px 6px; }
.venue__art img { width: 100%; height: auto; }
.venue.in .venue__art img { animation: venue-settle 1.8s var(--ease-out) both; }
@keyframes venue-settle { from { scale: 1.06; translate: 0 10px; } to { scale: 1; translate: 0 0; } }
.venue__name { font-family: var(--f-caps); font-size: 21px; letter-spacing: .04em; color: var(--maroon-700); text-wrap: balance; }
.venue__address { margin-top: 2px; font-size: 17.5px; color: var(--ink); }
.venue__landmark { margin-top: 2px; font-style: italic; font-size: 16.5px; color: var(--ink-2); text-wrap: balance; }
.venue__actions { display: grid; gap: 10px; margin-top: 16px; }
.venue__actions .btn { width: 100%; }

/* ---------- 7 · A NOTE FROM THE COUPLE, on velvet ---------- */
.note-sec {
  padding: 0 24px 70px;
  text-align: center;
  color: var(--gold-100);
  background:
    linear-gradient(rgba(34,3,10,.5), rgba(34,3,10,.68)),
    var(--velvet) center / 560px auto;
}
.note-sec .label { color: var(--gold-300); }
.note { max-width: 32ch; margin: 18px auto 0; }
.note p { font-style: italic; font-size: clamp(19px, 5.4vw, 21px); line-height: 1.7; color: var(--gold-100); }
.note p + p { margin-top: 14px; }
.note__signed { margin-top: 18px; font-size: clamp(34px, 10vw, 44px); color: var(--gold-300); }

/* ---------- 8 · GOOD TO KNOW ---------- */
.know-sec { padding: 64px 18px 64px; background: var(--paper); }
.know { display: grid; gap: 14px; max-width: 420px; margin: 28px auto 0; }
.know__item {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #fbf1de);
  border: 1px solid rgba(174,136,52,.3);
}
.know__icon {
  grid-row: span 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--maroon-500), var(--maroon-700));
  color: var(--gold-200);
}
.know__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.know__title { font-family: var(--f-caps); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon-700); }
.know__text { margin-top: 2px; font-size: 17.5px; line-height: 1.5; color: var(--ink-2); }
.know__copy {
  justify-self: start; margin-top: 4px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font-size: 18px; color: var(--maroon-700);
  text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px;
}

/* ---------- 9 · RSVP & SHARE, on velvet ---------- */
/* two brass bells hanging at the top of the section: they sway, and ring
   when tapped (script.js, FLOURISHES) */
.bells { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 0; }
.bell {
  position: absolute; top: 0;
  width: 42px; height: 105px;
  transform-origin: 50% 0;
  cursor: pointer;
  animation: bell-sway 4.6s ease-in-out infinite;
}
.bell--l { left: 9%; }
.bell--r { right: 9%; animation-delay: -2.3s; }
.bell svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 8px rgba(0,0,0,.45)); }
@keyframes bell-sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.bell.is-ringing { animation: bell-ring 1.5s var(--ease-out), bell-sway 4.6s ease-in-out 1.5s infinite; }
@keyframes bell-ring {
  0% { rotate: 0deg; } 12% { rotate: 17deg; } 30% { rotate: -13deg; }
  48% { rotate: 8deg; } 66% { rotate: -5deg; } 84% { rotate: 2deg; } 100% { rotate: 0deg; }
}
.rsvp-sec {
  padding: 124px 22px 70px;
  text-align: center;
  color: var(--gold-100);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(160,34,52,.3), rgba(160,34,52,0) 70%),
    linear-gradient(rgba(34,3,10,.55), rgba(34,3,10,.72)),
    var(--velvet) center / 560px auto;
}
.rsvp-sec .label { color: var(--gold-300); }
.rsvp-sec__title {
  margin-top: 4px;
  font-size: clamp(40px, 11.6vw, 52px); line-height: 1.2;
  background: var(--foil); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: 0 .3em;
}
.rsvp-sec__by { margin-top: 8px; font-style: italic; font-size: 18.5px; color: var(--gold-100); }
.rsvp-sec__actions { display: grid; gap: 12px; max-width: 360px; margin: 26px auto 0; }
.share { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(201,162,77,.3); }
.share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------- 10 · FOOTER ---------- */
.foot {
  padding: 60px 20px 0;
  overflow: clip;
  text-align: center;
  background: var(--grain), radial-gradient(90% 60% at 50% 30%, #fffdf7, var(--sandal));
}
.foot__names { font-size: clamp(40px, 12vw, 52px); line-height: 1.2; color: var(--maroon-700); }
.foot__amp { font-size: .7em; color: var(--gold-600); }
.foot__date { margin-top: 6px; font-family: var(--f-caps); font-size: 14px; letter-spacing: .18em; color: var(--gold-700); }
.foot__small { margin-top: 20px; font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700); }
.foot__from { margin-top: 4px; font-style: italic; font-size: 19px; color: var(--ink-2); }
.foot__florals { position: relative; width: 112%; margin: 18px -6% 0; }
.foot__florals img { width: 100%; height: auto; max-width: none; }

/* ==========================================================================
   MOMENTS: the wedding days, afterwards, anniversaries (script.js, MOMENTS)
   ========================================================================== */
.ev__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(180deg, var(--maroon-500), var(--maroon-700));
  color: var(--gold-100);
  font-family: var(--f-caps); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
}
.ev--now .ev__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-200);
  animation: now-pulse 1.6s ease-out infinite;
}
@keyframes now-pulse {
  0% { box-shadow: 0 0 0 0 rgba(241,221,166,.75); }
  100% { box-shadow: 0 0 0 10px rgba(241,221,166,0); }
}
.ev--now .ev__card, .ev--today .ev__card {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(242,165,31,.24), 0 22px 40px -24px rgba(90,40,10,.6);
}
.ev--now .ev__actions .btn, .ev--today .ev__actions .btn { grid-column: 1 / -1; }
.ev__actions .btn--big { min-height: 54px; font-size: 13.5px; }
.ev--past .ev__card { opacity: .72; }

.today {
  position: fixed; z-index: 60; left: 12px; right: 12px; max-width: 460px; margin: 0 auto;
  bottom: calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px 10px 16px; border-radius: 18px;
  background: rgba(58,7,16,.94); border: 1px solid rgba(201,162,77,.45);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.75);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--gold-100);
  animation: today-in .6s var(--ease-out) both;
}
.today__text { flex: 1; min-width: 0; font-family: var(--f-caps); font-size: 13px; letter-spacing: .05em; line-height: 1.35; }
.today__go { flex: none; min-height: 48px; }
.today__close {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--gold-300); font-size: 24px; line-height: 1; cursor: pointer;
}
.today__close:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
body:has(.elz-demo-mark) .today { bottom: calc(50px + var(--safe-b)); }
@keyframes today-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   LANGUAGES
   script.js puts ui-en / ui-kn / ui-hi and prayer-latin / prayer-kn /
   prayer-deva on <html>. The Indian faces only download when their script is
   on screen, so an English invitation never fetches them.
   ========================================================================== */
html.prayer-kn { --f-prayer: "Tiro Kannada", "Noto Serif Kannada", "Nirmala UI", serif; }
html.prayer-deva { --f-prayer: "Tiro Devanagari Hindi", "Noto Serif Devanagari", "Nirmala UI", serif; }
/* English only: the prayer in English letters, set like an inscription */
html.prayer-latin .door__invocation,
html.prayer-latin .hero__invocation,
html.prayer-latin .blessing__title {
  font-family: var(--f-caps); font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
}
html.prayer-latin .shloka-line { font-family: var(--f-serif); font-style: italic; font-size: clamp(23px, 6.8vw, 28px); }

html.ui-kn {
  --f-serif: "Noto Serif Kannada", "EB Garamond", Georgia, serif;
  --f-caps: "Noto Serif Kannada", "Marcellus", serif;
  --f-script: "Tiro Kannada", "Noto Serif Kannada", serif;
}
html.ui-hi {
  --f-serif: "Noto Serif Devanagari", "EB Garamond", Georgia, serif;
  --f-caps: "Noto Serif Devanagari", "Marcellus", serif;
  --f-script: "Amita", "Tiro Devanagari Hindi", serif;
}
.indic body { line-height: 1.7; }
/* no wide letter-spacing or capitals: they break up Indian letters */
.indic .label, .indic .sec-title, .indic .hero__eyebrow, .indic .hero__date, .indic .door__kicker,
.indic .door__enter, .indic .card__small, .indic .card__hosts, .indic .card__day, .indic .card__time,
.indic .card__date span, .indic .card__venue, .indic .count__label, .indic .ev__day, .indic .ev__name,
.indic .venue__for, .indic .venue__name, .indic .know__title, .indic .btn, .indic .foot__small,
.indic .foot__date, .indic .today__text, .indic .ev__badge {
  letter-spacing: 0; text-transform: none;
}
.indic .label { font-size: 15px; font-weight: 500; }
.indic .door__enter { font-size: 16px; }
.indic .sec-title { font-size: clamp(24px, 7vw, 29px); font-weight: 600; }
.indic .btn { font-size: 14.5px; font-weight: 600; }
.indic .ev__actions .btn { font-size: 14px; }
.indic .count__label { font-size: 14px; }
.indic .hero__eyebrow { font-size: 15px; }
.indic .hero__tagline, .indic .card__line, .indic .card__of, .indic .card__close, .indic .card__with,
.indic .count-sec__when, .indic .rsvp-sec__by, .indic .foot__from, .indic .note p, .indic .blessing__meaning,
.indic .ev__subtitle, .indic .venue__landmark { font-style: normal; }
.indic .card__hosts { font-size: clamp(16px, 4.6vw, 18px); }
.indic .ev__name { font-size: 22px; }
.indic .venue__name { font-size: 20px; }
/* Tiro Kannada and Amita sit larger than Parisienne */
.indic .hero__name { font-size: clamp(44px, 13vw, 62px); line-height: 1.35; }
.indic .door__names { font-size: clamp(30px, calc(var(--aw) * .12), 44px); line-height: 1.3; }
.indic .card__name { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.4; }
.indic .count-sec__title, .indic .rsvp-sec__title { font-size: clamp(32px, 9.6vw, 42px); line-height: 1.4; }
.indic .sec-script { font-size: clamp(22px, 6.4vw, 27px); line-height: 1.5; }
.indic .note__signed, .indic .foot__names { font-size: clamp(30px, 9vw, 38px); line-height: 1.4; }
.indic .hero__amp, .indic .door__amp, .indic .foot__amp { font-family: var(--f-script); }

/* ==========================================================================
   Reduced motion: nothing swings, grows or falls. Everything is shown.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .venue, .step, .hero__names { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__garland, .hero__florals { translate: none !important; }
  .card { scale: 1 !important; }
  /* the drawings are shown finished, not drawn */
  .k { stroke-dashoffset: 0 !important; fill-opacity: .9 !important; }
  .md { stroke-dashoffset: 0 !important; }
  .k-dot, .md-dot { opacity: 1 !important; }
  .hero__name { clip-path: none !important; }
}
