/* ============================================================
   Making Tracks - Exhibition Presentation (live at /pres/v2)
   Design tokens: night-yard dark, Brunswick green structure,
   heritage cream display ink, amber departure-board accent.
   ============================================================ */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('assets/fonts/big-shoulders-normal-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('assets/fonts/big-shoulders-normal-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('assets/fonts/atkinson-normal-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('assets/fonts/atkinson-normal-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('assets/fonts/atkinson-italic-400.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Doto';
  src: url('assets/fonts/doto-normal-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Doto';
  src: url('assets/fonts/doto-normal-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --coal:        #0B0E0C;
  --coal-2:      #111612;
  --brunswick:   #17402B;
  --brunswick-2: #1E5236;
  --cream:       #F2E9D2;
  --cream-dim:   #D8CFb8;
  --amber:       #FFB300;
  --amber-dim:   #B37E06;
  --steel:       #9FB0A6;
  --signal-red:  #E4472B;
  --signal-green:#39B54A;
  --board-black: #060707;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  --board: 'Doto', 'Consolas', monospace;
  --plate-serif: Georgia, 'Times New Roman', serif;

  --pad: clamp(24px, 4.5vmin, 64px);
  --chrome-h: clamp(52px, 7vmin, 88px);
}

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

html, body {
  height: 100%;
  background: var(--coal);
  color: var(--cream);
  font-family: var(--body);
  overflow: hidden;
}
body.idle { cursor: none; }

img { max-width: 100%; }

/* ---------- stage & layers ---------- */
#stage { position: fixed; inset: 0; }
.layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  background: var(--coal);
  overflow: hidden;
  isolation: isolate;   /* contain Leaflet pane z-indexes inside the layer */
}
.layer.visible { opacity: 1; }
.layer.bg-coal  { background: radial-gradient(120% 90% at 50% 0%, var(--coal-2) 0%, var(--coal) 62%); }
.layer.bg-cream { background: var(--cream); color: var(--coal); }
.layer.bg-green { background: linear-gradient(168deg, var(--brunswick) 0%, #0F2E1E 78%); }
.layer.bg-board { background: var(--board-black); }
.layer.bg-burgundy { background: linear-gradient(165deg, #46141A 0%, #230A0E 82%); }

/* ---------- persistent chrome ---------- */
#chromeTop, #chromeBottom {
  position: fixed; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center;
  padding: 0 clamp(16px, 2.5vmin, 36px);
  height: var(--chrome-h);
  pointer-events: none;
}
#chromeTop { top: 0; justify-content: space-between;
  background: linear-gradient(180deg, rgba(6,8,7,.88) 0%, rgba(6,8,7,0) 100%); }
#chromeBottom { bottom: 0; gap: clamp(14px, 2vmin, 28px);
  background: linear-gradient(0deg, rgba(6,8,7,.92) 0%, rgba(6,8,7,0) 100%); }

.chrome-eyebrow {
  display: flex; align-items: center; gap: .7em;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(13px, 1.9vmin, 22px);
  letter-spacing: .14em; color: var(--steel);
}
#chromeMtLogo { height: clamp(30px, 4.4vmin, 56px); width: auto; }
#chromeMpLogo { height: clamp(20px, 3vmin, 38px); width: auto; }

.live-dot {
  width: .65em; height: .65em; border-radius: 50%;
  background: var(--signal-green);
  box-shadow: 0 0 8px var(--signal-green);
  animation: pulse 2.2s infinite;
}
.live-dot.down { background: var(--signal-red); box-shadow: 0 0 8px var(--signal-red); animation: none; }
@keyframes pulse { 50% { opacity: .45; } }

#chromeClock {
  font-family: var(--board); font-weight: 900;
  font-size: clamp(15px, 2.4vmin, 26px);
  color: var(--amber); letter-spacing: .08em;
  min-width: 6.5ch; text-align: right;
}

/* ---------- whole-presentation scrub bar + pause button ----------
   Occupies the strip between the MegaPoints logo and the runtime counter.
   Hidden until the pointer is over that region (zone.hot), while dragging
   (zone.active) or while the show is paused. */
#scrubZone {
  flex: 1; align-self: stretch;
  display: flex; align-items: center;
  position: relative;
  pointer-events: auto;               /* the chrome bar itself is inert */
}
#scrubBar {
  flex: 1; display: flex; align-items: center;
  gap: clamp(10px, 1.5vmin, 22px);
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
#scrubZone.hot #scrubBar,
#scrubZone.active #scrubBar,
body.pres-paused #scrubBar { opacity: 1; transform: none; }

#scrubPause {
  flex: 0 0 auto;
  width: clamp(30px, 4.2vmin, 52px); height: clamp(30px, 4.2vmin, 52px);
  border-radius: 50%; border: 2px solid var(--amber);
  background: rgba(6, 8, 7, .55); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}
#scrubPause:hover { background: rgba(255, 179, 0, .18); }
#scrubPause svg { width: 46%; height: 46%; display: block; }
#scrubPause .ico-play { display: none; }
body.pres-paused #scrubPause .ico-pause { display: none; }
body.pres-paused #scrubPause .ico-play { display: block; }
body.pres-paused #scrubPause { animation: pulse 2.2s infinite; }

#scrubTrack {
  position: relative; flex: 1;
  height: clamp(22px, 3vmin, 34px);   /* generous hit target */
  cursor: pointer; touch-action: none;
}
#scrubTrack::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: clamp(5px, .7vmin, 9px); transform: translateY(-50%);
  background: rgba(242, 233, 210, .22); border-radius: 99px;
}
#scrubFill {
  position: absolute; left: 0; top: 50%; width: 0;
  height: clamp(5px, .7vmin, 9px); transform: translateY(-50%);
  background: var(--amber); border-radius: 99px;
  pointer-events: none;
}
#scrubThumb {
  position: absolute; left: 0; top: 50%;
  width: clamp(12px, 1.7vmin, 22px); height: clamp(12px, 1.7vmin, 22px);
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--amber);
  border: 2px solid var(--cream);
  box-shadow: 0 0 10px rgba(255, 179, 0, .55);
  pointer-events: none;
}
#scrubTicks { position: absolute; inset: 0; pointer-events: none; }
.scrub-tick {
  position: absolute; top: 50%; width: 2px;
  height: clamp(10px, 1.3vmin, 16px);
  transform: translate(-50%, -50%);
  background: rgba(242, 233, 210, .55); border-radius: 1px;
}
#scrubTip {
  position: absolute; bottom: calc(100% + 4px); left: 0;
  transform: translateX(-50%);
  background: rgba(6, 8, 7, .92); border: 1px solid var(--amber);
  color: var(--cream); font-family: var(--display); font-weight: 600;
  font-size: clamp(12px, 1.7vmin, 20px); letter-spacing: .08em;
  padding: .3em .8em; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
