/* =========================================================
   Sakshi & Ashutosh — palette pulled from the invitation film:
   ivory paper, wax-seal gold, lotus blush, wine script, sage leaf
   ========================================================= */
:root {
  --ivory: #FBF6EC;
  --cream: #F5EBDA;
  --parchment: #EEDFC6;
  --gold: #B8893B;
  --gold-soft: #D9BC7E;
  --gold-deep: #8A6224;
  --blush: #F4D8D6;
  --rose: #E2A5AC;
  --wine: #8B3A48;
  --wine-deep: #6D2A36;
  --sage: #8A9A6E;
  --ink: #4A3A2D;
  --muted: #8C7763;

  --gold-grad: linear-gradient(135deg, #8A6224 0%, #C99C4A 28%, #EED9A2 50%, #C39443 72%, #8A6224 100%);
  --shadow-soft: 0 1px 2px rgba(110, 76, 30, .06), 0 12px 40px -12px rgba(110, 76, 30, .22);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", serif;
  --script: "Great Vibes", cursive;
  --deva: "Tiro Devanagari Hindi", serif;

  --stage-h: 100vh;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
@supports (height: 100svh) { :root { --stage-h: 100svh; } }

*, *::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(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* soft paper grain across the site */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-locked { overflow: hidden; height: 100%; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

main, .footer { position: relative; z-index: 1; }

/* =========================================================
   STAGE — portrait film frame, full-bleed on phones,
   centred with a blurred ambient backdrop on wide screens
   ========================================================= */
.stage {
  position: relative;
  height: var(--stage-h);
  overflow: hidden;
  background: var(--cream);
}
.stage__backdrop {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.05) brightness(1.04);
  transform: scale(1.1);
}
.stage__backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(251, 246, 236, 0) 30%, rgba(251, 246, 236, .55) 100%);
}
.stage__frame {
  position: relative;
  height: 100%;
  width: min(100%, calc(var(--stage-h) * 9 / 16));
  margin: 0 auto;
  overflow: hidden;
  container-type: size;
  box-shadow: 0 0 0 1px rgba(184, 137, 59, .25), 0 30px 80px -20px rgba(90, 60, 20, .45);
}
/* 9:16 box that always "covers" the frame, so % positions track the film */
.cover-box {
  position: absolute;
  left: 50%; top: 50%;
  width: max(100cqw, calc(100cqh * 9 / 16));
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%);
}
.cover-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-aspect-ratio: 10/16) {
  .stage__frame { box-shadow: none; }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  cursor: pointer;
  transition: opacity 900ms var(--ease), visibility 0s linear 900ms;
}
.loader.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__eyebrow {
  position: absolute;
  left: 50%; top: 12.5%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  text-align: center;
  font-family: var(--caps);
  font-size: clamp(.62rem, 2.4cqw, .82rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-shadow: 0 0 12px rgba(251, 246, 236, .9);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) .4s forwards;
}
.loader__ring {
  position: absolute;
  left: 50%; top: 57.5%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(217, 188, 126, .9);
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  animation: ring 3.2s var(--ease) 1s infinite;
  pointer-events: none;
}
.loader__ring--late { animation-delay: 2.6s; }

.loader__action {
  position: absolute;
  left: 50%; top: 79%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.open-btn {
  position: relative;
  padding: .95rem 2.3rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(251, 246, 236, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -10px rgba(110, 76, 30, .55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s;
  isolation: isolate;
  overflow: hidden;
}
/* gold hairline border */
.open-btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* travelling shimmer */
.open-btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-18deg);
  animation: shimmer 3.4s ease-in-out 1.6s infinite;
  z-index: -1;
}
.open-btn__label {
  font-family: var(--caps);
  font-size: .86rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--wine-deep);
  padding-left: .34em;
}
.loader.is-ready .open-btn { opacity: 1; transform: none; }
.open-btn:hover { box-shadow: 0 14px 34px -10px rgba(110, 76, 30, .7); }

.loader__hint {
  margin: 0;
  font-style: italic;
  font-size: .95rem;
  color: var(--gold-deep);
  text-shadow: 0 0 10px rgba(251, 246, 236, .95);
  transition: opacity .6s;
}
.loader.is-ready .loader__hint { opacity: 0; }
.loader.is-opening .open-btn,
.loader.is-opening .loader__eyebrow,
.loader.is-opening .loader__ring { opacity: 0 !important; animation: none; transition: opacity .35s; }

