:root {
  --maroon: #5b0f24;
  --maroon-2: #7a1733;
  --rani: #a3224f;
  --gold: #c9a24a;
  --gold-lt: #ecd38f;
  --gold-dk: #8f6a22;
  --ivory: #fbf5ea;
  --ivory-2: #f4e9d6;
  --ink: #3b1420;
  --muted: #7c5a52;
  --marigold: #e8891c;
  --font-hi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --font-hi-display: "Rozha One", "Tiro Devanagari Hindi", serif;
  --font-en: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(91, 15, 36, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-hi);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
html[lang="en"] body { font-family: var(--font-en); font-size: 19px; }
html[lang="hi"] .en, html[lang="en"] .hi { display: none !important; }
body.locked { overflow: hidden; height: 100dvh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { font-family: var(--font-hi-display); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--font-en); font-weight: 500; }
.center { text-align: center; }
.script { font-family: var(--font-script); color: var(--gold-dk); font-size: 2.2rem; line-height: 1.1; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-size: 1rem; letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, #f3dc9a, var(--gold) 50%, #b08530);
  color: var(--maroon); font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(201, 162, 74, .8), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-gold:hover { box-shadow: 0 12px 30px -8px rgba(201, 162, 74, 1), inset 0 1px 0 rgba(255,255,255,.6); transform: translateY(-2px); }
.btn-ghost { border-color: var(--gold); color: var(--maroon); background: transparent; }
.btn-ghost:hover { background: rgba(201,162,74,.12); }
.btn-ghost.light { color: var(--gold-lt); }
.btn.wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.btn-row.center { justify-content: center; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; perspective: 1600px; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.5%; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,162,74,.10) 0 2px, transparent 3px) 0 0 / 26px 26px,
    radial-gradient(ellipse at center, var(--maroon-2), var(--maroon) 70%);
  transition: transform 1.6s cubic-bezier(.7,0,.2,1);
}
.door::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,162,74,.55); }
.door-l { left: 0; transform-origin: left center; }
.door-r { right: 0; transform-origin: right center; }
.door-l::after { right: 0; border-right: 0; }
.door-r::after { left: 0; border-left: 0; }
.door-l { border-right: 2px solid var(--gold); }
.door-r { border-left: 2px solid var(--gold); }
.door-mandala { position: absolute; top: 50%; width: min(150vw, 980px); height: min(150vw, 980px); color: var(--gold); opacity: .35; transform: translate(-50%, -50%); }
.door-l .door-mandala { left: 100%; }
.door-r .door-mandala { left: 0; }
.gate-content {
  position: relative; text-align: center; color: var(--gold-lt); padding: 2rem 1.25rem;
  transition: opacity .6s ease, transform .6s ease; max-width: 420px;
}
.gate-om { letter-spacing: .08em; opacity: .9; margin: 0 0 1.2rem; }
.seal {
  width: 132px; height: 132px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; grid-template-columns: auto auto auto; align-content: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #f6e2a6, var(--gold) 45%, var(--gold-dk));
  box-shadow: 0 0 0 6px rgba(201,162,74,.25), 0 0 0 12px rgba(201,162,74,.1), 0 20px 40px rgba(0,0,0,.4), inset 0 -6px 14px rgba(0,0,0,.25);
  color: var(--maroon); font-family: var(--font-script); font-size: 3rem; line-height: 1;
  animation: pulse 3s ease-in-out infinite;
}
.seal-amp { font-size: 1.6rem; margin: 0 .1em; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(201,162,74,.3), 0 0 0 22px rgba(201,162,74,.08), 0 20px 40px rgba(0,0,0,.4), inset 0 -6px 14px rgba(0,0,0,.25); } }
.gate-title { font-family: var(--font-hi-display); font-size: 2.6rem; margin: 0; color: #f6e2a6; line-height: 1.2; }
html[lang="en"] .gate-title { font-family: var(--font-en); font-size: 2.2rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.gate-names { font-family: var(--font-script); font-size: 2.4rem; margin: .2rem 0 1rem; color: #fff3d6; }
html[lang="hi"] .gate-names { font-family: var(--font-hi-display); font-size: 1.9rem; }
.gate-names i { font-style: normal; color: var(--gold); font-size: .7em; }
.gate-guest { margin: 0 0 1.4rem; font-size: 1.05rem; }
.gate-guest b { display: block; font-size: 1.5rem; color: #fff3d6; font-weight: 400; }
.gate-btn { font-size: 1.1rem; padding: .9em 2.2em; animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 30px 4px rgba(236,211,143,.55), inset 0 1px 0 rgba(255,255,255,.6); } }
.gate.open .door-l { transform: rotateY(105deg); }
.gate.open .door-r { transform: rotateY(-105deg); }
.gate.open .gate-content { opacity: 0; transform: scale(.9); pointer-events: none; }
.gate.gone { display: none; }

/* ---------- Controls ---------- */
.controls { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 110; display: flex; gap: 8px; }
.ctrl {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201,162,74,.7);
  background: rgba(91,15,36,.82); color: var(--gold-lt); backdrop-filter: blur(6px);
  display: grid; place-items: center; font-size: .9rem; font-family: var(--font-en); font-weight: 600;
}
html[lang="en"] #langBtn { font-family: var(--font-hi); }
.ctrl[hidden] { display: none; }
#musicBtn.playing svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- Section commons ---------- */
section { position: relative; padding: clamp(4rem, 9vw, 7rem) 16px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.eyebrow { margin: 0 0 .3rem; color: var(--gold-dk); font-size: 1rem; }
html[lang="en"] .eyebrow { text-transform: uppercase; font-weight: 600; font-size: .8rem; letter-spacing: .3em; }
.sec-head h2 { font-size: clamp(2rem, 6vw, 3rem); color: var(--maroon); line-height: 1.25; }
.sec-head.light h2 { color: #fff3d6; }
.sec-head.light .eyebrow { color: var(--gold-lt); }
.div-orn { display: block; width: 220px; height: 22px; margin: 1rem auto 0; color: var(--gold); }
.div-orn.sm { width: 160px; height: 16px; margin: 1.6rem auto; }
.muted { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(236,211,143,.35), transparent 60%),
    linear-gradient(180deg, var(--ivory), var(--ivory-2));
  padding-top: 5rem; padding-bottom: 6rem;
}
.hero-bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero-bg svg { width: 160vmax; height: 160vmax; color: var(--gold); opacity: .09; animation: spin 240s linear infinite; }
.hero-inner { position: relative; width: 100%; max-width: 1120px; display: grid; gap: 2.5rem; align-items: center; }
.hero-text { text-align: center; }
.ganesh {
  width: 96px; height: 96px; margin: 0 auto .8rem; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(201,162,74,.18), 0 10px 26px -8px rgba(91,15,36,.5);
}
.shloka { font-size: .92rem; color: var(--maroon-2); margin: 0 0 1.4rem; line-height: 1.8; font-family: var(--font-hi); }
.kicker { margin: 0; color: var(--gold-dk); font-size: 1.1rem; }
html[lang="en"] .kicker { text-transform: uppercase; font-size: .8rem; letter-spacing: .35em; font-weight: 600; }
.names { display: flex; flex-direction: column; align-items: center; color: var(--maroon); line-height: 1.05; margin-top: .4rem; }
.names .name {
  font-size: clamp(3rem, 12vw, 5.2rem);
  background: linear-gradient(180deg, var(--maroon-2), var(--maroon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .1em .1em .05em;
}
html[lang="en"] .names .name { font-family: var(--font-script); font-weight: 400; font-size: clamp(3.4rem, 13vw, 6rem); }
.names .sang { font-family: var(--font-script); color: var(--gold); font-size: clamp(1.8rem, 6vw, 2.6rem); margin: .1em 0; }
html[lang="hi"] .names .sang { font-family: var(--font-hi); font-size: 1.4rem; color: var(--gold-dk); }
.hero-date { font-size: 1.15rem; color: var(--maroon); margin: 1rem 0 1.4rem; letter-spacing: .03em; }
html[lang="en"] .hero-date { font-size: 1.2rem; font-weight: 500; letter-spacing: .03em; }
.countdown { display: flex; justify-content: center; gap: clamp(.4rem, 2vw, .9rem); }
.countdown div {
  width: clamp(64px, 18vw, 84px); padding: .7rem 0 .5rem; border-radius: 14px;
  background: linear-gradient(180deg, var(--maroon-2), var(--maroon)); color: var(--gold-lt);
  display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow);
  border: 1px solid rgba(201,162,74,.5); font-size: .75rem;
}
.countdown b { font-family: var(--font-hi); font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 600; line-height: 1; color: #fff3d6; margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.cd-done { color: var(--maroon); font-size: 1.1rem; }

.arch { position: relative; margin: 0 auto; width: min(82vw, 420px); aspect-ratio: 3 / 4.3; }
.arch img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 18px 18px; border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px rgba(201,162,74,.6), var(--shadow);
}
.arch-corner { position: absolute; width: 70px; height: 70px; color: var(--gold); bottom: -16px; }
.arch-corner.tl { left: -16px; transform: rotate(-90deg); }
.arch-corner.tr { right: -16px; transform: rotate(180deg); }

.scroll-cue { position: absolute; bottom: 5.5rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--gold-dk); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-dk); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; }
  .scroll-cue { bottom: 2rem; }
}
@media (max-width: 899px) { .scroll-cue { display: none; } }

/* ---------- Invitation card ---------- */
.invite {
  background:
    radial-gradient(circle at 50% 50%, rgba(201,162,74,.08) 0 2px, transparent 3px) 0 0 / 24px 24px,
    radial-gradient(ellipse at top, var(--rani), var(--maroon) 70%);
}
.card {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, #fffaf0, var(--ivory-2));
  border-radius: 6px; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.3rem, 6vw, 4rem) clamp(4.5rem, 10vw, 5.5rem);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px var(--gold), 0 0 0 8px #fffaf0, 0 0 0 9px var(--gold);
}
.c-corner { position: absolute; width: 64px; height: 64px; color: var(--gold); }
.c-corner.tl { top: 10px; left: 10px; }
.c-corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.c-corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.c-corner.br { bottom: 10px; right: 10px; transform: scale(-1); }
.om { font-size: 2.6rem; color: var(--rani); margin: 0; line-height: 1; }
.salute { font-family: var(--font-hi-display); color: var(--maroon); font-size: 1.4rem; margin: .8rem 0 .2rem; }
html[lang="en"] .salute { font-family: var(--font-script); font-size: 2.2rem; font-weight: 400; }
.lead { margin: 0 0 1.2rem; color: var(--muted); }
.person { font-size: 1.3rem; margin: 0; color: var(--ink); }
.person strong { display: block; font-family: var(--font-hi-display); font-weight: 400; color: var(--maroon); font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.3; }
html[lang="en"] .person strong { font-family: var(--font-script); font-size: clamp(2.6rem, 9vw, 3.4rem); }
.lineage { font-size: .95rem; color: var(--muted); margin: .4rem 0 0; line-height: 1.75; }
.closing { margin: 2rem auto 1rem; max-width: 520px; font-size: 1.08rem; color: var(--ink); }
.sign { margin: 0; color: var(--gold-dk); font-weight: 600; }

