/* ==========================================================================
   Rahul weds Tanya — rahulwedstanya.com
   Royal maroon & gold, marigolds, diyas and a little magic.
   ========================================================================== */

:root {
  --maroon-950: #1a0407;
  --maroon-900: #26060d;
  --maroon-800: #3a0911;
  --maroon-700: #4e0c18;
  --maroon-600: #6a1224;
  --maroon-500: #7c1a2b;
  --gold-100: #fff4cf;
  --gold-200: #f6e3a1;
  --gold-300: #eccb77;
  --gold-400: #d9a948;
  --gold-500: #b9862f;
  --gold-600: #8c6220;
  --ivory: #fdf5e4;
  --champagne: #ecd9b0;
  --muted: rgba(253, 245, 228, 0.76);
  --line: rgba(217, 169, 72, 0.62);
  --line-soft: rgba(217, 169, 72, 0.38);
  --foil: linear-gradient(100deg, #9a6b1f 0%, #f3d98b 16%, #c8963a 32%, #fff1bf 50%, #cf9f45 66%, #f6e2a0 84%, #9a6b1f 100%);
  --card-bg: linear-gradient(180deg, rgba(110, 20, 38, 0.74), rgba(40, 6, 13, 0.86));
  --card-ring: inset 0 0 0 7px rgba(30, 3, 8, 0.5), inset 0 0 0 8.5px rgba(217, 169, 72, 0.3);
  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-deva: "Tiro Devanagari Sanskrit", "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --font-deva-display: "Rozha One", "Tiro Devanagari Sanskrit", serif;
  --gutter: 16px;
  --seal: clamp(116px, 31vw, 170px);
  --seal-y: 58%;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--maroon-900);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ivory);
  background: var(--maroon-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.js.is-locked, .js.is-locked body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold-300); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.foil {
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen 7s linear infinite;
}

@keyframes sheen { to { background-position: 200% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(110% 70% at 50% -10%, rgba(176, 28, 52, 0.55), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(122, 21, 40, 0.45), transparent 70%),
    radial-gradient(70% 50% at 0% 80%, rgba(90, 15, 31, 0.5), transparent 70%),
    linear-gradient(180deg, #3d0a15 0%, #2b0710 45%, #300816 75%, #1c0408 100%);
}

.bg__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d9a948' stroke-opacity='.085' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Ccircle cx='0' cy='0' r='18'/%3E%3Ccircle cx='80' cy='0' r='18'/%3E%3Ccircle cx='0' cy='80' r='18'/%3E%3Ccircle cx='80' cy='80' r='18'/%3E%3Cpath d='M40 22C46 32 46 48 40 58C34 48 34 32 40 22Z'/%3E%3Cpath d='M22 40C32 34 48 34 58 40C48 46 32 46 22 40Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 80%);
}

.bg__mandala {
  position: absolute;
  color: var(--gold-400);
  opacity: 0.075;
  aspect-ratio: 1;
  animation: spin 260s linear infinite;
}
.bg__mandala--top { width: min(150vw, 1000px); top: -26vh; left: 0; right: 0; margin: 0 auto; }
.bg__mandala--bottom { width: min(120vw, 760px); bottom: -34vh; right: -38vw; opacity: 0.05; animation-direction: reverse; }
.bg__mandala svg { width: 100%; height: 100%; }

.bg__bokeh span {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.95), rgba(255, 170, 60, 0.28) 45%, transparent 70%);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.75; }
  85% { opacity: 0.5; }
  100% { transform: translate3d(var(--drift, 30px), -118vh, 0); opacity: 0; }
}

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 45%, #4e0c18, #26060d 70%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mandala { width: 110px; color: var(--gold-400); animation: spin 10s linear infinite; }
.loader__text { font-family: var(--font-deva-display); font-size: 30px; color: var(--gold-300); animation: breathe 2s ease-in-out infinite; }
.no-js .loader { display: none; }

