/* ===================================================
   APOSTOL SYSTEMS — shared stylesheet
   Auro-morphism: obsidian ground, champagne-gold hairlines, glass chassis.
   Restraint is the whole design. Nothing here is thicker than it must be.
   =================================================== */

:root {
  --obsidian:   #05070a;
  --carbon:     #0b0f14;
  --carbon-2:   #10151c;
  --gold:       #d4af37;
  --gold-warm:  #e6c56b;
  --gold-dim:   #8a6f2b;
  --hair:       rgba(212, 175, 55, 0.34);
  --hair-strong:rgba(212, 175, 55, 0.68);
  --glass:      rgba(8, 7, 5, 0.74);
  --glass-hi:   rgba(230, 197, 107, 0.055);
  --text:       #eadfc4;
  --text-muted: #9a917e;
  --radius:     20px;
  --pill:       999px;
  --blur:       20px;
  --ease:       cubic-bezier(.2, .9, .2, 1);
  --rail:       clamp(22px, 6vw, 104px);
}

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

html {
  background: var(--obsidian);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--obsidian);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(212, 175, 55, 0.28); color: #fff6de; }

:focus-visible {
  outline: 1px solid var(--gold-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

a { color: inherit; text-decoration: none; }

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

.display {
  font-family: 'Velox Chronos Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.06;
}

.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
}

.numeral {
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
}

.lede { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- canvas + scroll track ---------- */

#lab {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  /* the canvas never takes pointer events; every control is real DOM */
  pointer-events: none;
}

/* The scroll track exists only to give the rails something to travel along.
   In flat mode it is removed entirely and the document scrolls normally. */
#scrollTrack { position: relative; z-index: -1; }
.no-3d #scrollTrack { display: none; }

/* Hold the first paint until the renderer has a frame, so nobody sees a
   half-lit hall assemble itself. */
.booting .station,
.booting .chrome { opacity: 0 !important; }
.booting #lab { opacity: 0; }
#lab { transition: opacity 900ms var(--ease); }

/* ---------- persistent chrome ---------- */

.chrome {
  position: fixed;
  z-index: 20;
  transition: opacity 700ms var(--ease);
}

.topbar {
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--rail);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.86), rgba(5, 7, 10, 0));
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 26px; height: 26px; display: block; }
.brand-word {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}
.brand-word b { font-weight: 500; color: var(--gold-warm); }

/* progress hairline across the very top */
#progressBar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(to right, var(--gold-dim), var(--gold-warm));
  z-index: 30;
  will-change: transform;
}
.no-3d #progressBar { display: none; }

/* ---------- station rail (right-hand dots) ---------- */

.rail {
  top: 50%; right: calc(var(--rail) * 0.5);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
}
.no-3d .rail { display: none; }

.rail button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: var(--gold-dim);
  font: inherit;
}
.rail .rail-label {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
  white-space: nowrap;
}
.rail .rail-tick {
  width: 16px; height: 1px;
  background: var(--hair);
  transition: width 300ms var(--ease), background 300ms var(--ease);
}
.rail button:hover .rail-label,
.rail button:focus-visible .rail-label { opacity: 1; transform: translateX(0); }
.rail button:hover .rail-tick { width: 26px; background: var(--hair-strong); }
.rail button[aria-current='true'] .rail-tick {
  width: 30px;
  background: var(--gold-warm);
  box-shadow: 0 0 10px rgba(230, 197, 107, 0.6);
}
.rail button[aria-current='true'] { color: var(--gold-warm); }
.rail button[aria-current='true'] .rail-label { opacity: 1; transform: translateX(0); }

/* ---------- stations ---------- */

.station {
  position: fixed;
  left: var(--rail);
  top: 50%;
  width: min(520px, 44vw);
  z-index: 10;
  will-change: opacity, transform;
  /* the y-offset is applied by JS; this keeps it centred about that offset */
  margin-top: -1px;
  translate: 0 -50%;
}

.station--center {
  left: 50%;
  width: min(620px, 86vw);
  translate: -50% -50%;
}

.station--bottom {
  top: auto;
  bottom: clamp(90px, 14vh, 170px);
  left: 50%;
  width: min(1040px, 88vw);
  translate: -50% 0;
}

/* Panels never sit on bare 3D — a soft scrim keeps every word legible no
   matter what the hall is doing behind it. */
.panel {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 42%),
    var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(115%);
  box-shadow:
    inset 0 1px 0 rgba(230, 197, 107, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.55);
}

.panel::after {
  /* one hairline of light along the top edge */
  content: '';
  position: absolute;
  inset: 0 18% auto 18%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hair-strong), transparent);
}

.station h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin: 0.5rem 0 0.9rem; }
.station h2 { font-size: clamp(1.6rem, 2.9vw, 2.5rem); margin: 0.55rem 0 0.8rem; }
.station p + p { margin-top: 0.75rem; }
.station .lede { margin-top: 0.3rem; }

.station-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

/* ---------- lists ---------- */

