/* Tracks — www.tracks.nyc. One stylesheet, one design language, every page.
 *
 * The ground is the app's Void. Objects on it are the app's objects: the fare
 * card (paper face, ink stripe, sliver), line bullets in real MTA colors, the
 * violet "do this" pill. Display type is SF Pro Rounded on Apple devices and
 * self-hosted Nunito everywhere else; reading type is the platform UI face.
 */

@font-face {
  font-family: "Tracks Rounded";
  src: url(fonts/nunito-latin.woff2) format("woff2");
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url(fonts/spacemono-latin.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #16151A; --sunken: #0F0E13; --surface: #201F26; --hair: #302E36;
  --ink: #F3F1EA; --soft: #A9A7A2; --faint: #75737A;
  --accent: #8677FF; --accent-press: #9C8FFF; --on-accent: #12111A;
  --stop: #FF5A54;
  --paper: #F6F3EC; --band: #1B1B1D; --on-band: #F6F3EC; --on-band-soft: #A8A59B;
  --q: #FCCC0A;
  --round: ui-rounded, "SF Pro Rounded", "Tracks Rounded", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --inset: clamp(8px, 1.2vw, 16px);
  --top: 64px;
}
/* ?font=fallback renders any page the way non-Apple browsers will. */
:root.force-fallback { --round: "Tracks Rounded", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--top) + 16px); overflow-x: clip; }
body { overflow-x: clip; }
img, svg { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; }

