/* ============================================================
   THE MERIDIAN SLEEPER — one line, one night
   Palette: midnight navy · sleeper burgundy · polished brass ·
            moonlight silver · reading-lamp amber
   Type: Jost (railway-poster geometry) + Spline Sans Mono (timetable)
   ============================================================ */

:root {
  --navy-deep: #060d1a;
  --navy: #0c1830;
  --navy-soft: #142239;
  --navy-panel: #101d33;
  --burgundy: #5e1f2c;
  --burgundy-bright: #8a2f3d;
  --burgundy-deep: #3c141d;
  --brass: #c9a24b;
  --brass-bright: #ecd08a;
  --brass-dim: #8a7134;
  --silver: #bfcadd;
  --silver-dim: #7f8ca6;
  --amber: #efae55;
  --amber-soft: #f3c079;
  --sky: #0c1830;               /* driven by JS as the night passes */
  --line: rgba(191, 202, 221, 0.16);
  --spine-w: 104px;
  --display: "Jost", "Futura", sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background-color: var(--navy);
  background-color: var(--sky);
  color: var(--silver);
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--burgundy-bright); color: #fff; }

a { color: var(--brass-bright); text-decoration: none; }
a:hover { color: var(--amber-soft); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- type utilities ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}

.time-stamp {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--brass-bright);
  letter-spacing: 0.02em;
  line-height: 1;
}

h1, h2, h3 { font-weight: 500; color: #eef2f9; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  max-width: 17ch;
  text-wrap: balance;
}

.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 52ch; }

/* ---------- header ---------- */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(to bottom, rgba(6, 13, 26, 0.92), rgba(6, 13, 26, 0));
  pointer-events: none;
}
.masthead > * { pointer-events: auto; }

.brand {
  display: flex; flex-direction: column; line-height: 1.15;
  color: #eef2f9;
}
.brand-name {
  font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.brand-route {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.28em; color: var(--brass);
}

.masthead nav { display: flex; gap: 1.6rem; align-items: center; }
.masthead nav a {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.masthead nav a:hover { color: var(--brass-bright); border-bottom-color: var(--brass-dim); }
.masthead nav a.nav-cta {
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  border-bottom: none;
}
.masthead nav a.nav-cta:hover { filter: brightness(1.07); color: var(--navy-deep); }

/* ---------- timetable spine ---------- */

.spine {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--spine-w);
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.spine-clock {
  position: absolute;
  top: 4.6rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.spine-clock .clock-label {
  display: block; font-size: 0.52rem; font-weight: 500;
  letter-spacing: 0.3em; color: var(--silver-dim);
}
.spine-clock .clock-time {
  display: block; font-size: 1.05rem; font-weight: 700;
  color: var(--amber-soft);
}

.spine-track {
  position: relative;
  margin: 0 auto;
  height: min(58vh, 520px);
  width: 2px;
  background: var(--line);
}
.spine-progress {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--brass-dim), var(--brass-bright));
}
.spine-now {
  position: absolute; left: 50%; top: 0;
  width: 11px; height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 3px rgba(239, 174, 85, 0.55);
}

.spine-stop {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto;
}
.spine-stop .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--silver-dim);
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}
.spine-stop .stop-time {
  position: absolute; top: -3px; left: 14px;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--silver-dim);
  white-space: nowrap;
  transition: color 0.4s;
}
.spine-stop.passed .dot { background: var(--brass); border-color: var(--brass); }
.spine-stop.active .dot {
  background: var(--amber); border-color: var(--amber-soft);
  transform: scale(1.5);
}
.spine-stop.active .stop-time { color: var(--amber-soft); }

/* mobile journey chip */
.journey-chip {
  display: none;
  position: fixed;
  bottom: 0.9rem; left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  align-items: baseline; gap: 0.55rem;
  background: rgba(6, 13, 26, 0.88);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.journey-chip .chip-time { font-size: 0.95rem; font-weight: 700; color: var(--amber-soft); }
.journey-chip .chip-stop {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver-dim);
}

/* ---------- layout ---------- */

main { margin-left: var(--spine-w); }

.section {
  position: relative;
  padding: clamp(5rem, 11vh, 8.5rem) clamp(1.4rem, 5vw, 5rem);
}
.section-inner { max-width: 1180px; margin: 0 auto; }

