/* ═══════════════════════════════════════════════════════════
   Samyuktha & Kamalesh — editorial temple-wedding design system
   Ivory paper · oxblood · antique gold hairlines
   ═══════════════════════════════════════════════════════════ */

:root {
  /* colour */
  /* core palette */
  --maroon: #5A0F1E;          /* royal maroon */
  --burgundy: #3A0A14;        /* deep burgundy */
  --gold-antique: #C9A24B;
  --gold-champagne: #E8D5A3;
  --gold-rose: #D9A58B;
  --cream: #FBF4E6;           /* ivory cream */
  --sand: #F1E2C6;            /* warm sand */
  /* jewel accents — use sparingly */
  --fuchsia: #C2185B;
  --teal: #0F8B8D;
  --saffron: #F4A300;
  --emerald: #0B6B4F;
  --lavender: #B9A3D9;
  /* gold foil */
  --gold-grad: linear-gradient(135deg, #8C6B1F 0%, #E8D5A3 50%, #B88A2E 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(140, 107, 31, .55), rgba(232, 213, 163, .9), rgba(184, 138, 46, .55));
  --gold-shimmer: linear-gradient(110deg, transparent 30%, rgba(255, 247, 220, .75) 48%, transparent 66%);

  /* semantic aliases used across the stylesheet */
  --ivory: var(--cream);
  --ivory-2: var(--sand);
  --ivory-3: #E9D6B4;
  --ox-0: #24060C;
  --ox-1: var(--burgundy);
  --ox-2: var(--maroon);
  --wine: #7A1A2C;
  --wine-2: #9A2438;
  --gold: var(--gold-antique);
  --gold-ink: #8C6B1F;        /* gold dark enough for small text on cream */
  --gold-2: var(--gold-antique);
  --gold-hi: var(--gold-champagne);
  --ink: #2a1810;
  --ink-2: #6a5345;
  --ink-3: #9a8574;
  --on-dark: #f4e9d6;
  --on-dark-2: #c9b293;
  --line: rgba(201, 162, 75, .45);
  --line-dark: rgba(232, 213, 163, .24);
  --focus: #E0B65A;

  /* type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --ta-serif: 'Noto Serif Tamil', 'Nirmala UI', serif;
  --ta-sans: 'Hind Madurai', 'Nirmala UI', sans-serif;

  --fs-body: clamp(1.08rem, 1rem + .3vw, 1.22rem);
  --fs-lead: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);

  /* space */
  --gutter: 16px;
  --sec-y: clamp(5rem, 3rem + 7vw, 9.5rem);
  --arch: 999px 999px 28px 28px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-card: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 2px 4px rgba(58, 10, 20, .06), 0 12px 24px -8px rgba(58, 10, 20, .18), 0 36px 70px -30px rgba(58, 10, 20, .45);
  --shadow-dark: 0 2px 6px rgba(0, 0, 0, .25), 0 30px 60px -24px rgba(0, 0, 0, .6);
  /* ornate gold corner motifs (used on framed cards) */
  --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23C9A24B' stroke-width='1.3'%3E%3Cg transform=''%3E%3Cpath d='M4 40V12a8 8 0 0 1 8-8h28'/%3E%3Cpath d='M10 34V16a6 6 0 0 1 6-6h18'/%3E%3Cpath d='M16 22c0-4 2-6 6-6M22 16c3 0 5 2 5 5-3 0-5-2-5-5ZM16 22c0 3 2 5 5 5 0-3-2-5-5-5Z'/%3E%3Ccircle cx='40' cy='4' r='2' fill='%23C9A24B'/%3E%3Ccircle cx='4' cy='40' r='2' fill='%23C9A24B'/%3E%3C/g%3E%3C/svg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23C9A24B' stroke-width='1.3'%3E%3Cg transform='matrix%28-1 0 0 1 64 0%29'%3E%3Cpath d='M4 40V12a8 8 0 0 1 8-8h28'/%3E%3Cpath d='M10 34V16a6 6 0 0 1 6-6h18'/%3E%3Cpath d='M16 22c0-4 2-6 6-6M22 16c3 0 5 2 5 5-3 0-5-2-5-5ZM16 22c0 3 2 5 5 5 0-3-2-5-5-5Z'/%3E%3Ccircle cx='40' cy='4' r='2' fill='%23C9A24B'/%3E%3Ccircle cx='4' cy='40' r='2' fill='%23C9A24B'/%3E%3C/g%3E%3C/svg%3E");
  --corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23C9A24B' stroke-width='1.3'%3E%3Cg transform='matrix%281 0 0 -1 0 64%29'%3E%3Cpath d='M4 40V12a8 8 0 0 1 8-8h28'/%3E%3Cpath d='M10 34V16a6 6 0 0 1 6-6h18'/%3E%3Cpath d='M16 22c0-4 2-6 6-6M22 16c3 0 5 2 5 5-3 0-5-2-5-5ZM16 22c0 3 2 5 5 5 0-3-2-5-5-5Z'/%3E%3Ccircle cx='40' cy='4' r='2' fill='%23C9A24B'/%3E%3Ccircle cx='4' cy='40' r='2' fill='%23C9A24B'/%3E%3C/g%3E%3C/svg%3E");
  --corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23C9A24B' stroke-width='1.3'%3E%3Cg transform='matrix%28-1 0 0 -1 64 64%29'%3E%3Cpath d='M4 40V12a8 8 0 0 1 8-8h28'/%3E%3Cpath d='M10 34V16a6 6 0 0 1 6-6h18'/%3E%3Cpath d='M16 22c0-4 2-6 6-6M22 16c3 0 5 2 5 5-3 0-5-2-5-5ZM16 22c0 3 2 5 5 5 0-3-2-5-5-5Z'/%3E%3Ccircle cx='40' cy='4' r='2' fill='%23C9A24B'/%3E%3Ccircle cx='4' cy='40' r='2' fill='%23C9A24B'/%3E%3C/g%3E%3C/svg%3E");
  --topbar-h: 64px;

  --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 0.35 0 0 0 0 0.22 0 0 0 0 0.1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 8px); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--serif); font-size: var(--fs-body); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100dvh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--wine); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.inline { display: inline-block; vertical-align: -0.18em; }
.center-text { text-align: center; }

/* ── bilingual ── */
html[data-lang="en"] [lang="ta"]:not(.keep):not([data-keep]) { display: none !important; }
html[data-lang="ta"] [lang="en"] { display: none !important; }
[lang="ta"] { font-family: var(--ta-sans); }
html[data-lang="ta"] body { line-height: 1.85; }

