/* ══════════════════════════════════════════════════════════════
   Shubh Vivah — Royal Indian Wedding Invitation
   Palette: maroon #800020 · gold #D4AF37 · cream #FFF8E7 · pink
   ══════════════════════════════════════════════════════════════ */

:root {
  --maroon: #800020;
  --maroon-deep: #3d0413;
  --maroon-mid: #5c0a1e;
  --maroon-soft: #7a0d26;
  --gold: #d4af37;
  --gold-deep: #8a6a1f;
  --gold-light: #f4e4a6;
  --cream: #fff8e7;
  --pink: #f3c2cc;
  --ink: #2a0209;

  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-caps: "Cinzel", "Times New Roman", serif;

  --gold-grad: linear-gradient(100deg, #8a6a1f 0%, #d4af37 16%, #fff3c0 36%, #e6c766 50%, #a9832b 66%, #f6e3a1 84%, #c9a227 100%);
  --ease-luxe: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-serif);
  color: var(--cream);
  background: var(--maroon-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.locked { overflow: hidden; height: 100vh; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

/* ─────────── shared typography & ornament ─────────── */

.gold-text {
  background: var(--gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-caps);
  font-size: clamp(0.62rem, 1.5vw, 0.76rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.82);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(340px, 78%);
  margin: 1.3rem auto;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
}
.divider-icon {
  width: 17px;
  height: 17px;
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
  flex: 0 0 auto;
}

.amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(244, 228, 166, 0.9);
  -webkit-text-fill-color: rgba(244, 228, 166, 0.9);
  padding: 0 0.12em;
}

/* gold foil button */
.gold-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 2.7rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #3d0413;
  background: linear-gradient(135deg, #6b4a0e 0%, #b98b25 16%, #f3dd9a 34%, #cfa233 50%, #8a6516 64%, #eed489 82%, #a87d1d 100%);
  background-size: 220% 220%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 214, 0.65),
    inset 0 -6px 14px rgba(61, 4, 19, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(212, 175, 55, 0.28);
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s ease;
  animation: foil 7s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.gold-btn span { position: relative; z-index: 2; }
.gold-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 26%, rgba(255, 255, 255, 0.7) 46%, transparent 66%);
  transform: translateX(-130%);
  animation: sweep 5s ease-in-out infinite;
}
.gold-btn:hover, .gold-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 214, 0.8),
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(212, 175, 55, 0.5);
  outline: none;
}
.gold-btn:active { transform: translateY(0) scale(0.99); }
.gold-btn.small { padding: 0.85rem 2rem; font-size: 0.68rem; letter-spacing: 0.2em; }

