/* ============ Themes ============ */
:root,
[data-theme="maroon"] {
  --night: #14050b;
  --paper: #3a0d1a;
  --paper-glow: #5a1729;
  --band: #6d2b3c;
  --inner: #2b0812;
  --field: rgba(255, 226, 206, .08);
  --field-line: rgba(255, 226, 206, .28);
}
[data-theme="midnight"] {
  --night: #0b1029;
  --paper: #111735;
  --paper-glow: #1d2552;
  --band: #363d62;
  --inner: #0f1430;
  --field: rgba(170, 180, 230, .1);
  --field-line: rgba(251, 243, 226, .28);
}
[data-theme="emerald"] {
  --night: #03110d;
  --paper: #0d2a23;
  --paper-glow: #164036;
  --band: #2b5046;
  --inner: #0a211b;
  --field: rgba(200, 240, 220, .08);
  --field-line: rgba(251, 243, 226, .28);
}
[data-theme="plum"] {
  --night: #120410;
  --paper: #2d0b2a;
  --paper-glow: #4a1745;
  --band: #5a2655;
  --inner: #220820;
  --field: rgba(250, 210, 240, .08);
  --field-line: rgba(251, 243, 226, .28);
}
:root {
  --gold: #e6c47c;
  --gold-2: #d6b265;
  --gold-deep: #a8843c;
  --saffron: #f0a238;
  --rani: #d8407c;
  --cream: #fcf4e3;
  --cream-soft: rgba(252, 244, 227, .82);
  --cream-faint: rgba(252, 244, 227, .58);
  --line: rgba(230, 196, 124, .3);
  --script: var(--script-latin, 'Great Vibes'), 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', 'Noto Serif Gurmukhi', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  --gurmukhi: 'Noto Serif Gurmukhi', 'Cormorant Garamond', serif;
  --gold-text: linear-gradient(100deg, #b8904a 0%, #f3dc9c 22%, #fff3cf 32%, #e6c47c 44%, #c99d52 62%, #f6e2a6 80%, #b8904a 100%);
  --stage-w: 480px;
  --ease: cubic-bezier(.22, .9, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19.5px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; height: 100svh; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(230, 196, 124, .35); }

/* Night behind the card on wide screens */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(230,196,124,.6), transparent 60%),
    radial-gradient(1px 1px at 30% 82%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(110% 80% at 50% 0%, var(--paper-glow) 0%, var(--night) 60%, #050208 100%);
}
.petals { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100vw, var(--stage-w)); height: 100vh; z-index: 40; pointer-events: none; }

.stage {
  position: relative;
  width: 100%;
  max-width: var(--stage-w);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(230,196,124,.12), 0 0 90px rgba(0,0,0,.6);
  overflow-x: clip;
}

/* ============ Opening ============ */
.opening {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #0d1430 center top / cover no-repeat;
  isolation: isolate;
}
.opening video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  z-index: 0;
}
.opening::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 85%, transparent) 80%, var(--paper));
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
}
body.opened .opening::after { opacity: 1; }
.opening::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; z-index: 1; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 20%, rgba(6,8,26,.6), transparent 75%);
  opacity: 0; transition: opacity 1.8s ease;
}
body.names-in .opening::before { opacity: 1; }
.sky-stars {
  position: absolute; left: 0; right: 0; top: 0; height: 32%; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 14% 22%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 32% 64%, #fff, transparent 70%),
    radial-gradient(1.6px 1.6px at 66% 30%, #fff, transparent 70%),
    radial-gradient(1.1px 1.1px at 86% 58%, #fff, transparent 70%),
    radial-gradient(1.3px 1.3px at 48% 14%, #fff, transparent 70%),
    radial-gradient(1px 1px at 8% 48%, #fff, transparent 70%),
    radial-gradient(1.2px 1.2px at 74% 8%, #fff, transparent 70%);
  animation: twinkle 3.2s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }

.invited {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  text-align: center; padding: calc(env(safe-area-inset-top, 0px) + 60px) 18px 46px;
  background: linear-gradient(to bottom, rgba(8,12,32,.97), rgba(8,12,32,.95) 62%, rgba(8,12,32,.78) 80%, rgba(8,12,32,0));
  pointer-events: none;
  transition: opacity .9s ease;
}
.invited > * { animation: floatIn 1.6s var(--ease) both .2s; }
@keyframes floatIn { from { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
.invited-title {
  margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(38px, min(12vw, 7.4vh), 58px); line-height: 1.15;
  display: inline-block; padding: 0 .2em;
  background: var(--gold-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.6));
  animation: shimmer 7s linear infinite;
}
.invited > .invited-title { animation: floatIn 1.6s var(--ease) both .2s, shimmer 7s linear 1.8s infinite; }
.invited-sub {
  text-wrap: balance; line-height: 1.7;
  margin: 4px 0 0; font-family: var(--caps); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.door-hit {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.door-hit:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.tap-hint {
  position: absolute; left: 50%; bottom: max(4.5%, calc(env(safe-area-inset-bottom) + 16px)); z-index: 2;
  transform: translateX(-50%);
  margin: 0; padding: 9px 22px; border-radius: 999px; white-space: nowrap;
  font-style: italic; font-size: 19px; color: var(--cream);
  background: rgba(10, 8, 20, .38); border: 1px solid rgba(230,196,124,.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: pulseRing 2.4s ease-out infinite;
  transition: opacity .6s ease;
  pointer-events: none;
}
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(230,196,124,.45); } 80%, 100% { box-shadow: 0 0 0 16px rgba(230,196,124,0); } }

.hero-names {
  position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 2;
  text-align: center; padding: 0 22px;
  pointer-events: none;
}
.hero-names > * { opacity: 0; transform: translateY(12px); filter: blur(8px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
body.names-in .hero-names > * { opacity: 1; transform: none; filter: none; }
body.names-in .hero-names .welcome { transition-delay: .1s; }
body.names-in .hero-names .names { transition-delay: .45s; }
body.names-in .hero-names .ornament { transition-delay: .9s; }
body.names-in .hero-names .city { transition-delay: 1.2s; }
.hero-names .guest-line { margin: 0 0 4px; font-style: italic; font-size: 18px; color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero-names .welcome { margin: 0; font-size: 17.5px; font-style: italic; color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero-names .names {
  margin: 0; font-weight: 400; font-family: var(--script); font-size: clamp(38px, min(13vw, 6.6vh), 62px); line-height: 1.02;
  display: flex; flex-direction: column; align-items: center;
}
.hero-names .names span {
  background: var(--gold-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .25em;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.55));
  animation: shimmer 7s linear infinite;
}
.hero-names .names .amp { font-size: .5em; line-height: .85; }
.hero-names .ornament { width: 190px; height: 34px; margin: 6px auto 2px; display: block; }
.hero-names .city { margin: 0; font-family: var(--caps); font-size: 13px; font-weight: 500; letter-spacing: .36em; color: var(--cream); text-shadow: 0 1px 6px #000, 0 0 14px rgba(0,0,0,.8); }

.scroll-cue {
  position: absolute; left: 50%; bottom: max(3%, calc(env(safe-area-inset-bottom) + 10px)); z-index: 4;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--cream);
  font-family: var(--script); font-size: 32px; line-height: 1.1;
  opacity: 0; pointer-events: none; transition: opacity 1s ease 1.4s;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

body.opening-now .invited { opacity: 0; }
body.opening-now .tap-hint { opacity: 0; animation: none; }
body.opening-now .door-hit, body.opened .door-hit { pointer-events: none; }
body.opened .invited, body.opened .tap-hint { display: none; }
body.opened .scroll-cue { opacity: 1; pointer-events: auto; }

/* ============ Ornament: draws itself ============ */
.ornament use, .ornament-row use { stroke-dasharray: 260; stroke-dashoffset: 260; }
body.names-in .hero-names .ornament use { animation: draw 2.4s var(--ease) forwards 1s; }
.reveal.in .ornament-row use { animation: draw 2.2s var(--ease) forwards .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }

/* ============ Paper ============ */
.paper {
  position: relative;
  padding: 0 0 20px;
  background-color: var(--paper);
  background-image:
    radial-gradient(1px 1px at 18px 26px, rgba(255,255,255,.4), transparent 70%),
    radial-gradient(1.4px 1.4px at 140px 90px, rgba(230,196,124,.55), transparent 70%),
    radial-gradient(1px 1px at 70px 170px, rgba(255,255,255,.3), transparent 70%),
    radial-gradient(1.2px 1.2px at 200px 210px, rgba(230,196,124,.4), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23e6c47c' stroke-opacity='.075' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='32'/%3E%3Ccircle cx='64' cy='0' r='32'/%3E%3Ccircle cx='0' cy='64' r='32'/%3E%3Ccircle cx='64' cy='64' r='32'/%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23e6c47c' fill-opacity='.08'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 60% at 50% 30%, var(--paper-glow), transparent 70%);
  background-size: 240px 240px, 240px 240px, 240px 240px, 240px 240px, 64px 64px, 160px 160px, 100% 100%;
}
/* Phulkari: a band of embroidered stars in saffron, rani pink and gold */
.phulkari {
  height: 26px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Cpath d='M0 2.5H52M0 23.5H52' stroke='%23e6c47c' stroke-width='1'/%3E%3Cg transform='translate(26 13)'%3E%3Crect x='-6' y='-6' width='12' height='12' fill='%23f0a238'/%3E%3Crect x='-6' y='-6' width='12' height='12' fill='%23f0a238' transform='rotate(45)'/%3E%3Crect x='-3.2' y='-3.2' width='6.4' height='6.4' fill='%23d8407c' transform='rotate(45)'/%3E%3Ccircle r='1.4' fill='%23fff3cf'/%3E%3C/g%3E%3Cg fill='%23e6c47c'%3E%3Cpath d='M0 9L4 13L0 17ZM52 9L48 13L52 17Z'/%3E%3Ccircle cx='12' cy='13' r='1.3'/%3E%3Ccircle cx='40' cy='13' r='1.3'/%3E%3C/g%3E%3Cg fill='%23d8407c'%3E%3Ccircle cx='8' cy='6.5' r='1'/%3E%3Ccircle cx='8' cy='19.5' r='1'/%3E%3Ccircle cx='44' cy='6.5' r='1'/%3E%3Ccircle cx='44' cy='19.5' r='1'/%3E%3C/g%3E%3C/svg%3E") center / 52px 26px repeat-x,
    var(--inner);
  border-top: 1px solid rgba(0,0,0,.35); border-bottom: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.phulkari.slim { height: 20px; background-size: 40px 20px, auto; opacity: .85; margin: 72px 0 0; }

.sec { position: relative; padding: 68px 24px 8px; text-align: center; }
.sec-title {
  margin: 0; font-family: var(--script); font-weight: 400; font-size: 50px; line-height: 1.2;
  display: inline-block; padding: 0 .25em .06em;
  background: var(--gold-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
.reveal .sec-title { opacity: 0; transform: translateY(10px) scale(.97); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.reveal.in .sec-title { opacity: 1; transform: none; filter: none; }
.ornament-row { display: block; width: 168px; height: 30px; margin: 4px auto 24px; }
.lead { margin: 0 auto; max-width: 30ch; font-size: 21px; line-height: 1.6; color: var(--cream); }
.muted { color: var(--cream-soft); }
.small-caps { font-family: var(--caps); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-faint); }
.link-gold {
  display: inline-block; margin-top: 6px; color: var(--gold); font-style: italic; font-size: 17.5px;
  text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; padding-bottom: 2px;
  transition: background-size .4s var(--ease), color .2s;
}
.link-gold:hover { color: #fff3cf; background-size: 0 1px; background-position: right bottom; }
.btn-gold {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 32px; border-radius: 999px;
  border: 1px solid rgba(246,226,166,.6);
  background: linear-gradient(170deg, #c9a159 0%, #8c6a2f 55%, #6a4f22 100%);
  color: #fff8e6; text-decoration: none; cursor: pointer;
  font-family: var(--caps); font-size: 13.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s ease, filter .2s ease;
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-gold:hover { filter: brightness(1.1); }
.btn-gold:active { transform: scale(.97); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 250ms); }
.reveal.in .stagger > * { opacity: 1; transform: none; }

/* ============ Date + scratch ============ */
.scratch-hint { margin: 0 0 22px; font-style: italic; font-size: 20px; color: var(--cream); }
.scratch-hint .spark { color: var(--gold); font-style: normal; margin: 0 8px; display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scratch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 380px; margin: 0 auto; }
.scratch { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scratch-box {
  position: relative; width: 100%; aspect-ratio: 108 / 132; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.15)), var(--inner);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.scratch-value { font-size: 50px; line-height: 1; font-weight: 600; color: var(--gold); }
.scratch-value.word { font-family: var(--script); font-weight: 400; font-size: 32px; padding: 0 4px; }
.scratch canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab;
  transition: opacity .8s ease;
}
.scratch canvas.gone { opacity: 0; pointer-events: none; }
.scratch .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%) 150% 0 / 250% 100% no-repeat;
  animation: foil 3.2s ease-in-out infinite; mix-blend-mode: overlay;
}
.scratch:nth-child(2) .shine { animation-delay: .4s; }
.scratch:nth-child(3) .shine { animation-delay: .8s; }
.scratch canvas.gone + .shine { display: none; }
@keyframes foil { 0%, 40% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.scratch-label { font-family: var(--caps); font-size: 12px; font-weight: 500; letter-spacing: .3em; color: var(--cream-faint); }
.date-after { margin-top: 28px; opacity: .5; transition: opacity 1s ease; }
.date-after.shown { opacity: 1; }
.date-after .when { margin: 0; font-family: var(--script); font-size: 38px; color: var(--gold); line-height: 1.2; }
.date-after .where { margin: 2px 0 0; font-style: italic; color: var(--cream-soft); }
.sparkle {
  position: absolute; width: 9px; height: 9px; pointer-events: none; z-index: 5;
  background: radial-gradient(circle, #fff7d6 0 30%, #e6c47c 45%, transparent 70%);
  border-radius: 50%; animation: spark 1.2s ease-out forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

/* ============ Arch invitation card ============ */
.arch-wrap { padding: 80px 18px 8px; }
.arch-card { position: relative; container-type: inline-size; max-width: 440px; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.arch-top { display: block; width: 100%; height: auto; overflow: visible; }
.arch-body { display: flow-root; position: relative; background: var(--band); padding: 0 2.25cqw 2.25cqw; margin-top: -2px; }
.arch-inner { display: flow-root; position: relative; background: var(--inner); padding: 0 9cqw 11cqw; }
.arch-inner::before {
  content: ""; position: absolute; left: 1.75cqw; right: 1.75cqw; top: -1px; bottom: 1.75cqw;
  border: 1px solid rgba(230,196,124,.75); border-top: 0; pointer-events: none;
}
.arch-content { position: relative; margin-top: -54cqw; text-align: center; }
.monogram { width: 34cqw; height: 34cqw; margin: 0 auto 4cqw; display: block; }
.reveal.in .monogram { animation: settle 1.6s var(--ease) both .2s; }
@keyframes settle { from { transform: scale(.8) rotate(-12deg); opacity: 0; } }
.blessing { margin: 0; font-family: var(--gurmukhi), 'Tiro Devanagari Hindi', serif; font-weight: 500; font-size: clamp(20px, 5.8cqw, 26px); color: var(--gold); line-height: 1.6; }
.verse { margin: 6px auto 0; font-family: 'Tiro Devanagari Hindi', var(--gurmukhi), serif; font-size: clamp(13px, 3.8cqw, 16px); line-height: 1.8; color: var(--cream-soft); }
.event-info .time.words { font-size: 28px; line-height: 1.35; }
html[lang="hi"] .event-info .time.words { font-size: 22px; }
.fam-group .tel { color: inherit; text-decoration-color: rgba(230,196,124,.6); text-underline-offset: 4px; white-space: nowrap; }
.arch-content .ornament-row { margin: 8px auto 16px; }
.invite-intro { margin: 0 auto 18px; max-width: 30ch; font-style: italic; font-size: 18.5px; line-height: 1.5; color: var(--cream); text-wrap: balance; }
.person { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(40px, 11.5cqw, 52px); line-height: 1.25;
  background: var(--gold-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .2em; display: inline-block;
  animation: shimmer 8s linear infinite; }
.person-of { margin: 6px 0 2px; }
.parents { margin: 0; font-family: var(--caps); font-size: 13.5px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; color: var(--cream); text-transform: uppercase; }
.with-word { margin: 20px 0 8px; font-style: italic; font-size: 22px; color: var(--cream-soft); }
.card-date { margin: 28px 0 2px; font-size: 21px; font-weight: 600; }
.card-venue { margin: 0; font-style: italic; color: var(--cream-soft); }

/* ============ Story ============ */
.story-text { margin: 0 auto; max-width: 30ch; font-size: 21px; line-height: 1.65; }
.timeline { list-style: none; margin: 38px 0 0; padding: 0 0 0 30px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), rgba(230,196,124,.1)); transform-origin: top; transform: scaleY(0); transition: transform 2s var(--ease) .3s; }
.reveal.in .timeline::before { transform: scaleY(1); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -29px; top: 13px; width: 11px; height: 11px;
  border: 1.3px solid var(--gold); background: var(--paper); transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(230,196,124,.5);
}
.timeline .when { display: block; font-family: var(--script); font-size: 32px; line-height: 1.2; color: var(--gold); }
.timeline .what { display: block; font-size: 19.5px; color: var(--cream-soft); }

/* ============ Gallery ============ */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 8px; margin: 0 -24px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 76%; margin: 0; scroll-snap-align: center; }
.gallery .frame {
  border: 6px solid var(--band); border-radius: 999px 999px 12px 12px / 46% 46% 12px 12px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--inner); box-shadow: 0 0 0 1px rgba(230,196,124,.5), 0 14px 34px rgba(0,0,0,.4);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { margin-top: 10px; font-style: italic; font-size: 17.5px; color: var(--cream-soft); }
.swipe-hint { margin: 14px 0 0; font-style: italic; font-size: 16px; color: var(--cream-faint); }

/* ============ Events ============ */
.events { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.event { display: grid; grid-template-columns: 40% 1fr; gap: 0 20px; position: relative; padding: 20px 0; }
.event::before { content: ""; position: absolute; left: calc(40% + 9px); top: 0; bottom: 0; width: 1px; background: rgba(230,196,124,.45); }
.event:first-child::before { top: 28px; }
.event:last-child::before { bottom: 28px; }
.event-art { display: flex; align-items: center; justify-content: center; }
.event-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.event-day {
  width: 112px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  border-radius: 56px 56px 10px 10px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(230,196,124,.14), rgba(230,196,124,.02));
}
.event-day .d { display: block; font-size: 54px; font-weight: 600; color: var(--gold); }
.event-day .m { display: block; font-family: var(--script); font-size: 26px; margin-top: 6px; color: var(--cream); }
.event-info { position: relative; padding-left: 14px; }
.event-info::before {
  content: ""; position: absolute; left: -16px; top: 92px; width: 11px; height: 11px;
  border: 1.3px solid var(--gold); background: var(--paper); transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(230,196,124,.5);
}
.event-info .on { font-family: var(--caps); font-size: 12px; font-weight: 500; letter-spacing: .22em; color: var(--cream-faint); text-transform: uppercase; }
.event-info .time { margin: 0; font-family: var(--script); font-size: 40px; line-height: 1.15; }
.event-info .name { margin: 2px 0 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.event-info .local { margin: 2px 0 6px; font-family: var(--gurmukhi); font-size: 16px; color: var(--gold); }
.event-info .venue { margin: 0; font-style: italic; font-size: 18px; color: var(--cream-soft); line-height: 1.4; }

/* ============ Countdown ============ */
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 4px; margin-top: 4px; }
.countdown .unit { min-width: 70px; padding: 12px 4px 10px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.countdown .num { display: block; font-size: 44px; line-height: 1; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums lining-nums; }
.countdown .num.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-8px); opacity: .2; } }
.countdown .lab { display: block; margin-top: 6px; font-size: 15px; color: var(--cream-soft); }
.countdown .colon { font-size: 34px; line-height: 1.6; color: var(--gold); opacity: .7; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.count-caption { margin: 18px 0 0; font-style: italic; color: var(--cream-soft); }

/* ============ Location ============ */
.venue-photo { position: relative; margin: 0 -24px 26px; aspect-ratio: 4 / 3; overflow: hidden; }
.venue-photo img { width: 100%; height: 100%; object-fit: cover; }
.venue-photo::before, .venue-photo::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; z-index: 1; }
.venue-photo::before { top: 0; background: linear-gradient(var(--paper), transparent); }
.venue-photo::after { bottom: 0; background: linear-gradient(transparent, var(--paper)); }
.loc-city { margin: 0; font-family: var(--caps); font-size: 22px; font-weight: 500; letter-spacing: .3em; }
.loc-venue { margin: 6px 0 4px; font-size: 25px; font-weight: 600; }
.loc-address { margin: 0 0 22px; font-style: italic; color: var(--cream-soft); }
.map-box {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 22px;
  background: var(--band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cg fill='none' stroke='%23e6c47c' stroke-opacity='.25' stroke-width='3'%3E%3Cpath d='M-10 80 C80 60 160 110 250 90 S380 50 420 70'/%3E%3Cpath d='M-10 230 C90 250 170 200 260 220 S360 250 420 240'/%3E%3Cpath d='M110 -10 C130 80 100 160 130 310'/%3E%3Cpath d='M300 -10 C280 90 320 170 290 310'/%3E%3C/g%3E%3Ccircle cx='330' cy='260' r='70' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E") center / cover;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-pin { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); width: 34px; height: 34px; animation: bob 2s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
@keyframes bob { 50% { transform: translate(-50%, -62%); } }
.map-show {
  margin-top: 40px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(10,6,12,.7); color: var(--cream); font-style: italic; font-size: 18px;
}
.travel p { margin: 0 auto 10px; max-width: 30ch; }
.stay { margin-top: 28px; }
.stay p { margin: 8px auto 0; max-width: 30ch; }

/* ============ Dress code ============ */
.dress-list { list-style: none; margin: 18px 0 0; padding: 0; text-align: left; }
.dress-list li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(252,244,227,.14); }
.dress-list li:last-child { border-bottom: 1px solid rgba(252,244,227,.14); }
.dress-list .ev { font-size: 21px; font-weight: 700; }
.dress-list .tx { color: var(--cream-soft); font-size: 18px; }
.swatches { display: flex; gap: 6px; flex-shrink: 0; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(252,244,227,.55); box-shadow: 0 3px 8px rgba(0,0,0,.3); }

/* ============ Families ============ */
.fam-group { margin-bottom: 28px; }
.fam-group .small-caps { margin: 0 0 8px; }
.fam-group p.line { margin: 0 0 4px; font-size: 20.5px; }
.fam-group.playful p.line { font-style: italic; color: var(--gold); }

/* ============ Song ============ */
.song-card { display: flex; gap: 16px; align-items: center; text-align: left; max-width: 360px; margin: 0 auto; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); text-decoration: none; }
.song-card .disc { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle, var(--paper) 0 18%, var(--gold) 20% 24%, #1d1a20 26% 100%); animation: spin 5s linear infinite; }
.song-card .t { font-size: 21px; font-weight: 700; }
.song-card .a { color: var(--cream-soft); }

/* ============ RSVP ============ */
.rsvp-form { text-align: left; margin-top: 20px; padding: 22px 18px; border-radius: 18px; background: rgba(0,0,0,.16); border: 1px solid var(--line); }
.rsvp-form label.small-caps { display: block; margin-bottom: 10px; }
.rsvp-input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--field-line); background: var(--field);
  color: var(--cream); font: inherit; font-size: 19px;
}
.rsvp-input::placeholder { color: rgba(252,244,227,.42); }
.rsvp-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,196,124,.18); }
.rsvp-rows { margin: 22px 0 26px; }
.rsvp-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(252,244,227,.14); }
.rsvp-row:last-child { border-bottom: 1px solid rgba(252,244,227,.14); }
.rsvp-row .ev { font-size: 21px; font-weight: 700; line-height: 1.2; }
.rsvp-row .dt { font-size: 15px; color: var(--cream-soft); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--field-line);
  background: var(--field); color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s, transform .1s;
}
.stepper button:hover { background: rgba(230,196,124,.2); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 22px; text-align: center; font-size: 21px; font-weight: 600; }
.rsvp-send { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rsvp-send small { display: block; font-size: 13px; letter-spacing: .12em; opacity: .85; }
.rsvp-note { margin: 16px auto 0; max-width: 34ch; text-align: center; font-style: italic; font-size: 15.5px; color: var(--cream-soft); }
.rsvp-error { text-align: center; color: #f6b0a6; font-style: italic; margin: 0 0 12px; }

/* ============ Footer ============ */
.footer { padding: 64px 24px 30px; text-align: center; }
.footer .closing { margin: 0 auto; max-width: 26ch; font-style: italic; font-size: 21px; color: var(--cream-soft); }
.footer .sign { margin: 14px 0 0; font-family: var(--script); font-size: 52px; line-height: 1.2;
  background: var(--gold-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding: 0 .2em;
  animation: shimmer 8s linear infinite; }
.credit {
  margin: 0; padding: 20px 24px calc(96px + env(safe-area-inset-bottom)); text-align: center;
  font-family: var(--caps); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-faint);
  background: rgba(0,0,0,.22); border-top: 1px solid rgba(230,196,124,.18);
}
.credit a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(230,196,124,.4); padding-bottom: 1px; }
.credit a:hover { color: #fff3cf; }

/* ============ Music button ============ */
.music-btn {
  position: fixed; z-index: 50;
  right: max(16px, calc(50vw - var(--stage-w) / 2 + 16px));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #f8e6ad, #d4af62 55%, #9c7a35);
  color: #fffaf0; box-shadow: 0 8px 22px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5);
  display: grid; place-items: center;
  animation: popIn .7s var(--ease) both;
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
.music-btn .i-play { display: none; }
.music-btn.paused .i-play { display: block; }
.music-btn .bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.music-btn .bars i { width: 3.5px; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.music-btn .bars i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.music-btn .bars i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.music-btn .bars i:nth-child(3) { height: 45%; animation-delay: -.8s; }
.music-btn .bars i:nth-child(4) { height: 80%; animation-delay: -.35s; }
@keyframes eq { 50% { transform: scaleY(.35); } }
.music-btn.paused .bars { display: none; }
.music-btn:not(.paused)::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(230,196,124,.6);
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .stagger > *, .reveal .sec-title { opacity: 1; transform: none; filter: none; }
  .ornament use, .ornament-row use { stroke-dashoffset: 0; }
  .petals { display: none; }
}

/* Short screens: tighten the names so they stay in the sky */
@media (max-height: 700px) {
  .hero-names .ornament { width: 150px; height: 24px; margin: 2px auto 0; }
}

/* The plain copy of the card, shown only until (or without) the script */
.static-card { padding: 0 24px; text-align: center; }
.static-card ul { list-style: none; margin: 0; padding: 0; }

/* ============ Language switch ============ */
.lang-toggle {
  position: fixed; z-index: 55;
  top: max(12px, calc(env(safe-area-inset-top) + 8px));
  right: max(12px, calc(50vw - var(--stage-w) / 2 + 12px));
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(12, 6, 14, .45); border: 1px solid rgba(230,196,124,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  animation: floatIn 1.2s var(--ease) both .6s;
}
.lang-toggle button {
  min-width: 40px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--cream-soft);
  font-family: 'Cinzel', 'Tiro Devanagari Hindi', serif; font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  transition: background .25s, color .25s;
}
.lang-toggle button[lang="hi"] { font-family: 'Tiro Devanagari Hindi', serif; font-size: 15px; letter-spacing: 0; }
.lang-toggle button[aria-pressed="true"] { background: linear-gradient(170deg, #f3dc9c, #c99d52); color: #2a0c12; }
.lang-toggle button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.sub-title { font-size: 42px; margin-top: 48px; }
.reveal.no-anim, .reveal.no-anim .sec-title, .reveal.no-anim .stagger > *, .reveal.no-anim .timeline::before { transition: none !important; }

/* ============ Hindi version ============ */
html[lang="hi"] {
  --script: 'Tiro Devanagari Hindi', var(--script-latin, 'Great Vibes'), serif; /* its headline stays unbroken, so names don't look sliced */
  --serif: 'Tiro Devanagari Hindi', 'Cormorant Garamond', 'Noto Serif Gurmukhi', serif;
  --caps: 'Tiro Devanagari Hindi', 'Cinzel', serif;
}
html[lang="hi"] body { font-weight: 400; font-size: 18.5px; line-height: 1.7; }
html[lang="hi"] .sec-title { font-size: 38px; line-height: 1.55; font-weight: 400; padding-bottom: .1em; }
html[lang="hi"] .sub-title { font-size: 32px; }
html[lang="hi"] .invited-title { font-size: clamp(32px, min(10vw, 5.8vh), 46px); line-height: 1.5; font-weight: 400; }
html[lang="hi"] .invited-sub { font-size: 15px; letter-spacing: .02em; text-transform: none; }
html[lang="hi"] .hero-names .welcome { font-size: 17px; font-style: normal; }
html[lang="hi"] .hero-names .names { font-size: clamp(38px, min(12.5vw, 6vh), 58px); line-height: 1.18; font-weight: 400; }
html[lang="hi"] .hero-names .names .amp { font-size: .55em; line-height: 1; }
html[lang="hi"] .hero-names .city { font-size: 17px; letter-spacing: .12em; }
html[lang="hi"] .scroll-cue { font-size: 24px; line-height: 1.5; }
html[lang="hi"] .tap-hint, html[lang="hi"] .invite-intro, html[lang="hi"] .with-word, html[lang="hi"] .card-venue,
html[lang="hi"] .date-after .where, html[lang="hi"] .loc-address, html[lang="hi"] .event-info .venue, html[lang="hi"] .scratch-hint,
html[lang="hi"] .count-caption, html[lang="hi"] .footer .closing, html[lang="hi"] .rsvp-note, html[lang="hi"] .swipe-hint,
html[lang="hi"] .gallery figcaption, html[lang="hi"] .fam-group.playful p.line, html[lang="hi"] .link-gold, html[lang="hi"] .map-show { font-style: normal; }
html[lang="hi"] .small-caps, html[lang="hi"] .scratch-label, html[lang="hi"] .event-info .on, html[lang="hi"] .loc-city,
html[lang="hi"] .parents, html[lang="hi"] .btn-gold { letter-spacing: .03em; text-transform: none; }
html[lang="hi"] .small-caps, html[lang="hi"] .scratch-label { font-size: 15px; }
html[lang="hi"] .event-info .on { font-size: 14px; }
html[lang="hi"] .parents { font-size: 16px; }
html[lang="hi"] .btn-gold { font-size: 16px; }
html[lang="hi"] .person { font-size: clamp(38px, 11cqw, 50px); line-height: 1.55; font-weight: 400; }
html[lang="hi"] .scratch-value.word { font-size: 22px; line-height: 1.6; font-weight: 400; }
html[lang="hi"] .date-after .when { font-size: 28px; line-height: 1.6; }
html[lang="hi"] .timeline .when { font-size: 24px; line-height: 1.6; }
html[lang="hi"] .event-info .time { font-size: 26px; line-height: 1.6; }
html[lang="hi"] .event-info .name { font-size: 22px; font-weight: 700; }
html[lang="hi"] .event-info::before { top: 82px; }
html[lang="hi"] .event-day .m { font-size: 20px; line-height: 1.5; }
html[lang="hi"] .loc-city { font-size: 22px; }
html[lang="hi"] .footer .sign { font-size: 40px; line-height: 1.55; font-weight: 400; }
html[lang="hi"] .lead, html[lang="hi"] .story-text { font-size: 19.5px; line-height: 1.8; }

/* ============ Room for tall strokes ============
   Gold lettering is painted only inside each element's box, so strokes that reach
   past it (the dot on संग, matras, flourishes on capitals) were cut off. The padding
   gives them room; the matching negative margin keeps the spacing the same. */
.hero-names .names span { padding-top: .32em; margin-top: -.32em; padding-bottom: .18em; margin-bottom: -.18em; }
.invited-title, .person, .sec-title { padding-top: .28em; margin-top: -.28em; padding-bottom: .16em; margin-bottom: -.16em; }
.footer .sign { padding-top: .28em; margin-top: calc(14px - .28em); padding-bottom: .16em; margin-bottom: -.16em; }
html[lang="hi"] .sec-title { padding-bottom: .16em; }
