/* Route Theatre polish lab — researched colour systems.
 * A = original Amber Stage (production formula).
 * B = Night Call (cool-dominant + warm practical accent).
 * C = Soft Matinee (same harmony as A, lower chroma / 60-30-10).
 * Lab: ?lab=polish&theme=A
 *
 * Shared structure (stage lighting + brand colour theory):
 *   warm key / cool wash · purple↔gold tension · one accent family on vehicles
 */

:root,
.rt-theme-a {
  /* A Amber Stage — warm-dominant theatre; cool teal wash; terracotta accent */
  --rt-ink: #35213a;
  --rt-paper: #fff5dc;
  --rt-gold: #efc759;
  --rt-cream: #fff0d0;
  --rt-stage: #8eb9c3;
  --rt-header: rgba(55, 32, 59, 0.96);
  --rt-header-fg: #fff4dc;
  --rt-accent: #b4473c;
  --rt-city-1: #532f50;
  --rt-city-2: #3d3a63;
  --rt-city-3: #2f4a4f;
  --rt-city-4: #5a3640;
  --rt-flight: #6fa0b8;
  --rt-car-stage: #7f9b6e;
  --rt-bridge: #efc759;
  --rt-shadow: #3d2841;
  --rt-line: rgba(53, 33, 58, 0.14);
  --rt-spine: rgba(53, 33, 58, 0.12);
  --rt-grid: rgba(60, 35, 61, 0.07);
  --rt-curtain-a: #4b2448;
  --rt-curtain-b: #65305e;
  --rt-light-body: #34243b;
  --rt-light-beam: rgba(255, 234, 158, 0.5);
  --rt-sky-top: #85b7c2;
  --rt-sky-bot: #eec86b;
  --rt-sun: #f8d978;
  --rt-building: #d97955;
  --rt-building-edge: #523342;
  --rt-field: #47765c;
  --rt-campus: #d78656;
  --rt-campus-edge: #54333f;
  --rt-track: #4a3540;
  --rt-rail: #e5b957;
  --rt-sleeper: #251d25;
  --rt-engine: #cc533f;
  --rt-coach: #ece2c5;
  --rt-window: #5c91a0;
  --rt-trim: #3d293d;
  --rt-wheel: #302438;
  --rt-wheel-rim: #f0c75d;
  --rt-smoke: rgba(255, 244, 217, 0.72);
  --rt-plane-body: #f4efe0;
  --rt-plane-wing: #e8c45d;
  --rt-plane-tail: #cc533f;
  --rt-plane-window: #6fa0b8;
  --rt-flight-sky-a: #6fa0b8;
  --rt-flight-sky-b: #8eb9c3;
  --rt-flight-sky-c: #d9c27a;
  --rt-runway: #4a5560;
  --rt-runway-mark: #f3e5b0;
  --rt-car-body: #d96a45;
  --rt-car-window: #6fa0b8;
  --rt-car-sky-a: #9ec4c0;
  --rt-car-sky-b: #d7b86a;
  --rt-road: #414c43;
  --rt-road-dash: #e5d383;
  --rt-caption-border: #35213a;
  --rt-route-fg: #fff1d1;
}

