@font-face {
  font-family: "Sofia Sans";
  src: url("assets/sofia-sans.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("assets/sofia-sans-condensed.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
}
@property --k {
  syntax: "<number>";
  inherits: true;
  initial-value: 2.5;
}

:root {
  --ground: #f5f5f0;
  --ground-2: #e9eae4;
  --ink: #131a28;
  --muted: #4a5567;
  --rule: #d3d6d1;
  --rule-strong: #9aa1ab;
  --plate: #131a28;
  --on-plate: #f5f5f0;
  --on-plate-muted: #b4bccb;
  --l1: #0b7a43;
  --l2: #1257c9;
  --l3: #d12b2b;
  --l4: #f08a00;
  --l5: #3d4654;
  --l6: #c0177a;
  --on1: #fff;
  --on2: #fff;
  --on3: #fff;
  --on4: #131a28;
  --on5: #fff;
  --on6: #fff;
  --focus: #1257c9;
  --sans: "Sofia Sans", ui-sans-serif, system-ui, sans-serif;
  --cond: "Sofia Sans Condensed", "Sofia Sans", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --band-h: 3.75rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #10151f;
    --ground-2: #171e2b;
    --ink: #eef0ea;
    --muted: #a6aebb;
    --rule: #2a3344;
    --rule-strong: #5a6579;
    --plate: #1d2534;
    --on-plate: #eef0ea;
    --on-plate-muted: #a6aebb;
    --l1: #3cc47e;
    --l2: #6aa5ff;
    --l3: #ff7167;
    --l4: #ffab3d;
    --l5: #c9cfd9;
    --l6: #f36bb6;
    --on1: #0b1320;
    --on2: #0b1320;
    --on3: #0b1320;
    --on4: #0b1320;
    --on5: #0b1320;
    --on6: #0b1320;
    --focus: #ffab3d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #10151f;
  --ground-2: #171e2b;
  --ink: #eef0ea;
  --muted: #a6aebb;
  --rule: #2a3344;
  --rule-strong: #5a6579;
  --plate: #1d2534;
  --on-plate: #eef0ea;
  --on-plate-muted: #a6aebb;
  --focus: #ffab3d;
  color-scheme: dark;
}
:root[data-theme="dark"],
.board,
.following {
  --l1: #3cc47e;
  --l2: #6aa5ff;
  --l3: #ff7167;
  --l4: #ffab3d;
  --l5: #c9cfd9;
  --l6: #f36bb6;
  --on1: #0b1320;
  --on2: #0b1320;
  --on3: #0b1320;
  --on4: #0b1320;
  --on5: #0b1320;
  --on6: #0b1320;
}
.l1 { --c: var(--l1); --on: var(--on1); }
.l2 { --c: var(--l2); --on: var(--on2); }
.l3 { --c: var(--l3); --on: var(--on3); }
.l4 { --c: var(--l4); --on: var(--on4); }
.l5 { --c: var(--l5); --on: var(--on5); }
.l6 { --c: var(--l6); --on: var(--on6); }

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--band-h) + 1rem);
  scrollbar-color: var(--rule-strong) var(--ground);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--cond);
  font-weight: 800;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
b {
  font-weight: 700;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
::selection {
  background: var(--ink);
  color: var(--ground);
}
[hidden] {
  display: none !important;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(100% - 2 * var(--pad), 84rem);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--ground);
  color: var(--ink);
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* Line bullet */
.bullet {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.65em;
  height: 1.65em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c, var(--ink));
  color: var(--on, var(--ground));
  font: 800 0.82em/1 var(--cond);
  font-variant-numeric: tabular-nums;
}
button.bullet {
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease);
}
button.bullet::after {
  content: "";
  position: absolute;
  inset: -9px;
}
button.bullet:hover,
button.bullet[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--c);
}

