/* xoinx.io — Revenue Transit Map
   Signal-white ground, sign-black panels, three route colours at full strength.
   Lines run at 0/45/90 degrees; stations are white with black rings. Barlow
   (California highway-sign lineage) for everything; tabular numerals. */
:root {
  --ground: #eef0f2;
  --ground-2: #e2e5e9;
  --sign: #141414;
  --sign-2: #232323;
  --ink: #141414;
  --ink-2: #3d4248;
  --ink-3: #5c636b;
  --rule: #c9ced4;
  --white: #ffffff;
  --a: #5134cc;   /* Audit line: brand violet */
  --p: #ff0075;   /* Process line: brand magenta */
  --r: #00a38a;   /* Reporting line */
  --a-ink: #5134cc;
  --p-ink: #d4005f;  /* magenta darkened for text on light ground (4.6:1) */
  --r-ink: #00785f;
  --line: 12px;
  --edge: clamp(20px, 4vw, 64px);
  --gutter: clamp(16px, 2.4vw, 32px);
  --sans: 'Barlow', system-ui, sans-serif;
  --cond: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 500 18px/1.5 var(--sans); background: var(--ground); color: var(--ink); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--p); color: var(--white); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; }
ul, ol { list-style: none; }
img, svg { display: block; }
html { scrollbar-color: var(--sign) var(--ground-2); }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--edge); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Route bullet: the subway-style disc that names a line */
.bullet { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; color: var(--white); font: 800 0.8em/1 var(--cond); flex: none; }
.bullet.a { background: var(--a); } .bullet.p { background: var(--p-ink); } .bullet.r { background: var(--r-ink); }
.bullet.k { background: var(--sign); } .bullet.o { background: var(--white); color: var(--sign); box-shadow: inset 0 0 0 3px var(--sign); }

/* Masthead: logo + line legend */
.masthead { padding-block: 22px; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 112px; }
.logo svg { width: 100%; height: auto; }
.legend { display: flex; gap: clamp(14px, 2.4vw, 30px); font: 700 15px/1 var(--cond); letter-spacing: 0.01em; }
.legend a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 0; color: var(--ink-2); }
.legend a:hover { color: var(--ink); }
.legend a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 3px var(--sign); flex: none; }
.legend a[aria-current="page"] .dot { background: var(--sign); }
.sign .disc { width: 18px; height: 18px; border-radius: 50%; background: var(--p); flex: none; }

/* Signs */
.sign { display: inline-flex; align-items: center; gap: 14px; background: var(--sign); color: var(--white); text-decoration: none; padding: 16px 22px 16px 16px; font: 700 clamp(18px, 1.5vw, 21px)/1.15 var(--cond); transition: background-color .2s ease-out, transform .2s cubic-bezier(.2,.8,.2,1); }
.sign:hover { background: var(--sign-2); }
.sign:hover .arrow { transform: translateX(4px); }
.sign .arrow { width: 22px; height: 14px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.sign.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--sign); }
.sign.ghost:hover { background: var(--sign); color: var(--white); }
.sign.ghost.on-dark { color: var(--white); box-shadow: inset 0 0 0 3px var(--white); }
.sign.ghost.on-dark:hover { background: var(--white); color: var(--sign); }

