:root {
  --ivory: #fff8ee;
  --paper: #f3e8d8;
  --sand: #dcc3a4;
  --terracotta: #b85f45;
  --terracotta-deep: #7b3f32;
  --wine: #57312f;
  --brown: #352421;
  --gold: #c99b5d;
  --gold-pale: #ecd4aa;
  --ink: #3e2d29;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  scroll-behavior: auto;
  background: var(--brown);
}

.js:not(.invitation-open) {
  scrollbar-width: none;
}

.js:not(.invitation-open)::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Do not set overflow on html/body: it disables the sticky story stage. */
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 99px;
  background: var(--ivory);
  color: var(--brown);
  font-size: .78rem;
  text-decoration: none;
}

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

.veil {
  display: none;
}

.js .veil {
  position: fixed;
  z-index: 9000;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background:
    radial-gradient(circle at 50% 36%, rgba(233, 184, 120, .28), transparent 27%),
    linear-gradient(145deg, #3a211d 0%, #6e382e 48%, #2c1b19 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease-in-out), visibility 1s;
}

.js .veil.is-opening {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.veil::before,
.veil::after {
  position: absolute;
  inset: -15%;
  content: "";
  pointer-events: none;
}

.veil::before {
  background: url("assets/warm-wedding-florals.png") center / cover;
  background: image-set(
    url("assets/warm-wedding-florals.webp") type("image/webp"),
    url("assets/warm-wedding-florals.png") type("image/png")
  ) center / cover;
  filter: blur(1px) saturate(.82);
  opacity: .42;
  transform: scale(1.05);
}

.veil::after {
  background: linear-gradient(90deg, rgba(30, 13, 10, .35), transparent 45%, rgba(30, 13, 10, .5));
}

.veil__light {
  position: absolute;
  z-index: 1;
  width: 40vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(250, 210, 145, .18);
  filter: blur(80px);
  animation: breathe 5s ease-in-out infinite;
}

.veil__card {
  position: relative;
  z-index: 2;
  width: min(460px, 92vw);
  min-height: min(610px, 82svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(38px, 7vw, 70px);
  border: 1px solid rgba(255, 248, 238, .6);
  background:
    linear-gradient(rgba(255, 252, 245, .97), rgba(242, 225, 203, .96)),
    var(--paper);
  box-shadow: 0 35px 100px rgba(20, 7, 4, .45);
  text-align: center;
  isolation: isolate;
  animation: card-arrival 1.1s var(--ease-out) both;
  transition: opacity .65s var(--ease-out), transform .9s var(--ease-out);
}

.js .veil.is-opening .veil__card {
  animation: none;
  opacity: 0;
  transform: translateY(-24px) scale(.94) rotate(-1deg);
}

.js .veil.is-opening::before {
  opacity: .7;
  transform: scale(1.14);
  transition: opacity 1s, transform 1.2s var(--ease-out);
}

.veil__card::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(123, 63, 50, .22);
  content: "";
  pointer-events: none;
}

.veil__card::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 56px;
  height: 72px;
  background: radial-gradient(ellipse at center, rgba(184, 95, 69, .18), transparent 68%);
  content: "✦";
  color: var(--terracotta);
  font-size: 1.4rem;
  line-height: 72px;
  transform: rotate(-9deg);
}

.veil__eyebrow,
.kicker {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  line-height: 1.5;
  text-transform: uppercase;
}

.monogram {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 34px 0 22px;
  color: var(--wine);
  font: 500 clamp(4.5rem, 18vw, 7.8rem)/.7 var(--serif);
}

.monogram i {
  width: 1px;
  height: 78px;
  background: var(--gold);
  transform: rotate(20deg);
}

.veil__card > p {
  margin: 8px 0 32px;
  font: italic 400 clamp(1.25rem, 4vw, 1.6rem)/1.35 var(--serif);
}

.veil__card > small {
  position: absolute;
  bottom: 38px;
  color: rgba(62, 45, 41, .65);
  font: 500 .63rem/1 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.seal-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 9px;
  border: 0;
  border-radius: 99px;
  background: var(--terracotta-deep);
  box-shadow: 0 12px 28px rgba(87, 49, 47, .25);
  color: var(--ivory);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}

.seal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(87, 49, 47, .3);
}

.seal-button__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wine);
  font-size: .72rem;
}

.scroll-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--gold-pale));
  box-shadow: 0 0 12px var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.chapter-nav {
  position: fixed;
  z-index: 450;
  top: 50%;
  right: 26px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  transform: translateY(-50%);
}

.chapter-nav__line {
  position: absolute;
  z-index: -1;
  top: 5px;
  right: 5px;
  bottom: 5px;
  width: 1px;
  overflow: hidden;
  background: rgba(255, 248, 238, .3);
}

.chapter-nav__line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-pale);
  transform: scaleY(0);
  transform-origin: top;
}

.chapter-dot {
  position: relative;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 248, 238, .72);
  border-radius: 50%;
  background: rgba(62, 45, 41, .22);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s;
}

.chapter-dot span {
  position: absolute;
  top: 50%;
  right: 20px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(45, 27, 24, .86);
  color: var(--ivory);
  font-size: .58rem;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(8px, -50%);
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}

.chapter-dot:hover span,
.chapter-dot:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}

.chapter-dot.is-active {
  border-color: var(--gold-pale);
  background: var(--gold-pale);
  transform: scale(1.25);
}

