:root {
  --wine: #4a0e16;
  --wine-deep: #2a070c;
  --wine-mid: #6d1b2a;
  --gold: #c6a15a;
  --gold-deep: #8a6a1f;
  --gold-bright: #e8c872;
  --ivory: #fbf6ee;
  --ivory-deep: #f3eadb;
  --ink: #2c1810;
  --muted: #6d5346;
  --line: rgba(138, 106, 31, 0.35);
  --shadow: 0 24px 60px rgba(42, 7, 12, 0.16);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --display: "Cinzel", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
  --guj: "Noto Serif Gujarati", "Nirmala UI", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--guj);
  font-size: 1.125rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse at top, #6d1b2a 0%, var(--wine-deep) 55%);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: #e8d5a3;
  color: var(--wine-deep);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 30;
}

.petal {
  position: absolute;
  top: -12vh;
  width: 12px;
  height: 16px;
  border-radius: 80% 0 80% 0;
  opacity: 0.8;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.9; }
  35% { transform: translate3d(var(--drift, 30px), 30vh, 0) rotate(120deg); }
  60% { transform: translate3d(calc(var(--drift, 30px) * -0.6), 62vh, 0) rotate(230deg); }
  100% { transform: translate3d(var(--drift, 30px), 112vh, 0) rotate(400deg); opacity: 0.15; }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 6vw;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.55s ease;
}

body.is-entered .topbar {
  transform: none;
}

.monogram {
  font-family: var(--guj);
  letter-spacing: 0;
  text-decoration: none;
  color: var(--wine);
  font-size: 0.95rem;
}

.monogram span {
  font-family: var(--script);
  color: var(--gold-deep);
  letter-spacing: 0;
  padding: 0 0.15rem;
  font-size: 1.4rem;
}

.topbar nav {
  display: flex;
  gap: 1.1rem;
}

.topbar a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--guj);
  font-size: 1rem;
  letter-spacing: 0;
}

.topbar nav a[aria-current="true"] {
  color: var(--gold-deep);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  perspective: 1800px;
  display: grid;
  place-items: center;
}

.gate.is-done {
  visibility: hidden;
  pointer-events: none;
}

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  transition: transform 1.85s cubic-bezier(0.7, 0, 0.18, 1);
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 200, 114, 0.16), transparent 36%),
    linear-gradient(180deg, #7a2232 0%, #4a0e16 42%, #2a070c 100%);
}

.door-left {
  left: 0;
  transform-origin: left center;
  border-right: 3px solid var(--gold-bright);
}

.door-right {
  right: 0;
  transform-origin: right center;
  border-left: 3px solid var(--gold-bright);
}

.gate.is-open .door-left { transform: rotateY(-108deg); }
.gate.is-open .door-right { transform: rotateY(108deg); }

.door-panel {
  position: absolute;
  inset: 4vh 7% ;
  border: 1px solid rgba(232, 200, 114, 0.55);
  box-shadow: inset 0 0 0 8px rgba(42, 7, 12, 0.25), inset 0 0 0 9px rgba(232, 200, 114, 0.35);
  display: grid;
  place-items: center;
}

.door-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 236, 190, 0.2) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: sheen 5.5s linear infinite;
  pointer-events: none;
}

.door-right .door-panel::before {
  animation-delay: -2.6s;
}

.door-left .door-panel { margin-right: 8%; }
.door-right .door-panel { margin-left: 8%; }

.door-medallion {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(232, 200, 114, 0.7);
  font-family: var(--deva);
  font-size: 2.4rem;
  box-shadow: 0 0 0 10px rgba(232, 200, 114, 0.08);
  animation: medallion-glow 2.8s ease-in-out infinite;
}

.door-medallion::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 200, 114, 0.7);
  animation: spin 16s linear infinite;
}

.door-right .door-medallion::before {
  animation-direction: reverse;
}

.door-lamp {
  position: absolute;
  z-index: 1;
  bottom: 9%;
}

@keyframes medallion-glow {
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 0 16px rgba(232, 200, 114, 0.14), 0 0 32px rgba(232, 200, 114, 0.45);
  }
}

.gate-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #fff6d4 20%, #e8c872 50%, #fff6d4 80%, transparent);
  box-shadow: 0 0 18px rgba(232, 200, 114, 0.85);
  animation: seam 2.2s ease-in-out infinite;
}

