/* Who Owns the Stack? — Google's developer platform as one timeline down the page.
 *
 * Three columns share each row: the API on the left, the models (and the TPUs
 * under them) in the middle, the harness on the right. Lanes run in the two
 * gutters, API lanes left of the model line and harness lanes right of it.
 *
 * Lane colors are categorical (one per surface) and were checked as a set
 * with the dataviz skill's palette validator on the page surface (#f5f3ec),
 * in the order they sit on the spine: generateContent blue, Live ochre,
 * Agent Engine green, Interactions violet, Managed Agents orange, then across
 * the model line Gemini CLI pink, Antigravity indigo, ADK teal, Google's
 * agents sienna. Every adjacent pair clears the normal-vision floor; the
 * worst color-blind pair (Live and Agent Engine, ΔE 6.2) sits in the band
 * that requires secondary encoding, which the page gives everywhere: each
 * card names its lane in ink and the lanes are labelled on the spine each
 * year. Text never wears a lane color. The model line is ink; the PaLM API
 * and the open protocols are warm gray.
 */
:root {
  --paper: #f5f3ec;
  --card: #fbfaf6;
  --card-strong: #fffefb;
  --ink: #1c1b18;
  --ink-2: #4f4c45;
  --ink-3: #847f74;
  --rule: #dad5c9;
  --rule-soft: #e8e4d9;
  --code-bg: #eeebe1;
  --accent: #a64f2a;
  --mark: rgba(166, 79, 42, 0.15);
  --wash: rgba(28, 27, 24, 0.045);

  --l-model: #1c1b18;
  --l-palm: #a8a397;
  --l-content: #2a78d6;
  --l-live: #b8860b;
  --l-engine: #008300;
  --l-interactions: #6e3ab5;
  --l-managed: #eb6834;
  --l-cli: #d6589a;
  --l-antigravity: #3b47a8;
  --l-adk: #00897b;
  --l-agents: #a0522d;
  --l-protocols: #a8a397;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --side-w: 316px;
  --gut-l: 92px;
  --gut-r: 84px;
  --models-w: clamp(212px, 16.5vw, 258px);
  --lanes-w: 112px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--appnav-h, 0px) + 24px); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  max-width: 1720px;
  margin: 0 auto;
}

/* ---------- sidebar ---------- */