.petals {
  position: fixed;
  z-index: 300;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -8vh;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * .55);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(255, 238, 215, .76), rgba(184, 95, 69, .35));
  box-shadow: 0 0 12px rgba(255, 215, 167, .18);
  opacity: 0;
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}

.celebration-petal {
  position: absolute;
  top: -12vh;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * .62);
  border-radius: 90% 0 90% 0;
  background: linear-gradient(135deg, var(--gold-pale), rgba(184, 95, 69, .72));
  box-shadow: 0 0 12px rgba(255, 221, 165, .28);
  opacity: 0;
  animation: celebration-fall var(--burst-duration) var(--ease-in-out) var(--burst-delay) forwards;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--brown);
  color: var(--ivory);
  isolation: isolate;
}

.hero__image,
.hero__shade,
.hero__halo {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  inset: -4%;
  background: url("assets/warm-wedding-florals.png") center / cover no-repeat;
  background: image-set(
    url("assets/warm-wedding-florals.webp") type("image/webp"),
    url("assets/warm-wedding-florals.png") type("image/png")
  ) center / cover no-repeat;
  transform: translate3d(0, calc(var(--hero-progress, 0) * 8%), 0) scale(calc(1.06 + var(--hero-progress, 0) * .08));
  filter: saturate(.88) contrast(1.04);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(37, 18, 13, .6) 0%, rgba(56, 28, 20, .13) 36%, rgba(37, 18, 13, .52) 100%),
    radial-gradient(circle at 50% 46%, rgba(42, 20, 13, .06), rgba(34, 17, 13, .56) 83%);
}

.hero__halo {
  z-index: -1;
  left: 50%;
  top: 38%;
  width: min(55vw, 700px);
  height: min(55vw, 700px);
  border-radius: 50%;
  background: rgba(255, 221, 165, .11);
  filter: blur(55px);
  transform: translate(-50%, -50%);
  animation: breathe 6s ease-in-out infinite;
}

.hero__topline {
  position: absolute;
  top: max(clamp(24px, 5vw, 52px), calc(env(safe-area-inset-top) + 16px));
  right: max(clamp(24px, 5vw, 68px), calc(env(safe-area-inset-right) + 18px));
  left: max(clamp(24px, 5vw, 68px), calc(env(safe-area-inset-left) + 18px));
  display: flex;
  justify-content: space-between;
  color: rgba(255, 248, 238, .78);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: var(--hero-topline-opacity, 1);
  transform: translateY(var(--hero-topline-y, 0px));
}

.hero__content {
  width: min(900px, calc(100% - 48px));
  padding: 92px 0 100px;
  text-align: center;
  opacity: var(--hero-content-opacity, 1);
  transform: translate3d(0, var(--hero-content-y, 0px), 0) scale(var(--hero-content-scale, 1));
}

.hero h1[tabindex="-1"]:focus {
  outline: none;
}

.hero__quote {
  margin: 0 auto clamp(22px, 4vh, 42px);
  font: italic 400 clamp(1rem, 2.2vw, 1.35rem)/1.6 var(--serif);
  letter-spacing: .02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

.hero__quote span {
  display: block;
}

.ornament {
  display: flex;
  width: min(230px, 55vw);
  align-items: center;
  gap: 14px;
  margin: 0 auto clamp(25px, 4vh, 42px);
  color: var(--gold-pale);
  font-size: .55rem;
}

.ornament i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.ornament i:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.hero h1 {
  margin: 0;
  font: 500 clamp(4rem, 11vw, 9.5rem)/.72 var(--serif);
  letter-spacing: -.055em;
  text-shadow: 0 10px 50px rgba(28, 12, 8, .46);
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  position: relative;
  z-index: 2;
  margin: .18em 0 .12em;
  color: var(--gold-pale);
  font-size: .38em;
  font-weight: 400;
}

.hero__date {
  margin: clamp(30px, 6vh, 55px) 0 0;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
  text-transform: uppercase;
}

.js:not(.invitation-open) .hero__quote span,
.js:not(.invitation-open) .hero h1 span,
.js:not(.invitation-open) .hero h1 em,
.js:not(.invitation-open) .ornament,
.js:not(.invitation-open) .hero__date {
  opacity: 0;
  transform: translateY(25px);
}

.invitation-open .hero__quote span,
.invitation-open .hero h1 span,
.invitation-open .hero h1 em,
.invitation-open .ornament,
.invitation-open .hero__date {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.invitation-open .hero__quote span:first-child { transition-delay: .25s; }
.invitation-open .hero__quote span:last-child { transition-delay: .38s; }
.invitation-open .ornament { transition-delay: .55s; }
.invitation-open .hero h1 span:first-child { transition-delay: .68s; }
.invitation-open .hero h1 em { transition-delay: .78s; }
.invitation-open .hero h1 span:last-child { transition-delay: .88s; }
.invitation-open .hero__date { transition-delay: 1.05s; }

.scroll-cue {
  position: absolute;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255, 248, 238, .72);
  font-size: .56rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: var(--hero-cue-opacity, 1);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
}

.scroll-cue i::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: var(--ivory);
  content: "";
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

.story {
  position: relative;
  height: calc(var(--scene-total) * 100vh);
  height: calc(var(--scene-total) * 100svh);
  min-height: 3400px;
  background: var(--paper);
}

.story__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.story__stage::after {
  position: absolute;
  z-index: 3;
  inset: -12% -18%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 244, 220, .58) 49%, rgba(201, 155, 93, .14) 52%, transparent 63%);
  content: "";
  opacity: var(--transition-energy, 0);
  pointer-events: none;
  transform: translate3d(var(--transition-sweep-x, -65%), 0, 0) rotate(-3deg);
}