.ledger { list-style: none; margin-top: 1.15rem; display: grid; gap: 0.05rem; }
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 8.5em) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ledger li:last-child { border-bottom: 1px solid rgba(212, 175, 55, 0.14); }
.ledger .key {
  color: var(--gold-warm);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ledger strong { color: var(--text); font-weight: 500; }

/* the +1 / 0 / -1 settlement table */
.verdicts { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.55rem; }
.verdicts li {
  display: grid;
  grid-template-columns: 3ch 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(212, 175, 55, 0.025);
}
.verdicts .sign {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: center;
}
.verdicts li[data-v='pos'] { border-color: rgba(230, 197, 107, 0.42); }
.verdicts li[data-v='pos'] .sign { color: var(--gold-warm); }
.verdicts li[data-v='hold'] .sign { color: var(--gold-dim); }
.verdicts li[data-v='neg'] { opacity: 0.72; }
.verdicts li[data-v='neg'] .sign { color: #8d6b6b; }
.verdicts strong { color: var(--text); font-weight: 500; }

/* ---------- doorway cards ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
  list-style: none;
}

.door {
  display: block;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--glass-hi), transparent 50%), var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.door:hover, .door:focus-visible {
  transform: translateY(-4px);
  border-color: var(--hair-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5), 0 0 34px rgba(212, 175, 55, 0.13);
}
.door h3 {
  font-family: 'Velox Chronos Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0.45rem 0 0.4rem;
}
.door p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }
.door .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-warm);
}
.door .go svg { width: 15px; height: 15px; }

/* Bare doorways: at station 06 the three links ARE the interface. No card
   chrome, no descriptions — they sit under the arches in the hall. */
.doors--bare {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 7vw, 6.5rem);
}
.doors--bare .door {
  padding: 0.5rem 0.2rem;
  border: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: 'Velox Chronos Display', Georgia, serif;
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 26px rgba(5, 7, 10, 0.95), 0 2px 12px rgba(5, 7, 10, 0.9);
  border-bottom: 1px solid transparent;
}
.doors--bare .door:hover,
.doors--bare .door:focus-visible {
  transform: none;
  box-shadow: none;
  color: var(--gold-warm);
  border-bottom-color: var(--hair-strong);
}
@media (max-width: 860px) {
  .doors--bare { flex-direction: column; align-items: center; gap: 0.5rem; }
  .station--bottom { bottom: clamp(70px, 12vh, 130px); }
}

/* ---------- buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid var(--hair-strong);
  background: transparent;
  color: var(--gold-warm);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 260ms var(--ease), border-color 260ms var(--ease),
              color 260ms var(--ease), transform 260ms var(--ease);
}
.cta svg { width: 16px; height: 16px; }
.cta:hover, .cta:focus-visible {
  color: #fff4d8;
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 1px rgba(230, 197, 107, 0.18), 0 0 32px rgba(212, 175, 55, 0.28);
  transform: translateY(-1px);
}
.cta--quiet {
  border-color: transparent;
  color: var(--text-muted);
  padding-inline: 0.4rem;
  letter-spacing: 0.24em;
}
.cta--quiet:hover { color: var(--gold-warm); box-shadow: none; }
.cta--wide { width: 100%; justify-content: center; }
.cta[disabled] { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.3rem; }

/* ---------- intake form ---------- */

.intake { display: grid; gap: 0.85rem; margin-top: 1.2rem; }

.field { display: grid; gap: 0.35rem; }
.field > span {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.85rem;
  background: rgba(5, 7, 10, 0.62);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-dim) 50%),
                    linear-gradient(135deg, var(--gold-dim) 50%, transparent 50%);
  background-position: right 1.05rem center, right 0.72rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.field select option { background: var(--carbon-2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 145, 126, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--hair-strong);
  box-shadow: 0 0 0 1px rgba(230, 197, 107, 0.16), 0 0 22px rgba(212, 175, 55, 0.13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.form-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.85rem; line-height: 1.5; }
.form-note a { color: var(--gold-warm); border-bottom: 1px solid var(--hair); }

.form-status {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--hair);
  background: rgba(212, 175, 55, 0.05);
  font-size: 0.84rem;
  color: var(--text);
}
.form-status[hidden] { display: none; }
.form-status code {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 30vh;
  overflow: auto;
}

/* ---------- scroll hint ---------- */