/* ---------- Gate (the palace doors) ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: radial-gradient(60% 55% at 50% 55%, #fff8dc 0%, #ffdf86 20%, #f5a53a 42%, #9b2323 74%, #3a0911 100%);
}
.no-js .gate { display: none; }

.gate__rays {
  position: absolute;
  inset: -60%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 248, 220, 0.24) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 42%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 42%);
  animation: spin 70s linear infinite;
}

.gate__doors {
  position: absolute;
  inset: 0;
  display: flex;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.door {
  position: relative;
  flex: 1 1 50%;
  height: 100%;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(90deg, rgba(255, 210, 160, 0.03) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 23px),
    linear-gradient(180deg, #5c0e1b 0%, #75182a 48%, #540d19 100%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.45);
}
.door--left { transform-origin: 0% 50%; }
.door--right { transform-origin: 100% 50%; }

.door::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, #7a5418, #f0d58a 50%, #7a5418);
}
.door--left::after { right: 0; }
.door--right::after { left: 0; }

.door__inner {
  position: absolute;
  inset: clamp(10px, 2.8vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(8px, 2vw, 16px);
  border: 2px solid rgba(217, 169, 72, 0.75);
  border-radius: 6px;
  box-shadow: inset 0 0 0 5px rgba(40, 4, 10, 0.45), inset 0 0 0 6.5px rgba(217, 169, 72, 0.4);
}

.door__arch {
  flex: 0 0 44%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 200, 120, 0.12), transparent 70%);
}
.door__arch > div { width: 88%; max-width: 300px; color: var(--gold-400); opacity: 0.7; }

.door__lattice {
  flex: 1 1 auto;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%23d9a948' stroke-opacity='.55' stroke-width='1'%3E%3Cpath d='M0 14L14 0L28 14L14 28Z'/%3E%3Ccircle cx='14' cy='14' r='3'/%3E%3C/g%3E%3Cg fill='%23e8c67a' fill-opacity='.75'%3E%3Ccircle cx='0' cy='14' r='1.4'/%3E%3Ccircle cx='28' cy='14' r='1.4'/%3E%3Ccircle cx='14' cy='0' r='1.4'/%3E%3Ccircle cx='14' cy='28' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 28px 28px;
  background-position: center;
}

.door__studs {
  flex: 0 0 19%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
}
.door__studs i {
  width: clamp(10px, 2.6vw, 18px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5cc, #e3b659 40%, #8a5f1c 80%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.door__seal {
  position: absolute;
  z-index: 2;
  top: var(--seal-y);
  width: var(--seal);
  height: var(--seal);
  margin-top: calc(var(--seal) / -2);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
.door--left .door__seal { right: calc(var(--seal) / -2); }
.door--right .door__seal { left: calc(var(--seal) / -2); }
.seal-svg { width: 100%; height: 100%; overflow: visible; }
.seal-mono { font-family: var(--font-script); font-size: 50px; fill: url(#g-gold); }
.seal-amp { font-size: 30px; }

.gate__crack {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, transparent, #fff8dc 15%, #ffffff 50%, #fff8dc 85%, transparent);
  box-shadow: 0 0 24px 8px rgba(255, 226, 150, 0.85), 0 0 90px 34px rgba(255, 190, 90, 0.45);
  opacity: 0;
  transform: scaleY(0);
}

.gate__toran, .hero__toran {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}
.toran-svg { width: 100%; height: auto; overflow: visible; }
.ladi {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: sway var(--sway-dur, 3s) ease-in-out var(--sway-delay, 0s) infinite alternate;
}
@keyframes sway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }

.plaque {
  position: absolute;
  z-index: 5;
  top: clamp(84px, 12.5vh, 124px);
  left: 50%;
  width: min(86vw, 460px);
  margin-left: calc(min(86vw, 460px) / -2);
  transform-origin: 50% -70px;
  animation: plaqueSwing 5.5s ease-in-out infinite alternate;
}
@keyframes plaqueSwing { from { transform: rotate(-0.9deg); } to { transform: rotate(0.9deg); } }

.plaque::before, .plaque::after {
  content: "";
  position: absolute;
  top: -92px;
  height: 96px;
  width: 2px;
  background: repeating-linear-gradient(180deg, #f0d58a 0 5px, #8a5f1c 5px 7px);
}
.plaque::before { left: 16%; }
.plaque::after { right: 16%; }

.plaque__board {
  position: relative;
  padding: 20px 18px 18px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #80202f 0%, #4d0b17 60%, #3a0811 100%);
  border: 1.5px solid var(--gold-400);
  border-radius: 20px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55), inset 0 0 0 5px rgba(40, 4, 10, 0.6), inset 0 0 0 6.5px rgba(217, 169, 72, 0.55);
}
.plaque__om { font-family: var(--font-deva); color: var(--gold-300); font-size: 15px; letter-spacing: 0.02em; }
.plaque__to { font-family: var(--font-script); font-size: clamp(26px, 7.2vw, 36px); line-height: 1.12; color: var(--gold-200); margin-top: 6px; }
.plaque__lead { font-style: italic; color: var(--champagne); font-size: clamp(16px, 4.1vw, 18px); margin-top: 4px; }
.plaque__names { font-family: var(--font-script); font-size: clamp(38px, 10.6vw, 70px); line-height: 1.12; padding: 0.06em 0.2em 0.12em; white-space: nowrap; }
.plaque__names span { font-size: 0.62em; padding: 0 0.08em; }
.plaque__date {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.9vw, 13px);
  color: var(--gold-200);
  margin-top: 4px;
}

.gate__open {
  position: absolute;
  z-index: 6;
  top: var(--seal-y);
  left: 50%;
  width: var(--seal);
  height: var(--seal);
  margin: calc(var(--seal) / -2) 0 0 calc(var(--seal) / -2);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.gate__open::before, .gate__open::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(246, 227, 161, 0.8);
  animation: ripple 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.gate__open::after { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(0.94); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

.gate__hint {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(var(--seal-y) + var(--seal) / 2 + 30px);
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-100);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  animation: breathe 2.4s ease-in-out infinite;
}
.gate__hint span {
  display: inline-block;
  padding: 9px 18px 9px 22px;
  border-radius: 999px;
  background: rgba(30, 4, 9, 0.62);
  box-shadow: 0 0 0 1px rgba(217, 169, 72, 0.35);
}

.gate__diya {
  position: absolute;
  z-index: 5;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: clamp(62px, 16vw, 104px);
}
.gate__diya--l { left: 5vw; }
.gate__diya--r { right: 5vw; }

@media (max-height: 720px) {
  :root { --seal: clamp(104px, 28vw, 150px); }
  .plaque { top: 76px; }
  .plaque__board { padding: 16px 16px 14px; }
}

@media (max-height: 620px) {
  :root { --seal: clamp(96px, 22vh, 130px); --seal-y: 62%; }
  .plaque { top: 64px; }
  .plaque__date, .plaque__om { display: none; }
  .gate__hint { top: auto; bottom: 10px; }
}

/* ---------- Diya ---------- */

