/* Toronto, practically — saliem-talash. Night field guide: deep night blue, transit-line teal, one amber signal.
   Faces: Big Shoulders Display (display), Public Sans (text), DM Mono (labels). All OFL, self-hosted. */

@font-face { font-family: "Big Shoulders Display"; src: url(/assets/fonts/big-shoulders-display.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/assets/fonts/public-sans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/assets/fonts/public-sans-italic.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/assets/fonts/dm-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/assets/fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #06131c;
  --night-2: #0a1d29;
  --night-3: #0f2938;
  --rule: rgba(163, 205, 212, 0.16);
  --rule-2: rgba(163, 205, 212, 0.28);
  --teal: #3ec1b4;
  --teal-2: #1f8d86;
  --teal-wash: rgba(62, 193, 180, 0.08);
  --ice: #ecf4f3;
  --text: #d6e3e2;
  --mist: #a2b8bc;
  --signal: #ffb23e;
  --signal-glow: rgba(255, 178, 62, 0.45);
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --bar-h: 64px;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 400 17px/1.6 var(--sans);
  background-color: var(--night);
  background-image: radial-gradient(rgba(163, 205, 212, 0.075) 1px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--signal); color: var(--night); }
[id] { scroll-margin-top: calc(var(--bar-h) + 24px); }
@media (max-width: 1099.98px) { .is-guide [id] { scroll-margin-top: calc(var(--bar-h) + 70px); } }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--signal); color: var(--night); padding: 10px 14px; font: 500 13px var(--mono); border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Route chip: the one recurring device. */
.chip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 2.3em; height: 1.75em; padding: 0 .55em; border-radius: 99px;
  background: var(--teal); color: var(--night);
  font: 500 12px/1 var(--mono); letter-spacing: .04em;
}
.chip-o { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px currentColor; }
.chip-s { font-size: 11px; }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.bar.is-scrolled { background: rgba(6, 19, 28, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--rule); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ice); margin-right: auto; }
.mark-svg { width: 36px; height: 36px; color: var(--teal); }
.mark-words { display: grid; line-height: 1; gap: 4px; }
.mark-name { font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.mark-sub { font: 400 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--mist); }
.bar-nav { display: none; gap: 4px; }
.bar-nav a, .bar-menu { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text); text-decoration: none; padding: 11px 12px; border-radius: 99px; }
.bar-nav a:hover { color: var(--signal); }
.bar-menu { display: inline-flex; align-items: center; gap: 9px; background: rgba(236, 244, 243, 0.06); border: 1px solid var(--rule-2); cursor: pointer; padding: 11px 16px; }
.bar-menu:hover { border-color: var(--signal); color: var(--signal); }
.bar-menu-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 178, 62, .18); }
@media (min-width: 1000px) { .bar-nav { display: flex; } }

/* ---------- menu ---------- */
.menu { position: fixed; inset: 0; z-index: 200; background-color: var(--night); background-image: radial-gradient(rgba(163, 205, 212, 0.075) 1px, transparent 1.3px); background-size: 28px 28px; overflow-y: auto; clip-path: circle(0% at calc(100% - 60px) 32px); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.menu.is-open { clip-path: circle(150% at calc(100% - 60px) 32px); }
.menu-in { max-width: var(--max); margin: 0 auto; padding: 18px var(--gut) 48px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-bottom: 4vh; }
.menu-kicker { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--mist); }
.menu-close { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ice); background: none; border: 1px solid var(--rule-2); border-radius: 99px; padding: 11px 16px; cursor: pointer; }
.menu-routes { list-style: none; position: relative; padding-left: 34px; }
.menu-routes::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--teal); }
.menu-routes a { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; text-decoration: none; color: var(--ice); font: 700 clamp(26px, 4.6vw, 52px)/1.02 var(--display); }
.menu-routes a::before { content: ""; position: absolute; left: -31px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--night); border: 4px solid var(--ice); }
.menu-routes a:hover { color: var(--signal); }
.menu-routes a:hover::before { border-color: var(--signal); }
.menu-sec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5vh; padding-top: 24px; border-top: 1px solid var(--rule); }
.menu-sec a { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; padding: 10px 14px; border: 1px solid var(--rule-2); border-radius: 99px; }
.menu-sec a:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- loops ---------- */
.loop { position: relative; overflow: hidden; background: var(--night-2); }
.loop picture, .loop img, .loop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loop video { opacity: 0; transition: opacity .8s var(--ease); }
.loop.is-playing video { opacity: 1; }