.side {
  position: sticky;
  top: var(--appnav-h, 0px);
  height: calc(100vh - var(--appnav-h, 0px));
  height: calc(100dvh - var(--appnav-h, 0px));
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.side-inner { padding: 1.3rem 1.2rem 1.6rem 1.35rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.wordmark {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: italic; color: var(--accent); }

.lede {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.lede strong { color: var(--ink); font-weight: 600; }

/* the two tables */

.lens { margin-top: 1.1rem; }

.lens-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  border-bottom: 1px solid var(--rule);
}
.lens-tabs [role="tab"] {
  border: 0;
  background: none;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem 0.35rem;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.lens-tabs [role="tab"]:first-child { padding-left: 0; }
.lens-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lens-tabs [role="tab"]:hover { color: var(--ink); }
.asof {
  margin-top: 0.3rem;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.asof time { color: var(--ink); font-weight: 500; }

.matrix-table, .parity-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.15rem;
  table-layout: fixed;
}
.matrix-table th, .matrix-table td, .parity-table th, .parity-table td { padding: 0; }
.matrix-table thead th, .parity-table thead th {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  text-align: center;
  padding: 0.4rem 0 0.25rem;
  vertical-align: bottom;
  line-height: 1.15;
  transition: color 0.3s, opacity 0.3s;
}
.matrix-table thead th:first-child { width: 5.9rem; }
.matrix-table thead th .api-swatch, .parity-table thead th .api-swatch {
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin: 0 auto 0.3rem;
}
.matrix-table thead th.unborn { opacity: 0.32; }
.matrix-table thead th.dead { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-3); }
.matrix-table thead th.current { color: var(--ink); font-weight: 600; }

.matrix-table tbody th, .parity-table tbody th {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  padding: 0.15rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}
.matrix-table tbody tr + tr > *, .parity-table tbody tr + tr > * { border-top: 1px solid var(--rule-soft); }
.matrix-table td, .parity-table td { text-align: center; }
.matrix-table td.current { background: var(--wash); }

.cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 21px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 3px;
}
.cell-btn:hover { background: rgba(28, 27, 24, 0.07); }
.cell-btn:disabled { cursor: default; }
.cell-btn:disabled:hover { background: none; }
.cell-btn svg { width: 13px; height: 13px; overflow: visible; }
.cell-btn.pulse svg { animation: pulse 1.1s ease-out; }
@keyframes pulse {
  0% { transform: scale(1.7); }
  60% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.h-ball { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.h-fill { fill: var(--ink); }
.h-thick { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.h-lost { stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.h-na { stroke: var(--rule); stroke-width: 1.5; stroke-linecap: round; }

.matrix-key {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.matrix-key li { display: flex; align-items: center; gap: 0.32rem; }
.matrix-key svg { width: 11px; height: 11px; overflow: visible; flex: none; }
.matrix-note { margin-top: 0.45rem; font-size: 0.7rem; line-height: 1.45; color: var(--ink-3); }

.parity-table thead th:first-child { width: auto; }
.parity-table thead th:not(:first-child) { width: 4.6rem; }
.parity-table tbody th { white-space: normal; line-height: 1.25; padding: 0.22rem 0.3rem 0.22rem 0; }
.par-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 21px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-3);
}
.par-btn:hover { background: rgba(28, 27, 24, 0.07); }
.par-btn:disabled { cursor: default; }
.par-btn:disabled:hover { background: none; }
.par-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; transition: background 0.3s, border-color 0.3s; }
.par-btn.on .par-dot { border-color: var(--pc, var(--ink)); background: var(--pc, var(--ink)); }
.par-btn.on { color: var(--ink-2); }
.par-btn.pulse .par-dot { animation: pulse 1.1s ease-out; }
.par-first { font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

/* era index */

.eras {
  margin-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.eras a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.4rem;
  align-items: baseline;
  padding: 0.36rem 0.4rem 0.36rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}
.eras a:hover { background: var(--wash); }
.eras .era-year { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); padding-left: 0.1rem; }
.eras .era-name { font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.eras .era-name i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.eras .era-gist { grid-column: 2; font-size: 0.73rem; color: var(--ink-2); line-height: 1.35; }
.eras a.current { background: var(--wash); box-shadow: inset 2px 0 0 var(--ink); }

/* filters */

.controls { margin-top: 1rem; display: grid; gap: 0.6rem; }
.control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.control-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 3rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.16rem 0.52rem 0.16rem 0.42rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip i.dotted { background: none !important; border: 1.5px dotted var(--ink-3); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] i { box-shadow: 0 0 0 1.5px var(--paper); }

.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg button {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border: 0;
  background: var(--card);
  cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:hover { background: var(--wash); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.side-foot { margin-top: 1rem; font-size: 0.78rem; color: var(--ink-3); }

/* ---------- timeline ---------- */

.timeline { padding: 0 1.2rem 4rem 1.2rem; min-width: 0; }

.tl-head, .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--gut-l) var(--models-w) var(--gut-r) minmax(0, 1fr);
}
.tl-head {
  align-items: end;
  padding: 1.3rem 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.tl-head-api { text-align: right; padding-right: 0.8rem; }
.tl-head-models { text-align: center; }
.tl-head-harness { padding-left: 0.8rem; }

.rows { list-style: none; position: relative; }

.row { position: relative; }
.row[hidden] { display: none; }

.cell-api, .cell-models, .cell-harness { position: relative; z-index: 1; min-width: 0; }
.cell-api { grid-column: 1; padding: 0.55rem 0.75rem 0.55rem 0; display: flex; flex-direction: column; align-items: flex-end; }
.cell-gl { grid-column: 2; }
.cell-models { grid-column: 3; padding: 0.55rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cell-gr { grid-column: 4; }
.cell-harness { grid-column: 5; padding: 0.55rem 0 0.55rem 0.75rem; }

.spine { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }

/* lane drawing */
.ln { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.ln.dotted { stroke-dasharray: 0.1 5.2; stroke-width: 2.6; }
.ln.legacy { stroke-width: 1.3; }
.ln.end-cap { stroke-width: 2.4; }
.ln.model { stroke-width: 2.6; }
.dot { stroke-width: 2; }
.bar { stroke-width: 5; stroke-linecap: round; }
.conn { stroke: var(--rule); stroke-width: 1; }
.lane-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  fill: var(--ink-3);
}

/* year divider */
.row-year .cell-api, .row-year .cell-harness { padding-top: 1.6rem; padding-bottom: 0.45rem; justify-content: flex-end; }
.row-year .cell-api { flex-direction: row; align-items: flex-end; gap: 0.7rem; }
.row-year .cell-harness { display: flex; align-items: flex-end; gap: 0.7rem; }
.row-year .cell-models { padding-top: 1.45rem; padding-bottom: 0.3rem; align-items: center; justify-content: flex-end; }
.year-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.01em;
  background: var(--paper);
  padding: 0 0.35rem;
}
.year-rule { flex: 1; height: 1px; background: var(--rule); margin-bottom: 0.5rem; min-width: 1rem; }
.year-note { font-size: 0.78rem; font-style: italic; color: var(--ink-2); margin-bottom: 0.3rem; max-width: 26rem; line-height: 1.35; }
.row-year .cell-api .year-note { text-align: right; }

/* cards */

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 0.6rem 0.82rem 0.68rem;
  width: 100%;
  max-width: 38rem;
  transition: opacity 0.25s, border-color 0.2s, box-shadow 0.2s;
}
.card:target, .card.flash { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--mark); }
.card.dim { opacity: 0.26; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.meta time { color: var(--ink-2); font-weight: 500; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.badge.dotted i { background: none !important; border: 1.5px dotted var(--ink-3); }
.badge.ext { color: var(--ink-3); }

.card h3 {
  margin-top: 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.003em;
}
.card .surface {
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.card .surface code {
  background: var(--code-bg);
  border-radius: 3px;
  padding: 0.02rem 0.28rem;
}
.card p.what { margin-top: 0.38rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink); }
.card p.shift, .card p.link, .card p.fw {
  margin-top: 0.42rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 1.35rem;
  position: relative;
}
.card p.shift::before, .card p.link::before, .card p.fw::before {
  position: absolute;
  left: 0;
  top: -0.05rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.card p.shift::before { content: "⇄"; }
.card p.link::before { content: "↔"; }
.card p.fw::before { content: "≈"; font-weight: 600; }
.card p.later { margin-top: 0.38rem; font-size: 0.77rem; color: var(--ink-3); font-style: italic; }
.card p.num { margin-top: 0.38rem; font-size: 0.79rem; color: var(--ink-2); }
.card p.num::before { content: "▸ "; color: var(--ink-3); }
.card p.grad { margin-top: 0.42rem; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.card p.grad a { color: var(--ink-2); text-decoration-color: var(--rule); }
.card .src { margin-top: 0.45rem; font-size: 0.72rem; color: var(--ink-3); line-height: 1.45; }
.card .src a { color: var(--ink-2); text-decoration-color: var(--rule); }
.card .src a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.card.major h3 { font-size: 1.06rem; }
.card.major { background: var(--card-strong); border-color: var(--rule); }
.card.external { background: transparent; border-style: dashed; border-color: var(--rule); }

/* inline code in prose */
.card p code, .reading code, .era-body code, .lede code, .fig code {
  font-size: 0.86em;
  background: var(--code-bg);
  border-radius: 3px;
  padding: 0.02rem 0.26rem;
}

/* code samples */
details.code { margin-top: 0.5rem; }
details.code summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--card);
  user-select: none;
}
details.code summary::-webkit-details-marker { display: none; }
details.code summary::before { content: "▸"; font-size: 0.7rem; transition: transform 0.15s; }
details.code[open] summary::before { transform: rotate(90deg); }
details.code summary:hover { border-color: var(--ink-3); }
pre.code-body {
  margin-top: 0.4rem;
  background: var(--code-bg);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
pre.code-body .cl { display: block; }
pre.code-body mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
pre.code-body .c-http { color: var(--ink); font-weight: 600; }
pre.code-body .c-head { color: var(--ink-2); }
pre.code-body .c-res { color: var(--ink-2); }
pre.code-body .c-note { color: var(--ink-3); font-style: italic; }
pre.code-body .c-str { color: #6b5a2e; }

/* model cards, in the middle column */
.card.model { padding: 0.55rem 0.7rem 0.62rem; max-width: none; }
.card.model::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--l-model);
  box-shadow: 0 0 0 2.5px var(--paper);
}
.card.model.major::before { width: 13px; height: 13px; margin-left: -6.5px; top: -7px; }
.card.model .meta { justify-content: space-between; }
.card.model h3 { font-size: 0.95rem; line-height: 1.25; }
.card.model.major h3 { font-size: 1rem; }
.card.model .ids { display: block; margin-top: 0.12rem; font-family: var(--mono); font-size: 0.62rem; font-weight: 400; color: var(--ink-3); overflow-wrap: anywhere; line-height: 1.4; }
.card.model p.what { font-size: 0.8rem; line-height: 1.5; }
.card.model p.link, .card.model p.num { font-size: 0.76rem; }
.card.model .src { font-size: 0.68rem; }
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.4rem;
}
.spec {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.4;
  padding: 0.06rem 0.36rem;
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--ink-2);
  white-space: nowrap;
}
.spec b { color: var(--ink); font-weight: 600; }
.spec small { font-size: 0.92em; color: var(--ink-3); }
.caps { display: flex; flex-wrap: wrap; gap: 0.22rem; margin-top: 0.35rem; }
.cap {
  font-size: 0.62rem;
  line-height: 1.35;
  padding: 0.04rem 0.38rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
}
.cap.new { border-color: var(--ink-2); color: var(--ink); font-weight: 600; }
.ctx { margin-top: 0.4rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.45rem; }
.ctx-track { position: relative; height: 5px; border-radius: 3px; background: var(--rule-soft); overflow: hidden; }
.ctx-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.ctx-label { font-family: var(--mono); font-size: 0.6rem; color: var(--ink-3); white-space: nowrap; }
.variants {
  margin-top: 0.4rem;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-2);
}
.variants th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 0.1rem 0.3rem 0.1rem 0; }
.variants td { padding: 0.1rem 0.3rem 0.1rem 0; border-top: 1px solid var(--rule-soft); white-space: nowrap; }
.variants td:first-child { color: var(--ink); white-space: normal; }

/* era cards: a new surface is born */
.card.era {
  background: var(--card-strong);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--era-color, var(--ink));
  padding: 0.82rem 0.95rem 0.92rem;
  box-shadow: 0 1px 0 var(--rule-soft), 0 10px 24px -18px rgba(28, 27, 24, 0.35);
}
.era-kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card.era h3 {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.card.era h3 em { font-style: italic; }
.era-endpoint {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.era-body { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.6; color: var(--ink); }
.era-body p + p { margin-top: 0.5rem; }
.era-runs {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem 0.6rem;
  font-size: 0.68rem;
  color: var(--ink-2);
}
.era-runs span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.era-runs svg { width: 10px; height: 10px; flex: none; overflow: visible; }

/* figures inside cards */
.fig { margin-top: 0.85rem; }
.fig figcaption { margin-top: 0.45rem; font-size: 0.72rem; line-height: 1.45; color: var(--ink-3); }
.an-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.45rem 0.6rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.42;
  color: var(--ink-2);
}
.an-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.an-k span { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--ink-3); }
.an-box ul { list-style: none; }
.an-box li { padding-left: 0.75rem; position: relative; }
.an-box li::before { content: "·"; position: absolute; left: 0.15rem; color: var(--ink-3); }
.an-you { border-style: dashed; border-color: var(--ink-3); }
.an-you ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.8rem; }
.an-wire {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-2);
}
.an-host {
  position: relative;
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  padding: 1.4rem 0.5rem 0.5rem;
  background: rgba(28, 27, 24, 0.035);
}
.an-side {
  position: absolute;
  top: 0.4rem;
  left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.an-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.45rem; }
