:root {
  --paper: #111110;
  --ink: #ecebe6;
  --soft: #b9b8b2;
  --muted-2: #a5a49e;
  --muted: #8f8e88;
  --faint: #6f6e69;
  --line: #2b2b29;
  --line-2: #3d3d3a;
  --line-3: #5a5955;
  --line-soft: #242422;
  --dim: #34332f;
  --panel: #171716;
  --well: #0c0c0b;
  --bubble: #262624;
  --accent: #ff5a1f;

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --label: "Martian Mono", ui-monospace, monospace;

  /* Grid */
  --margin: 80px;
  --gutter: 40px;
  --cols: 12;
  --col: calc((min(100vw, 1440px) - 2 * var(--margin) - (var(--cols) - 1) * var(--gutter)) / var(--cols));

  /* Spacing: 8px unit, Fibonacci steps (1 2 3 5 8 13 21) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 104px;
  --s7: 168px;

  /* Section rhythm */
  --section-pad: var(--s6);
  --head-gap: var(--s4);
  --copy-gap: var(--s3);
  --figure-gap: var(--s5);
  --inset: var(--s3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; letter-spacing: -0.01em; white-space: nowrap; }

/* Type scale: 10 13 16 20 24 56, line heights on a 4px baseline */
.label {
  font-family: var(--label);
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2-lg { font-size: 56px; line-height: 56px; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.body-lg { font-size: 20px; line-height: 32px; color: var(--muted-2); text-wrap: pretty; }
.muted { color: var(--muted); }

/* Page and drawing frame */
.page {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--s4) 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-left: var(--margin);
  padding-right: var(--margin);
}

/* Column numbers along the top and bottom edge: one per pair of columns */
.frame-cols {
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  height: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gutter);
  font: 9px/16px var(--label);
  color: var(--faint);
  pointer-events: none;
}
.frame-cols.top { top: 12px; }
.frame-cols.bottom { bottom: 12px; }
.frame-cols span { position: relative; text-align: center; }
.frame-cols span + span::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) / -2); border-left: 1px solid var(--line-2); }

/* Zone letters on both page edges, level with each section's label */
[data-zone] { position: relative; }
[data-zone]::before, [data-zone]::after {
  content: attr(data-zone);
  position: absolute;
  top: var(--section-pad);
  width: 16px;
  font: 9px/24px var(--label);
  text-align: center;
  color: var(--faint);
  pointer-events: none;
}
[data-zone]::before { left: 12px; }
[data-zone]::after { right: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s3);
  border-radius: 6px;
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--ink);
  font: 500 16px/24px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.btn-primary:hover { background: #fff; color: var(--paper); }
.btn-sm { padding: 0 var(--s2); font-size: 13px; border-color: var(--line-2); }
.rule { padding-top: var(--s3); border-top: 1px solid var(--line-2); }

/* Header */
.site-header { align-items: center; height: 80px; border-bottom: 1px solid var(--line); }
/* Typemark: the mark, then RAP, then SHEET. One face, one size, two weights.
   Sized in em so it keeps its proportions wherever it appears: the mark fills the type's full height. */
.typemark { display: inline-flex; align-items: center; font-family: var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.typemark .led { width: 1em; height: 1em; margin-right: 0.3em; }
.typemark .led::after { inset: 0.25em; }
.tm-rap { font-weight: 700; letter-spacing: -0.02em; }
.tm-sheet { margin-left: 0.2em; font-weight: 300; letter-spacing: 0.02em; text-transform: uppercase; color: var(--soft); }
.brand { grid-column: 1 / span 3; display: flex; align-items: center; font-size: 20px; line-height: 24px; }
.tb-mark { font-size: 12px; }
.site-nav { grid-column: 5 / span 4; display: flex; justify-content: center; gap: var(--s4); font-size: 13px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.header-cta { grid-column: 10 / span 3; display: flex; justify-content: flex-end; }

/* Hero */
.hero { padding-top: var(--s5); padding-bottom: var(--section-pad); }
.headline-sub { grid-column: 1 / -1; margin-top: var(--s2); font-size: 56px; line-height: 56px; font-weight: 600; letter-spacing: -0.04em; color: var(--soft); }
.hero-label { grid-column: 1 / -1; margin-bottom: var(--s2); letter-spacing: 0.12em; }
.ink-box { grid-column: 1 / -1; position: relative; overflow: hidden; }
.ink-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.headline-box { aspect-ratio: 1280 / 320; }
.headline { padding-top: var(--s2); font-size: min(140px, 9.72vw); line-height: 0.95; font-weight: 700; letter-spacing: -0.045em; }
.lede { grid-column: 1 / span 6; margin-top: var(--s4); font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.hero-ctas { grid-column: 10 / span 3; margin-top: var(--s4); }
.hero-ctas .btn { width: 100%; }

/* Sections share one pattern: label, heading, body, figure */
.detail, .site-footer { align-items: start; padding-top: var(--section-pad); padding-bottom: var(--section-pad); border-top: 1px solid var(--line); }
.anchor-alias { position: absolute; top: 0; }
.detail-head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); }
.detail-head .line { flex-grow: 1; height: 1px; background: var(--line); }
.detail-head .mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--line-3); border-radius: 50%; color: var(--ink); }
.copy { grid-column: 1 / span 7; display: flex; flex-direction: column; align-items: flex-start; gap: var(--copy-gap); }
.detail-head + .copy { margin-top: var(--head-gap); }
.copy + * { margin-top: var(--figure-gap); }