.diya { width: 100%; height: auto; overflow: visible; }
.diya__flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 1.7s ease-in-out infinite;
}
.diya__glow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: glowPulse 2.3s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(0.94, 1.06) skewX(2deg); }
  40% { transform: scale(1.04, 0.95) skewX(-1.5deg); }
  60% { transform: scale(0.97, 1.04) skewX(1deg); }
  80% { transform: scale(1.02, 0.97) skewX(-2deg); }
}
@keyframes glowPulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Petals canvas ---------- */

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

/* ---------- Page ---------- */

.main { position: relative; z-index: 1; }
.js .main { opacity: 0; }
.js .reveal, .js .reveal-hero { opacity: 0; }

.section { position: relative; padding: clamp(72px, 12vw, 120px) var(--gutter); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 38px; }
.section-head__hi { font-family: var(--font-deva); font-size: clamp(18px, 4.6vw, 22px); color: var(--gold-300); margin-bottom: 4px; }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 7.4vw, 44px);
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0;
}
.divider { width: min(320px, 80%); margin: 14px auto 0; }
.divider-svg { width: 100%; height: auto; }

.invocation { font-family: var(--font-deva); font-size: clamp(19px, 5vw, 23px); color: var(--gold-300); letter-spacing: 0.02em; }
.shloka { font-family: var(--font-deva); font-size: clamp(15.5px, 4vw, 18.5px); line-height: 1.85; color: rgba(253, 245, 228, 0.84); margin-top: 8px; }
.shloka span { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(128px, 18vh, 168px) var(--gutter) 56px;
  text-align: center;
}
.hero__inner { position: relative; max-width: 620px; margin: 0 auto; }