/* ------------------------------------------------------------ top bar */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); background: rgba(22,21,26,0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--hair); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 100%; max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--round); letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.top-links { margin-left: auto; display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.top-links a { color: var(--soft); text-decoration: none; } .top-links a:hover, .top-links a[aria-current] { color: var(--ink); }
.route { flex: 1; display: flex; justify-content: center; }
.route ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; position: relative; }
.route ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; background: var(--hair); }
.route li { position: relative; width: 84px; display: flex; justify-content: center; }
.route li:first-child { justify-content: flex-start; width: 42px; } .route li:last-child { justify-content: flex-end; width: 42px; }
.route a { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--faint); display: block; transition: background .3s, box-shadow .3s; }
.route a span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--soft); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.route a:hover span, .route a:focus-visible span, .route li.here a span { opacity: 1; }
.route li.done a { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.route li.here a { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(134,119,255,.22); }

/* ----------------------------------------------------------- controls */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 17px/1 var(--text); text-decoration: none; transition: background .15s, transform .15s; }
.pill:hover { background: var(--accent-press); } .pill:active { transform: scale(.98); }
.pill.sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- the fare card (hero) */
.fare {
  margin: var(--inset); position: relative; overflow: hidden; border-radius: 28px;
  background: var(--paper); color: var(--band);
  display: grid; grid-template-rows: 1fr auto auto; grid-template-columns: minmax(0, 1fr);
  clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%);
}
.fare.full { min-height: min(calc(100svh - var(--top) - 2 * var(--inset)), 980px); }
.fare .weave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fare .sweep { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fare .sweep i { position: absolute; left: -10%; width: 120%; transform: rotate(-9deg); background: rgba(27,27,29,.035); }
.fare .sweep i:first-child { top: 16%; height: 18%; } .fare .sweep i:last-child { top: 44%; height: 9%; }
.face { position: relative; min-height: 220px; }
.face .mark { position: absolute; right: 9%; top: 12%; height: 76%; width: auto; filter: drop-shadow(0 18px 30px rgba(27,27,29,.12)); }

.band { background: var(--band); color: var(--on-band); display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); position: relative; z-index: 2; min-height: clamp(320px, 42vh, 440px); }
.band-copy { padding: clamp(28px, 4vh, 48px) var(--gutter); min-width: 0; }
.band h1 { font: 800 clamp(40px, 4.3vw, 64px)/1.0 var(--round); letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.band p { color: var(--on-band-soft); font-size: 18px; max-width: 34ch; margin: 18px 0 26px; }
.band p strong { color: var(--on-band); font-weight: 600; }
.cta-note { display: block; margin-top: 12px; font-size: 14px; color: var(--on-band-soft); }

.credits { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 96%, transparent); }
.crow { display: flex; width: max-content; animation: slide var(--d, 300s) linear infinite; }
.crow.rev { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.stn { display: inline-flex; align-items: center; gap: 6px; padding-right: 14px; height: 29px; font: 600 12px/1 var(--text); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-band-soft); white-space: nowrap; }
.stn.hi { color: var(--on-band); }
.stn i { display: block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stn span { display: inline-flex; gap: 3px; }

.sliver { display: flex; align-items: center; gap: 18px; padding: 0 16px 0 var(--gutter); height: 60px; position: relative; }
.chevs { display: flex; gap: 5px; }
.chevs .chev svg { width: 11px; height: 11px; }
.meta { font: 400 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #5E5D57; flex: 1; }
.cmark { width: 40px; height: 40px; border-radius: 50%; background: rgba(27,27,29,.08); display: grid; place-items: center; } .cmark img { width: 24px; }

/* -------------------------------------------------------- page sections */
section.stop { padding: clamp(96px, 14vh, 160px) 0 0; }
h2 { font: 800 clamp(34px, 4.4vw, 60px)/1.02 var(--round); letter-spacing: -0.03em; margin: 0; max-width: 16ch; text-wrap: balance; }
.body { font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 40ch; margin: 20px 0 0; }
.body strong { color: var(--ink); font-weight: 600; }

/* footer */
footer.site { border-top: 1px solid var(--hair); padding: 32px 0 48px; color: var(--faint); font-size: 14px; margin-top: clamp(96px, 14vh, 160px); }
footer.site .wrap { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: start; }
footer.site nav { display: flex; gap: 24px; }
footer.site nav a { color: var(--soft); text-decoration: none; } footer.site nav a:hover { color: var(--ink); }
footer.site p { margin: 0; max-width: 72ch; justify-self: end; text-align: right; line-height: 1.5; }

@media (max-width: 900px) {
  .route, .top-links { display: none; }
  .top .wrap { justify-content: space-between; }
  .fare { border-radius: 22px; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
  .fare.full { min-height: 0; }
  .face { min-height: 24svh; }
  .face .mark { right: 50%; transform: translateX(50%); top: 13%; height: 74%; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-copy { order: 2; }
  .credits { order: 1; padding: 14px 0; }
  .crow:nth-child(n+4) { display: none; }
  .band-copy { padding-top: 22px; padding-bottom: 28px; }
  .band h1 { font-size: clamp(30px, 9.4vw, 46px); }
  .fare.doc-head h1 { font-size: clamp(30px, 9.4vw, 46px); }
  .band p { font-size: 17px; }
  h2 { font-size: clamp(30px, 8.6vw, 44px); }
  .band p { margin: 12px 0 20px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  footer.site p { justify-self: start; text-align: left; }
}
@media (max-width: 359px) { .top .brand span { display: none; } }
@media (max-width: 520px) { .sliver .meta { font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------- document pages
 * Privacy and Terms: the fare card shrinks to its stripe and sliver, carrying
 * the title; the text reads on the Void at a book measure, with a stop list
 * of sections on the left like a line's stations. */
.fare.doc-head { grid-template-rows: auto auto; padding-top: 16px; }
.fare.doc-head .band { min-height: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.fare.doc-head .band-copy { padding: clamp(40px, 7vh, 72px) var(--gutter) clamp(32px, 5vh, 52px); }
.fare.doc-head h1 { font-size: clamp(40px, 5vw, 72px); }
.fare.doc-head .updated { font: 400 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-band-soft); margin: 18px 0 0; }
.fare.doc-head .credits { padding: 14px 0; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: clamp(40px, 7vw, 120px); padding-top: clamp(56px, 8vh, 96px); }
.toc { position: sticky; top: calc(var(--top) + 32px); align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; position: relative; }
.toc ol::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--hair); }
.toc li a { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 14px; color: var(--soft); text-decoration: none; }
.toc li a::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--faint); flex: none; position: relative; transition: background .2s, box-shadow .2s; }
.toc li a:hover { color: var(--ink); }
.toc li a.here { color: var(--ink); font-weight: 600; }
.toc li a.here::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(134,119,255,.22); }

.prose { overflow-wrap: break-word; font-size: 18px; line-height: 1.65; color: #D9D6CF; }
.prose > p:first-child { font-size: 21px; line-height: 1.55; color: var(--ink); margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); max-width: none; margin: 64px 0 16px; letter-spacing: -0.02em; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { overflow-wrap: anywhere; color: var(--accent); font-weight: 600; text-decoration: none; } .prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; padding: 0; margin: 0 0 18px; }
.prose li { position: relative; padding-left: 28px; margin: 10px 0; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--faint); }

/* the short version: an ink plate, same construction as the app's cards */
.plate { position: relative; overflow: hidden; margin: 40px 0 8px; border-radius: 18px; background: #1B1B1D; box-shadow: 0 0 0 1px rgba(246,243,236,.18) inset, 0 8px 20px rgba(0,0,0,.22); }
.plate .plate-body { padding: 28px 32px 22px; }
.plate h2 { margin: 0 0 12px; font-size: 26px; }
.plate li::before { background: #FCCC0A; box-shadow: none; }
.plate p:last-child, .plate ul:last-child { margin-bottom: 0; }
.plate .plate-sliver { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px 0 32px; background: rgba(246,243,236,.06); }
.plate .plate-sliver .meta { color: #A8A59B; font-size: 11px; }
.plate .plate-sliver .cmark { width: 30px; height: 30px; background: rgba(246,243,236,.12); } .plate .plate-sliver .cmark img { width: 18px; }

@media (max-width: 900px) {
  .fare.doc-head .band { grid-template-columns: minmax(0, 1fr); }
  .fare.doc-head .credits .crow:nth-child(n+3) { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .plate .plate-body { padding: 24px 22px 18px; } .plate .plate-sliver { padding-left: 22px; }
}


/* ================================================================ cards */
/* Card objects. Construction follows DESIGN.md:
 * MetroCard proportion 1.586, three bands (field / reversed stripe / sliver),
 * weave at plate contrast, ghost sweep at -9deg, corner mark bottom-right,
 * the hairline edge + card shadow as the whole depth story. */

.tcard, .rcard {
  --r: 16px;
  position: relative;
  aspect-ratio: 1.586;
  width: 100%;
  border-radius: var(--r);
  background: var(--plate);
  color: var(--on);
  box-shadow: 0 0 0 1px var(--edge) inset, 0 8px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 22% 17.5%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  container-type: inline-size;
  isolation: isolate;
}
.card-weave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sweep { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sweep i { position: absolute; left: -20%; width: 140%; transform: rotate(-9deg); }
.sweep i:first-child { top: 18%; height: 16%; }
.sweep i:last-child { top: 40%; height: 9%; }
.gold {
  position: absolute; top: 0; right: 0; width: 13%; aspect-ratio: 1;
  background: #FFB300; clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.tc-field { position: relative; padding: 6.5cqw 6.5cqw 4cqw; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; }
.tc-id { display: flex; gap: 3.2cqw; align-items: center; }
.tc-id b { display: block; font-size: 5.4cqw; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.tc-id small { display: block; font-size: 3.7cqw; color: var(--soft); margin-top: 0.4cqw; }
.avatar {
  width: 12.5cqw; height: 12.5cqw; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 5.4cqw;
  box-shadow: 0 0 0 1px var(--edge);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
}
.tc-pct { text-align: right; padding-right: 6cqw; }
.tc-pct b {
  display: block; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  font-size: 8.4cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.tc-pct small { font-size: 3.1cqw; color: var(--soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.tc-lines { grid-column: 1 / -1; align-self: end; display: flex; gap: 1.6cqw; }
.tc-lines .bullet { width: 6.6cqw; height: 6.6cqw; }

.tc-stripe {
  display: flex; align-items: center; justify-content: space-between; padding: 0 6.5cqw;
  font-size: 3.5cqw; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.tc-stripe b { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 5.2cqw; letter-spacing: 0; margin-right: 1.2cqw; font-variant-numeric: tabular-nums; }
.tc-stripe span { opacity: 0.999; }
.tc-stripe span small, .tc-stripe span { white-space: nowrap; }

.tc-sliver { display: flex; align-items: center; gap: 3cqw; padding: 0 3cqw 0 6.5cqw; }
.chev { display: inline-flex; gap: 0.6cqw; }
.chev svg { width: 2.6cqw; height: 2.6cqw; }
.since { font-family: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 2.9cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); flex: 1; }
.corner-mark { width: 9.4cqw; height: 9.4cqw; border-radius: 50%; display: grid; place-items: center; }
.corner-mark img { width: 58%; height: auto; }

/* Ride Card */
.rc-field { padding: 6cqw 6.5cqw 3cqw; display: flex; flex-direction: column; justify-content: space-between; }
.rc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-lines .bullet { width: 8cqw; height: 8cqw; }
.rc-val { text-align: right; }
.rc-val b { display: block; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 8.4cqw; font-weight: 700; line-height: 1; }
.rc-val small { font-size: 3.1cqw; color: var(--soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.rc-route { font-size: 5.6cqw; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.rc-route .arrow { color: var(--soft); font-weight: 500; margin: 0 1.6cqw; }
.rc-stripe { position: relative; margin: 0; }
.rc-stripe .stns { position: absolute; left: 6.5cqw; right: 6.5cqw; top: 0; bottom: 0; }
.rc-stripe .rail { position: absolute; left: 0; right: 0; top: 50%; height: 1.1cqw; transform: translateY(-50%); border-radius: 1cqw; }
.rc-stripe .stn { position: absolute; top: 50%; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--c); transform: translate(-50%, -50%); }
.rc-stripe .stn.punch { width: 4cqw; height: 4cqw; background: var(--plate); box-shadow: 0 0 0 1.1cqw var(--c); }

.bullet { flex: none; display: block; }


/* ================================================================= home */
.taps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.taps::before { content: ""; position: absolute; left: 7px; right: calc(33.33% - 7px); top: 7px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--stop) 50% 100%); }
.tap { position: relative; padding-right: 32px; }
.tap .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--c); position: relative; }
.tap h3 { font: 800 24px/1.1 var(--round); letter-spacing: -0.015em; margin: 28px 0 10px; }
.tap p { margin: 0; color: var(--soft); font-size: 17px; max-width: 30ch; }
.ui { margin-top: 28px; min-height: 76px; display: flex; align-items: flex-start; }
.btn-app { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font: 700 17px/1 var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.btn-app.go { background: var(--accent); color: var(--on-accent); }
.btn-app.end { background: var(--stop); color: #fff; }
.btn-app svg { width: 16px; height: 16px; }
.la { width: 100%; max-width: 330px; border-radius: 22px; padding: 14px 16px; background: #1B1B1D; box-shadow: 0 0 0 1px rgba(246,243,236,.18) inset, 0 8px 20px rgba(0,0,0,.22); display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; }
.la img { width: 30px; height: 30px; grid-row: span 2; }
.la b { font: 700 16px/1.1 var(--text); color: #F6F3EC; display: flex; align-items: center; gap: 7px; }
.la b .bullet { width: 18px; height: 18px; }
.la small { font-size: 13px; color: #A8A59B; }
.la .t { grid-row: span 2; font: 800 30px/1 var(--round); color: #F6F3EC; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.car { margin-top: 72px; background: var(--sunken); border: 1px solid var(--hair); border-radius: 22px; padding: 22px 28px 26px; position: relative; overflow: hidden; }
.car-head { display: flex; align-items: center; gap: 12px; font: 600 15px/1 var(--text); color: var(--soft); }
.car-head .bullet { width: 28px; height: 28px; }
.car-head b { color: var(--ink); font-weight: 700; }
.car-head .next { margin-left: auto; text-align: right; }
.car-head .next b { display: block; font: 800 22px/1.1 var(--round); letter-spacing: -0.01em; color: var(--ink); margin-top: 4px; min-width: 12ch; }
.strip { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.strip text { font: 600 12.5px var(--text); fill: var(--faint); transition: fill .4s; }
.strip text.lit { fill: var(--ink); } .strip text.ahead { fill: var(--soft); }
.rail-v { display: none; }
.car .sample { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: var(--faint); }

.map-stop { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.map-frame { position: relative; aspect-ratio: 920 / 1110; }
.map-frame svg { width: 100%; height: 100%; display: block; }
.map-frame .map-over polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-frame.drawn .map-over polyline { transition: stroke-dashoffset 1.6s cubic-bezier(.16,1,.3,1); stroke-dashoffset: 0; }
.lines-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; max-width: 440px; }
.lines-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; }
.lines-list .bullet { width: 28px; height: 28px; }
.lines-list .bar { height: 6px; border-radius: 3px; background: var(--hair); position: relative; overflow: hidden; }
.lines-list .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--c); }
.lines-list em { font: 700 15px var(--round); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 5.5ch; text-align: right; }
.caption { font-size: 13px; color: var(--faint); margin-top: 14px; }

.cards-stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.fan { position: relative; aspect-ratio: 1.1; }
.fan > div { position: absolute; width: 78%; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.fan > div:nth-child(1) { left: 0; top: 0; transform: rotate(-7deg); }
.fan > div:nth-child(2) { left: 11%; top: 22%; transform: rotate(-2deg); }
.fan > div:nth-child(3) { left: 22%; top: 44%; transform: rotate(3deg); }
.fan:hover > div:nth-child(1) { transform: rotate(-10deg) translate(-4%, -4%); }
.fan:hover > div:nth-child(3) { transform: rotate(5deg) translate(3%, 4%); }

.pair { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.pair > div { padding: 36px 48px 0 0; }
.pair > div + div { padding-left: 48px; border-left: 1px solid var(--hair); }
.pair h3 { font: 800 26px/1.1 var(--round); letter-spacing: -0.015em; margin: 0 0 12px; }
.pair p { margin: 0; color: var(--soft); max-width: 42ch; }

.terminal { padding: clamp(140px, 20vh, 220px) 0 0; text-align: center; }
.terminal .end-dot { width: 44px; height: 44px; margin: 0 auto 40px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 8px var(--q), 0 0 0 20px rgba(252,204,10,.12); position: relative; }
.terminal .end-dot::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 8px; margin-left: -4px; height: 120px; margin-bottom: 8px; background: linear-gradient(to top, var(--q), transparent); border-radius: 4px; }
.terminal h2 { margin: 0 auto; max-width: none; font-size: clamp(48px, 7vw, 96px); }
.terminal .body { margin: 20px auto 36px; }

@media (max-width: 900px) {
  .taps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .taps::before { right: auto; bottom: 90px; width: 4px; height: auto; background: linear-gradient(180deg, var(--accent) 0 50%, var(--stop) 50% 100%); }
  .tap { padding: 0 0 0 44px; }
  .tap .dot { position: absolute; left: 0; top: 0; }
  .tap h3 { margin-top: 0; }
  .strip { display: none; } .rail-v { display: block; margin-top: 18px; }
  .car { padding: 18px 20px 22px; margin-top: 56px; }
  .car-head .next b { font-size: 18px; min-width: 0; }
  .map-stop, .cards-stop { grid-template-columns: minmax(0, 1fr); }
  .cards-stop .fan { order: 2; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > div { padding: 32px 0 0; }
  .pair > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); margin-top: 32px; }
}
@media (max-width: 900px) {
  .fan { aspect-ratio: 1.15; max-width: 520px; }
  .fan > div { width: 72%; }
  .fan > div:nth-child(1) { left: 2%; top: 2%; transform: rotate(-5deg); }
  .fan > div:nth-child(2) { left: 13%; top: 22%; transform: rotate(-1.5deg); }
  .fan > div:nth-child(3) { left: 24%; top: 42%; transform: rotate(2.5deg); }
  .fan:hover > div:nth-child(n) { transform: none; }
}
.rail-v ol { list-style: none; margin: 0; padding: 0; }
.rail-v li { display: flex; align-items: center; gap: 16px; height: 34px; font-size: 16px; color: var(--faint); position: relative; }
.rail-v li::before, .rail-v li::after { content: ""; position: absolute; left: 7px; width: 4px; height: 50%; background: #34323a; }
.rail-v li::before { top: 0; } .rail-v li::after { bottom: 0; }
.rail-v li:first-child::before, .rail-v li:last-child::after { display: none; }
.rail-v li.up::before, .rail-v li.down::after { background: var(--q); }
.rail-v i { width: 18px; height: 18px; border-radius: 50%; background: var(--sunken); box-shadow: inset 0 0 0 3px #4a4850; position: relative; z-index: 1; flex: none; }
.rail-v li.lit { color: var(--ink); }
.rail-v li.lit i { background: var(--q); box-shadow: none; }
.rail-v li.board i, .rail-v li.now i { background: var(--sunken); box-shadow: inset 0 0 0 4px var(--q); }
.rail-v li.now { font-weight: 700; }