/* ---------- section heads ---------- */
.sec-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec-no { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--mist); margin-bottom: 22px; }
.sec-h { font: 800 clamp(44px, 7.4vw, 112px)/.9 var(--display); color: var(--ice); letter-spacing: -.005em; text-wrap: balance; max-width: 15ch; }
.sec-dek { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--mist); max-width: 58ch; margin-top: 24px; }
.sec-dek a { color: var(--teal); }
@media (min-width: 1000px) {
  .sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .sec-head .sec-no { grid-column: 1 / -1; }
  .sec-head .sec-dek { margin-top: 0; padding-bottom: .5em; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; }
.motion .hero { height: 215svh; }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; will-change: clip-path; }
.hero-loop { position: absolute; inset: 0; transform-origin: 50% 70%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6, 19, 28, .7) 0%, rgba(6, 19, 28, 0) 22%, rgba(6, 19, 28, 0) 46%, rgba(6, 19, 28, .78) 78%, rgba(6, 19, 28, .96) 100%),
  radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(6, 19, 28, .55) 100%); }
.hm { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-grid path { stroke: rgba(163, 205, 212, 0.06); stroke-width: 1; }
.hm-ln { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; opacity: .8; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hm-ln-1, .hm-ln-4 { opacity: .55; }
.hm-ln-2 { opacity: .95; }
.hm-term circle { fill: var(--night); stroke: var(--ice); stroke-width: 3; }
.hm-term text { font: 500 13px var(--mono); letter-spacing: .14em; fill: var(--ice); }
.hm-x rect { fill: var(--ice); stroke: var(--night); stroke-width: 5; }
.hm-x circle { fill: var(--signal); }
.hm-x text { font: 500 12px var(--mono); letter-spacing: .2em; fill: var(--signal); }
.hero-copy { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(30px, 6vh, 64px); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ice); }
.hero-kicker .sep { color: var(--mist); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--signal); opacity: 0; }
.h1 { display: flex; flex-wrap: wrap; column-gap: .2em; margin: .16em 0 .14em -.03em; font: 900 clamp(92px, 16.4vw, 272px)/.8 var(--display); text-transform: uppercase; color: var(--ice); letter-spacing: -.004em; }
.h1-w { display: inline-flex; }
.h1-m { display: inline-block; overflow: hidden; padding: .06em 0 .02em; margin: -.06em 0 -.02em; }
.h1-l { display: inline-block; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.hero-dek { max-width: 36ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--text); }
.hero-dek strong { color: var(--ice); font-weight: 600; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 20px 15px 22px; border-radius: 99px; background: var(--signal); color: var(--night); text-decoration: none; font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hero-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.hero-cta:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--signal-glow); }
.hero-cta:hover svg { transform: translateY(3px); }
.hero-credit { position: absolute; z-index: 2; right: var(--gut); top: calc(var(--bar-h) + 10px); font: 400 10.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--mist); text-align: right; max-width: 60vw; }
.hero-dot { position: absolute; left: 50%; top: 86%; z-index: 1; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--night); border: 5px solid var(--signal); box-shadow: 0 0 0 8px rgba(255, 178, 62, .14), 0 0 40px var(--signal-glow); opacity: 0; }
.hero-dot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 4px; margin-left: -2px; height: 16vh; background: var(--teal); border-radius: 0 0 2px 2px; transform: scaleY(var(--tail, 0)); transform-origin: top; }
@media (min-width: 900px) {
  .hero-credit { top: auto; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .h1-l { transform: translateY(108%); animation: rise 1.05s var(--ease) forwards; animation-delay: calc(.12s + var(--i) * .05s); }
  .js .h1-b .h1-l { animation-delay: calc(.38s + var(--i) * .05s); }
  .js .hm-ln { stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.65, 0, .25, 1) forwards; }
  .js .hm-ln-1 { animation-delay: .1s; } .js .hm-ln-2 { animation-delay: .2s; } .js .hm-ln-3 { animation-delay: .3s; } .js .hm-ln-4 { animation-delay: .4s; } .js .hm-ln-5 { animation-delay: .5s; }
  .js .hm-term, .js .hm-x { opacity: 0; animation: fade .8s ease forwards 1.9s; }
  .js .hero-kicker, .js .hero-foot { opacity: 0; animation: up .9s var(--ease) forwards .75s; }
  .live-dot::after { animation: ping 2.4s ease-out infinite; }
}
@keyframes rise { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(2.2); } }