.invite-card {
  position: relative;
  margin: 92px auto 0;
  padding: clamp(78px, 19vw, 104px) clamp(18px, 6vw, 48px) 46px;
  border-radius: 50% 50% 24px 24px / clamp(150px, 40vw, 250px) clamp(150px, 40vw, 250px) 24px 24px;
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), var(--card-ring);
}

.invite-card__finial {
  position: absolute;
  top: -54px;
  left: 50%;
  width: 108px;
  height: 108px;
  margin-left: -54px;
}

.om-medallion {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #86202f 0%, #4a0b16 72%);
  box-shadow:
    0 0 0 1.5px var(--gold-400),
    0 0 0 6px rgba(40, 4, 10, 0.92),
    0 0 0 7.5px rgba(217, 169, 72, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 190, 90, 0.28);
}
.om-medallion > div { position: absolute; inset: 7px; color: var(--gold-400); opacity: 0.75; animation: spin 45s linear infinite; }
.om-medallion > div svg { width: 100%; height: 100%; }
.om-medallion span {
  position: relative;
  font-family: var(--font-deva);
  font-size: 46px;
  line-height: 1;
  margin-top: 6px;
  color: var(--gold-200);
  text-shadow: 0 0 18px rgba(255, 210, 120, 0.65);
}

.corner { position: absolute; width: clamp(44px, 12vw, 64px); height: auto; }
.corner--bl { left: 12px; bottom: 12px; transform: rotate(-90deg); }
.corner--br { right: 12px; bottom: 12px; transform: rotate(180deg); }
.corner--tl { left: 12px; top: 12px; }
.corner--tr { right: 12px; top: 12px; transform: rotate(90deg); }

.eyebrow-hi { font-family: var(--font-deva-display); font-size: clamp(36px, 10vw, 50px); line-height: 1.25; padding: 0 0.1em; }
.guest-greet { font-family: var(--font-script); font-size: clamp(32px, 8.6vw, 42px); line-height: 1.2; color: var(--gold-200); margin-top: 6px; }
.lead { font-style: italic; font-size: clamp(17.5px, 4.5vw, 20.5px); color: var(--champagne); max-width: 30em; margin: 8px auto 14px; line-height: 1.5; }

.couple { margin: 6px 0 16px; }
.person__name {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(78px, 22vw, 132px);
  line-height: 1.08;
  padding: 0.08em 0.24em 0.16em;
  margin: -0.08em 0 -0.12em;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}
.person__parents { font-size: clamp(15px, 3.9vw, 17.5px); color: var(--muted); letter-spacing: 0.01em; }

.weds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 4px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.weds::before, .weds::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.weds::after { transform: scaleX(-1); }

