@font-face {
  font-family: "Cormorant";
  src: url("assets/cormorant.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("assets/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("assets/great-vibes-latin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --wine: #60232e;
  --deep-wine: #32161d;
  --cream: #f7e9d8;
  --scene-night: #301923;
  --scene-footer: #28151d;
  --scene-overlap: 0px;
  --serif: "Cormorant", Georgia, serif;
  --sans: system-ui, sans-serif;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-snap-type: y proximity; }
  .is-gated .opening-anchor,
  .invitation,
  .schedule,
  .finale { scroll-snap-align: start; }
  .invitation,
  .schedule,
  .finale { scroll-margin-block-start: calc(-.7 * var(--scene-overlap)); }
  .wedding-footer { scroll-snap-align: end; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--deep-wine);
  color: var(--wine);
  font-family: var(--serif);
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.opening-sequence {
  position: relative;
  --opening-height: 100dvh;
  --door-travel: clamp(1000px, 155svh, 1600px);
}

.opening-sequence.is-gated {
  height: calc(var(--opening-height) + var(--door-travel));
}

.is-gated .opening-anchor {
  position: absolute;
  top: var(--door-travel);
  inline-size: 1px;
  block-size: 1px;
}
.is-gated #ganesh-reveal { top: calc(var(--door-travel) * .46); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.temple-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(620px, 100vh);
  min-height: max(620px, 100svh);
  overflow: clip;
  background: var(--cream);
}
#temple-reveal { scroll-margin-top: 0; }

.is-gated .hero {
  position: sticky;
  top: 0;
  min-height: var(--opening-height);
  background: #210e17;
}
.is-gated .temple-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: var(--temple-appearance, 0);
}