@keyframes foil {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes sweep {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.06);
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  color: var(--gold-light);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.ghost-btn:hover, .ghost-btn:focus-visible {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
  outline: none;
}
.wa-ic { width: 16px; height: 16px; }

/* ornate frame */
.ornate {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  background:
    linear-gradient(160deg, rgba(255, 248, 231, 0.055), rgba(255, 248, 231, 0.015) 45%, rgba(128, 0, 32, 0.18)),
    rgba(42, 2, 9, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.09),
    0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}
.ornate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 2px;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  pointer-events: none;
}
.corner.c-tl { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.corner.c-tr { top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.corner.c-bl { bottom: 5px; left: 5px; border-right: 0; border-top: 0; }
.corner.c-br { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

/* ─────────── ambient background ─────────── */

.bg-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 85% at 50% 0%, #6c0a22 0%, #4c0517 34%, #330310 66%, #23010a 100%),
    var(--maroon-deep);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 34%, rgba(20, 0, 7, 0.55) 100%);
}
.bg-mandala {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(212, 175, 55, 0.34) 0deg 0.5deg,
      transparent 0.5deg 7.5deg),
    repeating-conic-gradient(from 3deg,
      rgba(255, 248, 231, 0.16) 0deg 0.35deg,
      transparent 0.35deg 15deg),
    repeating-radial-gradient(circle,
      rgba(212, 175, 55, 0.2) 0 1px,
      transparent 1px 34px);
  -webkit-mask-image: radial-gradient(circle, #000 8%, rgba(0, 0, 0, 0.65) 42%, transparent 72%);
  mask-image: radial-gradient(circle, #000 8%, rgba(0, 0, 0, 0.65) 42%, transparent 72%);
}
.bg-mandala.m-one {
  width: min(140vh, 140vw);
  aspect-ratio: 1;
  top: -35vh;
  left: 50%;
  translate: -50% 0;
  animation: spin 140s linear infinite;
}
.bg-mandala.m-two {
  width: min(95vh, 95vw);
  aspect-ratio: 1;
  bottom: -32vh;
  left: -18vw;
  opacity: 0.3;
  animation: spin 200s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ─────────── loader ─────────── */

.loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2rem;
  background: radial-gradient(circle at 50% 45%, #56071c 0%, #330310 55%, #1d0108 100%);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-mandala {
  position: relative;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
}
.loader-mandala .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.loader-mandala .r1 {
  border-style: dashed;
  border-width: 1px;
  animation: spin 12s linear infinite;
}
.loader-mandala .r2 {
  inset: 13px;
  border-color: rgba(212, 175, 55, 0.65);
  border-top-color: transparent;
  border-left-color: transparent;
  animation: spin 6s cubic-bezier(0.6, 0.1, 0.4, 0.9) infinite;
}
.loader-mandala .r3 {
  inset: 27px;
  border-color: rgba(255, 248, 231, 0.22);
  border-bottom-color: transparent;
  animation: spin 3.4s linear infinite reverse;
}
.loader-core {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--gold-light);
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.8);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
.loader-text {
  margin: 0;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.78);
}
.loader-text .dots i {
  font-style: normal;
  animation: dotPulse 1.4s infinite;
  opacity: 0.2;
}
.loader-text .dots i:nth-child(2) { animation-delay: 0.2s; }
.loader-text .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ─────────── music player ─────────── */

.music-player {
  position: fixed;
  top: clamp(0.7rem, 2.4vw, 1.4rem);
  right: clamp(0.7rem, 2.4vw, 1.4rem);
  z-index: 97;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.8rem 0.38rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(150deg, rgba(107, 11, 35, 0.9), rgba(35, 1, 10, 0.88));
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(212, 175, 55, 0.1);
  opacity: 0;
  animation: fadeIn 0.9s ease 1.2s forwards;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.music-player:hover, .music-player:focus-within {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.22), inset 0 0 0 1px rgba(212, 175, 55, 0.16);
}

.mp-btn {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(42px, 8vw, 48px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: conic-gradient(from 140deg, #8a6a1f, #f6e3a1 18%, #c9a227 38%, #fff3c0 58%, #b98b25 78%, #8a6a1f);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.3), 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 26px rgba(212, 175, 55, 0.32);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s ease;
}
.mp-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #6b0b23, #330310 78%);
}
.mp-btn:hover, .mp-btn:focus-visible {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.45), 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 34px rgba(212, 175, 55, 0.55);
  outline: none;
}
.mp-btn:active { transform: scale(0.97); }

.mp-ic {
  position: relative;
  z-index: 2;
  width: 46%;
  height: 46%;
  color: var(--gold-light);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
}
.mp-ic.ic-mute { display: none; }
.music-player.muted .mp-ic.ic-note { display: none; }
.music-player.muted .mp-ic.ic-mute { display: block; color: rgba(244, 228, 166, 0.62); filter: none; }
.music-player.playing .mp-ic.ic-note { animation: noteSway 2.8s ease-in-out infinite; }
@keyframes noteSway {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.06); }
}

.mp-ring {
  position: absolute;
  inset: -5px;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  opacity: 0;
}
.music-player.playing .mp-ring { animation: pulseRing 3.2s ease-out infinite; }
@keyframes pulseRing {
  0% { transform: scale(0.94); opacity: 0.7; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}

.mp-info { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.mp-song {
  margin: 0;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 231, 0.8);
  transition: color 0.4s ease;
}
.music-player.playing .mp-song { color: var(--gold-light); }
.mp-film {
  margin: 0;
  font-family: var(--font-caps);
  font-size: 0.44rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.55);
}

.mp-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(212, 175, 55, 0.22);
}
.mp-play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.mp-play:hover, .mp-play:focus-visible {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.85);
  transform: scale(1.06);
  outline: none;
}
.mp-play svg { width: 11px; height: 11px; }
.mp-play .i-pause { display: none; }
.music-player.playing .mp-play .i-play { display: none; }
.music-player.playing .mp-play .i-pause { display: block; }

.mp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 74px;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.mp-vol::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0.22));
}
.mp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c0, #d4af37 60%, #8a6a1f);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}
.mp-vol::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0.22));
}
.mp-vol::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c0, #d4af37 60%, #8a6a1f);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}
.mp-vol:focus-visible { outline: 1px solid rgba(212, 175, 55, 0.7); outline-offset: 4px; border-radius: 99px; }

@keyframes fadeIn { to { opacity: 1; } }

/* ─────────── landing ─────────── */

.landing {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: max(1.4rem, 4vh) 1.2rem;
  overflow: hidden;
  transition: opacity 0.9s ease, transform 1.1s var(--ease-luxe), filter 0.9s ease;
}
.landing.leaving {
  opacity: 0;
  transform: scale(1.14);
  filter: blur(8px);
  pointer-events: none;
}
.landing-halo {
  position: absolute;
  width: min(120vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.07) 32%, transparent 62%);
  filter: blur(14px);
  animation: haloPulse 7s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}
