@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-size: 112.5%;
  --line: 1px solid var(--rule);
  --header-fill: color-mix(in srgb, var(--surface) 92%, transparent);
  --link-line: color-mix(in srgb, var(--brand) 40%, transparent);
  --control-size: calc(var(--space-6) + var(--space-2));
  --gutter: var(--space-5);
  --motion: .15s ease;
}
*,
*::before,
*::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--text-16)/var(--leading-base) var(--font-sans);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
article, figure, dl, dd, h1, h2, h3, p, pre { margin: 0; }
h1, h2, h3 { color: var(--ink-strong); line-height: var(--leading-tight); }
h2 { font-size: var(--text-36); letter-spacing: -.035em; }
h3 { font-size: var(--text-20); letter-spacing: -.015em; }
p { max-inline-size: var(--measure); }
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--link-line);
  transition: color var(--motion), text-decoration-color var(--motion);
}
a:hover { color: var(--brand-hover); text-decoration-color: currentColor; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; }
img { max-width: 100%; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; box-shadow: var(--focus-ring); }
[hidden] { display: none !important; }
:where([id]) { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
main:focus { outline: none; }
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono, code, pre { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon-defs { position: absolute; pointer-events: none; }
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-3);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  color: var(--on-brand);
  background: var(--brand);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; color: var(--on-brand); }
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: var(--line);
  background: var(--header-fill);
  backdrop-filter: saturate(180%) blur(16px);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; flex: none; width: fit-content; }
.brand img { display: block; object-fit: contain; }
.brand .brand__dark { display: none; }
.header__nav, .header__actions, .hero__actions, .install__links, .languages { display: flex; align-items: center; }
.header__nav { flex: 1; gap: var(--space-1); }
.header__nav a {
  color: var(--ink);
  font-weight: 500;
  padding: var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
}
.header__nav a:is(:hover, [aria-current]) { color: var(--brand); background: var(--surface-2); }
.header__actions { margin-left: auto; gap: var(--space-2); }
.languages { border: var(--line); border-radius: var(--radius-pill); }
.languages a {
  padding: calc(var(--space-3) / 2) var(--space-3);
  font-size: var(--text-14);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
}
.languages a:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.languages a:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.languages a:hover { color: var(--brand); background: var(--surface-2); }
.languages a[aria-current] { background: var(--brand); color: var(--on-brand); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--control-size);
  height: var(--control-size);
  padding: 0;
  border: var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: transparent;
  font-size: var(--text-16);
}
.icon-btn:hover { color: var(--brand); background: var(--surface-2); }
.theme-btn__sun, .header__menu { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-size);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font: 600 var(--text-16)/1 var(--font-sans);
  text-decoration: none;
  transition: background var(--motion), color var(--motion), border-color var(--motion);
}
.btn:hover { background: var(--surface-3); color: var(--ink); }
.btn:active, .icon-btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--text-18); }
.header__github { padding: var(--space-2) var(--space-4); background: transparent; font-size: var(--text-14); }
.header__github .icon { width: var(--text-18); height: var(--text-18); }
.eyebrow {
  color: var(--brand);
  font-size: var(--text-12);
  font-weight: 700;
  line-height: var(--leading-snug);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero {
  border-bottom: var(--line);
  background: linear-gradient(110deg, var(--surface) 27%, color-mix(in srgb, var(--brand-soft) 69%, var(--surface)));
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-areas: "intro report" "detail report";
  grid-template-rows: auto 1fr;
  gap: 0 var(--space-7);
  align-items: start;
  padding-block: var(--space-8);
}
.hero__copy { grid-area: intro; }
.hero__detail { grid-area: detail; }
.hero h1 {
  margin-block: var(--space-3) var(--space-2);
  font-size: var(--text-60);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.acronym {
  display: grid;
  max-width: 34ch;
  color: var(--ink);
  font-size: var(--text-20);
  font-weight: 550;
  line-height: var(--leading-snug);
}
.acronym > span { grid-area: 1 / 1; min-width: 0; }
.acronym[data-typing] .acronym__full,
.metric[data-counting] > :first-child { opacity: 0; }
.acronym__remaining { visibility: hidden; }
.acronym__written::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 1em;
  margin-top: .15em;
  background: var(--brand);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: var(--space-6) 0 var(--space-5);
  padding: 0;
}
.metrics li { display: grid; align-content: start; justify-items: start; gap: var(--space-1); }
.metrics li + li { border-left: 1px solid var(--rule-strong); padding-left: var(--space-4); }
.metrics li > span { font-weight: 550; color: var(--muted); font-size: var(--text-14); line-height: var(--leading-snug); }
.metric {
  display: inline-block;
  position: relative;
  overflow: clip;
  color: var(--brand);
  font: 600 var(--text-48)/1.12 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.065em;
}
.metric__reel { position: absolute; inset: 0 0 auto; }
.metric__reel > span { display: block; height: 1.12em; line-height: 1.12; }
.hero__lead, .section__lead { color: var(--muted); font-size: var(--text-18); line-height: var(--leading-base); }
.hero__lead { max-width: 42ch; }
.hero__actions, .install__links { flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-5); }
.hero__secondary, .install__links > a:not(.btn) { font-size: var(--text-14); font-weight: 650; }