/* Fig. 1: a terminal agent session. Transcript runs on columns 4 to 9.
   On wide screens the figure pins while scrolling plays the session forward. */
.scrub { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.session {
  grid-column: 3 / span 8;
  align-self: start;
  display: grid;
  grid-template-columns: subgrid;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--well);
}
.scrub.pinned .session { position: sticky; top: var(--pin-top, var(--s4)); }
.term-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 var(--inset);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.12em;
}
.term-path { font: 13px/20px var(--mono); letter-spacing: 0; color: var(--muted); }
.session-body { grid-column: 2 / span 6; display: flex; flex-direction: column; padding: var(--s4) 0 var(--s3); font: 15px/24px var(--mono); color: var(--soft); }
.term-log { display: flex; flex-direction: column; gap: var(--s2); }
.t-user { padding: 0 var(--s1); color: var(--muted); }
.t-caret { color: var(--muted); }
.t-step { display: flex; flex-direction: column; gap: 0; }
.t-call, .t-say { display: flex; align-items: baseline; gap: var(--s1); color: var(--ink); }
.t-call b { font-weight: 600; }
.t-call .led { align-self: center; margin: 0 2px; }
.t-dot { flex-shrink: 0; width: 16px; text-align: center; color: var(--ink); }
.t-meta { color: var(--muted); }
.t-out, .t-say { position: relative; }
.t-out { padding-left: var(--s3); color: var(--muted); }
.t-el { margin-right: var(--s2); }
.t-spin { color: var(--soft); }
.t-glyph { display: inline-block; width: 16px; text-align: center; color: var(--ink); }
.term-input { margin-top: var(--s4); }
.t-box { padding: var(--s1) var(--s2); border: 1px solid var(--line-3); border-radius: 4px; color: var(--ink); }
.t-hint { padding: 4px var(--s2) 0; font-size: 13px; line-height: 20px; color: var(--faint); }
.t-cursor { display: inline-block; width: 9px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-replay { align-self: flex-end; min-height: 32px; margin-top: var(--s1); padding: 0; border: 0; background: none; font: 13px/20px var(--mono); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.t-replay:hover { color: var(--ink); }

/* Animated state, only when JS runs: beats hide until reached, spinners show only during their beat */
.anim [data-beat] { visibility: hidden; }
.anim [data-beat].on { visibility: visible; }
.anim .t-note { opacity: 0; transition: opacity 0.4s; }
.anim .on .t-note, .anim .t-out.on .t-note { opacity: 1; }
.t-spin { display: none; }
.anim .t-spin.on { display: block; }
@media (prefers-reduced-motion: reduce) { .t-cursor { animation: none; } .anim .t-note { transition: none; } }

/* Margin notes: quiet drawing-set labels in columns 11 and 12, a short grey leader in the gutter */
.t-note {
  position: absolute;
  top: 0;
  left: calc(100% + 2 * var(--gutter) + var(--col));
  width: calc(2 * var(--col) + var(--gutter));
  font: 10px/12px var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-note { top: 6px; }
.t-note::before { content: ""; position: absolute; top: 6px; right: calc(100% + var(--s1)); width: calc(var(--gutter) - var(--s2)); border-top: 1px solid var(--line-3); }

/* The mark: a dark square with an inset accent square. On means real, off means not yet. */
.led { display: inline-block; position: relative; flex-shrink: 0; width: 12px; height: 12px; background: var(--dim); }
.led::after { content: ""; position: absolute; inset: 3px; background: var(--accent); }
.led.off::after { background: var(--paper); }
.rap-tag { padding: 0 6px; line-height: 20px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }

/* B: the equation. 131 report dots on columns 1-5, the sign on 6-7, the one known issue on 8-12. */
.equation { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.equation + .funnel { margin-top: var(--figure-gap); }
.eq-side { grid-column: 1 / span 5; }
.eq-dots { display: grid; grid-template-columns: repeat(22, 8px); gap: 6px; }
.eq-dots i { width: 8px; height: 8px; background: var(--soft); }
.eq-cap { margin-top: var(--s2); letter-spacing: 0.12em; }
.eq-sign { grid-column: 6 / span 2; text-align: center; font-size: 56px; line-height: 56px; font-weight: 300; color: var(--muted); }
.eq-one { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: var(--s1); padding-left: var(--inset); border-left: 1px solid var(--line-2); }
.eq-issue { display: flex; align-items: center; gap: var(--s2); font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.led.eq-led { width: 24px; height: 24px; }
.led.eq-led::after { inset: 6px; }
.eq-detail { color: var(--soft); }
.eq-detail code { color: var(--ink); }
/* Played once on view: dots drop in, then the mark lights */
.eq-anim .eq-dots i { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; transition-delay: calc(var(--i) * 6ms); }
.eq-anim.eq-play .eq-dots i { opacity: 1; transform: none; }
.eq-anim .eq-one { opacity: 0.35; transition: opacity 0.4s 0.9s; }
.eq-anim.eq-play .eq-one { opacity: 1; }
.eq-anim.eq-play .eq-led::after { background: var(--accent); transition: background 0s 1.1s; }

/* A: many sources into one set of themes. Sources on columns 1-3, wires 4-7, themes 8-12. */
.funnel { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border: 1px solid var(--line-3); }
.funnel > * { grid-column: 1 / -1; }
.funnel-cap { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--inset); letter-spacing: 0.12em; }
.funnel-cap { border-bottom: 1px solid var(--line-2); }
.funnel-body { display: grid; grid-template-columns: subgrid; padding: var(--s5) var(--inset) var(--s4); }
.sources { grid-column: 1 / span 3; display: grid; grid-template-rows: repeat(4, 1fr); padding: 0; list-style: none; }
.sources li { display: flex; align-items: center; }
.src { display: flex; flex-direction: column; width: 100%; padding: var(--s2) var(--inset); border: 1px solid var(--ink); }
.src-name { display: flex; align-items: center; gap: var(--s1); font-weight: 500; }
.src-repo { font: 13px/20px var(--mono); color: var(--muted); }
.src-n { font: 500 24px/32px var(--mono); letter-spacing: -0.02em; }
.src.soon { border: 1px dashed var(--line-3); color: var(--muted); }
.src.agent { border: 1px dashed var(--ink); }
.src.agent .src-n, .src.soon .src-n { font: 400 10px/16px var(--label); letter-spacing: 0.14em; text-transform: uppercase; }
.src.agent .src-n { color: var(--soft); }
.wires { grid-column: 4 / span 4; position: relative; margin: 0 calc(-1 * var(--gutter)); min-height: calc(7 * 56px); }
.wires svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--soft); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.55; }
.wires path.soon { stroke: var(--line-3); stroke-dasharray: 3 4; opacity: 1; }
.wires path.agent { stroke: var(--ink); stroke-dasharray: 3 4; opacity: 0.9; }
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 6px;
  line-height: 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.themes { grid-column: 8 / span 5; position: relative; display: flex; flex-direction: column; }
.themes-head { position: absolute; top: calc(-1 * var(--s4)); left: var(--inset); letter-spacing: 0.12em; }
.themes ol { flex-grow: 1; display: grid; grid-template-rows: repeat(7, 1fr); padding: 0; list-style: none; }
.themes li { display: grid; grid-template-columns: minmax(0, 1fr) var(--s5) var(--s4); align-items: center; gap: var(--s2); padding-left: var(--inset); border-left: 1px solid var(--line-2); }
.t-bar { height: 8px; background: var(--line); }
.t-name code { white-space: normal; color: var(--ink); }
.t-kind { margin-left: var(--s1); padding: 0 6px; border: 1px dashed var(--muted); font-size: 13px; line-height: 20px; color: var(--soft); }
.t-bar span { display: block; height: 100%; background: var(--ink); }
.t-pct { font: 13px/20px var(--mono); text-align: right; color: var(--soft); }
.funnel-note { padding: var(--s2) var(--inset); border-top: 1px solid var(--line-2); font-size: 13px; line-height: 20px; color: var(--muted); }

/* B: the RAP Sheet. Trending across the top, bugs and requests side by side. */
.rap-sheet { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border: 1px solid var(--line-3); }
.rap-sheet > * { grid-column: 1 / -1; }
/* Product tabs: folder tabs on the sheet's top edge. The open one joins the sheet,
   the others sit lower and behind, each with a 45 degree chamfer on its top right corner. */
.sheet-tabs { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; align-items: flex-end; margin-bottom: -1px; }
.tablist { display: flex; align-items: flex-end; }
.tab-wrap { position: relative; width: calc(3 * var(--col) + 2 * var(--gutter)); }
.tab-wrap + .tab-wrap { margin-left: calc(-1 * var(--s2)); }
.tab-wrap:nth-child(1) { z-index: 3; }
.tab-wrap:nth-child(2) { z-index: 2; }
.tab-wrap:nth-child(3) { z-index: 1; }
.tab-wrap[data-tip] { margin-bottom: 1px; }
/* The add tab: a blank folder with a dashed edge, sitting behind the others */
.tab-wrap.tab-add-wrap { width: auto; margin-bottom: 1px; margin-left: calc(-1 * var(--s2)); z-index: 0; }
.tab.tab-add { padding: 0 var(--s4) 0 var(--s3); border-style: dashed; border-color: var(--line-3); background: transparent; color: var(--muted); cursor: pointer; }
.tab.tab-add::before { border-top: 1px dashed var(--line-3); }
.tab.tab-add:hover { color: var(--ink); }
.request-link { grid-column: 1 / -1; margin-top: var(--s2); }
.text-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: 16px/24px var(--sans); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }
.tab {
  --chamfer: 12px;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s1);
  width: 100%;
  height: 40px;
  padding: 0 var(--s2);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  background: var(--panel);
  color: var(--faint);
  font: 500 13px/20px var(--sans);
  text-align: left;
  cursor: not-allowed;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(100% - var(--chamfer));
  width: calc(var(--chamfer) * 1.4142);
  border-top: 1px solid var(--line-2);
  transform: rotate(45deg);
  transform-origin: 0 0;
}
.tab[aria-selected="true"] { height: 48px; border-color: var(--line-3); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 600; cursor: default; }
.tab[aria-selected="true"]::before { border-top-color: var(--line-3); }
.tab-no { font: 400 10px/16px var(--label); letter-spacing: 0.1em; color: var(--faint); }
.tab .logo { flex-shrink: 0; }
.tab-name { flex-grow: 1; }
.tab .led { margin-right: var(--s1); }
.tab-wrap[data-tip]:hover::after, .tab-wrap[data-tip]:focus-within::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + var(--s1));
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 4px var(--s1);
  background: var(--ink);
  color: var(--paper);
  font: 400 10px/16px var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sheet-mast { display: grid; grid-template-columns: subgrid; align-items: end; padding: var(--s4) var(--inset); border-bottom: 1px solid var(--line-2); }