#scrubZone.active #scrubTip { opacity: 1; }

/* paused: freeze every CSS animation inside the slide layers so static
   decks hold their frame too (embedded scenes freeze their own clocks) */
body.pres-paused .layer, body.pres-paused .layer * { animation-play-state: paused !important; }

/* chrome adapts when the active slide is light */
body[data-bg="cream"] #chromeTop {
  background: linear-gradient(180deg, rgba(242,233,210,.94) 0%, rgba(242,233,210,0) 100%);
}
body[data-bg="cream"] #chromeBottom {
  background: linear-gradient(0deg, rgba(242,233,210,.96) 0%, rgba(242,233,210,0) 100%);
}
body[data-bg="cream"] .chrome-eyebrow { color: #55624f; }
body[data-bg="cream"] #chromeClock { color: #8a5b00; }
body[data-bg="cream"] #scrubTrack::before { background: rgba(11, 14, 12, .2); }
body[data-bg="cream"] .scrub-tick { background: rgba(11, 14, 12, .45); }
body[data-bg="cream"] #scrubFill, body[data-bg="cream"] #scrubThumb { background: #8a5b00; }
body[data-bg="cream"] #scrubPause { border-color: #8a5b00; color: #8a5b00; background: rgba(242, 233, 210, .6); }

/* ---------- generic slide scaffolding ---------- */
.slide {
  position: absolute; inset: 0;
  padding: calc(var(--chrome-h) + 6px) var(--pad) calc(var(--chrome-h) + 6px);
  display: flex; flex-direction: column; justify-content: center;
}
.slide-error {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 4vmin; color: var(--steel);
}

.eyebrow {
  font-family: var(--display); font-weight: 600;
  letter-spacing: .22em; color: var(--amber);
  font-size: clamp(15px, 2.3vmin, 26px);
  margin-bottom: 1.1em;
}
.bg-cream .eyebrow { color: #8A5B00; }

h1.title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 9.5vmin, 130px);
  line-height: .95; letter-spacing: .015em;
  text-wrap: balance;
}
h2.subtitle {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 4vmin, 54px);
  color: var(--cream-dim); margin-top: .35em;
}
.bg-cream h1.title, .bg-cream h2.subtitle { color: var(--coal); }