/* ---------- routes ---------- */
.routes { --spine-w: 44px; position: relative; padding: clamp(110px, 16vh, 170px) 0 clamp(90px, 12vh, 150px); }
.routes-bg { position: absolute; inset: 0; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.routes-bg .loop { position: sticky; top: 0; height: 100vh; opacity: .3; }
.routes .sec-head { position: relative; padding-left: calc(var(--gut) + var(--spine-w) + 8px); }
.spine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.has-spine .spine { display: block; }
.spine path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spine-base { stroke: rgba(163, 205, 212, .14); stroke-width: 6; }
.spine-ln { stroke: var(--teal); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.spine-train { fill: var(--signal); stroke: var(--night); stroke-width: 4; filter: drop-shadow(0 0 12px var(--signal-glow)); }
.stations {
  position: relative; list-style: none; max-width: var(--max); margin: clamp(56px, 8vh, 96px) auto 0; padding: 0 var(--gut) 0 calc(var(--gut) + var(--spine-w) + 8px);
  background: linear-gradient(var(--teal), var(--teal)) no-repeat calc(var(--gut) + var(--spine-w) / 2 - 3px) 0 / 6px 100%;
}
.has-spine .stations { background: none; }
.st { position: relative; }
.st-a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "body img"; gap: 18px; align-items: start; padding: 30px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--rule); }
.st:last-child .st-a { border-bottom: 1px solid var(--rule); }
.st-node { position: absolute; left: calc((var(--spine-w) / 2 + 8px) * -1); top: 46px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--night); border: 5px solid var(--ice); transition: border-color .4s, box-shadow .4s, transform .4s var(--ease); z-index: 1; }
.st.is-on .st-node, .st-a:hover .st-node { border-color: var(--signal); box-shadow: 0 0 0 7px rgba(255, 178, 62, .14); }
.st-no { display: none; }
.st-body { grid-area: body; display: grid; gap: 10px; min-width: 0; }
.st-label { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mist); }
.st-title { font: 800 clamp(28px, 3.9vw, 60px)/.98 var(--display); color: var(--ice); text-wrap: balance; transition: color .3s; }
.st-a:hover .st-title { color: var(--signal); }
.st-dek { color: var(--mist); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }
.st-meta { display: flex; align-items: center; gap: 16px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.st-go { color: var(--signal); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
.st-a:hover .st-go, .st-a:focus-visible .st-go { opacity: 1; transform: none; }
.st-img { grid-area: img; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--night-2); }
.st-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85) brightness(.9); }
.st-a:hover .st-img img { transform: scale(1.06); filter: none; }
@media (min-width: 900px) {
  .routes { --spine-w: 80px; }
  .st-a { grid-template-columns: 170px minmax(0, 1fr) 280px; grid-template-areas: "no body img"; gap: 44px; align-items: center; padding: 46px 0; }
  .st-node { top: 50%; margin-top: -12px; }
  .st-no { display: block; grid-area: no; font: 900 150px/.78 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(236, 244, 243, .3); transition: -webkit-text-stroke-color .5s, color .5s; }
  .st.is-on .st-no { -webkit-text-stroke-color: var(--signal); }
  .st-a:hover .st-no { color: rgba(255, 178, 62, .12); -webkit-text-stroke-color: var(--signal); }
  .st-dek { font-size: 16.5px; }
}