.mast-id { grid-column: 1 / span 7; }
.mast-logo { flex-shrink: 0; }
.mast-kicker { letter-spacing: 0.12em; color: var(--soft); }
.mast-name { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s1); font-size: 56px; line-height: 56px; font-weight: 700; letter-spacing: -0.04em; }
.mast-src { margin-top: var(--s2); font-size: 13px; line-height: 20px; color: var(--muted); }
.mast-verify { white-space: nowrap; }
.mast-src a { color: var(--soft); text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.mast-stats { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin: 0; }
.mast-stats div { padding-left: var(--s2); border-left: 1px solid var(--line-2); }
.mast-arrow { margin-right: 4px; color: var(--muted); }
.mast-stats dd { margin: 0; font: 500 24px/32px var(--mono); letter-spacing: -0.02em; }
.trending { display: grid; grid-template-columns: subgrid; row-gap: var(--s2); padding: var(--s3) var(--inset) var(--s4); border-bottom: 1px solid var(--line-2); background: var(--panel); }
.trending > * { grid-column: 1 / -1; }
.tr-head { display: flex; align-items: center; gap: var(--s2); letter-spacing: 0.12em; }
.tr-live { display: inline-flex; align-items: center; gap: var(--s1); color: var(--soft); }
.trending ol { display: grid; grid-template-columns: subgrid; padding: 0; list-style: none; }
.trending li { grid-column: span 4; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s2); align-content: start; }
.tr-delta { grid-row: span 3; font: 500 24px/32px var(--mono); letter-spacing: -0.02em; }
.tr-title { padding-top: 4px; font-weight: 500; }
.tr-range { font: 13px/20px var(--mono); color: var(--muted); }
.rs-col { grid-column: span 6; padding: var(--s3) var(--inset) var(--s2); }
.rs-col + .rs-col { margin-left: calc(-1 * var(--gutter) / 2); padding-left: calc(var(--inset) + var(--gutter) / 2); border-left: 1px solid var(--line-2); }
.rs-head { padding-bottom: var(--s2); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.rs-col ol { padding: 0; list-style: none; }
.rs-col li { display: grid; grid-template-columns: var(--s4) minmax(0, 1fr) auto; column-gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.rs-rank { font: 13px/24px var(--mono); color: var(--muted); }
.rs-title { font-weight: 500; }
.rs-count { font: 13px/24px var(--mono); color: var(--muted); white-space: nowrap; }
.rs-count strong { color: var(--ink); font-weight: 500; }
.rs-fix { grid-column: 2 / -1; margin-top: 4px; color: var(--soft); }
.rs-fix .label { margin-right: var(--s1); }
.rs-link { grid-column: 2 / -1; justify-self: start; display: inline-flex; align-items: center; gap: var(--s1); min-height: 32px; font: 13px/20px var(--mono); color: var(--muted); text-decoration: none; }
.trending .rs-link { grid-column: 2; }
.rs-link:hover { color: var(--ink); }

/* C: install */
.install-copy { grid-column: 1 / span 5; }
.install-copy .btn { margin-top: var(--s2); }
.code-card { grid-column: 6 / span 7; margin-top: var(--head-gap); border: 1px solid var(--line-2); border-radius: 8px; background: var(--well); overflow: hidden; }
.code-card-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 0 0 var(--inset); border-bottom: 1px solid var(--line); letter-spacing: 0.12em; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); }
.code { margin: 0; padding: var(--inset); font: 15px/32px var(--mono); color: #d9d8d2; white-space: pre; overflow-x: auto; }
.code .k { color: var(--muted); }
.code u { text-decoration: none; border-bottom: 1px solid var(--ink); color: var(--ink); }

/* Product teams: a slim strip before the footer */
.teams-strip { align-items: center; padding-top: var(--s5); padding-bottom: var(--s5); border-top: 1px solid var(--line); }
.teams-copy { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: var(--s1); }
.teams-title { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.teams-cta { grid-column: 10 / span 3; display: flex; justify-content: flex-end; }

/* D: footer */
.site-footer { padding-bottom: var(--s5); }
.closer-box { aspect-ratio: 1280 / 220; margin-top: var(--head-gap); }
.closer { font-size: min(190px, 13.2vw); line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.closer-copy { grid-column: 1 / span 6; margin-top: var(--s4); font-size: 24px; line-height: 32px; }
.closer-ctas { grid-column: 7 / span 6; margin-top: var(--s4); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s2); }
.closer-ctas .btn:not(.btn-primary) { border-color: var(--line-2); }
.footer-meta { grid-column: 1 / span 6; margin-top: var(--s6); align-self: end; display: flex; flex-direction: column; gap: var(--s1); letter-spacing: 0.12em; }
.title-block {
  grid-column: 7 / span 6;
  margin-top: var(--s6);
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-3);
  font: 10px/16px var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.title-block > span { padding: var(--s1) var(--s2); }
.title-block > span + span { border-left: 1px solid var(--line-2); }
.title-block > span:nth-child(odd) { color: var(--muted); }
.title-block .rev { color: var(--accent); }

/* Waitlist dialog */
.waitlist {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
}
.waitlist::backdrop { background: rgba(0, 0, 0, 0.7); }
.waitlist-inner { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.waitlist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); margin: calc(-1 * var(--s2)) calc(-1 * var(--s2)) 0 0; }
.waitlist-head h2 { padding-top: var(--s2); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.waitlist p { color: var(--muted-2); }
.waitlist label { font-size: 13px; color: var(--soft); }
.wl-field { display: block; margin-top: var(--s2); }
.wl-field[hidden] { display: none; }
.waitlist input[type="email"], .waitlist input[type="text"], .waitlist select {
  width: 100%;
  min-height: 48px;
  margin-top: var(--s1);
  padding: 0 var(--s2);
  border: 1px solid var(--line-3);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 16px var(--sans);
}
.waitlist input[type="email"]:focus-visible, .waitlist input[type="text"]:focus-visible, .waitlist select:focus-visible { outline-offset: 1px; }
.waitlist .hp { position: absolute; left: -9999px; }
.waitlist .btn-primary { width: 100%; }
.waitlist .status { min-height: 24px; font-size: 13px; color: var(--soft); }
.waitlist.done form { display: none; }
.waitlist .thanks { display: none; }
.waitlist.done .thanks { display: block; }
.waitlist textarea { width: 100%; margin-top: var(--s1); padding: var(--s1) var(--s2); border: 1px solid var(--line-3); border-radius: 6px; background: var(--paper); color: var(--ink); font: 16px/24px var(--sans); resize: vertical; }
.wl-note .btn { margin-top: var(--s1); }

/* 768 to 1199: 8 columns, 40px margins */
@media (max-width: 1199px) {
  :root { --margin: 40px; --cols: 8; }
  .frame-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .frame-cols span:nth-child(n + 5) { display: none; }
  .brand { grid-column: 1 / span 2; }
  .site-nav { grid-column: 3 / span 4; gap: var(--s3); }
  .header-cta { grid-column: 7 / span 2; }
  .header-cta .btn { padding: 0 var(--s1); white-space: nowrap; }
  .headline { font-size: min(140px, 10.4vw); }
  .teams-copy { grid-column: 1 / span 5; }
  .teams-cta { grid-column: 6 / span 3; }
  .t-say { flex-wrap: wrap; }
  .t-say .t-note { flex-basis: 100%; padding-left: var(--s3); }
  .lede { grid-column: 1 / span 5; }
  .hero-ctas { grid-column: 6 / span 3; }
  .copy { grid-column: 1 / -1; }
  .session { grid-column: 1 / -1; }
  .t-note { position: static; display: block; width: auto; line-height: 16px; margin: 4px 0 var(--s1); color: var(--soft); }
  .t-note::before { display: none; }
  .h2-lg, .headline-sub { font-size: 48px; line-height: 48px; }
  .eq-side { grid-column: 1 / span 4; }
  .eq-sign { grid-column: 5 / span 1; }
  .eq-one { grid-column: 6 / span 3; }
  .eq-dots { grid-template-columns: repeat(16, 8px); }
  .mast-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s2); }
  .sources { grid-column: 1 / span 2; }
  .wires { grid-column: 3 / span 2; }
  .themes { grid-column: 5 / span 4; }
  .themes li { font-size: 13px; line-height: 20px; }
  .install-copy, .code-card { grid-column: 1 / -1; }
  .code-card { margin-top: var(--figure-gap); }
  .trending li { grid-column: span 8; }
  .mast-id, .mast-stats { grid-column: 1 / -1; }
  .tab-add-wrap { display: none; }
  .mast-stats { margin-top: var(--s3); }
  .rs-col { grid-column: span 4; }
  .closer { font-size: min(190px, 14.8vw); }
  .closer-copy { grid-column: 1 / span 5; }
  .closer-ctas { grid-column: 6 / span 3; flex-direction: column; }
  .footer-meta { grid-column: 1 / span 4; }
  .title-block { grid-column: 5 / span 4; }

}