.prose {
  font-size: clamp(19px, 3.1vmin, 40px);
  line-height: 1.5; max-width: 34em;
}
.prose p + p { margin-top: .8em; }
.prose strong { color: var(--amber); font-weight: 700; }
.bg-cream .prose strong { color: #8A5B00; }
.prose .fact { color: var(--steel); }

/* staggered reveal */
.reveal > * { opacity: 0; transform: translateY(22px); animation: rise .8s ease forwards; }
.reveal > *:nth-child(1) { animation-delay: .15s; }
.reveal > *:nth-child(2) { animation-delay: .45s; }
.reveal > *:nth-child(3) { animation-delay: .75s; }
.reveal > *:nth-child(4) { animation-delay: 1.05s; }
.reveal > *:nth-child(5) { animation-delay: 1.35s; }
.reveal > *:nth-child(6) { animation-delay: 1.6s; }
.reveal > *:nth-child(7) { animation-delay: 1.85s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- the nameplate (signature element) ---------- */
.plate-wrap { display: flex; flex-direction: column; align-items: center; gap: 3.5vmin; }
.plate {
  position: relative;
  background: linear-gradient(173deg, #1E5236 0%, var(--brunswick) 46%, #103021 100%);
  border-radius: 1.6vmin;
  padding: 3.2vmin 6vmin;
  box-shadow:
    0 1.2vmin 4vmin rgba(0,0,0,.65),
    inset 0 .25vmin .5vmin rgba(255,255,255,.25),
    inset 0 -.35vmin .6vmin rgba(0,0,0,.5);
}
.plate::before {
  content: ''; position: absolute; inset: 1.1vmin;
  border: .35vmin solid var(--cream);
  border-radius: 1vmin;
  box-shadow: inset 0 .15vmin .3vmin rgba(0,0,0,.55), 0 .1vmin .2vmin rgba(255,255,255,.2);
  pointer-events: none;
}
.plate .plate-text {
  font-family: var(--plate-serif); font-weight: 700;
  font-size: clamp(34px, 7.2vmin, 104px);
  letter-spacing: .12em; white-space: nowrap;
  color: var(--cream);
  text-shadow:
    0 .12vmin 0 rgba(255,255,255,.35),
    0 -.12vmin .1vmin rgba(0,0,0,.7),
    0 .3vmin .6vmin rgba(0,0,0,.45);
}
.plate.small { padding: 1.8vmin 3.4vmin; border-radius: 1vmin; }
.plate.small .plate-text { font-size: clamp(18px, 3.4vmin, 48px); }

/* the real nameplate photograph (assets/loco90041/nameplate.png) */
.plate-img { width: min(72vmin, 900px); max-width: 92%; display: block;
  filter: drop-shadow(0 1.2vmin 3vmin rgba(0, 0, 0, .55)); }
.plate-img.small { width: min(38vmin, 340px); }
.map-hud .hud-photo .mini-plate-img { display: block; width: 100%; margin-top: .5vmin;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }

/* authentic Freightliner-style plate: black, white letters, RBF mark */
.plate.bw {
  background: linear-gradient(173deg, #23262a 0%, #121417 52%, #08090b 100%);
  display: flex; align-items: center; gap: 3vmin;
}
.plate.bw::before { border-color: #E8E8E4; }
.plate.bw .plate-text {
  color: #F4F4F0;
  text-shadow:
    0 .12vmin 0 rgba(255,255,255,.28),
    0 -.12vmin .1vmin rgba(0,0,0,.85),
    0 .3vmin .6vmin rgba(0,0,0,.6);
}
.rbf-chip {
  display: inline-block;
  font-family: var(--body); font-weight: 700;
  font-size: clamp(13px, 2.2vmin, 30px);
  letter-spacing: .06em;
  color: #fff; background: #C8102E;
  padding: .5em .6em; border-radius: .35em;
  box-shadow: inset 0 .1vmin .2vmin rgba(255,255,255,.4), 0 .2vmin .5vmin rgba(0,0,0,.5);
}

.plate .sheen {
  position: absolute; inset: 0; border-radius: 1.6vmin; overflow: hidden; pointer-events: none;
}
.plate .sheen::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; width: 22%;
  left: -30%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 12% { left: 120%; } 100% { left: 120%; } }

.loco-number {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(80px, 22vmin, 320px);
  line-height: .9; color: var(--cream);
  letter-spacing: .04em;
  text-shadow: 0 1vmin 5vmin rgba(255, 179, 0, .18);
}

/* ---------- departure board ---------- */
.board-panel {
  background: var(--board-black);
  border-radius: 1.2vmin;
  border: 1px solid #1c2120;
  box-shadow: inset 0 0 6vmin rgba(255,179,0,.05), 0 1vmin 4vmin rgba(0,0,0,.6);
  padding: 2.4vmin 3vmin;
  overflow: hidden;
}
.board-text { font-family: var(--board); font-weight: 900; color: var(--amber); }
.board-head {
  display: grid; gap: 2vmin;
  font-family: var(--board); font-weight: 700;
  font-size: clamp(13px, 2vmin, 24px);
  color: var(--cream-dim); letter-spacing: .1em;
  padding-bottom: 1.2vmin; border-bottom: 1px solid #222824;
  margin-bottom: 1.2vmin;
}
.board-rows { position: relative; }
.board-row {
  display: grid; gap: 2vmin; align-items: baseline;
  font-family: var(--board); font-weight: 900;
  font-size: clamp(17px, 2.9vmin, 36px);
  color: var(--amber);
  padding: 1vmin 0;
  opacity: 0; transform: translateY(12px);
  animation: rowin .5s ease forwards;
}
.board-row .dim { color: var(--amber-dim); font-weight: 700; }
@keyframes rowin { to { opacity: 1; transform: none; } }

/* ---------- stat tiles ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(22vmin, 1fr));
  gap: clamp(14px, 2.4vmin, 34px);
}
.stat {
  background: rgba(23, 64, 43, .35);
  border: 1px solid rgba(242,233,210,.14);
  border-radius: 1vmin;
  padding: 2.6vmin 2.4vmin 2.2vmin;
}
.stat .v {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 8vmin, 110px); line-height: 1;
  color: var(--cream);
}
.stat .v .unit { font-size: .45em; font-weight: 600; color: var(--steel); letter-spacing: .05em; }
.stat .l {
  margin-top: .7em;
  font-size: clamp(14px, 2.1vmin, 26px);
  color: var(--steel); letter-spacing: .06em;
}
.bg-cream .stat { background: rgba(23,64,43,.08); border-color: rgba(11,14,12,.15); }
.bg-cream .stat .v { color: var(--coal); }
.bg-cream .stat .l { color: #4c5a52; }

/* ---------- split layouts & imagery ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vmin, 80px); align-items: center; height: 100%; }
.split.wide-text { grid-template-columns: 1.15fr .85fr; }

.photo-frame {
  position: relative; border-radius: 1.2vmin; overflow: hidden;
  box-shadow: 0 1.4vmin 5vmin rgba(0,0,0,.6);
  aspect-ratio: 4 / 3;
  background: var(--coal-2);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .credit {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2vmin 1.4vmin .7vmin;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  font-size: clamp(10px, 1.4vmin, 15px); color: rgba(242,233,210,.75);
}

.kenburns img { animation: kb 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1.5%); } }

/* full-bleed hero image behind content */
.bleed {
  position: absolute; inset: 0; z-index: 0;
}
.bleed img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.bleed::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 50% 45%, transparent 0%, rgba(11,14,12,.82) 82%);
}
.slide .fore { position: relative; z-index: 1; }

/* ---------- gallery ---------- */
.gallery-caption .era {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 5vmin, 66px);
  color: var(--amber); line-height: 1;
  margin-bottom: .25em;
}
.gallery-caption .cred {
  margin-top: .6em;
  font-size: clamp(10px, 1.5vmin, 16px);
  color: rgba(242,233,210,.6);
}
.gallery-caption {
  position: absolute; left: var(--pad); bottom: calc(var(--chrome-h) + 3vmin); z-index: 2;
  max-width: 46em;
  background: rgba(6,8,7,.8);
  border-left: .5vmin solid var(--amber);
  padding: 1.6vmin 2.2vmin;
  font-size: clamp(16px, 2.6vmin, 32px);
  border-radius: 0 .8vmin .8vmin 0;
}
.gallery-stack { position: absolute; inset: 0; }
.gallery-stack .g-img {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
}
.gallery-stack .g-img.on { opacity: 1; }
.gallery-stack img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- map slides ---------- */
.map-full { position: absolute; inset: 0; }
.map-full .leaflet-container { width: 100%; height: 100%; background: #0a0d0b; }

.map-hud {
  position: absolute; z-index: 900;
  left: var(--pad); top: calc(var(--chrome-h) + 2.5vmin);
  max-width: 40vmin;
  /* no backdrop-filter: WebKit re-blurs the moving map behind the HUD every
     frame (Safari/tablet jerkiness, 2026-07-11) - opaque panel reads the same */
  background: rgba(6,8,7,.95);
  border: 1px solid rgba(242,233,210,.16);
  border-left: .5vmin solid var(--amber);
  border-radius: 0 1vmin 1vmin 0;
  padding: 2.2vmin 2.6vmin;
}
.map-hud .hud-photo {
  position: relative;
  margin: -2.2vmin -2.6vmin 1.8vmin;
  height: 14vmin;
  overflow: hidden;
  border-radius: 0 1vmin 0 0;
}
.map-hud .hud-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  display: block;
}
.map-hud .hud-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,8,7,.55) 0%, transparent 40%);
}
.map-hud .hud-photo .mini-plate {
  position: absolute; left: 1.4vmin; bottom: 1.1vmin; z-index: 2;
  background: linear-gradient(173deg, #23262a 0%, #0a0b0d 100%);
  color: #F4F4F0;
  font-family: var(--plate-serif); font-weight: 700;
  letter-spacing: .1em; white-space: nowrap;
  font-size: clamp(12px, 1.9vmin, 24px);
  padding: .35em .85em;
  border: .2vmin solid #E8E8E4; border-radius: .4vmin;
  box-shadow: 0 .25vmin .8vmin rgba(0,0,0,.65);
}
.map-hud .hud-photo .pcred {
  position: absolute; right: .8vmin; bottom: .5vmin; z-index: 2;
  font-size: 10px; color: rgba(255,255,255,.7);
  text-shadow: 0 1px 2px #000;
}
.map-hud .hud-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 4vmin, 52px); line-height: 1;
}
.map-hud .hud-sub { color: var(--steel); font-size: clamp(13px, 2vmin, 24px); margin-top: .6em; }
.map-hud .hud-big {
  font-family: var(--board); font-weight: 900; color: var(--amber);
  font-size: clamp(18px, 3vmin, 40px); margin-top: .5em;
}
.hud-badge {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 600; letter-spacing: .16em;
  font-size: clamp(12px, 1.8vmin, 20px);
  color: var(--signal-green);
  margin-bottom: 1vmin;
}
.hud-badge .live-dot { width: .6em; height: .6em; }
.hud-badge.replaying { color: var(--amber); }