@keyframes ring {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.98); }
  20%  { opacity: .9; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.22); }
}
@keyframes shimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; }
.hero__controls {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  display: flex; gap: .5rem;
  z-index: 3;
}
.chip-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(184, 137, 59, .55);
  background: rgba(251, 246, 236, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-deep);
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.chip-btn:hover { background: rgba(251, 246, 236, .95); transform: scale(1.05); }
.chip-btn svg { width: 20px; height: 20px; }
.chip-btn .snd-off { display: none; }
.chip-btn[aria-pressed="false"] .snd-on { display: none; }
.chip-btn[aria-pressed="false"] .snd-off { display: inline; }
.chip-btn[hidden] { display: none; }

.hero__cue {
  position: absolute;
  left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  text-decoration: none;
  font-family: var(--caps);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--wine-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  z-index: 3;
}
.hero__cue span {
  padding: .5rem .9rem .5rem 1.2rem;
  border-radius: 999px;
  background: rgba(251, 246, 236, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(110, 76, 30, .5);
}
.hero__cue i {
  width: 1px; height: 26px;
  background: linear-gradient(rgba(251, 246, 236, .9), transparent);
  position: relative; overflow: hidden;
}
.hero__cue i::after {
  content: "";
  position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--wine);
  animation: drip 1.8s ease-in-out infinite;
}
.hero.is-ended .hero__cue { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@keyframes drip { to { top: 110%; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .55rem clamp(16px, 4vw, 40px);
  padding-top: max(.55rem, env(safe-area-inset-top));
  background: rgba(251, 246, 236, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 137, 59, .22);
  transform: translateY(-110%);
  transition: transform .6s var(--ease);
}
.nav.is-visible { transform: none; }
.nav__mark img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav__links { display: flex; gap: clamp(.9rem, 3.5vw, 2.4rem); }
.nav__links a {
  font-family: var(--caps);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .4rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: .22em; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

/* =========================================================
   SHARED SECTION TYPE + ORNAMENTS
   ========================================================= */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.container { width: min(1120px, 100% - 32px); margin: 0 auto; }
.container.narrow { width: min(620px, 100% - 32px); }
.center { text-align: center; }

.section-head { text-align: center; margin-bottom: clamp(40px, 7vw, 72px); }
.eyebrow {
  margin: 0 0 .35rem;
  font-family: var(--caps);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.script-title {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 4.6rem);
  line-height: 1.1;
  color: var(--wine);
}
.orn {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin: .9rem auto 0;
  color: var(--gold);
}
.orn svg { width: 44px; height: 26px; flex: none; }
.orn span {
  position: relative;
  width: min(110px, 22vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.orn span:last-child { background: linear-gradient(270deg, transparent, var(--gold-soft)); }
.orn span::after {
  content: "";
  position: absolute; top: -2.5px;
  width: 6px; height: 6px;
  background: var(--gold-soft);
  transform: rotate(45deg);
}
.orn span:first-child::after { right: -2px; }
.orn span:last-child::after { left: -2px; }

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

/* =========================================================
   PATTERNS
   ========================================================= */
:root {
  --wine-dark: #5E1F2C;
  --wine-night: #471621;
  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23D9BC7E' stroke-width='1'%3E%3Ccircle cx='32' cy='22' r='10'/%3E%3Ccircle cx='42' cy='32' r='10'/%3E%3Ccircle cx='32' cy='42' r='10'/%3E%3Ccircle cx='22' cy='32' r='10'/%3E%3Cpath d='M0 -5L5 0L0 5L-5 0ZM64 -5L69 0L64 5L59 0ZM0 59L5 64L0 69L-5 64ZM64 59L69 64L64 69L59 64Z'/%3E%3C/g%3E%3C/svg%3E");
}
.has-jaali { position: relative; isolation: isolate; }
.has-jaali::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: var(--jaali);
  background-size: 64px 64px;
  opacity: var(--jaali-o, .12);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* =========================================================
   SHAPED PHOTO FRAMES
   (clip paths + gold outline are generated in main.js)
   ========================================================= */
.frame { position: relative; margin: 0; }
.frame__media {
  position: absolute; inset: 11px;
  overflow: hidden;
  background:
    var(--jaali) center / 48px 48px,
    radial-gradient(ellipse at 50% 30%, #FBEDE8 0%, #F3DCD2 55%, #EAD2B8 100%);
}
.frame__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 1.4s var(--ease);
}
.frame:hover .frame__media img { transform: scale(1.04); }
/* placeholder monogram — hidden behind the photo once one is added */
.frame__media::before {
  content: attr(data-initial);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--script);
  font-size: clamp(3.4rem, 12cqw, 6rem);
  color: rgba(139, 58, 72, .55);
  z-index: 1;
}
.frame__media::after {
  content: attr(data-label);
  position: absolute; left: 0; right: 0; bottom: 16%;
  text-align: center;
  font-family: var(--caps);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  z-index: 1;
}
.frame { container-type: inline-size; }
.frame__line {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}
.frame__line path { fill: none; vector-effect: non-scaling-stroke; }
.frame__line .l1 { stroke: url(#goldLine); stroke-width: 1.4; }
.frame__line .l2 { stroke: rgba(184, 137, 59, .35); stroke-width: 1; }
.frame__apex {
  position: absolute; left: 50%; top: -9px;
  width: 16px; height: 16px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-grad);
  z-index: 4;
}

.frame--portrait { width: 100%; aspect-ratio: 3 / 4; filter: drop-shadow(0 18px 34px rgba(110, 76, 30, .2)); }
.frame--chapter { width: min(380px, 100%); aspect-ratio: 4 / 5; justify-self: center; filter: drop-shadow(0 18px 34px rgba(110, 76, 30, .18)); }
.frame--round { aspect-ratio: 1; width: min(340px, 86%); }
.frame--oval { aspect-ratio: 3 / 4; width: min(330px, 90%); }

.ring-text {
  position: absolute;
  inset: -13%;
  width: 126%; height: 126%;
  overflow: visible;
  animation: spin 40s linear infinite;
  pointer-events: none;
}
.ring-text text {
  font-family: var(--caps);
  font-size: 9.6px;
  letter-spacing: 3.4px;
  fill: var(--gold-deep);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   WEDDING ORNAMENTS — toran, bells, mandala, diyas
   ========================================================= */
.toran {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 96px;
  background: url("../assets/toran.svg") repeat-x top center / 160px 96px;
  filter: drop-shadow(0 4px 4px rgba(70, 30, 10, .18));
  pointer-events: none;
  z-index: 2;
}
.section:has(> .toran) { padding-top: calc(clamp(80px, 12vw, 140px) + 40px); }

.bells {
  position: absolute;
  top: 70px;
  display: flex; align-items: flex-start; gap: 14px;
  z-index: 2;
  pointer-events: none;
}
.bells--l { left: clamp(10px, 5vw, 80px); }
.bells--r { right: clamp(10px, 5vw, 80px); }
.bells--sm { top: 0; }
.bell {
  position: relative;
  display: block;
  width: 26px;
  height: calc(var(--len) + 38px);
  background: linear-gradient(var(--gold-soft), var(--gold)) center top / 1px var(--len) no-repeat;
  transform-origin: 50% 0;
  animation: swing 3.8s ease-in-out infinite var(--d, 0s);
}
.bell::before { /* marigold bead on the string */
  content: "";
  position: absolute; left: 50%; top: calc(var(--len) * .45);
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #C8651B 0 22%, #F6B53C 25% 70%, #E08A26 72%);
}
.bell svg { position: absolute; bottom: 0; left: 0; width: 26px; height: 38px; }
@keyframes swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
@media (max-width: 600px) {
  .bells { top: 64px; gap: 8px; }
  .bells .bell:nth-child(2) { display: none; }
  .bells--sm { top: 0; }
  .save-date .bells { display: none; } /* the toran carries the bells on phones */
}

.mandala-bg {
  position: absolute;
  left: 50%; top: 50%;
  width: min(880px, 150vw);
  aspect-ratio: 1;
  background: url("../assets/mandala.svg") center / contain no-repeat;
  opacity: .1;
  transform: translate(-50%, -50%);
  animation: mandala 140s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.mandala-bg--top { top: 0; width: min(620px, 130vw); opacity: .09; }
@keyframes mandala { to { transform: translate(-50%, -50%) rotate(360deg); } }
.story { position: relative; isolation: isolate; overflow: hidden; }

.has-corners { position: relative; isolation: isolate; }
.has-corners::before, .has-corners::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  background: url("../assets/mandala.svg") no-repeat;
  background-size: 240px 240px;
  opacity: .28;
  pointer-events: none;
  z-index: -1;
}
.has-corners::before { left: 0; bottom: 0; background-position: -120px 0; }
.has-corners::after  { right: 0; bottom: 0; background-position: 0 0; }
.venue__card.has-corners::before { top: 0; bottom: auto; background-position: -120px -120px; }

.diya-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 5vw, 44px); margin-top: 2.6rem; }
.diya { position: relative; display: block; width: 52px; height: 42px; }
.diya svg { position: absolute; bottom: 0; left: 0; width: 52px; height: 23px; }
.diya i {
  position: absolute;
  left: 22px; bottom: 17px;
  width: 11px; height: 22px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #FFFBE6 0%, #FFE08A 28%, #FFAA3A 60%, rgba(255, 120, 30, .0) 74%);
  box-shadow: 0 -4px 22px 8px rgba(255, 176, 70, .28);
  transform-origin: 50% 100%;
  animation: flicker 1.5s ease-in-out infinite alternate var(--f, 0s);
}
@keyframes flicker {
  0%   { transform: scale(1, 1) rotate(-2deg); opacity: .95; }
  40%  { transform: scale(.92, 1.08) rotate(2deg); opacity: 1; }
  70%  { transform: scale(1.05, .94) rotate(-1deg); opacity: .9; }
  100% { transform: scale(.96, 1.04) rotate(1.5deg); opacity: 1; }
}
.diya-row--footer { margin: 0 0 2rem; }

/* =========================================================
   SAVE THE DATE — scratch to reveal
   ========================================================= */
.save-date {
  --jaali-o: .1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(244, 216, 214, .5), transparent 70%),
    var(--ivory);
}
.scratch-row {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(6px, 3vw, 30px);
}
.scratch-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.scratch {
  --size: clamp(84px, 23vw, 176px);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  container-type: inline-size;
  box-shadow:
    0 0 0 1px var(--gold-soft),
    0 0 0 6px var(--ivory),
    0 0 0 7px rgba(184, 137, 59, .55),
    0 20px 38px -14px rgba(110, 76, 30, .5);
}
.scratch__value {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #FFF9F0, #F6E1DA 70%, #EFD2C8);
  color: var(--wine);
}
.scratch__value b { font-family: var(--serif); font-weight: 500; font-size: 44cqw; line-height: 1; }
.scratch__value b.yr { font-size: 30cqw; letter-spacing: .02em; }
.scratch__value em { font-family: var(--script); font-style: normal; font-size: 36cqw; line-height: 1; padding-top: .1em; }
.scratch canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  transition: opacity .9s var(--ease);
}
.scratch.is-revealed canvas { opacity: 0; pointer-events: none; }
.scratch.is-revealed .scratch__value > * { animation: pop .7s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* gentle "scratch here" gesture over the first circle */
.scratch__finger {
  position: absolute; left: 30%; top: 55%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .35), 0 4px 10px rgba(90, 60, 20, .35);
  pointer-events: none;
  animation: rub 2.2s ease-in-out infinite;
}
.save-date.is-started .scratch__finger { opacity: 0; transition: opacity .3s; animation: none; }
@keyframes rub {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 1; }
  35%  { transform: translate(40cqw, -18cqw); }
  55%  { transform: translate(8cqw, -2cqw); }
  75%  { transform: translate(44cqw, -22cqw); opacity: 1; }
  100% { transform: translate(44cqw, -22cqw); opacity: 0; }
}
.scratch-dot { color: var(--gold); font-size: .8rem; margin-top: calc(clamp(84px, 23vw, 176px) / 2 - .6em); }
.scratch__label {
  margin: 0;
  font-family: var(--caps);
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.scratch-hint { margin: 2.2rem 0 0; font-style: italic; color: var(--muted); transition: opacity .5s; }
.save-date.is-complete .scratch-hint { opacity: 0; }
.link-btn {
  display: block;
  margin: .3rem auto 0;
  padding: .2rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--caps);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 5px;
}
.date-reveal {
  display: grid; justify-items: center;
  max-height: 0;
  opacity: 0;
  transform: translateY(16px);
  overflow: hidden;
  transition: max-height 1s var(--ease), opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s;
}
.save-date.is-complete .date-reveal { max-height: 340px; opacity: 1; transform: none; }
.save-date.is-complete .scratch-hint { max-height: 0; margin: 0; overflow: hidden; }
.date-reveal__day {
  margin: 1.4rem 0 0;
  font-family: var(--caps);
  font-size: .8rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
}
.date-reveal__long {
  margin: .3rem 0 0;
  font-family: var(--script);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.2;
  color: var(--wine);
}
.date-reveal__where { margin: .2rem 0 1.4rem; font-style: italic; color: var(--muted); }

/* burst of petals & marigolds */
.burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }

/* =========================================================
   THE COUPLE — blush band
   ========================================================= */
.couple {
  --jaali-o: .22;
  background: linear-gradient(180deg, var(--ivory) 0%, #F6E2DC 18%, #F3DAD3 82%, #F6E7E1 100%);
}
.couple__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 4vw, 56px);
  max-width: 880px;
  margin: 0 auto;
}
.person { text-align: center; }
.person .frame { width: min(300px, 100%); margin: 0 auto 1.6rem; }
.person__name {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.1;
  color: var(--wine);
}
.person__parents {
  margin: .5rem 0 0;
  font-style: italic;
  font-size: clamp(.9rem, 2.6vw, 1.05rem);
  line-height: 1.5;
  color: var(--muted);
}
.couple__amp {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  margin-top: -18%;
}
.couple__amp::before, .couple__amp::after {
  content: "";
  width: 1px; height: clamp(40px, 8vw, 90px);
  background: linear-gradient(transparent, var(--gold));
}
.couple__amp::after { background: linear-gradient(var(--gold), transparent); }
.couple__amp span {
  font-family: var(--script);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 .1em;
}
@media (max-width: 560px) {
  .person .eyebrow { font-size: .56rem; letter-spacing: .24em; }
  .person .frame { margin-bottom: 1.1rem; }
}

