/* Cladeo landing. Art direction: Cyanotype Data (ink, cream, paper, slate; square; no shadows). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 100% 112%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibmplexmono-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4 Display";
  src: url("fonts/sourceserif4-display.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #2C3E58;
  --slate: #4F6074;
  --cream: #F5F1E8;
  --paper: #ECE7DE;
  --text: rgba(245, 241, 232, 0.88);   /* body copy on ink */
  --muted: rgba(245, 241, 232, 0.74);  /* secondary mono on ink */
  --line: rgba(245, 241, 232, 0.88);
  --hair: rgba(245, 241, 232, 0.28);
  --display: "Archivo", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Source Serif 4 Display", Georgia, serif;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1280px;
  /* On very wide screens the header and hero sit in a centred 1760px frame. */
  --frame: max(var(--pad), calc((100vw - 1760px) / 2));
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
/* soft film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/grain.png") repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 50;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cream); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--cream); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--cream); color: var(--ink); padding: 10px 14px; font-family: var(--mono); }
.skip:focus { top: 12px; }

/* ---- type ---- */
.jl {
  display: inline-grid;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: 0;
}
.jl > span:not(.sr-only) { display: block; text-align: left; }
/* DA: justify both edges when the two lines are close in length, else flush left */
.jl-justify > span:not(.sr-only) { text-align: justify; text-align-last: justify; }
h2.jl { font-size: clamp(24px, 2.85vw, 42px); }
.kicker, .eyebrow, .seq, .fig-cap {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin: 0 0 8px;
}
p { margin: 0 0 14px; }

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em;
  text-decoration: none; color: var(--cream);
  border: 2px solid var(--cream); background: transparent;
}
.btn:hover { background: rgba(245, 241, 232, 0.1); }
.btn-primary { background: var(--cream); color: var(--ink); }
.btn-primary:hover { background: var(--paper); }

/* ---- header ---- */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 26px var(--frame) 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--cream); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-stretch: 112%; font-variation-settings: "wdth" 112;
  font-size: 22px; letter-spacing: 0.16em;
}
.mark { width: 28px; height: 28px; }
.site-head nav { flex: 1; border-bottom: 1px solid var(--hair); padding-bottom: 10px; margin-top: 8px; }
.site-head ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 30px; }
.site-head nav a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--cream); text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }

/* ---- hero ---- */
.hero {
  position: relative;
  height: clamp(700px, 100svh, 1000px);
  display: flex; align-items: center;
  overflow: clip;
}
.hero-copy { position: relative; z-index: 5; padding: 90px 0 40px var(--frame); width: calc(var(--frame) - var(--pad) + min(780px, 50vw)); }
.hero h1 { font-size: clamp(34px, 3.5vw, 54px); line-height: 1.08; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .seq { color: var(--cream); font-size: 15px; letter-spacing: 0.08em; margin: 22px 0 22px; }
.hero .lead { max-width: 52ch; font-size: 17px; }

.stage { position: absolute; container-type: inline-size; }
/* The wide stage is as large as the hero allows, but never so wide that its
   left-most nodes (at 45.6% of its width) reach the copy column. */
.stage-d {
  top: 50%; right: max(0px, calc(var(--frame) - var(--pad))); transform: translateY(-50%); aspect-ratio: 3 / 2;
  width: min(calc(1.5 * clamp(700px, 100svh, 1000px)), calc((100vw - var(--frame) - max(0px, calc(var(--frame) - var(--pad))) - 570px) / 0.544));
}
/* When the frame leaves ink on the right, fade the fern out instead of cutting it. */
@media (min-width: 1921px) {
  .stage-d .stage-photo { -webkit-mask-image: linear-gradient(to left, transparent, #000 14%); mask-image: linear-gradient(to left, transparent, #000 14%); }
}
.stage-m { display: none; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.86; }
.graph { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.edge {
  fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-linejoin: miter; stroke-linecap: square;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 0.9s ease-out both; animation-delay: calc(0.3s + var(--d, 0s));
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.node { fill: var(--slate); stroke: var(--cream); stroke-width: 2; vector-effect: non-scaling-stroke; }
.node.accent { fill: var(--cream); stroke: none; }
.tags { list-style: none; margin: 0; padding: 0; }
.tag {
  position: absolute; transform: translateY(-50%);
  font-family: var(--mono); font-size: var(--k); line-height: 1.3;
  padding: 0.45em 0.7em; white-space: pre;
  background: var(--slate); color: var(--cream);
}
.tag span { display: block; }
.tag.accent { background: var(--cream); color: var(--ink); }
.graph-caption {
  position: absolute; margin: 0;
  font-family: var(--mono); font-size: max(11px, calc(var(--k) * 0.82)); line-height: 1.5;
  letter-spacing: 0.04em; color: var(--cream);
  background: rgba(44, 62, 88, 0.72); padding: 2px 6px; margin-left: -6px;
}

/* ---- bands ---- */
.band {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 130px var(--pad) 30px;
}
.band::before {
  content: ""; position: absolute; top: 64px; left: var(--pad); right: var(--pad);
  border-top: 1px solid var(--hair);
}
.band > * { min-width: 0; }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; margin-bottom: 52px; align-items: start; }
.bh-title .kicker { margin-bottom: 22px; }
.bh-title h2 { margin: 0; }
.bh-body { padding-top: 38px; }
.intro { max-width: 52ch; }
.jl > span { white-space: nowrap; }

/* problem */
.problems { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.problems li { padding: 26px 26px 18px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); counter-increment: p; }
.problems li::before { content: "0" counter(p); display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.evidence { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0; margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.evidence span { padding: 10px 16px; background: var(--slate); color: var(--cream); }
.evidence span:first-child { background: transparent; color: var(--muted); padding-left: 0; }
.evidence span + span:not(:nth-child(2)) { border-left: 1px solid var(--ink); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.steps li { position: relative; padding: 24px 22px 10px 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--hair); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--cream); }
.steps li:not(:last-child) .step-n { background: var(--slate); color: var(--cream); outline: 2px solid var(--cream); outline-offset: -2px; }
.steps li:not(:last-child)::after { /* the sequence line between nodes */
  content: ""; position: absolute; top: 44px; left: 40px; right: -22px; border-top: 2px solid var(--line);
}
.steps li + li:not(:last-child)::after { left: 62px; }
.steps h3 { font-size: 14px; min-height: 2.6em; }
.steps p { margin: 0; font-size: 15px; }

/* lineage tree */
.lineage { margin: 0; max-width: 980px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--cream); }
.scale-head { display: grid; grid-template-columns: 1fr 190px; color: var(--muted); padding: 0 0 8px; border-bottom: 1px solid var(--hair); margin-bottom: 16px; font-size: 12px; }
.scale-head > span:nth-child(1), .scale-head > span:nth-child(2) { display: none; }
.scale-head::before { content: "ITEM / TRAITS"; }
.scale-axis { display: flex; justify-content: space-between; padding-right: 54px; }
.scale-axis i { font-style: normal; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 34px; }
.tree li { position: relative; }
.tree ul > li::before { /* vertical rail */
  content: ""; position: absolute; left: -24px; top: 0; bottom: 0; border-left: 2px solid var(--line);
}
.tree ul > li:last-child::before { bottom: auto; height: 26px; }
.tree ul > li::after { /* elbow into the node */
  content: ""; position: absolute; left: -24px; top: 25px; width: 24px; border-top: 2px solid var(--line);
}
.row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) 190px; align-items: center; column-gap: 0; min-height: 52px; }
.row .node { width: 20px; height: 20px; background: var(--slate); outline: 2px solid var(--cream); outline-offset: -2px; }
.row .node.accent { background: var(--cream); outline: none; }
.row .tag { position: static; transform: none; font-size: 13px; padding: 5px 10px; white-space: nowrap; }
.row .traits { padding: 0 14px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.rel { display: grid; grid-template-columns: 1fr 54px; align-items: center; column-gap: 0; }
.rel .bar { position: relative; height: 10px; border-left: 1px solid var(--hair); }
.rel .bar::after { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; border-left: 1px dashed var(--muted); }
.rel .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) / 2 * 100%); background: var(--cream); }
.rel b { font-weight: 400; text-align: right; }
.rel .bar-empty { border-left: 0; }
.rel .bar-empty::after { display: none; }
.rel b.dim { color: var(--muted); font-size: 11px; grid-column: 1 / -1; text-align: right; }
.tree > li + li { margin-top: 10px; }