.story__background,
.story__wash,
.story__sun,
.story__frame,
.route {
  position: absolute;
  pointer-events: none;
}

.story__background {
  z-index: -5;
  inset: -10%;
  opacity: .16;
  transform: translate3d(calc((var(--story-progress, .5) - .5) * -3%), calc((var(--story-progress, .5) - .5) * -6%), 0) scale(1.12);
  filter: sepia(.22) saturate(.65);
}

.story__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__background picture {
  display: block;
  width: 100%;
  height: 100%;
}

.story__wash {
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 248, 238, .92), rgba(240, 217, 190, .72)),
    radial-gradient(circle at 80% 20%, rgba(184, 95, 69, .18), transparent 38%);
}

.story__sun {
  z-index: -3;
  top: 12%;
  right: -6%;
  width: min(44vw, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 95, 69, .18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 157, 103, .26), rgba(218, 137, 87, .07) 55%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(255, 248, 238, .38);
  transform: translate3d(calc(var(--story-progress, 0) * 9vw), calc(var(--story-progress, 0) * 12vh), 0) scale(calc(.9 + var(--story-progress, 0) * .18));
}

.story__frame {
  z-index: 10;
  inset: clamp(14px, 2vw, 28px);
  border: 1px solid rgba(123, 63, 50, .18);
}

.story__frame::before,
.story__frame::after {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--terracotta);
  content: "";
  opacity: .5;
}

.story__frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.story__frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.route {
  z-index: -1;
  top: 0;
  right: 4vw;
  width: min(56vw, 720px);
  height: 100%;
  opacity: .34;
}

.route path {
  stroke: var(--terracotta);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--route-progress, 0));
  pathLength: 1;
}

.route circle {
  fill: var(--terracotta);
  opacity: calc(.25 + var(--route-progress, 0) * .75);
}

.route .route__marker {
  fill: var(--ivory);
  stroke: var(--terracotta-deep);
  stroke-width: 3;
  opacity: 1;
  filter: drop-shadow(0 4px 8px rgba(87, 49, 47, .3));
}

.scene {
  --scene-opacity: 1;
  --scene-y: 0px;
  --scene-scale: 1;
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(clamp(52px, 7vw, 92px), calc(env(safe-area-inset-top) + 36px))
    max(clamp(52px, 7vw, 92px), calc(env(safe-area-inset-right) + 28px))
    max(clamp(52px, 7vw, 92px), calc(env(safe-area-inset-bottom) + 44px))
    max(clamp(52px, 7vw, 92px), calc(env(safe-area-inset-left) + 28px));
  opacity: var(--scene-opacity);
  pointer-events: none;
  transform: translate3d(0, var(--scene-y), 0) scale(var(--scene-scale));
  will-change: auto;
}

.scene.is-active {
  pointer-events: auto;
}

.scene__content {
  position: relative;
  width: min(1120px, 100%);
  transform: translate3d(0, var(--content-y, 0px), 0) scale(var(--content-scale, 1));
  transform-origin: center;
}

.scene--message h2 {
  transform: translate3d(var(--headline-x, 0px), 0, 0);
}

.scene--message .fine-line {
  transform: scaleY(var(--line-scale, 1));
  transform-origin: top;
}

.scene--message .blessing-mark {
  transform: rotate(var(--mark-rotate, 0deg)) scale(var(--mark-scale, 1));
}

.scene__content--narrow {
  width: min(700px, 88%);
  text-align: center;
}

.scene__number {
  position: absolute;
  top: -20px;
  left: -55px;
  color: rgba(123, 63, 50, .32);
  font: 600 .62rem/1 var(--sans);
  letter-spacing: .2em;
}

.scene h2 {
  margin: clamp(16px, 3vh, 28px) 0;
  color: var(--wine);
  font: 500 clamp(4rem, 9vw, 7.8rem)/.78 var(--serif);
  letter-spacing: -.055em;
}

.scene h2 em {
  color: var(--terracotta);
  font-weight: 400;
}

.fine-line {
  display: block;
  width: 1px;
  height: 70px;
  margin: 28px auto;
  background: linear-gradient(var(--terracotta), transparent);
}

.scene__lead {
  max-width: 590px;
  margin: 0 auto;
  font: 400 clamp(1.16rem, 2.1vw, 1.52rem)/1.65 var(--serif);
}

.blessing-mark {
  width: 34px;
  height: 34px;
  margin: 30px auto 0;
  border: 1px solid rgba(123, 63, 50, .34);
  border-radius: 50%;
  color: var(--terracotta);
  font-size: .65rem;
  line-height: 32px;
}

.scene__content--date {
  text-align: center;
}

.date-lockup {
  position: relative;
  width: min(720px, 86vw);
  height: clamp(270px, 44vh, 410px);
  margin: 0 auto 24px;
}