/* =========================================================
   COUNTDOWN BAND — deep wine contrast
   ========================================================= */
.band {
  position: relative;
  z-index: 1;
  --jaali-o: .1;
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(226, 165, 172, .22), transparent 70%),
    var(--wine-dark);
  color: var(--ivory);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 188, 126, .3);
  padding: 1rem 0;
  background: rgba(0, 0, 0, .12);
}
.marquee__track {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--caps);
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.marquee__track > * { margin-right: 1.8rem; }
.marquee__track i { font-style: normal; color: var(--rose); font-size: .6rem; }
.marquee__track .deva { font-family: var(--deva); letter-spacing: .08em; font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.band__inner { text-align: center; padding: clamp(48px, 7vw, 80px) 16px 0; }
.eyebrow--light { color: var(--gold-soft); }
.countdown {
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 620px;
}
.countdown div { display: flex; flex-direction: column; align-items: center; }
.countdown div + div { border-left: 1px solid rgba(217, 188, 126, .28); }
.countdown b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(180deg, #F6E3B4 0%, #D9B46A 55%, #B8893B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown small {
  margin-top: .3rem;
  font-family: var(--caps);
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, .6);
}

/* =========================================================
   STORY — editorial zig-zag
   ========================================================= */
.story { background: var(--ivory); }
.chapters {
  display: grid;
  gap: clamp(72px, 11vw, 130px);
  max-width: 980px;
  margin: 0 auto;
}
.chapter {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
}
.chapter--flip .frame { order: 2; }
.chapter__text { position: relative; isolation: isolate; max-width: 42ch; }
.chapter--flip .chapter__text { justify-self: end; }
.chapter__num {
  position: absolute;
  top: -.58em; left: -.08em;
  z-index: -1;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(6.5rem, 15vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 137, 59, .32);
}
.chapter h3 {
  margin: 0 0 .7rem;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  line-height: 1.1;
  color: var(--wine);
}
.chapter p:not(.eyebrow) { margin: 0; color: var(--ink); }
.chapter .eyebrow { margin-bottom: .2rem; }
@media (max-width: 720px) {
  .chapter, .chapter--flip { grid-template-columns: 1fr; text-align: center; }
  .chapter--flip .frame { order: 0; }
  .chapter .frame--chapter { width: min(290px, 76vw); }
  .chapter .frame--round { width: min(250px, 66vw); }
  .chapter__text, .chapter--flip .chapter__text { justify-self: center; }
  .chapter__num { display: none; }
}