.landing-arch {
  position: absolute;
  width: min(92vw, 720px);
  height: min(94vh, 860px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 46% 46% 8px 8px / 32% 32% 8px 8px;
  box-shadow: inset 0 0 90px rgba(212, 175, 55, 0.09);
  pointer-events: none;
}
.landing-arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: inherit;
}

.landing-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(720px, 100%);
  padding: 1rem;
}

.shloka {
  margin: 0 0 clamp(0.4rem, 1.6vh, 1rem);
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  letter-spacing: 0.28em;
  color: rgba(244, 228, 166, 0.85);
}

.ganesh-wrap {
  position: relative;
  width: clamp(84px, 15vh, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: clamp(0.2rem, 1vh, 0.6rem);
}
.ganesh-aura {
  position: absolute;
  inset: -42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 148, 0.5) 0%, rgba(212, 175, 55, 0.22) 38%, transparent 68%);
  animation: haloPulse 5.5s ease-in-out infinite;
}
.ganesh-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 4px rgba(61, 4, 19, 0.6), 0 0 34px rgba(212, 175, 55, 0.5);
}

.shubh {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 0.95;
  padding: 0 0.1em 0.12em;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.35));
}
.landing-names {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 5.4vw, 2.9rem);
  color: var(--cream);
  text-shadow: 0 0 26px rgba(212, 175, 55, 0.28);
}

.landing-couple {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  width: 100%;
  margin: clamp(1rem, 3vh, 1.9rem) 0 clamp(1.2rem, 3.4vh, 2.2rem);
}
.mini-person {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.mini-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 20vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 0deg, #8a6a1f, #f6e3a1, #c9a227, #fff3c0, #a9832b, #8a6a1f);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.25), 0 0 30px rgba(212, 175, 55, 0.3);
  transition: transform 0.6s var(--ease-luxe), box-shadow 0.6s ease;
}
.mini-ring::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dotted rgba(212, 175, 55, 0.4);
}
.mini-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3d0413;
}
.mini-person figcaption {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.7);
}
.landing-note {
  margin: 0;
  font-size: clamp(0.78rem, 2.1vw, 0.98rem);
  line-height: 1.75;
  color: rgba(255, 248, 231, 0.8);
}
.landing-note em { color: var(--gold-light); font-style: italic; }

.tap-hint {
  margin: 0.95rem 0 0;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.55);
  animation: hintFloat 3.4s ease-in-out infinite;
}
.tap-hint .spark { color: var(--gold); }
@keyframes hintFloat {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ─────────── curtain ─────────── */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  overflow: hidden;
}
.curtain.show { display: block; }
.curtain.done { display: none; }

.curtain-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #6b0b23, #380212 62%, #1c0107);
  transition: opacity 0.9s ease 0.15s;
}
.curtain.open .curtain-bg { opacity: 0; }

.curtain-rays {
  position: absolute;
  inset: -20%;
  opacity: 0;
  background:
    conic-gradient(from 180deg at 50% 50%,
      transparent 0deg, rgba(255, 226, 148, 0.55) 3deg, transparent 7deg,
      transparent 22deg, rgba(255, 226, 148, 0.35) 26deg, transparent 31deg,
      transparent 52deg, rgba(255, 226, 148, 0.5) 56deg, transparent 61deg,
      transparent 88deg, rgba(255, 226, 148, 0.3) 92deg, transparent 97deg,
      transparent 128deg, rgba(255, 226, 148, 0.45) 132deg, transparent 137deg,
      transparent 176deg, rgba(255, 226, 148, 0.3) 180deg, transparent 185deg);
  filter: blur(6px);
  transition: opacity 1.2s ease;
  animation: spin 26s linear infinite;
}
.curtain.open .curtain-rays { opacity: 0.9; }

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51.5%;
  transform-style: preserve-3d;
  transition: transform 2.5s cubic-bezier(0.66, 0.02, 0.24, 1);
  will-change: transform;
}
.curtain-panel.curtain-left { left: 0; transform-origin: left center; }
.curtain-panel.curtain-right { right: 0; transform-origin: right center; }

.curtain.open .curtain-left { transform: rotateY(-118deg) translateZ(40px); }
.curtain.open .curtain-right { transform: rotateY(118deg) translateZ(40px); }