.report-window {
  --matrix-low: color-mix(in srgb, var(--success) 16%, var(--surface));
  --matrix-mid: color-mix(in srgb, var(--danger) 7%, var(--accent-soft));
  --matrix-high: color-mix(in srgb, var(--danger) 19%, var(--surface));
  grid-area: report;
  position: relative;
  min-width: 0;
  container: report / inline-size;
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.report-window__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(105deg, var(--brand-hover), var(--brand));
  color: var(--on-brand);
}
.report-window__file {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--space-7);
  height: var(--space-7);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--on-brand) 14%, transparent);
  font-size: var(--text-24);
}
.report-window__bar h2 { margin: 0; color: inherit; font-size: var(--text-24); letter-spacing: -.023em; }
.report-window__bar p { margin-top: var(--space-1); font-size: var(--text-12); }
.report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  padding-inline: var(--space-5);
  border-bottom: var(--line);
  background: var(--surface-2);
}
.report-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: var(--text-14);
  font-weight: 600;
  line-height: var(--leading-snug);
  text-decoration: none;
}
.report-tabs a:is(:hover, [aria-selected="true"]) { color: var(--brand); border-color: currentColor; }
.result { padding: var(--space-5); scroll-margin-top: calc(var(--header-h) + var(--space-8)); }
.result + .result { border-top: var(--line); }
.report-window[data-enhanced] .result { border: 0; }
.result__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.result__summary h3 { font-size: var(--text-16); font-weight: 650; }
.result__number {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font: 650 var(--text-16)/var(--leading-tight) var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result__documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.match-layout { display: grid; gap: var(--space-5); }
.match-layout h3 { font-size: var(--text-16); font-weight: 700; }
.matrix, .evidence { min-width: 0; }
.matrix table {
  width: 100%;
  margin-block: var(--space-3) var(--space-2);
  border-spacing: var(--space-1);
  table-layout: fixed;
  font: 600 var(--text-12)/1 var(--font-mono);
  text-align: center;
}
.matrix thead td { width: var(--space-4); }
.matrix th { padding: var(--space-1) 0; color: var(--muted); font-weight: 650; }
.matrix td { padding: 0; }
.matrix__self {
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, var(--rule) 4px 5px);
}
[data-level="low"] { --level-fill: var(--matrix-low); --level-ink: color-mix(in srgb, var(--success) 62%, var(--ink-strong)); }
[data-level="mid"] { --level-fill: var(--matrix-mid); --level-ink: var(--ink); }
[data-level="high"] { --level-fill: var(--matrix-high); --level-ink: color-mix(in srgb, var(--danger) 77%, var(--ink-strong)); }
.matrix__link {
  display: grid;
  place-items: center;
  min-height: var(--control-size);
  border-radius: var(--radius-sm);
  background: var(--level-fill);
  color: var(--level-ink);
  white-space: nowrap;
  text-decoration: none;
}
.matrix__link:hover { color: var(--level-ink); text-decoration: underline; }
.matrix__link[aria-current] { box-shadow: inset 0 0 0 2px currentColor; }
.matrix__scale { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--text-12); }
.matrix__scale i {
  flex: 1;
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--matrix-low) 0 33%, var(--matrix-mid) 33% 60%, var(--matrix-high) 60%);
}
#matrix-hint { color: var(--muted); font-size: var(--text-12); margin-top: var(--space-2); }
.report-window:not([data-enhanced]) .comparison:not(:first-child):not(:target),
.report-window:not([data-enhanced]) .comparisons:has(.comparison:target) .comparison:first-child:not(:target) { display: none; }
.comparison__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.score {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--level-fill);
  color: var(--level-ink);
  font: 700 var(--text-14)/var(--leading-tight) var(--font-mono);
  white-space: nowrap;
}
.excerpt {
  padding: var(--space-2) var(--space-3);
  border-inline-start: 3px solid var(--level-fill);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.excerpt + .excerpt { margin-top: var(--space-2); }
.excerpt h4 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); }
.excerpt__key { color: var(--level-ink); font: 700 var(--text-12)/1 var(--font-mono); }
.excerpt code { color: var(--muted); font-size: var(--text-12); font-weight: 500; }
.excerpt p { font-size: var(--text-14); line-height: 1.45; }
.excerpt mark {
  background: var(--level-fill);
  color: var(--level-ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@container report (min-width: 29rem) {
  .match-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: var(--space-4); }
  .evidence { border-inline-start: var(--line); padding-inline-start: var(--space-4); }
}
.document { min-width: 0; border: var(--line); border-radius: var(--radius); }
.document > figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
  border-bottom: var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--ink-strong);
  font-size: var(--text-12);
  font-weight: 700;
}
.document code { color: var(--muted); font-size: var(--text-12); font-weight: 400; }
[data-highlight="off"] mark { color: inherit; background: transparent; }
.highlight-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  width: fit-content;
  min-height: var(--space-5);
  cursor: pointer;
  font-size: var(--text-12);
  font-weight: 600;
}
.highlight-control input { width: var(--space-4); height: var(--space-4); margin: 0; accent-color: var(--brand); }
.document--plot > svg { display: block; width: 100%; padding: var(--space-2); background: linear-gradient(0deg, var(--brand-soft), transparent); border-radius: 0 0 var(--radius) var(--radius); }
.document--plot + .document--plot > svg { background: linear-gradient(0deg, var(--accent-soft), transparent); }
.plot-grid { stroke: var(--rule); stroke-width: 1; }
.plot-axis { stroke: var(--muted); stroke-width: 1.3; }
.plot-wave { stroke: var(--brand); stroke-width: 2.5; }
.result__note { color: var(--muted); font-size: var(--text-14); margin-top: var(--space-3); }
.report-window__foot {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  border-top: var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: var(--muted);
  font-size: var(--text-12);
}
.criteria { border: var(--line); border-radius: var(--radius); }
.criteria details + details { border-top: var(--line); }
.criteria summary {
  display: grid;
  grid-template-columns: 3ch 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-14);
}
summary::-webkit-details-marker { display: none; }
.criteria summary:hover strong { color: var(--brand); }
.criteria summary code { color: var(--muted); font-size: var(--text-12); }
.criteria summary strong { font-weight: 600; }
.criteria details > p { padding: 0 var(--space-4) var(--space-4); color: var(--muted); font-size: var(--text-14); }
.criteria details[open] .criteria__chevron { transform: rotate(180deg); }
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--matrix-low);
  color: color-mix(in srgb, var(--success) 62%, var(--ink-strong));
  font-size: var(--text-12);
  font-weight: 650;
}
.status--review { background: var(--matrix-high); color: color-mix(in srgb, var(--danger) 77%, var(--ink-strong)); }
.criteria__chevron { color: var(--muted); }