/* Signage band */
.band {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--plate);
  color: var(--on-plate);
}
.band-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--band-h);
}
.band-name {
  padding-block: 0.75rem;
  font: 700 1.25rem/1 var(--cond);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.strip {
  display: flex;
  margin-left: auto;
}
.strip a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--band-h);
  padding: 0 1.15rem 0.75rem;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
}
.strip a::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.8rem;
  height: 2px;
  background: var(--on-plate-muted);
  opacity: 0.6;
}
.strip a:first-child::before {
  left: 50%;
}
.strip a:last-child::before {
  right: 50%;
}
.strip a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(0.8rem + 1px);
  width: 10px;
  height: 10px;
  translate: -50% 50%;
  border: 2px solid var(--on-plate);
  border-radius: 50%;
  background: var(--plate);
  transition: background-color 0.2s var(--ease), scale 0.3s var(--ease);
}
.strip a:hover::after,
.strip a[aria-current]::after {
  background: var(--on-plate);
}
.strip a[aria-current]::after {
  scale: 1.3;
}
.band-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid color-mix(in srgb, var(--on-plate) 40%, transparent);
  border-radius: 6px;
  background: none;
  color: var(--on-plate);
  font: 600 0.9rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.band-btn:hover {
  border-color: var(--on-plate);
  background: color-mix(in srgb, var(--on-plate) 12%, transparent);
}
.band-btn:active {
  scale: 0.97;
}
.band :focus-visible,
.board :focus-visible,
.following :focus-visible {
  outline-color: var(--on-plate);
}
.menu-btn {
  display: none;
}
.menu-btn .i-close,
.band[data-open] .menu-btn .i-open {
  display: none;
}
.band[data-open] .menu-btn .i-close {
  display: block;
}