/* ═════════ ENTRANCE: KEYFRAME SEQUENCE (frames/intro, drawn by js/frames.js) ═════════ */
.gate { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #1a0c05; transition: visibility 0s linear 1.4s; }
.gate.is-gone { visibility: hidden; pointer-events: none; }
.fs { position: absolute; inset: 0; transform-origin: 50% 46%; }
.fs-fill { position: absolute; inset: -8%; width: 116%; height: 116%; filter: blur(18px) brightness(.5) saturate(1.15); }
.fs-fill[hidden] { display: none; }
.fs-canvas { position: absolute; top: 0; display: block; }
/* the stage tracks the drawn frame, so overlays use the frame's own % coordinates */
.fs-stage { position: absolute; top: 0; container-type: inline-size; pointer-events: none; }
.fs-stage::before, .fs-stage::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; }
.fs-stage::before { left: 0; background: linear-gradient(90deg, rgba(26, 12, 5, .55), transparent); }
.fs-stage::after { right: 0; background: linear-gradient(270deg, rgba(26, 12, 5, .55), transparent); }
@media (max-aspect-ratio: 9/16) { .fs-stage::before, .fs-stage::after { display: none; } }
.fs-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 72% at 50% 48%, transparent 58%, rgba(40, 14, 4, .5) 100%); }
.fs-bloom { position: absolute; left: 50%; top: 58%; width: 120vmax; height: 120vmax; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, #fffef6, rgba(255, 236, 180, .95) 22%, rgba(255, 205, 120, .5) 48%, transparent 72%); opacity: 0; scale: .15; }

/* gold progress shimmer while the frames stream in */
.fs-progress { position: absolute; z-index: 11; left: 0; right: 0; top: 0; height: 2px; background: rgba(232, 213, 163, .14); transition: opacity .8s var(--ease); }
.fs-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #8C6B1F, #F3E6C2 45%, #C9A24B 55%, #8C6B1F) 0 0 / 200% 100%; box-shadow: 0 0 8px rgba(232, 213, 163, .7); transition: width .35s var(--ease); animation: fs-shimmer 1.6s linear infinite; }
.fs-progress.is-done { opacity: 0; }
@keyframes fs-shimmer { to { background-position: -200% 0; } }

/* "Wedding Invitation" plaque: real text laid exactly over the board in the frame */
.g-plaque { position: absolute; left: 20.5%; top: 8.6%; width: 60%; height: 15.9%; display: grid; place-content: center; gap: 1.2cqw; padding: 0 2cqw; text-align: center;
  border-radius: .6cqw; background: radial-gradient(120% 95% at 50% 30%, #fbf8f1, #efe8db 70%, #e4d9c4);
  box-shadow: inset 0 0 2.4cqw rgba(120, 90, 40, .28), inset 0 0 .4cqw rgba(120, 90, 40, .35), 0 0 .8cqw rgba(255, 240, 200, .35); }
.g-plaque-names { margin: 0; white-space: nowrap; font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(0.95rem, 5.1cqw, 1.75rem); line-height: 1.05; color: var(--maroon); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.g-plaque-names [lang="ta"] { font-family: var(--ta-serif); font-style: normal; font-weight: 700; font-size: .74em; white-space: nowrap; }
.g-plaque-names em { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--gold-ink); font-size: .88em; padding: 0 .15em; }
.g-plaque-sub { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(0.55rem, 2.2cqw, 0.85rem); letter-spacing: .32em; text-transform: uppercase;
  background: linear-gradient(90deg, #8C6B1F, #B88A2E 40%, #7a5a17); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-plaque-sub [lang="ta"] { letter-spacing: .04em; text-transform: none; font-family: var(--ta-sans); font-weight: 600; font-size: clamp(0.6rem, 2.7cqw, 0.95rem); }

.g-prompt { position: absolute; z-index: 10; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 70px); translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(58, 10, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(232, 213, 163, .35);
  font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .24em; line-height: 1.6; text-transform: uppercase; text-align: center; color: #fff1d6;
  transition: opacity .6s var(--ease), translate .6s var(--ease); pointer-events: none; }
.g-prompt [lang="ta"] { letter-spacing: .02em; text-transform: none; font-family: var(--ta-sans); font-size: .85rem; }
.gate.is-touched .g-prompt { opacity: 0; translate: -50% 8px; }

/* petals burst out of the doorway on the last frame */
.g-petals { position: absolute; inset: 0; pointer-events: none; z-index: 9; }
.g-petal { position: absolute; left: var(--px); top: var(--py); width: 12px; height: 9px; border-radius: 60% 0 60% 0; background: var(--pc); animation: petal-burst var(--pt) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes petal-burst { 0% { translate: 0 0; rotate: 0deg; scale: .4; opacity: 1; } 30% { translate: var(--tx) var(--ty); scale: 1; } 100% { translate: calc(var(--tx) * 1.5) 70vh; rotate: var(--rot); opacity: .9; } }

/* rope — maroon & gold silk braid hanging from the plaque */
.g-rope {
  position: absolute; z-index: 3; left: 50%; top: 26.6%; height: max(150px, 21%); width: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: none; border: 0; padding: 0; cursor: grab; touch-action: none; pointer-events: auto;
  transform: translate(-50%, var(--pull, 0px)); transform-origin: 50% 0;
  animation: sway 3.4s ease-in-out infinite;
}
.g-rope:active { cursor: grabbing; }
.rope-cord { flex: 1; width: 9px; border-radius: 5px;
  background: repeating-linear-gradient(150deg, #5A0F1E 0 5px, #E8D5A3 5px 7px, #8c1d33 7px 12px, #C9A24B 12px 14px);
  box-shadow: inset -2px 0 2px rgba(0, 0, 0, .35), 0 0 8px rgba(60, 20, 5, .35); }
.rope-bead { width: 20px; height: 20px; margin-top: -1px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff4cf, #d9a441 55%, #7a5216); box-shadow: 0 2px 4px rgba(0, 0, 0, .45); }
.rope-tassel { position: relative; width: 44px; height: 78px; margin-top: -4px; filter: drop-shadow(0 6px 8px rgba(40, 10, 0, .45)); }
.rope-tassel::before { content: ''; position: absolute; left: 30%; right: 30%; top: 0; height: 12px; border-radius: 3px; background: var(--gold-grad); z-index: 1; }
.rope-tassel i { position: absolute; top: 10px; bottom: 0; width: 34%; border-radius: 0 0 40% 40%;
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); transform-origin: 50% 0; animation: strand 2.6s ease-in-out infinite alternate; }
.rope-tassel i:nth-child(1) { left: 0; background-color: #7a1626; clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%); }
.rope-tassel i:nth-child(2) { left: 33%; background-color: #d9b45a; }
.rope-tassel i:nth-child(3) { right: 0; background-color: #5A0F1E; clip-path: polygon(0 0, 30% 0, 100% 100%, 0 100%); animation-delay: -1.3s; }
@keyframes sway { 0%, 100% { rotate: -.5deg; } 50% { rotate: .5deg; } }
@keyframes strand { from { transform: skewX(-3deg); } to { transform: skewX(3deg); } }
.g-rope.is-dragging { animation: none; }
.g-rope:focus-visible .rope-bead { outline: 2px solid #fff; outline-offset: 4px; }
.g-rope::after { content: ''; position: absolute; bottom: 14px; left: 50%; width: 86px; height: 86px; translate: -50% 0; border-radius: 50%; border: 1.5px solid rgba(255, 250, 230, .8); animation: rope-hint 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes rope-hint { 0% { scale: .5; opacity: .9; } 100% { scale: 1.3; opacity: 0; } }
.gate.is-touched .g-rope::after { opacity: 0; }

/* sequence states */
.gate.is-pulled .g-rope { animation: rope-pull 1.2s cubic-bezier(.5, 0, .3, 1) forwards; pointer-events: none; }
@keyframes rope-pull { 0% { transform: translate(-50%, var(--pull, 0px)); } 18% { transform: translate(-50%, calc(var(--pull, 0px) + 20px)); } 100% { transform: translate(-50%, -110svh); } }
.gate.is-bloom .fs-bloom { animation: bloom 1.6s var(--ease) forwards; }
@keyframes bloom { 0% { opacity: 0; scale: .15; } 55% { opacity: 1; scale: 1.1; } 100% { opacity: .85; scale: 1.4; } }
.gate.is-entering .fs { transform: scale(1.3); opacity: 0; transition: transform 1.5s cubic-bezier(.6, 0, .4, 1), opacity 1.1s ease .25s; }
.gate.is-entering .g-actions, .gate.is-entering .g-prompt, .gate.is-entering .fs-progress { opacity: 0; transition: opacity .4s; }
.gate.is-entering { background: transparent; transition: background-color .9s ease .3s, visibility 0s linear 1.4s; }

.g-actions { position: absolute; z-index: 10; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 8px; padding: 0 12px; pointer-events: none; }
.g-link { pointer-events: auto; display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 245, 220, .45); background: rgba(58, 10, 20, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff3dd; font-family: var(--sans); font-size: .72rem; letter-spacing: .06em; transition: background-color .25s, border-color .25s; }
.g-link [lang="ta"] { font-family: var(--ta-sans); }
.g-link:hover { background: rgba(90, 15, 30, .85); border-color: rgba(255, 245, 220, .8); }

.link-btn {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .5rem .4rem;
  background: none; border: 0; color: var(--wine);
  font-family: var(--sans); font-size: .82rem; letter-spacing: .06em;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: rgba(122,22,36,.35);
}
.link-btn:hover { text-decoration-color: currentColor; }

/* ═════════ ARTWORK ═════════ */
.gopuram.is-line * { fill: none !important; stroke: var(--gold); stroke-width: .7; filter: none !important; }
.gopuram.is-line .gp-cornice-hi, .gopuram.is-line .gp-fig { stroke-opacity: .6; }
.mandala { width: 100%; height: auto; fill: none; stroke: var(--gold); stroke-width: .6; }
.divider-svg { width: min(320px, 80%); height: auto; }
.divider-svg .dv-line { stroke: var(--gold); stroke-width: 1; }
.divider-svg .dv-dot { fill: var(--gold); }
.divider-svg .dv-lotus { fill: none; stroke: var(--wine); stroke-width: 1.3; }

/* ═════════ TOP BAR & MENU ═════════ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; color: var(--ink);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.topbar.is-solid { background: rgba(248, 241, 228, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.monogram { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .08em; color: var(--ox-2); }
.monogram i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.topbar-actions { display: flex; gap: .4rem; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative;
  border-radius: 50%; border: 1px solid rgba(42, 24, 16, .16); background: rgba(248, 241, 228, .6); color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s, color .25s, transform .15s;
}
.icon-btn:hover { border-color: var(--wine); color: var(--wine); }
.icon-btn:active { transform: scale(.94); }
.lang-chip { font-family: var(--ta-sans); font-size: .78rem; font-weight: 600; }
.lang-chip[lang="ta"] { font-family: var(--sans); letter-spacing: .08em; font-size: .72rem; }
#langBtn [lang="en"].lang-chip { display: inline !important; }
html[data-lang="ta"] #langBtn [lang="en"].lang-chip { display: none !important; }
#musicBtn .ic-off { display: none; }
#musicBtn[aria-pressed="false"] .ic-on { display: none; }
#musicBtn[aria-pressed="false"] .ic-off { display: block; }
#musicBtn .eq { position: absolute; bottom: 8px; display: flex; gap: 2px; height: 5px; align-items: flex-end; }
#musicBtn .eq i { width: 2px; background: currentColor; animation: eq 1s ease-in-out infinite alternate; }
#musicBtn .eq i:nth-child(2) { animation-delay: -.3s; } #musicBtn .eq i:nth-child(3) { animation-delay: -.6s; }
#musicBtn[aria-pressed="false"] .eq { display: none; }
#musicBtn .ic { margin-top: -3px; }
@keyframes eq { from { height: 1px; } to { height: 5px; } }

.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: var(--grain), radial-gradient(120% 80% at 80% 0%, var(--ox-2), var(--ox-0));
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top)) max(24px, 8vw) 40px;
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu .icon-btn { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.menu-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: var(--gutter); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-bottom: 1px solid var(--line-dark); }
.menu-list a {
  display: flex; align-items: baseline; gap: 1.2rem; padding: .7rem 0; text-decoration: none;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.1; color: var(--on-dark);
  transition: color .3s, transform .4s var(--ease);
}
.menu-list a i { font-family: var(--sans); font-style: normal; font-size: .75rem; letter-spacing: .2em; color: var(--gold-2); min-width: 2ch; }
.menu-list a [lang="ta"] { font-family: var(--ta-serif); font-size: .62em; font-weight: 400; }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--gold-hi); transform: translateX(8px); }
.menu.is-open .menu-list li { animation: rise .6s var(--ease-out) both; }
.menu.is-open .menu-list li:nth-child(2) { animation-delay: .04s; } .menu.is-open .menu-list li:nth-child(3) { animation-delay: .08s; }
.menu.is-open .menu-list li:nth-child(4) { animation-delay: .12s; } .menu.is-open .menu-list li:nth-child(5) { animation-delay: .16s; }
.menu.is-open .menu-list li:nth-child(6) { animation-delay: .2s; } .menu.is-open .menu-list li:nth-child(7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ═════════ TYPE PRIMITIVES ═════════ */
.label {
  display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem;
  font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--wine);
}
.label::before { content: ''; width: calc(var(--line, 1) * 40px); height: 1px; background: var(--gold-grad); }
.label [lang="ta"] { font-family: var(--ta-sans); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.label.light { color: var(--gold-2); }
.display {
  margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 300; font-size: var(--fs-display);
  line-height: 1.02; letter-spacing: -.012em; color: var(--ox-2); text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; color: var(--wine); }
.display [lang="ta"] { font-family: var(--ta-serif); font-weight: 600; font-size: .6em; line-height: 1.4; letter-spacing: 0; }
.display.light { color: var(--on-dark); }
.display.light em { color: var(--gold-hi); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.lead [lang="ta"], .lead[lang="ta"] { font-size: .8em; line-height: 1.8; }
.lead.light { color: var(--on-dark-2); }
.note { margin-top: 1rem; font-style: italic; color: var(--ink-2); }
.note.light { color: var(--on-dark-2); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.sec-head .label { justify-content: center; }
.sec-head::after { content: ''; display: block; width: 120px; height: 14px; margin: 1.4rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' fill='none' stroke='%23C9A24B' stroke-width='1.2'%3E%3Cpath d='M0 7h44M76 7h44'/%3E%3Cpath d='M60 1c-5 3-5 9 0 12 5-3 5-9 0-12Z'/%3E%3Ccircle cx='50' cy='7' r='1.6' fill='%23C9A24B'/%3E%3Ccircle cx='70' cy='7' r='1.6' fill='%23C9A24B'/%3E%3C/svg%3E") center / contain no-repeat; }
.sec-head.split::after { display: none; }
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; text-align: left; max-width: none; }
.sec-head.split .display { margin: 0; }

/* ═════════ BUTTONS ═════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 50px; padding: .7rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  transition: background-color .3s var(--ease), color .3s, border-color .3s, transform .2s var(--ease), box-shadow .3s;
  cursor: pointer; text-align: center;
}
.btn [lang="ta"] { font-family: var(--ta-sans); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .95rem; }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold-shimmer); background-size: 250% 100%; background-position: 130% 0; opacity: 0; transition: background-position .9s var(--ease), opacity .3s; pointer-events: none; }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; background-position: -30% 0; }
.btn .ic { width: 1.05rem; height: 1.05rem; transition: transform .3s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-solid { background: linear-gradient(180deg, var(--wine), var(--maroon)); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(232, 213, 163, .45), 0 14px 30px -14px rgba(90, 15, 30, .75); }
.btn-solid::after { mix-blend-mode: soft-light; }
.btn-solid:hover { background: linear-gradient(180deg, var(--wine-2), var(--wine)); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(140, 107, 31, .45); }
.btn-line:hover { border-color: var(--wine); color: var(--wine); }
.btn-line.light { color: var(--on-dark); border-color: rgba(244, 233, 214, .35); }
.btn-line.light:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn-gold { background: var(--gold-grad); color: var(--burgundy); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .6), 0 14px 30px -14px rgba(201, 162, 75, .75); }
.btn-gold:hover { background: linear-gradient(135deg, #9C7A28 0%, #F3E6C2 50%, #C69A3A 100%); }
.btn-text { background: none; color: var(--ink-2); padding-inline: .6rem; }
.btn-text:hover { color: var(--wine); }
.btn.wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; filter: saturate(.4); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.chip-btn {
  display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .35rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--wine); background: transparent; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .25s, border-color .25s, color .25s;
}
.chip-btn:hover { background: var(--ox-2); border-color: var(--ox-2); color: var(--ivory); }
.round-btn {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.round-btn:hover { background: var(--gold-hi); color: var(--ox-1); border-color: var(--gold-hi); }
.round-btn.swiper-button-disabled { opacity: .3; pointer-events: none; }
.round-btn.swiper-button-lock { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ═════════ SURFACES ═════════ */
.section { position: relative; padding: var(--sec-y) var(--gutter); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }
.paper { background: var(--grain), radial-gradient(90% 60% at 80% 0%, #fffaf1, transparent 70%), var(--ivory); color: var(--ink); }
.oxblood { background: var(--grain), radial-gradient(100% 70% at 20% 0%, #5e1019, transparent 65%), linear-gradient(180deg, var(--ox-1), var(--ox-0)); color: var(--on-dark); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ═════════ HERO ═════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 2.5rem) var(--gutter) 5.5rem;
  display: grid; align-items: center;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-mandala { position: absolute; width: min(110vw, 820px); right: -12%; top: 6%; opacity: .32; }
.hero-gopuram { position: absolute; left: -6%; bottom: -4%; width: min(60vw, 560px); opacity: .22; }
.hero-gopuram .gopuram { width: 100%; height: auto; }
.hero-grid { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-content > * { opacity: 0; transform: translateY(22px); }
body.is-in .hero-content > * { animation: rise 1.2s var(--ease-out) forwards; }
body.is-in .hero-content > :nth-child(2) { animation-delay: .1s; } body.is-in .hero-content > :nth-child(3) { animation-delay: .2s; }
body.is-in .hero-content > :nth-child(4) { animation-delay: .4s; } body.is-in .hero-content > :nth-child(5) { animation-delay: .5s; }
body.is-in .hero-content > :nth-child(6) { animation-delay: .65s; }
.hero-tamil { margin: 0 0 1.4rem; font-family: var(--ta-serif); font-weight: 600; font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); letter-spacing: .04em; color: var(--wine); display: inline-flex; align-items: center; gap: .9rem; }
.hero-tamil::after { content: ''; width: 48px; height: 1px; background: var(--gold-grad); }
.kicker { margin: 0; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); }
.kicker [lang="ta"] { font-family: var(--ta-sans); letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.hero-names { margin: .4rem 0 0; font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--ox-2); line-height: .88; letter-spacing: -.02em; display: flex; flex-direction: column; }
.hero-names .nm { font-size: clamp(3.6rem, 1.6rem + 8vw, 8.8rem); }
.hero-names .nm:last-child { padding-left: clamp(1.2rem, 8vw, 7rem); }
.hero-names .nm [lang="ta"] { font-family: var(--ta-serif); font-style: normal; font-weight: 600; font-size: .5em; line-height: 1.35; letter-spacing: 0; }
.hero-names .amp { font-family: var(--script); font-style: normal; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); color: var(--gold); line-height: 1; margin: .1em 0 -.05em clamp(.4rem, 3vw, 2.6rem); }
.hero-meta { margin: 2.2rem 0 0; display: flex; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 560px; }
.hero-meta > div { flex: 1; padding: .9rem .4rem; text-align: center; display: grid; align-content: center; gap: .15rem; }
.hero-meta > div + div { border-left: 1px solid var(--line); }
.hero-meta dt { font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta dt [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.hero-meta dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.hero-meta-date dd { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--wine); letter-spacing: .04em; }
.hero-venue { margin: 1rem 0 0; font-style: italic; color: var(--ink-2); }
.hero-venue [lang="ta"] { font-style: normal; font-size: .92em; }

.hero-arch { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); cursor: pointer; }
.arch-outline { position: absolute; inset: -14px -14px 34px; border: 1px solid var(--gold); border-radius: var(--arch); pointer-events: none; }
.arch-outline::after { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: inherit; }
.arch-mask { position: relative; aspect-ratio: 3 / 4.15; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); background: var(--ivory-3); }
.arch-mask .photo { height: 100%; }
.hero-arch figcaption { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.6rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.hero-arch figcaption [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.hero-arch figcaption .ic { color: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; text-decoration: none; font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* photo frames (shared) */
.photo { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(160deg, var(--ivory-3), var(--ivory-2)); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.photo.is-empty::after { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--script); font-size: clamp(3rem, 12vw, 5.5rem); color: var(--gold); }

/* ═════════ RIBBON ═════════ */
.ribbon { overflow: hidden; background: var(--ox-1); color: var(--gold-hi); border-block: 1px solid rgba(233, 211, 160, .18); padding: 1.05rem 0; }
.ribbon-track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: marquee 48s linear infinite; }
.ribbon-track span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); white-space: nowrap; }
.ribbon-track span[lang="ta"] { font-family: var(--ta-serif); font-style: normal; font-weight: 400; font-size: clamp(1.05rem, .9rem + .6vw, 1.4rem); }
.ribbon-track b { font-size: .8rem; color: var(--gold-2); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═════════ INVITATION ═════════ */
.inv-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.verse { position: sticky; top: calc(var(--topbar-h) + 3rem); padding-top: .4rem; }
.verse-ta br { display: none; }
.verse-ta { text-wrap: balance; margin: 0; font-family: var(--ta-serif); font-weight: 400; font-size: clamp(1.15rem, .95rem + .8vw, 1.55rem); line-height: 2; color: var(--ox-2); }
.verse-tr { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.25; }
.verse-en { margin: 1.2rem 0 0; font-style: italic; color: var(--ink-2); max-width: 36ch; padding-left: 1.1rem; border-left: 1px solid var(--gold); }
.inv-card { position: relative; padding: clamp(2.2rem, 4vw, 3.6rem); background: rgba(255, 251, 243, .78); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.inv-card::before, .presence-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201, 162, 75, .28); border-radius: calc(var(--r-card) - 8px); pointer-events: none; }
.inv-card::after, .presence-card::after { content: ''; position: absolute; inset: 14px; pointer-events: none; background: var(--corner-tl) top left / 46px no-repeat, var(--corner-tr) top right / 46px no-repeat, var(--corner-bl) bottom left / 46px no-repeat, var(--corner-br) bottom right / 46px no-repeat; }
.inv-body { font-size: var(--fs-lead); line-height: 1.65; }
.inv-body [lang="ta"] { font-size: .78em; line-height: 2; }
.inv-body p { margin: 0 0 1.1rem; }
.inv-body .lead { color: var(--ink); }
.inv-body strong { font-weight: 600; color: var(--ox-2); }
.inv-names { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3rem) !important; line-height: 1.1; color: var(--wine); margin: 1.4rem 0 1.6rem !important; }
.inv-names em { font-family: var(--script); font-size: .7em; color: var(--gold); padding: 0 .25em; font-style: normal; }
[lang="ta"] .inv-names { font-family: var(--ta-serif); font-style: normal; font-weight: 600; font-size: 1.5rem !important; }
.panchangam { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panchangam li { padding: 1.4rem .8rem; text-align: center; font-family: var(--serif); font-size: 1.35rem; color: var(--ox-2); display: grid; gap: .25rem; }
.panchangam li + li { border-left: 1px solid var(--line); }
.panchangam li [lang="ta"] { font-family: var(--ta-serif); font-size: 1.05rem; }
.panchangam small { font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.panchangam small [lang="ta"] { font-family: var(--ta-sans); letter-spacing: 0; text-transform: none; font-size: .82rem; }

/* ═════════ COUPLE ═════════ */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; max-width: 1000px; margin: 0 auto; }
.weds { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--gold-2); }
.weds-line { width: 1px; height: 90px; background: linear-gradient(transparent, var(--gold-2), transparent); }
.weds-amp { font-family: var(--script); font-size: 3.6rem; line-height: 1; color: var(--gold-hi); }
.flip { perspective: 1600px; }
.flip-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform 1.1s var(--ease-out); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.portrait-arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; outline: 1px solid var(--line-dark); outline-offset: 10px; margin: 10px; }
.portrait-arch .photo { height: 100%; }
.flip-caption { padding: 1.8rem .5rem .4rem; text-align: center; }
.role { margin: 0; font-family: var(--sans); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; font-size: .66rem; color: var(--gold-2); }
.role [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.person { margin: .4rem 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); line-height: 1.05; color: var(--on-dark); }
.person [lang="ta"] { font-family: var(--ta-serif); font-weight: 600; font-size: .7em; }
.degree { margin: .6rem auto 0; max-width: 32ch; font-style: italic; color: var(--on-dark-2); font-size: 1.02rem; line-height: 1.45; }
.flip-back {
  transform: rotateY(180deg); padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--grain), var(--ivory); color: var(--ink);
  border-radius: 220px 220px var(--r-card) var(--r-card) / 160px 160px var(--r-card) var(--r-card); margin: 10px;
}
.flip-back .role { color: var(--wine); text-align: center; margin-top: 2.6rem; }
.person.small { font-size: var(--fs-h3); color: var(--ox-2); text-align: center; }
.job { margin: .5rem 0 1.2rem; font-size: 1rem; color: var(--ink-2); font-style: italic; line-height: 1.4; text-align: center; }
.family { margin: 0; display: grid; gap: .9rem; }
.family div { border-top: 1px solid var(--line); padding-top: .8rem; }
.family dt { font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.family dt [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.family dd { margin: .2rem 0 0; font-size: 1.05rem; line-height: 1.45; }
.family dd [lang="ta"] { font-size: .9rem; }
.flip-btn {
  align-self: center; margin: 1rem auto .5rem; display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .4rem 1.2rem;
  border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--gold-hi);
  font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
}
.flip-btn [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.flip-btn:hover { background: var(--gold-hi); color: var(--ox-1); border-color: var(--gold-hi); }
.flip-back .flip-btn { color: var(--wine); border-color: var(--line); margin-top: auto; }
.flip-back .flip-btn:hover { background: var(--ox-2); color: var(--ivory); border-color: var(--ox-2); }
.shower-row { text-align: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
.shower-count { min-height: 1.6em; margin: .9rem 0 0; color: var(--on-dark-2); font-style: italic; }

/* ═════════ COUNTDOWN ═════════ */
.countdown { padding: var(--sec-y) var(--gutter); }
.countdown-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.countdown-copy .display { margin-bottom: 0; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timer > div { padding: clamp(1.4rem, 3vw, 2.4rem) .3rem; display: grid; justify-items: center; gap: .4rem; }
.timer > div + div { border-left: 1px solid var(--line); }
.timer b { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.6rem); line-height: .9; color: var(--ox-2); font-variant-numeric: tabular-nums lining-nums; }
.timer b.tick { animation: tick .6s var(--ease-out); }
@keyframes tick { from { opacity: .2; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.timer span { font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.timer span[lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.timer-done { grid-column: 1 / -1; font-size: var(--fs-lead); color: var(--wine); font-style: italic; }

/* ═════════ CEREMONY SCENES (PART B: KEYFRAME SCROLL PANELS) ═════════ */
.ev-section {
  position: relative;
  background: var(--burgundy);
  color: var(--ivory);
  overflow: clip;
  padding-bottom: 5rem;
}

.ev-scenes {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.ev-scene {
  position: relative;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Desktop layout: split layout, alternating sides */
@media (min-width: 900px) {
  .ev-scene {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 5vw, 6rem);
    padding: 2.5rem var(--gutter);
  }
  .ev-scene:nth-child(even) .ev-stage-wrap {
    order: 2;
  }
  .ev-scene:nth-child(even) .ev-details {
    order: 1;
  }
}

/* Portrait stage frame */
.ev-stage-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 900px) {
  /* the portrait frame always fits inside the pinned viewport, with breathing room */
  .ev-stage-wrap {
    max-width: min(460px, calc((100svh - 6rem) * 9 / 16));
  }
  .ev-scene { height: 100svh; min-height: 0; padding-block: 3rem; align-content: center; justify-items: center; }
  .ev-details { max-width: 460px; max-height: calc(100svh - 6rem); }
  .ev-details .ev-card { padding: clamp(1.8rem, 3.2vh, 2.8rem) clamp(1.4rem, 2.6vw, 2.2rem); }
}

.ev-frame-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #140407;
  border: 1.5px solid var(--gold-antique);
  box-shadow: var(--shadow-dark), 0 0 32px rgba(201, 162, 75, 0.2);
  transform: translateZ(0);
}

.ev-frame-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--gold-shimmer);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.ev-frame-stage:hover::after {
  opacity: 0.7;
}

/* Background image doing slow zoom */
.ev-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
  transform: scale(1);
  will-change: transform;
  transition: transform 0.2s ease-out;
}

/* Ambient canvas */
.ev-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Parallax foreground layer */
.ev-fg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background-repeat: no-repeat;
  background-position: top center, bottom center;
  background-size: 100% auto;
  will-change: transform;
}

.ev-fg-shagun {
  background-image:
    radial-gradient(ellipse 70% 25% at 50% 0%, rgba(201, 162, 75, 0.25) 0%, transparent 80%),
    radial-gradient(ellipse 90% 20% at 50% 100%, rgba(90, 15, 30, 0.6) 0%, transparent 80%);
}

.ev-fg-reception {
  background-image:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(232, 213, 163, 0.3) 0%, transparent 80%),
    radial-gradient(ellipse 85% 25% at 50% 100%, rgba(58, 10, 20, 0.65) 0%, transparent 80%);
}

.ev-fg-muhurtham {
  background-image:
    radial-gradient(ellipse 75% 25% at 50% 0%, rgba(244, 163, 0, 0.28) 0%, transparent 80%),
    radial-gradient(ellipse 90% 20% at 50% 100%, rgba(176, 40, 31, 0.55) 0%, transparent 80%);
}

/* Golden light flare cross-dissolve between scenes */
.ev-flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 248, 224, 0.95) 0%, rgba(232, 213, 163, 0.6) 35%, rgba(140, 107, 31, 0.3) 70%, transparent 100%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

/* ── Fallback Ornate CSS Plaque Overlay (covers baked-in reference text) ── */
.ev-plaque-overlay {
  position: absolute;
  z-index: 2;
  container-type: inline-size;
  transform-origin: 50% -20%;
  animation: plaque-swing 5.8s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 12px rgba(30, 8, 12, 0.45));
}

@keyframes plaque-swing {
  0% { transform: rotate(-0.6deg) translateY(0); }
  50% { transform: rotate(0.6deg) translateY(-2px); }
  100% { transform: rotate(-0.4deg) translateY(1px); }
}

.ev-plaque-board {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(ellipse 110% 90% at 50% 30%, #fffef8 0%, #fbf4e6 60%, #f2e2c8 100%);
  outline: 1.5px solid rgba(201, 162, 75, 0.65);
  outline-offset: -4px;
  box-shadow:
    inset 0 0 16px rgba(140, 107, 31, 0.28),
    inset 0 0 4px rgba(140, 107, 31, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1cqw 2.5cqw;
  text-align: center;
}

.plaque-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-style: solid;
  border-color: rgba(140, 107, 31, 0.6);
  pointer-events: none;
}
.plaque-corner.tc { top: 5px; left: 5px; border-width: 1.5px 0 0 1.5px; }
.plaque-corner.bc { bottom: 5px; right: 5px; border-width: 0 1.5px 1.5px 0; }

.plaque-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(0.9rem, 6.2cqw, 1.6rem);
  line-height: 1.05;
  color: var(--maroon);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.plaque-title [lang="ta"] {
  font-family: var(--ta-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 0.82em;
}

.plaque-sub {
  margin: 0.2cqw 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.5rem, 2.6cqw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  white-space: nowrap;
}
.plaque-sub [lang="ta"] {
  font-family: var(--ta-sans);
  font-size: 0.88em;
  letter-spacing: 0.02em;
  text-transform: none;
}

.plaque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 65%;
  margin: 0.4cqw 0;
  color: var(--gold-antique);
  font-size: 0.55rem;
}
.plaque-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 107, 31, 0.5), transparent);
}

.plaque-date {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.55rem, 2.8cqw, 0.85rem);
  color: var(--ink);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.plaque-date [lang="ta"] {
  font-family: var(--ta-sans);
  font-size: 0.9em;
}

.plaque-time {
  margin: 0.2cqw 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.58rem, 2.9cqw, 0.9rem);
  color: var(--wine);
  white-space: nowrap;
}
.plaque-time [lang="ta"] {
  font-family: var(--ta-sans);
  font-style: normal;
  font-size: 0.88em;
}

.plaque-venue {
  margin: 0.2cqw 0 0;
  font-family: var(--sans);
  font-size: clamp(0.48rem, 2.2cqw, 0.72rem);
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.plaque-venue [lang="ta"] {
  font-family: var(--ta-sans);
  font-size: 0.9em;
}

/* ── Event Details Card ── */
.ev-details {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.ev-details .ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.4rem, 4vw, 3.2rem) clamp(1.4rem, 3vw, 2.4rem);
  color: var(--ink);
  background: var(--grain), var(--ivory);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-dark), 0 0 24px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.ev-details .ev-card.is-main {
  background: var(--grain), linear-gradient(180deg, #fdf8ee 0%, var(--ivory) 40%, var(--ivory-2) 100%);
  border: 1.5px solid var(--gold-antique);
}
.ev-details .ev-card.is-main::after {
  content: 'The wedding';
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--wine);
  padding: .3rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}
html[data-lang="ta"] .ev-details .ev-card.is-main::after {
  content: 'திருமணம்';
  letter-spacing: 0;
  font-family: var(--ta-sans);
  font-size: .75rem;
}

.ev-no { margin: 0; font-family: var(--sans); font-size: .75rem; letter-spacing: .3em; color: var(--gold-ink); font-weight: 500; }
.ev-date { margin: .8rem 0 1rem; display: grid; justify-items: center; }
.ev-date b { font-family: var(--serif); font-weight: 300; font-size: 5rem; line-height: .9; color: var(--wine); }
.ev-date span { font-family: var(--sans); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); margin-top: .4rem; }
.ev-date small { font-style: italic; color: var(--ink-3); font-size: 1rem; }
.ev-date small[lang="ta"] { font-style: normal; font-size: .85rem; }
.ev-card h3 { margin: 0; display: grid; gap: .1rem; }
.ev-card h3 [lang="ta"] { font-family: var(--ta-serif); font-weight: 600; font-size: 1.55rem; color: var(--ox-2); }
.en-sub { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.ev-time { margin: 1rem 0 0; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; color: var(--ink); }
.ev-time [lang="ta"] { font-family: var(--ta-sans); font-size: .9rem; }
.ev-time .ic { color: var(--wine); }
.ev-venue { margin: .75rem 0 0; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-size: .85rem; color: var(--ink-2); line-height: 1.4; }
.ev-venue .ic { color: var(--wine); flex: none; }
.ev-venue [lang="ta"] { font-family: var(--ta-sans); font-size: .88rem; }
.ev-note { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.5; }
.ev-note [lang="ta"] { font-size: .92rem; }
.ev-actions { margin-top: auto; padding-top: 1.4rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* ═════════ VENUE ═════════ */
.venue-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.display.left { text-align: left; }
.address { font-style: normal; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.address [lang="ta"] { font-size: .84em; }
.transit { list-style: none; padding: 0; margin: 2.6rem 0 0; }
.transit li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.transit li:last-child { border-bottom: 1px solid var(--line); }
.transit p { margin: 0; color: var(--ink-2); }
.transit-h { font-family: var(--sans); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; font-size: .64rem; color: var(--wine) !important; margin-bottom: .35rem !important; }
.transit-h [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.transit-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--wine); }
.routes { display: flex; flex-wrap: wrap; gap: .35rem; }
.routes b { font-family: var(--sans); font-weight: 400; font-size: .82rem; letter-spacing: .04em; padding: .15rem .65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.inline-link { color: var(--wine); text-underline-offset: 4px; cursor: pointer; }
.map-card { width: 100%; }
.map-frame { position: relative; height: clamp(360px, 62svh, 560px); border-radius: var(--r-card); overflow: hidden; background: #efe3cc; box-shadow: var(--shadow); border: 6px solid #fffaf0; outline: 1px solid var(--gold); outline-offset: 6px; margin: 8px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: sepia(.18) saturate(.9); opacity: 0; transition: opacity .8s var(--ease); }
.map-frame.is-loaded iframe { opacity: 1; }
.map-load {
  position: absolute; inset: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  background: #f1e5cd; color: var(--ox-2); font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; transition: opacity .6s var(--ease);
}
.map-streets { position: absolute; inset: -20%; opacity: .55; transform: rotate(-12deg);
  background:
    linear-gradient(90deg, transparent 0 calc(50% - 9px), #fffaf0 calc(50% - 9px) calc(50% + 9px), transparent calc(50% + 9px)),
    linear-gradient(0deg, transparent 0 calc(42% - 7px), #fffaf0 calc(42% - 7px) calc(42% + 7px), transparent calc(42% + 7px)),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 250, 240, .9) 70px 74px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(255, 250, 240, .9) 56px 60px),
    radial-gradient(circle at 70% 30%, #d9e6c2 0 12%, transparent 13%),
    radial-gradient(circle at 25% 75%, #cfe0d8 0 10%, transparent 11%);
}
.map-load::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, transparent 0 18%, rgba(241, 229, 205, .75) 60%); }
.map-load > :not(.map-streets) { position: relative; z-index: 1; }
.map-load [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.map-load-label { padding: .5rem 1.1rem; border-radius: 999px; background: rgba(255, 251, 243, .9); box-shadow: 0 6px 18px -8px rgba(58, 10, 20, .35); }
.map-pin { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--ox-2); color: var(--gold-hi); box-shadow: 0 12px 24px -8px rgba(90, 15, 30, .6); animation: pin-bob 2.2s ease-in-out infinite; }
.map-pin .ic { width: 26px; height: 26px; rotate: 45deg; }
.map-pin::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(122, 22, 36, .35); animation: pin-pulse 2.2s ease-out infinite; }
.map-pin { position: relative; }
@keyframes pin-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pin-pulse { from { scale: .7; opacity: 1; } to { scale: 1.6; opacity: 0; } }
.map-load:hover .map-load-label { background: #fff; }
.map-frame.is-loaded .map-load { opacity: 0; pointer-events: none; }
.map-tag { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: .8rem; padding: .7rem .7rem .7rem .9rem; border-radius: 18px; background: rgba(255, 251, 243, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgba(58, 10, 20, .45); border: 1px solid var(--line); }
.map-tag-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(122, 22, 36, .08); color: var(--wine); }
.map-tag-txt { display: grid; min-width: 0; line-height: 1.25; }
.map-tag-txt b { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; color: var(--ox-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-tag-txt b [lang="ta"] { font-family: var(--ta-serif); font-size: .9rem; }
.map-tag-txt small { font-family: var(--sans); font-size: .74rem; color: var(--ink-2); letter-spacing: .03em; }
.map-tag-go { flex: none; margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ox-2); color: var(--gold-hi); transition: transform .25s var(--ease), background-color .25s; }
.map-tag-go:hover { background: var(--wine); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .map-pin, .map-pin::after { animation: none; } }

/* ═════════ MEMORIES ═════════ */
.mem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.mem-photos { position: relative; height: clamp(380px, 42vw, 560px); user-select: none; }
.mem-frame {
  position: absolute; border-radius: var(--arch); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  outline: 1px solid var(--line-dark); outline-offset: 7px;
  cursor: pointer; transition: outline-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mem-frame:hover {
  outline-color: var(--gold-hi);
  transform: translateY(-4px);
  box-shadow: 0 34px 70px -18px rgba(0, 0, 0, .75);
}
.mem-frame .photo { height: 100%; }
.mem-frame .photo.mem-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transform: scale(1.05);
}
.mem-frame .photo.mem-layer.is-active {
  opacity: 1; pointer-events: auto;
  transform: scale(1);
}
.mem-frame.f1 { width: 34%; height: 58%; left: 0; top: 30%; }
.mem-frame.f2 { width: 44%; height: 80%; left: 28%; top: 4%; z-index: 1; }
.mem-frame.f3 { width: 34%; height: 58%; right: 0; top: 18%; }
.mem-cam {
  position: absolute; z-index: 4; left: 50%; bottom: 2%; transform: translateX(-50%);
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: var(--gold-hi); color: var(--ox-1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45); cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s, color .3s;
}
.mem-cam .ic { width: 26px; height: 26px; transition: transform .25s var(--ease); }
.mem-cam:hover {
  transform: translateX(-50%) scale(1.12);
  background: var(--ivory);
  color: var(--ox-2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .6);
}
.mem-cam:hover .ic { transform: rotate(-8deg); }
.mem-cam:active { transform: translateX(-50%) scale(0.92); }
.mem-flash {
  position: absolute; inset: 0; border-radius: 24px; background: radial-gradient(circle at center, rgba(255,255,255,.9) 0%, rgba(255,245,230,.4) 60%, transparent 80%);
  opacity: 0; pointer-events: none; z-index: 5;
}
.mem-flash.is-flashing { animation: memCamFlash .45s ease-out forwards; }
@keyframes memCamFlash { 0% { opacity: .9; transform: scale(.98); } 100% { opacity: 0; transform: scale(1.04); } }

/* Lightbox Modal */
.mem-modal {
  position: fixed; inset: 0; z-index: 120; width: 100vw; height: 100vh; max-width: none; max-height: none;
  padding: 0; margin: 0; border: 0; background: rgba(15, 3, 5, .93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: none; place-items: center; opacity: 0; transition: opacity .35s var(--ease);
}
.mem-modal[open] { display: grid; opacity: 1; }
.mem-modal-wrap {
  position: relative; width: min(92vw, 920px); max-height: 90vh;
  display: grid; grid-template-rows: 1fr auto; gap: 1rem; align-items: center; justify-items: center;
}
.mem-modal-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(31, 4, 7, .75); color: var(--on-dark);
  display: grid; place-items: center; cursor: pointer; transition: transform .2s, background-color .25s, color .25s;
}
.mem-modal-close:hover { color: var(--gold-hi); background: var(--wine); transform: scale(1.08); }
.mem-modal-close .ic { width: 22px; height: 22px; }
.mem-modal-figure { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mem-modal-img-box {
  max-height: 68vh; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .85); background: #000;
}
.mem-modal-img-box img { max-height: 68vh; max-width: min(88vw, 820px); object-fit: contain; width: auto; height: auto; display: block; }
.mem-modal-caption { margin-top: .9rem; text-align: center; color: var(--on-dark); max-width: 620px; }
.mem-modal-badge { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; color: var(--gold-2); margin-bottom: .25rem; }
.mem-modal-heading { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); font-weight: 400; margin: 0; color: var(--gold-hi); }
.mem-modal-text { margin: .3rem 0 0; font-family: var(--sans); font-size: .92rem; color: var(--on-dark-2); line-height: 1.4; }
.mem-modal-nav {
  position: absolute; top: 40%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(31, 4, 7, .85); color: var(--on-dark);
  display: grid; place-items: center; cursor: pointer; transition: all .25s;
}
.mem-modal-nav.prev { left: -64px; }
.mem-modal-nav.next { right: -64px; }
.mem-modal-nav:hover { background: var(--wine); color: var(--gold-hi); transform: translateY(-50%) scale(1.08); }
.mem-modal-nav .ic { width: 24px; height: 24px; }

@media (max-width: 1060px) {
  .mem-modal-nav.prev { left: 8px; }
  .mem-modal-nav.next { right: 8px; }
  .mem-modal-close { top: 8px; right: 8px; }
}

.steps { list-style: none; padding: 0; margin: 2rem 0 0; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .8rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--line-dark); color: var(--on-dark); font-size: 1.1rem; }
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps li [lang="ta"] { font-size: .95rem; }
.steps b { font-family: var(--sans); font-weight: 400; font-size: .76rem; letter-spacing: .22em; color: var(--gold-2); }

/* ═════════ PRESENCE ═════════ */
.presence-card {
  padding: clamp(2rem, 4vw, 3.2rem); display: grid; gap: 2rem;
  background: rgba(255, 251, 243, .8); border: 1px solid var(--line); position: relative;
  border-radius: var(--r-card); box-shadow: var(--shadow);
}
.field { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .5rem; }
.field > label, .field legend { font-family: var(--sans); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .66rem; color: var(--ink-2); padding: 0; margin-bottom: .3rem; }
.field label [lang="ta"], .field legend [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.field i { font-style: italic; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 50px; padding: .6rem 0; border: 0; border-bottom: 1px solid rgba(42, 24, 16, .3); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 1.3rem; transition: border-color .25s;
}
.field input::placeholder { color: var(--ink-3); font-style: italic; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wine); box-shadow: 0 1px 0 var(--wine); }
.field.has-error input { border-bottom-color: var(--wine-2); }
.field-err { margin: 0; color: var(--wine-2); font-family: var(--sans); font-size: .85rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: .15rem; height: 100%; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .5); transition: background-color .3s, border-color .3s, color .3s; }
.choice b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ox-2); transition: color .3s; }
.choice b[lang="ta"] { font-family: var(--ta-sans); font-weight: 600; font-size: 1rem; }
.choice small { font-family: var(--sans); font-size: .76rem; letter-spacing: .04em; color: var(--ink-3); transition: color .3s; }
.choice small[lang="ta"] { font-family: var(--ta-sans); }
.choice:hover > span { border-color: var(--gold); }
.choice input:checked + span { background: var(--ox-2); border-color: var(--ox-2); }
.choice input:checked + span b { color: var(--ivory); }
.choice input:checked + span small { color: var(--gold-hi); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.has-error .choices { outline: 1px solid var(--wine-2); outline-offset: 4px; }
.guests-field.is-hidden { display: none; }
.stepper { display: grid; grid-template-columns: 48px 80px 48px; gap: .5rem; align-items: center; }
.stepper input { width: 100%; min-height: 48px; text-align: center; border: 0; border-bottom: 1px solid rgba(42, 24, 16, .3); background: transparent; font: inherit; font-size: 1.6rem; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--wine); transition: background-color .25s, color .25s; }
.step-btn:hover { background: var(--ox-2); color: var(--ivory); }
.step-btn:disabled { opacity: .35; pointer-events: none; }
.form-hint { margin: -1rem 0 0; text-align: center; font-size: .98rem; color: var(--ink-3); font-style: italic; }
.presence-done { text-align: center; padding: 3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); background: rgba(255, 251, 243, .8); box-shadow: var(--shadow); }
.presence-done:focus { outline: none; }
.done-ic { width: 70px; height: 70px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ox-2); color: var(--gold-hi); animation: pop .7s var(--ease-out); }
.done-ic .ic { width: 30px; height: 30px; stroke-width: 2; }
.presence-done h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--ox-2); }
.presence-done p { color: var(--ink-2); margin: .6rem auto 0; max-width: 46ch; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }

/* ═════════ CLOSING ═════════ */
.closing { overflow: hidden; padding-bottom: calc(var(--sec-y) * .6); }
.closing-gopuram { position: absolute; left: 50%; bottom: -6%; width: min(90vw, 760px); transform: translateX(-50%); opacity: .14; pointer-events: none; }
.closing-gopuram .gopuram { width: 100%; height: auto; }
.closing .label { justify-content: center; }
.hosts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 3rem; border: 1px solid var(--line-dark); border-radius: var(--r-card); background: linear-gradient(135deg, rgba(255, 245, 225, .08), rgba(255, 245, 225, .02)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.host { padding: 2rem 1.2rem; }
.host + .host { border-left: 1px solid var(--line-dark); }
.host-label { margin: 0; font-family: var(--sans); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; font-size: .64rem; color: var(--gold-2); }
.host-label [lang="ta"] { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.host-name { margin: .7rem 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); color: var(--on-dark); line-height: 1.2; }
.host-name [lang="ta"] { font-family: var(--ta-serif); font-size: .72em; font-weight: 600; }
.host-place { margin: .3rem 0 0; color: var(--on-dark-2); font-style: italic; }
.share-card { position: relative; margin: 4rem auto 0; max-width: 940px; padding: 2rem clamp(1.4rem, 3vw, 2.6rem); border: 1px solid var(--line-dark); border-radius: var(--r-card); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; text-align: left; background: linear-gradient(135deg, rgba(255, 245, 225, .1), rgba(255, 245, 225, .03)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(232, 213, 163, .18), var(--shadow-dark); }
.share-card h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h3); color: var(--on-dark); }
.share-card h3 [lang="ta"] { font-family: var(--ta-serif); font-size: .7em; font-weight: 600; }
.share-card p { margin: .4rem 0 0; color: var(--on-dark-2); max-width: 46ch; }
.share-card .cta-row { margin-top: 0; flex: none; }
.footer { position: relative; text-align: center; margin-top: 5rem; padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); }
.footer-names { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); color: var(--on-dark); }
.footer-names span { font-family: var(--script); color: var(--gold-2); font-style: normal; font-size: .8em; }
.footer-meta { margin: .4rem 0 0; font-family: var(--sans); letter-spacing: .3em; font-size: .66rem; text-transform: uppercase; color: var(--on-dark-2); }

/* ═════════ DOCK / SHEET / TOAST ═════════ */
.dock { display: none; }
.sheet { border: 0; padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); width: min(100%, 460px); max-width: 100%; margin: auto auto 0; background: var(--grain), var(--ivory); color: var(--ink); box-shadow: var(--shadow); border-radius: var(--r-card) var(--r-card) 0 0; }
.sheet::backdrop { background: rgba(31, 4, 7, .6); backdrop-filter: blur(3px); }
.sheet h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: 300; color: var(--ox-2); font-size: var(--fs-h3); }
.sheet h2 [lang="ta"] { font-family: var(--ta-serif); font-size: .7em; }
.sheet ol { margin: 0 0 1.5rem; padding-left: 1.3rem; display: grid; gap: .5rem; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 16px);
  padding: .75rem 1.3rem; border-radius: 999px; background: var(--ox-1); color: var(--gold-hi);
  font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 999px) {
  .hero { align-items: start; padding-bottom: 6.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-arch { order: -1; width: min(62vw, 300px, 40svh); }
  .hero-arch figcaption { margin-top: 1.1rem; }
  .hero-grid { gap: 1.8rem; }
  .hero { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 1.6rem); }
  .hero-content { text-align: center; }
  .hero-tamil { justify-content: center; }
  .hero-tamil { white-space: nowrap; margin-bottom: .8rem; }
  .hero-tamil::before, .hero-tamil::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
  .hero-names { align-items: center; }
  .hero-names .nm:last-child { padding-left: 0; }
  .hero-names .amp { margin-left: 0; }
  .hero-meta { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-mandala { right: -40%; top: 2%; }
  .inv-grid, .venue-grid, .mem-grid, .countdown-grid { grid-template-columns: 1fr; }
  .verse { position: static; text-align: center; }
  .verse .label { justify-content: center; }
  .verse-en { margin-inline: auto; border-left: 0; padding-left: 0; }
  .panchangam { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panchangam li:nth-child(4) { border-left: 0; }
  .panchangam li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .countdown-copy { text-align: center; }
  .countdown-copy .label { justify-content: center; }
  .countdown-copy .cta-row { justify-content: center; }
  .map-frame { height: clamp(320px, 52svh, 440px); }
  .mem-photos { max-width: 520px; width: 100%; margin: 0 auto; }
  .hosts { grid-template-columns: 1fr; }
  .host + .host { border-left: 0; border-top: 1px solid var(--line-dark); }
  .share-card { flex-direction: column; text-align: center; }
  .share-card .cta-row { justify-content: center; }
}
@media (min-width: 1000px) { .ev-count { display: none; } }
@media (max-width: 720px) {
  :root { --topbar-h: 58px; }
  .duo { grid-template-columns: 1fr; max-width: 420px; gap: 1rem; }
  .weds { flex-direction: row; }
  .weds-line { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
  .sec-head.split { flex-direction: column; align-items: flex-start; }
  .choices { grid-template-columns: 1fr; }
  .hero-meta dd { font-size: 1.02rem; }
  .dock {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 241, 228, .88); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(31, 4, 7, .5);
    transform: translateY(160%); transition: transform .6s var(--ease-out);
  }
  body.is-in .dock { transform: none; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 58px; text-decoration: none; color: var(--ink-3); font-family: var(--sans); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; transition: color .25s; }
  .dock a [lang="ta"] { font-family: var(--ta-sans); letter-spacing: 0; text-transform: none; font-size: .72rem; }
  .dock a .ic { width: 20px; height: 20px; }
  .dock a.is-active { color: var(--wine); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .panchangam { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panchangam li:nth-child(odd) { border-left: 0; }
  .panchangam li:nth-child(4) { border-left: 1px solid var(--line); }
  .panchangam li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .timer span { font-size: .54rem; letter-spacing: .14em; }
  .btn { padding-inline: 1.2rem; letter-spacing: .14em; }
}

/* ═════════ HERO: PALACE ARCH & WEDDING HALL ═════════ */
.hero.hero-hall {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 1.2rem) var(--gutter) calc(env(safe-area-inset-bottom) + 3.5rem);
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #fffbf2 0%, #f7e8d5 60%, #eed5bd 100%);
  position: relative;
  overflow: hidden;
}
.hero-hall .hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hh-art, .hh-layer { position: absolute; inset: 0; }
.hh-layer .scene-svg, .ev-layer .scene-svg { width: 100%; height: 100%; display: block; }
.hh-art.has-art .hh-layer, .ev-art.has-art .ev-layer { display: none; }
.hh-art .scene-art, .ev-art .scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hh-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, 140vw);
  height: 75%;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 252, 245, 0.75), rgba(255, 250, 240, 0.45) 55%, transparent 100%);
}
.hero-hall .hero-grid {
  display: block;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-hall .hero-content {
  text-align: center;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(190, 145, 60, 0.45);
  box-shadow: 0 20px 50px rgba(58, 10, 20, 0.12), 0 2px 14px rgba(190, 145, 60, 0.18), inset 0 0 40px rgba(255, 250, 240, 0.6);
  border-radius: var(--r-card);
  padding: clamp(1.8rem, 4.2vw, 3.2rem) clamp(1.2rem, 3.8vw, 2.8rem);
  margin: 0 auto;
}
.hero-hall .hero-tamil {
  justify-content: center;
  color: var(--maroon);
  font-weight: 700;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem);
  margin-bottom: 0.8rem;
}
.hero-hall .hero-tamil::before,
.hero-hall .hero-tamil::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--gold-grad);
}
.hero-hall .kicker {
  color: #7a5a17;
  font-weight: 600;
  letter-spacing: .32em;
}
.hero-hall .hero-names {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 .35em;
  line-height: 1.05;
  color: var(--maroon);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
  margin-top: .4rem;
}
.hero-hall .hero-names .nm {
  font-size: clamp(2.8rem, 1.8rem + 4.8vw, 5.8rem);
  font-weight: 500;
  color: var(--maroon);
}
.hero-hall .hero-names .amp {
  color: var(--gold-antique);
  font-size: clamp(2.2rem, 1.4rem + 2.5vw, 3.8rem);
  margin: 0 .1em;
}
.hero-hall .hero-meta {
  margin: 1.6rem auto 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(190, 145, 60, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-radius: var(--r-md);
}
.hero-hall .hero-meta dt {
  color: #7a5a17;
  font-weight: 600;
}
.hero-hall .hero-meta dd {
  color: var(--maroon);
  font-weight: 600;
  font-size: 1.25rem;
}
.hero-hall .hero-meta-date dd {
  color: var(--maroon);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem);
}
.hero-hall .hero-venue {
  margin-top: 1rem;
  color: #3b180d;
  font-weight: 500;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.15rem);
}
.hero-hall .cta-row {
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: .8rem;
}
.hero-bless {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(0.8rem + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 163, .7);
  background: rgba(58, 10, 20, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-champagne);
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.hero-bless [lang="ta"] { letter-spacing: 0; text-transform: none; font-family: var(--ta-sans); font-size: .9rem; }
.hero-bless:hover { background: rgba(90, 15, 30, .9); }
.hero-bless[hidden] { display: none; }
.hero-hall .scroll-cue { display: none; }

/* scene micro-animations (shared by hero and ceremonies) */
.chand { transform-box: fill-box; transform-origin: 50% 0; animation: chand-sway 6s ease-in-out infinite alternate; }
.scene-svg .glow { animation: glow-tw 2.2s ease-in-out infinite alternate; }
.scene-svg .bulb { animation: glow-tw 1.8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.27s); }
.scene-svg .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame-fl 1.2s ease-in-out infinite alternate; }
.scene-svg .bokeh { animation: bokeh-fl 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.6s); }
.fig .fig-in { transform-box: fill-box; transform-origin: 50% 100%; }
.f-dance .fig-in { animation: fig-hop .7s ease-in-out infinite alternate; }
.f-dance:nth-of-type(odd) .fig-in { animation-delay: -.35s; }
.f-clap .fig-in, .f-play .fig-in { animation: fig-bob 1s ease-in-out infinite alternate; }
.f-bless .fig-in { animation: fig-sway 3s ease-in-out infinite alternate; }
.f-couple .fig-in, .f-walk .fig-in { animation: fig-sway 4.5s ease-in-out infinite alternate; }
.scene-svg .garl { animation: garl 3s ease-in-out infinite alternate; }
@keyframes chand-sway { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }
@keyframes glow-tw { from { opacity: .55; } to { opacity: 1; } }
@keyframes flame-fl { 0% { scale: 1 1; } 50% { scale: .9 1.12; } 100% { scale: 1.06 .94; } }
@keyframes bokeh-fl { from { opacity: .35; translate: 0 0; } to { opacity: .9; translate: 0 -12px; } }
@keyframes fig-hop { from { translate: 0 0; rotate: -4deg; } to { translate: 0 -8px; rotate: 4deg; } }
@keyframes fig-bob { from { translate: 0 0; } to { translate: 0 -3px; } }
@keyframes fig-sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
@keyframes garl { from { translate: 0 0; } to { translate: 0 4px; } }
.petal-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal-rain i { position: absolute; top: -20px; width: 11px; height: 8px; border-radius: 60% 0 60% 0; opacity: .9; animation: rain linear infinite; }
@keyframes rain { from { translate: 0 -5vh; rotate: 0deg; } to { translate: var(--drift) 110vh; rotate: 540deg; } }

