:root {
  --night: #05060c;
  --night-soft: #0a0d19;
  --navy: #0b1734;
  --navy-light: #172b57;
  --ivory: #f7f2eb;
  --paper: #eee7df;
  --ink: #111117;
  --silver: #dfe2ea;
  --silver-dark: #8c919e;
  --rose-gold: #c88f7d;
  --rose-gold-light: #edc4b5;
  --magenta: #d34f91;
  --violet: #8677ff;
  --cyan: #57d6e5;
  --reserved-blue: #2854a6;
  --plum: #2d152d;
  --plum-light: #5c3059;
  --font-display: "Italiana", "Times New Roman", serif;
  --font-script: "Parisienne", "Brush Script MT", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", Arial, sans-serif;
  --shadow-soft: 0 30px 90px rgba(0, 0, 0, .38);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 14% 12%, rgba(211, 79, 145, .13), transparent 25rem),
    radial-gradient(circle at 88% 34%, rgba(87, 214, 229, .10), transparent 28rem),
    var(--night);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body:not(.is-open) {
  overflow: hidden;
}

body.dialog-is-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .65rem 1rem;
  color: var(--night);
  background: var(--ivory);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, .02) 49%, transparent 52%),
    radial-gradient(circle at center, transparent, rgba(0, 0, 0, .48));
}

.ambient-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, .5) 0 1px, transparent 1.7px);
  background-position: 0 0, 35px 61px;
  background-size: 83px 83px, 111px 111px;
  animation: star-drift 30s linear infinite;
}

.ambient-beam {
  position: absolute;
  width: 130vw;
  height: 1px;
  left: -15vw;
  opacity: .42;
  transform-origin: center;
  filter: drop-shadow(0 0 7px currentColor);
}

.beam-one {
  top: 24%;
  color: var(--magenta);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transform: rotate(12deg);
}

.beam-two {
  top: 58%;
  color: var(--cyan);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transform: rotate(-9deg);
}

.beam-three {
  top: 80%;
  color: var(--violet);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transform: rotate(17deg);
}

.ambient-star {
  position: absolute;
  color: rgba(255, 255, 255, .75);
  animation: twinkle 3.2s ease-in-out infinite;
}

.star-one { top: 13%; left: 8%; font-size: 1.1rem; }
.star-two { top: 46%; right: 7%; font-size: .7rem; animation-delay: -1.2s; }
.star-three { bottom: 9%; left: 17%; font-size: 1.5rem; animation-delay: -2s; }

.eyebrow {
  display: block;
  font-size: clamp(.62rem, 1.8vw, .75rem);
  font-weight: 500;
  letter-spacing: .34em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow.ink {
  color: #4f4b4c;
}

.eyebrow.silver {
  color: var(--silver-dark);
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: clamp(5.75rem, 14vw, 8.5rem) clamp(1.5rem, 6vw, 3.5rem);
  text-align: center;
}

.section-inner.compact {
  width: min(100%, 34rem);
}

.section-inner.wide {
  width: 100%;
}

.section-paper {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.35), transparent 12%, transparent 88%, rgba(80,68,58,.05)),
    radial-gradient(circle at 20% 0%, rgba(200,143,125,.10), transparent 24rem),
    repeating-linear-gradient(12deg, rgba(18,18,22,.012) 0 1px, transparent 1px 5px),
    var(--ivory);
}

.section-night,
.section-dark {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 72% 18%, rgba(134, 119, 255, .11), transparent 22rem),
    radial-gradient(circle at 18% 72%, rgba(211, 79, 145, .08), transparent 22rem),
    linear-gradient(180deg, #05060c, #080a12);
}

.section-night::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.4px);
  background-size: 63px 63px;
}

.script-title,
em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
}

.muted {
  color: #67636a;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 7%, rgba(255,255,255,.12), transparent 11rem),
    radial-gradient(circle at 20% 88%, rgba(211,79,145,.16), transparent 18rem),
    var(--night);
  transition: opacity .85s ease, visibility .85s ease;
}

.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.5px);
  background-size: 61px 61px;
  animation: star-drift 26s linear infinite;
}

.opening-card {
  position: relative;
  width: min(100%, 29rem);
  min-height: min(90dvh, 50rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  color: var(--ink);
  background:
    repeating-linear-gradient(10deg, rgba(20,15,18,.014) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #fbf9f6, #ece6e0);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 30px 100px rgba(0,0,0,.65), inset 0 0 0 10px rgba(255,255,255,.35);
}

.opening-card::before,
.opening-card::after {
  content: "";
  position: absolute;
  inset: 1.05rem;
  border: 1px solid rgba(17,17,23,.16);
  pointer-events: none;
}

.opening-card::after {
  inset: 1.4rem;
  border-color: rgba(200,143,125,.27);
}

.opening-copy {
  position: relative;
  z-index: 4;
  margin-bottom: 1.5rem;
  text-align: center;
}

.opening-copy h1 {
  margin: .2rem 0 -.2rem;
  color: var(--navy);
  font-family: var(--font-script);
  font-size: clamp(4.4rem, 17vw, 6.7rem);
  font-weight: 400;
  line-height: .95;
}

.opening-copy p {
  margin: .8rem 0 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .36em;
}

.disco-orb {
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 2%, transparent 11%),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(2,4,10,.45) 8px 9px),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(2,4,10,.45) 8px 9px),
    radial-gradient(circle at 36% 30%, #fafcff, #aeb4c2 38%, #4f5668 72%, #151927 100%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    inset -18px -20px 30px rgba(0,0,0,.45),
    inset 10px 9px 22px rgba(255,255,255,.65),
    0 14px 35px rgba(0,0,0,.4);
}