/* Buttons and links */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.25rem;
  padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--ground);
  font: 700 1.15rem/1 var(--cond);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: scale 0.2s var(--ease);
}
.btn-arrow {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 4px;
  background: var(--ground);
  color: var(--ink);
}
.btn-arrow .i {
  transition: translate 0.3s var(--ease);
}
.btn:hover .btn-arrow .i {
  translate: 4px 0;
}
.btn:active {
  scale: 0.98;
}
.link-down,
.mail,
.more a,
.elsewhere a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 600;
}
.link-down .i {
  transition: translate 0.3s var(--ease);
}
.link-down:hover .i {
  translate: 0 3px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vh, 3rem);
  min-height: calc(100dvh - var(--band-h));
  padding-top: clamp(2rem, 6vh, 4.5rem);
  overflow-x: clip;
}
.hero h1 {
  font-size: clamp(3rem, min(6.2vw, 10.5vh), 5.6rem);
  line-height: 0.97;
  letter-spacing: -0.012em;
}
.hero-role {
  margin-top: 0.45rem;
  font: 700 clamp(1.35rem, 2.3vw, 1.95rem) / 1.15 var(--cond);
}
.lede {
  max-width: 40em;
  margin-block: clamp(1rem, 2.2vh, 1.5rem) clamp(1.25rem, 3vh, 2rem);
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
}
.network {
  position: relative;
  padding-bottom: clamp(1rem, 3vh, 2.25rem);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.legend-label {
  width: 100%;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 99px;
  background: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.line-btn:hover {
  border-color: var(--ink);
}
.line-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}
.map-frame {
  max-width: 105rem;
  margin-inline: auto;
}
.map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.map-wide {
  display: none;
}
.map-compact {
  max-width: 60rem;
}
html:not(.js) .legend {
  display: none;
}
.route {
  fill: none;
  stroke: var(--c);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route.ext {
  stroke-dasharray: 0.1 15;
  opacity: 0.6;
}
.leader {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
}
.st {
  text-decoration: none;
}
.st .hit {
  fill: transparent;
}
.st-name,
.st-years,
.st-group {
  text-anchor: middle;
  font-family: var(--cond);
}
.st-name {
  fill: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
}
.st-years,
.st-group {
  fill: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.st-minor .st-name {
  font-weight: 500;
}
.st:hover .st-name,
.st:focus-visible .st-name {
  text-decoration: underline;
}
.dot,
.ix {
  fill: var(--ground);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.ix {
  stroke-width: 2.5;
}
.bullet-c {
  fill: var(--c);
}
.bullet-t {
  fill: var(--on);
  text-anchor: middle;
  dominant-baseline: central;
  font: 800 13.5px var(--cond);
}
.line-name {
  fill: var(--ink);
  text-anchor: end;
  dominant-baseline: central;
  font: 600 14.5px var(--sans);
}
.js .map .origin {
  cursor: pointer;
}
.origin .bullet-c {
  transition: stroke-width 0.2s var(--ease);
  stroke: var(--c);
  stroke-width: 0;
  stroke-opacity: 0.35;
}
.origin:hover .bullet-c {
  stroke-width: 7;
}
.train {
  fill: var(--ink);
  stroke: var(--ground);
  stroke-width: 1.5;
  opacity: 0;
}
.map-compact .route {
  stroke-width: 5;
}
.map-compact .route.ext {
  stroke-dasharray: 0.1 10;
}
.map-compact .dot {
  stroke-width: 1;
}
.map-compact .ix {
  stroke-width: 1.6;
}
.map-compact .st-years {
  font-size: 11px;
  font-weight: 600;
}
.map-compact .bullet-t {
  font-size: 10.5px;
}

/* Sections */
.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}
.section-head {
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}
.section-head h2,
.about-text h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.section-head p {
  max-width: 56ch;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Ride: work history */
.ride {
  --tw: 6px;
  --col: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stop-row {
  --dot-y: 2.65rem;
  display: grid;
  grid-template-columns: calc(var(--col) * 6) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3.5vw, 3.5rem);
}
.tracks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, var(--col));
}
.t {
  position: relative;
}
.t::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: var(--tw);
  translate: -50% 0;
  background: var(--c);
}
.t.off::before {
  display: none;
}
.t.ext::before {
  background: radial-gradient(circle, var(--c) 2.5px, transparent 3px) 50% 0 / 100% 13px repeat-y;
  opacity: 0.65;
}
.t.end::before {
  bottom: auto;
  height: var(--dot-y);
}
.t.stop::after,
.t.end::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--dot-y);
  width: 11px;
  height: 11px;
  translate: -50% -50%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
}
.stop-lead .t::after {
  display: none;
}
.stop-lead .tracks::after {
  content: "";
  position: absolute;
  inset-inline: -1px;
  top: var(--dot-y);
  height: 16px;
  translate: 0 -50%;
  border: 2.5px solid var(--ink);
  border-radius: 99px;
  background: var(--ground);
}
.stop-body {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: 1.75rem 2.5rem;
}
.stop-head h4 {
  font-size: 1.8rem;
  line-height: 1.1;
}
.stop-lead .stop-head h4 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.02;
}
.stop-group .stop-head h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}
.stop-lead {
  --dot-y: 2.95rem;
}
.stop-sub .stop-head h4,
.stop-minor .stop-head h4 {
  font-size: 1.35rem;
  line-height: 1.15;
}
.stop-head h4 a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.stop-head h4 .i {
  width: 0.7em;
  height: 0.7em;
}
.role {
  margin-top: 0.3rem;
  font-weight: 600;
}
.where {
  display: block;
}
.facts b {
  white-space: nowrap;
}
.when {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.stop-sub,
.stop-minor {
  --dot-y: 1.7rem;
}
.stop-sub .stop-body,
.stop-minor .stop-body {
  padding-block: 0.95rem 1.2rem;
}
.stop-sub .role,
.stop-minor .role {
  margin-top: 0.1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.stop-group .stop-body {
  margin-top: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  border-top: 1.5px solid var(--ink);
}
.stop-group.stop-ext .stop-body {
  margin-top: 0.5rem;
}
.stop-group .stop-text {
  color: var(--muted);
}
.stop-minor .stop-body {
  padding-bottom: 2rem;
}
.stop-text > p {
  max-width: 62ch;
}
.stop-sub .stop-text,
.stop-minor .stop-text {
  color: var(--muted);
}
.facts {
  display: grid;
  gap: 0.3rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  position: relative;
  padding-left: 1.4rem;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.8rem;
  height: 2px;
  background: var(--ink);
}
.facts b,
.stop-text p b {
  font-variant-numeric: tabular-nums;
}
.calls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.calls li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.calls .bullet {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
}
.calls b {
  margin-right: 0.15rem;
  color: var(--ink);
}

/* Interchange */
.xchg {
  --gap: clamp(42px, 6.2vh, 58px);
  --thick: 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.xchg-scene {
  position: sticky;
  top: calc(var(--band-h) + 1.5rem);
  display: grid;
  place-items: center;
  height: min(34rem, 100dvh - var(--band-h) - 3rem);
  perspective: 1700px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.xchg-scene:active {
  cursor: grabbing;
}
.xchg-stack {
  --k: 2.5;
  position: relative;
  width: min(21.5rem, 64%);
  aspect-ratio: 1.5;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 58deg)) rotateZ(var(--rz, -38deg)) translateZ(calc((var(--k) - 2.5) * var(--gap) * 0.25));
}
.level {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc((2.5 - var(--i)) * var(--gap)));
}
.level > * {
  transition: opacity 0.5s var(--ease);
}
.lv-top {
  position: absolute;
  inset: 0;
  transform: translateZ(var(--thick));
  border: 1.5px solid var(--ink);
  background: var(--ground);
  transition: opacity 0.5s var(--ease), background-color 0.5s var(--ease);
}
.level.is-active .lv-top {
  background: color-mix(in srgb, var(--c) 16%, var(--ground));
}
.lv-track {
  position: absolute;
  inset-inline: -20%;
  top: 42%;
  height: 10px;
  translate: 0 -50%;
  border-radius: 5px;
  background: var(--c);
}
.lv-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  translate: -50% -50%;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
}
.lv-train {
  position: absolute;
  inset-inline: -20%;
  top: 42%;
  height: 16px;
  translate: 0 -50%;
  opacity: 0;
}
.lv-train::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 16px;
  border: 2px solid var(--ground);
  border-radius: 8px;
  background: var(--ink);
}
.lv-name {
  position: absolute;
  left: 0.8rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 1.1rem/1 var(--cond);
}
.side {
  position: absolute;
  background: var(--c);
}
.side-a {
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--thick);
  transform-origin: bottom;
  transform: rotateX(-90deg);
}
.side-b {
  left: 0;
  top: 0;
  width: var(--thick);
  height: 100%;
  transform-origin: left;
  transform: rotateY(-90deg);
  background: color-mix(in srgb, var(--c) 72%, #05080f);
}
.pole {
  position: absolute;
  width: 4px;
  height: calc(var(--gap) - var(--thick));
  transform-origin: bottom;
  transform: rotateX(90deg);
  background: var(--ink);
}
.pole.p1 {
  left: 5px;
  bottom: 5px;
}
.pole.p2 {
  right: 5px;
  bottom: 5px;
}
.pole.p3 {
  left: 5px;
  bottom: calc(100% - 9px);
}
.level:last-child .pole {
  display: none;
}
.xchg[data-active] .level:not(.is-active) > * {
  opacity: 0.42;
}
.panels {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46vh;
  padding-block: 2rem;
}
.panel:last-child {
  min-height: 44vh;
}
.panel h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 2.1rem;
  line-height: 1.05;
}
.panel h3 .bullet {
  font-size: 0.6em;
}
.panel > p {
  max-width: 54ch;
  margin-top: 0.8rem;
}
.skills {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.skills div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
}
.skills dt {
  color: var(--muted);
  font-size: 0.95rem;
}
.notes-title {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.2;
}
.notes {
  display: grid;
  gap: 0.75rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.notes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1.5rem;
  align-items: baseline;
}
.notes a {
  font-weight: 600;
}
.notes time {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.notes-none {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.more {
  margin-top: 1.5rem;
}

/* Journey times */
.speed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.board {
  padding: 1.25rem;
  border-radius: 8px;
  background: var(--plate);
  color: var(--on-plate);
}
.board table {
  width: 100%;
  border-collapse: collapse;
}
.board thead th {
  padding: 0 0 0.9rem;
  color: var(--on-plate-muted);
  font: 600 0.9rem/1 var(--sans);
  text-align: left;
}
.board thead th:last-child {
  text-align: right;
}
.board tbody tr {
  border-top: 1px solid color-mix(in srgb, var(--on-plate) 18%, transparent);
}
.board tbody th {
  padding: 1rem 1rem 1rem 0;
  font: 700 1.3rem/1.3 var(--cond);
  text-align: left;
}
.board tbody th span {
  display: block;
  margin-top: 0.25rem;
  color: var(--on-plate-muted);
  font: 400 0.95rem/1.35 var(--sans);
}
.b-lines {
  padding-right: 1rem;
  white-space: nowrap;
}
.b-lines .bullet {
  margin-right: 3px;
  font-size: 0.78rem;
}
.b-time {
  font: 700 1.5rem/1 var(--cond);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.flap-row {
  display: inline-flex;
  gap: 2px;
  perspective: 300px;
}
.fl {
  position: relative;
  isolation: isolate;
  display: inline-block;
  min-width: 0.72em;
  padding: 0.16em 0.06em 0.12em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--on-plate) 12%, var(--plate));
  text-align: center;
}
.fl::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  z-index: -1;
  height: 1px;
  background: var(--plate);
}
.fl-gap {
  min-width: 0.3em;
  background: none;
}
.fl-gap::after {
  display: none;
}
.checks h3 {
  margin-bottom: 1.1rem;
  font-size: 1.7rem;
  line-height: 1.1;
}
.checks dl {
  display: grid;
  gap: 1.3rem;
}
.checks dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}
.checks dt .i {
  box-sizing: content-box;
  width: 0.8em;
  height: 0.8em;
  padding: 0.25em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ground);
}
.checks dd {
  margin-top: 0.3rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.about-text p {
  max-width: 46ch;
  margin-top: 1rem;
}
.about-facts {
  display: grid;
  gap: 0.95rem;
}
.about-facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
}
.about-facts dt {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding-top: 0;
  overflow-x: clip;
}
.extension {
  --split: clamp(3.5rem, 30vw, 32rem);
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.extension i {
  position: relative;
  display: block;
  height: 6px;
}
.extension i::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--split);
  background: var(--c);
}
.extension i::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: calc(var(--split) + 24px);
  right: 0;
  background: radial-gradient(circle, var(--c) 2.5px, transparent 3px) 0 50% / 15px 6px repeat-x;
  opacity: 0.65;
}
.extension::after {
  content: "";
  position: absolute;
  left: calc(var(--split) - 9px);
  inset-block: -7px;
  width: 18px;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  background: var(--ground);
}
.contact h2,
.lost {
  font-size: clamp(2.7rem, 6.4vw, 5.5rem);
  line-height: 0.97;
  letter-spacing: -0.012em;
}
.contact-in > p:first-of-type {
  max-width: 46ch;
  margin-block: 1rem 2rem;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1.4;
}
.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.elsewhere .i,
.more .i {
  width: 0.8em;
  height: 0.8em;
}
.services {
  margin-top: 0.75rem;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer a {
  display: inline-block;
  padding-block: 0.6rem;
}
@media (min-width: 760px) {
  .board {
    padding: 2rem;
  }
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  align-items: center;
  padding-block: 1rem 5rem;
}

/* Following bar */
.following {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  translate: -50% 0;
  border-radius: 8px;
  background: var(--plate);
  color: var(--on-plate);
  box-shadow: 0 14px 34px -14px rgb(8 12 22 / 0.6);
}
.following p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.following button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid color-mix(in srgb, var(--on-plate) 40%, transparent);
  border-radius: 6px;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.following button:hover {
  border-color: var(--on-plate);
}

/* Follow a line: dim what it does not serve */
.st,
.route,
.origin,
.leaders,
.trains,
.t,
.panel,
.stop-body,
.board tbody tr {
  transition: opacity 0.4s var(--ease);
}
[data-follow] .st,
[data-follow] .panel,
[data-follow] .board tbody tr,
[data-follow] .stop-row[data-lines] .stop-body {
  opacity: 0.28;
}
[data-follow] .route,
[data-follow] .t,
[data-follow] .origin {
  opacity: 0.16;
}
[data-follow] .level > * {
  opacity: 0.22;
}
[data-follow="1"] [data-lines~="1"]:is(.st, .panel, tr),
[data-follow="2"] [data-lines~="2"]:is(.st, .panel, tr),
[data-follow="3"] [data-lines~="3"]:is(.st, .panel, tr),
[data-follow="4"] [data-lines~="4"]:is(.st, .panel, tr),
[data-follow="5"] [data-lines~="5"]:is(.st, .panel, tr),
[data-follow="6"] [data-lines~="6"]:is(.st, .panel, tr),
[data-follow="1"] .stop-row[data-lines~="1"] .stop-body,
[data-follow="2"] .stop-row[data-lines~="2"] .stop-body,
[data-follow="3"] .stop-row[data-lines~="3"] .stop-body,
[data-follow="4"] .stop-row[data-lines~="4"] .stop-body,
[data-follow="5"] .stop-row[data-lines~="5"] .stop-body,
[data-follow="6"] .stop-row[data-lines~="6"] .stop-body,
[data-follow="1"] :is(.route, .t).l1,
[data-follow="2"] :is(.route, .t).l2,
[data-follow="3"] :is(.route, .t).l3,
[data-follow="4"] :is(.route, .t).l4,
[data-follow="5"] :is(.route, .t).l5,
[data-follow="6"] :is(.route, .t).l6,
[data-follow="1"] .origin[data-line="1"],
[data-follow="2"] .origin[data-line="2"],
[data-follow="3"] .origin[data-line="3"],
[data-follow="4"] .origin[data-line="4"],
[data-follow="5"] .origin[data-line="5"],
[data-follow="6"] .origin[data-line="6"],
[data-follow="1"] .xchg .level.l1 > *,
[data-follow="2"] .xchg .level.l2 > *,
[data-follow="3"] .xchg .level.l3 > *,
[data-follow="4"] .xchg .level.l4 > *,
[data-follow="5"] .xchg .level.l5 > *,
[data-follow="6"] .xchg .level.l6 > * {
  opacity: 1;
}
[data-follow] .route.ext {
  opacity: 0.1;
}
[data-follow] .trains {
  opacity: 0;
}
[data-follow] .leaders {
  opacity: 0.35;
}

/* Motion */
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes st-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}
@keyframes dot-in {
  from {
    scale: 0;
  }
}
@keyframes glide {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100% - 40px));
    opacity: 0;
  }
}
@keyframes flip {
  from {
    transform: rotateX(-88deg);
  }
}
@keyframes bar-in {
  from {
    opacity: 0;
    translate: -50% 1rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .js .route:not(.ext) {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
    animation: draw var(--t) cubic-bezier(0.33, 1, 0.68, 1) var(--d) forwards;
  }
  .js .route.ext {
    animation: fade 0.9s ease-out 1.6s backwards;
  }
  .js .st,
  .js .origin,
  .js .st-group {
    animation: st-in 0.6s var(--ease) var(--d) backwards;
  }
  .js .leader {
    animation: fade 0.6s var(--ease) var(--d) backwards;
  }
  .train {
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }
  .map.is-paused .train {
    animation-play-state: paused;
  }
  .xchg-stack {
    transition: --k 0.9s var(--ease);
  }
  .level.is-active .lv-train {
    animation: glide 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  }
  .fl.is-flipping {
    transform-origin: 50% 50%;
    animation: flip 0.11s linear;
  }
  .following {
    animation: bar-in 0.4s var(--ease);
  }
  @supports (animation-timeline: view()) {
    .js .stop-body {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .js .t.stop::after,
    .js .t.end::after {
      animation: dot-in linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 80%;
    }
  }
}

/* Wide map from 1280px */
@media (min-width: 1280px) {
  .map-wide {
    display: block;
  }
  .map-compact {
    display: none;
  }
  .legend {
    position: absolute;
    right: var(--pad);
    top: -3.5rem;
    z-index: 2;
    margin: 0;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--ground);
  }
  .legend-label {
    display: none;
  }
  .legend:not(:focus-within) {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 1279px) {
  .hero {
    min-height: 0;
    gap: 2.25rem;
  }
}
@media (min-width: 760px) and (max-width: 1279px) {
  .map-frame {
    padding-left: calc(var(--pad) - 1rem);
  }
}
@media (max-width: 1079px) {
  .xchg {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .about-grid {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  }
  .about-facts {
    grid-column: 1 / -1;
  }
  .speed-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 759px) {
  .band-in {
    flex-wrap: wrap;
    column-gap: 0.6rem;
  }
  .band-name {
    margin-right: auto;
  }
  .strip {
    order: 5;
    width: 100%;
    margin: 0;
    overflow-x: auto;
  }
  .strip a {
    padding-inline: 0.85rem;
  }
  .js .menu-btn {
    display: inline-flex;
  }
  .js .strip {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    padding: 0.25rem var(--pad) 1.25rem;
    overflow: visible;
    background: var(--plate);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s var(--ease), visibility 0s 0.4s;
  }
  .js .band[data-open] .strip {
    visibility: visible;
    clip-path: inset(0);
    transition: clip-path 0.4s var(--ease);
  }
  .js .strip a {
    place-items: center start;
    min-height: 3.25rem;
    padding: 0 0 0 2rem;
    font-size: 1.15rem;
  }
  .js .strip a::before {
    inset: 0 auto 0 5px;
    width: 2px;
    height: auto;
  }
  .js .strip a:first-child::before {
    top: 50%;
  }
  .js .strip a:last-child::before {
    bottom: 50%;
  }
  .js .strip a::after {
    left: 6px;
    bottom: 50%;
  }
  .ride {
    --tw: 4px;
    --col: 9px;
  }
  .stop-row {
    column-gap: 1rem;
  }
  .stop-body {
    grid-template-columns: 1fr;
  }
  .t.stop::after,
  .t.end::after {
    width: 9px;
    height: 9px;
  }
  .stop-lead .tracks::after {
    height: 13px;
    border-width: 2px;
  }
  .xchg {
    --gap: 40px;
    --thick: 8px;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .xchg-scene {
    position: relative;
    top: 0;
    height: 22rem;
  }
  .xchg-stack {
    width: min(15rem, 62%);
  }
  .lv-name {
    font-size: 0.95rem;
  }
  .panel {
    min-height: 0;
    padding-block: 1.6rem;
  }
  .notes li {
    grid-template-columns: 1fr;
  }
  .skills div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .board thead {
    display: none;
  }
  .board tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-block: 0.9rem;
  }
  .board tbody tr:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .board tbody th {
    grid-column: 1 / -1;
    padding: 0 0 0.6rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 9rem;
  }
  .about-facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .following {
    left: 1rem;
    right: 1rem;
    justify-content: space-between;
    translate: none;
  }
  @keyframes bar-in {
    from {
      opacity: 0;
      translate: 0 1rem;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-arrow .i,
  .link-down .i,
  .band-btn,
  .strip a::after,
  .js .strip,
  .js .band[data-open] .strip {
    transition: none;
  }
}