/* ---------- Couple ---------- */
.couple { background: var(--ivory); }
.couple-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 2rem; align-items: center; }
.profile { text-align: center; }
.profile h3 { font-size: 2rem; color: var(--maroon); line-height: 1.3; }
.profile p { margin: .3rem 0 0; }
.flip { border: 0; background: none; padding: 0; perspective: 1400px; width: min(78vw, 360px); justify-self: center; }
.flip-inner {
  display: block; position: relative; aspect-ratio: 900 / 1484; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4,.2,.2,1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 200px 200px 16px 16px; border: 3px solid var(--gold);
  box-shadow: 0 0 0 7px var(--ivory), 0 0 0 8px rgba(201,162,74,.6), var(--shadow);
}
.face.back { transform: rotateY(180deg); }
.flip-hint { display: block; margin-top: 1.1rem; color: var(--gold-dk); font-size: .9rem; }
@media (min-width: 860px) { .couple-grid { grid-template-columns: 1fr auto 1fr; } }

/* ---------- Events ---------- */
.events {
  color: #fff3d6;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,162,74,.08) 0 2px, transparent 3px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--maroon), #3d0917);
}
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 1.2rem; }
.ev {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.3rem 1.3rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,243,214,.08), rgba(255,243,214,.03));
  border: 1px solid rgba(201,162,74,.35);
  transition: transform .3s ease, border-color .3s;
}
.ev:hover { transform: translateY(-3px); border-color: var(--gold); }
.ev-icon {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(236,211,143,.18), transparent 70%); border: 1px solid rgba(201,162,74,.6); color: var(--gold-lt);
}
.ev-icon svg { width: 40px; height: 40px; }
.ev h3 { font-size: 1.6rem; color: #fff3d6; line-height: 1.2; }
.ev-date { margin: .2rem 0 .1rem; color: var(--gold-lt); font-size: 1.02rem; }
.ev-desc { margin: 0; font-size: .92rem; opacity: .75; }
.ev-cal { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.ev-cal a, .ev-cal button {
  font-size: .8rem; padding: .35em .9em; border-radius: 999px; border: 1px solid rgba(201,162,74,.5);
  background: none; color: var(--gold-lt); text-decoration: none;
}
.ev-cal a:hover, .ev-cal button:hover { background: rgba(201,162,74,.15); }
.ev.main { background: linear-gradient(135deg, rgba(236,211,143,.22), rgba(201,162,74,.06)); border-color: var(--gold); box-shadow: 0 0 40px -10px rgba(236,211,143,.35); }
.ev.main h3 { color: var(--gold-lt); }
.badge {
  position: absolute; top: -11px; right: 16px; background: var(--gold); color: var(--maroon);
  font-size: .72rem; padding: .15em .8em; border-radius: 999px; font-weight: 600; letter-spacing: .04em;
}
.ev.past { opacity: .5; }
.events .center { margin-top: 2.2rem; }
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}
@media (min-width: 1040px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .ev { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 2rem 1.2rem 1.4rem; }
  .ev-cal { justify-content: center; }
}

/* ---------- Venue ---------- */
.venue { background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); }
.venue-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 1.6rem; }
.venue-card {
  background: #fffaf0; border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center;
  border: 1px solid rgba(201,162,74,.45); box-shadow: var(--shadow);
}
.venue-card .pin { color: var(--rani); margin: 0 auto; display: block; }
.venue-card address { font-style: normal; font-size: 1.15rem; margin-top: .6rem; color: var(--maroon); line-height: 1.8; }
.venue-card .btn-row { justify-content: center; }
.map { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow); min-height: 320px; background: var(--ivory-2); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: sepia(.15) saturate(1.05); }
@media (min-width: 860px) { .venue-grid { grid-template-columns: 1fr 1.4fr; align-items: stretch; } .venue-card { display: flex; flex-direction: column; justify-content: center; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--ivory); }
.masonry { max-width: 1080px; margin: 0 auto; columns: 2 160px; column-gap: 12px; }
.masonry button {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  break-inside: avoid; background: var(--ivory-2); box-shadow: 0 10px 30px -18px rgba(91,15,36,.6);
}
.masonry img { width: 100%; height: auto; transition: transform .8s ease; }
.masonry button:hover img { transform: scale(1.05); }
@media (min-width: 760px) { .masonry { columns: 3; column-gap: 16px; } .masonry button { margin-bottom: 16px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: rgba(30, 5, 12, .92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86dvh; border-radius: 10px; border: 2px solid var(--gold); object-fit: contain; }
.lb-close, .lb-nav { position: fixed; background: rgba(91,15,36,.7); border: 1px solid var(--gold); color: var(--gold-lt); border-radius: 50%; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Family ---------- */
.family { background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.chips { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chips li {
  padding: .45em 1.1em; border-radius: 999px; background: #fffaf0; border: 1px solid rgba(201,162,74,.55);
  color: var(--maroon); font-size: 1.02rem;
}
.bal {
  position: relative; max-width: 620px; margin: 3rem auto 0; text-align: center; padding: 2.2rem 1.4rem 1.6rem;
  background: linear-gradient(135deg, #fff4dc, #fde7c4); border-radius: 24px; border: 1px dashed var(--marigold);
}
.bal-tag {
  position: absolute; top: -.9em; left: 50%; transform: translateX(-50%); margin: 0;
  background: var(--marigold); color: #fff; padding: .1em 1em; border-radius: 999px; font-size: .9rem; white-space: nowrap;
}
.bal-text { font-size: 1.2rem; color: var(--maroon); margin: 0; line-height: 1.8; }
html[lang="en"] .bal-text { font-style: italic; font-size: 1.3rem; }
.bal cite { display: block; margin-top: .6rem; color: var(--marigold); font-style: normal; font-weight: 600; }

/* ---------- RSVP ---------- */
.rsvp {
  color: #fff3d6;
  background:
    radial-gradient(circle at 50% 50%, rgba(201,162,74,.08) 0 2px, transparent 3px) 0 0 / 24px 24px,
    radial-gradient(ellipse at bottom, var(--rani), var(--maroon) 70%);
  padding-bottom: 5rem;
}
.rsvp-form {
  max-width: 560px; margin: 0 auto; display: grid; gap: 1.1rem; padding: 1.8rem 1.4rem;
  background: rgba(255,243,214,.06); border: 1px solid rgba(201,162,74,.4); border-radius: var(--radius);
}
.rsvp-form label, .rsvp-form legend { display: grid; gap: .35rem; font-size: .95rem; color: var(--gold-lt); }
.rsvp-form input, .rsvp-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fffaf0;
  border: 1px solid var(--gold); border-radius: 12px; padding: .7em .9em;
}
.rsvp-form textarea { resize: vertical; }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0; }
.stepper { display: flex; align-items: stretch; max-width: 180px; }
.stepper input { text-align: center; border-radius: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { width: 48px; border: 1px solid var(--gold); background: var(--gold); color: var(--maroon); font-size: 1.3rem; }
.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.checks label { display: inline-flex; align-items: center; gap: .4em; padding: .35em .9em; border: 1px solid rgba(201,162,74,.6); border-radius: 999px; cursor: pointer; color: #fff3d6; }
.checks input { width: auto; accent-color: var(--gold); }
.checks label:has(input:checked) { background: rgba(201,162,74,.25); border-color: var(--gold-lt); }
.contacts { text-align: center; margin-top: 2.4rem; }
.contacts p { margin: 0 0 .8rem; color: var(--gold-lt); }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.phone { display: inline-flex; border: 1px solid rgba(201,162,74,.6); border-radius: 999px; overflow: hidden; }
.phone a { padding: .45em .9em; text-decoration: none; font-family: var(--font-hi); font-size: 1.05rem; font-weight: 600; }
.phone a + a { border-left: 1px solid rgba(201,162,74,.6); background: rgba(37,211,102,.15); display: grid; place-items: center; padding: .45em .7em; }
.phone a:hover { background: rgba(201,162,74,.2); }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; text-align: center; padding: 4.5rem 16px 8rem; background: #2d0611; color: var(--gold-lt); }
.foot-mandala { position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; transform: translate(-50%, -50%); color: var(--gold); opacity: .08; }
.foot .script.big { font-size: clamp(3rem, 12vw, 4.6rem); color: var(--gold-lt); position: relative; }
.foot-date { font-family: var(--font-hi); letter-spacing: .4em; font-size: 1.1rem; margin: .2rem 0 .6rem; position: relative; }
.foot-line { opacity: .8; position: relative; margin: 0; }
.foot .btn-row { position: relative; }
.foot-tag { font-family: var(--font-en); opacity: .55; letter-spacing: .1em; margin-top: 1.6rem; position: relative; }
.credit {
  position: relative; max-width: 420px; margin: 2.4rem auto 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(201,162,74,.3); font-size: .88rem; line-height: 1.6;
}
.credit p { margin: 0; opacity: .75; }
.credit .credit-name { opacity: 1; font-family: var(--font-hi-display); font-size: 1.35rem; color: #fff3d6; margin: .15rem 0; }
html[lang="en"] .credit .credit-name { font-family: var(--font-script); font-size: 2rem; }
.credit-links { margin-top: .5rem !important; opacity: 1 !important; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-family: var(--font-hi); }
.credit-links a { color: var(--gold-lt); text-decoration: none; border-bottom: 1px solid rgba(201,162,74,.5); }
.credit-links a:hover { color: #fff3d6; border-color: var(--gold-lt); }

/* ---------- Dock ---------- */
.dock {
  position: fixed; z-index: 55; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(91,15,36,.88); border: 1px solid rgba(201,162,74,.6); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.dock.show { transform: translate(-50%, 0); }
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: var(--gold-lt);
  padding: .35rem .7rem; border-radius: 999px; font-size: .66rem; line-height: 1.2; min-width: 56px; opacity: .75;
  transition: background .3s, opacity .3s;
}
html[lang="en"] .dock a { font-size: .78rem; font-weight: 600; }
.dock svg { width: 20px; height: 20px; fill: currentColor; }
.dock a.active { background: rgba(201,162,74,.22); opacity: 1; color: #fff3d6; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); opacity: 0; z-index: 120;
  background: var(--gold-lt); color: var(--maroon); padding: .6em 1.2em; border-radius: 999px; font-weight: 600;
  transition: opacity .3s, transform .3s; pointer-events: none; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