.date-lockup__day {
  position: absolute;
  inset: 50% auto auto 50%;
  color: var(--terracotta-deep);
  font: 500 clamp(13rem, 30vw, 26rem)/.58 var(--serif);
  letter-spacing: -.12em;
  transform: translate(-54%, -50%) translate3d(0, var(--date-day-y, 0px), 0) scale(var(--date-day-scale, 1)) rotate(var(--date-day-rotate, 0deg));
}

.date-lockup__month,
.date-lockup__meta,
.date-lockup__time {
  position: absolute;
  z-index: 1;
  text-transform: uppercase;
}

.date-lockup__month {
  top: 18%;
  right: 2%;
  padding: 4px 12px;
  background: var(--paper);
  color: var(--wine);
  font: italic 500 clamp(2.8rem, 7vw, 5.2rem)/1 var(--serif);
  text-transform: none;
  transform: translate3d(var(--date-month-x, 0px), 0, 0);
}

.date-lockup__meta {
  bottom: 20%;
  left: 6%;
  color: var(--terracotta-deep);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .28em;
}

.date-lockup__time {
  right: 7%;
  bottom: 12%;
  color: var(--gold);
  font: 500 clamp(3.5rem, 8vw, 6rem)/1 var(--serif);
  transform: translate3d(var(--date-time-x, 0px), 0, 0);
}

.date-lockup__time small {
  font: 600 .58rem/1 var(--sans);
  letter-spacing: .12em;
}

.countdown {
  display: flex;
  width: min(460px, 92%);
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
  margin: 0 auto 24px;
  transform: translate3d(0, var(--countdown-y, 0px), 0);
}

.countdown div {
  display: flex;
  min-width: 70px;
  flex-direction: column;
}

.countdown strong {
  color: var(--wine);
  font: 500 clamp(1.8rem, 4vw, 2.6rem)/1 var(--serif);
}

.countdown span {
  margin-top: 6px;
  color: rgba(62, 45, 41, .66);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.countdown i {
  width: 1px;
  height: 31px;
  background: rgba(123, 63, 50, .24);
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 99px;
  cursor: pointer;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s;
}

.button:hover {
  transform: translateY(-3px);
}

.button svg,
.icon-button svg,
.floating-save svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.button--dark {
  background: var(--wine);
  box-shadow: 0 12px 30px rgba(87, 49, 47, .2);
  color: var(--ivory);
}

.button--dark:hover {
  box-shadow: 0 18px 35px rgba(87, 49, 47, .3);
}

.button--light {
  background: var(--ivory);
  box-shadow: 0 12px 35px rgba(29, 14, 10, .15);
  color: var(--wine);
}

.button--ghost {
  border-color: rgba(255, 248, 238, .45);
  background: transparent;
  color: var(--ivory);
}

.scene__content--location {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
}

.scene--location .location-copy {
  transform: translate3d(var(--location-copy-x, 0px), 0, 0);
}

.scene__content--reverse .location-copy {
  order: 2;
}

.location-copy h2 {
  margin-bottom: 22px;
}

.location-copy > p:not(.kicker) {
  margin: 19px 0 24px;
  font: 400 clamp(1.05rem, 1.8vw, 1.3rem)/1.55 var(--serif);
}

.location-time {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  color: var(--terracotta);
}

.location-time span {
  font: 500 clamp(2.6rem, 5vw, 4.2rem)/.9 var(--serif);
}

.location-time small {
  padding-bottom: 5px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button-row--center {
  justify-content: center;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 248, 238, .4);
  border-radius: 50%;
  background: rgba(255, 248, 238, .14);
  color: var(--ivory);
  cursor: pointer;
  transition: transform .3s, background .3s;
}

.icon-button:hover {
  background: rgba(255, 248, 238, .26);
  transform: translateY(-3px);
}

.icon-button--dark {
  border-color: rgba(87, 49, 47, .22);
  background: rgba(87, 49, 47, .08);
  color: var(--wine);
}

.map-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  aspect-ratio: .82;
  padding: 13px;
  border-radius: 48% 48% 8px 8px;
  background: var(--terracotta-deep);
  box-shadow: 0 35px 80px rgba(74, 33, 25, .23);
  transform: perspective(900px) translate3d(0, var(--map-y, 0px), 0) rotate(var(--map-rotate, 0deg)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--map-scale, 1));
  transform-style: preserve-3d;
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .map-card {
    transition: transform .25s ease-out;
  }
}

.map-card::before {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 1px;
  height: 34px;
  background: var(--gold-pale);
  content: "";
  transform: translateX(-50%);
}

.map-card__paper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 48% 48% 3px 3px;
  background:
    radial-gradient(circle at 22% 18%, rgba(201, 155, 93, .2), transparent 25%),
    #f7eddf;
}

.map-card svg {
  width: 100%;
  height: 100%;
}

.map-road {
  stroke: rgba(123, 63, 50, .34);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--road-offset, 0);
}

.map-road--wide {
  stroke: rgba(184, 95, 69, .55);
  stroke-width: 7;
}

.map-road--thin {
  stroke-width: 1;
  stroke-dasharray: .035 .025;
  stroke-dashoffset: 0;
}

.map-pin {
  position: absolute;
  top: 49%;
  left: 53%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%) translateZ(22px);
}

.map-pin i {
  position: relative;
  width: 24px;
  height: 24px;
  border: 6px solid var(--terracotta-deep);
  border-radius: 50% 50% 50% 0;
  background: var(--gold-pale);
  box-shadow: 0 5px 15px rgba(74, 33, 25, .3);
  transform: rotate(-45deg);
}