/* =========================================================
   EVENTS — deep wine contrast
   ========================================================= */
.events {
  --jaali-o: .09;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(226, 165, 172, .16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(217, 188, 126, .12), transparent 70%),
    var(--wine-night);
  color: var(--ivory);
}
.events .script-title { color: #F3DDB0; }
.events .orn { color: var(--gold-soft); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.event {
  position: relative;
  text-align: center;
  padding: 2.6rem 1.2rem 2.1rem;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(217, 188, 126, .3);
  --ty: 0px; --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease), box-shadow .5s var(--ease), opacity .8s var(--ease), clip-path 1.1s var(--ease);
}
.event::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(217, 188, 126, .18);
  border-radius: 999px 999px 3px 3px;
  pointer-events: none;
}
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) { --ty: -8px; }
.event__icon {
  width: 58px; height: 58px;
  margin: 1.4rem auto 1.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-soft);
  border: 1px solid rgba(217, 188, 126, .45);
  background: radial-gradient(circle, rgba(217, 188, 126, .2), transparent 70%);
  position: relative;
}
.event__icon svg { width: 28px; height: 28px; }
.event__day {
  margin: 0;
  font-family: var(--caps);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.event h3 {
  margin: .1rem 0 .6rem;
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.7rem;
  line-height: 1.15;
  color: #FBF1E4;
}
.event__time { margin: 0; font-weight: 600; color: var(--ivory); line-height: 1.45; }
.event__place { margin: .2rem 0 1.2rem; font-style: italic; color: rgba(251, 246, 236, .7); }
.event__dress {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0;
  padding: .38rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-family: var(--caps);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory);
}
.event__dress i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}
/* lit state: the card in the scroll spotlight (or under the pointer) turns ivory & gold */
.event > :not(.ev-deco) { position: relative; z-index: 1; }
.event__day, .event h3, .event__time, .event__place, .event__icon, .event__dress, .event::before {
  transition: color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.ev-fill {
  position: absolute; inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #FFF8EC, #F6E4D6);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.event::after { /* gold gradient border */
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
  z-index: 2;
}
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) { box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .6); }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .ev-fill, :is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover)::after { opacity: 1; }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover)::before { border-color: rgba(184, 137, 59, .45); z-index: 1; }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) h3 { color: var(--wine); }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .event__day { color: var(--gold); }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .event__time { color: var(--ink); }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .event__place { color: var(--muted); }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .event__icon { color: var(--gold-deep); border-color: rgba(184, 137, 59, .5); background-color: rgba(244, 216, 214, .55); }
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .event__dress { background: rgba(238, 223, 198, .7); color: var(--ink); }