.opening-orb {
  position: absolute;
  top: -3.2rem;
  right: -2.2rem;
  z-index: 3;
  width: 9.5rem;
  aspect-ratio: 1;
  animation: orb-float 5s ease-in-out infinite;
}

.envelope-trigger {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.envelope-trigger:hover .envelope,
.envelope-trigger:focus-visible .envelope {
  transform: translateY(-3px) scale(1.012);
}

.envelope {
  position: relative;
  display: block;
  width: min(88%, 22rem);
  aspect-ratio: 1.55;
  margin: 2rem auto 1.8rem;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform .35s ease;
}

.envelope-shadow {
  position: absolute;
  inset: auto 8% -9% 8%;
  height: 18%;
  background: rgba(0,0,0,.28);
  border-radius: 50%;
  filter: blur(17px);
}

.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, #10204a, #071126);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow-soft);
}

.envelope-letter {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 8%;
  left: 8%;
  height: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background:
    repeating-linear-gradient(12deg, rgba(10,10,15,.018) 0 1px, transparent 1px 5px),
    var(--ivory);
  box-shadow: 0 5px 20px rgba(0,0,0,.14);
  transform: translateY(22%);
  transition: transform 1s cubic-bezier(.16,.8,.23,1) .45s;
}

.letter-kicker {
  font-size: .43rem;
  letter-spacing: .24em;
}

.letter-name {
  margin: .2rem 0;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 11vw, 4.1rem);
  line-height: 1;
}

.letter-date {
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .28em;
}

.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.envelope-front-left {
  background: linear-gradient(142deg, #101f47, #071126);
  clip-path: polygon(0 0, 52% 52%, 100% 100%, 0 100%);
}

.envelope-front-right {
  background: linear-gradient(218deg, #172a59, #09132c);
  clip-path: polygon(100% 0, 48% 52%, 0 100%, 100% 100%);
}

.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(160deg, #243b70, #0a1735 72%);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: 50% 0;
  backface-visibility: hidden;
  transition: transform .85s cubic-bezier(.4,0,.2,1);
}

.envelope-seal {
  position: absolute;
  z-index: 7;
  top: 43%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--navy);
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(11,23,52,.22) 5px 6px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(11,23,52,.22) 5px 6px),
    radial-gradient(circle at 34% 26%, #fff, #d8dce6 45%, #818899);
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 5px 18px rgba(0,0,0,.45), inset 0 0 12px rgba(255,255,255,.65);
  transform: translate(-50%, -50%);
  transition: transform .38s ease, opacity .35s ease;
}

.envelope-seal span {
  font-family: var(--font-display);
  font-size: .88rem;
}

.open-label,
.open-subtitle {
  display: block;
  text-align: center;
  text-transform: uppercase;
}

.open-label {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 .9rem .45rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  border-bottom: 1px solid rgba(17,17,23,.42);
}

.open-subtitle {
  margin-top: .65rem;
  color: #68636a;
  font-size: .56rem;
  letter-spacing: .2em;
}

body.is-opening .envelope-flap {
  z-index: 1;
  transform: rotateX(180deg);
}

body.is-opening .envelope-letter {
  z-index: 6;
  transform: translateY(-45%) scale(1.04);
}

body.is-opening .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.35) rotate(35deg);
}

body.is-opening .opening-copy,
body.is-opening .open-label,
body.is-opening .open-subtitle {
  opacity: .28;
  transition: opacity .5s ease;
}

body.is-open .opening {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.invite-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 45rem);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 0 100px rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity .8s ease .15s, transform .8s ease .15s, visibility .8s ease .15s;
}

body.is-open .invite-shell {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.music-dock {
  position: fixed;
  z-index: 80;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: calc(100vw - 2rem);
  padding: .45rem .85rem .45rem .48rem;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 999px;
  background: rgba(7, 9, 16, .82);
  box-shadow: 0 12px 35px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
}

body.is-open .music-dock {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.music-disc {
  position: relative;
  width: 2.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #171925 0 3px, #08090e 3px 5px),
    #08090e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  animation: disc-spin 4.5s linear infinite;
}

.music-disc::before,
.music-disc span {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet), var(--cyan));
}

.music-disc span {
  inset: 45%;
  background: var(--ivory);
}

.music-dock.is-paused .music-disc {
  animation-play-state: paused;
}

.music-dock-copy {
  display: grid;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}

.music-dock-copy strong {
  color: var(--cyan);
  font-size: .58rem;
  letter-spacing: .18em;
}

.music-dock-copy small {
  max-width: 11rem;
  overflow: hidden;
  margin-top: .25rem;
  font-size: .66rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scroll-progress {
  position: fixed;
  z-index: 85;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .4s ease;
}

body.is-open .scroll-progress {
  opacity: 1;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan));
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.hero-shade,
.closing-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,5,10,.04) 25%, rgba(4,5,10,.22) 52%, #05060c 100%),
    linear-gradient(90deg, rgba(5,6,12,.2), transparent 35%, transparent 65%, rgba(5,6,12,.2));
}

.hero-laser {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  opacity: .62;
  filter: drop-shadow(0 0 5px currentColor);
}

.laser-a {
  top: 23%;
  color: var(--magenta);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transform: rotate(8deg);
}

.laser-b {
  top: 42%;
  color: var(--cyan);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  transform: rotate(-7deg);
}

.hero-orb {
  position: absolute;
  top: -2.8rem;
  right: -2.8rem;
  width: clamp(9rem, 32vw, 14rem);
  aspect-ratio: 1;
  opacity: .92;
  animation: orb-float 6s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 55vh 1.5rem calc(6.75rem + env(safe-area-inset-bottom));
  text-align: center;
  text-shadow: 0 3px 20px rgba(0,0,0,.62);
}