.date-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  margin: 22px auto 8px;
  font-family: var(--font-display);
}
.date-block__side {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(12px, 3.2vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.date-block__day { font-size: clamp(56px, 15vw, 76px); line-height: 1; font-weight: 600; padding: 0 4px; }

.time-line { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); margin: 6px 0 16px; }
.venue-line__name { display: block; font-family: var(--font-display); font-size: clamp(18px, 4.8vw, 22px); letter-spacing: 0.08em; }
.venue-line__addr { display: block; font-style: italic; color: var(--muted); font-size: 16.5px; }

.scroll-cue {
  display: block;
  width: 26px;
  height: 42px;
  margin: 40px auto 0;
  border: 1.5px solid rgba(217, 169, 72, 0.7);
  border-radius: 14px;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-200);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Countdown ---------- */

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2.6vw, 26px);
  max-width: 660px;
  margin: 0 auto;
}
.cd-unit {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 28, 46, 0.9), rgba(52, 8, 16, 0.94) 72%);
  box-shadow:
    0 0 0 1.5px rgba(217, 169, 72, 0.8),
    0 0 0 5px rgba(40, 4, 10, 0.8),
    0 0 0 6px rgba(217, 169, 72, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.4);
}
.cd-unit__ring { position: absolute; inset: 5%; color: var(--gold-400); opacity: 0.26; animation: spin 90s linear infinite; }
.cd-unit__ring svg { width: 100%; height: 100%; }
.cd-unit__num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 7.4vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-unit__label {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(9px, 2.4vw, 12px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-top: 6px;
}
.countdown__note { text-align: center; font-style: italic; font-size: 19px; color: var(--champagne); margin-top: 28px; }
.countdown__note strong { display: inline-block; font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: 0.06em; color: var(--ivory); }

/* ---------- Events ---------- */

.shloka-block { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.events__list {
  display: grid;
  gap: 76px;
  max-width: 1020px;
  margin: 76px auto 0;
}
@media (min-width: 860px) {
  .events__list { grid-template-columns: 1fr 1fr; gap: 36px; }
}

.event-card {
  position: relative;
  text-align: center;
  padding: 72px clamp(18px, 5vw, 32px) 30px;
  border-radius: 50% 50% 24px 24px / 120px 120px 24px 24px;
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), var(--card-ring);
}
.event-card__icon {
  position: absolute;
  top: -44px;
  left: 50%;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-200);
  background: radial-gradient(circle, #86202f, #4a0b16 72%);
  box-shadow:
    0 0 0 1.5px var(--gold-400),
    0 0 0 5px rgba(40, 4, 10, 0.92),
    0 0 0 6px rgba(217, 169, 72, 0.45),
    0 12px 30px rgba(0, 0, 0, 0.45);
}
.event-card__icon svg { width: 48px; height: 48px; }
.event-card__hi { font-family: var(--font-deva); font-size: 20px; color: var(--gold-300); }
.event-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(23px, 5.8vw, 29px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 4px 0 6px;
}
.event-card__quote { font-style: italic; font-size: 18.5px; color: var(--champagne); margin: 2px auto 4px; max-width: 22em; }
.event-card__day { font-family: var(--font-script); font-size: clamp(38px, 10vw, 48px); line-height: 1.25; padding: 0 0.2em; }

.event-card__meta {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 330px;
  margin: 16px auto 24px;
  padding: 0;
  text-align: left;
}
.event-card__meta li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 17.5px;
  line-height: 1.4;
  color: rgba(253, 245, 228, 0.92);
}
.event-card__meta svg { width: 20px; height: 20px; margin-top: 2px; color: var(--gold-300); }
.event-card__meta strong { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: 0.05em; }