.ganesh-blessing {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: min(40rem, 100svh);
  padding: 4.2rem 1rem 4.6rem;
  overflow: clip;
  background:
    radial-gradient(ellipse at 50% 42%, #8e461f89, transparent 64%),
    radial-gradient(ellipse at 50% 92%, #6e291f, transparent 65%),
    #2a141c;
  color: #ffedcf;
  text-align: center;
}
.is-gated .ganesh-blessing {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: var(--ganesh-scene-opacity, 1);
}
.ganesh-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(75vw, 26rem);
}
.ganesh-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(46svh, 75vw, 25rem);
  object-fit: contain;
  filter: drop-shadow(0 .75rem 1.4rem #1c080b9c);
}
.ganesh-halo {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(100%, 35svh);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, #ffc878ab 0%, #f39f50a6 41%, #e98f3a26 65%, transparent 73%),
    repeating-conic-gradient(from 0deg, #ffdb974a 0deg 1.5deg, transparent 3deg 13deg);
  mask-image: radial-gradient(#000 36%, transparent 73%);
}
.is-gated .ganesh-art {
  opacity: var(--ganesh-appearance, 0);
  transform: translateY(calc((1 - var(--ganesh-appearance, 0)) * 1.6rem))
    scale(calc(.88 + var(--ganesh-appearance, 0) * .12));
}
.is-gated .ganesh-halo { animation: blessing-light 4s ease-in-out infinite alternate; }
@keyframes blessing-light {
  from { transform: translate(-50%, -50%) scale(.92) rotate(-8deg); }
  to { transform: translate(-50%, -50%) scale(1.13) rotate(8deg); }
}
.ganesh-verse {
  position: relative;
  margin-top: .65rem;
  font-family: "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif;
  text-shadow: 0 2px 12px #1c080b;
}
.ganesh-verse h2 {
  margin: 0 0 .45rem;
  color: #ffd48c;
  font-size: clamp(1.35rem, 4.2vw, 2.15rem);
  font-weight: 600;
}
.ganesh-verse p {
  margin: 0;
  font-size: clamp(.99rem, 3.9vw, 1.4rem);
  line-height: 1.65;
  text-wrap: balance;
}
.is-gated .ganesh-verse {
  opacity: var(--ganesh-verse, 0);
  transform: translateY(calc((1 - var(--ganesh-verse, 0)) * .8rem));
}
.ganesh-cue { font: 550 .75rem var(--sans); }
.is-gated .ganesh-cue { opacity: var(--ganesh-cue-opacity, 0); }
@media (max-height: 480px) {
  .ganesh-art img { height: min(33svh, 10rem); }
  .ganesh-blessing { padding-block: 2.4rem 3.2rem; }
  .ganesh-verse h2 { font-size: 1.35rem; }
  .ganesh-verse p { font-size: .95rem; line-height: 1.4; }
  .ganesh-cue .scroll-line { height: .7rem; }
}

.is-gated .hero-scenery { animation: none; }

.hero-scenery,
.hero-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-scenery {
  z-index: -4;
  animation: opening-focus 2.8s cubic-bezier(.2, .62, .29, 1) both;
}

@keyframes opening-focus {
  from { transform: scale(1.11); }
  to { transform: none; }
}

.hero-art,
.aisle-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art {
  object-position: 50% 63%;
  transform: translateY(var(--temple-shift, 0px)) scale(var(--temple-scale, 1.035));
}

.hero-wash {
  z-index: -3;
  background:
    radial-gradient(ellipse at 50% 99%, #32161dbe 0%, #32161d54 28%, transparent 61%),
    linear-gradient(180deg, #f7e9d8bb 0%, #f7e9d84a 26%, transparent 52%);
}

.site-monogram {
  position: fixed;
  z-index: 9;
  top: max(.85rem, env(safe-area-inset-top));
  left: max(.85rem, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: clamp(3.3rem, 5vw, 3.9rem);
  aspect-ratio: 1;
  border: 1px solid #aa7c50;
  border-radius: 50%;
  background: #fff2df;
  box-shadow: inset 0 0 0 3px #fff2df, inset 0 0 0 4px #c39b7180, 0 .2rem .6rem #31192759;
  text-decoration: none;
}
.site-monogram:focus-visible { outline: 2px solid #e4b888; outline-offset: 3px; }
.logo-frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: clip;
}
.logo-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 160%;
  height: auto;
  transform: translate(-50%, -50%);
}
.site-monogram .logo-frame { width: calc(82% + 2pt); mix-blend-mode: multiply; }
.invited-name-aman { font-feature-settings: "ss02" 1; }
@media (prefers-reduced-motion: no-preference) {
  .site-monogram { transition: scale .2s ease; }
  .site-monogram:hover { scale: 1.06; }
}

.scroll-cue,
.wedding-date,
.schedule-link,
.schedule-nav,
.petal-button {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 550;
}

.schedule-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: .4em;
  text-decoration-thickness: 1px;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: clamp(3.15rem, 6.9svh, 5.6rem);
  left: 0;
  right: 0;
  padding: 0 1rem;
  text-align: center;
  text-wrap: balance;
  mix-blend-mode: multiply;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0 auto;
  color: #9c5c36;
}

.ornament::before,
.ornament::after {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .54;
  content: "";
}

.hero-monogram {
  width: fit-content;
  margin: 0 auto;
}
.hero-monogram .logo-frame { width: calc(clamp(9.1rem, 15.5vw, 11.5rem) + 2pt); }
.hero-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.45rem, 1.6vw, 1rem);
  margin: 0 0 .55rem;
  color: #573143;
  font: 650 clamp(.95rem, 2vw, 1.45rem)/1.15 var(--serif);
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero-intro::before, .hero-intro::after {
  flex: 0 0 clamp(1.35rem, 5vw, 4rem);
  height: .45rem;
  background: linear-gradient(90deg, #a87742, #a8774233);
  clip-path: polygon(0 50%, 10% 0, 19% 44%, 100% 50%, 19% 56%, 10% 100%);
  content: "";
}
.hero-intro::before { transform: scaleX(-1); }
.hero-hashtag {
  margin: .38rem 0 0;
  color: #5d3549;
  font: 400 clamp(1.95rem, 4.1vw, 2.9rem)/1.14 "Great Vibes", var(--serif);
  letter-spacing: .015em;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: max(1rem, env(safe-area-inset-bottom));
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: .6rem 1rem .25rem;
  color: #fff1dc;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: .35em;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 1.65rem;
  background: currentColor;
  opacity: .65;
  animation: scroll-beckon 2.3s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-beckon {
  50% { opacity: .95; transform: scaleY(.55); }
}

.ceremony-particles,
.sun-glow,
.floral-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ceremony-particles {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.sun-glow {
  z-index: -2;
  background: radial-gradient(ellipse at 67% 57%, #ffd5a989, #f3a34f25 20%, transparent 49%);
  mix-blend-mode: screen;
  animation: sun-breathe 6.5s ease-in-out infinite alternate;
}

@keyframes sun-breathe {
  from { opacity: .35; }
  to { opacity: .78; }
}

.floral-frame { z-index: 0; overflow: clip; }

.is-gated .floral-frame {
  opacity: var(--floral-reveal, 0);
  transform: translateY(calc((1 - var(--floral-reveal, 0)) * -1.3rem));
}

.floral-frame img {
  position: absolute;
  top: -.6rem;
  left: -.45rem;
  width: clamp(9rem, 26vw, 24rem);
  height: auto;
  filter: drop-shadow(0 7px 12px #673c354d);
  transform-origin: 0 0;
  animation: garland-sway 5.4s ease-in-out infinite alternate;
}

.floral-frame img:last-child {
  right: -.45rem;
  left: auto;
  scale: -1 1;
  transform-origin: 50% 0;
  animation-delay: -2.4s;
}

@keyframes garland-sway {
  from { transform: rotate(-1.1deg) translateY(-2px); }
  to { transform: rotate(1.6deg) translateY(2px); }
}

.temple-gate,
.scroll-cue.gate-cue { display: none; }

.is-gated .temple-gate {
  --gate-lintel: clamp(2.25rem, 9.5svh, 6.25rem);
  --gate-jamb: clamp(.8rem, 3.8vw, 3.5rem);
  --gate-sill: clamp(.25rem, 1svh, .8rem);
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  pointer-events: none;
  opacity: var(--gate-opacity, 1);
}

.temple-gate::before {
  position: absolute;
  inset: 0;
  border: solid #331910;
  border-width: var(--gate-lintel) var(--gate-jamb) var(--gate-sill);
  content: "";
}

.temple-gate::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(0deg, #1d0b13c7 0%, transparent 21%),
    radial-gradient(ellipse at 50% 42%, transparent 45%, #1d0b1352);
  content: "";
}

.gate-trim {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-style: solid;
  border-color: transparent;
  border-width: var(--gate-lintel) var(--gate-jamb) var(--gate-sill);
  border-image: url("assets/temple-gate-frame.webp") 21% 17% 2% round stretch;
  filter: saturate(.83) brightness(.82) drop-shadow(0 3px 5px #1d0b08b3);
}

.gate-aperture {
  position: absolute;
  inset: var(--gate-lintel) var(--gate-jamb) var(--gate-sill);
  overflow: clip;
  perspective: clamp(42rem, 100vw, 95rem);
}

.gate-aperture::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #211009b8, transparent clamp(1.1rem, 5svh, 2.8rem));
  box-shadow: inset 0 0 .85rem #1f0c07a6;
  content: "";
}

.gate-leaf {
  position: absolute;
  inset: 0 50% 0 0;
  overflow: hidden;
  transform-origin: left center;
  transform: rotateY(var(--door-angle, 0deg));
  backface-visibility: hidden;
  background: #6d3a21;
  filter: brightness(var(--door-light, 1));
}

.gate-leaf::before {
  position: absolute;
  inset: 0;
  background: url("assets/temple-door-leaf-hd.webp") center 56% / cover no-repeat;
  content: "";
}

.gate-leaf:last-child {
  inset: 0 0 0 50%;
  transform-origin: right center;
  transform: rotateY(calc(-1 * var(--door-angle, 0deg)));
}

.gate-leaf:last-child::before { transform: scaleX(-1); }

.gate-leaf + .gate-leaf { border-inline-start: 1px solid #290f08; }

@media (max-width: 640px) {
  .is-gated .temple-gate {
    --gate-lintel: clamp(1.75rem, 6.6svh, 4rem);
    --gate-jamb: clamp(.75rem, 4.4vw, 1.3rem);
    --gate-sill: .25rem;
  }

  .gate-leaf::before {
    inset: 0 auto 0 0;
    width: 200%;
    background-image: url("assets/temple-door-mobile.webp");
    background-position: center;
  }

  .gate-leaf:last-child::before {
    left: -100%;
    transform: none;
  }
}

.is-gated .hero > .ceremony-particles { z-index: 3; }

.is-gated .scroll-cue.gate-cue {
  z-index: 4;
  display: grid;
  left: 50%;
  width: max-content;
  max-width: 100%;
  text-align: center;
  transform: translateX(-50%);
  opacity: var(--gate-cue-opacity, 1);
}

.is-gated .invitation-cue { opacity: var(--invitation-cue-opacity, 0); }

.is-gated .hero-intro {
  opacity: var(--intro-reveal, 0);
  transform: translateY(calc((1 - var(--intro-reveal, 0)) * .5rem));
}
.is-gated .hero-monogram {
  opacity: var(--mark-reveal, 0);
  transform: translateY(calc((1 - var(--mark-reveal, 0)) * .85rem))
    scale(calc(.9 + var(--mark-reveal, 0) * .1));
}
.is-gated .hero-hashtag {
  opacity: var(--hashtag-reveal, 0);
  transform: translateY(calc((1 - var(--hashtag-reveal, 0)) * .6rem));
}

@media (max-height: 560px) and (orientation: landscape) {
  .is-gated .hero-copy { top: 4.1rem; }
  .hero-monogram .logo-frame { width: calc(clamp(5rem, 20svh, 7.1rem) + 2pt); }
}

.invitation {
  --invitation-ink: #4e3866;
  --invitation-gold: #99703f;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(max(640px, 100vh) + var(--scene-overlap));
  min-height: calc(max(640px, 100svh) + var(--scene-overlap));
  overflow: clip;
  padding: calc(clamp(3.25rem, 7svh, 5rem) + var(--scene-overlap)) 1rem clamp(2.5rem, 5.5svh, 4.25rem);
  background: #f4d8b9;
}

.aisle-scenery,
.aisle-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aisle-scenery { z-index: -3; }

.aisle-art {
  object-position: center;
  transform: translateY(var(--aisle-shift, 0px)) scale(var(--aisle-scale, 1.04));
}

.aisle-light {
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 69%, #6f392e52 86%, var(--scene-night) 100%),
    radial-gradient(ellipse at 50% 35%, #fff8e7b8, #fff5e450 40%, transparent 69%);
}

.aisle-light::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--scene-night), #7b392c63 24%, transparent 55%);
  opacity: var(--aisle-dusk, 0);
  content: "";
}

.invitation-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 59rem);
  text-align: center;
  color: var(--invitation-ink);
  text-shadow: 0 1px 12px #fff8e7ab;
}

.invitation-message {
  max-width: 34rem;
  margin: 0 auto;
  font: 550 clamp(1.12rem, 2.45vw, 1.54rem)/1.38 var(--serif);
  text-wrap: balance;
}

.invitation-copy > * {
  --invite-part: var(--invite-heading, 1);
  opacity: var(--invite-part);
  transform: translateY(calc((1 - var(--invite-part)) * 1.1rem));
}

.invitation-copy .invitation-people { --invite-part: var(--invite-names, 1); }

.invitation-copy .invitation-moment,
.invitation-copy .schedule-link { --invite-part: var(--invite-details, 1); }

.invitation-moment {
  display: grid;
  grid-template-areas: "date couple venue";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.65rem, 2.5vw, 1.75rem);
  margin-block: clamp(1rem, 4svh, 2rem) .55rem;
}
.invitation-ritual {
  position: relative;
  grid-area: couple;
  width: min(100%, 25rem);
  margin: 0 auto;
}
.invitation-ritual::before {
  position: absolute;
  inset: auto 4% 1%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #39231863, transparent 71%);
  content: "";
}
.invitation-ritual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 95%;
}
@media (prefers-reduced-motion: no-preference) {
  .invitation-ritual img {
    animation: ritual-sway 5.5s ease-in-out infinite alternate;
    animation-play-state: var(--ritual-play, paused);
  }
}
@keyframes ritual-sway {
  from { transform: rotate(-.65deg); }
  to { transform: rotate(.65deg) scaleY(1.014); }
}

.invitation-copy:focus-within > * { opacity: 1; transform: none; }

.invitation-people {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: .5rem clamp(.65rem, 2vw, 1.4rem);
  max-width: 48rem;
  margin: clamp(1.15rem, 4vw, 2.7rem) auto .55rem;
}
.invited-person { display: grid; gap: .18rem; justify-items: center; }
.invited-name, .invited-and { font-family: "Great Vibes", "Cormorant", Georgia, cursive; font-weight: 400; }
.invited-name { font-size: clamp(4rem, 8vw, 7.1rem); line-height: .95; }
.invited-and { align-self: start; margin-top: .26em; color: var(--invitation-gold); font-size: clamp(2.65rem, 5.4vw, 4.25rem); line-height: 1; }
.invited-parents {
  width: min(100%, 17rem);
  font: 450 clamp(.9rem, 1.55vw, 1rem)/1.46 var(--sans);
  text-wrap: balance;
}

.wedding-date {
  display: grid;
  grid-area: date;
  justify-items: center;
  gap: .25rem;
}
.invitation-flourish {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--invitation-gold);
  font-size: 1.15rem;
}
.invitation-flourish::before, .invitation-flourish::after {
  width: 2.7rem;
  height: .45rem;
  border-block-start: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  border-radius: 62% 31%;
  content: "";
}
.invitation-flourish::after { transform: scaleX(-1); }
.invitation-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .15rem clamp(.5rem, 2vw, 1rem);
  width: min(100%, 24rem);
  font: 400 clamp(.94rem, 2.1vw, 1.18rem)/1.25 var(--sans);
}
.invitation-month, .invitation-year { grid-column: 1 / -1; }
.invitation-month { font-size: clamp(1.35rem, 3.1vw, 1.85rem); }
.invitation-day, .invitation-time { border-block: 1px solid #6d54758c; padding-block: .32rem; }
.invitation-number { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 650; line-height: 1.1; }
.venue-pin {
  display: inline-grid;
  justify-items: center;
  gap: .25rem;
  max-width: 100%;
  margin-block: .4rem;
  color: #542b27;
  text-align: center;
  text-decoration: none;
}
.venue-pin img {
  display: block;
  width: clamp(7rem, 21vw, 9rem);
  height: auto;
  image-rendering: pixelated;
}
.venue-pin-copy { display: grid; justify-items: center; gap: .3rem; }
.venue-pin-name { font: 650 clamp(1.15rem, 3.1vw, 1.55rem)/1.03 var(--serif); }
.venue-pin-address {
  max-width: min(100%, 32ch);
  font: 450 .82rem/1.38 var(--sans);
  text-wrap: pretty;
}
.venue-pin-action {
  font: 550 .75rem/1.28 var(--sans);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.venue-pin:hover .venue-pin-action { text-decoration-thickness: 2px; }
.invitation-venue {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  grid-area: venue;
  justify-self: center;
  color: var(--invitation-ink);
  font: 650 clamp(1.28rem, 2.8vw, 2rem)/1.15 var(--serif);
  text-decoration-color: var(--invitation-gold);
  text-underline-offset: .22em;
}
.invitation-venue::before {
  flex: 0 0 auto;
  width: .64em;
  height: .64em;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, transparent 0 23%, var(--invitation-gold) 26%);
  transform: translateY(-.05em) rotate(-45deg);
  content: "";
}
.schedule-link {
  margin-top: .65rem;
  padding-inline: 1rem;
  border: 1px solid #d9aa765c;
  border-radius: 2rem;
  background: #462735eb;
  color: #fff1df;
  letter-spacing: .1em;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
}
.schedule-link:hover { background: #653b48; }

.schedule {
  --schedule-ink: #fff0df;
  --schedule-muted: #e0c2b6;
  --schedule-gold: #e6b987;
  --schedule-rule: #dcad834f;
  --scene-height: clamp(24rem, 47vw, 38rem);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100svh + var(--scene-overlap));
  padding: calc(clamp(5.25rem, 10vw, 8.3rem) + var(--scene-overlap) * .5)
    clamp(1.15rem, 6vw, 5rem) calc(2.25rem + var(--scene-overlap));
  color: var(--schedule-ink);
  background: radial-gradient(ellipse at 50% 36%, #40232c, transparent 76%), var(--scene-night);
}

.schedule:has(.family-schedule[hidden]):not(:has(.family-schedule:not([hidden]))) {
  display: grid;
  align-content: center;
}

.schedule-scene,
.schedule-shade {
  position: absolute;
  inset: 0 0 auto;
  height: var(--scene-height);
  pointer-events: none;
}

.schedule-scene {
  z-index: -2;
  overflow: clip;
  mask-image: linear-gradient(#000 40%, transparent 100%);
}

.schedule-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: translateY(var(--schedule-shift, 0px)) scale(1.08);
}

.schedule-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, #32161d57 0%, transparent 24%),
    radial-gradient(ellipse at 50% 34%, #27121bad, #27121b26 55%, transparent 73%);
}

.schedule-header {
  text-align: center;
  text-shadow: 0 2px 24px #200d15;
}

.schedule-header .ornament { color: var(--schedule-gold); }

.schedule-header h2 {
  margin: .68rem auto 0;
  font-size: clamp(3.2rem, 8.4vw, 7rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .88;
  text-wrap: balance;
}

.schedule-header p,
.family-city,
.event-note {
  font-family: var(--sans);
  font-size: .875rem;
}

.schedule-header p {
  margin: 1.12rem 0 0;
  color: var(--schedule-gold);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.schedule-header h2 em { font-weight: 400; color: #ffdbac; }
.schedule-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.65rem, 3vw, 1.8rem);
  width: min(100%, 42rem);
  margin: clamp(1.65rem, 4vw, 3rem) auto 0;
  scroll-margin-top: 1.25rem;
}
.family-choice-groom {
  --choice-top: #44545a;
  --choice-base: #15262e;
}
.family-choice-bride {
  --choice-top: #713d50;
  --choice-base: #371924;
}
.family-choice {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(.28rem, 1vw, .54rem);
  min-height: clamp(8rem, 18vw, 11.25rem);
  padding: .9rem .35rem .78rem;
  overflow: hidden;
  border: 1px solid #c59462;
  border-radius: 50% 50% .42rem .42rem / 28% 28% .42rem .42rem;
  background: radial-gradient(ellipse at 50% 12%, var(--choice-top), var(--choice-base) 80%);
  box-shadow: inset 0 0 1.25rem #0a07114f, 0 .65rem 1.35rem #1b091763;
  font: 600 clamp(1.32rem, 4.1vw, 2.35rem)/1 var(--serif);
  text-align: center;
  text-decoration: none;
  color: #ffecd4;
  -webkit-tap-highlight-color: transparent;
}
.family-choice::before,
.family-choice::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}
.family-choice::before {
  inset: .25rem;
  border: 1px solid #eac18a73;
  border-radius: inherit;
  background:
    linear-gradient(0deg, #0a090e31, transparent 31%),
    repeating-linear-gradient(45deg, #f7d49b0b 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, #f7d49b0b 0 1px, transparent 1px 12px);
}
.family-choice::after {
  inset: -25%;
  background: linear-gradient(116deg, transparent 43%, #fff0c24c 50%, transparent 57%);
  transform: translateX(-78%);
}
.family-choice-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.15rem, 6vw, 3rem);
  aspect-ratio: 1;
  margin-bottom: .12rem;
  border: 1px solid #ffd99e;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 15%, #fff2cb, #d4a463 79%);
  box-shadow: inset 0 0 0 2px #bc874e66, 0 2px 7px #180f2299;
}
.family-choice-emblem::before,
.family-choice-emblem::after {
  position: absolute;
  top: 50%;
  width: clamp(.6rem, 4vw, 2.2rem);
  height: .25rem;
  border-block: 1px solid #d9ae73a8;
  border-radius: 65% 20%;
  content: "";
}
.family-choice-emblem::before { right: calc(100% + .32rem); transform: scaleX(-1); }
.family-choice-emblem::after { left: calc(100% + .32rem); }
.family-choice-emblem .ceremony-motif {
  width: 59%;
  height: auto;
  align-self: center;
  margin: 0;
  color: #583624;
}
.family-choice small {
  font: 600 clamp(.69rem, 2.2vw, .84rem)/1.3 var(--sans);
  letter-spacing: .055em;
}
.family-choice[aria-expanded="true"] {
  --choice-top: #fff2d4;
  --choice-base: #dbb079;
  border-color: #ffe6ac;
  box-shadow: inset 0 0 .9rem #c7834a53, 0 0 1rem #edba7536, 0 .65rem 1.35rem #1b091763;
  color: #492a31;
}
.family-choice[aria-expanded="true"]::before { border-color: #976238a1; }
.family-choice:hover { border-color: #ffe2a9; }
.family-choice:focus-visible { outline-color: #ffd69c; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .family-choice { transition: border-color .26s, box-shadow .3s, color .28s; }
  .family-choice::after { transition: transform .7s cubic-bezier(.25, .6, .3, 1); }
  .family-choice-emblem { transition: transform .34s cubic-bezier(.2, .7, .28, 1.25); }
  .family-choice:is(:hover, :focus-visible, [aria-expanded="true"])::after { transform: translateX(78%); }
  .family-choice:is(:hover, :focus-visible, [aria-expanded="true"]) .family-choice-emblem {
    transform: translateY(-2px) rotate(-7deg);
  }
  .schedule-nav.ceremony-reveal .family-choice {
    animation: family-choice-reveal .72s var(--choice-delay, 0s) cubic-bezier(.22, .7, .28, 1) backwards;
  }
  .schedule-nav.ceremony-reveal .family-choice-emblem {
    animation: family-emblem-reveal .5s calc(var(--choice-delay, 0s) + .23s) ease-out backwards;
  }
  .family-choice-bride { --choice-delay: .14s; }
  @keyframes family-choice-reveal {
    from { opacity: 0; translate: 0 .75rem; scale: .96; }
    to { opacity: 1; translate: 0 0; scale: 1; }
  }
  @keyframes family-emblem-reveal {
    from { opacity: .2; rotate: -12deg; scale: .76; }
    to { opacity: 1; rotate: 0deg; scale: 1; }
  }
}
.schedule-hint {
  margin: .85rem auto 0;
  color: var(--schedule-muted);
  font: 500 1.12rem/1.3 var(--serif);
  text-align: center;
}
.schedule-nav:has([aria-expanded="true"]) + .schedule-hint { display: none; }
.music-toggle {
  position: fixed;
  z-index: 8;
  bottom: max(.85rem, env(safe-area-inset-bottom));
  left: max(.85rem, env(safe-area-inset-left));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #e7be8caa;
  border-radius: 50%;
  background: #321820f5;
  color: #ffdfb5;
  box-shadow: 0 3px 9px #200d1559;
  cursor: pointer;
}
.music-toggle:hover { background: #602e3b; }
.music-toggle:focus-visible { outline: 2px solid #ffdc9f; outline-offset: 3px; }
.music-toggle[data-audio-locked] {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: auto;
  padding-inline: .7rem .8rem;
  border-radius: 2rem;
}
.music-toggle-hint { font: 550 .75rem/1 var(--sans); }
.music-toggle[hidden], .music-toggle[data-silent] .speaker-waves,
.music-toggle:not([data-silent]) .speaker-muted,
.music-toggle:not([data-audio-locked]) .music-toggle-hint { display: none; }
.family-schedules { width: min(100%, 48rem); margin-inline: auto; }
.family-schedules { margin-top: clamp(1.75rem, 4vw, 3.3rem); }
.farman + .farman:not([hidden]) { margin-top: 3rem; }
.farman {
  --schedule-ink: #4a2632;
  --schedule-muted: #63413c;
  --schedule-gold: #84492f;
  --schedule-rule: #a26a4672;
  --roller-height: clamp(1.7rem, 4.2vw, 2.95rem);
  --roller-cap: calc(var(--roller-height) * 1.3);
  --first-turn: calc(var(--roller-height) * .57);
  --first-fold: min(46svh, 100%);
  --unroll-duration: 1.65s;
  --unroll-easing: cubic-bezier(.22, .68, .32, 1);
  position: relative;
}
.farman-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem 1rem;
  padding: clamp(1.65rem, 5vw, 3.5rem) clamp(.8rem, 5vw, 3.8rem);
  color: var(--schedule-ink);
  border-inline: 1px solid #a86c47;
  background:
    linear-gradient(90deg, #b77b4459, transparent 5%, transparent 95%, #b77b4459),
    repeating-linear-gradient(0deg, #9866380a 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 44% 24%, #fff3d8, #ecd0a4);
  box-shadow: 0 .9rem 2.6rem #1508109c;
}
.farman::before, .farman::after {
  position: absolute;
  z-index: 2;
  inset-inline: -.95rem;
  height: var(--roller-height);
  border-style: solid;
  border-width: 0 var(--roller-cap);
  border-color: transparent;
  border-image: url("assets/farman-spindle.webp") 0 168 fill stretch;
  transform: translateY(-50%);
  filter: drop-shadow(0 .28rem .2rem #32151baa);
  pointer-events: none;
  content: "";
}
.farman::before { top: 0; }
.farman::after { top: 100%; }
.farman h3:focus { outline: none; }
.farman .event-days { border-top-color: #985f439e; }
@media (prefers-reduced-motion: no-preference) {
  .farman:not([hidden]) .farman-paper {
    mask-position: center top;
    mask-repeat: no-repeat;
    animation: farman-unroll var(--unroll-duration) var(--unroll-easing) both;
  }
  .farman:not([hidden])::before { animation: farman-top-turn .75s ease-out both; }
  .farman:not([hidden])::after {
    animation: farman-roller-travel var(--unroll-duration) var(--unroll-easing) both,
      farman-roller-turn var(--unroll-duration) ease-in-out both;
  }
}
@keyframes farman-unroll {
  0% { mask-image: linear-gradient(#000, #000); mask-size: 100% var(--first-turn); }
  70% { mask-size: 100% var(--first-fold); }
  99% { mask-image: linear-gradient(#000, #000); mask-size: 100% 100%; }
  100% { mask-image: none; mask-size: 100% 100%; }
}
@keyframes farman-roller-travel {
  0% { top: var(--first-turn); }
  70% { top: var(--first-fold); }
  99%, 100% { top: 100%; }
}
@keyframes farman-top-turn {
  0% { transform: translateY(-50%) perspective(16rem) rotateX(32deg); }
  48% { transform: translateY(-50%) perspective(16rem) rotateX(-14deg); }
  100% { transform: translateY(-50%) perspective(16rem) rotateX(0); }
}
@keyframes farman-roller-turn {
  0%, 100% { transform: translateY(-50%) perspective(16rem) rotateX(0); }
  18%, 57% { transform: translateY(-50%) perspective(16rem) rotateX(33deg); }
  37%, 78% { transform: translateY(-50%) perspective(16rem) rotateX(-27deg); }
}
.family-schedule h3 {
  margin: 0;
  font-size: clamp(2.35rem, 4.4vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
}
.family-schedule h3 { scroll-margin-top: 6rem; }
.family-city {
  margin: 0;
  color: var(--schedule-gold);
  font-weight: 550;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.event-days {
  grid-column: 1 / -1;
  margin: .7rem 0 0;
  padding: 0;
  border-top: 1px solid #dcad83a1;
  list-style: none;
}
.event-carousel {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.event-carousel::-webkit-scrollbar { display: none; }
.event-carousel:focus-visible { outline: 2px solid #6d3c49; outline-offset: 2px; }
.event-carousel > li {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.event-carousel .ceremony-reveal { animation: none; }
.event-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: clamp(1.2rem, 3vw, 2.1rem) .35rem 1.05rem;
  text-align: center;
}
.event-slide + .event-slide { border-top: 1px solid var(--schedule-rule); }
.event-carousel > .event-slide { border-top: 0; }
.event-date {
  margin: 0;
  color: var(--schedule-gold);
  font: 600 .84rem/1.4 var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.event-date .date-or { text-transform: none; }
.event-slide .ceremony-name {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  font-weight: 500;
  line-height: 1;
}
.ceremony-time, .event-note {
  margin: 0;
  color: var(--schedule-muted);
  font: 400 .92rem/1.42 var(--sans);
  font-variant-numeric: tabular-nums;
}
.event-note { font-style: italic; }
.event-venue {
  margin: 0;
  color: var(--schedule-muted);
  font: 500 .84rem/1.4 var(--sans);
}
.event-pending { font-style: italic; }
.function-art {
  width: min(87%, 24rem);
  margin: auto auto .18rem;
  padding-top: .4rem;
}
.function-art img {
  display: block;
  width: 100%;
  height: auto;
  translate: calc(var(--illustration-align, 0%) + var(--baraat-offset, 0px)) 0;
}

/* Illustration effects stay inside the artwork so the schedule remains still. */
.function-art[data-effect] { position: relative; }
.event-effects {
  position: absolute;
  inset: .4rem 0 0;
  overflow: hidden;
  pointer-events: none;
}
.event-effects > span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ceremony-reveal .effect-in-view .event-effects > span {
    animation: var(--effect-motion) var(--duration) var(--delay) both;
  }
}

[data-effect="engagement"], [data-effect="reception"] { --effect-motion: event-glint; }
[data-effect="engagement"] .event-effects > span,
[data-effect="reception"] .event-effects > span {
  background: radial-gradient(circle, #fff8da 4%, #eabd5d 42%, #ac5836 85%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
[data-effect="reception"] .event-effects > span {
  width: calc(1.5 * var(--size));
  height: calc(1.5 * var(--size));
  background: radial-gradient(circle, #fffae7 8%, #f8cd79 38%, #cb808a 87%);
}

[data-effect="haldi"] { --effect-motion: event-petal-fall; }
[data-effect="haldi"] .event-effects > span {
  height: calc(.74 * var(--size));
  border-radius: 72% 25% 65% 38%;
  background: linear-gradient(145deg, #ffe292, #e7a628 58%, #bc6621);
}
[data-effect="haldi"] .event-effects > span:nth-child(3n) {
  background: linear-gradient(145deg, #ffc57d, #de7d24 72%);
}

[data-effect="sangeet"] { --effect-motion: event-lantern-sway; }
[data-effect="sangeet"] .event-effects > span {
  box-sizing: border-box;
  width: 14px;
  height: 21px;
  border: 1px solid #a65a29;
  border-block-width: 3px;
  border-radius: 50% 50% 38% 38% / 22%;
  background: linear-gradient(90deg, #dd8c42, #ffd788 49%, #df9345);
  box-shadow: 0 0 12px #ffc06e8c;
  transform-origin: center -18px;
}
[data-effect="sangeet"] .event-effects > span::before {
  content: "";
  position: absolute;
  left: calc(50% - .5px);
  bottom: 100%;
  width: 1px;
  height: 18px;
  background: #a65a29;
}
[data-effect="sangeet"] .event-effects > span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 1px);
  width: 2px;
  height: 6px;
  background: #b46b33;
}

[data-effect="mandha"] { --effect-motion: event-leaf-drift; }
[data-effect="mandha"] .event-effects > span {
  height: calc(.55 * var(--size));
  border-radius: 78% 0 80% 0;
  background: linear-gradient(15deg, #697d36 45%, #cad680 51%, #9ca65a 59%);
}

[data-effect="bhaat"] { --effect-motion: event-ribbon-rise; }
[data-effect="bhaat"] .event-effects > span {
  box-sizing: border-box;
  width: calc(1.5 * var(--size));
  border: 2px solid #ba6d79;
  border-inline-color: transparent;
  border-radius: 95% 25% 85% 5%;
}
[data-effect="bhaat"] .event-effects > span:nth-child(even) { border-block-color: #ba8a32; }

[data-effect="ghudchadhi"] { --effect-motion: event-dust-drift; }
[data-effect="ghudchadhi"] .event-effects > span {
  width: calc(1.9 * var(--size));
  border-radius: 50%;
  background: radial-gradient(ellipse, #c69558 5%, #eab97e9e 45%, transparent 71%);
}

[data-effect="baraat"] { --effect-motion: event-confetti; }
[data-effect="baraat"] .event-effects > span {
  width: calc(.48 * var(--size));
  height: calc(.79 * var(--size));
  border-radius: 2px;
  background: #bb635d;
}
[data-effect="baraat"] .event-effects > span:nth-child(3n + 2) { background: #dd9e32; }
[data-effect="baraat"] .event-effects > span:nth-child(3n) { background: #798457; }

[data-effect="matkor"] { --effect-motion: event-diya-glow; }
[data-effect="matkor"] .event-effects > span {
  width: 18px;
  height: 6px;
  border-radius: 20% 20% 60% 60% / 35% 35% 85% 85%;
  background: linear-gradient(#e4a95c, #95502d 63%);
  box-shadow: 0 -5px 15px #e6a444a8;
}
[data-effect="matkor"] .event-effects > span::before {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 5px;
  width: 6px;
  height: 11px;
  border-radius: 80% 0 68% 48%;
  background: linear-gradient(#ffdb70, #ef913b 68%, #c35b2b);
  transform: rotate(-12deg);
}

[data-effect="wedding"] { --effect-motion: event-ember-rise; }
[data-effect="wedding"] .event-effects > span {
  width: 5px;
  height: var(--size);
  border-radius: 65% 28%;
  background: linear-gradient(#fff0a5, #e7a441 58%, #b45026);
  box-shadow: 0 0 7px #e79f46b3;
}

@keyframes event-glint {
  0%, 100% { opacity: 0; transform: scale(.22) rotate(0deg); }
  22%, 68% { opacity: .94; transform: scale(1) rotate(14deg); }
  43% { opacity: .38; transform: scale(.64) rotate(7deg); }
}
@keyframes event-petal-fall {
  0% { opacity: 0; transform: translateY(-12px) rotate(-25deg); }
  16% { opacity: .94; }
  52% { transform: translate(calc(var(--drift) * -.35), 46px) rotate(105deg); }
  76% { opacity: .82; }
  100% { opacity: 0; transform: translate(var(--drift), 114px) rotate(225deg); }
}
@keyframes event-lantern-sway {
  0%, 100% { opacity: 0; transform: rotate(-8deg); }
  16%, 68% { opacity: .88; }
  35%, 77% { transform: rotate(9deg); }
  55% { transform: rotate(-6deg); }
}
@keyframes event-leaf-drift {
  0% { opacity: 0; transform: translateY(-14px) rotate(25deg); }
  18%, 63% { opacity: .84; }
  65% { transform: translate(calc(var(--drift) * .5), 38px) rotate(-95deg); }
  100% { opacity: 0; transform: translate(var(--drift), 65px) rotate(-148deg); }
}
@keyframes event-ribbon-rise {
  0% { opacity: 0; transform: scale(.48) rotate(-45deg); }
  27% { opacity: .84; }
  62% { opacity: .7; transform: translate(calc(var(--drift) * .5), -34px) scale(1) rotate(35deg); }
  100% { opacity: 0; transform: translate(var(--drift), -50px) scale(.7) rotate(70deg); }
}
@keyframes event-dust-drift {
  0% { opacity: 0; transform: scale(.25); }
  29% { opacity: .65; }
  100% { opacity: 0; transform: translate(-42px, -16px) scale(1.6); }
}
@keyframes event-confetti {
  0% { opacity: 0; transform: translate(-28px, -10px) rotate(-28deg) scale(.7); }
  20%, 63% { opacity: .92; }
  56% { transform: translate(17px, 35px) rotate(160deg) scaleX(.48); }
  100% { opacity: 0; transform: translate(62px, 69px) rotate(330deg); }
}
@keyframes event-diya-glow {
  0% { opacity: 0; transform: scale(.65); }
  19%, 56% { opacity: .91; transform: scale(1); }
  36% { opacity: .65; transform: scale(.95); }
  100% { opacity: 0; transform: scale(.96); }
}
@keyframes event-ember-rise {
  0% { opacity: 0; transform: translateY(0) scale(.5) rotate(10deg); }
  19%, 48% { opacity: .93; }
  100% { opacity: 0; transform: translate(var(--drift), -96px) scale(.42) rotate(25deg); }
}

.event-carousel-controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .45rem;
  padding-top: .8rem;
  border-top: 1px solid var(--schedule-rule);
  font: 500 .83rem/1.45 var(--sans);
}
.event-carousel-controls button {
  min-height: 44px;
  padding: .35rem clamp(.55rem, 2.3vw, 1.05rem);
  border: 1px solid #ae7a56;
  border-radius: 2rem;
  background: #f8e5c2;
  color: #502a38;
  font: inherit;
  cursor: pointer;
}
.event-previous { justify-self: start; }
.event-next { justify-self: end; }
.event-carousel-controls button:hover:not([aria-disabled="true"]) { background: #ecd1a2; }
.event-carousel-controls button[aria-disabled="true"] { opacity: .54; cursor: default; }
.event-carousel-controls button:focus-visible { outline: 2px solid #6d3c49; outline-offset: 2px; }
.event-position { margin: 0; color: var(--schedule-muted); white-space: nowrap; }
.ceremony-reveal {
  animation: ceremony-reveal .82s cubic-bezier(.17, .62, .31, 1) both;
}

@keyframes ceremony-reveal {
  from { opacity: .24; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

.finale {
  --mandap-alignment: .57;
  --mandap-zoom: 1.085;
  --mandap-bottom-inset: clamp(1.5rem, 6svh, 3rem);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(max(635px, 100vh) + var(--scene-overlap));
  min-height: calc(max(635px, 100svh) + var(--scene-overlap));
  padding: calc(clamp(4.5rem, 10svh, 7rem) + var(--scene-overlap) * .5) 1rem 5rem;
  background: var(--scene-night);
  color: #fff0de;
  text-align: center;
}

.finale-scenery,
.finale-shade,
.lamplight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.finale-scenery {
  z-index: -4;
  bottom: var(--mandap-bottom-inset);
  mask-image: linear-gradient(#000 90%, transparent);
}

.finale-scenery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% calc(var(--mandap-alignment) * 100%);
  transform: translateY(var(--mandap-shift, 0px)) scale(var(--mandap-zoom));
}

.finale-shade {
  z-index: -3;
  background:
    linear-gradient(180deg, #3019238c 0%, #30192334 23%, transparent 44%, transparent 75%, var(--scene-footer) 100%),
    radial-gradient(ellipse at 50% 16%, #27121a94, transparent 52%);
}

.lamplight {
  z-index: -2;
  background:
    radial-gradient(ellipse at 27% 76%, #ffb45d55, transparent 20%),
    radial-gradient(ellipse at 73% 80%, #ffca7c4d, transparent 24%);
  mix-blend-mode: screen;
  animation: sun-breathe 3.3s ease-in-out infinite alternate;
}

.finale-copy { position: relative; z-index: 2; }
.finale-copy .ornament { color: #ecc28f; }

.finale h2 {
  margin: .55rem auto .9rem;
  color: #ffebc7;
  font: 400 clamp(3rem, 7.4vw, 6.6rem)/1 "Great Vibes", var(--serif);
  text-shadow: 0 2px 5px #2b0e1b, 0 3px 24px #210b17;
  text-wrap: balance;
}

.petal-button {
  min-height: 44px;
  border: 1px solid #efc28ab5;
  border-radius: 2rem;
  padding: 0 1.05rem;
  color: #ffe7c6;
  background: #321722c9;
  cursor: pointer;
}

.petal-button:hover { background: #623342; }
.petal-button:focus-visible { outline: 2px solid #ffdaac; outline-offset: 4px; }

.mandap-couple {
  position: absolute;
  z-index: 1;
  bottom: var(--avatar-floor, 16%);
  left: calc(50% + .65rem);
  width: min(76vw, 26rem);
  height: clamp(10rem, 34%, 23rem);
  margin: 0;
  pointer-events: none;
  opacity: var(--avatar-opacity, 1);
  transform: translate(-50%, calc(var(--mandap-shift, 0px) + var(--avatar-lift, 0px))) scale(var(--avatar-scale, 1));
  transform-origin: 50% 100%;
}

.mandap-couple::before {
  position: absolute;
  bottom: -2%;
  left: 47%;
  width: min(63%, 12rem);
  height: 7%;
  background: radial-gradient(ellipse, #281317a8, #28131737 53%, transparent 73%);
  transform: translateX(-50%);
  content: "";
}

.mandap-avatars {
  position: absolute;
  inset: 0;
  transform-origin: 50% 99%;
  animation: avatar-sway 5.2s ease-in-out infinite;
  animation-play-state: var(--avatar-idle, paused);
}

@keyframes avatar-sway {
  0%, 100% { transform: rotate(-.65deg); }
  50% { transform: rotate(.9deg) scaleY(1.014); }
}

.mandap-avatars img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 7px #2c121c8c);
}

.avatar-sheen {
  position: absolute;
  inset: 0;
  mask-image: url("assets/wedding-couple-avatars.webp"), linear-gradient(transparent 25%, #000 42%);
  mask-position: center bottom, center;
  mask-size: contain, 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
  background: linear-gradient(112deg, transparent 39%, #ffe3bca8 49%, transparent 59%)
    var(--avatar-sheen-position, 0%) center / 240% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: var(--avatar-sheen-strength, 0);
}

.countdown-display {
  position: absolute;
  z-index: 2;
  top: calc(100% - var(--avatar-floor, 16%) + clamp(.95rem, 2.3svh, 1.35rem));
  left: 50%;
  width: min(calc(100% - 2rem), 25rem);
  color: #ffe2bc;
  text-shadow: 0 1px 8px #210b17;
  transform: translateX(-50%);
}
.countdown-display h3 {
  margin: 0 0 .35rem;
  color: #ffe9c8;
  font: italic 600 clamp(1.22rem, 4.8vw, 1.65rem)/1.08 var(--serif);
}
.wedding-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: .42rem .3rem;
  border-block: 1px solid #edbe865c;
  background: linear-gradient(90deg, transparent, #301820e8 11% 89%, transparent);
}
.wedding-countdown > div + div { border-inline-start: 1px solid #efc28749; }
.countdown-value, .countdown-unit { display: block; }
.countdown-value {
  font: 650 clamp(1.7rem, 5.4vw, 2.25rem)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown-unit {
  margin-top: .2rem;
  font: 550 clamp(.59rem, 2vw, .68rem)/1.25 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .schedule-header h2 { max-width: 13ch; }
}
@media (max-width: 640px) {
  .schedule-nav { scroll-margin-top: calc(max(.85rem, env(safe-area-inset-top)) + 4.1rem); }
  .hero-copy { top: clamp(5.65rem, 13svh, 7.4rem); }
  .hero-scenery {
    top: 13%;
    bottom: 0;
    mask-image: linear-gradient(transparent 0%, #000 24%);
  }
  .hero-art {
    object-position: 50% 62%;
  }
  .floral-frame img { width: 39vw; }
  .finale { --mandap-bottom-inset: 0px; }
  .mandap-couple { bottom: var(--avatar-floor, 21%); }
}
@media (max-width: 700px) {
  .aisle-art { object-fit: fill; }
}

@media (max-width: 800px) {
  .invitation-moment {
    grid-template-areas: "date" "venue" "couple";
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 32rem);
    margin-inline: auto;
    row-gap: .6rem;
  }
  .invitation-ritual { width: min(84%, 16.25rem); }
}

@media (max-width: 520px) {
  .invitation-people { grid-template-columns: 1fr; gap: .22rem; }
  .invited-name { font-size: clamp(3.55rem, 14vw, 4.65rem); }
  .invited-and { margin: 0; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .invitation { min-height: calc(100svh + var(--scene-overlap)); padding-block: calc(2.75rem + var(--scene-overlap)) 2rem; }
  .invitation-people { margin-top: 1rem; }
  .invited-name { font-size: clamp(3.2rem, 11.5svh, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .scroll-line,
  .hero-scenery, .sun-glow, .floral-frame img, .lamplight, .ceremony-reveal, .mandap-avatars { animation: none; }
  .ceremony-particles, .avatar-sheen { display: none; }
}

.motif-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.ceremony-name { display: inline-grid; grid-template-columns: 1.45rem minmax(0, 1fr); align-items: baseline; gap: .55rem; }
.ceremony-motif { width: 1.45rem; height: 1.45rem; align-self: start; margin-top: .12em; color: var(--schedule-gold); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .ceremony-reveal .ceremony-motif { animation: ink-appear 1.45s ease-out both; }
  .ceremony-reveal .motif-dhol { animation: drum-tilt 1.1s ease-in-out both; }
}
@keyframes ink-appear { from { stroke-dasharray: 120; stroke-dashoffset: 120; } to { stroke-dasharray: 120; stroke-dashoffset: 0; } }
@keyframes drum-tilt { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(9deg); } }

.mandap-avatars .namaste-pose { position: absolute; inset: 0; opacity: 0; }
.greeting .mandap-avatars img { transition: opacity .45s ease .35s; }
.greeting .mandap-avatars img:first-child, .greeting .avatar-sheen { opacity: 0; }
.greeting .mandap-avatars .namaste-pose { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .greeting .mandap-avatars img { transition: none; }
}

.wedding-footer {
  position: relative;
  padding: calc(clamp(2.4rem, 5vw, 4rem) + var(--scene-overlap) * .55)
    1.3rem max(1.35rem, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 14%, #432333, transparent 75%), var(--scene-footer);
  color: #ffdfb5;
  text-align: center;
}
@supports (mask-image: linear-gradient(transparent, #000)) {
  :root { --scene-overlap: clamp(3.25rem, 11svh, 7.5rem); }
  .invitation, .schedule, .finale, .wedding-footer {
    margin-block-start: calc(-1 * var(--scene-overlap));
    mask-image: linear-gradient(transparent, #000 var(--scene-overlap));
  }
  .wedding-footer { --scene-overlap: clamp(1.5rem, 5.5svh, 3.5rem); }
  .invitation, .schedule { pointer-events: none; }
  .invitation-copy, .schedule-header, .schedule-nav, .family-schedules { pointer-events: auto; }
}
.wedding-footer .ornament { margin: 0 auto 1.65rem; }
.wedding-footer-details {
  max-width: 39rem;
  margin: 0 auto;
}
.footer-message {
  max-width: 36rem;
  margin: 0 auto;
  color: #ffe9d1;
  font: 400 clamp(1.95rem, 5.4vw, 3.1rem)/1.18 "Great Vibes", var(--serif);
  text-wrap: balance;
}
.footer-message p { margin: 0; }
.footer-message p + p { margin-top: .8rem; }
.footer-contact { margin-top: clamp(1.9rem, 4.5vw, 2.6rem); }
.footer-contact h2 {
  margin: 0;
  padding-inline-start: .17em;
  font-size: clamp(2.6rem, 7vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .17em;
}
.footer-contacts {
  display: grid;
  gap: .4rem;
  width: min(100%, 22.5rem);
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
  color: #f5d5b8;
  font: 600 clamp(1.03rem, 4.7vw, 1.42rem)/1.4 var(--serif);
  text-align: start;
}
.footer-contacts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem;
}
.footer-contacts li > :last-child {
  color: #ffe5c7;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}
.footer-contacts a { text-decoration-color: #daae83a6; text-underline-offset: .24em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin: 1.2rem auto .8rem; }
.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font: 600 clamp(.9rem, 3.4vw, 1.06rem) var(--serif);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-underline-offset: .35em;
}
.footer-contacts a:focus-visible, .footer-links a:focus-visible, .footer-credit a:focus-visible {
  outline: 2px solid #ffe0a8;
  outline-offset: 3px;
}
.voice-button[hidden] { display: none; }
.footer-credit {
  max-width: 39rem;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid #d7a57266;
  font: 600 clamp(1.04rem, 4vw, 1.2rem)/1.35 var(--serif);
}
.footer-signature {
  font: 400 1.55em/1 "Great Vibes", var(--serif);
}
.footer-credit a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  letter-spacing: .035em;
  text-underline-offset: .35em;
}
.voice-button {
  min-height: 44px;
  padding: .45rem 1rem;
  border: 1px solid currentColor;
  border-radius: 2rem;
  color: inherit;
  background: #fff3dfd9;
  font: 550 .875rem var(--sans);
  cursor: pointer;
}
