/* Atlas — bridge-terminal.com/atlas
   A transit map: every engineer is a line, every checkpoint a station, and finished work rides the
   landing train to main. Colours are line colours; everything else stays quiet around them. */

:root {
  --paper: #f4f6f8;
  --paper-2: #e9edf1;
  --card: #ffffff;
  --ink: #0d1b2a;
  --ink-2: #334457;
  --muted: #5d6b7a;
  --rule: #d5dce3;
  --station: #ffffff;

  --l-pa: #e4572e;      /* vermilion — the PA, the interchange */
  --l-plan: #6a4c93;    /* plum — architecture, research, design */
  --l-build: #2d7dd2;   /* blue — backend, UI build */
  --l-prove: #e09f1f;   /* amber — testing, browser QA, performance */
  --l-guard: #1b998b;   /* teal — review, critic, security */
  --l-ship: #c2185b;    /* magenta — build & deploy, landing */
  --l-care: #6b7c8f;    /* slate — docs, dependencies, specialists */
  --l-main: var(--ink); /* main — thick, the destination */

  --board: #11161c;
  --board-ink: #f2c94c;
  --board-dim: #7d8794;

  --display: "Overpass", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a111c; --paper-2: #101a28; --card: #121e2e; --ink: #e8eef5; --ink-2: #c3cfdb; --muted: #8fa0b3;
    --rule: #22324a; --station: #0a111c;
    --l-pa: #ff7a52; --l-plan: #a685d6; --l-build: #5aa2ee; --l-prove: #f4b942; --l-guard: #35c2b2; --l-ship: #ee4f8e; --l-care: #93a4b7;
    --board: #05080c; --board-ink: #f7d35c; --board-dim: #6e7a88;
  }
}
:root[data-theme="dark"] {
  --paper: #0a111c; --paper-2: #101a28; --card: #121e2e; --ink: #e8eef5; --ink-2: #c3cfdb; --muted: #8fa0b3;
  --rule: #22324a; --station: #0a111c;
  --l-pa: #ff7a52; --l-plan: #a685d6; --l-build: #5aa2ee; --l-prove: #f4b942; --l-guard: #35c2b2; --l-ship: #ee4f8e; --l-care: #93a4b7;
  --board: #05080c; --board-ink: #f7d35c; --board-dim: #6e7a88;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.62 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--l-pa); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--display); letter-spacing: -0.02em; }
.brand svg, .brand img { width: 30px; height: 30px; display: block; }
.nav { display: flex; gap: 22px; font: 600 14px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .opt { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: 56px 24px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.kicker i { width: 28px; height: 6px; border-radius: 3px; background: var(--l-pa); display: inline-block; }
h1 { font: 900 clamp(44px, 7.2vw, 96px)/0.94 var(--display); letter-spacing: -0.035em; margin: 0 0 22px; max-width: 13ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--l-pa); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; font: 800 16px/1 var(--display); letter-spacing: 0.01em; padding: 15px 22px; border-radius: 999px; }
.btn:hover { background: var(--l-pa); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* The map */
.map { position: relative; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .route { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map .main { stroke: var(--l-main); stroke-width: 15; }
.map .stn { fill: var(--station); stroke: var(--ink); stroke-width: 3.5; }
.map .stn-big { fill: var(--station); stroke: var(--ink); stroke-width: 5; }
.map .lbl { font: 800 15px/1 var(--display); fill: var(--ink); letter-spacing: 0.01em; }
.map .sub { font: 600 11.5px/1 var(--mono); fill: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.map .origin { font: 800 13px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.map .car { stroke: var(--station); stroke-width: 2.5; }
.map .halo { fill: none; stroke-width: 2; opacity: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font: 600 12.5px/1.2 var(--mono); color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend b { width: 18px; height: 5px; border-radius: 3px; display: inline-block; }

/* ── Departure board ────────────────────────────────────────────────────── */
.board-sec { padding-block: 30px 70px; }
.board { background: var(--board); border-radius: 14px; padding: 20px 22px 16px; color: var(--board-ink); font: 600 15px/1 var(--mono); box-shadow: 0 30px 60px -35px rgba(5, 10, 20, 0.6); overflow-x: auto; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; color: var(--board-dim); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.board-head strong { color: var(--board-ink); font-size: 14px; letter-spacing: 0.16em; }
.board table { border-collapse: separate; border-spacing: 0 6px; width: 100%; min-width: 760px; }
.board th { text-align: left; color: var(--board-dim); font-size: 11px; letter-spacing: 0.14em; font-weight: 600; padding: 0 10px 4px 0; }
.board td { padding: 0 10px 0 0; white-space: nowrap; }
.flap { display: inline-flex; gap: 2px; }
.flap span { display: inline-block; width: 0.82em; text-align: center; background: #1b222b; border-radius: 3px; padding: 6px 0 5px; position: relative; color: var(--board-ink); }
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55); }
.flap span.flip { animation: flip 0.32s ease-in-out; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); filter: brightness(0.6); } 100% { transform: rotateX(0); } }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.st-ok { color: #6fdc8c; } .st-hold { color: #ff8a65; } .st-run { color: var(--board-ink); }
.board-note { margin: 10px 2px 0; color: var(--board-dim); font: 500 12px/1.4 var(--body); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section.band { padding-block: 84px; border-top: 1px solid var(--rule); }
.eyebrow { font: 700 12.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow i { width: 22px; height: 5px; border-radius: 3px; display: inline-block; }
h2 { font: 900 clamp(32px, 4.6vw, 58px)/1 var(--display); letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; max-width: 18ch; }
.intro { color: var(--ink-2); font-size: 19px; max-width: 58ch; margin: 0 0 40px; }

/* Why not just Claude Code */
.versus { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
.vrow { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.vrow h3 { font: 800 20px/1.2 var(--display); margin: 0; letter-spacing: -0.01em; }
.vrow .alone { color: var(--muted); font-size: 15.5px; margin: 0; }
.vrow .atlas { margin: 0; font-size: 15.5px; }
.vrow .atlas code, .role code, .step code { font: 600 0.88em var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.vhead { color: var(--muted); font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 820px) { .vrow, .vhead { grid-template-columns: 1fr; gap: 8px; } .vhead span:not(:first-child) { display: none; } .vrow .alone::before { content: "Claude Code alone: "; font-weight: 700; } .vrow .atlas::before { content: "With Atlas: "; font-weight: 700; } }

/* The lines (roles) */
.phases { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.phases button { font: 700 13px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--rule); background: var(--card); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.phases button b { width: 14px; height: 5px; border-radius: 3px; display: inline-block; }
.phases button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }
.role { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.role[hidden] { display: none; }
.role header { display: flex; align-items: center; gap: 12px; }
.role .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 900 14px/1 var(--display); flex: none; }
.role h3 { font: 900 22px/1.1 var(--display); margin: 0; letter-spacing: -0.015em; }
.role .phase { font: 700 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.role .mission { margin: 0; color: var(--ink-2); font-size: 16px; }
.route-mini { list-style: none; margin: 4px 0 0; padding: 0 0 0 32px; position: relative; display: grid; gap: 10px; }
.route-mini::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 5px; border-radius: 3px; background: var(--line, var(--ink)); }
.route-mini li { position: relative; font-size: 15px; line-height: 1.45; }
.route-mini li::before { content: ""; position: absolute; left: -30px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--station); border: 3px solid var(--line, var(--ink)); }
.route-mini li.terminus { font-weight: 700; }
.route-mini li.terminus::before { width: 16px; height: 16px; left: -32px; top: 1px; border-width: 4px; border-color: var(--ink); }
.role .never { margin: 2px 0 0; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 10px; }
.role .never strong { color: var(--ink); }
.role blockquote { margin: 0; font: 600 14.5px/1.45 var(--mono); color: var(--ink); background: var(--paper-2); border-radius: 6px; padding: 10px 12px; }

/* One goal, end to end */
.journey { position: relative; display: grid; gap: 0; max-width: 860px; }
.journey::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 9px; border-radius: 5px; background: var(--paper-2); }
.journey .fill { position: absolute; left: 21px; top: 10px; width: 9px; border-radius: 5px; background: linear-gradient(var(--l-pa), var(--l-plan), var(--l-build), var(--l-prove), var(--l-guard), var(--l-ship)); height: var(--progress, 100%); transition: height 0.2s linear; }
.step { position: relative; padding: 0 0 34px 76px; }
.step::before { content: attr(data-n); position: absolute; left: 6px; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--station); border: 5px solid var(--ink); display: grid; place-items: center; font: 900 14px/30px var(--display); text-align: center; }
.step h3 { font: 900 24px/1.15 var(--display); margin: 0 0 6px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.step .state { display: inline-block; margin-top: 8px; font: 700 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }

/* Where it runs */
.where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }
.place { border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; background: var(--card); }
.place .tag { font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.place .tag b { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.place h3 { font: 900 28px/1.1 var(--display); margin: 12px 0 10px; letter-spacing: -0.02em; }
.place ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.facts div { padding: 22px 18px 22px 0; }
.facts div + div { border-left: 1px solid var(--rule); padding-left: 18px; }
.facts strong { display: block; font: 900 clamp(34px, 4vw, 52px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Closing */
.closing { padding-block: 90px; text-align: left; }
.closing h2 { max-width: 20ch; }

footer { border-top: 1px solid var(--rule); padding-block: 28px 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Reveal — visible at rest; motion only adds */
.reveal { transition: transform 0.6s cubic-bezier(.2,.7,.2,1), opacity 0.6s; }
.js .reveal.pre { transform: translateY(14px); opacity: 0.001; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .js .reveal.pre { transform: none; opacity: 1; } }

/* Legal pages */
.doc { padding-block: 48px 80px; }
.doc article { max-width: 68ch; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); max-width: none; }
.doc h2 { font-size: 24px; margin-top: 36px; max-width: none; letter-spacing: -0.01em; }
.doc .updated { font: 600 13px/1 var(--mono); color: var(--muted); margin-bottom: 28px; }