.map-pin i::after {
  position: absolute;
  inset: -15px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  content: "";
  animation: pin-pulse 2s ease-out infinite;
}

.scene:not(.is-active) .map-pin i::after {
  animation-play-state: paused;
}

.map-pin span {
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--wine);
  color: var(--ivory);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.map-card__compass {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(87, 49, 47, .68);
  font: 600 .55rem/1.15 var(--sans);
  text-align: center;
}

.map-card--dark {
  background: var(--wine);
}

.map-card--dark .map-card__paper {
  background:
    radial-gradient(circle at 74% 72%, rgba(201, 155, 93, .16), transparent 30%),
    #e9d1b7;
}

.scene--finale {
  color: var(--ivory);
}

.scene--finale::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(54, 26, 22, .93), rgba(108, 49, 37, .86)),
    url("assets/warm-wedding-florals.png") center / cover;
  background:
    linear-gradient(135deg, rgba(54, 26, 22, .93), rgba(108, 49, 37, .86)),
    image-set(
      url("assets/warm-wedding-florals.webp") type("image/webp"),
      url("assets/warm-wedding-florals.png") type("image/png")
    ) center / cover;
  content: "";
  transform: scale(var(--finale-bg-scale, 1));
}

.scene__content--finale {
  text-align: center;
}

.scene--finale .kicker,
.scene--finale h2 em {
  color: var(--gold-pale);
}

.scene--finale h2 {
  color: var(--ivory);
  font-size: clamp(3.5rem, 8vw, 7rem);
  text-shadow: 0 12px 42px rgba(22, 9, 7, .32);
}

.finale-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 25px 0;
  color: var(--ivory);
  font: 500 clamp(4.5rem, 10vw, 7rem)/1 var(--serif);
}

.finale-monogram span:first-child {
  transform: translate3d(calc(-1 * var(--finale-letter-gap, 0px)), 0, 0);
}

.finale-monogram span:last-child {
  transform: translate3d(var(--finale-letter-gap, 0px), 0, 0);
}

.finale-monogram i {
  color: var(--gold-pale);
  font: normal .65rem/1 var(--sans);
}

.scene__content--finale > p:not(.kicker) {
  margin: 24px 0 12px;
  font: italic 400 clamp(1.2rem, 2.4vw, 1.65rem)/1 var(--serif);
}

.finale-date {
  display: block;
  margin: 0 0 32px;
  color: rgba(255, 248, 238, .72);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .25em;
}

.scene__content--finale .button-row {
  transform: translate3d(0, var(--finale-buttons-y, 0px), 0);
}

.scene-spark,
.finale-spark {
  position: absolute;
  z-index: 8;
  width: var(--spark-size, 8px);
  height: var(--spark-size, 8px);
  pointer-events: none;
}

.scene-spark {
  top: var(--spark-top);
  left: var(--spark-left);
  color: var(--terracotta);
  opacity: 0;
  animation: scene-sparkle 1.05s var(--ease-out) var(--spark-delay, 0s) forwards;
}

.scene--finale .scene-spark {
  color: var(--gold-pale);
}

.scene-spark::before,
.scene-spark::after,
.finale-spark::before,
.finale-spark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 99px;
  box-shadow: 0 0 12px currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.scene-spark::before,
.finale-spark::before {
  width: 100%;
  height: 1px;
}

.scene-spark::after,
.finale-spark::after {
  width: 1px;
  height: 100%;
}

.finale-spark {
  top: 50%;
  left: 50%;
  color: var(--gold-pale);
  opacity: 0;
  animation: finale-spark-burst var(--spark-duration, 1.2s) var(--ease-out) var(--spark-delay, 0s) forwards;
}

.scene.is-arriving .map-pin {
  animation: pin-arrival .85s var(--ease-out) both;
}

.countdown.is-counting strong {
  animation: count-pop .7s var(--ease-out) both;
}

.countdown.is-counting div:nth-of-type(2) strong { animation-delay: .08s; }
.countdown.is-counting div:nth-of-type(3) strong { animation-delay: .16s; }

.scene--finale.is-active .finale-monogram i {
  animation: monogram-twinkle 2.2s ease-in-out infinite;
}

.footer {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px;
  background: #251714;
  color: var(--ivory);
  text-align: center;
}

.footer > span {
  color: var(--gold);
  font-size: .65rem;
}

.footer p {
  margin: 20px 0 10px;
  font: italic 400 clamp(1.55rem, 4vw, 2.2rem)/1 var(--serif);
}