.gate.is-opening .gate-seam {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes seam {
  50% { opacity: 0.45; box-shadow: 0 0 32px rgba(255, 244, 210, 1); }
}

.gate-sparks,
.gate-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gate-sparks { z-index: 3; }
.gate-burst { z-index: 7; }

.spark,
.burst-petal {
  position: absolute;
  display: block;
}

.spark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3cc;
  box-shadow: 0 0 8px #e8c872;
  animation: spark-rise linear infinite;
}

@keyframes spark-rise {
  0% { transform: translate3d(0, 0, 0) scale(0.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(var(--sx, 20px), -105vh, 0) scale(1); opacity: 0; }
}

.burst-petal {
  left: 50%;
  top: 46%;
  width: 13px;
  height: 18px;
  border-radius: 80% 0 80% 0;
  animation: petal-burst 1.25s ease-out forwards;
}

@keyframes petal-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(240deg) scale(1); }
}

.gate-burst {
  display: grid;
  place-items: center;
}

.gate-burst::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 214, 0.95), rgba(232, 200, 114, 0.25) 42%, transparent 70%);
  opacity: 0;
}

.gate.is-open .gate-burst::before {
  animation: light-burst 1.15s ease-out forwards;
}

@keyframes light-burst {
  0% { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0; transform: scale(70); }
}

.garland {
  position: absolute;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  pointer-events: none;
}

.garland-left { left: 22px; }
.garland-right { right: 22px; }

.garland span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a3, #e39b2b 46%, #b6404c);
  box-shadow: 0 4px 0 rgba(74, 14, 22, 0.18);
  transform-origin: top center;
  animation: sway 2.6s ease-in-out infinite;
}

.garland-right span { animation-direction: alternate-reverse; }

@keyframes sway {
  50% { transform: rotate(10deg); }
}

.gate-card {
  position: relative;
  z-index: 6;
  width: min(440px, calc(100% - 2.4rem));
  text-align: center;
  padding: 2.4rem 1.8rem 2rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 236, 220, 0.98));
  color: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow), 0 0 0 6px rgba(42, 7, 12, 0.18);
  animation: card-arrive 0.9s ease both, card-float 4.4s ease-in-out 0.9s infinite;
}

.gate-card .btn.gold {
  animation: btn-glow 2.2s ease-in-out infinite;
}