.station-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
}
.station-head .rule {
  flex: 1; height: 1px; min-width: 60px;
  background: linear-gradient(to right, var(--line), transparent);
  align-self: center;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* passing lights over dark sections */
.night-lights::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    transparent 44%,
    rgba(239, 174, 85, 0.05) 49%,
    rgba(239, 174, 85, 0.1) 50%,
    rgba(239, 174, 85, 0.05) 51%,
    transparent 56%);
  background-size: 300% 100%;
  animation: passing-light 9s linear infinite;
  mix-blend-mode: screen;
}
@keyframes passing-light {
  0%   { background-position: 120% 0; }
  38%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.002em;
  margin: 1.1rem 0 1.4rem;
  text-wrap: balance;
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-bright);
}
.hero-copy .lede { color: var(--silver); margin-bottom: 2.2rem; }

/* departure board */
.dep-board {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0 2.4rem;
  margin-bottom: 2.4rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  width: fit-content;
}
.dep-board dt {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--silver-dim);
  grid-row: 1;
}
.dep-board dd {
  font-size: 1.35rem; font-weight: 700; color: #eef2f9;
  grid-row: 2;
}
.dep-board dd small {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em;
  color: var(--brass); display: block; margin-top: 0.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 1.7rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-brass {
  background: linear-gradient(135deg, var(--brass-bright), var(--brass) 55%, var(--brass-dim));
  color: var(--navy-deep);
}
.btn-brass::after { /* glint */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.65) 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-brass:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brass-dim); color: var(--brass-bright); }

/* the night window */
.window-car {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.9rem);
  background:
    linear-gradient(160deg, #1d2b45 0%, #101c31 40%, #0a1425 100%);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(191, 202, 221, 0.14),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.window-frame {
  position: relative;
  border-radius: 18px;
  padding: 7px;
  background: linear-gradient(150deg, #e7cd8d 0%, #a9843c 26%, #63501f 52%, #c9a24b 78%, #8a7134 100%);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.8);
}
.window-glass {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-deep);
}
.window-glass video,
.window-glass img.poster-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
/* grade the footage into the palette */
.window-glass::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(6, 13, 26, 0.5) 100%),
    linear-gradient(to bottom, rgba(12, 24, 48, 0.18), rgba(94, 31, 44, 0.1));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.window-glass::before { /* faint glass sheen */
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 55%, rgba(191, 202, 221, 0.07) 70%, transparent 84%);
  pointer-events: none;
}

/* curtains */
.curtain {
  position: absolute;
  top: -4%; bottom: -4%;
  width: 17%;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(to right,
      #6b2331 0 12%, #451621 12% 26%, #7c2938 26% 40%, #3c141d 40% 54%,
      #6b2331 54% 70%, #451621 70% 84%, #74263400 100%);
  filter: drop-shadow(6px 0 14px rgba(0, 0, 0, 0.55));
}
.curtain.left { left: -2%; border-radius: 0 40% 45% 0 / 0 8% 8% 0; }
.curtain.right {
  right: -2%; transform: scaleX(-1);
  border-radius: 0 40% 45% 0 / 0 8% 8% 0;
}
.curtain::after { /* brass tieback */
  content: "";
  position: absolute;
  right: 8%; top: 58%;
  width: 60%; height: 7px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--brass-bright), var(--brass-dim));
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* peek out the window: curtains draw back a touch on hover */
.curtain { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.window-frame:hover .curtain.left { transform: translateX(-38%); }
.window-frame:hover .curtain.right { transform: scaleX(-1) translateX(-38%); }
@media (prefers-reduced-motion: reduce) {
  .curtain { transition: none; }
  .window-frame:hover .curtain.left { transform: none; }
  .window-frame:hover .curtain.right { transform: scaleX(-1); }
}

.window-plaque {
  position: absolute;
  left: 50%; bottom: -13px;
  transform: translateX(-50%);
  z-index: 3;
  background: linear-gradient(to bottom, #e7cd8d, #a9843c);
  color: #2a2007;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.35rem 1rem 0.3rem;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* ---------- photo sections ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split.flip { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.split.flip .photo-frame { order: 2; }

.photo-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.75);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-frame:hover img { transform: scale(1.03); }
.photo-frame::after { /* palette grade */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 13, 26, 0.32), transparent 45%);
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  left: 1.1rem; bottom: 0.95rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-bright);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.fact-list { list-style: none; margin-top: 2rem; }
.fact-list li {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.fact-list li:last-child { border-bottom: 1px solid var(--line); }
.fact-list .fact-k {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brass);
  min-width: 4.4rem;
}