/* Under 768: one column */
@media (max-width: 767px) {
  :root {
    --margin: 20px;
    --gutter: 20px;
    --cols: 1;
    --section-pad: var(--s5);
    --head-gap: var(--s3);
    --figure-gap: var(--s4);
    --inset: var(--s2);
  }
  .page { padding-top: 0; }
  .frame-cols, [data-zone]::before, [data-zone]::after { display: none; }
  .site-header { height: 64px; grid-template-columns: auto 1fr; }
  .brand { grid-column: 1; }
  .site-nav { display: none; }
  .header-cta { grid-column: 2; }
  .grid:not(.site-header) > * { grid-column: 1 / -1; }
  .hero { padding-top: var(--s4); }
  .headline-box { aspect-ratio: auto; height: 150px; }
  .headline-sub { font-size: 32px; line-height: 36px; }
  .headline { font-size: 64px; }
  .lede { margin-top: var(--s3); font-size: 20px; line-height: 28px; }
  .hero-ctas { margin-top: var(--s3); padding-top: 0; border-top: 0; }
  .h2-lg { font-size: 40px; line-height: 40px; }
  .body-lg { font-size: 18px; line-height: 28px; }
  .session { display: block; margin-left: calc(-1 * var(--margin)); margin-right: calc(-1 * var(--margin)); border-radius: 0; border-left: 0; border-right: 0; }
  .session-body { padding: var(--s3) var(--margin); }
  .funnel-cap { flex-direction: column; gap: 0; }
  .sheet-mast { display: block; padding: var(--s3) var(--inset); }
  .mast-name { font-size: 40px; line-height: 40px; }
  .equation { display: block; }
  .eq-dots { grid-template-columns: repeat(auto-fill, 8px); }
  .eq-sign { margin: var(--s3) 0; text-align: left; }
  .eq-one { padding-left: 0; border-left: 0; }
  .eq-issue { font-size: 24px; line-height: 32px; }
  .funnel, .funnel-body { display: block; }
  .funnel-body { padding: var(--s3) var(--inset); }
  .sources { display: flex; flex-direction: column; gap: var(--s1); }
  .wires { margin: 0; min-height: var(--s5); }
  .wires svg { display: none; }
  .wires::before { content: ""; position: absolute; left: 50%; top: var(--s1); bottom: var(--s1); border-left: 1px solid var(--soft); }
  .themes-head { position: static; margin-bottom: var(--s1); }
  .themes li { grid-template-columns: minmax(0, 1fr) 56px 40px; padding: var(--s1) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rap-sheet, .trending, .trending ol { display: block; }
  .tab-wrap { width: auto; flex: 1 1 0; min-width: 0; }
  .tab-wrap[data-tip] { flex: 0 0 auto; }
  .tab-wrap[data-tip] .tab-name { display: none; }
  .tab-no { display: none; }
  .tab[aria-selected="true"] { font-size: 13px; }
  .mast-logo { width: 32px; height: 32px; }
  .mast-stats { margin-top: var(--s3); }
  .trending li { display: grid; margin-top: var(--s2); }
  .rs-col + .rs-col { margin-left: 0; padding-left: var(--inset); border-left: 0; border-top: 1px solid var(--line-2); }
  .rs-col li { grid-template-columns: var(--s3) minmax(0, 1fr); column-gap: var(--s1); }
  .rs-count { grid-column: 2; }
  .code { font-size: 13px; line-height: 24px; }
  .teams-cta { margin-top: var(--s3); justify-content: flex-start; }
  .teams-cta .btn { width: 100%; }
  .teams-title { font-size: 24px; line-height: 32px; }
  .closer-box { aspect-ratio: auto; height: 120px; }
  .closer { font-size: 60px; }
  .closer-copy { margin-top: var(--s3); font-size: 20px; line-height: 28px; }
  .closer-ctas { margin-top: var(--s3); padding-top: 0; border-top: 0; flex-direction: column; }
  .closer-ctas .btn { width: 100%; }
  .footer-meta { margin-top: var(--s5); }
  .title-block { margin-top: var(--s3); font-size: 9px; }
  .title-block > span { padding: var(--s1); }
}

/* Sheet index (/sheets). Three type styles: Geist for names and text, Geist Mono 13 for sources
   and counts, Martian Mono labels for the eyebrow, column heads and groups.
   Columns at 1440: tool 1-3, sources 4-8, posts 9-10, action 11-12. */
.brand-link { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.request-link .text-btn + .text-btn { margin-left: var(--s4); }
a.text-btn { display: inline-flex; align-items: center; }

.ix-hero { padding-top: var(--s5); padding-bottom: var(--s4); }
.ix-hero > * { grid-column: 1 / -1; }
.ix-title { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; }
.ix-sub { margin-top: var(--s1); font-size: 20px; line-height: 28px; color: var(--soft); }

.ix-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; font: 13px/20px var(--sans); color: var(--muted); text-decoration: none; cursor: pointer; }
.ix-link:hover, .ix-row:hover .ix-link, .ix-link:focus-visible { color: var(--ink); }

/* Column heads stay pinned while the list scrolls */
.ix-cols { position: sticky; top: 0; z-index: 1; padding-top: var(--s2); padding-bottom: var(--s1); background: var(--paper); border-bottom: 1px solid var(--line); letter-spacing: 0.12em; }
.ix-cols span:nth-child(1) { grid-column: 1 / span 3; }
.ix-cols span:nth-child(2) { grid-column: 4 / span 5; }
.ix-cols span:nth-child(3) { grid-column: 9 / span 2; text-align: right; }

.ix-sec { padding-top: var(--s5); }
.ix-h2 { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); padding-bottom: var(--s2); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.ix-rule { flex-grow: 1; height: 1px; background: var(--line); }
.ix-count { font: 13px/20px var(--mono); color: var(--muted); }
.ix-group { grid-column: 1 / -1; padding: var(--s3) 0 var(--s1); letter-spacing: 0.12em; }
.ix-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding: 0; list-style: none; }
.ix-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 56px; border-top: 1px solid var(--line-soft); }
.ix-name { grid-column: 1 / span 3; display: flex; align-items: center; gap: var(--s1); font-weight: 500; }
.ix-src { grid-column: 4 / span 5; display: flex; flex-wrap: wrap; gap: var(--s1); }
.ix-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--s1); border: 1px solid var(--line-3); font-size: 13px; line-height: 22px; font-weight: 500; color: var(--soft); text-decoration: none; }
a.ix-chip:hover, a.ix-chip:focus-visible { border-color: var(--ink); color: var(--ink); }
.ix-x { font: 12px/22px var(--mono); color: var(--muted); }
.ix-none { border-style: dashed; color: var(--muted); font-weight: 400; }
.ix-n { grid-column: 9 / span 2; font: 13px/20px var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.ix-when { display: block; font-size: 11px; line-height: 16px; color: var(--muted); }
.ix-act { grid-column: 11 / span 2; display: flex; justify-content: flex-end; }
.ix-note { grid-column: 1 / span 8; margin-top: var(--s4); font-size: 13px; line-height: 20px; color: var(--muted); }
#next .request-link { margin-top: var(--s1); }
.ix-page main { padding-bottom: var(--s5); }

.ix-footer .footer-meta a { color: var(--muted); text-underline-offset: 3px; }
.ix-footer .footer-meta a:hover { color: var(--ink); }
.ix-footer .footer-meta, .ix-footer .title-block { margin-top: 0; }

@media (max-width: 1199px) {
  .ix-cols span:nth-child(1), .ix-name { grid-column: 1 / span 3; }
  .ix-cols span:nth-child(2), .ix-src { grid-column: 4 / span 2; }
  .ix-cols span:nth-child(3), .ix-n { grid-column: 6 / span 2; }
  .ix-act { grid-column: 8; }
  .ix-note { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .ix-hero { padding-top: var(--s4); padding-bottom: var(--s4); }
  .ix-title { font-size: 32px; line-height: 40px; }
  .ix-sub { font-size: 18px; line-height: 28px; }
  .ix-cols { display: none; }
  .ix-sec { padding-top: var(--s4); }
  .ix-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s2); row-gap: 0; padding: var(--s1) 0; }
  .ix-name { grid-column: 1; grid-row: 1; }
  .ix-n { grid-column: 2; grid-row: 1; }
  .ix-src { grid-column: 1; grid-row: 2; padding: 4px 0; }
  .ix-act { grid-column: 2; grid-row: 2; }
  .ix-act .ix-link { min-height: 44px; }
  .request-link .text-btn + .text-btn { margin-left: 0; }
  .request-link { display: flex; flex-direction: column; align-items: flex-start; }
}