.rt-theme-b {
  /* B Night Call — cool-dominant indigo wash; single warm amber practical */
  --rt-ink: #e6eaf2;
  --rt-paper: #121826;
  --rt-gold: #0b101a;
  --rt-cream: #d7deea;
  --rt-stage: #1a2740;
  --rt-header: rgba(8, 11, 18, 0.96);
  --rt-header-fg: #e6eaf2;
  --rt-accent: #e0a15a;
  --rt-city-1: #0e1420;
  --rt-city-2: #121c2c;
  --rt-city-3: #0f1a24;
  --rt-city-4: #161422;
  --rt-flight: #152033;
  --rt-car-stage: #15242c;
  --rt-bridge: #0b101a;
  --rt-shadow: #05070c;
  --rt-line: rgba(230, 234, 242, 0.14);
  --rt-spine: rgba(230, 234, 242, 0.12);
  --rt-grid: rgba(230, 234, 242, 0.05);
  --rt-curtain-a: #0e1420;
  --rt-curtain-b: #1a2438;
  --rt-light-body: #0a0e16;
  --rt-light-beam: rgba(224, 161, 90, 0.28);
  --rt-sky-top: #15233a;
  --rt-sky-bot: #243752;
  --rt-sun: #e0a15a;
  --rt-building: #2f4466;
  --rt-building-edge: #e0a15a;
  --rt-field: #243a40;
  --rt-campus: #3a5278;
  --rt-campus-edge: #e0a15a;
  --rt-track: #0a0e16;
  --rt-rail: #e0a15a;
  --rt-sleeper: #6a7a90;
  --rt-engine: #e0a15a;
  --rt-coach: #c5d0e0;
  --rt-window: #1a2740;
  --rt-trim: #0a0e16;
  --rt-wheel: #0a0e16;
  --rt-wheel-rim: #e0a15a;
  --rt-smoke: rgba(224, 161, 90, 0.35);
  --rt-plane-body: #c5d0e0;
  --rt-plane-wing: #e0a15a;
  --rt-plane-tail: #e0a15a;
  --rt-plane-window: #152033;
  --rt-flight-sky-a: #0c121c;
  --rt-flight-sky-b: #15233a;
  --rt-flight-sky-c: #243752;
  --rt-runway: #121826;
  --rt-runway-mark: #e0a15a;
  --rt-car-body: #e0a15a;
  --rt-car-window: #152033;
  --rt-car-sky-a: #121c28;
  --rt-car-sky-b: #1e2e3c;
  --rt-road: #0a0e16;
  --rt-road-dash: #e0a15a;
  --rt-caption-border: #d7deea;
  --rt-route-fg: #d7deea;
}

.rt-theme-c {
  /* C Soft Matinee — same A harmony, lower chroma, stricter 60-30-10 */
  --rt-ink: #3a2c3c;
  --rt-paper: #faf4e6;
  --rt-gold: #e6d39a;
  --rt-cream: #f7efd8;
  --rt-stage: #9bb7bc;
  --rt-header: rgba(58, 44, 60, 0.95);
  --rt-header-fg: #f7efd8;
  --rt-accent: #b85a4c;
  --rt-city-1: #4e3a4c;
  --rt-city-2: #3f3c58;
  --rt-city-3: #3a4a4c;
  --rt-city-4: #524048;
  --rt-flight: #84a8b4;
  --rt-car-stage: #8a9e86;
  --rt-bridge: #e6d39a;
  --rt-shadow: #3a2c3c;
  --rt-line: rgba(58, 44, 60, 0.12);
  --rt-spine: rgba(58, 44, 60, 0.12);
  --rt-grid: rgba(58, 44, 60, 0.06);
  --rt-curtain-a: #4e3a4c;
  --rt-curtain-b: #5e4a5c;
  --rt-light-body: #3a2c3c;
  --rt-light-beam: rgba(255, 236, 190, 0.4);
  --rt-sky-top: #9bb7bc;
  --rt-sky-bot: #e2c98a;
  --rt-sun: #efd89a;
  --rt-building: #c88870;
  --rt-building-edge: #4e3a4c;
  --rt-field: #5a7a66;
  --rt-campus: #c89270;
  --rt-campus-edge: #4e3a4c;
  --rt-track: #4a3c48;
  --rt-rail: #d8c078;
  --rt-sleeper: #2e2430;
  --rt-engine: #b85a4c;
  --rt-coach: #f3ead2;
  --rt-window: #6e92a0;
  --rt-trim: #3a2c3c;
  --rt-wheel: #2e2430;
  --rt-wheel-rim: #d8c078;
  --rt-smoke: rgba(247, 239, 216, 0.7);
  --rt-plane-body: #f7efd8;
  --rt-plane-wing: #d8c078;
  --rt-plane-tail: #b85a4c;
  --rt-plane-window: #6e92a0;
  --rt-flight-sky-a: #84a8b4;
  --rt-flight-sky-b: #9bb7bc;
  --rt-flight-sky-c: #d8c898;
  --rt-runway: #556068;
  --rt-runway-mark: #efd89a;
  --rt-car-body: #b85a4c;
  --rt-car-window: #6e92a0;
  --rt-car-sky-a: #a8c4bc;
  --rt-car-sky-b: #d8c898;
  --rt-road: #4a5248;
  --rt-road-dash: #d8c078;
  --rt-caption-border: #3a2c3c;
  --rt-route-fg: #f7efd8;
}


html { scroll-behavior: smooth; }
body:has(.route-theatre) {
  background: var(--rt-ink);
  overflow-x: clip;
}
.route-theatre {
  background: var(--rt-gold);
  color: var(--rt-ink);
  font-family: "Source Sans 3", sans-serif;
  min-height: 100vh;
  position: relative;
}
.route-theatre a { color: inherit; text-decoration: none; }