/* ---------- Event cards: motion ---------- */
/* pre-reveal state — only once JS has armed the grid, so no-JS still shows everything */
.event-grid.is-armed .event:not(.is-in) {
  --ty: 70px;
  opacity: 0;
  clip-path: inset(100% 0 0 0);
}
.event.is-in:not(.is-done) { clip-path: inset(0 0 0 0); }
.event.is-tilting { transition: transform .14s linear, box-shadow .5s var(--ease); }

/* content arrives line by line */
.event-grid.is-armed .event > :not(.ev-deco) {
  --delay: calc(.5s + var(--i, 0) * .09s);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease) var(--delay), transform .7s var(--ease) var(--delay),
    color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.event-grid.is-armed .event.is-in > :not(.ev-deco) { opacity: 1; transform: none; }
.event-grid.is-armed .event > .event__icon {
  transform: scale(.3) rotate(-50deg);
  transition: opacity .6s var(--ease) .45s, transform .9s cubic-bezier(.34, 1.56, .64, 1) .45s,
    color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.event-grid.is-armed .event.is-in > .event__icon { transform: none; }

/* icon: turning dashed ring, one-off glow ping, gentle float */
.event__icon::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 188, 126, .5);
  animation: spin 26s linear infinite;
}
:is(.event-grid:not(.is-hovering) .event.is-lit, .event:hover) .event__icon::before { border-color: rgba(184, 137, 59, .55); }
.event__icon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  opacity: 0;
}
.event.is-in .event__icon::after { animation: ping 1.6s ease-out 1.1s 1; }
.event.is-in .event__icon svg { animation: float 3.8s ease-in-out 1.8s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* gold outline that traces up both sides of the arch and meets at the top */
.ev-line {
  position: absolute; left: -1px; top: -1px;
  overflow: visible;
  pointer-events: none;
}
.ev-line path {
  fill: none;
  stroke: #E2C27F;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 3px rgba(240, 205, 130, .55));
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.9s cubic-bezier(.65, 0, .35, 1) .35s;
}
.event.is-in .ev-line path { stroke-dashoffset: 0; }
.ev-apex {
  position: absolute; left: 50%; top: -6px;
  width: 11px; height: 11px;
  background: var(--gold-grad);
  transform: translateX(-50%) rotate(45deg) scale(0);
  box-shadow: 0 0 14px 3px rgba(240, 210, 140, .55);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) 2.1s;
  pointer-events: none;
}
.event.is-in .ev-apex { transform: translateX(-50%) rotate(45deg) scale(1); }

/* light that follows the pointer */
.ev-light {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 224, 150, .17), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.event:hover .ev-light { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .7), transparent 55%); }
.event:hover .ev-light { opacity: 1; }