.curtain-fabric {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.55) 0px,
      rgba(120, 12, 38, 0.9) 9px,
      rgba(190, 30, 62, 0.85) 22px,
      rgba(112, 8, 32, 0.95) 38px,
      rgba(150, 18, 46, 0.9) 52px,
      rgba(0, 0, 0, 0.5) 66px),
    linear-gradient(180deg, #8e0f2c 0%, #6c0a22 48%, #4a0416 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}
.curtain-fabric::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: repeating-linear-gradient(178deg,
    transparent 0 42px,
    rgba(255, 214, 120, 0.06) 42px 44px,
    transparent 44px 96px);
  mix-blend-mode: screen;
}

.curtain-zari {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(14px, 3vw, 26px);
  background:
    repeating-linear-gradient(180deg,
      #8a6a1f 0 6px, #f6e3a1 6px 9px, #c9a227 9px 15px, #fff3c0 15px 17px),
    var(--gold-grad);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.65), 0 0 60px rgba(212, 175, 55, 0.3);
}
.curtain-left .curtain-zari { right: 0; }
.curtain-right .curtain-zari { left: 0; }

.curtain-zari::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(61, 4, 19, 0.35) 0 4px, transparent 4px 8px);
}
.curtain-tassel {
  position: absolute;
  top: 0;
  width: 3px;
  height: clamp(60px, 14vh, 130px);
  background: linear-gradient(180deg, #f6e3a1, #c9a227 60%, #8a6a1f);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7);
}
.curtain-tassel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 16px;
  height: 16px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c0, #c9a227 55%, #7d5e18);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.8);
}
.curtain-left .curtain-tassel { right: calc(clamp(14px, 3vw, 26px) / 2); }
.curtain-right .curtain-tassel { left: calc(clamp(14px, 3vw, 26px) / 2); }

.curtain-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 240, 190, 0.7) 0%, rgba(255, 214, 120, 0.18) 28%, transparent 58%);
  transition: opacity 0.6s ease;
}
.curtain.open .curtain-glow { animation: revealFlash 2.4s ease-out forwards; }
@keyframes revealFlash {
  0% { opacity: 0; }
  22% { opacity: 1; }
  100% { opacity: 0; }
}

/* ─────────── invitation shell ─────────── */

.invitation {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease 0.25s, transform 1.7s var(--ease-luxe) 0.25s;
}
.invitation.revealed { opacity: 1; transform: none; }

.section {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(3.4rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}
.section-title {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6.4vw, 3.9rem);
  line-height: 1.04;
  padding-bottom: 0.16em;
  filter: drop-shadow(0 3px 16px rgba(212, 175, 55, 0.3));
}
.section-sub {
  margin: 0.9rem auto 0;
  max-width: 46ch;
  font-size: clamp(0.86rem, 2.1vw, 1rem);
  font-style: italic;
  color: rgba(255, 248, 231, 0.72);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s var(--ease-luxe), transform 1.1s var(--ease-luxe);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* diyas */
.diyas { position: absolute; inset: 0; pointer-events: none; }
.diya {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff6cf 0%, #ffcc55 42%, rgba(255, 138, 20, 0.25) 70%, transparent 72%);
  box-shadow: 0 0 26px 10px rgba(255, 176, 46, 0.32), 0 0 60px 22px rgba(255, 120, 0, 0.14);
  animation: flicker 3.6s ease-in-out infinite;
}
.diya.d1 { top: 12%; left: 6%; animation-delay: 0.2s; }
.diya.d2 { top: 26%; right: 8%; animation-delay: 1.1s; }
.diya.d3 { bottom: 18%; left: 12%; animation-delay: 2s; }
.diya.d4 { bottom: 9%; right: 14%; animation-delay: 0.7s; }
@keyframes flicker {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  40% { opacity: 1; transform: scale(1.12); }
  70% { opacity: 0.75; transform: scale(1); }
}

/* ─────────── hero ─────────── */

.hero {
  display: grid;
  place-items: center;
  padding-top: clamp(2.6rem, 7vw, 4.6rem);
  padding-bottom: clamp(2rem, 5vw, 3.4rem);
  min-height: 100svh;
}
.hero-card {
  width: min(760px, 100%);
  padding: clamp(2rem, 6vw, 3.8rem) clamp(1.2rem, 5vw, 3.4rem);
  text-align: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.14), transparent 62%),
    linear-gradient(165deg, rgba(255, 248, 231, 0.06), rgba(42, 2, 9, 0.55));
  border-color: rgba(212, 175, 55, 0.34);
}
.hero-invite {
  margin: 0 auto;
  max-width: 42ch;
  font-size: clamp(0.84rem, 2.1vw, 1rem);
  line-height: 1.85;
  color: rgba(255, 248, 231, 0.78);
}
.names {
  margin: clamp(0.9rem, 2.4vw, 1.5rem) 0 0;
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 10vw, 5.4rem);
  line-height: 1.05;
  padding: 0 0.06em 0.18em;
  filter: drop-shadow(0 6px 24px rgba(212, 175, 55, 0.32));
}
.hero-date {
  margin: 0;
  font-family: var(--font-caps);
  font-size: clamp(0.78rem, 2.4vw, 1rem);
  letter-spacing: 0.28em;
  color: var(--cream);
}
.hero-venue {
  margin: 0.5rem 0 0;
  font-size: clamp(0.82rem, 2.1vw, 0.98rem);
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(244, 228, 166, 0.72);
}

