/* A Journey of Two Hearts — base styles, stage layers, chrome */
:root {
  /* Palette colours: the defaults are "Forest and champagne"; js/core/theme.js swaps them for other palettes */
  --forest: #0c2a1f;
  --forest-deep: #04140e;
  --forest-raise: #0e3426;
  --midnight: #030605;
  --champagne: #e9d3a1;
  --gold: #d8b878;
  --gold-antique: #b08a4a;
  --bronze: #8a6440;
  --ivory: #f7f0e0;
  --ivory-dim: rgba(247, 240, 224, 0.78);
  --line: color-mix(in srgb, var(--gold) 38%, transparent);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Cinzel", "Cormorant Garamond", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --gold-grad: linear-gradient(100deg, var(--gold-antique) 0%, var(--champagne) 28%, var(--gold) 48%, color-mix(in srgb, var(--champagne) 55%, white) 62%, var(--gold-antique) 82%, var(--champagne) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; }
html { -webkit-text-size-adjust: 100%; background: var(--midnight); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; min-height: 100%;
  background: var(--midnight); color: var(--ivory);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked, body.menu-open { overflow: hidden; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ivory); color: var(--forest); padding: 10px 16px; border-radius: 6px; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.noscript { padding: 20vh 24px; text-align: center; font-family: var(--serif); }

/* ---------------------------------------------------------------- stage */
.stage { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; background: var(--midnight); }
.stage__world, .stage__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__venue, .stage__car, .stage__balloons { position: absolute; inset: 0; }
.venue, .car { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; }
.venue { width: 1000px; height: 560px; transform-origin: 500px 540px; display: none; }
.car { width: 400px; height: 270px; transform-origin: 200px 258px; }
/* Venue photo: feathered into the dusk so it reads as part of the scene, warmed to evening light */
.venue--photo img { position: absolute; left: 0; top: -22px; width: 1000px; height: 562px; object-fit: cover; max-width: none;
  filter: brightness(.9) saturate(1.05) sepia(.12) contrast(1.04);
  -webkit-mask-image: radial-gradient(ellipse 54% 60% at 50% 54%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 60% at 50% 54%, #000 58%, transparent 100%); }
.car__svg, .venue__svg { width: 100%; height: 100%; overflow: visible; }
.car__layer { position: absolute; left: 0; top: 0; }
.car__img { position: absolute; max-width: none; height: auto; user-select: none; pointer-events: none;
  filter: brightness(calc(1 - var(--shade, 0) * .82)) saturate(calc(1 - var(--shade, 0) * .35)); }
.car__lights { mix-blend-mode: screen; }
.stage__dim { position: absolute; inset: 0; opacity: 0; }
.stage__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.stage__grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); } 60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); } }
.letterbox { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; }
.letterbox--top { top: 0; } .letterbox--bottom { bottom: 0; }
.stage__black { position: absolute; inset: 0; background: #000; opacity: 1; z-index: 4; }

.car__balloon { transform-box: view-box; transform-origin: 262px 112px; animation: balloon 5.5s ease-in-out infinite; }
@keyframes balloon { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
.car__ribbon { transform-box: view-box; transform-origin: 204px 170px; animation: ribbon 1.7s ease-in-out infinite; }
@keyframes ribbon { 0%, 100% { transform: rotate(0deg) skewX(0deg); } 50% { transform: rotate(2.5deg) skewX(5deg); } }
.v-bulb { animation: bulb 3s ease-in-out infinite; filter: drop-shadow(0 0 3px #ffd88a); }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------------------------------------------------------------- typography helpers */
.eyebrow { font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--champagne); margin: 0 0 14px; }
.amp { font-family: var(--serif); font-style: italic; color: var(--gold); padding: 0 .15em; }
.gold-text, .plaque__day, .finale__name, .dest__venue, .cd-unit__num {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
h1, h2, h3, .journey__names, .plaque__names, .dest__card, .countdown__when { text-wrap: balance; }
.split { display: inline; }
.split__word { display: inline-block; white-space: nowrap; }
.split__char { display: inline-block; }
.split__space { display: inline; }
/* Letter-split gold type: luminous champagne (gradient clipping breaks on animated letters) */
.gold-glow { color: var(--champagne); text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent), 0 1px 0 rgba(120, 84, 30, .5); }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 18px auto; max-width: 360px; }
.divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.star { color: var(--gold); }
.monogram { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 18px; letter-spacing: .08em; color: var(--champagne); }
.monogram .star { color: var(--gold); }

.twinkle { animation: twinkle 3.2s ease-in-out infinite; }
.twinkle.t2 { animation-delay: -1.1s; } .twinkle.t3 { animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 30px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s;
}
.btn--sm { --h: 42px; padding: 0 22px; font-size: 11.5px; }
.btn--gold { color: #1a1408; background: linear-gradient(120deg, var(--gold-antique), var(--champagne) 45%, var(--gold) 70%, var(--gold-antique)); background-size: 200% 100%; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--gold) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--gold) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { color: var(--champagne); border-color: var(--line); background: color-mix(in srgb, var(--forest-deep) 35%, transparent); }
.btn--ghost:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- gate */
.gate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--forest) 55%, transparent), rgba(0, 0, 0, .96) 70%), #000;
  transition: opacity 1.6s var(--ease), visibility 1.6s; }