/* ---------- timetable ---------- */
.tt { position: relative; padding: clamp(100px, 14vh, 160px) 0; }
.tt-pin { max-width: var(--max); margin: clamp(48px, 7vh, 80px) auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tt-media { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
.tt-media::-webkit-scrollbar { display: none; }
.tt-fig { position: relative; flex: none; width: 76vw; max-width: 420px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; scroll-snap-align: start; background: var(--night-2); }
.tt-fig picture, .tt-fig img, .tt-fig .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font: 400 10.5px/1.35 var(--mono); letter-spacing: .04em; color: var(--ice); background: linear-gradient(transparent, rgba(6, 19, 28, .85)); }
.tt-board { background: linear-gradient(180deg, rgba(15, 41, 56, .92), rgba(10, 29, 41, .96)); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.tt-tabs { display: flex; gap: 6px; margin: 0 -4px 18px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; }
.tt-tabs::-webkit-scrollbar { display: none; }
.tt-tabs a { flex: none; }
.tt-tabs a { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--mist); padding: 10px 13px; border-radius: 99px; border: 1px solid var(--rule); transition: color .3s, border-color .3s, background .3s; }
.tt-tabs a:hover { color: var(--ice); border-color: var(--rule-2); }
.tt-tabs a[aria-current] { color: var(--night); background: var(--signal); border-color: var(--signal); }
.tt-head { display: none; }
.tt-seasons { display: grid; gap: 34px; }
.tt-season-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font: 800 clamp(34px, 3.4vw, 50px)/1 var(--display); color: var(--ice); text-transform: uppercase; letter-spacing: .01em; padding-bottom: 12px; border-bottom: 2px solid var(--teal); }
.tt-span { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--mist); }
.tt-rows { list-style: none; }
.tt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when r" "what what"; gap: 6px 16px; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--rule-2); }
.tt-when { grid-area: when; font: 500 14.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--signal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-what { grid-area: what; color: var(--text); font-size: 16px; line-height: 1.45; }
.tt-r { grid-area: r; text-decoration: none; }
.tt-r:hover .chip { background: var(--signal); }
@media (min-width: 700px) {
  .tt-row { grid-template-columns: 170px minmax(0, 1fr) auto; grid-template-areas: "when what r"; gap: 22px; }
  .tt-head { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 22px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--mist); padding: 14px 0 6px; }
}
@media (min-width: 1000px) {
  .tt-pin { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .tt-media { display: block; position: relative; overflow: hidden; margin: 0; padding: 0; aspect-ratio: 4 / 5; max-height: calc(100vh - 160px); width: 100%; border-radius: 12px; }
  .tt-fig { position: absolute; inset: 0; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .tt.is-pinned .tt-fig { opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
  .tt.is-pinned .tt-fig.is-on { opacity: 1; transform: none; }
  .tt:not(.is-pinned) .tt-fig:not(:first-child) { display: none; }
  .tt:not(.is-pinned) .tt-media { position: sticky; top: calc(var(--bar-h) + 24px); align-self: start; }
  .tt.is-pinned .tt-pin { height: calc(100vh - var(--bar-h)); }
  .tt.is-pinned .tt-seasons { display: grid; }
  .tt.is-pinned .tt-season { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .5s, visibility 0s .5s; }
  .tt.is-pinned .tt-season.is-on { visibility: visible; opacity: 1; transition: opacity .5s; }
}

/* ---------- about ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 13vh, 150px) var(--gut); display: grid; gap: 44px; align-items: center; }
.about-fig { position: relative; aspect-ratio: 4 / 5; max-height: 86vh; border-radius: 12px; overflow: hidden; background: var(--night-2); }
.about-fig .loop { position: absolute; inset: -8% 0; }
.about-fig figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; font: 400 10.5px/1.35 var(--mono); color: var(--ice); letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.about-pin { position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.about-pin circle:first-child { fill: var(--night); stroke: var(--signal); stroke-width: 7; }
.about-pin-ring { fill: none; stroke: var(--signal); stroke-width: 1.5; opacity: .7; transform-origin: 60px 60px; }
@media (prefers-reduced-motion: no-preference) { .about-pin-ring { animation: ring 2.8s ease-out infinite; } }
@keyframes ring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.about-copy .sec-h { max-width: 12ch; }
.about-lede { font: 500 clamp(21px, 2.1vw, 29px)/1.38 var(--sans); color: var(--ice); margin: 28px 0 20px; max-width: 30ch; text-wrap: pretty; }
.about-lede a { color: var(--teal); }
.about-copy > p:not(.about-lede):not(.sec-no) { color: var(--mist); max-width: 54ch; }
.transfers { list-style: none; margin-top: 34px; border-top: 1px solid var(--rule); }
.transfers a { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "k u" "t t"; gap: 6px 14px; align-items: baseline; padding: 18px 40px 18px 0; position: relative; border-bottom: 1px solid var(--rule); text-decoration: none; }
.transfers a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 20px var(--mono); color: var(--teal); transition: transform .35s var(--ease), color .3s; }
.transfers a:hover::after { transform: translate(6px, -50%); color: var(--signal); }
.tr-k { grid-area: k; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--signal); }
.tr-u { grid-area: u; font: 400 12.5px var(--mono); color: var(--mist); justify-self: end; }
.tr-t { grid-area: t; font: 800 clamp(26px, 2.6vw, 36px)/1 var(--display); color: var(--ice); }
.transfers a:hover .tr-t { color: var(--signal); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 110px); } }

/* ---------- elsewhere ---------- */
.else { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vh, 120px) 0 clamp(90px, 12vh, 140px); }
.else-list { list-style: none; margin: 48px var(--gut) 0; display: grid; border-top: 1px solid var(--rule); }
.else-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 22px; align-items: center; gap: 14px; padding: 17px 8px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background .3s, padding .4s var(--ease); }
.else-list a:hover { background: var(--teal-wash); padding-left: 16px; }
.el-n { font: 400 11px var(--mono); color: var(--mist); }
.el-p { font: 700 clamp(22px, 2.3vw, 30px)/1 var(--display); color: var(--ice); text-transform: uppercase; letter-spacing: .02em; }
.el-h { font: 400 12px var(--mono); color: var(--mist); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42vw; }
.el-go { font: 500 15px var(--mono); color: var(--teal); transition: transform .35s var(--ease), color .3s; }
.else-list a:hover .el-go { color: var(--signal); transform: translate(3px, -3px); }
@media (min-width: 900px) { .else-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } .el-h { max-width: none; } }