/* rule readout */
.readout { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--cream); border: 2px solid var(--line); padding: 26px 26px 22px; }
.ro-spec { margin: 0 0 30px; }
.ro-spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.ro-spec dt { color: var(--muted); }
.ro-spec dd { margin: 0; }
.ro-axis, .ro-rows li { display: grid; grid-template-columns: 170px 1fr 250px; column-gap: 18px; align-items: center; }
.ro-axis { height: 22px; color: var(--muted); font-size: 11px; }
.ro-track { position: relative; height: 100%; }
.ro-axis .ro-track i { position: absolute; left: calc(var(--p) * 100%); transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.ro-axis .ro-track i:first-child { transform: none; }
.ro-axis .ro-track i:last-child { transform: translateX(-100%); }
.ro-axis .ro-track i.is-bar { color: var(--cream); }
.ro-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.ro-rows li { min-height: 58px; border-top: 1px solid var(--hair); }
.ro-rows .ro-track { height: 58px; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.ro-rows .ro-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid var(--cream); }
.ro-rows .ro-track::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--hair); }
.mk { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 18px; height: 18px; transform: translate(-50%, -50%); z-index: 1; }
.mk-pending { background: var(--slate); outline: 2px solid var(--cream); outline-offset: -2px; }
.mk-pass { background: var(--cream); }
.mk-fail { background: var(--ink); outline: 2px solid var(--cream); outline-offset: -2px; }
.ro-label { display: grid; gap: 6px; }
.pips { display: block; height: 8px; width: 120px; background: repeating-linear-gradient(90deg, var(--cream) 0 8px, transparent 8px 12px) 0 0 / calc(var(--n) * 12px) 100% no-repeat, repeating-linear-gradient(90deg, var(--slate) 0 8px, transparent 8px 12px); }
.ro-out { display: flex; align-items: center; gap: 12px; }
.num { font-variant-numeric: tabular-nums; }
.st { display: inline-block; padding: 4px 8px; font-size: 12px; letter-spacing: 0.04em; }
.st-pass { background: var(--cream); color: var(--ink); }
.st-pending { background: var(--slate); color: var(--cream); }
.st-fail { outline: 2px solid var(--cream); outline-offset: -2px; color: var(--cream); }