@keyframes card-arrive {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes card-away {
  to { opacity: 0; transform: translateY(-36px) scale(1.06); }
}

@keyframes btn-glow {
  50% { box-shadow: 0 0 0 7px rgba(232, 200, 114, 0.28), 0 10px 24px rgba(42, 7, 12, 0.28); }
}

.gate.is-opening .gate-card {
  animation: card-away 0.65s ease forwards;
}

.gate-blessing {
  margin: 0 0 0.4rem;
  color: var(--gold-deep);
}

.gate-names {
  font-family: var(--guj);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.45;
  margin: 0.35rem 0 0.8rem;
  color: var(--wine);
}

.gate-names em,
.footer-names em,
.ampersand {
  font-family: var(--script);
  font-style: normal;
  color: var(--gold-deep);
  font-weight: 400;
}

.gate-names em {
  display: inline-block;
  padding: 0 0.2rem;
  font-family: var(--guj);
  font-size: 0.62em;
}

.gate-meta {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.sheet {
  width: min(1040px, calc(100% - 1.25rem));
  margin: 0.75rem auto 1.4rem;
  background:
    radial-gradient(ellipse at top, rgba(232, 200, 114, 0.18), transparent 42%),
    var(--ivory);
  box-shadow: 0 0 0 1px rgba(198, 161, 90, 0.45), 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: clip;
}

.hero,
.section-inner,
.families,
.celebration,
.venue,
.rsvp,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.4rem 4.5rem;
}

.mandala {
  position: absolute;
  width: min(640px, 92vw);
  aspect-ratio: 1;
  color: rgba(138, 106, 31, 0.28);
  z-index: 0;
  animation: spin 90s linear infinite;
  translate: 0 calc(var(--scroll, 0) * -90px);
  pointer-events: none;
}

.mandala svg {
  width: 100%;
  height: 100%;
}

.mandala-ring {
  transform-box: view-box;
  transform-origin: center;
  animation: spin 48s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  font-family: var(--guj);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05rem;
  color: var(--gold-deep);
  margin: 0 0 0.7rem;
}

.kicker {
  font-family: var(--guj);
  color: var(--gold-deep);
  letter-spacing: 0;
  font-size: 1.35rem;
  line-height: 1.7;
  margin: 0 0 0.2rem;
}

main section[id],
.countdown-band {
  scroll-margin-top: 4.5rem;
}

.invite-line,
.hero-copy,
.section-head p,
.panel-note,
.translation,
.blessing-note,
.footer p,
.notes p {
  color: var(--muted);
}

.invite-line {
  margin: 0;
  font-style: italic;
}

.names {
  margin: 1.2rem 0 0.4rem;
}

.names h2 {
  font-family: var(--guj);
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1.35;
  margin: 0;
  padding: 0.08em 0;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #4a0e16 15%, #a6842e 42%, #4a0e16 68%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
}

@keyframes sheen {
  to { background-position: -220% center; }
}

.lineage {
  margin: 0.35rem 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.ampersand {
  display: block;
  font-family: var(--guj);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.4;
  margin: 0.2rem 0;
  animation: card-float 3.6s ease-in-out infinite;
}

.hero-letter {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  font-family: var(--guj);
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--ink);
}

.hero-letter.between {
  margin: 0.35rem auto 0.15rem;
  font-size: 1.05rem;
}

.salute,
.salute-note {
  font-family: var(--guj);
  margin: 0.85rem 0 0;
  color: var(--ink);
}

.salute-note {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.salute-line {
  display: inline-block;
  width: min(16rem, 46vw);
  border-bottom: 1px solid var(--gold-deep);
  transform: translateY(-0.2rem) scaleX(0);
  transform-origin: left center;
  transition: transform 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}

.salute.is-visible .salute-line {
  transform: translateY(-0.2rem) scaleX(1);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(280px, 70%);
  margin: 0.8rem auto 1rem;
  color: var(--gold-deep);
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.9s ease 0.2s;
}

.ornament.is-visible span {
  transform: scaleX(1);
}

.ornament.is-visible span:last-child {
  transition-delay: 0.45s;
  transform-origin: right center;
}

.ornament i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
  animation: spin 14s linear infinite;
}

.hero-copy {
  max-width: 28rem;
  margin: 0;
  font-size: 1.35rem;
  font-style: italic;
}

.when {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.when::before {
  content: "";
  position: absolute;
  inset: -0.9rem -1.6rem;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(232, 200, 114, 0.34), transparent 70%);
  animation: glow-breathe 3.4s ease-in-out infinite;
}

@keyframes glow-breathe {
  50% { opacity: 0.45; transform: scale(0.92); }
}

.when-date {
  margin: 0;
  font-family: var(--guj);
  letter-spacing: 0;
  font-size: 1.2rem;
  color: var(--wine);
}

.when-time {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.place {
  margin: 0.9rem 0 0;
  letter-spacing: 0;
  font-family: var(--guj);
  font-size: 1.35rem;
  color: var(--gold-deep);
}

.diya {
  width: 28px;
  display: grid;
  justify-items: center;
}

.flame {
  width: 9px;
  height: 16px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 80%, #fff4cc, #ffb703 45%, #e85d04 72%, transparent 74%);
  animation: flicker 0.7s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.oil {
  width: 26px;
  height: 8px;
  margin-top: -2px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#e8c872, #8a6a1f);
}

@keyframes flicker {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(0.86, 1.12) translateY(1px); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-actions.left {
  justify-content: flex-start;
}

.btn {
  appearance: none;
  border: 1px solid var(--gold-deep);
  background: transparent;
  color: var(--wine);
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  letter-spacing: 0;
  font-family: var(--guj);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.gold {
  background: var(--wine);
  color: #f8f1e4;
  border-color: var(--wine);
}

.btn.gold:hover {
  background: #631523;
}

.btn.ghost:hover {
  background: rgba(198, 161, 90, 0.16);
}

.scroll-cue {
  margin-top: 2.4rem;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  font-family: var(--guj);
  animation: bob 1.8s ease-in-out infinite;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0.45rem auto 0;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
}

@keyframes bob {
  50% { transform: translateY(6px); }
}

.programme {
  --p: 0;
  position: relative;
  padding: 0 1.4rem 5rem;
  transform: perspective(1400px) rotateX(calc((1 - var(--p)) * 9deg)) translateY(calc((1 - var(--p)) * 64px));
  transform-origin: top center;
}

.page-bridge {
  position: relative;
  height: 5.5rem;
  display: grid;
  place-items: center;
}

.bridge-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  transform: scaleX(var(--p));
  transform-origin: center;
}

.bridge-gem {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold-deep);
  background: var(--ivory);
  transform: rotate(45deg) scale(calc(0.4 + var(--p) * 0.6));
  box-shadow: 0 0 0 6px rgba(198, 161, 90, calc(var(--p) * 0.2));
}

.programme-aura {
  position: absolute;
  left: 50%;
  top: 6rem;
  width: min(560px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 90, 0.28);
  pointer-events: none;
  transform: translateX(-50%) scale(calc(0.72 + var(--p) * 0.28)) rotate(calc(var(--p) * 28deg));
  opacity: calc(0.15 + var(--p) * 0.85);
}

.programme-aura::before,
.programme-aura::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed rgba(198, 161, 90, 0.35);
}

.programme-aura::after {
  inset: 24%;
  border-style: solid;
}

.day-sheet {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  margin: 0 auto 1.35rem;
  padding: 1.7rem 1.45rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(198, 161, 90, 0.55);
  outline: 1px solid rgba(198, 161, 90, 0.28);
  outline-offset: -9px;
  box-shadow: 0 18px 40px rgba(74, 14, 22, 0.08);
}

.day-morning,
.day-wedding,
.place-sheet {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.day-morning {
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 200, 114, 0.38), transparent 42%),
    rgba(255, 252, 247, 0.94);
  transform: translateX(-42px);
}

.day-wedding {
  color: #f8f1e4;
  background:
    radial-gradient(circle at 0% 100%, rgba(232, 200, 114, 0.22), transparent 42%),
    linear-gradient(160deg, #7a2232 0%, #3a0b12 72%);
  transform: translateX(42px);
  transition-delay: 0.08s;
}

.place-sheet {
  transform: translateY(28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 200, 114, 0.22), transparent 46%),
    rgba(255, 252, 247, 0.94);
  transition-delay: 0.16s;
}

.programme.is-open .day-morning,
.programme.is-open .day-wedding,
.programme.is-open .place-sheet {
  opacity: 1;
  transform: none;
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.day-mark {
  font-family: var(--guj);
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--gold-deep);
  animation: mark-glow 3.6s ease-in-out infinite;
}

@keyframes mark-glow {
  50% { filter: drop-shadow(0 0 8px rgba(232, 200, 114, 0.65)); }
}

.day-wedding .day-mark {
  -webkit-text-stroke-color: var(--gold-bright);
}

.day-date {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.day-wedding .kicker {
  color: var(--gold-bright);
}

.day-wedding .day-date {
  color: rgba(248, 241, 228, 0.82);
}

.rituals {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0 0 0 1.15rem;
  position: relative;
  text-align: left;
}

.rituals::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(198, 161, 90, 0.05));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s ease 0.2s;
}