.map-attrib {
  position: absolute; right: 8px; bottom: calc(var(--chrome-h) + clamp(34px, 5vmin, 60px)); z-index: 900;
  font-size: 11px; color: rgba(242,233,210,.55);
  background: rgba(6,8,7,.6); padding: 2px 8px; border-radius: 3px;
}

/* loco marker */
.loco-marker {
  position: relative;
  width: 100%; height: 100%;
}
.loco-marker .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--amber);
  animation: ring 2s ease-out infinite;
}
.loco-marker .core {
  position: absolute; inset: 26%; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- timeline (subject decks) ---------- */
.tl-wrap { position: relative; margin-top: 3vmin; }
.tl-line {
  position: absolute; top: 1.1vmin; left: 11%; right: 11%;
  height: 3px; background: rgba(242,233,210,.2); border-radius: 2px;
}
.tl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vmin, 34px); }
.tl-card { text-align: center; padding-top: 0; }
.tl-card .dot {
  width: 2.2vmin; height: 2.2vmin; border-radius: 50%;
  background: var(--signal-red); border: .4vmin solid var(--coal);
  box-shadow: 0 0 0 2px rgba(242,233,210,.35);
  margin: 0 auto 1.6vmin;
}
.tl-card .year {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 6vmin, 78px); line-height: 1; color: var(--cream);
}
.tl-card .what {
  margin-top: .6em; font-weight: 700;
  font-size: clamp(14px, 2.2vmin, 28px);
}
.tl-card .how {
  margin-top: .5em; color: var(--steel);
  font-size: clamp(12px, 1.9vmin, 24px); line-height: 1.45;
}