/* agents */
.agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.agents-code { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.ways { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.ways div { padding: 18px 18px 0 0; }
.ways div + div { padding-left: 18px; border-left: 1px solid var(--hair); }
.ways dt { font-family: var(--mono); font-size: 13px; color: var(--cream); letter-spacing: 0.04em; margin-bottom: 10px; }
.ways dt code { display: block; margin-top: 4px; color: var(--muted); }
.ways dd { margin: 0; font-size: 15px; }
.code-title { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin: 0 0 8px; }
.code-title span { color: var(--cream); text-transform: none; }
.code {
  margin: 0 0 26px; padding: 20px 22px; overflow-x: auto;
  background: rgba(16, 26, 40, 0.35); border-left: 3px solid var(--cream);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--cream);
}
.code code { font-size: inherit; }
.code .c { color: var(--muted); }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools li { font-family: var(--mono); font-size: 13px; padding: 5px 10px; background: var(--slate); color: var(--cream); }

/* humans */
.views { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.views li { padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.views b { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--cream); display: inline-block; min-width: 90px; letter-spacing: 0.04em; }
.matrix { margin: 0; }
.matrix-scroll { overflow-x: auto; }
.matrix table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; color: var(--cream); min-width: 520px; }
.matrix th, .matrix td { text-align: left; padding: 14px 14px; border: 1px solid var(--hair); vertical-align: middle; font-weight: 400; }
.matrix thead th { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.matrix tbody th { font-family: var(--display); font-size: 15px; width: 44%; }
.matrix td .num { margin-left: 10px; }
.matrix .none { color: var(--muted); font-size: 12px; }

/* self-host */
.selfhost { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.selfhost .code { font-size: 13px; margin: 0; }
.later { border: 2px solid var(--line); padding: 20px 22px 8px; }
.later .kicker { color: var(--cream); margin-bottom: 10px; }

/* fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hair); }
.fit > div { padding: 20px 26px 0 0; }
.fit > div + div { padding-left: 26px; border-left: 1px solid var(--hair); }
.fit h3 { display: inline-block; padding: 4px 10px; background: var(--cream); color: var(--ink); margin-bottom: 16px; }
.fit > div + div h3 { background: var(--slate); color: var(--cream); }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { padding: 0 0 14px 22px; position: relative; }
.fit li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--cream); }
.fit > div + div li::before { background: transparent; outline: 1.5px solid var(--cream); outline-offset: -1.5px; }

/* closing */
.closing { position: relative; margin-top: 120px; min-height: 640px; display: flex; align-items: flex-end; overflow: clip; }
.closing-photo { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 3 / 2; object-fit: cover; opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 85%, transparent), linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 85%, transparent), linear-gradient(transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.closing-copy { position: relative; z-index: 2; padding: 0 var(--pad) 90px; max-width: var(--max); width: 100%; margin: 0 auto; }
.statement {
  font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7.4vw, 112px); line-height: 0.98;
  color: var(--cream); margin: 0; max-width: 14ch; letter-spacing: -0.01em;
}

/* footer */
.site-foot {
  max-width: var(--max); margin: 0 auto; padding: 34px var(--pad) 46px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: baseline;
  border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.foot-mark { margin: 0; font-family: var(--display); font-weight: 600; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: 18px; letter-spacing: 0.16em; color: var(--cream); opacity: 0.88; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; justify-content: flex-end; letter-spacing: 0.06em; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
  .band-head { grid-template-columns: minmax(0, 1fr); }
  .bh-body { padding-top: 24px; }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .step-n { grid-row: span 2; margin: 0; }
  .steps h3 { min-height: 0; }
  .steps li:not(:last-child)::after, .steps li + li:not(:last-child)::after { top: 60px; bottom: -20px; left: 20px; right: auto; border-top: 0; border-left: 2px solid var(--line); }
  .agents-code, .selfhost { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .hero { height: auto; display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { width: auto; max-width: 820px; padding: 140px var(--pad) 10px; }
  .hero .stage { order: 2; }
  .hero h1 { font-size: clamp(34px, 5vw, 52px); }
  .stage-d { position: relative; top: auto; transform: none; width: 125%; margin-left: -25%; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .stage-d { display: none; }
  .stage-m { display: block; position: relative; width: min(600px, 100%); margin: 0 auto; aspect-ratio: 900 / 1100; }
  .stage-m .stage-photo { object-position: 50% 0; opacity: 0.8; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-head { position: relative; padding-top: 18px; gap: 16px; }
  .site-head nav { margin-top: 0; padding-bottom: 6px; }
  .site-head .opt { display: none; }
  .hero { height: auto; display: block; }
  .hero-copy { width: auto; padding: 44px var(--pad) 34px; }
  .hero h1 { font-size: 7.8vw; }
  .hero .seq { font-size: 12.5px; }
  .stage-d { display: none; }
  .stage-m { display: block; position: relative; width: 100%; aspect-ratio: 900 / 1100; }
  .stage-m .stage-photo { object-position: 50% 0; opacity: 0.8; }
  .stage-m .graph-caption { font-size: 10.5px; }
  h2.jl { font-size: 6vw; }
  .band { padding-top: 84px; }
  .band-head { margin-bottom: 32px; }
  .band::before { top: 40px; }
  .problems { grid-template-columns: minmax(0, 1fr); }
  .evidence span { flex: 1 1 100%; border-left: 0 !important; border-top: 1px solid var(--ink); }
  .evidence span:first-child { padding-left: 0; }
  .scale-head { grid-template-columns: 1fr 150px; }
  .scale-axis { padding-right: 46px; }
  .scale-axis i:nth-child(2) { visibility: hidden; }
  .row .rel { width: 150px; justify-self: end; }
  .row { grid-template-columns: 20px auto minmax(0, 1fr); row-gap: 6px; padding: 8px 0; }
  .row .traits { grid-column: 2 / -1; grid-row: 2; padding: 0; }
  .row .rel { grid-column: 3; grid-row: 1; padding-left: 10px; grid-template-columns: 1fr 46px; }
  .tree ul > li::after { top: 31px; }
  .tree ul > li:last-child::before { height: 32px; }
  .tree ul { padding-left: 26px; }
  .tree ul > li::before, .tree ul > li::after { left: -17px; }
  .tree ul > li::after { width: 17px; }
  .readout { padding: 18px 16px; }
  .ro-spec div { grid-template-columns: 1fr; gap: 2px; }
  .ro-axis { grid-template-columns: 1fr; }
  .ro-axis > span:first-child, .ro-axis > span:last-child { display: none; }
  .ro-axis .ro-track i:not(.is-bar):not(:first-child):not(:last-child) { display: none; }
  .ro-rows li { grid-template-columns: 1fr auto; grid-template-areas: "label out" "track track"; row-gap: 8px; padding: 12px 0; }
  .ro-label { grid-area: label; }
  .ro-out { grid-area: out; }
  .ro-rows .ro-track { grid-area: track; height: 34px; }
  .ways { grid-template-columns: 1fr; }
  .views b { display: block; margin-bottom: 2px; }
  .matrix table { min-width: 0; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .matrix tr, .matrix tbody th, .matrix td { display: block; width: auto; }
  .matrix tr { border: 1px solid var(--hair); margin-bottom: 12px; }
  .matrix th, .matrix td { border: 0; padding: 10px 14px; }
  .matrix tbody th { border-bottom: 1px solid var(--hair); }
  .matrix td { display: grid; grid-template-columns: 80px auto 1fr; align-items: center; gap: 10px; }
  .matrix td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .matrix td .num { margin-left: 0; }
  .ways div, .ways div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .code { font-size: 12px; padding: 16px; }
  .fit { grid-template-columns: 1fr; }
  .fit > div, .fit > div + div { padding: 20px 0 0; border-left: 0; }
  .closing { min-height: 560px; margin-top: 80px; }
  .closing-photo { right: auto; left: -22%; height: 64%; opacity: 0.5; }
  .statement { font-size: 13vw; }
  .site-foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edge { animation: none; }
}