.programme.is-open .rituals::before {
  transform: scaleY(1);
}

.rituals li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  position: relative;
  padding: 0.78rem 0 0.78rem 0.85rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i) * 80ms + 180ms);
}

.programme.is-open .rituals li {
  opacity: 1;
  transform: none;
}

.programme.is-open .rituals li::before {
  animation: dot-pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
}

.rituals li::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid var(--gold-deep);
  background: #fffaf3;
  box-shadow: 0 0 0 4px rgba(198, 161, 90, 0.12);
}

.ritual-name {
  font-size: 1.22rem;
  line-height: 1.45;
}

.ritual-time {
  justify-self: end;
  color: var(--gold-deep);
  background: rgba(198, 161, 90, 0.12);
  border: 1px solid rgba(198, 161, 90, 0.4);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: nowrap;
}

.day-wedding .rituals li::before {
  background: #4a1220;
  border-color: var(--gold-bright);
}

.day-wedding .ritual-time {
  color: #fff6d8;
  background: rgba(232, 200, 114, 0.14);
  border-color: rgba(232, 200, 114, 0.45);
}

#place {
  scroll-margin-top: 4.5rem;
}

.place-sheet h2 {
  font-family: var(--guj);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.35;
  color: var(--wine);
  margin: 0.2rem 0 0.6rem;
}