/* ═════════ CEREMONIES: venue line inside the event cards ═════════ */
.ev-venue { margin: .5rem 0 0; display: flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; color: var(--ink-2); }
.ev-venue .ic { color: var(--wine); }
.ev-venue [lang="ta"] { font-family: var(--ta-sans); font-size: .88rem; }

@media (max-width: 720px) {
  .hero.hero-hall { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 1rem); }
  .hero-hall .hero-scene { top: auto; height: 100%; }
  .hero-hall .hh-art { top: auto; height: 54%; }
  .hh-glow { height: 58%; }
  .hero-hall .hero-meta dd { font-size: 1rem; }
  .hero-hall .cta-row .btn { min-height: 46px; padding-inline: 1.1rem; }
  .hero-bless { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chand, .scene-svg .glow, .scene-svg .bulb, .scene-svg .flame, .scene-svg .bokeh, .fig .fig-in, .scene-svg .garl, .ev-plaque-overlay { animation: none !important; }
  .petal-rain { display: none; }
}

/* ═════════ HERO v2: arched wedding-hall portrait + ambient background ═════════ */
.hero.hero-hall { background: #f3e2cc; }
.hh-bg { position: absolute; inset: -6%; overflow: hidden; }
.hh-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: blur(22px) saturate(1.15) brightness(1.06); opacity: .7; animation: hh-drift 28s ease-in-out infinite alternate; }
@keyframes hh-drift { from { transform: scale(1.05) translate(-1.5%, 0); } to { transform: scale(1.14) translate(1.5%, -2%); } }
.hero-hall .hh-glow { top: auto; bottom: -10%; left: 30%; width: 120vw; height: 90%; background: radial-gradient(closest-side, rgba(255, 251, 243, .92), rgba(255, 248, 238, .55) 55%, transparent 100%); }
.hh-rays { position: absolute; left: 70%; top: 48%; width: 150vmax; height: 150vmax; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 236, 190, .28) 0deg 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(closest-side, #000, transparent 70%); mask: radial-gradient(closest-side, #000, transparent 70%); animation: hh-spin 80s linear infinite; }
@keyframes hh-spin { to { rotate: 360deg; } }

.hero-hall .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); max-width: 1220px; }
.hero-hall .hero-content { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; text-align: left; }
.hero-hall .hero-tamil, .hero-hall .hero-names, .hero-hall .cta-row { justify-content: flex-start; }
.hero-hall .hero-tamil::before { display: none; }
.hero-hall .hero-names { flex-direction: column; align-items: flex-start; gap: 0; }
.hero-hall .hero-names .nm:last-child { padding-left: clamp(1rem, 5vw, 4.5rem); }
.hero-hall .hero-names .amp { margin: -.05em 0 -.1em clamp(.4rem, 2vw, 2rem); }
.hero-hall .hero-names .nm {
  background: linear-gradient(100deg, var(--maroon) 0%, var(--maroon) 40%, #c9a24b 50%, var(--maroon) 60%, var(--maroon) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; animation: hh-shimmer 7s ease-in-out infinite;
}
.hero-hall .hero-names .nm:last-child { animation-delay: .6s; }
@keyframes hh-shimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
.hero-hall .hero-meta { margin-left: 0; margin-right: 0; background: rgba(255, 252, 246, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-hall .hero-venue { text-align: left; }

/* arched portrait */
.hh-arch { margin: 0; justify-self: center; width: min(100%, 400px, calc((100svh - var(--topbar-h) - 7rem) * .5625)); display: grid; justify-items: center; gap: 1rem; perspective: 1200px; }
.hh-arch-frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 8px; border: 0; border-radius: 999px 999px 26px 26px; background: var(--gold-grad); box-shadow: 0 34px 70px -26px rgba(90, 15, 30, .55), 0 0 0 1px rgba(140, 107, 31, .4); cursor: pointer; transition: transform .5s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; }
.hh-arch-frame::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(201, 162, 75, .55); border-radius: inherit; pointer-events: none; }
.hh-arch-frame:hover { box-shadow: 0 40px 80px -24px rgba(90, 15, 30, .65), 0 0 0 1px rgba(140, 107, 31, .5), 0 0 40px rgba(232, 213, 163, .55); }
.hh-arch-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 8px; }
.hh-arch-mask { position: absolute; inset: 8px; overflow: hidden; border-radius: 999px 999px 20px 20px; background: #e9d6b4; }
.hh-arch-mask img { width: 100%; height: 100%; object-fit: cover; animation: hh-kenburns 18s ease-in-out infinite alternate; }
@keyframes hh-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-2%); } }
.hh-arch-shine { position: absolute; inset: 8px; border-radius: 999px 999px 20px 20px; background: linear-gradient(115deg, transparent 35%, rgba(255, 250, 230, .55) 48%, transparent 60%); background-size: 260% 100%; background-position: 130% 0; animation: hh-shine 6s ease-in-out infinite; pointer-events: none; mix-blend-mode: soft-light; }
@keyframes hh-shine { 0%, 60% { background-position: 130% 0; } 90%, 100% { background-position: -30% 0; } }
.hh-arch figcaption { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #7a5a17; }
.hh-arch figcaption [lang="ta"] { letter-spacing: 0; text-transform: none; font-family: var(--ta-sans); font-size: .9rem; }
.hh-arch figcaption .ic { color: var(--gold-antique); animation: glow-tw 1.6s ease-in-out infinite alternate; }

/* pointer sparkle trail */
.hh-sparks { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hh-spark { position: absolute; width: 10px; height: 10px; translate: -50% -50%; background: radial-gradient(circle, #fff8dc 0 22%, rgba(232, 197, 110, .9) 30%, transparent 62%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: hh-spark .9s ease-out forwards; }
@keyframes hh-spark { from { opacity: 1; scale: 1; } to { opacity: 0; scale: .2; translate: -50% calc(-50% + 26px); rotate: 120deg; } }

@media (max-width: 899px) {
  .hero-hall .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hh-arch { order: -1; width: min(58vw, 250px, calc(42svh * .5625)); gap: .6rem; }
  .hero-hall .hero-content { text-align: center; }
  .hero-hall .hero-tamil, .hero-hall .cta-row { justify-content: center; }
  .hero-hall .hero-tamil::before { display: block; }
  .hero-hall .hero-names { align-items: center; }
  .hero-hall .hero-names .nm:last-child { padding-left: 0; }
  .hero-hall .hero-names .amp { margin-left: 0; }
  .hero-hall .hero-meta { margin-inline: auto; }
  .hero-hall .hero-venue { text-align: center; }
  .hh-rays { left: 50%; top: 22%; }
  .hero-hall .hh-glow { left: 50%; }
}
@media (max-width: 720px) {
  .hero-hall .hero-scene { top: 0; }
  .hero-hall .hero-names .nm { font-size: clamp(2.5rem, 1.6rem + 6vw, 3.4rem); }
  .hero-hall .cta-row { gap: .55rem; }
  .hero-hall .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-bg img, .hh-rays, .hh-arch-mask img, .hh-arch-shine, .hero-hall .hero-names .nm { animation: none !important; }
  .hh-sparks { display: none; }
}

/* ═════════ REDUCED MOTION ═════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-content > * { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
  .g-rope, .rope-tassel i, .fs-progress i { animation: none !important; }
  .gate.is-entering .fs { transform: none; transition: opacity .6s ease !important; }
}


/* ───────── Auto Scroll Control ───────── */
#autoScrollBtn.is-active {
  background: var(--gold-champagne);
  color: var(--maroon);
  box-shadow: 0 0 12px rgba(232, 213, 163, 0.6);
}
#heroAutoScroll.is-active {
  background: var(--maroon);
  color: var(--gold-champagne);
  border-color: var(--gold-antique);
}

/* ───────── Royal Couple Cards (No Photo Reveal) ───────── */
.couple-card {
  position: relative;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(232, 213, 163, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-radius: var(--r-card);
  padding: clamp(2rem, 5vw, 2.8rem) clamp(1.4rem, 4vw, 2.4rem);
  color: var(--ivory);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.couple-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 213, 163, 0.75);
}
.couple-emblem {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
}
.emblem-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-antique);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(232, 213, 163, 0.25), inset 0 0 10px rgba(232, 213, 163, 0.15);
}
.emblem-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(232, 213, 163, 0.6);
  border-radius: 50%;
}
.emblem-char {
  font-family: var(--script);
  font-size: 2.8rem;
  color: var(--gold-champagne);
  line-height: 1;
}
.couple-card .role {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 0.4rem;
}
.couple-card .person {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  color: #fff9f0;
  margin: 0.2rem 0;
}
.couple-card .degree {
  font-size: 0.92rem;
  color: rgba(255, 240, 220, 0.85);
  margin: 0.2rem 0 1.2rem;
}
.card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: var(--gold-antique);
}
.card-divider i {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold-grad);
  opacity: 0.5;
}
.couple-card .family {
  text-align: left;
  margin-top: 1rem;
}
.couple-card .family > div {
  margin-bottom: 0.75rem;
}
.couple-card .family dt {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-antique);
}
.couple-card .family dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff6e8;
  line-height: 1.4;
}

