@font-face {
  font-family: "Cormorant Garamond";
  src: url(/assets/fonts/cormorant-garamond-site.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url(/assets/fonts/pt-serif-regular-site.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url(/assets/fonts/pt-serif-bold-site.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --wine: #2a1018;
  --leather: url(/assets/art/figma-crocodile-leather.webp);
  --ink: #37151b;
  --cream: #fff0d7;
  --gold: #e6bc7c;
  --line: #b88758;
  --serif: "PT Serif", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: system-ui,sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--serif);
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid #ac7140;
  outline-offset: 4px;
}
h1,h2,p {
  margin: 0;
}
.button {
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  border: 1px solid #a7774c;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(16px,1.4vw,21px);
  text-align: center;
}
h2 {
  font-family: var(--display);
  font-size: clamp(29px,4vw,61px);
  font-weight: 500;
  line-height: 1.02;
}
.registration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(35px,7vw,125px);
  align-items: start;
  padding: clamp(30px,6vw,100px);
  margin: 0 max(6vw,20px) 110px;
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(136deg,#fff2dc,#efd0a9);
  scroll-margin-top: 20px;
}
.registration-copy h2 {
  margin: 14px 0 17px;
}
.registration-copy p {
  max-width: 32ch;
  font: 16px/1.6 var(--sans);
}
.registration-copy .date {
  font-family: var(--serif);
  font-size: 23px;
  color: #72263b;
}
#lead-form {
  color-scheme: light;
  display: grid;
  gap: 13px;
  font-family: var(--sans);
}
#lead-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
#lead-form input:not([type=checkbox]) {
  width: 100%;
  height: 47px;
  padding: 10px 13px;
  border: 1px solid #a88769;
  border-radius: 8px;
  background: #fff8e9;
  color: #2d1018;
  font-size: 16px;
}
#lead-form .consent {
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #b88a5866;
  border-radius: 10px;
  background: #fff0d709;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}
.consent input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid #d7ad76;
  border-radius: 6px;
  background: #fff4e2;
  cursor: inherit;
}
.consent input:checked {
  background: linear-gradient(#fff0c5, #d9a460);
}
.consent input:checked::after {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: -2px;
  border: solid #4d1924;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.consent input:focus-visible {
  outline: 2px solid #ffdf9e;
  outline-offset: 3px;
}
@media (hover: hover) {
  #lead-form .consent:hover { border-color: #d7ad76; }
}
@media (forced-colors: active) {
  .consent input { appearance: auto; }
  .consent input:checked::after { content: none; }
}
.submit {
  font-family: var(--serif);
  background: #5d1729;
  color: #fff0d7;
}
.submit:disabled {
  opacity: .7;
  cursor: wait;
}
#form-status {
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.4;
}
.invitation-dock {
  position: fixed;
  z-index: 3;
  left: max(16px,env(safe-area-inset-left));
  bottom: max(16px,env(safe-area-inset-bottom));
}
.invitation {
  display: grid;
  justify-items: center;
  width: clamp(90px, 10vw, 148px);
  gap: 7px;
  padding: 5px 5px 9px;
  border: 1px solid #cb9e6a;
  border-radius: 16px;
  background: linear-gradient(145deg, #642b37, #32111c 65%);
  text-align: center;
  color: #fff0d7;
  box-shadow: 0 5px 18px #210d1480;
  font: 700 clamp(11px, 1vw, 15px)/1.14 var(--serif);
}
.invitation-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 21dvh;
  border-radius: 11px;
  background: linear-gradient(#2a101835,#2a101880),url(/assets/invitation.webp) center 43%/cover;
}
dialog {
  width: min(94vw,440px);
  max-height: 95dvh;
  padding: 14px;
  color: var(--cream);
  background: #2b1119;
  border: 1px solid #b88758;
  border-radius: 16px;
  overflow: auto;
}
dialog::backdrop {
  background: #15090de0;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
dialog h2 {
  font-size: 22px;
}
#invitation-dialog {
  width: min(94vw, 510px);
  margin: auto;
  padding: clamp(10px, 2.5vw, 20px);
  border: 1px solid #d6ab73;
  border-radius: 21px;
  background: linear-gradient(155deg, #582635, #240d16 55%);
  box-shadow: 0 22px 70px #10060bc9, inset 0 0 0 3px #efc17b2e;
}
#invitation-dialog header { margin-bottom: 12px; }
#invitation-dialog header img { width: 33px; height: auto; }
#invitation-dialog h2 {
  flex: 1;
  margin: 0;
  color: #fce7bd;
  font: 700 clamp(21px, 5.8vw, 32px)/1.05 var(--display);
}
#invitation-dialog header button {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  border: 1px solid #b88758;
  border-radius: 50%;
  background: #2d101a;
  color: #ffe5b9;
  font: 26px/1 var(--sans);
}
.invitation-stage {
  display: grid;
  justify-items: center;
  overflow: clip;
  border: 1px solid #b8875880;
  border-radius: 12px;
  background: radial-gradient(ellipse, #632a35, #170a10 72%);
}
#invitation-video {
  display: block;
  width: min(100%, 45dvh);
  aspect-ratio: 9 / 16;
  max-height: 78dvh;
  object-fit: contain;
  background: #180c11;
}
#invitation-audio-toggle {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid #c79a6b;
  border-radius: 10px;
  background: #32111c;
  color: #fff0d7;
  font: 700 12px var(--serif);
}
#invitation-audio-toggle:focus-visible,
#invitation-dialog header button:focus-visible {
  outline: 2px solid #ffe5b9;
  outline-offset: 2px;
}

main {
  width: 100%;
  margin-inline: auto;
}