/* ---------- colophon ---------- */
.co { position: relative; padding: clamp(60px, 9vh, 110px) var(--gut) 28px; border-top: 1px solid var(--rule); background: linear-gradient(180deg, transparent, rgba(10, 29, 41, .9) 40%); overflow: hidden; }
.co-line svg { width: 100%; height: 40px; overflow: visible; }
.co-path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.co-word { font: 900 clamp(56px, 15.2vw, 260px)/.82 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: transparent;
  background: linear-gradient(90deg, var(--ice) 0 var(--fill, 100%), rgba(236, 244, 243, .09) var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; margin: 18px 0 clamp(36px, 6vh, 64px); white-space: nowrap; }
.co-grid { display: grid; gap: 34px; max-width: var(--max); }
.co-h { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--signal); margin: 0 0 10px; }
.co-col p { color: var(--mist); font-size: 15px; max-width: 46ch; margin-bottom: 18px; }
.co-col a { color: var(--text); }
.co-routes { list-style: none; display: grid; gap: 8px; }
.co-routes a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; }
.co-routes a:hover { color: var(--signal); }
.co-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font: 400 12px var(--mono); color: var(--mist); letter-spacing: .04em; }
.co-base a { color: var(--mist); }
@media (min-width: 900px) { .co-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; } }

/* ---------- guide ---------- */
.g-head { position: relative; min-height: 94svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.g-plate { position: absolute; inset: 0; z-index: -1; }
.g-plate picture, .g-plate img { width: 100%; height: 100%; object-fit: cover; }
.g-plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 19, 28, .5), rgba(6, 19, 28, 0) 62%), linear-gradient(180deg, rgba(6, 19, 28, .6) 0%, rgba(6, 19, 28, .08) 26%, rgba(6, 19, 28, .45) 52%, rgba(6, 19, 28, .95) 86%, var(--night) 100%); }
.g-plate figcaption { position: absolute; z-index: 1; right: var(--gut); top: calc(var(--bar-h) + 12px); font: 400 10.5px/1.3 var(--mono); color: var(--ice); letter-spacing: .04em; max-width: 55vw; text-align: right; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.g-head-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--bar-h) + 80px) var(--gut) clamp(40px, 7vh, 72px); }
.g-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ice); margin-bottom: 22px; }
.g-crumb a { color: var(--ice); }
.g-crumb > span[aria-hidden] { color: var(--mist); }
.g-h1 { font: 800 clamp(42px, 6.2vw, 96px)/.93 var(--display); color: var(--ice); max-width: 21ch; text-wrap: balance; letter-spacing: -.003em; }
.g-dek { margin-top: 24px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--text); }
.g-by { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule-2); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mist); max-width: 760px; }
.g-by a { color: var(--ice); }
@media (prefers-reduced-motion: no-preference) {
  .js .g-head-in > * { opacity: 0; animation: up 1s var(--ease) forwards; }
  .js .g-head-in > :nth-child(2) { animation-delay: .1s; } .js .g-head-in > :nth-child(3) { animation-delay: .2s; } .js .g-head-in > :nth-child(4) { animation-delay: .3s; }
}