/* Product sheet (/sheets/<slug>). Hero with live status, a band with the date range and its counts,
   then bugs and feature requests side by side (1-6 | 7-12) as short lists ranked by people. */
.sh-hero { align-items: start; padding-top: var(--s5); padding-bottom: var(--s4); }
.sh-hero .ix-sub a { color: var(--soft); text-underline-offset: 4px; text-decoration-color: var(--line-3); }
.sh-hero .ix-sub a:hover { color: var(--ink); }

/* The band: the date range scopes every count and list below it. */
.sh-band { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-block: var(--s2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sh-when { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-width: 0; }
.sh-seg { display: inline-flex; border: 1px solid var(--line-3); border-radius: 6px; overflow: hidden; }
.sh-seg button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--soft); font: 500 14px/20px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.sh-seg button + button { border-left: 1px solid var(--line-2); }
.sh-seg button:hover { color: var(--ink); }
.sh-seg button[aria-pressed="true"] { background: var(--bubble); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sh-range { display: flex; flex-direction: column; }
.sh-range-d { font-size: 16px; line-height: 24px; font-weight: 500; }
.sh-range-n { font-size: 13px; line-height: 20px; color: var(--muted); }
.sh-band .sh-stats { margin-top: 0; }
.sh-id { grid-column: 1 / span 7; }
.sh-status { display: flex; align-items: center; gap: var(--s1); font-size: 16px; line-height: 24px; font-weight: 500; }
.sh-blink::after { animation: sh-blink 1.6s steps(1, end) infinite; }
@keyframes sh-blink { 50% { background: var(--paper); } }
.sh-title { margin-top: var(--s3); font-size: 56px; line-height: 56px; font-weight: 700; letter-spacing: -0.04em; }
.sh-hero .ix-sub { margin-top: var(--s2); }
.sh-stats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s1) var(--s3); margin-top: var(--s4); }
.sh-stat { display: flex; flex-direction: column; gap: 4px; }
.sh-n { font: 500 24px/32px var(--mono); letter-spacing: -0.02em; }
.sh-join { font: 300 24px/32px var(--sans); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .sh-blink::after { animation: none; }
}