.place-sheet p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.8;
}

.blessing {
  position: relative;
  text-align: center;
  padding: 5.5rem 1.4rem;
  background:
    radial-gradient(circle at center, rgba(74, 14, 22, 0.92), #2a070c 72%);
  color: #f8f1e4;
  overflow: hidden;
}

.blessing .translation,
.blessing .blessing-note,
.countdown-band .eyebrow,
.footer,
.footer p {
  color: rgba(248, 241, 228, 0.82);
}

.blessing .eyebrow,
.countdown-band .eyebrow,
.footer .deva {
  color: var(--gold-bright);
}

.om-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -54%);
  font-family: var(--deva);
  font-size: clamp(10rem, 28vw, 18rem);
  line-height: 1;
  margin: 0;
  color: rgba(232, 200, 114, 0.08);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: translate(-50%, -54%) scale(1.04); }
}

.section-inner,
.families,
.celebration,
.venue,
.rsvp {
  padding: 5rem 1.4rem;
}

.section-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.deva {
  font-family: var(--deva);
  font-size: 1.35rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--gold-deep);
  margin: 0 0 0.8rem;
}

.blessing .deva {
  color: var(--gold-bright);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.translation {
  font-style: italic;
  font-size: 1.25rem;
}

.blessing-note {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.4rem;
}

.section-head h2,
.thanks h3,
.panel h3,
.notes h3 {
  font-family: var(--guj);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wine);
  margin: 0;
}

.section-head h2,
.footer-names {
  font-family: var(--guj);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.35;
}

.section-head p {
  margin: 0.7rem 0 0;
}

.family-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.15rem;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.family-stage::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.7), transparent);
}

.kin-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.7rem 1.25rem 1.25rem;
  border: 1px solid rgba(198, 161, 90, 0.55);
  outline: 1px solid rgba(198, 161, 90, 0.28);
  outline-offset: -8px;
  box-shadow: 0 16px 36px rgba(74, 14, 22, 0.07);
}

.kin-bride {
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 200, 114, 0.34), transparent 42%),
    rgba(255, 252, 247, 0.94);
}

.kin-groom {
  color: #f8f1e4;
  background:
    radial-gradient(circle at 0% 100%, rgba(232, 200, 114, 0.2), transparent 46%),
    linear-gradient(165deg, #7a2232, #3a0b12 74%);
}

.kin-side,
.kin-honor,
.kin-join,
.kin-place {
  font-family: var(--guj);
  color: var(--gold-deep);
  line-height: 1.5;
}

.kin-side {
  margin: 0;
  font-size: 1.15rem;
}

.kin-place {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.98rem;
}

.kin-honor {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
}

.kin-card h3 {
  font-family: var(--guj);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.45;
  color: var(--wine);
  margin: 0.05rem 0 0;
}

.kin-join {
  display: block;
  margin: 0.55rem 0 0.15rem;
  font-size: 1.05rem;
}

.kin-child {
  margin: 1.15rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(198, 161, 90, 0.35);
  font-size: 1.02rem;
  line-height: 1.6;
}

.kin-child strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wine);
}

.kin-groom .kin-side,
.kin-groom .kin-honor,
.kin-groom .kin-join,
.kin-groom .kin-place,
.kin-groom h3,
.kin-groom .kin-child strong {
  color: #fff4d2;
}

.kin-groom .kin-place,
.kin-groom .kin-child {
  color: rgba(248, 241, 228, 0.82);
}

.panel {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: 0 10px 30px rgba(74, 14, 22, 0.04);
}

.panel h3 {
  font-family: var(--guj);
  font-size: 1.8rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.panel p {
  margin: 0;
}

.panel-note {
  margin-top: 0.9rem !important;
}

.family-seal {
  position: relative;
  align-self: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--script);
  font-size: 2rem;
  background: var(--ivory);
}

.family-seal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  animation: seal-ring 3.4s ease-in-out infinite;
}

@keyframes seal-ring {
  50% { box-shadow: 0 0 0 12px rgba(232, 200, 114, 0.16), 0 0 28px rgba(232, 200, 114, 0.45); }
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7.4rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(198, 161, 90, 0.05));
}