.g-progress { position: fixed; z-index: 40; left: 0; right: 0; top: var(--bar-h); height: 46px; background: rgba(6, 19, 28, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); transform: translateY(-120%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.g-progress.is-on { transform: none; opacity: 1; }
.g-progress-in { height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 var(--gut); }
.g-progress-k { font: 500 11px var(--mono); color: var(--teal); letter-spacing: .1em; }
.g-progress-line { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(163, 205, 212, .18); }
.g-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--f, 0%); border-radius: 4px; background: var(--teal); }
.g-progress-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal-glow); }
.g-progress-dot { position: absolute; left: var(--p); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--night); border: 2px solid var(--ice); }
.g-progress-t { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }

.g-body { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gut) clamp(80px, 12vh, 130px); display: grid; justify-content: center; grid-template-columns: minmax(0, 700px); }
.rail { display: none; }
.g-text { font-size: 18px; line-height: 1.7; color: var(--text); min-width: 0; }
.g-text p { margin: 0 0 1.15em; }
.g-text strong { color: var(--ice); font-weight: 650; }
.g-text a { color: var(--teal); }
.g-text a:hover { color: var(--signal); }
.g-intro > p:first-child { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; color: var(--ice); }
.stop h2, .g-src h2 { display: grid; gap: 12px; margin: 2.4em 0 .9em; }
.stop-n { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--signal); }
.stop-dot { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--signal); background: var(--night); }
.stop-dot-end { border-color: var(--teal); background: var(--teal); }
.stop-t { font: 800 clamp(30px, 3vw, 44px)/1 var(--display); color: var(--ice); text-wrap: balance; }
.g-text ul { list-style: none; margin: 0 0 1.3em; }
.g-text ul li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.g-text ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 16px; height: 3px; border-radius: 3px; background: var(--teal); }
.g-ol { list-style: none; margin: 0 0 1.4em; counter-reset: none; }
.g-ol li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--rule); }
.g-ol li:last-child { border-bottom: 1px solid var(--rule); }
.g-ol-n { font: 500 14px/1.9 var(--mono); color: var(--signal); }
.g-table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule-2); border-radius: 10px; }
.g-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.g-table caption { text-align: left; padding: 12px 14px 0; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mist); }
.g-table th { text-align: left; font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--signal); padding: 12px 14px; border-bottom: 1px solid var(--rule-2); }
.g-table td { height: 46px; border-bottom: 1px dashed var(--rule); border-right: 1px dashed var(--rule); }
.g-table td:last-child { border-right: 0; }
.pq { margin: 2.2em 0; padding: 30px 0 26px; border-top: 2px solid var(--signal); border-bottom: 1px solid var(--rule); position: relative; }
.pq blockquote p { font: 700 clamp(28px, 3.1vw, 42px)/1.06 var(--display); color: var(--ice); margin: 0; text-wrap: balance; }
.pq blockquote p::before { content: "“"; color: var(--signal); margin-right: .04em; }
.pq blockquote p::after { content: "”"; color: var(--signal); }
.pq figcaption { margin-top: 16px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mist); }
.pq figcaption::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--teal); vertical-align: middle; margin-right: 10px; }
.pq-w { transition: opacity .2s; }
.g-src { margin-top: 3em; }
.src-list { list-style: none; counter-reset: src; border-top: 2px solid var(--teal); }
.src-list li { counter-increment: src; border-bottom: 1px solid var(--rule); display: grid; }
.src-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; padding: 14px 0; text-decoration: none; color: var(--ice); font-size: 16px; line-height: 1.45; }
.src-list a::before { content: counter(src, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.9 var(--mono); color: var(--teal); }
.src-list a + a::before { content: "+"; }
.src-list a:hover { color: var(--signal); }
.src-host { grid-column: 2; font: 400 12px var(--mono); color: var(--mist); letter-spacing: .04em; }
.g-ai { margin-top: 22px; font: 500 12.5px var(--mono); letter-spacing: .06em; color: var(--mist); }
@media (min-width: 1100px) {
  .g-body { grid-template-columns: 250px minmax(0, 700px); gap: clamp(56px, 6vw, 96px); }
  .rail { display: block; position: sticky; top: calc(var(--bar-h) + 40px); align-self: start; max-height: calc(100vh - var(--bar-h) - 60px); overflow: auto; scrollbar-width: none; }
  .g-progress { display: none; }
  .g-text { font-size: 19px; }
}
.rail-h { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ice); margin-bottom: 18px; }
.rail-list { list-style: none; position: relative; --rf: 0; }
.rail-list::before, .rail-list::after { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: rgba(163, 205, 212, .18); }
.rail-list::after { background: var(--teal); bottom: auto; height: calc((100% - 24px) * var(--rf)); transition: height .25s linear; }
.rail-list a { position: relative; display: block; padding: 7px 0 7px 30px; text-decoration: none; font-size: 13.5px; line-height: 1.35; color: var(--mist); transition: color .3s; }
.rail-list a:hover { color: var(--ice); }
.rail-dot { position: absolute; z-index: 1; left: 2px; top: 10px; width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 3px solid rgba(163, 205, 212, .45); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.rail-list a.is-past .rail-dot { border-color: var(--teal); background: var(--teal); }
.rail-list a[aria-current] { color: var(--ice); }
.rail-list a[aria-current] .rail-dot { border-color: var(--signal); background: var(--night); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(255, 178, 62, .16); }
.rail-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.g-next { border-top: 1px solid var(--rule); }
.g-next-a { position: relative; display: grid; align-content: end; gap: 12px; min-height: clamp(420px, 70vh, 720px); padding: 40px var(--gut); overflow: hidden; text-decoration: none; isolation: isolate; }
.g-next-img { position: absolute; inset: 0; z-index: -1; }
.g-next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.g-next-a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 19, 28, .3), rgba(6, 19, 28, .92)); }
.g-next-a:hover .g-next-img img { transform: scale(1.05); }
.g-next-k { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ice); }
.g-next-t { font: 800 clamp(44px, 7vw, 110px)/.9 var(--display); color: var(--ice); max-width: 16ch; text-wrap: balance; transition: color .3s; }
.g-next-a:hover .g-next-t { color: var(--signal); }
.g-next-m { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--teal); }
.g-all { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 22px var(--gut) 40px; }
.g-all a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--rule); border-radius: 99px; text-decoration: none; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mist); }
.g-all a:hover { border-color: var(--signal); color: var(--ice); }
.g-all [aria-current] a { border-color: var(--teal); color: var(--ice); }