.gate--gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__inner { max-width: 520px; }
.gate__ring { position: relative; width: 112px; height: 112px; margin: 0 auto 28px; }
.gate__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gate__track { fill: none; stroke: color-mix(in srgb, var(--gold) 15%, transparent); stroke-width: 1; }
.gate__arc { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 340; stroke-dashoffset: 300; animation: load 2.4s var(--ease) infinite; }
.gate__arc.is-full { animation: none; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
@keyframes load { 0% { stroke-dashoffset: 330; } 50% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 330; transform: rotate(360deg); transform-origin: 60px 60px; } }
.gate__mono { position: absolute; inset: 0; justify-content: center; font-size: 20px; }
.gate__eyebrow { font-size: 11.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--champagne); margin: 0 0 10px; opacity: .85; }
.gate__title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 6vw, 44px); letter-spacing: .14em; line-height: 1.25; margin: 0 0 34px; color: var(--ivory); }
.gate__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 150px; }
.gate__actions.is-ready > * { animation: rise 1s var(--ease) both; }
.gate__actions.is-ready > *:nth-child(2) { animation-delay: .12s; } .gate__actions.is-ready > *:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gate__note { margin: 6px 0 0; font-size: 12.5px; color: var(--ivory-dim); letter-spacing: .04em; }
.dots { display: inline-flex; gap: 8px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: dot 1.4s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------------------------------------------------------------- header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 34px) 14px; pointer-events: none;
  opacity: 0; transform: translateY(-12px); transition: opacity 1.4s var(--ease) 2s, transform 1.4s var(--ease) 2s; }