.footer small {
  color: rgba(255, 248, 238, .52);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.floating-save {
  position: fixed;
  z-index: 430;
  right: max(24px, calc(env(safe-area-inset-right) + 14px));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 248, 238, .3);
  border-radius: 99px;
  background: rgba(53, 36, 33, .76);
  box-shadow: 0 14px 35px rgba(30, 14, 10, .2);
  color: var(--ivory);
  cursor: pointer;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s, background .3s;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.floating-save.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.date-active .floating-save.is-visible,
.finale-active .floating-save.is-visible {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.floating-save:hover {
  background: var(--terracotta-deep);
}

.floating-save:active {
  transform: translateY(0) scale(.95);
}

.fullscreen-toggle {
  position: fixed;
  z-index: 430;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  left: max(24px, calc(env(safe-area-inset-left) + 14px));
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 248, 238, .3);
  border-radius: 99px;
  background: rgba(53, 36, 33, .76);
  box-shadow: 0 14px 35px rgba(30, 14, 10, .2);
  color: var(--ivory);
  cursor: pointer;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s, background .3s;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.fullscreen-toggle[hidden] {
  display: none !important;
}

.invitation-open .fullscreen-toggle:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fullscreen-toggle:hover {
  background: var(--terracotta-deep);
}

.fullscreen-toggle:active {
  transform: translateY(0) scale(.95);
}

.fullscreen-toggle img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(96%) sepia(9%) saturate(720%) hue-rotate(327deg) brightness(105%);
}

.fullscreen-toggle__exit {
  display: none;
}

.fullscreen-toggle[aria-pressed="true"] .fullscreen-toggle__enter {
  display: none;
}

.fullscreen-toggle[aria-pressed="true"] .fullscreen-toggle__exit {
  display: block;
}

.toast {
  position: fixed;
  z-index: 9500;
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 248, 238, .2);
  border-radius: 99px;
  background: rgba(43, 26, 23, .92);
  box-shadow: 0 16px 40px rgba(24, 9, 6, .28);
  color: var(--ivory);
  font-size: .7rem;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 18px);
  transition: opacity .35s, transform .35s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes card-arrival {
  from { opacity: 0; transform: translateY(25px) scale(.96) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}

@keyframes breathe {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.veil__light { animation-name: veil-breathe; }

@keyframes veil-breathe {
  0%, 100% { opacity: .65; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scroll-pulse {
  0% { transform: translateY(-100%); }
  50%, 100% { transform: translateY(230%); }
}

@keyframes pin-pulse {
  0% { opacity: .7; transform: scale(.3); }
  80%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes petal-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg); }
  8% { opacity: .55; }
  80% { opacity: .45; }
  100% { opacity: 0; transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin)); }
}

@keyframes celebration-fall {
  0% { opacity: 0; transform: translate3d(0, -14vh, 0) rotate(0deg) scale(.7); }
  10% { opacity: .9; }
  76% { opacity: .75; }
  100% { opacity: 0; transform: translate3d(var(--burst-drift), 112vh, 0) rotate(var(--burst-spin)) scale(1.08); }
}

@keyframes scene-sparkle {
  0% { opacity: 0; transform: rotate(0deg) scale(.2); }
  24% { opacity: .95; transform: rotate(45deg) scale(1); }
  100% { opacity: 0; transform: rotate(110deg) scale(.1); }
}

@keyframes finale-spark-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.2); }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) rotate(var(--spark-rotate)) scale(.15);
  }
}

@keyframes pin-arrival {
  0% { opacity: 0; transform: translate(-50%, -32%) translateZ(22px) scale(.55); }
  58% { opacity: 1; transform: translate(-50%, -56%) translateZ(22px) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) translateZ(22px) scale(1); }
}

@keyframes count-pop {
  0% { opacity: .2; transform: translateY(12px) scale(.76); }
  64% { opacity: 1; transform: translateY(-2px) scale(1.08); }
  100% { opacity: 1; transform: none; }
}

@keyframes monogram-twinkle {
  0%, 100% { opacity: .62; transform: rotate(0deg) scale(.86); text-shadow: 0 0 0 rgba(236, 212, 170, 0); }
  50% { opacity: 1; transform: rotate(90deg) scale(1.22); text-shadow: 0 0 18px rgba(236, 212, 170, .82); }
}

.page-hidden .petal,
.page-hidden .celebration-petal,
.page-hidden .scene-spark,
.page-hidden .finale-spark,
.page-hidden .hero__halo,
.page-hidden .scroll-cue i::after,
.page-hidden .map-pin i::after {
  animation-play-state: paused;
}

@media (max-width: 900px) {
  .chapter-nav {
    right: 15px;
  }

  .scene__content--location {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr);
    gap: 32px;
  }

  .scene__number {
    left: -24px;
  }
}

