:root {
  color-scheme: dark;
  --night: #071322;
  --gold: #eed2a0;
  --ivory: #fff5e4;
  --muted: #c8c3bd;
  --serif: "Cormorant Garamond", "Noto Serif Devanagari", Georgia, serif;
  --sans: "DM Sans", "Noto Serif Devanagari", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #040b13; color: var(--ivory); font: 1.125rem/1.5 var(--serif); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h2 { font-size: clamp(2.5rem, 7vw, 4.3rem); line-height: 1.05; }
em { font-weight: 400; color: var(--gold); }
button { border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; background: var(--ivory); color: var(--night); padding: 10px; z-index: 100; }
.skip-link:focus { top: 10px; }
.hud { position: fixed; z-index: 20; top: 0; left: 50%; translate: -50% 0; width: min(100%, 900px); display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; background: linear-gradient(#06101dc9, transparent); }
.brand { font-size: 1.7rem; text-decoration: none; white-space: nowrap; }
.brand span { font-style: italic; color: var(--gold); margin: 0 5px; font-size: 1rem; }
.hud-actions { display: flex; gap: 7px; }
.hud-actions button { border: 1px solid #eed2a044; border-radius: 25px; padding: 8px 12px; background: #08101d55; font: .875rem/1.2 var(--sans); backdrop-filter: blur(8px); }
.hud-actions button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.hud-actions .invite-button { background: #eed2a019; }
.journey { max-width: 900px; margin: auto; overflow: clip; }
.scroll-scene { position: relative; --p: 0; }
.stage { position: sticky; top: 0; width: 100%; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: var(--night); }
.scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entrance { height: 230svh; }
.entrance-art { object-position: 50% 70%; transform-origin: 50% 75%; transform: scale(calc(1 + var(--p) * 1.7)); will-change: transform; }
.entrance-shade { position: absolute; inset: 0; background: linear-gradient(#06142655, transparent 55%, #06142660); pointer-events: none; }
.entrance-title { position: absolute; inset: 15% 24px auto; text-align: center; text-shadow: 0 3px 20px #000; opacity: max(0, calc(1 - var(--p) * 3)); transform: translateY(calc(var(--p) * -30px)); }
.eyebrow { font: .875rem/1.5 var(--sans); letter-spacing: .1em; color: var(--gold); }
.entrance-title h1 { font-size: clamp(3.7rem, 12vw, 7rem); line-height: .95; margin: 20px 0 25px; }
.entrance-title h1 em { font-size: .55em; margin: 0 .1em; }
.title-rule { height: 1px; max-width: 130px; margin: 0 auto 20px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.date-range { font: .875rem/1.6 var(--sans); color: #f5e0c0; }
.scene-caption { position: absolute; z-index: 8; bottom: 0; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px 25px; background: linear-gradient(transparent, #05111ad9); font: .875rem/1.3 var(--sans); color: var(--ivory); }
.scene-caption::after { content: ""; position: absolute; bottom: 12px; left: 24px; right: 24px; height: 1px; background: #eed2a04d; }
.scene-caption button, .scene-caption a { background: transparent; color: var(--gold); text-decoration: none; font: inherit; padding: 5px 0; text-align: right; }
.hall { height: 200svh; }
.hall-art { transform: scale(calc(1 + var(--p) * 1.1)); transform-origin: 50% 54%; will-change: transform; }
.hall-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse, transparent 35%, #100b0e55); }
.hall-words { position: absolute; left: 30px; right: 30px; top: 18%; text-align: center; text-shadow: 0 3px 16px #000; opacity: max(0, calc(1 - var(--p) * 2)); font-size: clamp(1.6rem, 5vw, 2.6rem); font-style: italic; }
.threshold { height: 235svh; --door: 0; }
.door-stage { background: radial-gradient(ellipse at 50% 55%, #8b5b35, #291622 65%, #081322); perspective: 1300px; }
.sanctuary-glow { position: absolute; inset: 15% 5%; background: radial-gradient(ellipse, #ebbc5755, transparent 65%); }
.sanctuary-art { position: absolute; bottom: 10%; left: 50%; translate: -50% 0; max-width: 88%; width: auto; height: 63%; object-fit: contain; transform: scale(calc(.9 + var(--door) * .1)); }
.door-panel { position: absolute; top: 0; bottom: 0; width: 50%; background-image: url(assets/doors.webp); background-size: 200% 100%; will-change: transform; backface-visibility: hidden; }
.door-left { left: 0; background-position: left center; transform-origin: left; transform: translateX(calc(var(--door) * -105%)) rotateY(calc(var(--door) * -24deg)); }
.door-right { right: 0; background-position: right center; transform-origin: right; transform: translateX(calc(var(--door) * 105%)) rotateY(calc(var(--door) * 24deg)); }
.threshold-words { position: absolute; top: 14%; left: 20px; right: 20px; text-align: center; font-size: clamp(1.7rem, 6vw, 2.8rem); color: var(--gold); opacity: max(0, calc(var(--door) * 2 - 1)); text-shadow: 0 2px 15px #30140b; }
.blessings { position: relative; min-height: 110svh; display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at top, #63462d40, transparent 60%), #091727; padding: 100px 28px; }
.blessing-copy { width: min(100%, 590px); }
.ornament { display: block; color: var(--gold); margin: 0 auto 28px; font-size: 1.5rem; }
.blessing-copy h2 { margin: 22px 0 38px; }
.family-name { font-size: 1.6rem; }
.joining { color: var(--gold); font-style: italic; margin: 12px 0; }
.blessing-note { color: var(--muted); margin-top: 30px; font-size: 1.25rem; }
.wedding-date { margin: 30px 0 18px; color: var(--gold); }
.quiet-button { background: none; border-bottom: 1px solid #eed2a060; padding: 6px 0; color: var(--gold); font-size: 1rem; }
.ceremonies { height: 660svh; }
.ceremony-stage { background: #112721; transition: background 1.2s; }
.ceremony-stage::before { content: ""; position: absolute; inset: 0; background: url(assets/hall.webp) center/cover; opacity: .12; }
.ceremony-halo { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #edc98e12, transparent 65%); }
.ceremony-panel { position: absolute; inset: 10% 20px 125px; text-align: center; opacity: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .2s; }
.ceremony-panel.is-current { pointer-events: auto; }
.ceremony-panel .event-date { color: var(--gold); font-size: 1.1rem; }
.ceremony-panel h2 { margin: 8px 0; font-size: clamp(2.8rem, 8vw, 4.5rem); }
.ceremony-panel .event-location { font-size: 1rem; max-width: 420px; }
.event-picture { width: auto; max-width: min(82%, 440px); height: 39svh; max-height: 440px; min-height: 0; flex-shrink: 1; object-fit: contain; margin: 16px 0 12px; border-radius: 45% 45% 4px 4px / 27% 27% 4px 4px; box-shadow: 0 0 45px #090e1e40; }
.event-calendar { border: 0; background: transparent; border-bottom: 1px solid #eed2a070; color: var(--gold); padding: 5px 0; font-size: 1rem; }
.river { height: 230svh; }
.river-art { object-position: center bottom; transform: scale(calc(1 + var(--p) * .12)); transform-origin: bottom; }
.river-shade { position: absolute; inset: 0; background: linear-gradient(#0614249c 5%, #06142444 45%, transparent 75%, #06142460); }
.river-copy { position: absolute; top: 15%; left: 25px; right: 25px; text-align: center; z-index: 4; text-shadow: 0 3px 18px #000; }
.river-copy h2 { max-width: 620px; margin: 20px auto 24px; }
.venue-name { font-size: 1.5rem; }
.deadline { color: var(--gold); font-size: 1rem; margin: 20px 0 20px; }
.gold-button { display: inline-block; padding: 14px 25px; border: 1px solid #f6e0af; border-radius: 40px; background: #f0d7a6; color: #302519; font: 1rem/1.25 var(--sans); box-shadow: 0 6px 25px #03102033; }
.gold-button:hover { background: #ffe9bc; }
.directions { display: block; width: fit-content; margin: 18px auto; font-size: 1rem; }
.sign-off { font-style: italic; color: #e9d6b9; margin-top: 18px; }
#fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
dialog { width: calc(100% - 30px); max-width: 620px; max-height: 88svh; overflow-y: auto; border: 1px solid #eed2a060; border-radius: 18px; padding: 40px 28px 30px; background: #0c1d2e; color: var(--ivory); box-shadow: 0 25px 100px #0008; }
dialog::backdrop { background: #020914cc; backdrop-filter: blur(8px); }
.close-dialog { position: absolute; right: 16px; top: 8px; background: transparent; color: var(--gold); font-size: 2rem; width: 36px; height: 36px; }
dialog h2 { font-size: 3rem; margin: 15px 0 22px; }
dialog h3 { color: var(--gold); font-size: 1.6rem; margin: 28px 0 12px; }
.dialog-rule { height: 1px; background: #eed2a030; margin: 25px 0; }
.venue-note { font-size: .875rem; color: var(--muted); margin-top: 12px; }
#invitation-rsvp { margin-top: 26px; }
form label { display: block; font: 1rem var(--sans); margin: 20px 0 8px; }
input, select, textarea { display: block; width: 100%; background: #ffffff09; border: 1px solid #eed2a055; border-radius: 7px; color: var(--ivory); padding: 12px; font-size: 1rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #eed2a0 50%), linear-gradient(135deg, #eed2a0 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: #0c1d2e; }
form .gold-button { margin-top: 20px; width: 100%; }
.form-note { font-size: .875rem; color: var(--muted); margin-top: 18px; }
.form-status { color: var(--gold); margin-top: 18px; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 35px; translate: -50% 0; width: max-content; max-width: calc(100% - 40px); background: #f0d7a6; color: #302519; font: .875rem/1.5 var(--sans); border-radius: 10px; padding: 12px 18px; opacity: 0; pointer-events: none; transition: opacity .3s; }
#toast.show { opacity: 1; }
html[lang="hi"] .eyebrow { letter-spacing: 0; }
html[lang="hi"] .river-copy h2 { font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.3; }
@media (max-height: 740px) {
  .ceremony-panel { inset: 11% 20px 125px; }
  .event-picture { height: 34svh; margin: 12px 0; }
  .river-copy { top: 13%; }
  .river-copy h2 { font-size: 2.6rem; margin: 13px auto; }
  .river-copy .sign-off { margin-top: 10px; }
  .deadline { margin-block: 13px; }
}
@media (max-width: 400px) {
  .hud { padding: 15px 14px; }
  .hud-actions { gap: 5px; }
  .hud-actions button { padding: 8px 9px; }
  .brand { font-size: 1.5rem; }
  .scene-caption { padding-inline: 18px; }
  .scene-caption span { max-width: 50%; }
  .river-copy { left: 20px; right: 20px; }
  .river-copy h2 { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entrance, .hall, .threshold, .river { height: 100svh; }
  .entrance-art, .hall-art, .river-art { transform: none; }
  .entrance-title, .hall-words, .threshold-words { opacity: 1; transform: none; }
  .door-panel { display: none; }
  .ceremony-stage, .ceremony-panel { transition: none; }
  #fireworks { display: none; }
}

/* Tap-to-light opening and layered motion. */
body.lights-off { overflow: hidden; }
.lights-off .hud { visibility: hidden; }
.lighting-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 25px 60px;
  background: transparent;
  transition: opacity .65s ease;
}
.lighting-gate span {
  padding: 14px 25px;
  border: 1px solid #eed2a070;
  border-radius: 40px;
  color: var(--gold);
  background: #05111bc9;
  box-shadow: 0 0 35px #e5bb5122;
  font-style: italic;
  animation: invitation-breathe 2.8s ease-in-out infinite;
}
.lighting-gate.dismissed { opacity: 0; pointer-events: none; }
.entrance-unlit {
  object-position: 50% 70%;
  transform-origin: 50% 75%;
  transform: scale(calc(1 + var(--p) * .95));
}
.entrance-art {
  opacity: 0;
  transition: opacity .35s ease;
  transform: translate3d(calc(var(--look-x, 0) * -10px), calc(var(--look-y, 0) * -8px), 0) scale(calc(1 + var(--p) * .95));
}
.site-lit .entrance-art { opacity: 1; }
.entrance-title { top: 12%; z-index: 6; opacity: 0; perspective: 1000px; }
.site-lit .entrance-title { opacity: max(0, calc(1 - var(--p) * 2.6)); }
.entrance-title > * {
  opacity: 0;
  transform: translate3d(0, 26px, -30px) rotateX(14deg);
  transition: opacity 1.8s ease, transform 2s cubic-bezier(.2,.65,.2,1);
}
.site-lit .entrance-title > * { opacity: 1; transform: translate3d(0,0,0) rotateX(0); }
.site-lit .entrance-title > :nth-child(1) { transition-delay: .3s; }
.site-lit .entrance-title > :nth-child(2) { transition-delay: .75s; }
.site-lit .entrance-title > :nth-child(3) { transition-delay: 1.2s; }
.site-lit .entrance-title > :nth-child(4) { transition-delay: 1.55s; }
.site-lit .entrance-title > :nth-child(5) { transition-delay: 1.95s; }
.entrance-title h1 { margin: 18px 0 20px; }
.entrance-invitation { max-width: 440px; margin: 18px auto 0; font-size: 1.125rem; }
.entrance .scene-caption { opacity: 0; transition: opacity 2s 2.4s; }
.site-lit .entrance .scene-caption { opacity: 1; }
.scene-caption::after { content: none; }
.hall-art {
  transform: translate3d(calc(var(--look-x, 0) * -13px), calc(var(--look-y, 0) * -9px), 0) scale(calc(1 + var(--p) * .85));
}
.clouds { position: absolute; z-index: 2; inset: 0 0 48%; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute;
  width: 420px;
  height: 110px;
  background: radial-gradient(ellipse, #c1d5ee88, transparent 69%);
  filter: blur(9px);
  opacity: 0;
  animation: cloud-sail 26s ease-in-out infinite alternate paused;
  transition: opacity 3s;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, #c5d5ed88, transparent 68%);
}
.cloud::before { width: 220px; height: 150px; left: 55px; top: -55px; }
.cloud::after { width: 180px; height: 120px; left: 180px; top: -35px; }
.cloud-a { left: -230px; top: 18%; animation-delay: -11s; }
.cloud-b { right: -220px; top: 58%; animation-delay: -6s; animation-duration: 34s; scale: .8; }
.cloud-c { left: 20%; top: -40px; animation-delay: -20s; animation-duration: 38s; scale: .7; }
.site-lit .cloud { opacity: .5; animation-play-state: running; }
@keyframes cloud-sail { from { translate: -70px 0; } to { translate: 140px 20px; } }
@keyframes invitation-breathe { 50% { box-shadow: 0 0 50px #e5bb5140; translate: 0 -3px; } }
#fireworks.global-fireworks {
  position: fixed;
  inset: 0 auto 0 50%;
  translate: -50% 0;
  width: min(100%, 900px);
  height: 100svh;
  z-index: 7;
  pointer-events: none;
}
.transition-glow {
  --glow: 0;
  position: fixed;
  z-index: 16;
  inset: 0 auto 0 50%;
  translate: -50% 0;
  width: min(100%, 900px);
  pointer-events: none;
  opacity: calc(var(--glow) * .9);
  background: radial-gradient(ellipse at 50% 48%, #fff2c5f0 3%, #f8cd79cd 24%, #d89c4466 58%, transparent 85%);
  backdrop-filter: blur(calc(var(--glow) * 5px));
  mix-blend-mode: screen;
  transform: scale(calc(1 + var(--glow) * .08));
  will-change: opacity;
}

/* Stagger the information as each scene enters the viewport. */
.hall-words { opacity: 1; }
.hall-words > *, .blessing-copy > *, .river-copy > *, .rsvp-form-section > * {
  opacity: 0;
  transform: translate3d(0, 24px, -25px) rotateX(9deg);
  transition: opacity 1.6s ease, transform 1.9s cubic-bezier(.2,.65,.2,1);
}
.information-visible > * { opacity: 1; transform: translate3d(0,0,0) rotateX(0); }
.information-visible > :nth-child(2) { transition-delay: .2s; }
.information-visible > :nth-child(3) { transition-delay: .4s; }
.information-visible > :nth-child(4) { transition-delay: .6s; }
.information-visible > :nth-child(5) { transition-delay: .8s; }
.information-visible > :nth-child(6) { transition-delay: 1s; }
.information-visible > :nth-child(7) { transition-delay: 1.2s; }
.information-visible > :nth-child(n+8) { transition-delay: 1.4s; }
.blessing-copy, .river-copy, .rsvp-form-section { perspective: 1100px; }
.sanctuary-art { filter: drop-shadow(0 0 45px #e1b15b44); }
.rose-petals {
  position: fixed;
  z-index: 12;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s;
}
.rose-petals.is-active { opacity: 1; }
.rose-petals i {
  position: absolute;
  left: var(--left);
  top: -40px;
  width: var(--size);
  height: calc(var(--size) * 1.4);
  background: linear-gradient(135deg, #ffc3c7, #d35272 55%, #8d1f46);
  border-radius: 70% 25% 65% 35%;
  box-shadow: inset 2px 0 4px #ffd3d144, 1px 3px 6px #210d2422;
  animation: rose-fall var(--duration) linear var(--delay) infinite paused;
  will-change: transform;
}
.rose-petals.is-active i { animation-play-state: running; }
@keyframes rose-fall {
  0% { transform: translate3d(0,-5vh,0) rotateX(0) rotateY(0) rotateZ(0); }
  45% { transform: translate3d(var(--drift),48vh,80px) rotateX(240deg) rotateY(160deg) rotateZ(120deg); }
  100% { transform: translate3d(calc(var(--drift) * -.5),110vh,-80px) rotateX(var(--spin)) rotateY(420deg) rotateZ(290deg); }
}

/* Full-screen ceremony images, with copy positioned on the original blank plaques. */
.ceremony-stage::before { display: none; }
.ceremony-panel {
  inset: 0;
  display: block;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: none;
}
.event-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center bottom;
  box-shadow: none;
  transform: rotateY(calc(var(--event-offset, 0) * -4deg));
  transform-origin: center;
  will-change: transform;
}
.event-copy {
  position: absolute;
  left: 50%;
  top: var(--copy-top);
  translate: -50% 0;
  width: var(--copy-width);
  height: var(--copy-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #513322;
  perspective: 900px;
  padding: 3px 0;
}
.event-copy > * {
  opacity: 0;
  transform: translate3d(0,18px,-15px) rotateX(12deg);
  transition: opacity 1.1s ease, transform 1.4s ease;
}
.is-current .event-copy > * { opacity: 1; transform: translate3d(0,0,0) rotateX(0); }
.is-current .event-copy > :nth-child(1) { transition-delay: .15s; }
.is-current .event-copy > :nth-child(2) { transition-delay: .4s; }
.is-current .event-copy > :nth-child(3) { transition-delay: .7s; }
.is-current .event-copy > :nth-child(4) { transition-delay: .95s; }
.event-copy .event-date { color: #70502e; font-size: .875rem; line-height: 1.2; }
.event-copy h2 { color: #694226; margin: 5px 0; font-size: clamp(2rem,5vw,3rem); line-height: 1; }
.event-copy .event-location { font-size: 1rem; line-height: 1.2; max-width: 100%; }
.event-copy .event-calendar { color: #684329; font-size: .875rem; border-color: #68432980; margin-top: 5px; padding: 3px 0; }
.ceremonies .scene-caption { background: none; padding-top: 14px; color: #5a3b29; text-shadow: 0 1px 7px #fff3db; }
.ceremonies .scene-caption button { color: #5a3b29; }
.rsvp-form-section {
  position: relative;
  padding: 100px 28px 75px;
  background: radial-gradient(ellipse at top, #3a3344, #071322 70%);
  text-align: center;
}
.rsvp-form-section h2 { margin: 15px auto 30px; }
.rsvp-form-section form { max-width: 520px; margin: auto; text-align: left; }
.rsvp-form-section .sound-setting { margin-top: 32px; font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 400px) {
  .entrance-title { top: 11%; inset-inline: 20px; }
  .entrance-title h1 { font-size: 3.5rem; }
  .entrance-invitation { font-size: 1rem; }
  .event-copy h2 { font-size: 2rem; }
  .event-copy .event-location { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .transition-glow, .clouds, .rose-petals, #fireworks { display: none; }
  .lighting-gate span { animation: none; }
  .entrance-title > *, .hall-words > *, .blessing-copy > *, .river-copy > *, .rsvp-form-section > *, .event-copy > * {
    transition: none;
    transform: none;
  }
  .entrance-art, .hall-art, .event-picture { transform: none; }
}

.hud { opacity: 0; transition: opacity 1.6s 1.6s; }
.site-lit .hud { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hud { transition: none; }
}

.scene-caption > *, .threshold-words > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.6s ease, transform 1.8s ease;
}
.scene-caption.information-visible > *, .threshold-words.information-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.scene-caption.information-visible > :nth-child(2) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .scene-caption > *, .threshold-words > * { transition: none; transform: none; }
}

/* Opaque opening transitions end with the divine gate reveal. */
.transition-glow {
  opacity: min(.995, calc(var(--glow) * 1.08));
  background: radial-gradient(ellipse at center, #fff9e8 6%, #ffe4b0 52%, #edc17f 100%);
  backdrop-filter: blur(calc(var(--glow) * 18px));
  mix-blend-mode: normal;
  transform: none;
}
/* A shared twilight tone feathers scene boundaries without later light flashes. */
body, .stage, .blessings, .rsvp-form-section { background-color: #091727; }
.stage::before, .stage::after {
  content: "";
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  height: clamp(80px, 17svh, 180px);
  pointer-events: none;
}
.stage::before { top: 0; background: linear-gradient(#091727, #09172788 35%, transparent); }
.stage::after { bottom: 0; background: linear-gradient(transparent, #09172788 65%, #091727); }
.entrance .stage::before { display: none; }
.ceremony-stage::before { display: block; opacity: 1; inset: 0 0 auto; }
.ceremony-stage::before, .ceremony-stage::after { height: 55px; }
.blessings { overflow: hidden; isolation: isolate; background: #091727; }
.blessings::before, .blessings::after, .rsvp-form-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 110px;
  pointer-events: none;
}
.blessings::before, .rsvp-form-section::before { top: 0; background: linear-gradient(#091727, transparent); }
.blessings::after { bottom: 0; background: linear-gradient(transparent, #091727); }
.blessing-copy { position: relative; z-index: 2; text-shadow: 0 2px 18px #04101f; }
.blessing-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; perspective: 1000px; }
.blessing-sky::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url(assets/hall.webp) center / cover;
  opacity: .12;
  filter: blur(11px) saturate(.6);
  animation: sanctuary-depth 24s ease-in-out infinite alternate;
}
.blessing-sky::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 20% 35%, #c7975740, transparent 45%),
    radial-gradient(ellipse at 80% 65%, #506e9f55, transparent 48%);
  filter: blur(25px);
  animation: sanctuary-light 19s ease-in-out infinite alternate;
}
@keyframes sanctuary-depth {
  from { transform: translate3d(-12px,-15px,-40px) rotateZ(-1deg) scale(1); }
  to { transform: translate3d(18px,15px,40px) rotateZ(1deg) scale(1.12); }
}
@keyframes sanctuary-light {
  from { translate: -5% -3%; opacity: .65; }
  to { translate: 5% 3%; opacity: 1; }
}
/* Moonlit clouds and stars remain visible against the temple sky. */
.cloud {
  background: radial-gradient(ellipse at 50% 65%, #e1eaf5ee 2%, #bacde2bb 32%, transparent 71%);
  filter: blur(5px);
}
.cloud::before, .cloud::after { background: radial-gradient(ellipse, #e3ebf6dd 6%, #b7cae599 36%, transparent 70%); }
.cloud-a { left: -145px; top: 16%; }
.cloud-b { right: -135px; top: 53%; }
.cloud-c { left: 18%; top: -5px; }
.site-lit .cloud { opacity: .72; }
.blessing-clouds { inset: 0; opacity: .24; }
.blessing-clouds .cloud { width: 540px; }
.blessing-clouds .cloud-a { top: 8%; }
.blessing-clouds .cloud-b { top: 67%; }
.blessing-clouds .cloud-c { top: 42%; left: -30%; }
.sky-stars { position: absolute; inset: 0 0 52%; z-index: 2; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 2.5s; }
.site-lit .sky-stars { opacity: 1; }
.blessing-stars { inset: 0; opacity: .8; }
.river-stars { bottom: 50%; }
.sky-stars i {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: #f9f0d8;
  box-shadow: 0 0 6px 1px #e9dcba80;
  animation: star-twinkle var(--twinkle) ease-in-out var(--star-delay) infinite;
}
.sky-stars .sky-sparkle::before, .sky-stars .sky-sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: linear-gradient(transparent, #fff3d8, transparent);
}
.sky-sparkle::before { width: 1px; height: 11px; }
.sky-sparkle::after { width: 11px; height: 1px; background: linear-gradient(90deg, transparent, #fff3d8, transparent) !important; }
@keyframes star-twinkle { 0%,100% { opacity: .3; scale: .7; } 50% { opacity: 1; scale: 1.2; } }
@media (prefers-reduced-motion: reduce) {
  .transition-glow { display: none; }
  .blessing-sky::before, .blessing-sky::after, .sky-stars i { animation: none; }
  .sky-stars i { opacity: .8; }
}

.ceremony-stage { background-color: #f5e5c9; transition: none; }