.event-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1.5px solid rgba(217, 169, 72, 0.75);
  border-radius: 999px;
  background: rgba(58, 9, 17, 0.55);
  color: var(--gold-100);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, background-position 0.5s ease;
}
.btn:hover { background-color: rgba(122, 21, 40, 0.75); box-shadow: 0 0 0 3px rgba(217, 169, 72, 0.14), 0 10px 24px rgba(0, 0, 0, 0.3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold {
  color: #3a0911;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(100deg, #b98a35, #f5dc92 30%, #d9a948 55%, #fff0b8 75%, #c49440);
  background-size: 200% auto;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--gold:hover { background-color: transparent; background-position: 100% center; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Calendar menu */
.cal { position: relative; }
.cal > summary { list-style: none; }
.cal > summary::-webkit-details-marker { display: none; }
.cal__menu {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 10px);
  left: 50%;
  display: grid;
  min-width: 232px;
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #3a0911;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.cal__menu a { padding: 12px 14px; border-radius: 11px; color: var(--ivory); text-decoration: none; font-size: 17px; }
.cal__menu a:hover, .cal__menu a:focus-visible { background: rgba(217, 169, 72, 0.14); }

/* ---------- Venue ---------- */

.venue__card {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: rgba(40, 6, 13, 0.86);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.venue__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-soft); }
.venue__tabs button {
  position: relative;
  padding: 16px 8px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(11px, 3vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 245, 228, 0.66);
  cursor: pointer;
}
.venue__tabs button[aria-selected="true"] { color: var(--gold-100); background: rgba(217, 169, 72, 0.08); }
.venue__tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  background: var(--foil);
}
.venue__panel { display: grid; }
@media (min-width: 860px) { .venue__panel { grid-template-columns: 1.35fr 1fr; } }
.venue__map { position: relative; aspect-ratio: 4 / 3; background: #2a0710; }
@media (min-width: 860px) { .venue__map { aspect-ratio: auto; min-height: 400px; } }
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(0.2) saturate(0.95); }
.venue__info { display: grid; align-content: center; justify-items: center; gap: 6px; padding: 28px 22px 32px; text-align: center; }
.venue__when { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-300); }
.venue__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 6vw, 30px); letter-spacing: 0.04em; margin: 0; }
.venue__addr { font-style: italic; color: var(--muted); margin-bottom: 14px; max-width: 22em; }

/* ---------- RSVP ---------- */

.rsvp__intro { text-align: center; max-width: 32em; margin: -12px auto 30px; font-size: 18.5px; color: var(--champagne); }
.rsvp__intro strong { color: var(--ivory); font-weight: 600; }

.rsvp__card {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 42px);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--card-bg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), var(--card-ring);
}

.field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.field > label:not(.check), .field > legend {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.opt { font-family: var(--font-body); font-size: 15px; font-style: italic; letter-spacing: 0; text-transform: none; color: rgba(253, 245, 228, 0.6); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(217, 169, 72, 0.45);
  border-radius: 14px;
  background: rgba(20, 2, 6, 0.45);
  color: var(--ivory);
  font-size: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus { outline: none; border-color: var(--gold-300); box-shadow: 0 0 0 3px rgba(217, 169, 72, 0.2); }
.input::placeholder { color: rgba(253, 245, 228, 0.4); }
textarea.input { min-height: 104px; resize: vertical; line-height: 1.45; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; flex: 1 1 170px; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 169, 72, 0.45);
  border-radius: 999px;
  background: rgba(20, 2, 6, 0.35);
  color: rgba(253, 245, 228, 0.86);
  font-size: 17.5px;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.pill input:checked + span {
  border-color: var(--gold-300);
  background: linear-gradient(100deg, rgba(217, 169, 72, 0.3), rgba(246, 227, 161, 0.16));
  color: var(--gold-100);
  box-shadow: 0 0 0 3px rgba(217, 169, 72, 0.14);
}
.pill input:checked + span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-200);
  box-shadow: 0 0 10px var(--gold-200);
}
.pill input:focus-visible + span { outline: 2px solid var(--gold-300); outline-offset: 2px; }