.timeline li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 2.2rem;
  position: relative;
  padding-bottom: 1.6rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(7.4rem - 5px);
  top: 0.45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold-deep);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.timeline li:nth-child(2)::before { animation-delay: 0.3s; }
.timeline li:nth-child(3)::before { animation-delay: 0.6s; }
.timeline li:nth-child(4)::before { animation-delay: 0.9s; }
.timeline li:nth-child(5)::before { animation-delay: 1.2s; }

@keyframes dot-pulse {
  50% { box-shadow: 0 0 0 7px rgba(198, 161, 90, 0.22); }
}

.timeline time {
  text-align: right;
  color: var(--gold-deep);
  font-family: var(--guj);
  font-size: 0.95rem;
  letter-spacing: 0;
  padding-top: 0.35rem;
}

.timeline time span {
  display: block;
  color: var(--wine);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.event h3 {
  margin: 0 0 0.25rem;
  font-family: var(--guj);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--wine);
}

.event p:last-child {
  margin: 0;
  color: var(--muted);
}

.countdown-band {
  text-align: center;
  padding: 4.5rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(74, 14, 22, 0.96), #3a0b12);
  color: #f8f1e4;
}

.countdown-band h2 {
  color: #f8f1e4;
  font-family: var(--guj);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.4;
  margin: 0 0 1.5rem;
}

.count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.count div {
  border: 1px solid rgba(232, 200, 114, 0.45);
  padding: 1rem 0.4rem 0.8rem;
  background: rgba(255, 248, 238, 0.04);
  animation: cell-glow 3.8s ease-in-out infinite;
}

.count div:nth-child(2) { animation-delay: 0.35s; }
.count div:nth-child(3) { animation-delay: 0.7s; }
.count div:nth-child(4) { animation-delay: 0.15s; animation-duration: 1.8s; }

@keyframes cell-glow {
  50% { box-shadow: inset 0 0 18px rgba(232, 200, 114, 0.22); border-color: rgba(232, 200, 114, 0.85); }
}

.count strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-bright);
}

.count strong.tick {
  animation: tick 0.45s ease;
}

@keyframes tick {
  from { transform: translateY(-8px); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}

.count span {
  display: block;
  margin-top: 0.35rem;
  letter-spacing: 0;
  font-family: var(--guj);
  font-size: 1rem;
  color: rgba(248, 241, 228, 0.75);
}

.venue-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.venue-card h3 {
  font-size: 2.4rem;
}

.venue-card > p:nth-of-type(2) {
  font-size: 1.3rem;
  margin-top: 0.4rem;
}

.notes {
  display: grid;
  gap: 0.85rem;
}

.notes div {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.notes h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.notes p {
  margin: 0;
}

.tag {
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--wine) !important;
}

.rsvp {
  padding-top: 1rem;
}

.rsvp-form,
.thanks {
  max-width: 640px;
  margin: 0 auto;
}

.field {
  margin-bottom: 1.1rem;
  border: 0;
  padding: 0;
}

.field label,
.field legend {
  display: block;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(74, 14, 22, 0.25);
  border-radius: 0;
  padding: 0.65rem 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-deep);
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  margin: 0;
}

.choices input {
  width: auto;
  accent-color: var(--wine);
}

.form-error {
  color: #8d1d32;
  margin: 0 0 0.8rem;
}

.thanks {
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.thanks h3 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.footer {
  text-align: center;
  padding: 4.5rem 1.4rem 3rem;
  background: var(--wine-deep);
}

.footer-names {
  font-family: var(--guj);
  margin: 0.2rem 0 0.4rem;
  background: linear-gradient(100deg, #f8f1e4 12%, #e8c872 42%, #f8f1e4 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}

.footer-names em {
  font-family: var(--guj);
  font-style: normal;
  font-size: 0.62em;
  padding: 0 0.2rem;
}

.fine {
  margin: 1.6rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(140%);
  background: var(--wine);
  color: #f8f1e4;
  padding: 0.75rem 1rem;
  z-index: 60;
  letter-spacing: 0.03em;
  transition: transform 0.35s ease;
  width: max-content;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.thread {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  z-index: 45;
  pointer-events: none;
  background: rgba(232, 200, 114, 0.16);
}

.thread span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top;
  transform: scaleY(var(--scroll, 0));
  background: linear-gradient(#fff1c2, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 14px rgba(232, 200, 114, 0.7);
}

.dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dust span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d4, var(--gold) 60%, transparent 70%);
  opacity: 0.7;
  animation-name: mote;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes mote {
  0% { transform: translate3d(0, 12px, 0) scale(0.6); opacity: 0; }
  20% { opacity: 0.85; }
  100% { transform: translate3d(var(--drift, 20px), -120px, 0) scale(1); opacity: 0; }
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 244, 214, 0.28) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: sheen 11s linear infinite;
}

.day-sheet,
.kin-card {
  overflow: hidden;
}

.day-sheet::after,
.kin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 246, 214, 0.42) 50%, transparent 68%);
  transform: translateX(-130%);
}