.hero-copy h2 {
  margin: .25rem 0 -.25rem;
  font-family: var(--font-script);
  font-size: clamp(5rem, 20vw, 8.5rem);
  font-weight: 400;
  line-height: .92;
}

.hero-xv {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-rule {
  display: block;
  width: min(11rem, 42vw);
  height: 1px;
  margin: 1.45rem auto 1.1rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
}

.scroll-cue {
  margin: 0;
  font-size: .61rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.scroll-cue span {
  display: inline-block;
  margin-left: .35rem;
  animation: arrow-bounce 1.8s ease-in-out infinite;
}

.ornament-line {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(100% - 3rem, 35rem);
  margin: 0 auto;
  color: var(--rose-gold);
}

.ornament-line::before,
.ornament-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.ornament-line::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.music-card-section {
  padding-top: 4.5rem;
}

.music-card-section .section-inner {
  padding-top: 3.4rem;
}

.music-card-section h2 {
  margin: .35rem 0 .3rem;
  color: var(--navy);
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 1;
}

.music-card-section p {
  margin: 0 auto 1.8rem;
  font-size: .86rem;
}

.audio-deck {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  color: var(--ivory);
  background: linear-gradient(135deg, #0e1e43, #080d1c);
  border: 1px solid rgba(200,143,125,.55);
  box-shadow: 0 12px 25px rgba(11,23,52,.22);
}

.deck-control {
  flex: 0 0 3rem;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-gold), #9f6253);
  cursor: pointer;
}

.deck-track {
  flex: 1;
  min-width: 0;
}

.deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .55rem;
  font-size: .65rem;
  letter-spacing: .14em;
}

.deck-meta span {
  color: var(--silver-dark);
  font-variant-numeric: tabular-nums;
}

.deck-progress {
  position: relative;
  display: block;
  width: 100%;
  height: .35rem;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  cursor: pointer;
}

.deck-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
}

.childhood-story {
  isolation: isolate;
  border-top: 1px solid rgba(17,17,23,.08);
}

.childhood-story .section-inner {
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.childhood-story h2 {
  margin: .75rem 0 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 5.4rem);
  font-weight: 400;
  line-height: .91;
}

.childhood-story h2 em {
  color: var(--rose-gold);
}

.childhood-intro {
  max-width: 34rem;
  margin: 0 auto 2.6rem;
  color: #625d63;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  line-height: 1.5;
}

.childhood-glow {
  position: absolute;
  top: 7rem;
  right: -8rem;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,143,125,.18), transparent 67%);
  pointer-events: none;
}

.memory-filmstrip {
  width: min(100%, 38rem);
  padding: 1.15rem 0 1.35rem;
  color: var(--ivory);
  border: 1px solid rgba(200,143,125,.5);
  background:
    linear-gradient(135deg, rgba(91,46,87,.28), transparent 42%),
    linear-gradient(180deg, #10152a, #070a13);
  box-shadow: 0 28px 70px rgba(11,23,52,.23);
}

.memory-filmstrip .carousel-window {
  margin: .65rem 0;
}

.memory-slide {
  padding: 0 clamp(1.15rem, 5vw, 2.4rem);
}

.memory-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: .55rem solid #f4eee8;
  background: #d8d0ca;
  box-shadow: 0 16px 38px rgba(0,0,0,.44);
}

.memory-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17,17,23,.16);
  box-shadow: inset 0 0 30px rgba(29,17,25,.12);
  pointer-events: none;
}

.memory-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.025);
}

.memory-slide figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.2rem;
  padding-top: 1rem;
  color: var(--silver);
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

.memory-slide figcaption span {
  color: var(--rose-gold-light);
  font-family: var(--font-sans);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.film-perforations {
  height: .65rem;
  opacity: .58;
  background: repeating-linear-gradient(90deg, transparent 0 .8rem, rgba(247,242,235,.72) .8rem 1.4rem, transparent 1.4rem 2.2rem);
}

.film-perforations-bottom {
  transform: rotate(180deg);
}

.memory-controls {
  margin: 1rem 1rem 0;
}

.memory-controls .carousel-dots {
  max-width: 14rem;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-fallback {
  margin: 2rem 1.5rem;
  color: var(--silver);
  font-family: var(--font-serif);
}

.story .section-inner {
  padding-top: 7rem;
}

.story-portrait {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), 31rem);
  height: min(74svh, 43rem);
  margin: 5.5rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(17,17,23,.16);
  box-shadow: 0 28px 70px rgba(11,23,52,.16);
}

.story-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(4,5,10,.68));
  pointer-events: none;
}

.story-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.story-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  color: rgba(255,255,255,.78);
  font-size: .55rem;
  letter-spacing: .24em;
}

.story h2,
.editorial-gallery h2,
.gift h2 {
  margin: .65rem 0 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.3rem);
  font-weight: 400;
  line-height: .92;
}

.story h2 em,
.editorial-gallery h2 em {
  display: inline-block;
  color: var(--rose-gold);
  font-size: 1.05em;
}

.story-lead {
  margin: 2rem 0 1rem;
  color: var(--navy);
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
}

.story-copy {
  max-width: 30rem;
  margin: 0 auto;
  color: #59565b;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: rgba(17,17,23,.16);
  border-block: 1px solid rgba(17,17,23,.16);
}

.family-card {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem .7rem;
  background: var(--ivory);
}