/* ---------- impact bars (single measure, one hue, direct labels) ---------- */
.bars { display: flex; flex-direction: column; gap: 2.8vmin; margin-top: 2.6vmin; }
.bar-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; column-gap: 2vmin; row-gap: .7vmin;
  font-size: clamp(15px, 2.4vmin, 30px);
}
.bar-row .bl { color: var(--cream-dim); grid-column: 1; }
.bar-row .bv { grid-column: 2; }
.bar-row .track {
  grid-column: 1 / -1;
  height: 3.6vmin; border-radius: 3px;
  background: rgba(242,233,210,.08); overflow: hidden;
}
.bar-row .fill {
  height: 100%; width: 0%;
  background: #C8102E;
  border-radius: 0 4px 4px 0;
  box-shadow: inset 0 .2vmin 0 rgba(255,255,255,.22);
  transition: width 1.6s cubic-bezier(.2,.7,.3,1);
}
.bar-row .bv {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(18px, 3vmin, 40px); color: var(--cream);
  text-align: right;
}

/* ---------- news cards ---------- */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(34vmin, 1fr));
  gap: clamp(16px, 2.6vmin, 36px);
}
.news-card {
  background: rgba(6,8,7,.5);
  border: 1px solid rgba(242,233,210,.16);
  border-radius: 1vmin;
  padding: 2.6vmin;
  display: flex; flex-direction: column; gap: 1.4vmin;
}
.news-card .outlet {
  font-family: var(--display); font-weight: 600; letter-spacing: .14em;
  color: var(--amber); font-size: clamp(12px, 1.9vmin, 22px);
}
.news-card .headline {
  font-size: clamp(17px, 2.8vmin, 34px); font-weight: 700; line-height: 1.3;
}
.news-card .when { color: var(--steel); font-size: clamp(12px, 1.8vmin, 20px); margin-top: auto; }
.bg-cream .news-card { background: rgba(11,14,12,.05); border-color: rgba(11,14,12,.16); }
.bg-cream .news-card .outlet { color: #8a5b00; }
.bg-cream .news-card .when { color: #66746b; }
.bg-burgundy .eyebrow { color: #F2A0A8; }
.bg-burgundy .prose .fact { color: #C9A9AC; }

/* ---------- ticker ---------- */
.ticker {
  position: absolute; left: 0; right: 0; bottom: var(--chrome-h); z-index: 890;
  background: rgba(6,8,7,.85); border-top: 1px solid rgba(255,179,0,.35);
  overflow: hidden; height: clamp(30px, 4.6vmin, 54px);
  display: flex; align-items: center;
}
.ticker .tick-inner {
  white-space: nowrap; font-family: var(--board); font-weight: 700;
  color: var(--amber); font-size: clamp(15px, 2.4vmin, 30px);
  padding-left: 100%;
  animation: tick linear infinite;
}
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- embedded presentation subjects (iframe slides) ---------- */
.embed-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  background: #070a12;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .kenburns img, .plate .sheen::after, .live-dot, .loco-marker .ring { animation: none !important; }
  .reveal > * { animation-duration: .01s; animation-delay: 0s; }
}

/* ---------- narrow / portrait survival ---------- */
@media (max-aspect-ratio: 1/1) {
  .split, .split.wide-text { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .plate .plate-text { white-space: normal; text-align: center; }
  .map-hud { max-width: 70vmin; }
}

/* ---- five-year income vs spend chart (RBF impact slide) ---- */
.yr-chart { display: flex; gap: 2.2vmin; align-items: flex-end; height: 15vmin; margin-top: 1.4vmin; }
.yr-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5vmin; height: 100%; justify-content: flex-end; }
.yr-bars { display: flex; gap: .55vmin; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.yr-bar { width: 2.6vmin; border-radius: .5vmin .5vmin 0 0; height: 0; transition: height 1.1s cubic-bezier(.2,.7,.2,1); }
.yr-bar.inc { background: var(--cream-dim); }
.yr-bar.spend { background: #C8102E; box-shadow: 0 0 1.6vmin rgba(200,16,46,.4); }
.yr-label { font-family: var(--display); font-weight: 600; color: var(--cream-dim); font-size: clamp(11px, 1.7vmin, 20px); letter-spacing: .08em; }
.yr-legend { display: flex; gap: 2.4vmin; margin-top: 1vmin; font-size: clamp(11px, 1.7vmin, 20px); color: var(--cream-dim); font-family: var(--body); }
.yr-legend i { display: inline-block; width: 1.6vmin; height: 1.6vmin; border-radius: .3vmin; margin-right: .6vmin; vertical-align: middle; }