/* countdown */
.countdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.3rem, 1.4vw, 0.9rem);
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  padding-top: clamp(1.3rem, 3vw, 1.9rem);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.cd-unit {
  min-width: clamp(52px, 17vw, 84px);
  padding: 0.55rem 0.2rem 0.6rem;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: inset 0 0 16px rgba(212, 175, 55, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.cd-num {
  font-family: var(--font-caps);
  font-size: clamp(1.05rem, 4.2vw, 1.85rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
  line-height: 1;
}
.cd-label {
  font-family: var(--font-caps);
  font-size: clamp(0.42rem, 1.5vw, 0.54rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.55);
}
.cd-sep {
  align-self: center;
  color: rgba(212, 175, 55, 0.45);
  font-size: 1rem;
  padding-bottom: 0.7rem;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  font-family: var(--font-caps);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 228, 166, 0.6);
  transition: color 0.3s ease;
}
.scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--gold-light); }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ─────────── scratch card ─────────── */

.scratch-section { text-align: center; }

.scratch-card {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.2), transparent 64%),
    linear-gradient(160deg, #56081c, #2a0209 80%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(212, 175, 55, 0.16);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.scratch-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 3px;
  pointer-events: none;
  z-index: 4;
}
.scratch-card:active { cursor: grabbing; }

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
}
.scratch-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-caps);
  font-size: clamp(0.5rem, 1.6vw, 0.62rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.65);
}
.scratch-date {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1.1;
  padding: 0 0.08em 0.16em;
}
.scratch-day {
  margin: 0;
  font-family: var(--font-caps);
  font-size: clamp(0.6rem, 1.9vw, 0.74rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.82);
}
.scratch-rule {
  width: 70px;
  height: 1px;
  margin: 0.7rem 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent);
}
.scratch-time {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.78rem, 2.2vw, 0.94rem);
  color: rgba(244, 228, 166, 0.75);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  transition: opacity 0.9s ease, transform 1.1s var(--ease-luxe);
}
.scratch-card.revealed .scratch-canvas {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.scratch-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  translate: -50% 0;
  z-index: 5;
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(35, 1, 10, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-family: var(--font-caps);
  font-size: clamp(0.48rem, 1.7vw, 0.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.82);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: hintFloat 3.4s ease-in-out infinite;
}
.scratch-card.revealed .scratch-hint { opacity: 0; transform: translateY(8px); }
.scratch-card.revealed .shimmer { animation: shimmerText 3.4s linear infinite; }
@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.scratch-sparkles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.scratch-card.revealed .scratch-sparkles::before,
.scratch-card.revealed .scratch-sparkles::after {
  content: "✦";
  position: absolute;
  font-size: 1.4rem;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(255, 232, 160, 0.9);
  animation: sparkFloat 2.6s ease-out forwards;
}
.scratch-card.revealed .scratch-sparkles::before { top: 26%; left: 16%; }
.scratch-card.revealed .scratch-sparkles::after { bottom: 24%; right: 14%; animation-delay: 0.3s; }
@keyframes sparkFloat {
  0% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  35% { opacity: 1; transform: scale(1.15) rotate(35deg); }
  100% { opacity: 0; transform: scale(0.8) translateY(-26px) rotate(90deg); }
}

.scratch-foot {
  margin: clamp(1.2rem, 3vw, 1.8rem) 0 0;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 231, 0.45);
}

/* ─────────── couple ─────────── */

.couple-section { text-align: center; }

.ganesh-shrine {
  margin: 0 auto clamp(2.4rem, 6vw, 3.8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.shrine-frame {
  position: relative;
  width: clamp(132px, 30vw, 190px);
  aspect-ratio: 3 / 4;
  padding: 6px;
  border-radius: 48% 48% 10px 10px / 38% 38% 10px 10px;
  background: conic-gradient(from 200deg, #8a6a1f, #f6e3a1, #b98b25, #fff3c0, #c9a227, #8a6a1f);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.2), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(212, 175, 55, 0.25);
  transition: transform 0.7s var(--ease-luxe), box-shadow 0.7s ease;
}
.shrine-frame:hover, .shrine-frame:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.3), 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 90px rgba(212, 175, 55, 0.45);
}
.shrine-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 47% 47% 8px 8px / 37% 37% 8px 8px;
  border: 2px solid #3d0413;
}
.shrine-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 148, 0.35), transparent 62%);
  animation: haloPulse 6s ease-in-out infinite;
  pointer-events: none;
}
.shrine-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.72);
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
}
.couple-heart {
  color: rgba(212, 175, 55, 0.7);
  width: 34px;
  animation: heartBeat 2.8s ease-in-out infinite;
}
.couple-heart svg { width: 100%; height: 100%; fill: none; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  45% { transform: scale(1.18); opacity: 1; }
  60% { transform: scale(1.04); opacity: 0.85; }
}