:root {
  --dark: #241116;
  --cream: #f9ebd6;
  --gold: #e9c78d;
  --border: #a5784e;
  --paper: linear-gradient(120deg, #fff6e6, #ecd0af);
}
[hidden] { display: none !important; }
main { overflow: clip; }
img { display: block; max-width: 100%; height: auto; }
h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(28px, 3.45vw, 64px); line-height: 1.04; }
h3 { margin: 0; font-size: clamp(21px, 2.15vw, 37px); font-weight: 500; line-height: 1.06; }
p { line-height: 1.45; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(85%, 1632px); margin-inline: auto; }
.section { padding-block: clamp(26px, 3.5vw, 67px); }
.action {
  max-width: 100%;
  min-height: 48px;
  gap: 1.1em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.15;
  border: 1px solid var(--border);
  box-shadow: 0 4px 8px #1c090b50, inset 0 0 0 2px #ffe2a528;
}
.action-wine {
  color: var(--cream);
  background: linear-gradient(#540c1814, #22060e40), var(--leather) center / cover, #41121c;
}
.action-gold {
  color: #371d14;
  background: linear-gradient(#fff0c5, #e0ba79 60%, #bc8f56);
}
.action:hover { filter: brightness(1.1); }
.paper {
  border: 1px solid #c39c6a80;
  border-radius: clamp(12px, 1.35vw, 26px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 26px #330f1924;
}
.paper small, .speaker small, .final small { display: block; }
.pill {
  display: inline-block;
  border-radius: 100px;
  padding: .35em .9em;
  background: linear-gradient(90deg, #f7dca9, #bb905b);
  color: #3b2116;
  font-weight: 600;
}
.divider {
  display: flex;
  gap: .8em;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 1em auto;
}
.divider::before, .divider::after {
  content: "";
  width: min(15vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b99765);
}
.divider::after { rotate: 180deg; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  --scene-width: min(100vw, 1920px);
  --scene-gutter: max(0px, (100vw - 1920px) / 2);
  min-height: min(62.92vw, 1208px);
  color: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #e7c6a5 url(/assets/art/figma-hero-background-optimized.webp) center top / cover no-repeat;
  mask-image: linear-gradient(#000 87%, transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 78% 0 0;
  z-index: -1;
  background: linear-gradient(transparent, #2a101466 60%, transparent);
  pointer-events: none;
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: min(1.2vw, 23px) auto auto calc(var(--scene-gutter) + var(--scene-width) * .53);
  width: calc(var(--scene-width) * .43);
  mask-image: linear-gradient(#000 93%, transparent);
  height: auto;
}
.hero-ticket-art, .hero-ribbon-art {
  position: absolute;
  z-index: -1;
  height: auto;
  pointer-events: none;
}
.hero-ticket-art { width: calc(var(--scene-width) * .2344); left: calc(var(--scene-gutter) + var(--scene-width) * .3745); top: 43.1%; }
.hero-ribbon-art { width: calc(var(--scene-width) * .148); left: calc(var(--scene-gutter) + var(--scene-width) * .477); top: 62.3%; }
.hero-layout {
  position: relative;
  width: min(86%, 1580px);
  margin-inline: auto;
  padding: clamp(28px, 4.9vw, 94px) 0 clamp(32px, 3.6vw, 70px);
}
.event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em;
  color: var(--ink);
  font-size: clamp(12px, 1.18vw, 22px);
  font-weight: 700;
}
.event time, .event span {
  padding: .34em .88em;
  border: 1px solid #aa8157;
  border-radius: 100px;
}
.event time { color: #fff0d2; background: linear-gradient(#7c2533, #4e161e); }
.event span { text-transform: uppercase; background: #f9e9d3; }
.hero-layout > .event { margin-inline-start: 3.5%; }
.hero h1 {
  width: min(41vw, 786px);
  margin: clamp(13px, 1.25vw, 24px) 0 clamp(12px, 1.2vw, 23px) 3%;
}
.hero h1 img { display: block; width: 100%; height: auto; }
.hero-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-question {
  width: min(42%, 660px);
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(20px, 2.62vw, 51px);
  line-height: 1.07;
}
.hero-question strong {
  display: inline-block;
  width: 6.1em;
  margin: .22em .2em 0 0;
  vertical-align: middle;
}
.hero-question strong img { display: block; width: 100%; height: auto; }
.hero-actions { width: min(47.3%, 785px); text-align: center; margin-top: 1em; }
.hero-actions > p {
  max-width: min(23em, 78%);
  margin: 0 0 1em;
  font-size: clamp(15px, 1.44vw, 27px);
}
.hero-actions > .action {
  width: 100%;
  min-height: clamp(50px, 5.15vw, 99px);
  font-size: clamp(17px, 1.75vw, 32px);
}
.gift-teaser {
  display: flex;
  align-items: center;
  gap: 6%;
  width: 100%;
  margin-top: .85em;
  border-radius: 14px;
  padding: .6em 1em;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}
.gift-teaser img {
  width: 32%;
}
.gift-teaser span { font-size: clamp(12px, 1.05vw, 18px); }
.gift-teaser strong { display: block; margin-bottom: .2em; font-size: 1.8em; font-weight: 500; }

#landing {
  background-color: #380c16;
  background-image: linear-gradient(#29101870, #24101780), var(--leather);
  background-size: auto, max(100%, 780px) auto;
  background-position: center top;
  background-repeat: no-repeat, repeat-y;
}
.program { text-align: center; }
.program h2, .calculator h2, .gifts h2, .gallery h2 { text-transform: uppercase; }
.program h2 { color: var(--gold); font-size: clamp(23px, 2.65vw, 51px); }
.program .divider {
  gap: clamp(7px, .65vw, 13px);
  margin: clamp(10px, 1.15vw, 22px) auto clamp(8px, .75vw, 14px);
}
.program .divider img { width: clamp(25px, 2.5vw, 48px); height: auto; }
.program .divider::before, .program .divider::after { width: clamp(18px, 4.2vw, 80px); }
.topic-break-mobile { display: none; }
.topic-grid, .gift-grid, .photo-grid, .bio {
  display: grid;
  gap: clamp(8px, 1.1vw, 24px);
}
.topic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.topic-grid li {
  overflow: hidden;
  border: 1px solid #b79064b3;
  background: linear-gradient(#571b26, #301018);
  border-radius: clamp(8px, 1.05vw, 20px);
}
.topic-grid img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.topic-grid p {
  padding: .75em .35em;
  border-top: 1px solid #b7906470;
  font-size: clamp(13px, 1.3vw, 25px);
  text-transform: uppercase;
  line-height: 1.2;
}
.calculator {
  display: grid;
  grid-template-columns: 54% minmax(0, 1fr);
  grid-template-areas: "copy art" "form art";
  align-items: center;
  row-gap: 14px;
  column-gap: 0;
  padding-top: 8px;
}
.calculator-copy { grid-area: copy; align-self: end; }
.calculator-copy h2 { color: #f4dcaf; margin-bottom: .38em; font-size: clamp(28px, 3.45vw, 66px); }
.calculator-date { white-space: nowrap; }
.calculator-year { font-size: 1.08em; font-variant-numeric: lining-nums; }
.calculator-copy p { max-width: 50ch; padding-right: 1em; font-size: clamp(15px, 1.44vw, 27px); }
.calculator-art { grid-area: art; }
.calculator-art img { width: 100%; height: auto; }
#miracle-number { font-size: .83em; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; }
#miracle-description { font-size: clamp(15px, 1.3vw, 23px); }
#miracle-form {
  grid-area: form;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: min(100%, 41.2vw, 790px);
  align-items: end;
  gap: 9px 13px;
}
.birthday-control { position: relative; display: grid; gap: 5px; }
.birthday-label { font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #edd2ab; }
#birthday {
  width: 100%;
  min-height: 50px;
  padding: 0 44px 0 14px;
  border: 1px solid #c3a47e;
  border-radius: 12px;
  font-size: clamp(16px, 1.25vw, 23px);
  color: #472b28;
  background: var(--paper);
}
#birthday::placeholder { color: #765b52; }
.calendar-icon {
  position: absolute;
  right: 16px;
  bottom: 17px;
  width: 17px;
  height: 15px;
  border: 1px solid #80594c;
  border-radius: 3px;
  background: linear-gradient(#80594c, #80594c) 0 4px / 100% 1px no-repeat;
  pointer-events: none;
}
#birthday-calendar {
  position: absolute;
  right: 3px;
  bottom: 0;
  width: 40px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}
#birthday-calendar::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; cursor: pointer; }
.birthday-control:has(#birthday-calendar:focus-visible) { outline: 3px solid #edc993; outline-offset: 3px; }
#miracle-error { grid-column: 1/-1; color: #ffe0c9; font-family: var(--sans); }
.station, .speaker, .route-banner, .route-heading, .year {
  display: grid;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
}
.station { grid-template-columns: 1.22fr 1fr; padding: clamp(14px, 2.5vw, 30px); }
.station h2, .station h3 { text-transform: uppercase; }
.station h2 { color: #4e1319; font-weight: 700; font-size: clamp(23px, 2.5vw, 34px); margin-bottom: .45em; }
.station h3 { font-size: clamp(20px, 2vw, 27px); margin: .45em 0; color: #751d2c; font-style: italic; }
.station p { font-size: clamp(16px, 1.6vw, 19px); }
.route-banner p, .year p { font-size: clamp(16px, 1.4vw, 23px); }
.station-gifts {
  position: relative;
  border-left: 1px solid #aa835c60;
  padding-left: 7%;
  text-align: center;
}
.station-gifts::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(26px, 3vw, 54px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url(/assets/art/station-medallion.webp) center / contain no-repeat;
}
.station-gifts img { width: min(48%, 265px); height: auto; margin: 0 auto .25em; }
.station-gifts .action, .route-banner .action { margin: .8em auto .6em; }
.cream { color: var(--ink); background: #fbf0df; }
.frame-stories {
  --seam: clamp(20px, 3.2vw, 60px);
  padding-top: calc(clamp(26px, 3.5vw, 67px) + var(--seam) / 2);
  background: linear-gradient(transparent, #fbf0df var(--seam));
}
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: clamp(12px, 1.8vw, 34px); }
.section-head h2 { text-transform: uppercase; }
.carousel-controls { display: flex; gap: .45em; align-items: center; flex-shrink: 0; }
.carousel-controls span { font-style: italic; color: inherit; }
.carousel-controls button {
  border: 1px solid #bda182;
  border-radius: 50%;
  height: 42px;
  width: 42px;
  background: #fff9ef;
  color: #54242a;
  font-size: 26px;
  line-height: 1;
}
.carousel-controls button:last-child { background: #612430; color: #ffebd7; }
.story-cards, .train-stops {
  display: flex;
  position: relative;
  gap: clamp(10px, 1.2vw, 22px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.story-cards li {
  position: relative;
  flex: 0 0 calc((100% - clamp(20px, 2.4vw, 44px)) / 3);
  min-width: 0;
  overflow: hidden;
  border-radius: 13px;
  background: var(--paper);
  border: 1px solid #c39c6a90;
  scroll-snap-align: start;
}
.story-index {
  position: absolute;
  inset: 10px auto auto 10px;
  padding: 3px 8px;
  border: 1px solid #b89468;
  border-radius: 99px;
  background: #5f2934;
  color: #fff0d8;
  font-size: 13px;
  font-weight: bold;
}
.story-cards img { width: 100%; aspect-ratio: 3.9; object-fit: cover; }
.story-cards li > div { padding: clamp(10px, 1.35vw, 24px); }
.story-cards h3 { margin-bottom: .3em; font-size: clamp(20px, 1.75vw, 33px); }
.story-cards p { font-size: clamp(15px, 1.23vw, 22px); }
.route-banner { margin-top: clamp(18px, 2.8vw, 46px); grid-template-columns: 1fr; overflow: hidden; }
.route-banner > div { padding: clamp(18px, 3.1vw, 56px); }
.route-banner > img { width: 100%; aspect-ratio: 2.35; object-fit: cover; object-position: right center; }
@media (min-width: 721px) {
  .route-banner { position: relative; isolation: isolate; grid-template-columns: 52% 1fr; }
  .route-banner > img { position: absolute; inset: 0; height: 100%; z-index: -1; }
}
.route-banner h3, .route-heading h2, .route-heading h3, .year h3 { text-transform: uppercase; margin-bottom: .25em; }
.route-banner h3 em, .route-heading h2 em { font-weight: 700; color: #751222; }
.route-heading { grid-template-columns: 1.38fr 1fr; align-items: end; margin-bottom: 20px; }
.route-heading .event { margin-bottom: .7em; }
.route-heading p { font-size: clamp(17px, 1.4vw, 23px); }
.rail {
  padding: clamp(12px, 2.4vw, 40px);
  border: 1px solid #ab8059;
  border-radius: 16px;
  background:
    linear-gradient(#2209144d, #220914aa),
    url(/assets/art/figma-carriage.webp) center 40% / cover no-repeat,
    #250e12;
  color: var(--gold);
}
.rail .section-head { justify-content: center; }
.rail .section-head h3 {
  max-width: 10ch;
  text-align: center;
  line-height: .9;
  text-transform: uppercase;
  font-family: var(--display);
}
.rail .carousel-controls { display: none; }
.rail-content { display: flex; align-items: end; }
.engine { width: 12%; margin-bottom: 27px; }
.train-stops { flex: 1; gap: 5px; }
.train-stops li { flex: 1 0 15%; min-width: 0; text-align: center; scroll-snap-align: start; }
.stop-number {
  display: inline-grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: #5f3c2a;
  border: 1px solid #a48058;
  font-size: clamp(12px, 1vw, 20px);
}
.wagon { position: relative; margin-block: 12px 6px; }
.wagon img { width: 100%; }
.wagon strong {
  position: absolute;
  inset: 23% 7% auto;
  background: linear-gradient(#45231a, #3c1814);
  font-size: clamp(11px, 1.15vw, 21px);
  font-weight: 500;
  text-transform: uppercase;
}
.train-stops li > span:last-child { font-size: clamp(11px, .95vw, 16px); }
.year { grid-template-columns: 1fr .8fr 1fr; margin-top: 18px; padding: clamp(16px, 2vw, 34px); }
.year img { max-height: 135px; margin-inline: auto; object-fit: contain; mix-blend-mode: multiply; }
.year .action { justify-self: end; }
.carriage {
  background-color: #210e12;
  background:
    linear-gradient(180deg, #e8c6a85c 0%, transparent 10% 76%, #2a1018 100%),
    url(/assets/art/figma-carriage.webp) center / cover no-repeat,
    #210e12;
}
.gifts, .dream { text-align: center; }
.gifts h2, .dream h2 { color: #f4ddae; margin-bottom: .35em; }
.gifts > .wrap { width: min(83%, 1584px); }
.gifts h2 { font-size: clamp(28px, 3.25vw, 62px); }
.gifts > div > p { margin-inline: auto; max-width: 64ch; font-size: clamp(16px, 1.4vw, 24px); }
.gift-grid { grid-template-columns: repeat(3, 1fr); margin: 1.2em 0; }
.gift-grid li { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.gift-grid img { z-index: 1; width: min(70%, 290px); margin: auto auto -24%; }
.gift-grid li > div {
  min-height: 0;
  padding: 30% 6% 8%;
  background: radial-gradient(ellipse at 50% 0, #914d3c, #421722 75%);
  border: 1px solid #b67958;
  border-radius: 15px;
  box-shadow: inset 0 0 0 3px #e2ab6a24;
}
.gift-grid h3 { font-size: clamp(20px, 1.9vw, 34px); margin: .55em 0 .4em; }
.gift-grid p { font-size: clamp(15px, 1.3vw, 23px); }
.gifts .action { margin-top: .5em; }
.dream h2 { margin-top: .4em; }
.dream-photos {
  display: flex;
  width: min(82%, 1300px);
  margin: 1.2em auto;
  perspective: 1000px;
}
.dream-photos li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 1% 1% 5%;
  border-radius: 5px;
  background: linear-gradient(#fff8e9, #e4c8a3);
  box-shadow: 0 8px 18px #10070d8c;
}
.dream-photos li:nth-child(1) { transform: rotate(-8deg) translate(5%, 6%); }
.dream-photos li:nth-child(2) { transform: rotate(7deg) translate(1%, 8%); }
.dream-photos li:nth-child(3) { z-index: 1; }
.dream-photos li:nth-child(4) { transform: rotate(-8deg) translate(-1%, 7%); }
.dream-photos li:nth-child(5) { transform: rotate(8deg) translate(-5%, 6%); }
.dream-photos img { width: 100%; height: auto; aspect-ratio: .97; object-fit: cover; }
.dream-photos li::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a5784e90, transparent);
}
.speaker { grid-template-columns: 37fr 63fr; gap: 0; }
.speaker > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #9a744b;
  border-radius: 48% 48% 8px 8px / 28% 28% 8px 8px;
}
.speaker > div { padding: clamp(16px, 3vw, 56px); text-align: left; }
.speaker .eyebrow { font-size: .92em; color: #7b3b3b; text-transform: uppercase; font-weight: bold; }
.speaker h2 { margin: .15em 0 .2em; }
.speaker .action { display: flex; width: fit-content; margin: 1em auto .45em; }
.speaker small { display: block; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.stats div { background: #e6bd8540; border: 1px solid #c2976030; border-radius: 9px; text-align: center; padding: .65em .25em; }
.stats dt { font-size: clamp(18px, 2.15vw, 39px); }
.stats dd { margin: .4em 0 0; font-size: .9em; }
.bio { grid-template-columns: 1fr 1fr; border-top: 1px solid #c09d7360; padding-top: 1em; }
.bio li { position: relative; padding-left: 1em; }
.bio li::before { content: "✦"; position: absolute; left: 0; top: .15em; color: #9b6744; font-size: .75em; }
.gallery { text-align: center; }
.gallery .paper { padding: clamp(12px, 3vw, 58px); margin-bottom: 20px; }
.gallery h2 { margin-bottom: .4em; }
.photo-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.photo-grid li { padding: 5px; background: #fff6e6; border-radius: 6px; box-shadow: 0 4px 12px #654a3133; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: .78; object-fit: cover; border-radius: 3px; }
.gallery > p { margin-top: .55em; font-size: 1.15em; }
.final {
  min-height: min(62.92vw, 1208px);
  display: grid;
  align-items: center;
  color: #3a1b20;
}
.final::before {
  background:
    linear-gradient(180deg, transparent 85%, #2a1018 100%),
    #f5dac0 url(/assets/art/figma-hero-background.webp) center / cover no-repeat;
  mask-image: linear-gradient(transparent, #000 clamp(42px, 6vw, 110px));
}
.final .wrap > div { max-width: min(43%, 690px); }
.final h2 { font-size: clamp(41px, 5.75vw, 110px); text-transform: uppercase; color: #561824; }
.final h2 strong { font-weight: 500; font-size: 1.3em; }
.final p { margin-top: .68em; font-size: clamp(16px, 1.45vw, 25px); }
.final .action { width: 100%; margin: .85em 0 .5em; }
.final small { display: block; text-align: center; }
.registration { margin-top: clamp(24px, 4vw, 80px); }

.registration-ticket {
  position: fixed;
  isolation: isolate;
  width: min(92vw, 930px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  background:
    linear-gradient(180deg, #260b1610 60%, #19091062),
    url(/assets/art/figma-carriage.webp) center top / cover no-repeat,
    #1d0b10;
  padding: 54px clamp(20px, 4vw, 48px) 32px;
  box-shadow: inset 0 0 0 3px #edc08136, 0 14px 45px #1a070c9c;
  text-align: center;
}
.ticket-copy-mobile { display: none; }
.gold-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 20%;
  align-items: center;
  width: min(94%, 1230px);
  margin: 0 auto;
  aspect-ratio: 1078 / 336;
  padding: clamp(15px, 2.6vw, 47px) clamp(14px, 2.2vw, 42px);
  border: 1px solid #c39a58;
  border-radius: clamp(10px, 1.4vw, 22px);
  box-shadow: 0 7px 27px #100509c0;
  color: #33180e;
  background:
    url(/assets/art/ticket-rim-desktop.webp) center / 100% 100% no-repeat,
    radial-gradient(ellipse at 35% 30%, #f4e1ab, transparent 75%),
    linear-gradient(134deg, #caa36a, #ead19a 48%, #c39d65);
}
.gold-ticket-copy { padding-right: 5%; }
.gold-ticket-copy > p:first-child { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: #5e2a24; }
#ticket-title:focus { outline: none; }
.gold-ticket h1 {
  font-family: var(--display); margin: .35em 0; font-size: clamp(29px, 3.64vw, 52px); font-weight: 500; line-height: .98; text-transform: uppercase; }
.gold-ticket-copy > p:last-child { font-size: clamp(14px, 1.55vw, 28px); }
.ticket-rule { display: flex; align-items: center; justify-content: center; gap: .65em; margin: .6em 0; color: #9b683b; }
.ticket-rule::before, .ticket-rule::after { content: ""; width: 13%; height: 1px; background: #9b683b; }
.ticket-stamp {
  display: block;
  justify-self: center;
  width: min(8.1vw, 104px);
  aspect-ratio: 1;
  background: url(/assets/art/ticket-seal.webp) center / contain no-repeat;
}
.ticket-message { max-width: 76ch; margin: 24px auto; }
.ticket-message h2 { color: #f3d7a2; text-transform: uppercase; margin-bottom: .55em; }
.ticket-message p { font-size: clamp(16px, 1.52vw, 21px); }
.gift-actions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.3vw, 22px); }
.gift-actions .button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(12px, 1.5vw, 24px);
  border: 1px solid #ba9367;
  border-radius: clamp(10px, 1.2vw, 23px);
  color: #fff1dc;
  background: linear-gradient(#874958, #531c2c 76%, #612937);
  box-shadow: inset 0 0 0 2px #fac99029, 0 5px 8px #1a080d75;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 700;
  text-align: left;
  line-height: 1.15;
}
.gift-channel img { border-radius: 50%; }
.gift-channel small { display: block; color: #f7dcb8; font-size: .65em; font-weight: 400; }
.gift-arrow { font-weight: 400; }
.gift-channel:focus-visible { outline: 2px solid #ffdf9e; outline-offset: 2px; }
@media (hover: hover) {
  .gift-channel:hover { border-color: #ffe3a3; filter: brightness(1.12); }
}

@media (max-width: 720px) {
  .wrap { width: min(92%, 580px); }
  #landing { --leather: url(/assets/art/figma-crocodile-leather-compact.webp); }
  .hero::before {
    background:
      linear-gradient(#fff1df34 0 26%, transparent 52%, #2a1018 87%),
      url(/assets/art/figma-hero-background-mobile.webp) 55% top / auto 86% no-repeat,
      #2a1018;
  }
  .hero-layout { display: contents; }
  .hero-ticket-art, .hero-ribbon-art { display: none; }
  .hero-question strong { width: 4.2em; }
  .hero { display: grid; grid-template-columns: 1fr; text-align: center; padding: 26px 0 18px; }
  .hero .event { grid-row: 1; padding-inline: 4%; }
  .hero h1 { grid-row: 2; }
  .hero-question { grid-row: 3; z-index: 0; }
  .hero-image { grid-row: 4; z-index: -1; }
  .hero-actions { grid-row: 5; }
  .hero-image {
    position: relative;
    inset: auto;
    width: min(94%, 500px);
    height: min(94vw, 520px);
    margin: clamp(8px, 2.4vw, 16px) auto 0;
    object-fit: contain;
    object-position: center top;
    mask-image: linear-gradient(black 75%, transparent);
  }
  .hero::after { inset: 55% 0 0; background: linear-gradient(transparent, #2a1018a0 60%, transparent); }
  .hero .event { justify-content: center; margin-inline-start: 0; font-size: clamp(9px, 2.32vw, 14px); }
  .hero h1 { width: min(78%, 480px); margin: 17px auto 12px; }
  .hero-question {
    width: 100%;
    padding-inline: 3% 10%;
    font-size: clamp(21px, 5.85vw, 36px);
  }
  .hero-actions { width: min(92%, 580px); margin: -12px auto 0; color: var(--cream); }
  .hero-actions > p { max-width: none; margin-inline: auto; font-size: clamp(15px, 3.85vw, 21px); }
  .gift-teaser { border-radius: 10px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid li:last-child { grid-column: 1/-1; width: calc(50% - 4px); justify-self: center; }
  .topic-grid p { font-size: 13px; }
  .topic-break { display: none; }
  .topic-break-mobile { display: initial; }
  .calculator { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "form"; }
  .calculator h2, .program h2 { text-align: center; }
  .program h2 { max-width: 13.8em; margin-inline: auto; }
  .calculator-copy p { padding-right: 0; }
  #miracle-form { grid-template-columns: 1fr; width: 100%; }
  #miracle-form > button { width: 100%; }
  .station, .speaker, .route-banner, .route-heading, .year { grid-template-columns: 1fr; }
  .station-gifts { border-left: 0; border-top: 1px solid #aa835c60; padding: 20px 0 0; }
  .station-gifts::before { top: 0; left: 50%; }
  .station h2, .station h3, .route-heading, .year { text-align: center; }
  .year .action { justify-self: center; }
  .story-cards li { flex-basis: min(75%, 340px); }
  .carousel-controls span { display: none; }
  .carousel-controls button { width: 35px; height: 35px; font-size: 22px; }
  .story-cards img { aspect-ratio: 2149 / 732; }
  .route-banner > img {
    order: -1;
    width: calc(100% - 32px);
    aspect-ratio: 2.8;
    margin: 13px auto 0;
    border-radius: 10px;
    object-view-box: inset(0 0 0 30%);
  }
  .route-heading .event { justify-content: center; }
  .rail .section-head { justify-content: space-between; }
  .rail .section-head h3 { font-size: 18px; }
  .rail .carousel-controls { display: flex; }
  .engine { width: 28%; margin-bottom: 29px; }
  .train-stops li { flex-basis: 100%; }
  .train-stops li > span:last-child { font-size: 15px; }
  .wagon strong { font-size: 16px; }
  .gifts {
    background:
      linear-gradient(transparent 17%, #210e12 48%),
      url(/assets/art/figma-carriage.webp) center top / auto 470px no-repeat,
      #210e12;
  }
  .gifts > .wrap { width: min(92%, 580px); }
  .gift-grid { grid-template-columns: 1fr; gap: 14px; }
  .gift-grid li > div { padding-top: 24%; }
  .gift-grid img { width: min(54%, 190px); margin-bottom: -19%; }
  .dream-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 94%; }
  .dream-photos li { grid-column: span 2; padding: 5% 5% 17%; transform: none !important; }
  .dream-photos li:nth-child(1), .dream-photos li:nth-child(5) { grid-column: span 3; grid-row: 1; }
  .speaker { gap: 12px; }
  .speaker > img { width: min(71%, 390px); max-height: 420px; margin-inline: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bio, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final {
    min-height: 0;
    padding-top: 30px;
  }
  .final::before {
    background:
      linear-gradient(180deg, transparent 24px, #f9e8d5 min(53vw, 300px)),
      url(/assets/art/figma-hero-background-compact.webp) 75% top / max(100%, 560px) auto no-repeat,
      #f9e8d5;
  }
  .final h2 {
    min-height: min(44vw, 250px);
    padding-top: clamp(24px, 7vw, 44px);
  }
  .final h2 strong { display: inline-block; }
  .final .wrap > div { max-width: 100%; }
  .registration { grid-template-columns: 1fr; gap: 24px; margin: 20px 16px 80px; padding: 24px 18px; }
  .registration-copy h2 { margin: 6px 0 10px; }
  .registration-ticket { padding: 54px 16px 18px; }
  .registration-ticket {
    background:
      linear-gradient(transparent, #20080bd9 42%, #20080b 67%),
      url(/assets/art/figma-carriage.webp) center top / 100% min(116vw, 560px) no-repeat,
      #20080b;
  }
  .ticket-copy-mobile { display: inline; }
  .ticket-copy-desktop { display: none; }
  .gold-ticket {
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    aspect-ratio: 557 / 300;
    padding: 15px 10px 12px;
    background-image: url(/assets/art/ticket-rim-mobile.webp),
      radial-gradient(ellipse at 35% 30%, #f4e1ab, transparent 75%),
      linear-gradient(134deg, #caa36a, #ead19a 48%, #c39d65);
  }
  .gold-ticket-copy { padding-right: 0; }
  .gold-ticket h1 { max-width: 17ch; margin: .23em auto; text-wrap: balance; }
  .gold-ticket-copy > p:first-child { font-size: .9em; }
  .ticket-rule { display: none; }
  .ticket-stamp { width: 45px; }
  .ticket-message { text-align: left; margin: 22px auto 15px; }
  .ticket-message h2 { text-align: center; font-size: clamp(24px, 7vw, 36px); }
  .ticket-message p + p { margin-top: .55em; }
  .gift-actions .button { gap: 8px; }
}
@media (max-width: 460px) {
  .gift-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (min-width: 721px) {
  .gold-ticket-copy::after {
    content: "";
    position: absolute;
    inset: 8% 22% 8% auto;
    border-left: 1px dashed #8a63368c;
    pointer-events: none;
  }
}

/* The railway scene follows the 1728 × 446 frame in Figma. */
.route-section {
  background: linear-gradient(#fbf0df, #fff7e9 18%, #efdfc8);
}
.route-section > .wrap { width: min(90.6%, 1728px); }
.route-heading {
  grid-template-columns: 57fr 43fr;
  align-items: center;
  margin: 0 1.5% clamp(16px, 1.8vw, 34px);
}
.route-heading > :last-child {
  border-left: 1px solid #b9956d48;
  padding-left: clamp(18px, 2.1vw, 40px);
}
.route-date {
  display: inline-block;
  margin-bottom: .9em;
  padding: .6em 1.1em;
  border: 1px solid #ba9a72;
  border-radius: 99px;
  background: #fbecd4;
  color: #63302c;
  font-size: clamp(10px, .86vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
}
.route-heading h2 { font-size: clamp(29px, 4.1vw, 80px); margin: 0; }
.route-heading h2 span { font-size: .8em; }
.route-heading h3, .year h3 { font-family: var(--display); }
.rail {
  container-type: inline-size;
  padding: 2% 2.1% 2.3%;
  border-radius: clamp(12px, 1.65vw, 32px);
  background:
    linear-gradient(transparent 76%, #2b101c 83% 100%),
    url(/assets/art/route-platform.webp) center bottom / 100% auto no-repeat,
    #261212;
  box-shadow: 0 8px 20px #492b2250;
}
.rail .section-head { margin-bottom: 1.5cqw; }
.rail .section-head h3 { font-size: clamp(22px, 3cqw, 52px); }
.rail .section-head::before, .rail .section-head::after {
  content: "";
  width: 10cqw;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c99d69);
}
.rail .section-head::after { transform: scaleX(-1); }
.rail-content { align-items: flex-end; gap: 0.35cqw; }
.engine { width: 12.2%; margin-bottom: 2.05cqw; }
.train-stops { gap: .55cqw; min-width: 0; padding-bottom: 0; }
.train-stops li { position: relative; flex: 1 1 0; }
.stop-number {
  position: relative;
  font-size: clamp(10px, 1cqw, 18px);
  margin-bottom: 1cqw;
}
.stop-number::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  height: 1.65cqw;
  border-left: 1px solid #c897654f;
}
.wagon { margin: .9cqw 0 .35cqw; }
.wagon strong {
  inset: 29% 16% auto;
  background: none;
  font-size: clamp(9px, 1.17cqw, 20px);
  line-height: 1.1;
  font-family: var(--display);
  white-space: nowrap;
}
.train-stops li > span:last-child { font-size: clamp(9px, .95cqw, 16px); }
.year {
  grid-template-columns: 1fr .9fr 1.25fr;
  gap: 1.8%;
  margin: clamp(16px, 1.8vw, 34px) 1.5% 0;
  padding: clamp(14px, 1.25vw, 25px) 2.8%;
  background: linear-gradient(90deg, #fbefdc 0 58%, #fbefdc00 73%), var(--leather) right center / 58% auto, #fbefdc;
  background-repeat: no-repeat;
}
.year img { max-height: 9.4vw; mix-blend-mode: normal; }
.year .action { width: min(100%, 570px); min-height: clamp(48px, 4.6vw, 86px); }

.hero .winter-snow, .rail .winter-snow { pointer-events: none; }
.hero .winter-snow {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}
.rail { position: relative; }
.rail .winter-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.winter-snow::before, .winter-snow::after {
  content: "";
  position: absolute;
  inset: -44px 0 0;
  background:
    radial-gradient(circle at 12% 18%, #fff4d8 0 1px, transparent 2px),
    radial-gradient(circle at 40% 58%, #fff9ef 0 1px, transparent 2px),
    radial-gradient(circle at 85% 27%, #fff1d3 0 1.5px, transparent 3px);
  background-size: 241px 189px;
  opacity: .28;
}
.winter-snow::after { background-size: 337px 252px; background-position: 28px 64px; opacity: .2; }

@media (max-width: 720px) {
  .route-section > .wrap { width: min(92%, 580px); }
  .route-heading { grid-template-columns: 1fr; margin-inline: 0; }
  .route-heading > :last-child { border-left: 0; padding-left: 0; }
  .rail { padding: 14px 12px 17px; background-size: 100% 100%, auto 110%, auto; }
  .rail .section-head::before, .rail .section-head::after { display: none; }
  .rail .section-head { margin-bottom: 8px; }
  .rail .section-head h3 { text-align: left; font-size: 21px; }
  .engine { width: 43%; margin-bottom: 28px; }
  .train-stops li { flex: 0 0 100%; }
  .wagon { margin: 12px 0 6px; }
  .wagon strong { font-size: clamp(13px, 4.5cqw, 20px); }
  .train-stops li > span:last-child { font-size: 14px; }
  .year { grid-template-columns: 1fr; background: var(--paper); gap: 10px; padding: 16px; }
  .year img { max-height: 148px; }
}
@media (hover: hover) and (pointer: fine) {
  #landing, #registration-ticket { cursor: url(/assets/art/gold-cursor.png) 3 2, auto; }
  a[href], button:not(:disabled) { cursor: url(/assets/art/gold-cursor.png) 3 2, pointer; }
  input, textarea { cursor: text; }
  #birthday-calendar { cursor: pointer; }
}
@media (prefers-reduced-motion: no-preference) {
  .winter-snow::before { animation: winter-drift 4.8s ease-out both; }
  .winter-snow::after { animation: winter-drift 4.4s ease-out reverse both; }
  .hero-ticket-art { animation: ticket-arrival .8s ease-out both; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .action { transition: filter 180ms ease-out, box-shadow 180ms ease-out; }
  .action:hover { box-shadow: 0 5px 18px #b26a3866, inset 0 0 0 2px #ffe2a54d; }
}
@keyframes winter-drift {
  from { transform: translate3d(-10px, -35px, 0); opacity: .08; }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes ticket-arrival {
  from { transform: translate3d(0, -13px, 0) rotate(-2deg); opacity: .4; }
  to { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
}

/* Gifts, personal photos and testimonials use their own Figma compositions. */
.gifts.carriage { background: none; }
.gifts::before {
  background:
    linear-gradient(180deg, #efdfc8, transparent clamp(42px, 5vw, 96px)),
    url(/assets/art/figma-carriage.webp) center / cover no-repeat;
  mask-image: linear-gradient(#000 82%, transparent);
}
.gifts > .wrap { width: min(82%, 1550px); }
.gifts > div > p { max-width: 91ch; font-size: clamp(15px, 1.26vw, 23px); }
.gift-grid { gap: clamp(12px, 1.65vw, 32px); }
.gift-grid img {
  transform-origin: center 5%;
  width: 64%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  margin: 0 auto -22%;
}
.gift-grid li > div {
  display: grid;
  grid-template-rows: auto minmax(3em, auto) 1fr;
  justify-items: center;
  align-content: start;
  padding: 26% 5% 5%;
  background:
    radial-gradient(ellipse at 50% 0, #bb81596b, #39111bbf 84%),
    var(--leather) center / cover,
    #421722;
}
.gift-grid .pill { text-transform: uppercase; letter-spacing: .07em; font-size: clamp(10px, .82vw, 15px); }
.gift-grid h3 {
  align-self: center;
  font-family: var(--display);
  font-size: clamp(21px, 1.73vw, 32px);
  font-weight: 700;
}
.gift-grid p { font-size: clamp(15px, 1.18vw, 22px); line-height: 1.32; }
.gifts .action { width: min(100%, 820px); min-height: clamp(48px, 4.55vw, 87px); }

.gifts, .dream, .final { position: relative; isolation: isolate; }
.gifts::before, .dream::before, .final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.dream::before {
  background: url(/assets/art/figma-dream-scene.webp) center / cover no-repeat;
  mask-image: linear-gradient(transparent, #000 15% 78%, transparent);
}
.dream > .pill { font-weight: 400; min-width: min(74%, 420px); }
.dream-photos { width: min(69%, 1344px); margin: 1.15em auto 2.25em; gap: 1.8%; }
.dream-photos li { padding: .85% .85% 3%; }
.dream-photos li:nth-child(1) { transform: rotate(-6deg) translateY(7%); }
.dream-photos li:nth-child(2) { transform: rotate(6deg) translateY(8%); }
.dream-photos li:nth-child(4) { transform: rotate(-7deg) translateY(5%); }
.dream-photos li:nth-child(5) { transform: rotate(6deg) translateY(8%); }
.dream .divider { font-size: 0; }
.dream .divider::before, .dream .divider::after { width: min(30%, 490px); }
.dream .divider {
  min-height: 31px;
  background: url(/assets/art/topic-medallion.webp) center / 29px 29px no-repeat;
  gap: 25px;
}

.speaker { width: min(90%, 1728px); grid-template-columns: 36% minmax(0, 1fr); align-items: center; }
.speaker-window { position: relative; margin: 0 -5% 0 0; z-index: 1; }
.speaker-window > img:first-child { width: 100%; }
.speaker-portrait {
  position: absolute;
  inset: 7% 5% auto;
  width: 90%;
  height: 85%;
  object-fit: cover;
  object-position: center top;
  clip-path: inset(0 round 48% 48% 3% 3% / 33% 33% 2% 2%);
}
.speaker > .paper {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.75vw, 54px) clamp(18px, 3.15vw, 61px);
  box-shadow: inset 0 0 0 5px #fff6e65c;
}
.speaker > .paper::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: clamp(24px, 3vw, 57px);
  aspect-ratio: 1;
  background: url(/assets/art/ticket-seal.webp) center / contain no-repeat;
  opacity: .55;
}
.speaker .stats dt { font-family: var(--display); font-weight: 700; }
.speaker .bio { gap: .85em 1.5em; }
.speaker .bio li:last-child { grid-column: 1/-1; }
.speaker .action { width: min(70%, 660px); }
.speaker small { font-style: italic; text-transform: uppercase; }

.gallery { width: min(92%, 1760px); }
.gallery .paper {
  position: relative;
  padding: clamp(16px, 3.1vw, 58px) clamp(12px, 3.3vw, 62px);
  box-shadow: inset 0 0 0 5px #ddbc9340, 0 10px 30px #1c080f65;
}
.gallery .paper::before {
  content: "";
  position: absolute;
  left: 2.4%;
  top: clamp(26px, 4vw, 80px);
  width: clamp(24px, 3.7vw, 70px);
  aspect-ratio: 1;
  background: url(/assets/art/ticket-seal.webp) center / contain no-repeat;
}
.gallery h2 { margin: 0 auto .66em; max-width: 36ch; }
.gallery > .action { width: min(88%, 950px); min-height: clamp(46px, 5.4vw, 100px); }
.photo-grid { gap: clamp(8px, 1.2vw, 20px); }
.photo-grid img { aspect-ratio: auto; height: auto; }
@media (min-width: 721px) {
  .photo-grid {
    aspect-ratio: 1390 / 1110;
    grid-template-columns: 232fr 245fr 278fr 275fr 261fr;
    grid-template-rows: repeat(111, minmax(0, 1fr));
    row-gap: 0;
  }
  .photo-grid li { grid-column: var(--col); grid-row: var(--begin) / var(--end); transform: rotate(var(--tilt, 0deg)); }
  .photo-grid img { width: 100%; height: 100%; object-fit: cover; }
  .photo-grid li:nth-child(5n + 1) { --col: 1; --tilt: 1deg; }
  .photo-grid li:nth-child(5n + 2) { --col: 2; --tilt: -1deg; }
  .photo-grid li:nth-child(5n + 3) { --col: 3; --tilt: .8deg; }
  .photo-grid li:nth-child(5n + 4) { --col: 4; --tilt: -.8deg; }
  .photo-grid li:nth-child(5n + 5) { --col: 5; --tilt: .6deg; }
  .photo-grid li:nth-child(1) { --begin: 3; --end: 30; }
  .photo-grid li:nth-child(2) { --begin: 1; --end: 30; }
  .photo-grid li:nth-child(3) { --begin: 3; --end: 38; }
  .photo-grid li:nth-child(4) { --begin: 1; --end: 42; }
  .photo-grid li:nth-child(5) { --begin: 3; --end: 37; }
  .photo-grid li:nth-child(6) { --begin: 33; --end: 73; }
  .photo-grid li:nth-child(7) { --begin: 33; --end: 74; }
  .photo-grid li:nth-child(8) { --begin: 41; --end: 74; }
  .photo-grid li:nth-child(9) { --begin: 44; --end: 71; }
  .photo-grid li:nth-child(10) { --begin: 39; --end: 74; }
  .photo-grid li:nth-child(11) { --begin: 75; --end: 111; }
  .photo-grid li:nth-child(12) { --begin: 77; --end: 109; }
  .photo-grid li:nth-child(13) { --begin: 77; --end: 111; }
  .photo-grid li:nth-child(14) { --begin: 73; --end: 109; }
  .photo-grid li:nth-child(15) { --begin: 77; --end: 110; }
}

.registration {
  align-items: center;
  width: min(87%, 1300px);
  gap: clamp(22px, 4vw, 70px);
  padding: clamp(22px, 3vw, 54px);
  margin: clamp(26px, 4vw, 68px) auto clamp(86px, 9vw, 150px);
  border: 1px solid #bb8b56;
  background:
    radial-gradient(ellipse at 0 55%, #ffedca 0, transparent 65%),
    linear-gradient(125deg, #fff5df, #efd1a7);
  box-shadow: inset 0 0 0 5px #fff1d968, 0 12px 38px #18060c65;
}
.registration-copy p, #lead-form { font-family: var(--serif); }
.registration-copy .date {
  display: inline-block;
  padding: .3em .85em;
  border: 1px solid #bd946e;
  border-radius: 99px;
  font-size: clamp(13px, 1.1vw, 19px);
}
#lead-form label { font-weight: 400; }
.submit.action-gold { width: 100%; }
.invitation-thumb > span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 8px solid transparent;
  border-left: 13px solid #fff0d2;
}

@media (max-width: 720px) {
  .gifts > .wrap { width: min(92%, 580px); }
  .gifts::before {
    background-image: linear-gradient(180deg, #efdfc8, transparent clamp(42px, 5vw, 96px)),
      url(/assets/art/figma-carriage-compact.webp);
    background-size: auto, auto 530px;
    background-position: center, center top;
    mask-image: linear-gradient(#000 410px, transparent 530px);
  }
  .gift-grid img { width: min(56%, 185px); margin-bottom: -17%; }
  .gift-grid li > div { grid-template-rows: auto auto 1fr; padding-top: 22%; }
  .dream::before { background-image: url(/assets/art/figma-dream-scene-compact.webp); }
  .dream-photos { width: 86%; }
  .dream-photos li { padding: 5% 5% 15%; }
  .speaker { grid-template-columns: 1fr; }
  .speaker-window { width: min(79%, 380px); margin: 0 auto -14px; }
  .speaker > .paper::after { display: none; }
  .speaker .action { width: 100%; }
  .gallery .paper::before { display: none; }
  .photo-grid li { align-self: start; }
  .registration { width: 92%; }
}

dialog.registration:not([open]), dialog#miracle-result:not([open]) { display: none; }
dialog.registration, dialog#miracle-result {
  position: fixed;
  width: min(92vw, 520px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #b88a58;
  border-radius: 19px;
  box-shadow: inset 0 0 0 4px #fff4da8c, 0 14px 45px #1a070c9c;
}
dialog.registration { display: block; }
dialog.registration::backdrop, dialog#miracle-result::backdrop { background: #1b090ec9; }
.registration-copy { text-align: center; margin-bottom: 18px; }
.registration-copy p { max-width: none; }
dialog.registration h2, #miracle-title {
  color: var(--ink);
  font-size: clamp(29px, 4vw, 40px);
}
dialog .popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  font-size: 24px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  border: 1px solid #ae835a;
}
dialog.registration #lead-form { gap: 10px; }
dialog.registration #form-status:empty { min-height: 0; }
dialog#miracle-result {
  width: min(94vw, 1000px);
  padding: clamp(12px, 2.5vw, 30px);
  overscroll-behavior: contain;
}
#miracle-result .popup-close {
  position: sticky;
  top: 0;
  display: block;
  margin-left: auto;
  z-index: 1;
  background: #fae9d0;
}
.miracle-summary {
  max-width: 62ch;
  margin: 4px auto clamp(20px, 3vw, 32px);
  text-align: center;
}
#miracle-title { margin-block: .1em .45em; text-transform: uppercase; }
.station-gifts .action { max-width: 100%; white-space: normal; }

dialog#registration-ticket::backdrop { background: #1b090ec9; }
dialog#registration-ticket .popup-close,
dialog.registration .popup-close {
  color: #ffeacc;
  background: #311119;
  z-index: 1;
}
dialog.registration {
  padding-top: 55px;
  background: linear-gradient(#290b14b8, #20090ee0), var(--leather) center / cover, #34111a;
  color: var(--cream);
  box-shadow: inset 0 0 0 3px #edc08136, 0 14px 45px #1a070c9c;
}
dialog.registration .registration-copy {
  padding: 16px 16px 21px;
  border: 1px solid #c39a58;
  border-radius: 11px;
  color: var(--ink);
  background: radial-gradient(ellipse at 35% 25%, #f8e9c3, transparent 78%),
    linear-gradient(134deg, #caa36a, #ead19a 48%, #c39d65);
}
dialog.registration .registration-copy .date {
  padding: 0;
  border: 0;
  background: none;
}
dialog.registration #form-status { color: #ffeacc; }

.gifts > .winter-snow, .dream > .winter-snow, .final > .winter-snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rail, .gifts, .dream, .final { view-timeline-name: --winter-scene; }

    .rail .winter-snow::before, .rail .winter-snow::after,
    .gifts .winter-snow::before, .gifts .winter-snow::after,
    .dream .winter-snow::before, .dream .winter-snow::after,
    .final .winter-snow::after {
      animation: snow-on-scroll linear both;
      animation-timeline: --winter-scene;
    }

    .winter-snow::after { --snow-travel: 76px; }
    .dream-photos li {
      animation: photos-on-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 43%;
    }
    .dream-photos li:nth-child(even) { --photo-travel: 27px; }

    .gift-grid img {
      animation: ornaments-on-scroll linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
    .gift-grid li:nth-child(even) img { --ornament-swing: 4deg; }
  }
}

@keyframes snow-on-scroll {
  from { translate: 0 -12px; }
  to { translate: 0 var(--snow-travel, 38px); }
}

@keyframes photos-on-scroll {
  from { translate: 0 var(--photo-travel, 14px); }
  to { translate: 0 0; }
}

@keyframes ornaments-on-scroll {
  0% { rotate: var(--ornament-swing, -4deg); }
  55% { rotate: calc(var(--ornament-swing, -4deg) * -.45); }
  100% { rotate: 0deg; }
}

.cursor-spark {
  position: fixed;
  z-index: 2;
  width: 12px;
  aspect-ratio: 1;
  background: radial-gradient(circle, #fff9e8 0 20%, #ffdd8b 45%, #d78832 100%);
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
  pointer-events: none;
}

body:has(dialog[open]) .cursor-spark { visibility: hidden; }

.page-snow, .snow-toggle { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .snow-toggle:not([hidden]) {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #c99d69;
    border-radius: 50%;
    background: #2b1019;
    color: #ffdfa0;
    font: 21px/1 var(--sans);
  }
  .snow-toggle[aria-pressed="false"] { color: #f5ebde; }
  .snow-toggle:focus-visible { outline: 2px solid #ffdfa0; outline-offset: 3px; }

  .snow-toggle:not([hidden])[aria-pressed="true"] + .page-snow {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: block;
    overflow: clip;
    pointer-events: none;
  }
  .page-snow::before, .page-snow::after {
    content: "";
    position: absolute;
    inset: -240px 0 0 -120px;
    background:
      radial-gradient(circle at 11% 22%, #fff9eb 0 1px, transparent 2px),
      radial-gradient(circle at 39% 65%, #ffebc9 0 1.3px, transparent 2.6px),
      radial-gradient(circle at 74% 12%, #fffbf0 0 .7px, transparent 1.6px),
      radial-gradient(circle at 86% 81%, #fff3db 0 1px, transparent 2px);
    background-size: 120px 240px;
    opacity: .56;
    animation: snowfall 13s linear infinite;
  }
  .page-snow::after {
    background-position: 53px 89px;
    opacity: .32;
    animation-duration: 20s;
  }
  body:has(dialog[open]) .page-snow { visibility: hidden; }
  body:has(dialog[open]) .page-snow::before,
  body:has(dialog[open]) .page-snow::after { animation-play-state: paused; }

  @keyframes snowfall {
    to { transform: translate3d(120px, 240px, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-spark { display: none; }
}

@media (max-width: 720px), (max-height: 740px) {
  #registration-ticket #close-ticket {
    position: sticky;
    top: 0;
    display: block;
    margin: -43px 0 3px auto;
  }
}

.invitation-dock { width: clamp(90px, 10vw, 148px); }
.invitation-slot { display: contents; }
@media (max-width: 720px) {
  .invitation-slot {
    display: block;
    width: min(92%, 580px);
    min-height: 60px;
    margin: 14px auto 0;
  }
  .invitation-dock.is-inline {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: min(100%, 360px);
    margin-inline: auto;
  }
  .invitation-dock.is-inline .invitation {
    grid-template-columns: 38px 1fr;
    align-items: center;
    width: 100%;
    padding: 5px 8px;
  }
  .invitation-dock.is-inline .invitation-thumb { width: 38px; }
  .invitation-dock.is-inline #invitation-audio-toggle {
    width: auto;
    min-width: 98px;
    margin: 0;
    padding-inline: 8px;
  }
  body:has(.invitation-dock.is-inline) .snow-toggle { display: none; }
}