/* Two equal columns of known issues: top five, then "Show all". */
.sh-cols { padding-top: var(--s4); }
.sh-col { grid-column: span 6; min-width: 0; }
.sh-list { padding: 0; list-style: none; }/* Two lists of known issues side by side. */
.sh-cols { padding-top: var(--s4); }
.sh-col { grid-column: span 6; min-width: 0; }

there are no rank numbers. */
.sh-cols { row-gap: var(--s5); }
.sh-cols .ix-note { margin-top: 0; }
.ki-head, .ki-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; column-gap: 20px; }
.ki-head { margin-top: var(--s2); padding-bottom: var(--s1); }
.ki-head span:first-child { text-align: right; }
.ki-list { padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ki-list.is-collapsed > .is-extra { display: none; }
.ki-row { align-items: start; padding-block: var(--s2); border-top: 1px solid var(--line); scroll-margin-top: var(--s4); }
.ki-row[hidden] { display: none; }
.ki-ppl { font: 500 22px/26px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.ki-body { min-width: 0; overflow-wrap: anywhere; }
.ki-body summary { display: block; list-style: none; cursor: pointer; }
.ki-body summary::-webkit-details-marker { display: none; }
.ki-body summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ki-name { font-size: 17px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; }
.ki-body summary:hover .ki-name, .ki-body[open] .ki-name { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.ki-nb { white-space: nowrap; }
.ki-chev { display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: 1px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.ki-body summary:hover .ki-chev { stroke: var(--ink); }
.ki-body[open] .ki-chev { transform: rotate(180deg); }
.ki-quote { display: block; margin-top: 2px; overflow: hidden; font-size: 14px; line-height: 21px; color: var(--soft); white-space: nowrap; text-overflow: ellipsis; }
.ki-gist { color: var(--muted-2); }
.ki-body[open] .ki-quote { white-space: normal; }
.ki-fix { display: flex; align-items: baseline; gap: var(--s1); margin-top: 6px; font-size: 14px; line-height: 21px; }
.ki-fix .led { top: 1px; }
.ki-fix-t { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ki-body[open] .ki-fix-t { display: block; }
.ki-fix-k { color: var(--soft); }
.ki-none { color: var(--muted); }
.ki-src { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: -1px; border: 1px solid var(--line-2); border-radius: 4px; font: 14px/1 var(--sans); color: var(--soft); text-decoration: none; }
.ki-src::before { content: ""; position: absolute; inset: -8px; }
.ki-src:hover { border-color: var(--line-3); color: var(--ink); }
.ki-detail { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px dashed var(--line-2); }
.ki-desc { font-size: 14px; line-height: 21px; color: var(--muted-2); }
.ki-err code { display: block; margin-top: 6px; padding: 10px 14px; border: 1px solid var(--line); background: var(--well); font: 12px/18px var(--mono); color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.ki-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 20px; }
.ki-facts dd { margin: 2px 0 0; font: 12px/18px var(--mono); color: var(--soft); }
.ki-act { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s1) 20px; }
.ki-bars { display: block; flex-shrink: 0; }
.ki-bars rect { fill: var(--soft); }
.ki-bars line { stroke: var(--line-2); stroke-width: 1; }
.ki-act p { font-size: 13px; line-height: 20px; color: var(--muted); }
.ki-act strong { font-weight: 500; color: var(--ink); }
.ki-ex { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s2); font-size: 13px; line-height: 20px; color: var(--muted); }
.ki-ex a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-family: var(--mono); color: var(--soft); text-decoration: none; }
.ki-ex a:hover { color: var(--ink); }
.ki-more { margin-top: var(--s1); }

@media (max-width: 1199px) {
  .sh-id { grid-column: 1 / -1; }
  .sh-col { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .sh-hero { padding-top: var(--s4); padding-bottom: var(--s3); }
  .sh-title { font-size: 40px; line-height: 44px; }
  .sh-band { row-gap: 12px; }
  .sh-when { width: 100%; }
  .sh-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .sh-seg button { padding: 0 8px; }
  .sh-cols { row-gap: var(--s4); }
  .ki-head, .ki-row { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .ki-row { grid-template-rows: auto 1fr; }
  .ki-ppl { font-size: 18px; }
  .ki-name { font-size: 16px; line-height: 24px; }
  .ki-body { grid-column: 2; grid-row: 1 / span 2; }
  .ki-src { grid-column: 1; grid-row: 2; justify-self: end; margin-top: 8px; }
  .ki-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ki-chev { transition: none; }
}