.programme.is-open .day-sheet::after,
.kin-card.reveal.is-visible::after {
  animation: sweep 1.5s ease 0.35s both;
}

@keyframes sweep {
  to { transform: translateX(130%); }
}

.kin-bride.reveal {
  transform: translateX(-46px);
}

.kin-groom.reveal {
  transform: translateX(46px);
}

.family-seal.reveal {
  transform: scale(0.45) rotate(-18deg);
}

.blessing-rings {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(520px, 78vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.blessing-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 200, 114, 0.28);
  animation: spin 36s linear infinite;
}

.blessing-rings span:nth-child(2) {
  inset: 9%;
  border-style: dashed;
  animation-duration: 28s;
  animation-direction: reverse;
}

.blessing-rings span:nth-child(3) {
  inset: 18%;
  animation-duration: 22s;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s ease forwards;
  animation-play-state: paused;
  animation-delay: var(--d, 0ms);
}

.reveal.is-visible {
  animation-play-state: running;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 800px) {
  .topbar {
    padding-inline: 1rem;
  }

  .topbar nav {
    gap: 0.7rem;
  }

  .topbar nav a {
    font-size: 0.82rem;
  }

  .family-stage,
  .venue-layout,
  .split,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .family-seal {
    justify-self: center;
  }

  .family-stage::before {
    display: none;
  }

  .timeline::before {
    left: 4px;
  }

  .timeline li {
    gap: 0.3rem;
    padding-left: 1.3rem;
  }

  .timeline li::before {
    left: 0;
  }

  .timeline time {
    text-align: left;
  }

  .count {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .garland,
  .door-lamp {
    display: none;
  }
}

@media (max-width: 560px) {
  .rituals li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .ritual-time {
    justify-self: start;
    white-space: normal;
  }

  .day-head {
    gap: 0.65rem;
  }

  .hero {
    padding-top: 6.2rem;
  }

  .when {
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .petal,
  .mandala,
  .mandala-ring,
  .names h2,
  .flame,
  .scroll-cue,
  .om-mark,
  .spark,
  .garland span,
  .door-medallion,
  .door-medallion::before,
  .door-panel::before,
  .gate-seam,
  .gate-card,
  .gate-card .btn.gold,
  .ampersand,
  .ornament i,
  .family-seal,
  .family-seal::before,
  .timeline li::before,
  .count strong.tick,
  .burst-petal,
  .gate-burst::before,
  .dust span,
  .sheet::after,
  .day-sheet::after,
  .kin-card::after,
  .blessing-rings span,
  .when::before,
  .day-mark,
  .footer-names,
  .count div,
  .programme.is-open .rituals li::before {
    animation: none !important;
  }

  .mandala {
    translate: none;
  }

  .thread span,
  .salute-line,
  .ornament span {
    transform: none;
    transition: none;
  }

  .gate-card,
  .programme,
  .day-morning,
  .day-wedding,
  .place-sheet,
  .rituals li,
  .rituals::before {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .names h2,
  .footer-names {
    background: none;
    color: var(--wine);
    -webkit-text-fill-color: currentColor;
  }

  .footer-names {
    color: #f8f1e4;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .door {
    transition: opacity 0.35s ease;
  }

  .gate.is-open .door-left,
  .gate.is-open .door-right {
    transform: none;
    opacity: 0;
  }
}

@media print {
  .gate,
  .topbar,
  .petals,
  .rsvp,
  .toast,
  .scroll-cue,
  .hero-actions {
    display: none !important;
  }

  body,
  .sheet,
  .blessing,
  .countdown-band,
  .footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .sheet {
    width: auto;
    margin: 0;
  }
}