/* ───────── Memories Album Cards ───────── */
.mem-card-art {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a0810, #4a0f1c);
  border: 1px solid rgba(232, 213, 163, 0.4);
  border-radius: var(--r-sm);
  padding: 1.5rem;
  text-align: center;
  color: var(--gold-champagne);
}
.mem-card-art .mem-ic {
  display: inline-flex;
  margin-bottom: 0.6rem;
  color: var(--gold-antique);
}
.mem-card-art .mem-ic .ic {
  width: 38px;
  height: 38px;
}
.mem-card-label {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
  color: #fff4e0;
}
.mem-cam-pill {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(58, 10, 20, 0.88);
  border: 1px solid rgba(232, 213, 163, 0.6);
  border-radius: 999px;
  color: var(--gold-champagne);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ═════════ Heart-shaped venue map ═════════ */
.map-card { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.map-card .map-frame {
  width: min(100%, 560px); height: auto; aspect-ratio: 100 / 92; margin: 0; border: 0; outline: 0; border-radius: 0;
  box-shadow: none; background: #efe3cc;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92' preserveAspectRatio='none'%3E%3Cpath d='M50 91 C21 72 1 54 1 29 C1 13 13 1 28 1 C38 1 46 7 50 16 C54 7 62 1 72 1 C87 1 99 13 99 29 C99 54 79 72 50 91 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92' preserveAspectRatio='none'%3E%3Cpath d='M50 91 C21 72 1 54 1 29 C1 13 13 1 28 1 C38 1 46 7 50 16 C54 7 62 1 72 1 C87 1 99 13 99 29 C99 54 79 72 50 91 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 24px 40px rgba(90, 15, 30, .3));
  animation: heart-beat 3.2s ease-in-out infinite;
}
.map-card .map-frame iframe { inset: -6% -4% 0; width: 108%; height: 112%; }   /* push Google's corner chrome outside the heart */
.map-heart-line { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(100%, 560px); aspect-ratio: 100 / 92; overflow: visible; pointer-events: none; animation: heart-beat 3.2s ease-in-out infinite; }
.map-heart-line path { fill: none; stroke: var(--gold-antique); stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(232, 197, 110, .7)); }
@keyframes heart-beat { 0%, 70%, 100% { scale: 1; } 78% { scale: 1.025; } 86% { scale: .995; } 92% { scale: 1.015; } }
.map-card .map-tag { position: relative; left: auto; right: auto; bottom: auto; width: min(100%, 460px); }
.map-card .map-load { padding-top: 10%; }
@media (max-width: 899px) { .map-card .map-frame, .map-heart-line { width: min(100%, 420px); } }
@media (prefers-reduced-motion: reduce) { .map-card .map-frame, .map-heart-line { animation: none; } }

/* ═════════ Photo album: real photos ═════════ */
.mem-frame .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mem-frame .mem-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 2.4rem .8rem .9rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(.85rem, .75rem + .4vw, 1.1rem); color: #fff6e6; background: linear-gradient(transparent, rgba(30, 5, 10, .78)); pointer-events: none; }
.mem-frame .mem-cap [lang="ta"] { font-family: var(--ta-sans); font-style: normal; font-size: .85em; }
.mem-frame .photo.mem-layer.is-active img { animation: mem-zoom 9s ease-in-out infinite alternate; }
@keyframes mem-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
button.mem-cam-pill { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; min-height: 40px; cursor: pointer; z-index: 5; border: 1px solid rgba(232, 213, 163, .55); color: var(--gold-champagne); background: rgba(58, 10, 20, .75); transition: background-color .25s; }
button.mem-cam-pill:hover { background: rgba(90, 15, 30, .9); }
@media (prefers-reduced-motion: reduce) { .mem-frame .photo.mem-layer.is-active img { animation: none; } }

/* ═════════ Photo collage (1 large + 5) ═════════ */
#memories .mem-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); max-width: 1320px; }
.mem-photos.mem-collage-wrap { height: auto; display: grid; gap: 1rem; }
.mem-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: clamp(.45rem, 1vw, .8rem); aspect-ratio: 1 / 1; width: 100%; }
.mc-tile { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; border-radius: 18px; background: #2a0810; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); outline: 1px solid rgba(232, 213, 163, .28); outline-offset: 3px; transition: transform .45s var(--ease), outline-color .3s, opacity .45s var(--ease); }
.mc-1 { grid-column: span 2; grid-row: span 2; border-radius: 160px 160px 18px 18px / 120px 120px 18px 18px; }
.mc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.mc-tile:hover { transform: translateY(-3px); outline-color: var(--gold-antique); }
.mc-tile:hover img { transform: scale(1.06); }
.mc-tile:focus-visible { outline: 2px solid var(--focus); }
.mc-1 img { animation: mem-zoom 12s ease-in-out infinite alternate; }
.mc-tile.is-swapping { opacity: 0; transform: scale(.96); }
.mc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .7rem .6rem; text-align: left; font-family: var(--serif); font-style: italic; font-size: clamp(.78rem, .7rem + .3vw, 1rem); color: #fff6e6; background: linear-gradient(transparent, rgba(30, 5, 10, .8)); pointer-events: none; }
.mc-1 .mc-cap { font-size: clamp(1rem, .9rem + .5vw, 1.35rem); padding: 2.6rem 1.1rem 1rem; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; }
.mc-status { margin: 0; font-style: italic; color: var(--on-dark-2); font-size: .98rem; }
.mc-foot .mem-cam-pill { position: static; transform: none; }
.mem-collage[data-count="1"] .mc-1 { grid-column: 1 / -1; grid-row: 1 / -1; }
@media (max-width: 999px) { #memories .mem-grid { grid-template-columns: 1fr; } .mem-photos.mem-collage-wrap { max-width: 640px; } .mc-foot { justify-content: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .mc-1 img { animation: none; } }