@media (max-width: 720px) {
  .chapter-nav {
    display: none;
  }

  .hero__topline {
    font-size: .62rem;
    letter-spacing: .13em;
  }

  .hero__content {
    width: calc(100% - 34px);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.8rem);
    line-height: .76;
  }

  .hero__quote {
    max-width: 310px;
    font-size: 1.02rem;
  }

  .hero__quote span {
    display: inline;
  }

  .hero__date {
    font-size: .56rem;
    letter-spacing: .14em;
  }

  .story {
    height: 560vh;
    height: 560svh;
    min-height: 3100px;
  }

  .scene {
    padding:
      max(60px, calc(env(safe-area-inset-top) + 42px))
      max(30px, calc(env(safe-area-inset-right) + 22px))
      max(74px, calc(env(safe-area-inset-bottom) + 54px))
      max(30px, calc(env(safe-area-inset-left) + 22px));
  }

  .story__stage::after {
    inset: -14% -35%;
    background: linear-gradient(104deg, transparent 35%, rgba(255, 248, 232, .92) 48%, rgba(201, 155, 93, .3) 52%, transparent 66%);
  }

  .scene__number {
    top: -23px;
    left: 0;
  }

  .scene h2 {
    font-size: clamp(3.65rem, 16vw, 5.4rem);
  }

  .scene__content--location,
  .scene__content--reverse {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .scene__content--reverse .location-copy {
    order: 0;
  }

  .location-copy h2 {
    margin: 10px 0 13px;
    font-size: clamp(3.25rem, 15vw, 4.6rem);
  }

  .location-copy > p:not(.kicker) {
    margin: 12px 0 15px;
    font-size: 1rem;
    line-height: 1.38;
  }

  .location-time span {
    font-size: 2.6rem;
  }

  .map-card {
    position: absolute;
    z-index: -1;
    right: -80px;
    bottom: -145px;
    width: 260px;
    opacity: .22;
    transform: perspective(900px) translate3d(0, var(--map-y, 0px), 0) rotate(calc(-7deg + var(--map-rotate, 0deg))) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--map-scale, 1));
  }

  .scene__content--reverse .map-card {
    right: -70px;
    bottom: -135px;
    transform: perspective(900px) translate3d(0, var(--map-y, 0px), 0) rotate(calc(7deg + var(--map-rotate, 0deg))) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--map-scale, 1));
  }

  .date-lockup {
    width: 100%;
    height: 250px;
  }

  .date-lockup__day {
    inset: 47% auto auto 48%;
    font-size: clamp(10.8rem, 53vw, 15.5rem);
  }

  .date-lockup__month {
    top: 17%;
    right: 0;
    font-size: clamp(2.35rem, 12vw, 2.85rem);
  }

  .date-lockup__meta {
    bottom: 16%;
    left: 2%;
  }

  .date-lockup__time {
    right: 0;
    bottom: 0;
    padding: 3px 10px 4px 14px;
    border: 1px solid rgba(201, 155, 93, .26);
    border-radius: 99px;
    background: rgba(255, 248, 238, .92);
    box-shadow: 0 9px 28px rgba(87, 49, 47, .08);
    font-size: 2.85rem;
  }

  .scene--finale h2 {
    font-size: clamp(3rem, 13vw, 4.2rem);
  }

  .finale-monogram {
    margin: 15px 0;
  }

  .floating-save {
    right: max(14px, calc(env(safe-area-inset-right) + 10px));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
  }

  .floating-save span {
    display: none;
  }

  .floating-save {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }

  .fullscreen-toggle {
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    left: max(14px, calc(env(safe-area-inset-left) + 10px));
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .fullscreen-toggle span {
    display: none;
  }
}