.person-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(0.9rem, 3vw, 1.7rem);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(255, 248, 231, 0.045), rgba(42, 2, 9, 0.25));
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.6s var(--ease-luxe);
}
.person-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.16), 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.portrait {
  position: relative;
  width: clamp(140px, 34vw, 210px);
  aspect-ratio: 1;
  margin: 0 auto 1.4rem;
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8a6a1f, #f6e3a1 20%, #b98b25 42%, #fff3c0 62%, #c9a227 82%, #8a6a1f);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.18), 0 14px 40px rgba(0, 0, 0, 0.42);
  transition: transform 0.7s var(--ease-luxe), box-shadow 0.7s ease;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #3d0413;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.7s ease, transform 0.9s var(--ease-luxe);
}
.person-card:hover .portrait {
  transform: scale(1.03);
  box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.3), 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 70px rgba(212, 175, 55, 0.45);
}
.person-card:hover .portrait img {
  filter: saturate(1.05) contrast(1.05) brightness(1.04);
  transform: scale(1.04);
}
.portrait-ring {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.42);
  animation: spin 60s linear infinite;
  pointer-events: none;
}

.person-name {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.85rem, 5vw, 2.7rem);
  line-height: 1.1;
  padding: 0 0.06em 0.14em;
}
.person-role {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.6);
}
.person-parents {
  margin: 0;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  line-height: 1.6;
  color: rgba(255, 248, 231, 0.7);
}
.person-quote {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  font-style: italic;
  font-size: clamp(0.82rem, 2.1vw, 0.96rem);
  color: rgba(244, 228, 166, 0.82);
}

/* ─────────── events ─────────── */

.events-section { text-align: center; }

.events-pattern {
  position: absolute;
  inset: -6% -8%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    repeating-conic-gradient(from 0deg at 50% 46%,
      rgba(212, 175, 55, 0.3) 0deg 0.55deg,
      transparent 0.55deg 9deg),
    repeating-radial-gradient(circle at 50% 46%,
      rgba(212, 175, 55, 0.16) 0 1px,
      transparent 1px 42px);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 0%, rgba(0, 0, 0, 0.45) 52%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 0%, rgba(0, 0, 0, 0.45) 52%, transparent 82%);
  animation: spin 240s linear infinite;
}
.events-pattern::after {
  content: "";
  position: absolute;
  inset: 16% 12%;
  background:
    repeating-conic-gradient(from 45deg at 50% 50%,
      rgba(255, 248, 231, 0.14) 0deg 0.5deg,
      transparent 0.5deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 66%);
  mask-image: radial-gradient(circle, #000 0%, transparent 66%);
}

.events-section .section-head { position: relative; z-index: 1; }

.events-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 1.7rem);
}

.event-card {
  --ev: rgba(212, 175, 55, 0.55);
  --ev-tint: rgba(212, 175, 55, 0.14);
  --ev-ink: var(--gold-light);
  --ev-glow: rgba(212, 175, 55, 0.26);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.2rem) clamp(1rem, 3vw, 1.7rem) clamp(1.4rem, 3.4vw, 1.8rem);
  border-radius: 6px;
  border: 1px solid var(--ev);
  background:
    radial-gradient(circle at 50% -12%, var(--ev-tint), transparent 62%),
    linear-gradient(165deg, rgba(255, 248, 231, 0.05), rgba(42, 2, 9, 0.46));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08), 0 18px 44px rgba(0, 0, 0, 0.38);
  transition: opacity 0.9s var(--ease-luxe), transform 0.6s var(--ease-luxe), box-shadow 0.5s ease, border-color 0.5s ease;
}
.event-card:hover, .event-card:focus-within {
  transform: translateY(-7px);
  border-color: rgba(255, 232, 160, 0.85);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.28),
    0 28px 62px rgba(0, 0, 0, 0.5),
    0 0 62px var(--ev-glow);
}