.section { padding-block: var(--space-8); }
.workflow { position: relative; }
.legacy-anchor { position: absolute; inset: 0 auto auto; }
.workflow__steps {
  --step-gap: var(--space-7);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
}
.workflow__steps li { position: relative; border-top: var(--line); padding-top: var(--space-5); }
.workflow__steps .icon { width: var(--space-5); height: var(--space-5); color: var(--brand); }
.workflow__arrow { position: absolute; right: calc((0px - var(--step-gap) - var(--space-5)) / 2); top: calc(0px - var(--space-3)); }
.workflow__steps h3 { margin-block: var(--space-3) var(--space-2); }
.workflow__steps p { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .section--arrived > .wrap { animation: section-arrival .68s cubic-bezier(.2,.7,.3,1); }
  @keyframes section-arrival {
    from { transform: translateY(var(--space-4)); opacity: .72; }
    to { transform: translateY(0); opacity: 1; }
  }
}
.install { border-top: var(--line); background: var(--surface-2); }
.install__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.section__lead { margin-top: var(--space-4); }
.terminal {
  align-self: center;
  min-width: 0;
  background: var(--surface-2);
  border: var(--line);
  border-radius: var(--radius-lg);
}
.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--space-7) + var(--space-2));
  padding: var(--space-1) var(--space-4);
  border-bottom: var(--line);
  color: var(--ink);
  font-size: var(--text-14);
}
.terminal__bar > span { display: flex; align-items: center; gap: var(--space-2); font-weight: 650; }
.terminal__bar > span .icon { color: var(--brand); }
.terminal__body { padding: var(--space-5); background: var(--surface); }
.terminal__comment { font: 400 var(--text-12)/var(--leading-base) var(--font-mono); color: var(--muted); }
.terminal pre { margin-top: var(--space-2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: var(--leading-snug); }
.terminal code { color: var(--ink-strong); font-size: var(--text-16); font-weight: 600; }
.terminal__prompt { color: var(--brand); user-select: none; }
.terminal__note { padding: var(--space-4) var(--space-5); border-top: var(--line); color: var(--muted); font-size: var(--text-14); }
.terminal__run { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); background: var(--surface); border-top: var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.terminal__run pre { margin: 0; }
.terminal__feedback:not(:empty) { display: block; padding: var(--space-3) var(--space-5); color: var(--brand); font-size: var(--text-14); }

.footer { border-top: var(--line); padding-block: var(--space-7) var(--space-5); background: var(--surface-2); color: var(--muted); font-size: var(--text-14); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-7); }
.footer__identity p { max-width: 37ch; margin-top: var(--space-4); }
.footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer__column h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-14);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer__column a { color: var(--muted); text-decoration: none; }
.footer__column a:hover { color: var(--brand); text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; align-items: start; gap: var(--space-5); border-top: var(--line); margin-top: var(--space-6); padding-top: var(--space-5); }
.footer__base strong { font-size: var(--text-12); color: var(--ink-strong); }
.storage { position: relative; }
.storage > summary { list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.storage__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--space-3));
  width: min(35ch, calc(100vw - var(--gutter) * 2));
  padding: var(--space-5);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.storage__panel .btn { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); font-size: var(--text-14); }

