:root {
  --paper: #F6F7F5;
  --ink: #17202B;
  --graphite: #5A6472;
  --rule: #D8DCE1;
  --cobalt: #2546C8;
  --verified: #1E7A4F;
  --surface: #FFFFFF;
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--cobalt); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--sans);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .tick { stroke: var(--verified); stroke-width: 1.8; }
.site-head nav { display: flex; gap: 28px; }
.site-head nav a { color: var(--graphite); text-decoration: none; font-size: 15px; }
.site-head nav a:hover { color: var(--ink); }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 64px; }
.hero-top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px);
  align-items: end; margin-bottom: clamp(24px, 4vh, 40px);
}
.hero h1 {
  font-family: var(--sans); font-weight: 700; font-stretch: 86%;
  font-size: clamp(36px, 4vw, 58px); line-height: 1.02; letter-spacing: -0.022em;
  margin: 0; max-width: 19ch; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 32em; margin: 0 0 20px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 13px 20px; border-radius: 6px; display: inline-block; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #26303D; }
.btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: rgba(23, 32, 43, 0.05); }
.fineprint { font-size: 15px; color: var(--graphite); max-width: 34em; margin: 0; }

/* Specimen: scan + record */
.specimen { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.scan { position: relative; background: #e9e4d6; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(23, 32, 43, 0.45); }
.scan img { width: 100%; height: auto; }
.box {
  position: absolute; border: 2px solid var(--cobalt); border-radius: 2px;
  background: rgba(37, 70, 200, 0.10);
}
.box-total { border-color: var(--verified); background: rgba(30, 122, 79, 0.12); }

.record {
  font-family: var(--sans); background: var(--surface); border-radius: 6px;
  padding: 20px 20px 16px; box-shadow: 0 0 0 1px var(--rule);
  font-size: 14.5px; line-height: 1.4;
}
.record-head { font-weight: 650; font-size: 15px; margin: 0 0 12px; }
.record dl { margin: 0 0 16px; display: grid; gap: 10px; }
.record dl div { display: grid; gap: 1px; }
.record dt { color: var(--graphite); font-size: 13px; }
.record dd { margin: 0; font-weight: 550; }
.num, .check td { font-variant-numeric: tabular-nums lining-nums; }
.record-sub { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.record-sub span { color: var(--graphite); font-weight: 400; }
.check { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.check th { text-align: left; font-weight: 400; color: var(--graphite); padding: 4px 0; font-size: 13.5px; }
.check td { text-align: right; padding: 4px 0; font-weight: 550; }
.check .sum th, .check .sum td { border-top: 1.5px solid var(--ink); padding-top: 6px; color: var(--ink); font-weight: 650; }
.verdict { display: flex; gap: 8px; align-items: flex-start; color: var(--verified); font-weight: 600; margin: 0 0 12px; font-size: 14px; }
.verdict svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.source { margin: 0; color: var(--graphite); font-size: 12.5px; line-height: 1.45; }

/* The one orchestrated moment */
.js [data-step] { opacity: 0; }
.js .box[data-step] { transform: scale(1.06); }
.js .playing [data-step] { transition: opacity 380ms ease, transform 380ms ease; }
.js [data-step].on { opacity: 1; transform: none; }

/* Bands */
.band { width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 72px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.band-head h2 { font-family: var(--sans); font-weight: 700; font-stretch: 92%; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 10px; }
.band-head p { color: var(--graphite); margin: 0; max-width: 24em; }

.work { width: 100%; border-collapse: collapse; font-size: 16px; grid-column: 2; }
.work th { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--graphite); text-align: left; padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--ink); }
.work td { vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.work td:first-child { width: 26%; font-family: var(--sans); }
.work td:first-child strong { display: block; font-weight: 650; font-size: 16px; }
.work td:first-child span { display: block; color: var(--graphite); font-size: 14px; margin-top: 2px; }
.work td:last-child { width: 30%; font-family: var(--sans); font-weight: 550; font-size: 15px; }

.quote { grid-column: 2; margin: 36px 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--verified); max-width: 40em; }
.quote p { font-size: 21px; line-height: 1.45; margin: 0 0 10px; font-style: italic; }
.quote footer { font-family: var(--sans); color: var(--graphite); font-size: 14px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--sans); font-weight: 700; font-size: 15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 42px; right: -20px; height: 1.5px; background: var(--rule); }
.steps h3 { font-family: var(--sans); font-size: 19px; font-weight: 650; margin: 0 0 8px; }
.steps p { margin: 0; font-size: 16px; }

.research { display: grid; gap: 18px; }
.research h3 { font-family: var(--sans); font-size: 22px; font-weight: 650; line-height: 1.25; margin: 0 0 10px; max-width: 30em; }
.research p { margin: 0; max-width: 40em; }
.status { font-family: var(--sans); font-size: 15px; color: var(--graphite); }

.about p { margin: 0 0 14px; max-width: 40em; }

.site-foot { width: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-family: var(--sans); font-size: 14px; color: var(--graphite); }
.site-foot p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .specimen { grid-template-columns: 1fr; }
  .record { max-width: 560px; }
}
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .band { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .work, .quote { grid-column: 1; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .site-head nav { gap: 16px; }
  .site-head nav a:nth-child(2) { display: none; }
  .work thead { display: none; }
  .work, .work tbody, .work tr, .work td { display: block; width: 100% !important; }
  .work tr { border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .work td { border: 0; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-step] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