.event-card.haldi {
  --ev: rgba(232, 193, 74, 0.58);
  --ev-tint: rgba(240, 196, 64, 0.16);
  --ev-ink: #f7e2a4;
  --ev-glow: rgba(240, 196, 64, 0.26);
}
.event-card.mehendi {
  --ev: rgba(138, 178, 110, 0.55);
  --ev-tint: rgba(138, 178, 110, 0.16);
  --ev-ink: #d3e6bd;
  --ev-glow: rgba(138, 178, 110, 0.24);
}
.event-card.wedding {
  --ev: rgba(206, 92, 86, 0.6);
  --ev-tint: rgba(206, 92, 86, 0.18);
  --ev-ink: #ffd9c0;
  --ev-glow: rgba(206, 92, 86, 0.28);
}
.event-card.sangeet {
  --ev: rgba(212, 175, 55, 0.6);
  --ev-tint: rgba(128, 0, 32, 0.34);
  --ev-ink: #f4e4a6;
  --ev-glow: rgba(212, 175, 55, 0.3);
}

.event-medallion {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(56px, 9vw, 68px);
  aspect-ratio: 1;
  margin-bottom: 0.95rem;
  border-radius: 50%;
  color: var(--ev-ink);
  border: 1px solid var(--ev);
  background: radial-gradient(circle at 50% 32%, var(--ev-tint), rgba(42, 2, 9, 0.72) 76%);
  box-shadow: 0 0 22px var(--ev-glow), inset 0 0 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s var(--ease-luxe), box-shadow 0.5s ease;
}
.event-medallion::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dotted rgba(212, 175, 55, 0.35);
}
.event-medallion svg { width: 52%; height: 52%; }
.event-card:hover .event-medallion {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 34px var(--ev-glow), inset 0 0 18px rgba(0, 0, 0, 0.3);
}

.event-name {
  margin: 0;
  font-family: var(--font-caps);
  font-size: clamp(0.84rem, 2.1vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ev-ink);
  text-shadow: 0 0 20px var(--ev-glow);
}
.event-hindi {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255, 248, 231, 0.52);
}

.event-date {
  margin: 0.9rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.1;
  padding-bottom: 0.12em;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}
.event-day {
  margin: 0.15rem 0 0;
  font-family: var(--font-caps);
  font-size: 0.48rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.6);
}

.event-meta {
  width: 100%;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.event-meta .meta-item { padding-bottom: 0.45rem; }
.event-meta .meta-item:last-child { padding-bottom: 0; border-bottom: 0; }
.event-meta .meta-v {
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  text-align: right;
}

.ev-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.07);
  color: var(--gold-light);
  font-family: var(--font-caps);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.ev-cal svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ev-cal span { position: relative; top: 1px; }
.ev-cal:hover, .ev-cal:focus-visible {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.22);
  transform: translateY(-2px);
  outline: none;
}
.ev-cal:active { transform: translateY(0) scale(0.99); }

/* spacing between the meta block and the calendar button */
.event-meta + .ev-cal { margin-top: 1.3rem; }

/* ─────────── venue ─────────── */

.venue-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.2rem, 3.4vw, 2.2rem);
  align-items: stretch;
}
.venue-info {
  padding: clamp(1.6rem, 4.4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.venue-label {
  margin: 0;
  font-family: var(--font-caps);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.6);
}
.venue-name {
  margin: 0.2rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4.8vw, 2.6rem);
  line-height: 1.15;
  padding-bottom: 0.1em;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}
.venue-address {
  margin: 0.2rem 0 0;
  font-size: clamp(0.84rem, 2.1vw, 0.96rem);
  line-height: 1.75;
  color: rgba(255, 248, 231, 0.72);
}
.venue-meta {
  width: 100%;
  margin: 1.2rem 0 1.6rem;
  display: grid;
  gap: 0.55rem;
}
.meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.2);
}
.meta-k {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.6);
}
.meta-v {
  font-size: clamp(0.82rem, 2.1vw, 0.95rem);
  color: var(--cream);
}

.map-frame {
  position: relative;
  min-height: 340px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(255, 248, 231, 0.04);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(212, 175, 55, 0.07);
}
.map-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 3px;
  filter: sepia(0.22) saturate(0.85) contrast(1.02) brightness(0.94);
  transition: filter 0.6s ease;
  position: relative;
  z-index: 1;
}
.map-frame:hover iframe { filter: sepia(0.05) saturate(1) contrast(1.02) brightness(1); }
.map-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  z-index: 3;
  opacity: 0.85;
}
.map-corner.mc1 { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.map-corner.mc2 { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.map-corner.mc3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.map-corner.mc4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ─────────── rsvp ─────────── */

.rsvp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.2rem, 3.4vw, 2rem);
  align-items: start;
}
.rsvp-form, .wishes-card {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.rsvp-form { display: flex; flex-direction: column; gap: 1.05rem; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-label {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 228, 166, 0.72);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(20, 0, 7, 0.45);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 248, 231, 0.34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 0 26px rgba(212, 175, 55, 0.16);
  background: rgba(20, 0, 7, 0.62);
}
.field input:invalid:not(:placeholder-shown) { border-color: rgba(243, 194, 204, 0.6); }
.rsvp-form .gold-btn { margin-top: 0.3rem; align-self: flex-start; }
.form-note {
  margin: -0.3rem 0 0;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255, 248, 231, 0.4);
}
.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}
.form-status.error { color: var(--pink); }