:root[data-theme="dark"] { --header-fill: color-mix(in srgb, var(--surface) 85%, transparent); }
:root[data-theme="dark"] :is(.brand__light, .theme-btn__moon) { display: none; }
:root[data-theme="dark"] :is(.brand__dark, .theme-btn__sun) { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --header-fill: color-mix(in srgb, var(--surface) 85%, transparent); }
  :root:not([data-theme="light"]) :is(.brand__light, .theme-btn__moon) { display: none; }
  :root:not([data-theme="light"]) :is(.brand__dark, .theme-btn__sun) { display: block; }
}

@media (max-width: 1024px) {
  .header__inner { flex-wrap: wrap; gap: var(--space-3); }
  .header .brand img { width: var(--space-6); height: var(--space-6); }
  .header__nav { order: 2; flex-basis: 100%; }
  .header[data-menu] .header__menu { display: inline-grid; }
  .header[data-menu] .header__nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3) var(--gutter);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-block: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-3);
  }
  .header[data-menu="open"] .header__nav { display: flex; }
  .hero__inner { column-gap: var(--space-5); }
  .report-tabs { padding-inline: var(--space-3); }
  .result__documents { gap: var(--space-2); }
}
@media (max-width: 900px) {
  .hero__inner, .install__inner { grid-template-columns: minmax(0,1fr); gap: var(--space-6); }
  .hero__inner { grid-template-areas: "intro" "report" "detail"; grid-template-rows: auto; padding-block: var(--space-7); }
  .hero__copy { max-width: 36rem; }
  .hero__lead { max-width: 55ch; }
  .hero { background: linear-gradient(160deg, var(--surface) 26%, var(--brand-soft)); }
  .workflow__steps { --step-gap: var(--space-6); }
}
@media (max-width: 768px) {
  :root { font-size: 106.25%; }
  .hero__inner { padding-block: var(--space-5); }
  .hero h1 { font-size: var(--text-60); }
  .metrics { margin-block: var(--space-5) 0; }
  .metric { font-size: calc(var(--text-24) + var(--text-16)); }
  .report-window__file { width: var(--control-size); height: var(--control-size); }
}
@media (max-width: 640px) {
  .header__actions { gap: var(--space-1); }
  .header__github { gap: var(--space-1); padding-inline: var(--space-2); }
  .workflow__steps { grid-template-columns: minmax(0, 1fr); }
  .workflow__steps li { display: grid; grid-template-columns: var(--space-5) minmax(0, 1fr); gap: var(--space-2) var(--space-4); border: 0; padding: 0; }
  .workflow__steps h3 { margin: 0; }
  .workflow__steps p { grid-column: 2; }
  .workflow__steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    inset: var(--space-6) auto calc(0px - var(--step-gap) / 2) var(--space-3);
    border-left: 1px dashed var(--rule-strong);
  }
  .workflow__arrow { top: auto; right: auto; left: 0; bottom: calc((0px - var(--step-gap) - var(--space-5)) / 2); transform: rotate(90deg); }
  .hero h1 { font-size: clamp(var(--text-48), 14vw, var(--text-60)); }
  .hero__actions, .install__links { gap: var(--space-4); }
  .metrics li + li { padding-left: var(--space-3); }
  .metrics li > span { font-size: var(--text-12); }
  .report-window__bar, .result { padding: var(--space-4); }
  .report-tabs { padding-inline: var(--space-2); }
  .report-tabs a { font-size: var(--text-12); gap: var(--space-1); }
  .report-window__foot { padding-inline: var(--space-4); }
  .result__documents { grid-template-columns: minmax(0, 1fr); }
  .document--plot > svg { max-height: 9rem; }
  .criteria summary { gap: var(--space-2); padding: var(--space-3); }
  .criteria__chevron { width: var(--space-3); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media (max-width: 480px) {
  .header__nav { flex-wrap: wrap; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { gap: var(--space-3); }
  .report-tabs a { flex-direction: column; }
  .criteria summary { grid-template-columns: 3ch minmax(0,1fr) auto; }
  .criteria .status { grid-column: 2; }
  .criteria__chevron { grid-column: 3; grid-row: 1 / 3; }
  .terminal__body, .terminal__note, .terminal__run { padding-inline: var(--space-4); }
}
@media (max-width: 379px) {
  .header__github { width: var(--control-size); padding: 0; }
  .header__github span { display: none; }
}