.an-sandbox { border-color: var(--ink); border-width: 1.5px; background: var(--card-strong); }

/* the hook map on the mods card */
.fig-scroll { overflow-x: auto; }
.hookmap { width: 100%; border-collapse: collapse; font-size: 0.72rem; line-height: 1.35; }
.hookmap th { text-align: left; font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 0 0.5rem 0.3rem 0; border-bottom: 1px solid var(--rule); }
.hookmap td { padding: 0.28rem 0.5rem 0.28rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--ink-2); }
.hookmap td:first-child { color: var(--ink); font-weight: 500; min-width: 6.5rem; }
.hookmap td code { font-size: 0.92em; background: var(--code-bg); border-radius: 3px; padding: 0.02rem 0.24rem; overflow-wrap: anywhere; }
.hookmap .yr { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-3); white-space: nowrap; }

/* ---------- reading + sources ---------- */

.reading, .sources {
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 1.6rem 1rem calc(var(--side-w) + 1.4rem);
}
.reading h2, .sources h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
}
.reading h2 em, .sources h2 em { font-style: italic; color: var(--accent); }
.reading .reading-lede, .sources .sources-lede { margin-top: 0.6rem; max-width: 70ch; color: var(--ink-2); font-size: 0.95rem; }
.findings {
  list-style: none;
  counter-reset: f;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 1rem 1.6rem;
}
.findings li { counter-increment: f; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.findings h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.findings h3::before {
  content: counter(f, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.findings p { margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.6; color: var(--ink); }
.findings .refs { font-size: 0.76rem; color: var(--ink-3); }
.findings .refs a { color: var(--ink-2); }

/* the graduation chart: where a capability appeared first */
.grad-fig { margin-top: 2rem; max-width: 64rem; }
.grad-fig h3 { font-size: 1rem; font-weight: 600; }
.grad-fig .grad-lede { margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-2); max-width: 70ch; }
.grad-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.6rem; font-size: 0.74rem; color: var(--ink-2); list-style: none; }
.grad-key li { display: inline-flex; align-items: center; gap: 0.35rem; }
.grad-key i { width: 9px; height: 9px; border-radius: 50%; }
.grad-svg { display: block; width: 100%; height: auto; margin-top: 0.5rem; overflow: visible; }
.grad-svg .g-axis { stroke: var(--rule); stroke-width: 1; }
.grad-svg .g-tick { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.grad-svg .g-row { font-family: var(--sans); font-size: 12px; fill: var(--ink); }
.grad-svg .g-line { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.grad-svg .g-dot { stroke: var(--paper); stroke-width: 2; cursor: pointer; }
.grad-svg .g-hit { fill: transparent; cursor: pointer; }
.grad-svg .g-lag { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.grad-svg .g-band { fill: var(--wash); }
.grad-table { margin-top: 0.6rem; font-size: 0.74rem; }
.grad-table summary { cursor: pointer; color: var(--ink-2); }
.grad-table table { margin-top: 0.4rem; border-collapse: collapse; width: 100%; }
.grad-table th, .grad-table td { text-align: left; padding: 0.2rem 0.6rem 0.2rem 0; border-bottom: 1px solid var(--rule-soft); }
.grad-table th { font-weight: 500; color: var(--ink-3); }

.source-list {
  margin-top: 1.2rem;
  columns: 2 26rem;
  column-gap: 2rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 1.4rem;
}
.source-list li { break-inside: avoid; margin-bottom: 0.4rem; }
.source-list a { color: var(--ink); text-decoration-color: var(--rule); }
.source-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.source-list .pub { color: var(--ink-3); }

.colophon {
  max-width: 1720px;
  margin: 0 auto;
  padding: 1.6rem 1.6rem 3rem calc(var(--side-w) + 1.4rem);
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- tooltip ---------- */

.tip {
  position: fixed;
  z-index: 4000;
  max-width: 19rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  padding: 0.55rem 0.7rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tip b { font-weight: 600; }
.tip code { font-size: 0.9em; }
.tip .tip-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bdb8ac;
  margin-bottom: 0.15rem;
}
.tip .tip-since { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.64rem; color: #bdb8ac; }

/* ---------- medium screens: the sidebar moves above the timeline ---------- */

@media (max-width: 1399px) {
  :root { --side-w: 0px; }
  .layout { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule-soft); overflow: visible; }
  .side-inner {
    max-width: 66rem;
    padding: 1.4rem 1.2rem 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2.2rem;
    align-items: start;
  }
  .side-inner > .kicker, .side-inner > .wordmark, .side-inner > .lede { grid-column: 1; }
  .side-inner > .lens { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
  .side-inner > .eras, .side-inner > .controls, .side-inner > .side-foot { grid-column: 1; }
  .reading, .sources, .colophon { padding-left: 1.6rem; }
}

/* ---------- narrow screens: one column, lanes at the left ---------- */

@media (max-width: 1099px) {
  .side-inner { display: block; max-width: 46rem; }
  .side-inner > .lens { margin-top: 1.1rem; }
  .timeline { padding: 0 1rem 3rem 0.4rem; }
  .tl-head, .row { grid-template-columns: var(--lanes-w) minmax(0, 1fr); }
  .tl-head-api, .tl-head-models, .tl-head-gut:last-of-type { display: none; }
  .tl-head-harness { padding-left: 0.6rem; }
  .tl-head-harness::before { content: "API · models · harness"; }
  .tl-head-harness { font-size: 0; }
  .tl-head-harness::before { font-size: 0.64rem; }
  .cell-gl { grid-column: 1; grid-row: 1 / span 3; }
  .cell-gr { display: none; }
  .cell-models { grid-column: 2; grid-row: 1; padding: 0.5rem 0 0 0.6rem; }
  .cell-api { grid-column: 2; grid-row: 2; padding: 0.5rem 0 0 0.6rem; align-items: stretch; }
  .cell-harness { grid-column: 2; grid-row: 3; padding: 0.5rem 0 0.5rem 0.6rem; }
  .cell-models:empty, .cell-api:empty { display: none; }
  .cell-harness:empty { padding: 0 0 0.5rem; }
  .card, .card.model { max-width: none; }
  .card.model::before { display: none; }
  .row-year .cell-models { grid-row: 1; padding: 1.2rem 0 0.3rem 0.6rem; align-items: flex-start; }
  .row-year .cell-api { grid-row: 2; padding-top: 0; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .row-year .cell-api .year-note { text-align: left; }
  .row-year .cell-api .year-rule, .row-year .cell-harness .year-rule { display: none; }
  .row-year .cell-harness { grid-row: 3; padding-top: 0.1rem; }
  .year-num { padding: 0; }
}

@media (max-width: 560px) {
  :root { --lanes-w: 70px; }
  .timeline { padding-right: 0.75rem; padding-left: 0.1rem; }
  .card { padding-left: 0.7rem; padding-right: 0.7rem; }
  body { font-size: 14.5px; }
  .card.era h3 { font-size: 1.6rem; }
  .era-runs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-grid, .an-you ul { grid-template-columns: minmax(0, 1fr); }
  .matrix-table thead th:first-child { width: 5.4rem; }
  .reading, .sources, .colophon { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* TPU cards: the chips under the models */
.card.model.tpu { border-style: dashed; background: var(--paper); }
.card.model.tpu::before { border-radius: 2px; }

/* six surfaces: the column heads stand on end */
.matrix-table thead th:not(:first-child) {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 4.6rem;
  text-align: left;
  vertical-align: middle;
  padding: 0.2rem 0;
  line-height: 1;
}
.matrix-table thead th:not(:first-child) .api-swatch { width: 3px; height: 12px; margin: 0 0 0.3rem; display: inline-block; }
.matrix-table thead th:first-child { width: 5.6rem; }

/* long identifiers (URLs, model ids) wrap rather than widen the page */
.card p.what, .card p.src, .card .surface, .card h3, .findings p { overflow-wrap: anywhere; }
.card .specs { flex-wrap: wrap; }