.stepper {
  display: inline-grid;
  grid-template-columns: 50px 70px 50px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 169, 72, 0.45);
  border-radius: 999px;
  background: rgba(20, 2, 6, 0.45);
}
.stepper button { height: 50px; border: 0; background: transparent; color: var(--gold-200); font-size: 24px; line-height: 1; cursor: pointer; }
.stepper button:hover { background: rgba(217, 169, 72, 0.12); }
.stepper input {
  width: 100%;
  min-height: 50px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 20px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 16px; color: rgba(253, 245, 228, 0.78); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #d9a948; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.rsvp__submit { width: 100%; min-height: 56px; font-size: 13.5px; }
.form-status { min-height: 1.5em; margin-top: 14px; text-align: center; color: var(--champagne); }
.form-status.is-error { color: #ffb8aa; }

.rsvp__thanks { text-align: center; padding: 10px 0; }
.rsvp__thanks-title { font-family: var(--font-script); font-size: clamp(54px, 15vw, 76px); line-height: 1.2; padding: 0 0.2em; }
.rsvp__thanks-text { font-size: 19px; color: var(--champagne); max-width: 26em; margin: 4px auto 18px; }

/* ---------- Blessings wall ---------- */

.wishes__track {
  display: flex;
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 169, 72, 0.5) transparent;
}
.wish {
  position: relative;
  flex: 0 0 min(80vw, 330px);
  margin: 0;
  padding: 30px 22px 20px;
  scroll-snap-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(40, 6, 13, 0.85);
}
.wish::before {
  content: "\201C";
  position: absolute;
  top: -2px;
  left: 16px;
  font-family: var(--font-script);
  font-size: 66px;
  line-height: 1;
  color: var(--gold-400);
  opacity: 0.6;
}
.wish blockquote { margin: 0 0 12px; font-size: 18.5px; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
.wish figcaption { font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-200); }
.wishes__empty { flex: 1; text-align: center; font-style: italic; font-size: 19px; color: var(--champagne); }
.wishes__empty a { color: var(--gold-200); }
@media (min-width: 900px) {
  .wishes__track { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0 auto; max-width: 1080px; }
}

/* ---------- Footer ---------- */

.footer { position: relative; text-align: center; padding: 64px var(--gutter) calc(100px + env(safe-area-inset-bottom)); }
.footer__diyas { display: flex; justify-content: center; gap: clamp(18px, 6vw, 44px); margin-bottom: 18px; }
.footer__diyas > div { width: clamp(56px, 14vw, 82px); }
.footer__hi { font-family: var(--font-deva-display); font-size: clamp(32px, 8.6vw, 42px); line-height: 1.3; padding: 0 0.1em; }
.footer__from { margin: 6px 0 14px; font-size: 18.5px; color: var(--champagne); }
.footer__from strong { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: 0.06em; color: var(--ivory); }
.footer__rsvp { font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-200); }
.footer__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 18px; }
.footer__tag { font-family: var(--font-script); font-size: 36px; line-height: 1.3; padding: 0 0.2em; }

/* ---------- Floating music button & toast ---------- */

.music-btn {
  position: fixed;
  z-index: 45;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(217, 169, 72, 0.85);
  border-radius: 50%;
  background: radial-gradient(circle, #80202f, #3a0911 76%);
  color: var(--gold-100);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(58, 9, 17, 0.5);
  -webkit-tap-highlight-color: transparent;
}
.music-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 169, 72, 0.6);
  animation: spin 12s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.music-btn.is-playing::after { opacity: 1; animation-play-state: running; }
.music-btn__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-btn__bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  transform: scaleY(0.3);
  animation: eq 1s ease-in-out infinite;
  animation-play-state: paused;
}
.music-btn__bars i:nth-child(2) { animation-delay: -0.45s; }
.music-btn__bars i:nth-child(3) { animation-delay: -0.7s; }
.music-btn__bars i:nth-child(4) { animation-delay: -0.2s; }
.music-btn.is-playing .music-btn__bars i { animation-play-state: running; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 92px;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: #f5dc92;
  color: #3a0911;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