/* Hero: headline as the station board, map on the right */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: center; }
.hero h1 { font: 800 clamp(48px, 6.1vw, 92px)/0.94 var(--cond); letter-spacing: -0.025em; text-wrap: balance; }
.hero .lede { margin-top: 26px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.hero .actions .quiet { font: 700 17px/1 var(--cond); }

/* The map */
.map { width: 100%; height: auto; overflow: visible; }
.map .ln { fill: none; stroke-width: var(--line); stroke-linejoin: round; stroke-linecap: round; }
.map .feed { fill: none; stroke: var(--ink-3); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.map .alt { stroke-dasharray: 2 20; }
.map .st circle { fill: var(--white); stroke: var(--sign); stroke-width: 4; transition: fill .2s ease-out, r .2s ease-out; }
.map .st.src circle { stroke: var(--ink-3); }
.map .ix rect { fill: var(--white); stroke: var(--sign); stroke-width: 4; }
.map text { font: 700 15px/1 var(--cond); fill: var(--ink); }
.map text.small { font-weight: 600; font-size: 13px; fill: var(--ink-3); }
.map text.big { font-size: 17px; font-weight: 800; }
.map a.st { cursor: pointer; outline: none; }
.map a.st:hover circle, .map a.st:focus-visible circle, .map a.st.lit circle { fill: var(--sign); }
.map a.st:focus-visible text { text-decoration: underline; }
.map text.fig { font-size: 14px; font-weight: 800; fill: var(--ink-2); }
.map a.st:hover text.fig, .map a.st:focus-visible text.fig, .map a.st.lit text.fig { fill: var(--ink); }
.map .leader { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 1 5; stroke-linecap: round; fill: none; }
.map-mobile, .mobile-map { display: none; }
.map .train { fill: var(--p); }
.map .here circle.ring { fill: none; stroke: var(--p); stroke-width: 3; }

/* Caption bar: one imperative per section */
.caption { background: var(--sign); color: var(--white); }
.caption .wrap { display: flex; align-items: center; gap: 18px; min-height: 92px; padding-block: 20px; }
.caption .bullet { font-size: 26px; }
.caption .bullet.k { background: var(--white); color: var(--sign); }
.caption h2 { font: 800 clamp(32px, 3.6vw, 52px)/1 var(--cond); letter-spacing: -0.02em; }
.caption .where { margin-left: auto; font: 600 15px/1.3 var(--cond); color: #c8ccd1; text-align: right; max-width: 30ch; }

/* Try it: the live dashboard, one click from the hero */
.try .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: 0 clamp(64px, 8vw, 112px); }
.try .kicker { display: flex; align-items: center; gap: 12px; font: 700 15px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--r-ink); }
.try .kicker .bullet { font-size: 18px; }
.try h2 { margin-top: 16px; font: 800 clamp(40px, 4.4vw, 68px)/0.95 var(--cond); letter-spacing: -0.025em; }
.try-copy > p:not(.kicker):not(.more) { margin-top: 18px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 32ch; }
.try .sign { margin-top: 28px; }
.try .more { margin-top: 18px; font: 700 16px/1.3 var(--cond); color: var(--ink-3); }
.try .more a { color: var(--ink); }
.try-shot { position: relative; display: block; background: var(--white); box-shadow: 0 0 0 3px var(--sign), 10px 10px 0 3px var(--r); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1); }
.try-shot img { width: 100%; height: auto; }
.try-shot:hover, .try-shot:focus-visible { transform: translate(-4px, -4px); box-shadow: 0 0 0 3px var(--sign), 14px 14px 0 3px var(--r); }
.try-tag { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; background: var(--sign); color: var(--white); padding: 10px 14px; font: 700 15px/1 var(--cond); }
.try-tag .pulse { width: 10px; height: 10px; border-radius: 50%; background: #3ee0bf; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 191, .7); } 100% { box-shadow: 0 0 0 10px rgba(62, 224, 191, 0); } }

/* Line section: problem | the line as seam | proof stations */
.leg { position: relative; }
.leg .wrap { display: grid; grid-template-columns: minmax(0, 5fr) 64px minmax(0, 6fr); column-gap: var(--gutter); padding-block: clamp(56px, 7vw, 104px); }
.leg .problem { grid-column: 1; align-self: start; position: sticky; top: 32px; }
.leg .problem p { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.leg .problem p + p { margin-top: 16px; }
.leg .problem strong { color: var(--ink); font-weight: 700; }
.seam { grid-column: 2; position: relative; }
.seam::before { content: ''; position: absolute; left: 50%; top: calc(-1 * clamp(56px, 7vw, 104px)); bottom: calc(-1 * clamp(56px, 7vw, 104px)); width: var(--line); transform: translateX(-50%); background: var(--c); }
.leg.k { --c: var(--sign); --ci: var(--ink); } .leg.a { --c: var(--a); --ci: var(--a-ink); } .leg.p { --c: var(--p); --ci: var(--p-ink); } .leg.r { --c: var(--r); --ci: var(--r-ink); }
.train-dot { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 5px var(--ground); z-index: 2; will-change: transform; }
.leg.p .train-dot { background: var(--white); box-shadow: inset 0 0 0 6px var(--p), 0 0 0 5px var(--ground); }
.stops { grid-column: 3; display: grid; gap: clamp(28px, 3.4vw, 48px); }
.stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; text-decoration: none; padding: 4px 0 22px; border-bottom: 3px solid var(--sign); }
.stop::before { z-index: 1; content: ''; position: absolute; left: calc(-1 * (var(--gutter) + 32px) - 13px); top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 5px var(--sign); transition: background-color .2s ease-out; }
.stop:hover::before, .stop:focus-visible::before, .stop.lit::before { background: var(--sign); }
.stop h3 { font: 800 clamp(26px, 2.4vw, 36px)/1.05 var(--cond); letter-spacing: -0.01em; }
.stop .what { grid-column: 1; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.stop .who { grid-column: 1; font: 600 15px/1.3 var(--cond); color: var(--ci); }
.stop .fig { grid-column: 2; grid-row: 1 / span 3; align-self: start; text-align: right; font: 800 clamp(26px, 2.2vw, 34px)/1 var(--cond); }
.stop .fig small { display: block; margin-top: 6px; font: 600 13px/1.3 var(--cond); color: var(--ink-3); max-width: 18ch; margin-left: auto; }
.stop .board { grid-column: 1; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--cond); }
.stop .board svg { width: 18px; height: 12px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.stop:hover .board svg { transform: translateX(4px); }
.stop:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; }

/* Fork: chosen route solid, alternative dashed */
.fork { display: inline-flex; gap: 0; margin-top: 22px; box-shadow: inset 0 0 0 3px var(--sign); }
.fork button { border: 0; background: transparent; font: 700 16px/1 var(--cond); padding: 13px 16px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.fork button[aria-pressed="true"] { background: var(--sign); color: var(--white); }
.fork .swatch { width: 28px; height: 0; border-top: 5px dashed currentColor; }
.fork button[aria-pressed="true"] .swatch { border-top-style: solid; }
.leg .stop.off::after { content: ''; position: absolute; left: calc(-1 * (var(--gutter) + 32px)); top: 21px; width: calc((var(--gutter) + 32px) / 2 - 13px); height: 0; border-top: 5px dashed var(--c); }
.stop.off h3, .stop.off .fig, .stop.off .board { color: var(--ink-3); }
.stop.off .who { color: var(--ink-3); }
.stop.off::before { left: calc(-1 * (var(--gutter) + 32px) / 2 - 13px); background: var(--ground); box-shadow: none; border: 4px dashed var(--ink-3); }

/* Departure board */
.departures { background: var(--sign); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.departures .head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.departures h2 { font: 800 clamp(34px, 3.8vw, 56px)/1 var(--cond); letter-spacing: -0.02em; }
.departures .head p { color: #c8ccd1; max-width: 46ch; font-size: 17px; }
.board-table { width: 100%; border-collapse: collapse; font-family: var(--cond); }
.board-table th { text-align: left; font: 700 13px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: #9aa1a8; padding: 0 12px 12px 0; border-bottom: 2px solid #3a3a3a; }
.board-table td { padding: 15px 12px 15px 0; border-bottom: 1px solid #2c2c2c; font-size: 19px; font-weight: 600; vertical-align: middle; }
.board-table td.t { width: 88px; color: #ffd38a; }
.board-table td.svc { width: 64px; }
.board-table td.st { width: 150px; text-align: right; padding-right: 0; color: #9be8d6; }
.board-table td.st.boarding { color: #ffb3d1; }
.board-table tr.arrive td { animation: arrive .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes arrive { from { opacity: 0; } }
.flap { display: inline-block; overflow: hidden; text-align: center; white-space: pre; }
.flap.turning { animation: turn .09s steps(2) infinite; }
@keyframes turn { 50% { transform: scaleY(0.55); } }
.board-table a { color: inherit; text-decoration: none; }
.board-table a:hover { text-decoration: underline; }
.departures .note { margin-top: 18px; font: 600 14px/1.4 var(--cond); color: #9aa1a8; }

/* Operator */
.operator .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding-block: clamp(64px, 8vw, 120px); }
.operator h2 { font: 800 clamp(34px, 3.8vw, 56px)/1 var(--cond); letter-spacing: -0.02em; }
.operator .bio { margin-top: 22px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.operator .bio + .bio { margin-top: 14px; }
.operator .links { margin-top: 30px; display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.interchanges { position: relative; padding-left: 64px; display: grid; gap: 22px; align-content: start; }
.interchanges::before { content: ''; position: absolute; left: 14px; top: 16px; bottom: 16px; width: var(--line); background: linear-gradient(var(--a) 0 33.3%, var(--p) 33.3% 66.6%, var(--r) 66.6%); }
.ix-stop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; }
.ix-stop::before { content: ''; position: absolute; left: -64px; top: 6px; width: 40px; height: 22px; border-radius: 11px; background: var(--white); box-shadow: inset 0 0 0 4px var(--sign); }
.ix-stop b { font: 800 clamp(40px, 4vw, 60px)/0.9 var(--cond); letter-spacing: -0.02em; }
.ix-stop span { font: 700 clamp(18px, 1.5vw, 22px)/1.2 var(--cond); }
.served { margin-top: 30px; padding-top: 22px; border-top: 3px solid var(--sign); }
.served h3 { font: 700 15px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.served ul { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 700 18px/1.2 var(--cond); }
.served li { display: inline-flex; align-items: center; gap: 8px; }
.served li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--sign); }
.results { margin-top: 30px; display: grid; gap: 16px; }
.results li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.results li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--sign); }

/* Terminus */
.terminus { background: var(--p); color: var(--sign); }
.terminus .wrap { padding-block: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.terminus h2 { font: 800 clamp(44px, 5.6vw, 84px)/0.95 var(--cond); letter-spacing: -0.025em; text-wrap: balance; }
.terminus p { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; max-width: 40ch; }
.terminus .sign { margin-top: 26px; }
.terminus a:not(.sign) { color: var(--sign); }
.terminus ::selection { background: var(--sign); }

.foot { padding-block: 28px; font: 600 15px/1.3 var(--cond); color: var(--ink-3); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink); }

/* Hub pages */
.hub-head { padding-block: clamp(32px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.hub-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.hub-head h1 { font: 800 clamp(48px, 6vw, 92px)/0.94 var(--cond); letter-spacing: -0.025em; text-wrap: balance; }
.hub-head p { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 42ch; }
.strip { padding-block: 8px 40px; }
.strip svg { width: 100%; height: auto; }

/* LED departure sign (Playground): a small wall sign that sends you to a sample */
.led-wrap { padding-block: 0 clamp(48px, 6vw, 80px); }
.led { max-width: 920px; display: grid; gap: 4px; padding: clamp(14px, 2vw, 22px) clamp(16px, 2.6vw, 30px); background-color: #0c0c0c; background-image: radial-gradient(circle, rgba(255,255,255,.06) 1.1px, transparent 1.7px); background-size: 6px 6px; box-shadow: 0 0 0 3px var(--sign), 0 22px 40px -24px rgba(0,0,0,.55); --led: #4dff7c; }
.led-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0 clamp(10px, 1.4vw, 18px); padding: 6px 4px; text-decoration: none; color: var(--led); font: 800 clamp(22px, 2.9vw, 40px)/1.25 'Doto', ui-monospace, monospace; text-shadow: 0 0 8px rgba(77,255,124,.55); letter-spacing: .02em; }
.led-row:hover, .led-row:focus-visible { color: #eaffef; text-shadow: 0 0 10px rgba(160,255,190,.8); outline: none; background: rgba(77,255,124,.06); }
.led-row:focus-visible { box-shadow: 0 0 0 2px var(--led); }
.led-dest { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.led-row:hover .led-dest::after, .led-row:focus-visible .led-dest::after { content: ' >'; }
.led-b { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 50%; font-size: .78em; line-height: 1; color: #0c0c0c; text-shadow: none; }
.led-b.p { background: #ff2d8a; box-shadow: 0 0 10px rgba(255,45,138,.7); }
.led-b.r { background: #2de0b8; box-shadow: 0 0 10px rgba(45,224,184,.7); }
.led-b.a { background: #8c72ff; box-shadow: 0 0 10px rgba(140,114,255,.7); }
.led-eta { text-align: right; min-width: 4.2ch; }
.led-eta.now { animation: led-blink 1s steps(1) infinite; }
@keyframes led-blink { 50% { opacity: .25; } }
.led-note { margin-top: 14px; font: 600 15px/1.3 var(--cond); color: var(--ink-3); }
@media (max-width: 640px) { .led-n { display: none; } .led-row { grid-template-columns: auto minmax(0, 1fr) auto; } }

@media (max-width: 1000px) {
  .hero .wrap, .operator .wrap, .terminus .wrap, .hub-head .wrap, .try .wrap { grid-template-columns: minmax(0, 1fr); }
  .try-shot { margin-right: 13px; }
  .hero .map-desktop { display: none; }
  .mobile-map { display: block; padding-bottom: clamp(48px, 8vw, 72px); }
  .mobile-map .map-mobile { display: block; max-width: 520px; }
  .hero { padding-bottom: 48px; }
  .leg .wrap { grid-template-columns: 44px minmax(0, 1fr); }
  .leg .problem { grid-column: 1 / -1; position: static; margin-bottom: 36px; }
  .seam { grid-column: 1; grid-row: 2; }
  .seam::before { top: 0; bottom: calc(-1 * clamp(56px, 7vw, 104px)); }
  .stops { grid-column: 2; grid-row: 2; }
  .stop::before { left: calc(-1 * (var(--gutter) + 22px) - 13px); }
  .leg .stop.off::after { left: calc(-1 * (var(--gutter) + 22px)); width: calc((var(--gutter) + 22px) / 2 - 13px); }
  .stop.off::before { left: calc(-1 * (var(--gutter) + 22px) / 2 - 13px); }
  .caption .where { display: none; }
  .interchanges { margin-top: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .strip { display: none; }
  .legend { gap: 12px; font-size: 14px; }
  .legend .dot { display: none; }
  .logo { width: 92px; }
  .stop { grid-template-columns: minmax(0, 1fr); }
  .stop .fig { grid-column: 1; grid-row: auto; text-align: left; margin-top: 8px; }
  .stop .fig small { margin-left: 0; }
  .board-table td.svc, .board-table th.svc { display: none; }
  .board-table td { font-size: 16px; }
  .board-table td.t { width: 60px; }
  .board-table td.st { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board-table tr.arrive td { animation: none; }
  .try-tag .pulse { animation: none; }
  .led-eta.now { animation: none; }
  .try-shot { transition: none; }
}