.wishes-card { min-height: 100%; }
.wishes-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4.4vw, 2.2rem);
  color: var(--gold-light);
}
.wish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; max-height: 420px; overflow-y: auto; }
.wish-list::-webkit-scrollbar { width: 6px; }
.wish-list::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 99px; }
.wish-item {
  padding: 0.85rem 1rem;
  border-left: 2px solid rgba(212, 175, 55, 0.6);
  background: rgba(255, 248, 231, 0.05);
  border-radius: 0 4px 4px 0;
  animation: wishIn 0.6s var(--ease-luxe) both;
}
@keyframes wishIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
.wish-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.3rem;
}
.wish-name {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.wish-guests { font-size: 0.66rem; font-style: italic; color: rgba(255, 248, 231, 0.45); white-space: nowrap; }
.wish-msg { margin: 0; font-size: 0.87rem; line-height: 1.6; color: rgba(255, 248, 231, 0.82); }
.wishes-empty { margin: 0; font-size: 0.86rem; font-style: italic; color: rgba(255, 248, 231, 0.4); }
.wishes-empty.hidden { display: none; }

/* ─────────── footer ─────────── */

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.4rem clamp(4.5rem, 10vw, 6rem);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, transparent, rgba(20, 0, 7, 0.55));
}
.footer-ornament {
  color: rgba(212, 175, 55, 0.55);
  font-size: 1rem;
  letter-spacing: 0.4em;
  margin-bottom: 1.2rem;
}
.footer-script {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
}
.footer-names {
  margin: 0.1rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  color: var(--cream);
  text-shadow: 0 0 34px rgba(212, 175, 55, 0.25);
}
.footer-date {
  margin: 0.5rem 0 0;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  color: rgba(244, 228, 166, 0.6);
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.footer-note {
  margin: 2.2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: rgba(255, 248, 231, 0.32);
}

/* ─────────── toast ─────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(4.6rem, 10vh, 6rem);
  translate: -50% 0;
  z-index: 110;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(35, 1, 10, 0.94);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-luxe);
}
.toast.show { opacity: 1; transform: none; }

/* ─────────── responsive ─────────── */

@media (max-width: 900px) {
  .venue-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .map-frame { order: -1; }
  .couple-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .couple-heart { margin: 0 auto; rotate: 90deg; }
  .hero { min-height: auto; }
}

@media (max-width: 620px) {
  .landing-arch { width: 94vw; height: 96vh; }
  .landing-couple { gap: 0.7rem; }
  .landing-note { font-size: 0.74rem; line-height: 1.65; }
  .landing-note br { display: none; }
  .mini-ring { width: clamp(64px, 19vw, 92px); }
  .gold-btn { padding: 0.95rem 2rem; width: 100%; max-width: 320px; }
  .rsvp-form .gold-btn { width: 100%; }
  .scratch-card { aspect-ratio: 4 / 3; min-height: 260px; }
  .cd-sep { display: none; }
  .countdown { gap: 0.4rem; }
  .cd-unit { flex: 1; min-width: 0; }
  .venue-info { align-items: center; text-align: center; }
  .meta-item { justify-content: space-between; }
  .footer-actions .ghost-btn { flex: 1 1 auto; justify-content: center; }
  .music-player { gap: 0.45rem; padding: 0.32rem 0.6rem 0.32rem 0.32rem; }
  .mp-btn { width: 40px; }
  .mp-song { font-size: 0.72rem; max-width: 96px; }
  .mp-film { display: none; }
  .mp-controls { gap: 0.35rem; padding-left: 0.42rem; }
  .mp-vol { width: 52px; }
}

@media (max-width: 380px) {
  .music-player { max-width: calc(100vw - 1.4rem); }
  .mp-song { max-width: 74px; font-size: 0.68rem; }
  .mp-vol { display: none; }
  .mp-controls { padding-left: 0.36rem; }
  .landing-note { display: none; }
  .landing-couple { grid-template-columns: auto auto; justify-content: center; gap: 1.4rem; }
  .scratch-date { font-size: 1.6rem; }
}

@media (min-width: 1200px) {
  .section { padding-top: clamp(4rem, 7vw, 7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .invitation { opacity: 1; transform: none; }
  .curtain-panel { transition-duration: 0.6s !important; }
}