.family-card span {
  margin-bottom: .65rem;
  color: #706b70;
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.family-card strong {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.05;
}

.family-card i {
  color: var(--rose-gold);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
}

.paper-orb {
  position: absolute;
  top: 3rem;
  right: -2.7rem;
  width: 8.2rem;
  aspect-ratio: 1;
  opacity: .26;
}

.dark-line {
  padding-bottom: 1.5rem;
}

.photo-story h2,
.timeline h2,
.rsvp h2 {
  margin: .7rem 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 11vw, 5.5rem);
  font-weight: 400;
  line-height: .92;
}

.photo-story h2 em,
.rsvp h2 em {
  color: var(--rose-gold-light);
  font-size: 1.05em;
}

.portrait-carousel {
  position: relative;
  width: min(100%, 29rem);
  margin: 0 auto;
}

.chapter-interlude {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
}

.chapter-interlude > img,
.chapter-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chapter-interlude > img {
  object-fit: cover;
  object-position: center 14%;
}

.chapter-shade {
  background:
    linear-gradient(180deg, rgba(5,6,12,.08), rgba(5,6,12,.12) 42%, rgba(5,6,12,.94) 100%),
    linear-gradient(90deg, rgba(5,6,12,.18), transparent 45%, rgba(5,6,12,.12));
}

.chapter-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 56vh 1.5rem 4.5rem;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0,0,0,.72);
}

.chapter-copy h2 {
  margin: .55rem 0 .8rem;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 12vw, 6.2rem);
  font-weight: 400;
  line-height: .9;
}

.chapter-copy h2 em {
  color: var(--rose-gold-light);
}

.chapter-copy p {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .32em;
}

.carousel-window {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .75s cubic-bezier(.22,.61,.36,1);
}

.portrait-slide {
  min-width: 100%;
  margin: 0;
  padding: 0 clamp(.35rem, 2vw, .8rem);
}

.polaroid {
  padding: .65rem .65rem 2.9rem;
  background: #f8f5ef;
  box-shadow: 0 24px 50px rgba(0,0,0,.42);
  transform: rotate(-1.2deg);
  transition: transform .65s ease;
}

.portrait-slide:nth-child(even) .polaroid {
  transform: rotate(1.2deg);
}

.portrait-slide.is-active .polaroid {
  transform: rotate(0) translateY(-.2rem);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.carousel-controls > button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  padding: 0;
  color: var(--silver);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  gap: .55rem;
}

.carousel-dots button {
  width: .45rem;
  height: .45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}

.carousel-dots button.is-active {
  background: var(--rose-gold-light);
  transform: scale(1.45);
}

.date-orb {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 10rem;
  aspect-ratio: 1;
  opacity: .24;
}

.date-lockup {
  display: grid;
  justify-items: center;
  margin: 2.1rem 0 2.5rem;
}

.date-lockup strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 9rem);
  font-weight: 400;
  line-height: .82;
}

.date-lockup span {
  margin: .65rem 0;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.countdown-label {
  margin: 0 0 .8rem;
  color: var(--rose-gold);
  font-size: clamp(2.5rem, 9vw, 4rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 32rem;
  margin: 0 auto;
  border-block: 1px solid rgba(17,17,23,.14);
}

.countdown > div {
  padding: 1.1rem .3rem;
}

.countdown > div + div {
  border-left: 1px solid rgba(17,17,23,.14);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  margin-top: .45rem;
  color: #716c72;
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.event-details .section-inner {
  display: grid;
  gap: 4.5rem;
}

.detail-plaque {
  position: relative;
  padding: 4rem 1.25rem 2.3rem;
  color: var(--ivory);
  background:
    linear-gradient(145deg, rgba(255,255,255,.03), transparent),
    var(--navy);
  border: 1px solid rgba(200,143,125,.5);
  box-shadow: 0 24px 50px rgba(11,23,52,.2);
}

.detail-plaque::before,
.detail-plaque::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 31%;
  height: 2.4rem;
  background: var(--ivory);
}

.detail-plaque::before {
  left: -1px;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}

.detail-plaque::after {
  right: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28% 100%);
}

.plaque-icon {
  position: absolute;
  z-index: 2;
  top: -2.4rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4.8rem;
  aspect-ratio: 1;
  color: var(--navy);
  border: 5px solid var(--ivory);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold));
  font-family: var(--font-serif);
  font-size: 2rem;
  transform: translateX(-50%);
}

.detail-plaque h2 {
  margin: .8rem 0 .65rem;
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 13vw, 5.5rem);
  font-weight: 400;
  line-height: .84;
}

.detail-plaque p {
  margin: .4rem auto;
  color: #c8cbd4;
  font-size: .8rem;
}

.detail-plaque > strong {
  display: block;
  margin: .25rem 0 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.detail-plaque .entry-note {
  margin: 1.4rem auto;
  padding: 1rem .75rem;
  color: var(--rose-gold-light);
  border-block: 1px solid rgba(200,143,125,.35);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gold-button,
.light-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.gold-button {
  color: var(--navy);
  background: linear-gradient(135deg, #f1d0c3, var(--rose-gold));
  box-shadow: 0 10px 25px rgba(200,143,125,.2);
}

.gold-button:hover,
.light-button:hover,
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(0,0,0,.24);
}

.dress-plaque {
  background:
    linear-gradient(145deg, rgba(211,79,145,.05), transparent),
    #080b15;
}

.reserved-color {
  margin-top: 1.7rem;
  padding: 1.1rem .9rem;
  border: 1px solid rgba(85,146,255,.48);
  background:
    radial-gradient(circle at 85% 15%, rgba(87,214,229,.13), transparent 8rem),
    linear-gradient(135deg, rgba(40,84,166,.34), rgba(40,84,166,.1));
  box-shadow: inset 0 0 28px rgba(41,91,184,.08);
}

.reserved-color span,
.reserved-color strong {
  display: block;
}

.reserved-color span {
  color: #8ab8ff;
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .22em;
}

.reserved-color strong {
  margin: .25rem 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.reserved-color p {
  margin-bottom: 0;
}

.timeline-list {
  position: relative;
  max-width: 27rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--rose-gold), rgba(200,143,125,.15));
  transform: translateX(-50%);
}

.timeline-list li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.2rem;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 4.4rem;
  aspect-ratio: 1;
  margin-bottom: .65rem;
  color: var(--rose-gold-light);
  border: 1px solid rgba(200,143,125,.52);
  border-radius: 50%;
  background: var(--night-soft);
  font-size: 1.3rem;
}