/* ---------- cabin selector ---------- */

.carriage-wrap { margin-top: 1rem; }
.carriage-svg { width: 100%; height: auto; display: block; overflow: visible; }

.car-class { cursor: pointer; }
/* berths fold flat against the back wall (side elevation: a slim panel);
   hover / focus / selection folds them down into a made bed */
.car-class .bed,
.car-class .bunk-upper,
.car-class .bunk-lower {
  transform-box: fill-box;
  transform-origin: center top;
  transform: scaleY(0.24);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.car-class .soft { opacity: 0; transition: opacity 0.35s; }
.car-class:hover .soft,
.car-class:focus-visible .soft,
.car-class.selected .soft { opacity: 1; transition-delay: 0.18s; }
.car-class .lamp-glow { opacity: 0; transition: opacity 0.45s; }
.car-class .comp-fill { transition: fill 0.45s; }
.car-class:hover .lamp-glow,
.car-class:focus-visible .lamp-glow,
.car-class.selected .lamp-glow { opacity: 1; }
.car-class:hover .comp-fill,
.car-class:focus-visible .comp-fill { fill: rgba(239, 174, 85, 0.06); }
.car-class.selected .comp-fill { fill: rgba(239, 174, 85, 0.1); }
.car-class:hover .bed, .car-class:focus-visible .bed, .car-class.selected .bed,
.car-class:hover .bunk-upper, .car-class:focus-visible .bunk-upper, .car-class.selected .bunk-upper,
.car-class:hover .bunk-lower, .car-class:focus-visible .bunk-lower, .car-class.selected .bunk-lower {
  transform: scaleY(1);
}
.car-class:focus { outline: none; }
.car-class:focus-visible { outline: none; }
.car-class:focus-visible .comp-outline { stroke: var(--amber); stroke-width: 2; }
.car-class.selected .comp-outline { stroke: var(--brass); stroke-width: 1.6; }

.svg-label {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  fill: var(--silver);
  text-transform: uppercase;
}
.svg-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  fill: var(--brass);
  letter-spacing: 1px;
}
.car-class.selected .svg-label { fill: var(--brass-bright); }
.svg-hint {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  fill: var(--silver-dim);
  text-transform: uppercase;
}

.cabin-detail {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(150deg, var(--navy-panel), rgba(16, 29, 51, 0.4));
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  padding: 1.8rem 2.2rem;
}
.cabin-detail h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.35rem; }
.cabin-detail .cabin-sub {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass);
}
.cabin-detail p { margin-top: 0.7rem; font-size: 0.98rem; color: var(--silver); }
.cabin-amenities { list-style: none; font-size: 0.92rem; }
.cabin-amenities li {
  padding: 0.42rem 0 0.42rem 1.4rem;
  position: relative;
  border-top: 1px dotted var(--line);
}
.cabin-amenities li:first-child { border-top: none; }
.cabin-amenities li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--brass);
}
.cabin-price-block { text-align: right; }
.cabin-price-block .price {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 2.1rem; font-weight: 700; color: var(--brass-bright);
  display: block; line-height: 1.1;
}
.cabin-price-block .per {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-dim);
}
.cabin-price-block .btn { margin-top: 1.1rem; }

/* ---------- border section ---------- */

.border-section { text-align: center; }
.border-section .section-inner { max-width: 760px; }
.border-section .time-stamp { font-size: clamp(3.4rem, 9vw, 6.2rem); }
.border-section .section-title { margin: 1.2rem auto 1.5rem; max-width: 24ch; }
.border-section .lede { margin: 0 auto; }