/* ---------- plain pages ---------- */
.plain, .nf { max-width: var(--max); margin: 0 auto; padding: calc(var(--bar-h) + 90px) var(--gut) 110px; }
.cr-list { list-style: none; margin: 40px 0; border-top: 1px solid var(--rule); }
.cr-list li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cr-k { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--signal); }
.cr-t { color: var(--ice); font-weight: 600; }
.cr-b { color: var(--mist); font-size: 15px; }
.cr-list a { color: var(--teal); font: 400 13px var(--mono); }
@media (min-width: 900px) { .cr-list li { grid-template-columns: 130px 1.1fr 1.3fr auto; gap: 24px; align-items: baseline; } }
.nf-h { font: 900 clamp(56px, 10vw, 150px)/.86 var(--display); color: var(--ice); text-transform: uppercase; max-width: 12ch; }
.nf-routes { list-style: none; margin: 36px 0 44px; display: grid; gap: 4px; }
.nf-routes a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 700 clamp(22px, 2.6vw, 32px)/1.1 var(--display); color: var(--ice); }
.nf-routes a:hover { color: var(--signal); }

/* An entrance animation that has ended hands the element back (site.js adds .is-done), so scroll scenes can move it. */
html.js .is-done { animation: none !important; transform: none; opacity: 1; stroke-dashoffset: 0; }

/* ---------- reveals (only when site.js enables motion) ---------- */
.motion [data-rv] { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .bar, .menu, .g-progress, .rail, .g-next, .co-word, .co-line, .hero-media { display: none !important; }
  body { background: #fff; color: #000; }
}
