@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations"), url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #EEF1EC;
  --paper-2: #E2E8E0;
  --ink: #0A1330;
  --ink-2: #4A5763;
  --rule: #C3CCC2;
  --magenta: #A3125F;
  --magenta-deep: #85104E;
  --chart-blue: #1D5AA6;
  --contour: #9C7651;
  --night: #11233A;
  --night-2: #1A2F49;
  --night-text: #E6EDF3;
  --night-muted: #A9B8C6;
  --magenta-night: #F06AAE;
  --ok: #1F7A4D;
  --error: #B3261E;

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: var(--s-10);
  --gutter: 32px;
  --r-ctl: 3px;
  --r-panel: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-stretch: 100%;
  font-variation-settings: normal;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-stretch: 70%;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7.2vw, 100px); line-height: 0.92; font-stretch: 66%; font-weight: 780; }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 0.98; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 640; }
.lead { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
p { max-width: 62ch; }

a { color: var(--chart-blue); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--chart-blue); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-ctl);
}
.skip:focus { top: var(--s-4); }

/* Buttons */
.btn {
  display: inline-flex; white-space: nowrap; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s-5);
  background: var(--magenta); color: #fff;
  font: inherit; font-weight: 620; font-size: 18px; font-stretch: 90%;
  text-decoration: none; border: 0; border-radius: var(--r-ctl); cursor: pointer;
  transition: background-color 120ms ease;
}
.btn:hover { background: var(--magenta-deep); }
.btn:active { background: var(--magenta-deep); transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-small { min-height: 44px; padding: 0 var(--s-4); font-size: 16px; }
.text-link { color: var(--ink); font-weight: 560; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--magenta); }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); position: relative; }
.header-inner { display: flex; align-items: center; gap: var(--s-6); min-height: 76px; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; gap: var(--s-5); }
.nav-links a { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav-links a:hover { color: var(--magenta); text-decoration: underline; }

/* Mobile menu */
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--s-3); border: 1px solid var(--ink-2); border-radius: var(--r-ctl); font-weight: 600; font-size: 15px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.mnav ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--s-2) var(--gutter) var(--s-4); }
.mnav li a { display: block; padding: var(--s-3) 0; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 560; border-bottom: 1px solid var(--rule); }
.mnav li:last-child a { border-bottom: 0; }
.mnav .mnav-cta { display: none; color: var(--magenta); }

/* Hero */
.hero { padding: var(--s-9) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; }
.hero-copy h1 { max-width: 9.5em; }
.hero-copy .lead { margin-top: var(--s-5); }
.status { margin-top: var(--s-5); font-size: 16px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.16); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }

.chart-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; }
.chart { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-3); font-size: 15px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: var(--s-2); }
.key::before { content: ""; width: 28px; height: 0; border-top: 3px solid var(--magenta); }
.key-drift::before { border-top: 2px dashed #6B7680; }
.key-note { margin-left: auto; }

/* Chart illustration */
.c-contours path { stroke: var(--contour); stroke-width: 0.8; opacity: 0.55; }
.c-contours .c-index { stroke-width: 1.4; opacity: 0.75; }
.c-river { stroke: var(--chart-blue); stroke-width: 3; opacity: 0.6; stroke-linecap: round; }
.c-jam { fill: rgba(29, 90, 166, 0.06); stroke: var(--chart-blue); stroke-width: 1.5; }
.c-jam-ticks { stroke: var(--chart-blue); stroke-width: 1.5; }
.c-drift { stroke: #6B7680; stroke-width: 2; stroke-dasharray: 6 6; }
.c-track { stroke: var(--magenta); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.c-fix { fill: rgba(163, 18, 95, 0.08); stroke: var(--magenta); stroke-width: 2; }
.c-label { font-family: var(--font); font-size: 13px; font-weight: 620; font-stretch: 85%; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.c-jam-label { fill: var(--chart-blue); }
.c-drift-label { fill: #4A5763; }
.c-lost circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.c-launch path { fill: var(--ink); }
.c-end circle { fill: none; stroke: var(--magenta); stroke-width: 2.5; }
.c-grat path { stroke: var(--ink); stroke-width: 1; }

@media (prefers-reduced-motion: no-preference) {
  .js .c-track { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s linear 0.3s forwards; }
  .js .c-fix, .js .c-lost, .js .c-drift, .js .c-drift-label, .js .c-end { opacity: 0; animation: appear 0.35s ease-out forwards; }
  .js .c-lost { animation-delay: 1.3s; }
  .js .c-drift, .js .c-drift-label { animation-duration: 0.9s; animation-delay: 1.5s; }
  .js .c-fix { animation-delay: calc(1.46s + var(--n) * 0.2s); }
  .js .c-end { animation-delay: 2.9s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Shared section layouts */
section { scroll-margin-top: var(--s-4); }
.band { background: var(--paper-2); }
.problem, .how, .defeat, .uses, .briefing { padding: var(--section) 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: start; }
.split-body > p { font-size: 20px; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: end; margin-bottom: var(--s-8); }

.defs { margin-top: var(--s-7); border-top: 1px solid var(--rule); }
.defs > div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 700; font-stretch: 80%; font-size: 22px; line-height: 1.3; }
.defs dd { color: var(--ink-2); }

/* Steps: a real sequence, drawn as a track with fixes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); counter-reset: step; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 46px; right: calc(-1 * var(--s-6)); border-top: 3px solid var(--magenta); }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--magenta); border-radius: 50%;
  color: var(--magenta); font-weight: 720; font-size: 20px; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--ink-2); }

/* Match figure */
.match { margin-top: var(--s-9); }
.match img { width: 100%; height: auto; border-radius: var(--r-panel); }
.match figcaption { margin-top: var(--s-3); font-size: 15px; color: var(--ink-2); max-width: 62ch; }

/* Specs */
.specs { padding: var(--section) 0; }
.specs-list { margin-top: 0; }
.specs-list a { color: var(--chart-blue); }

/* FAQ */
.faq { padding: var(--section) 0; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: var(--s-5) 0; font-size: 21px; font-weight: 640; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--magenta); border-bottom: 2.5px solid var(--magenta); transform: rotate(45deg) translateY(-3px); transition: transform 150ms ease; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list summary:hover { color: var(--magenta); }
.faq-list details p { padding: 0 0 var(--s-5); color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* Night */
.night { background: var(--night); color: var(--night-text); padding: var(--section) 0; }
.night .lead { color: var(--night-muted); margin-top: var(--s-5); }
.night a { color: #8DB8F0; }
.night :focus-visible { outline-color: #8DB8F0; }
.night-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.thermal-frame { position: relative; border-radius: var(--r-panel); overflow: hidden; background: #000; }
.thermal-frame img { width: 100%; height: auto; }
.thermal-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.thermal-overlay .vf { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 3; }
.thermal-overlay .feat rect { fill: none; stroke: var(--magenta-night); stroke-width: 3; }
.thermal figcaption { margin-top: var(--s-3); font-size: 15px; color: var(--night-muted); }
.conditions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-9); }
.conditions li { border-top: 1px solid rgba(230, 237, 243, 0.28); padding-top: var(--s-5); }
.conditions h3 { margin-bottom: var(--s-2); }
.conditions p { color: var(--night-muted); }
.conditions .next { border-top-style: dashed; }
.tag { display: block; width: fit-content; margin: var(--s-2) 0 var(--s-1); padding: 1px 8px; border: 1px solid var(--night-muted); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--night-muted); line-height: 1.5; }

/* Hard to defeat */
.defeat h2 { margin-bottom: var(--s-7); }
.rows { border-top: 2px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: baseline; padding: var(--s-6) 0; border-bottom: 1px solid var(--rule); }
.rows dt { font-size: clamp(28px, 3.2vw, 40px); font-weight: 740; font-stretch: 70%; line-height: 1.05; }
.rows dd { font-size: 20px; color: var(--ink-2); }

/* Uses */
.uses h2 { margin-bottom: var(--s-7); }
.use-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.use-list li { padding-top: var(--s-5); border-top: 3px solid var(--magenta); }
.use-list h3 { margin-bottom: var(--s-2); }
.use-list p { color: var(--ink-2); }

/* Briefing form */
.briefing .lead { margin-top: var(--s-5); }
.next-title { margin-top: var(--s-7); margin-bottom: var(--s-4); }
.next-steps { counter-reset: nx; display: grid; gap: var(--s-3); }
.next-steps li { counter-increment: nx; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); align-items: baseline; color: var(--ink-2); }
.next-steps li::before { content: counter(nx); width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--magenta); border-radius: 50%; color: var(--magenta); font-weight: 700; font-size: 14px; transform: translateY(2px); }
.fine { margin-top: var(--s-6); font-size: 15px; color: var(--ink-2); }
.form { display: grid; gap: var(--s-5); background: #fff; border: 1px solid var(--rule); border-radius: var(--r-panel); padding: var(--s-6); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.optional { font-weight: 400; color: var(--ink-2); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--ink-2); border-radius: var(--r-ctl);
}
textarea { resize: vertical; min-height: 112px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--chart-blue); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.error { color: var(--error); font-size: 15px; font-weight: 520; }
.help { color: var(--ink-2); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { font-size: 16px; font-weight: 560; min-height: 1.6em; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: var(--s-7) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); color: var(--ink-2); font-size: 16px; }
.footer-inner .logo img { height: 26px; }
.copy { margin-left: auto; display: flex; gap: var(--s-5); }
.copy a { color: var(--ink-2); }

/* Thanks / 404 */
.simple { min-height: 70vh; display: grid; align-content: center; padding: var(--s-9) 0; }
.simple h1 { font-size: clamp(44px, 6vw, 80px); max-width: 12em; }
.simple .lead { margin-top: var(--s-5); }
.simple .btn { margin-top: var(--s-6); }

/* Responsive */
@media (max-width: 1080px) {
  .conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .steps li:nth-child(2n)::after { display: none; }
}
@media (max-width: 960px) {
  :root { --section: 80px; }
  .hero { padding-top: var(--s-8); }
  .hero-grid, .split, .section-head, .night-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .section-head { margin-bottom: var(--s-7); }
  .rows > div { grid-template-columns: 1fr; gap: var(--s-2); }
}
@media (max-width: 900px) {
  .site-header nav { display: none; }
  .header-inner { gap: var(--s-3); }
  .header-inner .btn-small { margin-left: auto; }
  .mnav { display: block; }
}
@media (max-width: 640px) {
  :root { --section: 64px; --gutter: 20px; }
  body { font-size: 17px; }
  .lead { font-size: 19px; }
  .hero { padding-top: var(--s-7); }
  .steps, .conditions, .use-list { grid-template-columns: 1fr; }
  .steps { gap: var(--s-6); }
  .steps li { padding-top: 8px; padding-left: 68px; min-height: 46px; }
  .steps li:not(:last-child)::after { display: block; top: 46px; bottom: calc(-1 * var(--s-6)); left: 22px; right: auto; border-top: 0; border-left: 3px solid var(--magenta); }
  .defs > div { grid-template-columns: 1fr; gap: var(--s-1); }
  .form { padding: var(--s-5); }
  .form .btn { justify-self: stretch; }
  .key-note { margin-left: 0; }
  .c-label { font-size: 22px; stroke-width: 6px; }
  .copy { margin-left: 0; width: 100%; }
  .header-inner { min-height: 64px; }
  .logo img { height: 26px; }
  .faq-list summary { font-size: 19px; }
  .match { margin-top: var(--s-7); }
  .btn-small { padding: 0 var(--s-3); font-size: 15px; }
}
@media (max-width: 480px) {
  .header-inner .btn-small { display: none; }
  .mnav { margin-left: auto; }
  .mnav .mnav-cta { display: block; }
}
/* Simple pages */
.prose > * { max-width: 68ch; }
.prose h2 { font-size: 28px; line-height: 1.15; font-stretch: 80%; margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: var(--s-3); }
.page { padding: var(--s-9) 0 var(--section); }
.page h1 { font-size: clamp(44px, 6vw, 80px); }
.page .lead { margin-top: var(--s-4); }