.stamp {
  display: inline-block;
  margin-top: 3rem;
  padding: 1rem 1.8rem;
  border: 2px solid var(--burgundy-bright);
  border-radius: 6px;
  transform: rotate(-4deg);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-bright);
  opacity: 0.9;
  mask-image: radial-gradient(140% 140% at 30% 30%, black 55%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.85) 100%);
  -webkit-mask-image: radial-gradient(140% 140% at 30% 30%, black 55%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.85) 100%);
}
.stamp .stamp-time { display: block; font-size: 1.3rem; letter-spacing: 0.12em; margin-top: 0.2rem; }

/* ---------- dawn ---------- */

.dawn-line {
  height: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, rgba(239, 174, 85, 0.7), transparent);
}

/* ---------- booking ---------- */

.booking { padding-bottom: 7rem; }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: start;
}

.booking-form {
  background: linear-gradient(160deg, var(--navy-panel), rgba(16, 29, 51, 0.45));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  position: relative;
}
.booking-form::before { /* ticket punch edge */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(to right, var(--brass) 0 26px, transparent 26px 38px);
  opacity: 0.7;
}

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.field input, .field select {
  width: 100%;
  background: rgba(6, 13, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #eef2f9;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.15);
}
.field input::placeholder { color: var(--silver-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--silver-dim);
  margin-top: 1.2rem;
}

/* confirmation ticket */
.ticket {
  border: 1px dashed var(--brass);
  border-radius: 8px;
  padding: 2rem;
  background:
    radial-gradient(circle at 0 50%, var(--sky) 9px, transparent 9.5px),
    radial-gradient(circle at 100% 50%, var(--sky) 9px, transparent 9.5px),
    linear-gradient(160deg, rgba(94, 31, 44, 0.25), rgba(16, 29, 51, 0.7));
  font-family: var(--mono);
}
.ticket .tk-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem; margin-bottom: 1.1rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--brass-bright);
}
.ticket dl {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.4rem;
  font-variant-numeric: tabular-nums;
}
.ticket dt {
  font-size: 0.56rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--silver-dim);
}
.ticket dd { font-size: 0.98rem; font-weight: 700; color: #eef2f9; }
.ticket .tk-foot {
  margin-top: 1.3rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--silver);
  font-family: var(--display);
}

/* ---------- footer ---------- */

footer {
  margin-left: var(--spine-w);
  border-top: 1px solid var(--line);
  padding: 2.6rem clamp(1.4rem, 5vw, 5rem) 3.4rem;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem; flex-wrap: wrap;
}
footer .fine {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--silver-dim);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .night-lights::after { animation: none; opacity: 0; }
  .btn-brass::after { display: none; }
  .photo-frame img, .car-class .bed, .car-class .bunk-upper, .car-class .bunk-lower, .car-class .soft { transition: none; }
  .spine-now { box-shadow: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-top: 7.5rem; }
  .cabin-detail { grid-template-columns: 1fr; gap: 1.4rem; }
  .cabin-price-block { text-align: left; }
}

@media (max-width: 700px) {
  /* the carriage drawing shrinks with the viewBox — hold its type legible;
     prices move to the detail panel below at this size */
  .svg-label { font-size: 26px; letter-spacing: 2px; }
  .svg-price { display: none; }
  .svg-hint { font-size: 22px; }
}

@media (max-width: 900px) {
  :root { --spine-w: 0px; }
  .spine { display: none; }
  .journey-chip { display: flex; }
  main, footer { margin-left: 0; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 2rem; }
  .split.flip .photo-frame { order: 0; }
  .booking-grid { grid-template-columns: 1fr; }
  .masthead nav a:not(.nav-cta):not(.keep) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .masthead { padding: 0.75rem 0.9rem; }
  .masthead nav { gap: 0.8rem; }
  .masthead nav a { font-size: 0.6rem; letter-spacing: 0.14em; white-space: nowrap; }
  .masthead nav a.nav-cta { padding: 0.45rem 0.7rem; letter-spacing: 0.12em; }
  .brand { max-width: 46vw; }
  .dep-board { gap: 0 1.3rem; }
  .dep-board dd { font-size: 1.05rem; }
  .field-row { grid-template-columns: 1fr; }
  .curtain { width: 14%; }
  .brand-name { font-size: 0.88rem; letter-spacing: 0.18em; }
  .ticket dl { grid-template-columns: 1fr; }
  .section { padding-left: 1.2rem; padding-right: 1.2rem; }
}