.rt-spine {
  background: var(--rt-spine);
  bottom: 0;
  left: 14px;
  position: fixed;
  top: 58px;
  width: 2px;
  z-index: 90;
}
.rt-spine i {
  background: var(--rt-accent);
  display: block;
  height: 0;
  width: 100%;
}

.rt-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: var(--rt-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--rt-header-fg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 58px;
  left: 0;
  padding: 0 clamp(18px, 4vw, 42px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}
.rt-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  width: fit-content;
}
.rt-here {
  color: color-mix(in srgb, var(--rt-header-fg) 70%, transparent);
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
.rt-links { display: flex; gap: 20px; justify-content: end; }
.rt-links a {
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rt-main { position: relative; }
.rt-journey { position: relative; }

.rt-opening {
  background: var(--rt-gold);
  color: var(--rt-ink);
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(110px, 14vh, 150px) clamp(24px, 8vw, 110px) clamp(80px, 12vh, 130px);
  position: relative;
}
.rt-opening::before {
  background: repeating-linear-gradient(90deg, transparent 0 80px, var(--rt-grid) 80px 82px);
  content: "";
  inset: 0;
  position: absolute;
}
.rt-opening::after {
  background: linear-gradient(180deg, transparent, var(--rt-city-1));
  bottom: 0;
  content: "";
  height: 18vh;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}
.rt-opening > p,
.rt-opening > a,
.rt-opening h1,
.rt-opening-title,
.rt-opening-intro,
.rt-programme {
  position: relative;
  z-index: 2;
}
.rt-opening > p:first-child {
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rt-opening h1 {
  font: 700 clamp(72px, 11vw, 168px) / 0.82 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.08em;
  margin: 28px 0 22px;
  max-width: 9ch;
}
.rt-opening-title {
  display: block;
  font: 600 clamp(22px, 2.4vw, 34px) / 1.2 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.rt-opening-intro {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  max-width: 38rem;
  opacity: 0.88;
}
.rt-opening > a {
  border: 2px solid currentColor;
  display: inline-block;
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  margin-top: 36px;
  padding: 16px 18px;
  text-transform: uppercase;
}
.rt-programme {
  background: var(--rt-paper);
  bottom: clamp(40px, 8vh, 90px);
  box-shadow: 12px 14px 0 var(--rt-shadow);
  color: var(--rt-ink);
  display: grid;
  gap: 9px;
  padding: 26px 30px;
  position: absolute;
  right: clamp(24px, 8vw, 110px);
  transform: rotate(2deg);
  width: min(340px, 34vw);
  z-index: 3;
}
.rt-programme span,
.rt-programme small {
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rt-programme b {
  font: 600 27px / 1.05 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.03em;
}

.rt-chapter { position: relative; }
.rt-city {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  min-height: 92svh;
  position: relative;
  scroll-margin-top: 58px;
  z-index: 1;
}
.rt-city-1 .rt-city-stage { background: var(--rt-city-1); }
.rt-city-2 .rt-city-stage { background: var(--rt-city-2); }
.rt-city-3 .rt-city-stage { background: var(--rt-city-3); }
.rt-city-4 .rt-city-stage { background: var(--rt-city-4); }
.rt-city-stage {
  color: var(--rt-cream);
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: 92svh;
  padding: clamp(96px, 12vh, 140px) clamp(28px, 5vw, 72px) clamp(48px, 8vh, 88px);
  position: relative;
}
.rt-city-stage::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  bottom: 0;
  content: "";
  height: 28%;
  left: 0;
  position: absolute;
  right: 0;
}
.rt-city-act {
  color: var(--rt-accent);
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}
.rt-city-stage h2 {
  font: 700 clamp(64px, 9vw, 140px) / 0.84 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.08em;
  margin: 0;
  position: relative;
  z-index: 1;
}
.rt-city-chapter {
  font: 500 11px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  margin: 0;
  opacity: 0.7;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}
.rt-city-note {
  font: 600 clamp(18px, 1.6vw, 24px) / 1.35 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.03em;
  max-width: 18ch;
  position: relative;
  z-index: 1;
}
.rt-city-copy {
  background: var(--rt-paper);
  color: var(--rt-ink);
  padding: clamp(96px, 12vh, 150px) clamp(32px, 6vw, 96px) clamp(48px, 7vh, 80px);
}
.rt-city-copy > header p {
  color: var(--rt-accent);
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.rt-city-copy h3 {
  font: 700 clamp(36px, 4.8vw, 72px) / 0.94 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.06em;
  margin: 0 0 clamp(36px, 6vh, 64px);
  max-width: 12ch;
}
.rt-city-sections section {
  border-top: 2px solid var(--rt-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 24px 0;
}
.rt-city-sections small {
  color: var(--rt-accent);
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  padding-top: 4px;
  text-transform: uppercase;
}
.rt-city-sections p {
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  max-width: 40rem;
}
.rt-continue {
  color: var(--rt-accent);
  font: 500 10px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  margin: 36px 0 0;
  text-transform: uppercase;
}
.rt-city-final {
  border-top: 3px solid currentColor;
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding-top: 28px;
}
.rt-city-final span {
  color: var(--rt-accent);
  font: 500 9px "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rt-city-final strong {
  font: 700 34px / 1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.04em;
}
.rt-city-final a {
  border-bottom: 2px solid currentColor;
  font: 500 10px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  margin-top: 12px;
  padding-bottom: 6px;
  text-transform: uppercase;
  width: fit-content;
}

.rt-bridge {
  align-items: center;
  background: var(--rt-bridge);
  color: var(--rt-ink);
  display: flex;
  font: 600 11px "IBM Plex Mono", monospace;
  height: 56px;
  justify-content: center;
  letter-spacing: 0.14em;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}
.rt-bridge span::before {
  content: "Arriving · ";
  opacity: 0.55;
}

.rt-leg {
  height: 260svh;
  margin-top: -1px;
  position: relative;
  z-index: 1;
}
.rt-sticky {
  background: var(--rt-stage);
  contain: paint;
  height: 100svh;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.rt-leg-flight .rt-sticky { background: var(--rt-flight); }
.rt-leg-car .rt-sticky { background: var(--rt-car-stage); }

.rt-stage-art { inset: 0; position: absolute; }
.rt-curtains i {
  background: repeating-linear-gradient(90deg, var(--rt-curtain-a) 0 42px, var(--rt-curtain-b) 42px 78px);
  bottom: 0;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 0;
  width: 8%;
  z-index: 30;
}
.rt-curtains i:first-child { left: 0; }
.rt-curtains i:last-child { right: 0; }
.rt-lights {
  display: flex;
  justify-content: space-around;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 0;
  z-index: 8;
}
.rt-lights i {
  background: var(--rt-light-body);
  height: 32px;
  position: relative;
  width: 42px;
}
.rt-lights i::after {
  background: linear-gradient(180deg, var(--rt-light-beam), transparent);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  content: "";
  height: 50vh;
  left: -110px;
  position: absolute;
  top: 26px;
  width: 260px;
}
.rt-sky {
  background: linear-gradient(180deg, var(--rt-sky-top) 0 60%, var(--rt-sky-bot) 60%);
  inset: 0;
  position: absolute;
}
.rt-sky > i {
  background: var(--rt-sun);
  border-radius: 50%;
  height: 130px;
  position: absolute;
  right: 16%;
  top: 17%;
  width: 130px;
}
.rt-world {
  bottom: 15%;
  height: 58%;
  left: 0;
  position: absolute;
  transform: translateX(var(--journey-shift));
  width: 310%;
}
.rt-scene { bottom: 12%; position: absolute; }
.rt-buildings {
  display: flex;
  gap: 20px;
  left: 5%;
  width: 25%;
}
.rt-buildings i {
  background: var(--rt-building);
  border: 8px solid var(--rt-building-edge);
  height: clamp(130px, 26vh, 240px);
  width: 18%;
}
.rt-buildings i:nth-child(2),
.rt-buildings i:nth-child(4) {
  height: 180px;
  margin-top: 60px;
}
.rt-fields {
  align-items: end;
  display: flex;
  gap: 50px;
  left: 38%;
  width: 28%;
}
.rt-fields i {
  background: var(--rt-field);
  clip-path: polygon(50% 0, 60% 68%, 100% 100%, 0 100%, 40% 68%);
  height: 180px;
  width: 180px;
}
.rt-fields i:nth-child(2) { height: 240px; width: 240px; }
.rt-fields i:nth-child(3) { height: 150px; width: 150px; }
.rt-campus {
  align-items: end;
  display: flex;
  left: 76%;
  width: 22%;
}
.rt-campus i:first-child {
  background: var(--rt-campus);
  border: 8px solid var(--rt-campus-edge);
  height: 200px;
  width: 360px;
}
.rt-campus i:nth-child(2) {
  border: 14px solid var(--rt-campus-edge);
  border-bottom: 0;
  border-radius: 160px 160px 0 0;
  height: 180px;
  margin-left: -260px;
  width: 190px;
}
.rt-campus i:nth-child(3) {
  background: var(--rt-campus-edge);
  height: 280px;
  margin-left: 90px;
  width: 36px;
}
.rt-track {
  background: var(--rt-track);
  bottom: 0;
  height: 13%;
  left: 0;
  position: absolute;
  right: 0;
}
.rt-track::before,
.rt-track::after {
  background: var(--rt-rail);
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}
.rt-track::before { top: 23%; }
.rt-track::after { bottom: 23%; }
.rt-track i {
  background: repeating-linear-gradient(90deg, transparent 0 60px, var(--rt-sleeper) 60px 74px);
  inset: 0;
  position: absolute;
}

/* Train faces right: coaches then engine */
.rt-train {
  align-items: end;
  bottom: 19%;
  display: flex;
  filter: drop-shadow(14px 16px 0 color-mix(in srgb, var(--rt-shadow) 35%, transparent));
  height: 23%;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) translateY(calc(var(--journey-speed) * -2px));
  width: min(760px, 62vw);
  z-index: 16;
}
.rt-engine {
  background: var(--rt-engine);
  border: 8px solid var(--rt-trim);
  height: 70%;
  position: relative;
  width: 28%;
}
.rt-engine::before {
  background: var(--rt-trim);
  content: "";
  height: 55%;
  position: absolute;
  right: 12%;
  top: -48%;
  width: 20%;
}
.rt-engine i {
  background: var(--rt-wheel-rim);
  border: 6px solid var(--rt-trim);
  border-radius: 50%;
  height: 36%;
  left: 9%;
  position: absolute;
  top: 18%;
  width: 30%;
}
.rt-engine b,
.rt-coach::after {
  background: var(--rt-wheel);
  border: 6px solid var(--rt-wheel-rim);
  border-radius: 50%;
  bottom: -25px;
  height: 50px;
  position: absolute;
  width: 50px;
}
.rt-engine b { right: 18%; left: auto; }
.rt-coach {
  background: var(--rt-coach);
  border: 8px solid var(--rt-trim);
  display: flex;
  gap: 9%;
  height: 58%;
  justify-content: center;
  padding-top: 12%;
  position: relative;
  width: 36%;
}
.rt-coach i {
  background: var(--rt-window);
  border: 4px solid var(--rt-trim);
  height: 38%;
  width: 20%;
}
.rt-coach::after { content: ""; left: 34%; }
.rt-smoke { bottom: 66%; right: 8%; left: auto; position: absolute; }
.rt-smoke i {
  animation: rtSmoke 1.8s ease-out infinite;
  background: var(--rt-smoke);
  border-radius: 50%;
  height: 34px;
  position: absolute;
  width: 34px;
}
.rt-smoke i:nth-child(2) { animation-delay: 0.5s; }
.rt-smoke i:nth-child(3) { animation-delay: 1s; }

.rt-flight-sky {
  background: linear-gradient(
    180deg,
    var(--rt-flight-sky-a) 0%,
    var(--rt-flight-sky-b) 42%,
    var(--rt-flight-sky-c) calc(70% + var(--ground-y) * 0.15),
    var(--rt-flight-sky-c) 100%
  );
  inset: 0;
  position: absolute;
}
.rt-sun {
  background: var(--rt-sun);
  border-radius: 50%;
  height: 120px;
  opacity: calc(0.35 + var(--flight-alt) * 0.65);
  position: absolute;
  right: 18%;
  top: calc(18% - var(--flight-alt) * 8%);
  width: 120px;
}
.rt-cloud-layer {
  left: 0;
  position: absolute;
  top: calc(12% + var(--flight-alt) * 8%);
  transform: translateX(calc(var(--journey-progress) * -18%));
  width: 140%;
}
.rt-cloud-layer i {
  background: color-mix(in srgb, var(--rt-cream) 78%, transparent);
  border-radius: 999px;
  height: 56px;
  position: absolute;
  width: 140px;
}
.rt-cloud-layer i:nth-child(1) { left: 8%; top: 10px; }
.rt-cloud-layer i:nth-child(2) { height: 84px; left: 28%; top: 50px; width: 200px; }
.rt-cloud-layer i:nth-child(3) { left: 48%; top: 0; width: 120px; }
.rt-cloud-layer i:nth-child(4) { height: 70px; left: 62%; top: 70px; width: 180px; }
.rt-cloud-layer i:nth-child(5) { left: 78%; top: 20px; }
.rt-cloud-layer i:nth-child(6) { height: 60px; left: 92%; top: 55px; width: 150px; }
.rt-flight-ground {
  bottom: calc(-8% - var(--ground-y));
  height: 42%;
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleY(calc(1.15 - var(--flight-alt) * 0.55));
  transform-origin: bottom center;
}
.rt-flight-cityscape {
  align-items: end;
  bottom: 18%;
  display: flex;
  gap: 18px;
  height: 55%;
  left: 4%;
  position: absolute;
  right: 4%;
}
.rt-flight-cityscape i {
  background: var(--rt-building-edge);
  border: 5px solid var(--rt-trim);
  flex: 1;
  height: 40%;
}
.rt-flight-cityscape i:nth-child(2) { height: 70%; }
.rt-flight-cityscape i:nth-child(3) { height: 55%; }
.rt-flight-cityscape i:nth-child(4) { height: 85%; }
.rt-flight-cityscape i:nth-child(5) { height: 48%; }
.rt-flight-cityscape i:nth-child(6) { height: 62%; }
.rt-runway {
  background: var(--rt-runway);
  bottom: 0;
  height: 22%;
  left: 0;
  opacity: calc(1 - var(--flight-alt) * 0.85);
  position: absolute;
  right: 0;
}
.rt-runway b {
  background: repeating-linear-gradient(90deg, var(--rt-runway-mark) 0 42px, transparent 42px 84px);
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 46%;
}
.rt-runway i {
  background: color-mix(in srgb, var(--rt-cream) 35%, transparent);
  height: 4px;
  position: absolute;
  top: 20%;
  width: 18%;
}
.rt-runway i:first-of-type { left: 8%; }
.rt-runway i:last-of-type { right: 8%; }
.rt-plane {
  left: 50%;
  position: absolute;
  top: calc(58% - var(--flight-alt) * 38%);
  transform:
    translateX(-50%)
    rotate(var(--flight-pitch))
    scale(calc(1.05 - var(--flight-alt) * 0.18 + var(--journey-speed) * 0.04));
  transform-origin: 50% 60%;
  width: min(420px, 46vw);
  z-index: 16;
}
.rt-plane-body {
  background: var(--rt-plane-body);
  border: 7px solid var(--rt-trim);
  border-radius: 40% 60% 40% 40%;
  display: block;
  height: 54px;
  position: relative;
  width: 100%;
}
.rt-plane-body i {
  background: var(--rt-plane-window);
  border: 4px solid var(--rt-trim);
  height: 18px;
  left: 28%;
  position: absolute;
  top: 14px;
  width: 42%;
}
.rt-plane-body b {
  background: var(--rt-plane-tail);
  border: 4px solid var(--rt-trim);
  border-radius: 50%;
  height: 22px;
  position: absolute;
  right: 10%;
  top: 12px;
  width: 22px;
}
.rt-plane-wing {
  background: var(--rt-plane-wing);
  border: 6px solid var(--rt-trim);
  height: 18px;
  left: 22%;
  position: absolute;
  top: 28px;
  transform: skewX(-18deg);
  width: 56%;
}
.rt-plane-tail {
  background: var(--rt-plane-tail);
  border: 5px solid var(--rt-trim);
  height: 42px;
  left: 4%;
  position: absolute;
  top: -18px;
  width: 18px;
}
.rt-plane-gear {
  background: var(--rt-wheel);
  border: 4px solid var(--rt-wheel-rim);
  border-radius: 50%;
  bottom: calc(-18px * var(--flight-gear));
  height: calc(22px * var(--flight-gear));
  opacity: var(--flight-gear);
  position: absolute;
  width: calc(22px * var(--flight-gear));
  z-index: 2;
}
.rt-plane-gear-f { left: 62%; }
.rt-plane-gear-r { left: 28%; }
.rt-plane-contrail {
  background: linear-gradient(90deg, color-mix(in srgb, var(--rt-cream) 55%, transparent), transparent);
  height: 4px;
  left: -40%;
  opacity: calc(var(--flight-alt) * 0.8);
  position: absolute;
  top: 28px;
  width: 42%;
}

.rt-car-sky {
  background: linear-gradient(180deg, var(--rt-car-sky-a) 0 58%, var(--rt-car-sky-b) 58%);
  inset: 0;
  position: absolute;
}
.rt-car-sky i {
  background: var(--rt-sun);
  border-radius: 50%;
  height: 110px;
  position: absolute;
  right: 14%;
  top: 14%;
  width: 110px;
}
.rt-car-world {
  bottom: 0;
  height: 70%;
  left: 0;
  position: absolute;
  transform: translateX(calc(var(--journey-shift) * 0.9));
  width: 320%;
}
.rt-car-town {
  align-items: end;
  bottom: 22%;
  display: flex;
  gap: 16px;
  position: absolute;
}
.rt-car-town-start { left: 3%; width: 22%; }
.rt-car-town-end { left: 78%; width: 18%; }
.rt-car-town i {
  background: var(--rt-building-edge);
  border: 5px solid var(--rt-trim);
  height: 90px;
  width: 18%;
}
.rt-car-town i:nth-child(2) { height: 140px; }
.rt-car-town i:nth-child(3) { height: 110px; }
.rt-car-town i:nth-child(4) { height: 160px; }
.rt-car-fields {
  align-items: end;
  bottom: 22%;
  display: flex;
  gap: 70px;
  left: 28%;
  position: absolute;
  width: 46%;
}
.rt-car-fields i {
  background: var(--rt-field);
  clip-path: polygon(50% 0, 58% 70%, 100% 100%, 0 100%, 42% 70%);
  height: 140px;
  width: 110px;
}
.rt-car-fields i:nth-child(even) { height: 200px; width: 150px; }
.rt-road {
  background: var(--rt-road);
  bottom: 0;
  height: 24%;
  left: 0;
  position: absolute;
  right: 0;
}
.rt-road b {
  animation: rtRoadDash calc(0.55s - var(--journey-speed) * 0.28s) linear infinite;
  background: repeating-linear-gradient(90deg, var(--rt-road-dash) 0 70px, transparent 70px 140px);
  height: 5px;
  left: 0;
  opacity: calc(0.25 + var(--journey-speed) * 0.75);
  position: absolute;
  right: 0;
  top: 48%;
}
.rt-road-edge {
  background: color-mix(in srgb, var(--rt-road-dash) 55%, transparent);
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 18%;
}
.rt-road-edge-r { bottom: 18%; top: auto; }
.rt-car {
  bottom: 15%;
  filter: drop-shadow(10px 12px 0 color-mix(in srgb, var(--rt-shadow) 35%, transparent));
  height: 90px;
  left: calc(50% + var(--car-x));
  position: absolute;
  transform: translateX(-50%) translateY(calc(var(--journey-speed) * -4px));
  width: min(280px, 42vw);
  z-index: 16;
}
.rt-car-body {
  background: var(--rt-car-body);
  border: 7px solid var(--rt-trim);
  border-radius: 18px 40px 10px 10px;
  display: block;
  height: 58px;
  position: relative;
  width: 100%;
}
.rt-car-body i {
  background: var(--rt-car-window);
  border: 4px solid var(--rt-trim);
  height: 22px;
  position: absolute;
  top: 10px;
  width: 28%;
}
.rt-car-body i:first-child { left: 18%; }
.rt-car-body i:nth-child(2) { right: 14%; width: 22%; }
.rt-car-body em {
  background: var(--rt-wheel-rim);
  border: 3px solid var(--rt-trim);
  border-radius: 4px;
  height: 10px;
  position: absolute;
  right: -4px;
  top: 22px;
  width: 14px;
}
.rt-car-wheel {
  animation: rtWheel calc(0.45s - var(--journey-speed) * 0.25s) linear infinite;
  background: var(--rt-wheel);
  border: 5px solid var(--rt-wheel-rim);
  border-radius: 50%;
  bottom: -8px;
  height: 34px;
  left: 18%;
  position: absolute;
  width: 34px;
}
.rt-car-wheel-rear { left: auto; right: 16%; }
.rt-car-light {
  background: color-mix(in srgb, var(--rt-wheel-rim) 55%, transparent);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
  height: 36px;
  opacity: calc(0.15 + var(--journey-speed) * 0.55);
  position: absolute;
  right: -70px;
  top: 18px;
  width: 70px;
}

.rt-caption {
  background: var(--rt-paper);
  border: 4px solid var(--rt-caption-border);
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--rt-shadow) 45%, transparent);
  color: var(--rt-ink);
  max-width: 480px;
  opacity: 0;
  padding: 26px 30px;
  position: absolute;
  top: 18%;
  width: min(38vw, 480px);
  z-index: 22;
}
.rt-caption small {
  color: var(--rt-accent);
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rt-caption p {
  font: 600 clamp(21px, 2.2vw, 34px) / 1.15 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.04em;
  margin: 14px 0 0;
}
.rt-caption-one {
  left: 12%;
  opacity: var(--journey-beat-one);
  transform: rotate(-2deg) translateY(calc((1 - var(--journey-beat-one)) * 35px));
}
.rt-caption-two {
  opacity: var(--journey-beat-two);
  right: 13%;
  transform: rotate(2deg) translateY(calc((1 - var(--journey-beat-two)) * 35px));
}
.rt-caption-three {
  left: 31%;
  opacity: var(--journey-beat-three);
  transform: rotate(-1deg) translateY(calc((1 - var(--journey-beat-three)) * 35px));
}
.rt-route {
  align-items: center;
  bottom: 5%;
  color: var(--rt-route-fg);
  display: grid;
  font: 500 9px "IBM Plex Mono", monospace;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  left: 12%;
  letter-spacing: 0.04em;
  position: absolute;
  right: 12%;
  text-transform: uppercase;
  z-index: 24;
}
.rt-route i { background: color-mix(in srgb, var(--rt-route-fg) 35%, transparent); height: 2px; }
.rt-route b {
  background: var(--rt-accent);
  display: block;
  height: 100%;
  width: calc(var(--journey-progress) * 100%);
}
.rt-phase {
  color: var(--rt-route-fg);
  font: 500 8px "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  position: absolute;
  right: 12%;
  text-transform: uppercase;
  top: 8%;
  z-index: 24;
}

.rt-polish-switcher {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: #f4f1ea;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr 42px;
  left: 50%;
  padding: 10px 12px;
  position: fixed;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 28px));
  z-index: 9999;
}
.rt-polish-switcher button {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: 600 16px/1 "IBM Plex Mono", monospace;
  height: 42px;
  width: 42px;
}
.rt-polish-switcher div { display: grid; gap: 2px; text-align: center; }
.rt-polish-switcher strong { font: 600 12px/1.2 "IBM Plex Mono", monospace; }
.rt-polish-switcher span { color: rgba(244, 241, 234, 0.55); font: 500 10px/1.2 "IBM Plex Mono", monospace; }

/* Smoke drifts rearward (left) while train faces / travels right */
@keyframes rtSmoke {
  0% { opacity: 0.8; transform: translate(0, 0) scale(0.7); }
  100% { opacity: 0; transform: translate(-40px, -50px) scale(1.4); }
}
@keyframes rtRoadDash {
  from { background-position: 0 0; }
  to { background-position: -140px 0; }
}
@keyframes rtWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .rt-spine { display: none; }
  .rt-header { grid-template-columns: 1fr auto; }
  .rt-here { display: none; }
  .rt-links a:first-child { display: none; }
  .rt-opening { padding: 110px 22px 70px; }
  .rt-opening h1 { font-size: clamp(56px, 16vw, 84px); }
  .rt-programme {
    margin-top: 48px;
    position: relative;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
  }
  .rt-city { display: block; }
  .rt-city-stage { min-height: 56svh; padding: 92px 22px 40px; }
  .rt-city-stage h2 { font-size: clamp(52px, 16vw, 78px); }
  .rt-city-copy { padding: 56px 22px 48px; }
  .rt-city-copy h3 { font-size: clamp(34px, 10vw, 48px); }
  .rt-city-sections section { grid-template-columns: 1fr; gap: 8px; }
  .rt-leg { height: 210svh; }
  .rt-curtains i { width: 4%; }
  .rt-caption { width: calc(100% - 44px); left: 22px; right: 22px; max-width: none; }
  .rt-caption-two,
  .rt-caption-three { left: 22px; right: 22px; }
  .rt-route { left: 22px; right: 22px; }
  .rt-phase { right: 22px; }
  .rt-train { width: min(520px, 84vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rt-smoke i,
  .rt-road b,
  .rt-car-wheel { animation: none; }
  .rt-world,
  .rt-train,
  .rt-plane,
  .rt-car,
  .rt-car-world,
  .rt-flight-ground { transform: none; }
}
