/* Validated.Directory 2.0.0 · stations on a survey line (BEA-432), a scroll scene shared by Start ("Then, three
   things") and Support ("Fix a fact"). Loads after the kit and /dir/shell.css; stations.js runs it. A light walks the
   line station by station and each station lights as it is reached; scrolling back puts them out. Without motion every
   station shows lit and still. */
/* The scene: stations on one survey line. Still first: the heading, then every station lit. */
.stx { position: relative; background: linear-gradient(180deg, #1d2a3a 0%, var(--canvas) 18%, var(--canvas) 70%, #16233c 100%); --lit: linear-gradient(180deg, rgba(244, 196, 90, 0.27), rgba(244, 196, 90, 0.07)); --lit-edge: inset 0 0 0 1px rgba(244, 196, 90, 0.95), inset 0 0 20px rgba(244, 196, 90, 0.2), 0 0 24px rgba(244, 196, 90, 0.24); }
.stx .stage { padding: 64px 0 56px; }
.stx-in { position: relative; z-index: 3; }
.stx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.stx-head h2 { margin: 0; font-size: clamp(30px, 8vw, 54px); line-height: 1.06; color: var(--white); max-width: 12ch; }
.beats { display: none; }
.stns { display: grid; gap: 12px; margin-top: 24px; padding-left: 18px; border-left: 1px solid rgba(244, 196, 90, 0.55); }
.stn { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 12px; padding: 13px 14px 14px 11px; background: rgba(11, 18, 37, 0.94); border: 1px solid rgba(244, 196, 90, 0.62); --cm: rgba(244, 196, 90, 0.9); }
.stn::before { content: ""; position: absolute; inset: -1px; background: var(--lit); box-shadow: var(--lit-edge); pointer-events: none; }
.stn::after { content: ""; position: absolute; left: -24px; top: 22px; width: 11px; height: 11px; background: var(--x) center / 11px no-repeat; }
.stn-n { position: relative; display: grid; place-items: center; width: 34px; height: 30px; border: 1px solid rgba(244, 196, 90, 0.75); font: 500 12px/1 var(--mono); color: var(--gold-bright); }
.stn-t { position: relative; font: 400 clamp(19px, 5vw, 24px)/1.3 var(--display); color: var(--white); }
.stn-c { position: relative; grid-column: 2; display: flex; gap: 4px; margin-top: 10px; }
.stn-c i { width: 13px; height: 13px; border: 1px solid var(--gold-bright); background: rgba(244, 196, 90, 0.85); }
.turn { height: 120px; background: linear-gradient(180deg, #16233c 0%, var(--indigo) 22%, #6f6577 44%, #b98063 60%, #e2ac68 72%, #f1cf92 84%, var(--paper) 100%); }

.m .stx .track { height: 400vh; height: 400svh; }
.m .stx .stage { padding: 0; }
.m .stx-in { position: absolute; left: 0; right: 0; top: calc(80px + env(safe-area-inset-top, 0px)); transform-origin: 50% 0; }
.m .beats { display: flex; gap: 5px; flex: 0 0 auto; padding-bottom: 8px; }
.m .beats i { width: 18px; height: 3px; background: rgba(240, 230, 207, 0.22); transition: background-color 0.3s; }
.m .beats i.on { background: var(--gold-bright); }
.m .stns { border-left-color: transparent; }
.m .stn { border-color: var(--rule); --cm: rgba(240, 230, 207, 0.45); transition: border-color 0.4s; }
.m .stn::before { opacity: 0; transition: opacity 0.4s ease-out; }
.m .stn-n { border-color: rgba(240, 230, 207, 0.4); color: var(--cream-2); transition: color 0.4s, border-color 0.4s, background-color 0.4s; }
.m .stn-t { color: var(--cream-2); transition: color 0.4s; }
.m .stn.on { border-color: rgba(244, 196, 90, 0.62); --cm: rgba(244, 196, 90, 0.9); }
.m .stn.on::before { opacity: 1; }
.m .stn.on .stn-n { border-color: var(--gold-bright); color: #1a1406; background: var(--gold-bright); }
.m .stn.on .stn-t { color: var(--white); }
.m .stn-c i { border-color: rgba(240, 230, 207, 0.4); background: transparent; transition: background-color 0.25s, border-color 0.25s; }
.m .stn-c i.on { border-color: var(--gold-bright); background: rgba(244, 196, 90, 0.85); }
.stx .sky { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }


@media (max-height: 760px) and (max-width: 899px) {
  .m .stx-in { top: calc(70px + env(safe-area-inset-top, 0px)); }
  .stn-t { font-size: 18px; }
}
@media (min-width: 900px) {
  .stx .stage { padding: 110px 0 96px; }
  .stx-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); column-gap: clamp(40px, 5vw, 88px); align-items: start; }
  .stx-head { flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 6px; }
  .stns { margin-top: 0; gap: 16px; padding-left: 28px; }
  .stn { padding: 20px 24px 22px 16px; column-gap: 18px; }
  .stn::after { left: -34px; top: 30px; }
  .stn-n { width: 40px; height: 34px; font-size: 13px; }
  .stn-t { font-size: 27px; }
  .m .stx-in { top: max(130px, 18vh); }
  .turn { height: 160px; }
}