/* wedding card: shimmer sweep + twinkling sparks */
.ev-sheen {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.ev-sheen::before {
  content: "";
  position: absolute; top: -10%; bottom: -10%; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .16), transparent);
  transform: skewX(-18deg);
}
.event.is-in .ev-sheen::before { animation: sheen 6.5s ease-in-out 2.6s infinite; }
@keyframes sheen { 0% { left: -60%; } 28%, 100% { left: 130%; } }
.ev-spark {
  position: absolute;
  font-size: var(--s, 12px);
  line-height: 1;
  color: #E9CB84;
  text-shadow: 0 0 8px rgba(240, 210, 140, .9);
  opacity: 0;
  pointer-events: none;
}
.event.is-in .ev-spark { animation: twinkle 2.8s ease-in-out infinite var(--d, 0s); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@media (max-width: 980px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .event-grid { grid-template-columns: 1fr; gap: 18px; }
  .event { padding: 2.2rem 1.2rem 1.9rem; border-radius: 180px 180px 6px 6px; }
  .event::before { border-radius: 173px 173px 3px 3px; }
}

/* =========================================================
   VENUE
   ========================================================= */
.venue { padding-top: 0; background: var(--ivory); }
.venue__scene {
  height: clamp(320px, 52vw, 580px);
  background-size: cover;
  background-position: center 60%;
  position: relative;
}
.venue__scene::before,
.venue__scene::after {
  content: "";
  position: absolute; left: 0; right: 0;
  pointer-events: none;
}
.venue__scene::before { top: 0; height: 26%; background: linear-gradient(var(--wine-night), transparent); }
.venue__scene::after  { bottom: 0; height: 55%; background: linear-gradient(transparent, var(--ivory)); }
.venue__card {
  position: relative;
  margin: clamp(-200px, -16vw, -90px) auto 0;
  max-width: 680px;
  text-align: center;
  padding: clamp(2.2rem, 6vw, 3.4rem) clamp(1.2rem, 5vw, 3rem);
  background: rgba(251, 246, 236, .96);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  outline: 1px solid rgba(184, 137, 59, .38);
  outline-offset: -10px;
}
.venue__name {
  margin: 1.6rem 0 .2rem;
  font-family: var(--caps);
  font-weight: 500;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  letter-spacing: .14em;
  color: var(--ink);
}
.venue__addr { margin: 0 0 1.6rem; font-style: italic; color: var(--muted); }
.venue__map {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(184, 137, 59, .4);
  background: var(--cream);
}
.venue__map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: sepia(.35) saturate(.85) brightness(1.02);
}
.venue__note { margin: 1.4rem 0 0; font-size: .98rem; color: var(--muted); }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--caps);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn svg { width: 17px; height: 17px; }
.btn--gold {
  color: #fff;
  background: linear-gradient(135deg, #9A6E2A, #C69A4B 45%, #A77A31);
  box-shadow: 0 10px 24px -10px rgba(138, 98, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(138, 98, 36, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--ghost { color: var(--gold-deep); background: transparent; box-shadow: inset 0 0 0 1px var(--gold-soft); }
.btn--ghost:hover { background: rgba(217, 188, 126, .14); }
.btn--wide { width: 100%; padding: 1.05rem; }

/* =========================================================
   RSVP — blush band
   ========================================================= */
.rsvp {
  --jaali-o: .2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(251, 246, 236, .9), transparent 70%),
    linear-gradient(var(--ivory), #F4DCD5 45%, #F1D5CD);
}
.rsvp__card {
  position: relative;
  background: var(--ivory);
  padding: clamp(2.4rem, 7vw, 3.6rem) clamp(1.3rem, 6vw, 3.2rem);
  border-radius: 240px 240px 6px 6px;
  box-shadow: 0 30px 70px -30px rgba(109, 42, 54, .45);
  outline: 1px solid rgba(184, 137, 59, .38);
  outline-offset: -10px;
}
.rsvp__card .section-head { margin: 2.6rem 0 2.2rem; }
@media (max-width: 520px) {
  .rsvp__card { border-radius: 170px 170px 6px 6px; }
  .rsvp__card .section-head { margin-top: 3.4rem; }
}
.rsvp__form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .45rem; }
.field > span, .choice legend {
  font-family: var(--caps);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.field input {
  width: 100%;
  padding: .75rem .2rem;
  border: 0;
  border-bottom: 1px solid var(--gold-soft);
  background: transparent;
  font: inherit;
  font-size: 1.2rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s;
}
.field input::placeholder { color: rgba(140, 119, 99, .6); font-style: italic; }
.field input:focus { outline: none; border-bottom-color: var(--wine); }

.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choice legend { padding: 0; margin-bottom: .6rem; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  text-align: center;
  padding: .85rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  font-size: 1.05rem;
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.choice input:checked + span { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.field--guests { transition: opacity .4s, max-height .5s var(--ease); max-height: 120px; overflow: hidden; }
.field--guests.is-hidden { opacity: 0; max-height: 0; margin-top: -1.5rem; }
.stepper {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 170px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: .25rem;
}
.stepper button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(238, 223, 198, .6);
  color: var(--gold-deep);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .3s;
}
.stepper button:hover { background: var(--parchment); }
.stepper output { font-size: 1.35rem; font-weight: 600; min-width: 2ch; text-align: center; }

.form-error { margin: -.4rem 0 0; color: var(--wine); font-style: italic; }

.rsvp__thanks { text-align: center; padding: 1rem 0 .5rem; outline: none; }
.rsvp__thanks .script-title { font-size: clamp(2.6rem, 8vw, 3.6rem); }
.rsvp__thanks p:last-child { margin: .6rem 0 0; font-size: 1.2rem; font-style: italic; color: var(--muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 80px 16px calc(64px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(217, 188, 126, .16), transparent 70%), var(--wine-night);
  border-top: 1px solid rgba(217, 188, 126, .4);
  color: var(--ivory);
}
.footer__jaali {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--jaali);
  background-size: 64px 64px;
  opacity: .08;
}
.footer__seal {
  width: 96px; height: 96px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(217, 188, 126, .5), 0 0 0 7px rgba(217, 188, 126, .08), 0 14px 30px -8px rgba(0, 0, 0, .6);
}
.footer__names { margin: 0; font-family: var(--script); font-size: clamp(2.6rem, 8vw, 3.4rem); color: #F3DDB0; line-height: 1.2; }
.footer__names em { font-style: normal; color: var(--rose); }
.footer__date {
  margin: .4rem 0 0;
  font-family: var(--caps);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer__note { margin: 1rem 0 0; font-style: italic; color: rgba(251, 246, 236, .65); }
.footer__credit {
  margin: 2.6rem auto 0;
  padding-top: 1.4rem;
  max-width: 320px;
  border-top: 1px solid rgba(217, 188, 126, .25);
  font-family: var(--caps);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, .55);
}
.footer__heart {
  display: inline-block;
  color: var(--rose);
  letter-spacing: 0;
  animation: beat 1.8s ease-in-out infinite;
}
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15%, 40% { transform: scale(1.25); } }
.footer__credit a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 188, 126, .4);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.footer__credit a:hover { color: #F3DDB0; border-color: #F3DDB0; }

/* =========================================================
   MUSIC BUTTON
   ========================================================= */
.music-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex; align-items: center; gap: .6rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.music-btn[hidden] { display: none; }
.music-btn__disc {
  position: relative;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(251, 246, 236, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(184, 137, 59, .55), 0 10px 26px -8px rgba(90, 40, 30, .5);
  transition: transform .3s var(--ease);
}
.music-btn:hover .music-btn__disc { transform: scale(1.06); }
/* slow gold ring while playing */
.music-btn__disc::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(184, 137, 59, .6);
  opacity: 0;
  transition: opacity .4s;
}
.music-btn.is-playing .music-btn__disc::after { opacity: 1; animation: spin 12s linear infinite; }
.music-btn__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-btn__bars i {
  width: 3px; height: 4px;
  border-radius: 2px;
  background: var(--wine);
  transition: height .3s;
}
.music-btn.is-playing .music-btn__bars i { height: 12px; animation: eq 1s ease-in-out infinite; }
.music-btn.is-playing .music-btn__bars i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.music-btn.is-playing .music-btn__bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.15s; }
.music-btn.is-playing .music-btn__bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.music-btn__title {
  order: -1;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: rgba(251, 246, 236, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(184, 137, 59, .4), 0 8px 20px -8px rgba(90, 40, 30, .45);
  font-family: var(--caps);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.music-btn__title em { font-family: var(--script); font-style: normal; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--wine); }
.music-btn.show-title .music-btn__title,
.music-btn:hover .music-btn__title { opacity: 1; transform: none; }

/* =========================================================
   PETALS
   ========================================================= */
.petals {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 2s;
}
.petals.is-on { opacity: .85; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader__ring, .open-btn::after, .hero__cue i::after, .ring-text, .marquee__track,
  .bell, .mandala-bg, .diya i, .scratch__finger,
  .event__icon::before, .event__icon svg, .ev-sheen::before, .ev-spark, .footer__heart,
  .music-btn__disc::after, .music-btn__bars i { animation: none !important; }
  .loader__eyebrow { animation: none; opacity: 1; transform: translateX(-50%); }
  .petals { display: none; }
}