.timeline-list time {
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.timeline-list strong {
  color: var(--silver-dark);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.timeline-list small {
  margin-top: .25rem;
  color: #747985;
  font-family: var(--font-serif);
  font-size: .85rem;
}

.song-request h2 {
  max-width: 28rem;
  margin: .8rem auto .75rem;
  color: var(--navy);
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 12vw, 5rem);
  font-weight: 400;
  line-height: 1;
}

.song-request p {
  max-width: 25rem;
  margin: 0 auto 1.7rem;
}

.dark-icon {
  position: static;
  margin: 0 auto 1.2rem;
  color: var(--ivory);
  border: 0;
  background: var(--navy);
  transform: none;
}

.dark-button {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}

.editorial-gallery .section-inner {
  padding-inline: clamp(.75rem, 3vw, 1.5rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin-top: 2.5rem;
}

.gallery-photo {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--night);
  cursor: zoom-in;
}

.gallery-photo::after {
  content: "+";
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(5,6,12,.38);
  backdrop-filter: blur(8px);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
  transform: scale(1.035);
}

.gallery-tall {
  grid-row: span 2;
  min-height: 28.6rem;
}

.gallery-tall img {
  object-position: center 18%;
}

.gallery-wide {
  grid-column: 1 / -1;
  min-height: 24rem;
}

.gallery-wide img {
  object-position: center 7%;
}

.gift .section-inner {
  padding-bottom: 8rem;
}

.gift p {
  max-width: 27rem;
  margin: 0 auto 2rem;
}

.gift-card {
  position: relative;
  display: grid;
  gap: .25rem;
  padding: 1.7rem 1rem;
  border: 1px solid rgba(17,17,23,.2);
  background: rgba(255,255,255,.35);
}

.gift-card::before,
.gift-card::after {
  content: "✦";
  position: absolute;
  top: .55rem;
  color: var(--rose-gold);
  font-size: .7rem;
}

.gift-card::before { left: .65rem; }
.gift-card::after { right: .65rem; }

.gift-card span {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.gift-card strong {
  font-size: .65rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.gift-card small {
  color: #777178;
  font-size: .72rem;
}

.rsvp {
  min-height: 46rem;
  display: grid;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 50%, rgba(190,91,157,.19), transparent 22rem),
    radial-gradient(circle at 90% 38%, rgba(106,78,154,.2), transparent 24rem),
    linear-gradient(135deg, #100a14, #090d1d 52%, #170b19);
}

.rsvp::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  z-index: 1;
  border: 1px solid rgba(235,177,219,.18);
  pointer-events: none;
}

.rsvp p {
  max-width: 27rem;
  margin: 0 auto 2rem;
  color: var(--silver-dark);
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.rsvp-orb {
  position: absolute;
  top: -4rem;
  left: 50%;
  width: 15rem;
  aspect-ratio: 1;
  opacity: .16;
  transform: translateX(-50%);
}

.rsvp-preview-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 30rem;
  margin: 2rem auto;
  border-block: 1px solid rgba(235,177,219,.2);
}

.rsvp-preview-steps span {
  position: relative;
  display: grid;
  gap: .25rem;
  padding: 1rem .3rem;
  color: #a9a5b1;
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rsvp-preview-steps span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1.8rem;
  background: rgba(235,177,219,.2);
  transform: translateY(-50%);
}

.rsvp-preview-steps b {
  color: #ebb1db;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
}

.rsvp-table-note {
  display: block;
  margin-top: 1rem;
  color: #9d96a4;
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rsvp-candle {
  position: absolute;
  z-index: 0;
  bottom: 5%;
  width: 3.6rem;
  height: 11rem;
  opacity: .3;
  border-radius: .5rem .5rem .15rem .15rem;
  background: linear-gradient(90deg, #81626f, #ead8d1 44%, #9b7583);
  box-shadow: 0 0 5rem 1rem rgba(234,154,193,.3);
}

.rsvp-candle::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 50%;
  width: 1.1rem;
  height: 2rem;
  border-radius: 60% 40% 55% 45%;
  background: radial-gradient(circle at 50% 65%, #fff 0 12%, #ffd38a 25%, #e67873 55%, transparent 58%);
  filter: drop-shadow(0 0 1rem #ffb38a);
  transform: translateX(-50%);
}

.rsvp-candle-left { left: -1rem; }
.rsvp-candle-right { right: -1.4rem; bottom: 14%; transform: scale(.78); }

.light-button {
  color: var(--night);
  background: var(--ivory);
}

.closing {
  min-height: 90svh;
  display: grid;
  align-items: end;
}

.closing-media,
.closing-media::after {
  position: absolute;
  inset: 0;
}

.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
}

.closing-shade {
  background: linear-gradient(180deg, rgba(5,6,12,.1), rgba(5,6,12,.2) 40%, #05060c 100%);
}

.closing-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 55vh 1.5rem 4rem;
  text-align: center;
}

.closing-name {
  margin: .25rem 0 -.2rem;
  font-family: var(--font-script);
  font-size: clamp(5rem, 20vw, 8rem);
  line-height: .95;
}

.closing-copy > span:not(.eyebrow),
.closing-copy small {
  display: block;
  text-transform: uppercase;
}

.closing-copy > span:not(.eyebrow) {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .24em;
}

.closing-copy small {
  margin-top: .55rem;
  color: var(--silver-dark);
  font-size: .55rem;
  letter-spacing: .22em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.rsvp-dialog {
  width: min(calc(100% - 1rem), 72rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #f7eff6;
  border: 1px solid rgba(238,174,221,.48);
  background:
    radial-gradient(circle at 95% 5%, rgba(222,119,193,.15), transparent 22rem),
    radial-gradient(circle at 2% 92%, rgba(131,80,145,.22), transparent 24rem),
    linear-gradient(135deg, #150d18, #090d1a 58%, #1c0e1f);
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  scrollbar-color: rgba(235,177,219,.45) transparent;
}

.rsvp-dialog::backdrop,
.lightbox::backdrop {
  background: rgba(2,3,7,.82);
  backdrop-filter: blur(8px);
}

.rsvp-dialog[open] {
  animation: dialog-in .35s ease both;
}

.rsvp-form {
  position: relative;
  display: grid;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.dialog-close {
  position: absolute;
  z-index: 8;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  padding: 0;
  color: #f8eaf5;
  border: 1px solid rgba(240,190,226,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  font-size: 1.45rem;
  cursor: pointer;
}

.rsvp-dialog-header {
  padding: .4rem 2.5rem 1.4rem;
  text-align: center;
}

.rsvp-dialog-header .eyebrow {
  color: #dca2cf;
}

.rsvp-dialog-header h2 {
  margin: .65rem 0 .25rem;
  color: #fff5fc;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
}

.rsvp-dialog-header p {
  margin: 0;
  color: #c8b8c8;
  font-family: var(--font-serif);
  font-size: 1.06rem;
}

.rsvp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 33rem;
  margin: 1.55rem auto 0;
  padding: 0;
  list-style: none;
}

.rsvp-steps::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 15%;
  left: 15%;
  height: 1px;
  background: rgba(225,163,210,.34);
}

.rsvp-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .4rem;
  color: #8e7f8f;
}

.rsvp-steps li span {
  display: grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  color: #ae9caf;
  border: 1px solid rgba(225,163,210,.45);
  border-radius: 50%;
  background: #160f1b;
  font-family: var(--font-serif);
  font-size: 1rem;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.rsvp-steps li small {
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rsvp-steps li.is-active,
.rsvp-steps li.is-complete {
  color: #efc8e6;
}

.rsvp-steps li.is-active span,
.rsvp-steps li.is-complete span {
  color: #1c1020;
  background: linear-gradient(135deg, #f0c0e4, #c57ac0);
  box-shadow: 0 0 1.5rem rgba(224,123,199,.22);
}

.rsvp-steps li.is-active span {
  transform: scale(1.08);
}

.rsvp-dialog-grid {
  display: grid;
  gap: 1rem;
}

.rsvp-fields-panel,
.rsvp-table-guide {
  border: 1px solid rgba(236,178,221,.25);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
}

.rsvp-fields-panel {
  padding: clamp(.6rem, 2vw, 1rem);
}

.rsvp-field-block {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: .6rem;
  padding: 1.15rem .35rem;
}

.rsvp-field-block + .rsvp-field-block {
  border-top: 1px solid rgba(236,178,221,.16);
}

.field-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 2.4rem;
  aspect-ratio: 1;
  color: #efc6e4;
  border: 1px solid rgba(229,159,211,.34);
  border-radius: 50%;
  background: rgba(130,61,120,.2);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.field-content {
  min-width: 0;
  display: grid;
}

.rsvp-form label,
.attendance-options legend {
  margin: 0 0 .28rem;
  color: #f8eef6;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rsvp-form label > span {
  color: #a997a9;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  padding: .86rem .95rem;
  color: #fff7fc;
  border: 1px solid rgba(235,177,219,.32);
  border-radius: .65rem;
  background: rgba(255,255,255,.07);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: #e4a4d4;
  box-shadow: 0 0 0 3px rgba(228,164,212,.12);
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: #8f7e90;
}

.rsvp-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.field-content > small,
.quantity-field small {
  margin-bottom: .7rem;
  color: #a897a9;
  font-family: var(--font-serif);
  font-size: .84rem;
}

.attendance-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.attendance-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: .55rem;
}

.attendance-choice {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}

.attendance-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attendance-choice > span {
  display: grid;
  min-height: 4.5rem;
  align-content: center;
  gap: .16rem;
  padding: .75rem;
  border: 1px solid rgba(235,177,219,.22);
  border-radius: .7rem;
  background: rgba(255,255,255,.035);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.attendance-choice b,
.attendance-choice small {
  display: block;
}

.attendance-choice b {
  color: #f5e8f2;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.attendance-choice small {
  color: #9d8c9e;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.attendance-choice input:checked + span {
  border-color: #e4a4d4;
  background: linear-gradient(135deg, rgba(197,122,192,.28), rgba(88,48,92,.17));
  box-shadow: inset 0 0 1.5rem rgba(228,164,212,.05);
}

.attendance-choice input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(235,177,219,.14);
  transition: opacity .2s ease;
}

.quantity-field > div:first-child {
  display: grid;
}

.quantity-field.is-disabled {
  opacity: .38;
}

.quantity-control {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 2.65rem 3rem 2.65rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(235,177,219,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.quantity-control button {
  height: 2.7rem;
  padding: 0;
  color: #f2c8e7;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
}

.quantity-control button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.quantity-control input {
  height: 2.7rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(224,150,207,.13);
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: center;
  appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.field-content > label:not(:first-child) {
  margin-top: 1rem;
}

.character-counter {
  justify-self: end;
  margin: .25rem 0 0 !important;
  font-family: var(--font-sans) !important;
  font-size: .58rem !important;
}

.rsvp-table-guide {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1.2rem;
  padding: 2rem 1.25rem;
  overflow: hidden;
  text-align: center;
}

.rsvp-table-guide::before {
  content: "";
  position: absolute;
  inset: auto -5rem -8rem auto;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,131,199,.12), transparent 67%);
  pointer-events: none;
}

.table-guide-icon {
  display: grid;
  place-items: center;
  width: 3.7rem;
  aspect-ratio: 1;
  color: #f0c0e4;
  border: 1px solid rgba(235,177,219,.4);
  border-radius: 50%;
  background: rgba(172,90,155,.17);
  font-size: 1.5rem;
}

.rsvp-table-guide .eyebrow {
  color: #b49eb2;
  font-size: .52rem;
}

.rsvp-table-guide h3 {
  margin: .45rem 0 .25rem;
  color: #f8eef6;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.rsvp-table-guide p {
  max-width: 24rem;
  margin: 0;
  color: #b8a9b8;
  font-size: .8rem;
}

.table-plan {
  position: relative;
  width: 14rem;
  aspect-ratio: 1;
  margin: .35rem auto;
  border: 1px solid rgba(235,177,219,.18);
  border-radius: 50%;
}

.table-plan > div {
  position: absolute;
  inset: 21%;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  color: #f9eefa;
  border: 1px solid rgba(235,177,219,.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(230,171,216,.18), transparent 62%),
    #28152a;
  box-shadow: 0 0 2rem rgba(225,127,199,.13);
}

.table-plan strong,
.table-plan small {
  display: block;
}

.table-plan strong {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: .9;
}

.table-plan small {
  color: #cbb5c8;
  font-size: .48rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.table-plan > span {
  position: absolute;
  width: 2.25rem;
  height: 1.5rem;
  border: 1px solid rgba(240,194,229,.42);
  border-radius: .45rem .45rem .7rem .7rem;
  background: linear-gradient(135deg, #8d5688, #4d2d52);
  box-shadow: inset 0 .2rem .35rem rgba(255,255,255,.12), 0 .3rem .7rem rgba(0,0,0,.3);
}

.table-plan > span:nth-child(1) { top: 4%; left: 24%; transform: rotate(-18deg); }
.table-plan > span:nth-child(2) { top: 4%; right: 24%; transform: rotate(18deg); }
.table-plan > span:nth-child(3) { top: 34%; right: -1%; transform: rotate(80deg); }
.table-plan > span:nth-child(4) { right: 8%; bottom: 9%; transform: rotate(145deg); }
.table-plan > span:nth-child(5) { right: 37%; bottom: -3%; transform: rotate(178deg); }
.table-plan > span:nth-child(7) { bottom: 3%; left: 16%; transform: rotate(208deg); }
.table-plan > span:nth-child(8) { bottom: 25%; left: -3%; transform: rotate(262deg); }
.table-plan > span:nth-child(9) { top: 24%; left: -3%; transform: rotate(282deg); }
.table-plan > span:nth-child(10) { top: 3%; left: 4%; transform: rotate(-42deg); }
.table-plan > span:nth-child(11) { top: -4%; left: 42%; transform: rotate(0); }

.table-benefits {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.table-benefits li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  padding: .75rem 0;
}

.table-benefits li + li {
  border-top: 1px solid rgba(235,177,219,.13);
}

.table-benefits li > span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  aspect-ratio: 1;
  color: #f0c0e4;
  border: 1px solid rgba(235,177,219,.26);
  border-radius: 50%;
  font-size: .75rem;
}

.table-benefits strong,
.table-benefits small {
  display: block;
}

.table-benefits strong {
  color: #eadce8;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 500;
}

.table-benefits small {
  margin-top: .12rem;
  color: #9f8e9f;
  font-size: .66rem;
}

.rsvp-fields-panel.is-disabled .quantity-field {
  opacity: .38;
}

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

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 .45rem;
  color: #f1a9c0;
  font-size: .78rem;
  text-align: center;
}

.form-status.is-success {
  color: #9fe0bf;
}

.form-status.is-loading {
  color: #b9dffc;
}

.form-status.is-error {
  color: #ffb2c8;
}

.submit-button {
  width: min(100%, 31rem);
  margin: 0 auto;
  color: #241126;
  border-color: rgba(255,255,255,.42);
  background: linear-gradient(135deg, #d993d0, #efbfe5 55%, #c473bd);
  box-shadow: 0 1rem 2.5rem rgba(190,88,169,.2);
}

.submit-button:disabled {
  opacity: .6;
  cursor: wait;
}

.privacy-note {
  margin-top: .75rem;
  color: #938494;
  font-size: .6rem;
  text-align: center;
}

.lightbox {
  width: min(calc(100% - 2rem), 35rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
}

.lightbox {
  width: min(calc(100% - 1.5rem), 44rem);
  max-height: calc(100dvh - 1.5rem);
  overflow: hidden;
  color: var(--ivory);
  border-color: rgba(255,255,255,.2);
  background: var(--night);
}

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 1.5rem);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  padding: 0;
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  border-color: rgba(255,255,255,.28);
  background: rgba(5,6,12,.72);
  font-size: 1.45rem;
  cursor: pointer;
}

.noscript {
  position: fixed;
  z-index: 2000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  color: var(--night);
  background: var(--ivory);
  text-align: center;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(.65rem) rotate(2deg); }
}

@keyframes star-drift {
  from { background-position: 0 0, 35px 61px; }
  to { background-position: 83px 83px, 146px 172px; }
}

@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes disc-spin {
  to { transform: rotate(360deg); }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(.35rem); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(1rem) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 46rem) {
  .music-dock {
    right: calc((100vw - 45rem) / 2 + 1.25rem);
  }

  .opening-card {
    min-height: min(88dvh, 51rem);
  }

  .hero,
  .closing {
    min-height: 52rem;
  }

  .gallery-grid {
    gap: .85rem;
  }
}

@media (min-width: 64rem) {
  .invite-shell {
    width: min(100%, 80rem);
  }

  .music-dock {
    right: max(1.25rem, calc((100vw - 80rem) / 2 + 1.25rem));
  }

  .section-inner {
    width: min(100%, 74rem);
    padding-inline: clamp(4rem, 7vw, 6rem);
  }

  .section-inner.compact {
    width: min(100%, 42rem);
  }

  .hero {
    min-height: max(46rem, 100svh);
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    align-items: stretch;
  }

  .hero-media {
    position: relative;
    inset: auto;
    grid-column: 1;
    min-height: max(46rem, 100svh);
  }

  .hero-media img {
    object-position: center 12%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4,5,10,.05) 52%, rgba(4,5,10,.62) 100%),
      linear-gradient(180deg, transparent 70%, rgba(4,5,10,.36));
  }

  .hero-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 7rem clamp(3rem, 5vw, 5rem);
    text-align: left;
  }

  .hero-copy h2 {
    margin-left: -.12em;
    font-size: clamp(7rem, 10vw, 9.5rem);
  }

  .hero-rule {
    margin-left: 0;
  }

  .scroll-cue {
    text-align: left;
  }

  .hero-orb {
    top: -4rem;
    right: -5rem;
    width: 16rem;
  }

  .story {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: stretch;
  }

  .childhood-story .section-inner {
    width: min(100%, 70rem);
    padding-block: 8rem;
  }

  .childhood-story h2 {
    font-size: clamp(4.8rem, 7vw, 6.4rem);
  }

  .memory-filmstrip {
    width: min(100%, 42rem);
  }

  .story-portrait {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 54rem;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .story .section-inner {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 100%;
    padding: 8rem clamp(3.5rem, 6vw, 6.5rem);
    text-align: left;
  }

  .story-copy,
  .story-lead {
    margin-left: 0;
  }

  .story .family-grid {
    margin-inline: 0;
  }

  .story > .ornament-line {
    grid-column: 1 / -1;
  }

  .photo-story .section-inner,
  .editorial-gallery .section-inner,
  .timeline .section-inner,
  .event-details .section-inner {
    width: min(100%, 76rem);
  }

  .portrait-carousel {
    width: min(100%, 36rem);
  }

  .chapter-interlude {
    min-height: 56rem;
  }

  .chapter-interlude > img {
    object-position: center 5%;
  }

  .chapter-copy {
    width: 100%;
    margin: 0;
    padding: 28rem clamp(4rem, 8vw, 8rem) 5.5rem;
    text-align: left;
  }

  .chapter-copy h2 {
    font-size: clamp(5rem, 7vw, 7rem);
  }

  .event-details .section-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: stretch;
  }

  .detail-plaque {
    min-height: 39rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-inline: clamp(2rem, 4vw, 4rem);
  }

  .timeline-list {
    max-width: 68rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .timeline-list::before {
    top: 2.2rem;
    right: 2.3rem;
    bottom: auto;
    left: 2.3rem;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(200,143,125,.15), var(--rose-gold), rgba(200,143,125,.15));
    transform: none;
  }

  .timeline-list li {
    margin-bottom: 0;
  }

  .timeline-list time {
    min-height: 3.2rem;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .gallery-photo {
    min-height: 20rem;
  }

  .gallery-tall {
    min-height: 41rem;
  }

  .gallery-wide {
    grid-column: span 2;
    min-height: 20rem;
  }

  .rsvp {
    min-height: 40rem;
  }

  .rsvp-dialog-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(18rem, .78fr);
    align-items: stretch;
  }

  .rsvp-table-guide {
    padding: 2.25rem 1.75rem;
  }

  .closing {
    min-height: 56rem;
  }

  .closing-copy {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 34rem) {
  .opening-card {
    min-height: calc(100dvh - 2rem);
  }

  .family-grid {
    grid-template-columns: 1fr;
  }

  .family-card + .family-card {
    border-top: 1px solid rgba(17,17,23,.16);
  }

  .countdown strong {
    font-size: 1.65rem;
  }

  .gallery-photo {
    min-height: 11.5rem;
  }

  .gallery-tall {
    min-height: 23.6rem;
  }

  .gallery-wide {
    min-height: 20rem;
  }

  .music-dock-copy small {
    max-width: 8.2rem;
  }

  .rsvp-form {
    padding: 1rem .7rem 1.5rem;
  }

  .rsvp-dialog-header {
    padding-inline: 2rem;
  }

  .rsvp-field-block {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: .45rem;
  }

  .field-number {
    width: 2rem;
  }

  .attendance-choice-grid {
    grid-template-columns: 1fr;
  }

  .quantity-field {
    align-items: stretch;
    flex-direction: column;
  }

  .quantity-control {
    align-self: start;
  }

  .rsvp-table-guide {
    padding-inline: 1rem;
  }

  .table-plan {
    width: 12.5rem;
  }
}

@media (max-width: 23.5rem) {
  .opening-card {
    box-shadow: none;
  }

  .music-dock-copy {
    display: none;
  }

  .music-dock {
    padding: .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