.header.is-visible { opacity: 1; transform: none; }
.header > * { pointer-events: auto; }
.header__mono { text-decoration: none; padding: 8px 4px; }
.header__actions { display: flex; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--forest-deep) 42%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--champagne); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: border-color .3s, background-color .3s; }
.icon-btn:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.sound__bars i { width: 2px; height: 3px; background: var(--gold); border-radius: 1px; transition: height .3s; }
.sound.is-on .sound__bars i { animation: bars 1.1s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: .25s; } .sound.is-on .sound__bars i:nth-child(3) { animation-delay: .5s; } .sound.is-on .sound__bars i:nth-child(4) { animation-delay: .15s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 13px; } }
/* Quiet "keep going" icon (appears when a guest pauses): a thin ring with two soft chevrons, no words */
.scroll-hint { position: fixed; left: 50%; bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 85; pointer-events: none;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.scroll-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.scroll-hint__ring { position: relative; display: block; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(247, 240, 224, .6); background: rgba(0, 0, 0, .28);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.scroll-hint__ring i { position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-left: 1.5px solid rgba(247, 240, 224, .95); border-top: 1.5px solid rgba(247, 240, 224, .95);
  transform: rotate(45deg); animation: hintUp 1.8s ease-in-out infinite; }
.scroll-hint__ring i:first-child { top: 14px; } .scroll-hint__ring i:last-child { top: 20px; animation-delay: .22s; }
/* chevrons point up on phones (the way the finger swipes) and down on computers (the way the page moves) */
@keyframes hintUp { 0%, 100% { opacity: .3; transform: translateY(2px) rotate(45deg); } 50% { opacity: 1; transform: translateY(-2px) rotate(45deg); } }
@media (hover: hover) and (pointer: fine) {
  .scroll-hint__ring i { border: 0; border-right: 1.5px solid rgba(247, 240, 224, .95); border-bottom: 1.5px solid rgba(247, 240, 224, .95); animation-name: hintDown; }
  .scroll-hint__ring i:first-child { top: 11px; } .scroll-hint__ring i:last-child { top: 17px; }
}
@keyframes hintDown { 0%, 100% { opacity: .3; transform: translateY(-2px) rotate(45deg); } 50% { opacity: 1; transform: translateY(2px) rotate(45deg); } }

/* Preview-only palette switcher (bottom-left) */
.theme-picker { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 170; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.theme-picker__toggle { height: 48px; padding: 0 20px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  color: #1a1408; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border: 0;
  background: linear-gradient(120deg, var(--gold-antique), var(--champagne) 50%, var(--gold));
  box-shadow: 0 8px 26px -6px rgba(0, 0, 0, .8), 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent);
  animation: pickerPulse 2.6s ease-in-out infinite; transition: transform .3s var(--ease); }
@keyframes pickerPulse { 0%, 100% { box-shadow: 0 8px 26px -6px rgba(0, 0, 0, .8), 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); } 50% { box-shadow: 0 8px 26px -6px rgba(0, 0, 0, .8), 0 0 0 8px color-mix(in srgb, var(--gold) 12%, transparent); } }
.theme-picker__toggle:hover { transform: scale(1.06); }
.theme-picker__panel { width: min(280px, calc(100vw - 32px)); padding: 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px;
  background: color-mix(in srgb, var(--forest-deep) 94%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.theme-picker__panel[hidden] { display: none; }
.theme-picker__title { margin: 0 0 4px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); display: flex; justify-content: space-between; gap: 8px; }
.theme-picker__title span { letter-spacing: .08em; text-transform: none; color: var(--ivory-dim); font-size: 11px; }
.theme-picker__chip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid transparent; color: var(--ivory); font-size: 13.5px; transition: background-color .2s, border-color .2s; }
.theme-picker__chip:hover { background: rgba(255, 255, 255, .05); }
.theme-picker__chip[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.theme-picker__sw { display: inline-flex; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.theme-picker__sw i { width: 14px; height: 22px; }

/* Music player button: a gold-ringed disc that spins while playing */
.music-btn { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--champagne);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--forest-raise) 90%, transparent), color-mix(in srgb, var(--forest-deep) 85%, transparent));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.music-btn:hover { transform: scale(1.06); border-color: var(--gold); }
.music-btn.is-on { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent), 0 0 24px color-mix(in srgb, var(--gold) 35%, transparent); }
.music-btn__disc { position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); }
.music-btn.is-on .music-btn__disc { animation: discSpin 6s linear infinite; border-style: solid; border-color: color-mix(in srgb, var(--gold) 35%, transparent) color-mix(in srgb, var(--gold) 90%, transparent) color-mix(in srgb, var(--gold) 35%, transparent) color-mix(in srgb, var(--gold) 90%, transparent); }
@keyframes discSpin { to { transform: rotate(360deg); } }
.music-btn__icon { position: relative; width: 22px; height: 22px; }
.music-btn .eq { transform-box: fill-box; transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.music-btn .eq2 { animation-delay: -.3s; } .music-btn .eq3 { animation-delay: -.6s; } .music-btn .eq4 { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.menu-btn__lines { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-btn__lines i { width: 18px; height: 1px; background: var(--gold); }
.menu-btn__lines i:last-child { width: 12px; margin-left: 6px; }
@media (max-width: 560px) { .icon-btn__label { display: none; } .icon-btn { width: 44px; padding: 0; justify-content: center; } }

/* ---------------------------------------------------------------- menu */
.menu { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 80px 24px 40px;
  background: color-mix(in srgb, var(--forest-deep) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu__pattern { position: absolute; inset: 0; opacity: .5; pointer-events: none; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); }
.menu__close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: clamp(16px, 3vw, 34px); width: 44px; padding: 0; justify-content: center; font-size: 24px; line-height: 1; }
.menu__nav { position: relative; width: min(520px, 100%); }
.menu__eyebrow { text-align: center; font-family: var(--display); letter-spacing: .14em; font-size: 14px; color: var(--champagne); margin: 0 0 26px; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.menu.is-open li { opacity: 1; transform: none; }
.menu li button { width: 100%; display: flex; align-items: baseline; gap: 18px; padding: 11px 6px; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 14%, transparent); cursor: pointer; text-align: left; }
.menu__num { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold-antique); }
.menu__label { font-family: var(--serif); font-size: clamp(22px, 4.6vw, 30px); font-weight: 400; color: var(--ivory); transition: color .3s, transform .4s var(--ease); }
.menu li button:hover .menu__label, .menu li button.is-active .menu__label { color: var(--champagne); transform: translateX(6px); }
.menu li button.is-active .menu__num { color: var(--champagne); }
.menu__foot { text-align: center; margin: 28px 0 0; font-size: 12px; letter-spacing: .12em; color: var(--ivory-dim); }

/* ---------------------------------------------------------------- progress rail */
.rail { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 80; display: none;
  opacity: 0; transition: opacity 1.2s var(--ease) 2.5s; }
.rail.is-visible { opacity: 1; }
@media (min-width: 1200px) and (min-height: 600px) { .rail { display: block; } }
.rail__line { position: absolute; right: 5px; top: 6px; bottom: 6px; width: 1px; background: color-mix(in srgb, var(--gold) 20%, transparent); }
.rail__fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); transition: transform .3s linear; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.rail button { position: relative; display: block; background: none; border: 0; padding: 0; cursor: pointer; width: 11px; height: 11px; }
.rail__label { position: absolute; right: 22px; top: 50%; margin-top: -8px; line-height: 16px; }
.rail__dot { display: block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold); background: var(--midnight); position: relative; transition: background-color .3s, transform .3s; }
.rail button.is-active .rail__dot { background: var(--gold); transform: scale(1.15); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 70%, transparent); }
.rail__label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; text-shadow: 0 1px 6px #000; }
.rail button:hover .rail__label, .rail button:focus-visible .rail__label, .rail button.is-active .rail__label { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 8px; text-align: left; position: relative; }
.field label, .choice legend { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); }
.field input, .field textarea {
  width: 100%; font: inherit; font-family: var(--serif); font-size: 20px; color: var(--ivory);
  background: rgba(0, 0, 0, .25); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 10px; padding: 13px 16px;
  transition: border-color .3s, box-shadow .3s, background-color .3s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 240, 224, .38); font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); background: rgba(0, 0, 0, .35); }
.field__count { align-self: flex-end; font-size: 11.5px; color: var(--ivory-dim); letter-spacing: .06em; }
.field__count.is-low { color: var(--champagne); }
.form-error { min-height: 1.4em; margin: 2px 0 0; color: #f2b8a0; font-size: 14px; }
.form-error:empty { min-height: 0; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-note { margin: 16px auto 0; max-width: 440px; font-size: 12.5px; line-height: 1.5; color: rgba(247, 240, 224, .66); letter-spacing: .02em; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--gold) 32%, transparent); border-radius: 10px; }
.demo-note span { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .stage__grain { display: none; }
}