.hint {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: opacity 600ms var(--ease);
}
.hint .bar {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-warm), transparent);
  animation: drift 2.6s var(--ease) infinite;
}
@keyframes drift {
  0%   { transform: translateY(-8px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
/* the hint has done its job the moment they leave the threshold */
html:not([data-at='threshold']) .hint { opacity: 0; pointer-events: none; }
.no-3d .hint { display: none; }

/* ---------- flat mode: no WebGL, or reduced motion ---------- */

.no-3d body { background: radial-gradient(120% 70% at 50% -10%, #0d1119 0%, var(--obsidian) 62%); }

.no-3d .station {
  position: static;
  translate: none;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) 0;
}
.no-3d .station--bottom, .no-3d .station--center { width: min(1040px, 100%); }
.no-3d main { padding: 7rem var(--rail) 6rem; }
.no-3d .panel { background: var(--carbon); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- sub-pages (consulting / production / research) ---------- */

.page {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 9rem) var(--rail) 6rem;
}
.page-header { border-bottom: 1px solid rgba(212, 175, 55, 0.16); padding-bottom: 2.2rem; }
.page-header h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0.6rem 0 1rem; }
.page-header .lede { max-width: 62ch; }
.page-header .eyebrow { display: block; }
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: color 240ms var(--ease);
}
.back-link:hover { color: var(--gold-warm); }

.block { padding: 2.6rem 0; border-bottom: 1px solid rgba(212, 175, 55, 0.12); }
.block h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 0.9rem; }
.block p { color: var(--text-muted); max-width: 68ch; }
.block p + p { margin-top: 0.8rem; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.card {
  padding: 1.3rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: rgba(11, 15, 20, 0.7);
}
.card h3 {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-warm);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.card p { font-size: 0.88rem; }

.page-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 0%, rgba(212, 175, 55, 0.10), transparent 68%),
    radial-gradient(90% 60% at 50% 100%, rgba(212, 175, 55, 0.04), transparent 70%);
}

/* IntersectionObserver reveals on the flat pages */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

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

.foot {
  position: relative;
  z-index: 2;
  padding: 2.4rem var(--rail);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot a:hover { color: var(--gold-warm); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 0.7rem 1.2rem;
  background: var(--carbon-2);
  border: 1px solid var(--hair-strong);
  border-radius: 0 0 10px 0;
  color: var(--gold-warm);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

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

@media (max-width: 1100px) {
  .station { width: min(480px, 52vw); }
}

@media (max-width: 860px) {
  /* On a phone the panel becomes a bottom sheet: the hall stays visible above
     it, the words stay pinned and readable below. */
  .station,
  .station--center,
  .station--bottom {
    left: 0; right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    translate: none;
    padding: 0 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
    max-height: 74vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .station .panel {
    border-radius: 18px 18px 14px 14px;
    padding: 1.15rem 1.15rem 1.3rem;
  }
  .station h1 { font-size: clamp(2rem, 10vw, 2.9rem); }
  .station h2 { font-size: clamp(1.35rem, 6.4vw, 1.9rem); }
  .lede, .ledger li, .verdicts li { font-size: 0.86rem; }
  .doors { grid-template-columns: 1fr; gap: 0.6rem; }
  .door { padding: 0.85rem 1rem; }
  .door p { display: none; }
  .door h3 { margin: 0; font-size: 1.05rem; }
  .door .go { margin-top: 0.35rem; }
  .field-row { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.55rem 0; }
  .verdicts li { grid-template-columns: 2.5ch 1fr; gap: 0.7rem; }
  .topbar { padding: 0.85rem 1rem; }
  .hint { display: none; }
  .rail { right: 0.55rem; gap: 0.6rem; }
  .rail .rail-label { display: none; }
  .rail .rail-tick { width: 11px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 0.6rem; letter-spacing: 0.24em; }
  .topbar .cta { padding: 0.55rem 0.9rem; font-size: 0.58rem; letter-spacing: 0.2em; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hint .bar { animation: none; }
}

/* ---------- cinematic layer: vignette + grain ---------- */

/* The native scrollbar over the hall breaks the frame; position is already
   shown by the progress hairline and the rail. */
html.has-3d { scrollbar-width: none; }
html.has-3d::-webkit-scrollbar { display: none; }

html.has-3d body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 3; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}

#grain {
  position: fixed; inset: -3%;
  z-index: 4; pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  animation: grain 0.9s steps(3) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-14px, 9px); }
  66%      { transform: translate(11px, -7px); }
}
.no-3d #grain, .no-3d body::before { display: none; }

/* ---------- advance chevron ---------- */

.next {
  position: fixed;
  left: 50%; bottom: 1.4rem;
  translate: -50% 0;
  z-index: 15;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--pill);
  border: 1px solid var(--hair);
  background: rgba(8, 7, 6, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-warm);
  cursor: pointer;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), opacity 600ms var(--ease);
}
.next svg { width: 18px; height: 18px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(-2px); opacity: 0.7; }
  50%      { transform: translateY(2px);  opacity: 1; }
}
.next:hover, .next:focus-visible {
  border-color: var(--hair-strong);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}
html[data-at='intake'] .next { opacity: 0; pointer-events: none; }
.no-3d .next { display: none; }

/* ---------- intake: fit every viewport ---------- */

.station--center .panel {
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.station--center .intake { gap: 0.7rem; margin-top: 0.9rem; }
.station--center h2 { margin: 0.4rem 0 0.5rem; }
.station--center .field input,
.station--center .field select { padding: 0.58rem 0.8rem; }

/* the destination stop reads slightly firmer than the rest */
.rail button:last-of-type .rail-tick { background: rgba(230, 197, 107, 0.75); }