@media (max-width: 360px) and (max-height: 620px) {
  .scene {
    padding:
      max(42px, calc(env(safe-area-inset-top) + 30px))
      max(24px, calc(env(safe-area-inset-right) + 18px))
      max(56px, calc(env(safe-area-inset-bottom) + 44px))
      max(24px, calc(env(safe-area-inset-left) + 18px));
  }

  .scene--message h2 {
    margin: 10px 0;
    font-size: 3.25rem;
  }

  .scene--message .fine-line {
    height: 42px;
    margin: 15px auto;
  }

  .scene--message .scene__lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .scene--message .blessing-mark {
    margin-top: 18px;
  }

  .scene__content--date .kicker {
    margin-bottom: 2px;
  }

  .date-lockup {
    height: 218px;
    margin-bottom: 18px;
  }

  .date-lockup__day {
    font-size: 10.1rem;
  }

  .date-lockup__month {
    top: 16%;
    font-size: 2.15rem;
  }

  .date-lockup__meta {
    bottom: 15%;
    font-size: .6rem;
  }

  .date-lockup__time {
    bottom: -8px;
    font-size: 2.45rem;
  }

  .countdown {
    gap: 10px;
    margin-bottom: 15px;
  }

  .countdown div {
    min-width: 58px;
  }

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

@media (max-width: 430px) and (max-height: 520px) and (orientation: portrait) {
  .js .veil {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .veil__card {
    width: min(390px, 96vw);
    min-height: 0;
    height: calc(100svh - 20px);
    justify-content: center;
    padding: 18px 30px;
  }

  .veil__eyebrow {
    font-size: .6rem;
  }

  .monogram {
    margin: 13px 0 8px;
    font-size: 3.75rem;
  }

  .monogram i {
    height: 46px;
  }

  .veil__card > p {
    margin: 3px 0 13px;
    font-size: 1.04rem;
  }

  .seal-button {
    min-height: 48px;
  }

  .veil__card > small {
    position: static;
    margin-top: 15px;
    font-size: .56rem;
    line-height: 1.25;
  }

  .veil__card::after {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .scene {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .scene h2 {
    font-size: clamp(3.4rem, 8vh, 5.2rem);
  }

  .date-lockup {
    height: 250px;
  }

  .map-card {
    max-height: 70vh;
  }
}

@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
  .js .veil {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .veil__card {
    width: min(620px, 94vw);
    height: calc(100svh - 20px);
    min-height: 0;
    padding: 15px 60px 30px;
  }

  .monogram {
    margin: 14px 0 8px;
    font-size: 4rem;
  }

  .monogram i {
    height: 48px;
  }

  .veil__card > p {
    margin: 0 0 12px;
    font-size: 1.12rem;
  }

  .veil__card > small {
    bottom: 20px;
    font-size: .56rem;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .hero__topline {
    top: max(10px, calc(env(safe-area-inset-top) + 7px));
    right: max(24px, calc(env(safe-area-inset-right) + 18px));
    left: max(24px, calc(env(safe-area-inset-left) + 18px));
    font-size: .56rem;
  }

  .hero__content {
    width: min(760px, calc(100% - 72px));
    padding: 42px 0 30px;
  }

  .hero__quote {
    max-width: 610px;
    margin-bottom: 8px;
    font-size: clamp(.82rem, 3.3vh, 1rem);
    line-height: 1.35;
  }

  .hero__quote span {
    display: inline;
  }

  .ornament {
    width: min(170px, 32vw);
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15.5vh, 4rem);
    line-height: .7;
  }

  .hero h1 em {
    margin: .12em 0 .08em;
  }

  .hero__date {
    margin-top: 11px;
    font-size: .56rem;
    letter-spacing: .16em;
  }

  .scroll-cue {
    bottom: max(7px, env(safe-area-inset-bottom));
    gap: 3px;
  }

  .scroll-cue span {
    display: none;
  }

  .scroll-cue i {
    height: 18px;
  }

  .floating-save {
    width: 48px;
    justify-content: center;
    padding: 0;
  }

  .floating-save span {
    display: none;
  }

  .fullscreen-toggle {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }

  .fullscreen-toggle span {
    display: none;
  }

  .story {
    height: auto;
    min-height: 0;
  }

  .story__stage {
    position: relative;
    height: auto;
    overflow: hidden;
  }

  .story__stage::after {
    display: none;
  }

  .route {
    display: none;
  }

  .scene {
    position: relative;
    min-height: max(420px, 100svh);
    padding:
      max(34px, calc(env(safe-area-inset-top) + 26px))
      max(54px, calc(env(safe-area-inset-right) + 42px))
      max(38px, calc(env(safe-area-inset-bottom) + 30px))
      max(54px, calc(env(safe-area-inset-left) + 42px));
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .scene__content,
  .scene--message h2,
  .scene--message .fine-line,
  .scene--message .blessing-mark,
  .date-lockup__day,
  .date-lockup__month,
  .date-lockup__time,
  .countdown,
  .scene--location .location-copy,
  .scene--finale::before,
  .finale-monogram span,
  .scene__content--finale .button-row {
    transform: none !important;
  }

  .map-road {
    stroke-dashoffset: 0 !important;
  }

  .scene h2 {
    margin: 10px 0;
    font-size: clamp(3rem, 13vh, 4.2rem);
  }

  .scene--message .fine-line {
    height: 34px;
    margin: 12px auto;
  }

  .scene--message .scene__lead {
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .scene--message .blessing-mark {
    margin-top: 12px;
  }

  .scene__content--date .date-lockup {
    height: 190px;
    margin-bottom: 8px;
  }

  .date-lockup__day {
    font-size: clamp(9rem, 35vh, 12rem);
  }

  .date-lockup__month {
    top: 15%;
    right: 12%;
    font-size: 2.35rem;
  }

  .date-lockup__meta {
    bottom: 13%;
    left: 16%;
  }

  .date-lockup__time {
    right: 15%;
    bottom: 0;
    font-size: 2.8rem;
  }

  .countdown {
    margin-bottom: 12px;
  }

  .scene__content--location {
    grid-template-columns: minmax(0, 1fr) minmax(210px, .48fr);
    gap: 32px;
  }

  .location-copy h2 {
    margin: 7px 0 10px;
  }

  .location-copy > p:not(.kicker) {
    margin: 9px 0 12px;
    font-size: .96rem;
    line-height: 1.35;
  }

  .location-time span {
    font-size: 2.35rem;
  }

  .map-card {
    max-height: 310px;
    justify-self: center;
  }

  .scene--location {
    min-height: max(420px, 100svh);
  }

  .scene--finale {
    min-height: max(420px, 100svh);
  }

  .scene--finale h2 {
    margin: 8px 0;
    font-size: clamp(2.65rem, 11.5vh, 3.6rem);
  }

  .finale-monogram {
    margin: 6px 0;
    font-size: 3.7rem;
  }

  .scene__content--finale > p:not(.kicker) {
    margin: 9px 0 7px;
  }

  .finale-date {
    margin-bottom: 15px;
  }
}

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

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

  .petals,
  .route,
  .story__stage::after,
  .scene-spark,
  .finale-spark {
    display: none;
  }

  .hero__image,
  .hero__content,
  .hero__topline,
  .story__background,
  .story__sun {
    transform: none !important;
  }

  .hero__content,
  .hero__topline,
  .scroll-cue {
    opacity: 1 !important;
  }

  .story {
    height: auto;
    min-height: 0;
  }

  .story__stage {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .scene {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: none !important;
  }

  .scene__content,
  .scene--message h2,
  .scene--message .fine-line,
  .scene--message .blessing-mark,
  .date-lockup__day,
  .date-lockup__month,
  .date-lockup__time,
  .countdown,
  .scene--location .location-copy,
  .map-card,
  .scene--finale::before,
  .finale-monogram span,
  .scene__content--finale .button-row {
    transform: none !important;
  }

  .map-road {
    stroke-dashoffset: 0 !important;
  }

}

@media print {
  .veil,
  .chapter-nav,
  .scroll-progress,
  .petals,
  .scroll-cue,
  .floating-save,
  .fullscreen-toggle,
  .toast {
    display: none !important;
  }

  .hero,
  .scene {
    min-height: 100vh;
    break-after: page;
  }

  .story {
    height: auto;
    min-height: 0;
  }

  .story__stage {
    position: static;
    height: auto;
  }

  .scene {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
