/* Generated by build.py — edit src/main.css, DESIGN.md (tokens) or src/fonts.css */
/* EB Garamond italic 400-600 greek-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-italic-400-600-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* EB Garamond italic 400-600 greek */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-italic-400-600-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* EB Garamond italic 400-600 latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-italic-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* EB Garamond italic 400-600 latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-italic-400-600-latin.woff2) format('woff2');
  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;
}
/* EB Garamond normal 400-600 greek-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-normal-400-600-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* EB Garamond normal 400-600 greek */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-normal-400-600-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* EB Garamond normal 400-600 latin-ext */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-normal-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* EB Garamond normal 400-600 latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/eb-garamond-normal-400-600-latin.woff2) format('woff2');
  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;
}
/* IBM Plex Sans italic 400 greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-italic-400-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* IBM Plex Sans italic 400 latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans italic 400 latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-italic-400-latin.woff2) format('woff2');
  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;
}
/* IBM Plex Sans normal 400 greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* IBM Plex Sans normal 400 latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans normal 400 latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-latin.woff2) format('woff2');
  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;
}
/* IBM Plex Sans normal 500 greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* IBM Plex Sans normal 500 latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans normal 500 latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-latin.woff2) format('woff2');
  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;
}
/* IBM Plex Sans normal 600 greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* IBM Plex Sans normal 600 latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Sans normal 600 latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-normal-400-latin.woff2) format('woff2');
  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;
}
/* JetBrains Mono normal 400-600 greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-400-600-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* JetBrains Mono normal 400-600 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono normal 400-600 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-400-600-latin.woff2) format('woff2');
  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 {
  --color-primary: #eaf3f4;
  --color-secondary: #00a0a0;
  --color-tertiary: #f86800;
  --color-neutral: #03080b;
  --color-surface: #0a1419;
  --color-surface-high: #10212a;
  --color-on-surface: #eaf3f4;
  --color-muted: #9db3b8;
  --color-line: #1d333b;
  --color-teal-bright: #4fd1d5;
  --color-orange-bright: #ff9a57;
  --color-paper: #f5f2eb;
  --color-on-paper: #0b1a1f;
  --color-teal-deep: #00696b;
  --color-plate: #ffffff;
  --color-field-border: #4a666f;
  --color-paper-muted: #3d5158;
  --color-paper-line: #d5cfc0;
  --color-orange-deep: #a84400;
  --color-black: #000000;
  --color-error: #ff8a80;
  --font-headline-display: "EB Garamond";
  --font-headline-lg: "EB Garamond";
  --font-headline-md: "EB Garamond";
  --font-headline-sm: "EB Garamond";
  --font-body-lg: "IBM Plex Sans";
  --font-body-md: "IBM Plex Sans";
  --font-body-sm: "IBM Plex Sans";
  --font-label-md: "JetBrains Mono";
  --font-label-sm: "JetBrains Mono";
  --text-headline-display: 76px;
  --text-headline-lg: 48px;
  --text-headline-md: 32px;
  --text-headline-sm: 24px;
  --text-body-lg: 20px;
  --text-body-md: 17px;
  --text-body-sm: 15px;
  --text-label-md: 13px;
  --text-label-sm: 12px;
  --tracking-headline-display: -0.02em;
  --tracking-headline-lg: -0.015em;
  --tracking-headline-md: -0.01em;
  --tracking-label-md: 0.12em;
  --tracking-label-sm: 0.14em;
  --font-weight-headline-display: 400;
  --font-weight-headline-lg: 400;
  --font-weight-headline-md: 500;
  --font-weight-headline-sm: 500;
  --font-weight-body-lg: 400;
  --font-weight-body-md: 400;
  --font-weight-body-sm: 400;
  --font-weight-label-md: 500;
  --font-weight-label-sm: 500;
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 9999px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 128px;
  --spacing-gutter: 24px;
  --spacing-margin: 32px;

  --rem-headline-display: 4.75rem;
  --rem-headline-lg: 3rem;
  --rem-headline-md: 2rem;
  --rem-headline-sm: 1.5rem;
  --rem-body-lg: 1.25rem;
  --rem-body-md: 1.0625rem;
  --rem-body-sm: 0.9375rem;
  --rem-label-md: 0.8125rem;
  --rem-label-sm: 0.75rem;
}

/* ==========================================================================
   SynthesizeCare — Radiological Atlas
   All colour, type, radius and spacing values resolve to DESIGN.md tokens.
   ========================================================================== */

:root {
  --ink: var(--color-neutral);
  --text: var(--color-primary);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --surface: var(--color-surface);
  --surface-high: var(--color-surface-high);
  --teal: var(--color-secondary);
  --orange: var(--color-tertiary);
  --teal-text: var(--color-teal-bright);
  --orange-text: var(--color-orange-bright);
  --focus: var(--color-teal-bright);

  --display: var(--font-headline-display), "Times New Roman", serif;
  --sans: var(--font-body-md), "Segoe UI", system-ui, sans-serif;
  --mono: var(--font-label-md), ui-monospace, "Cascadia Mono", Consolas, monospace;

  --filament: linear-gradient(90deg, var(--orange) 0%, var(--orange-text) 35%, var(--teal-text) 70%, var(--teal) 100%);
  --wrap: 77.5rem;
  --pad: var(--spacing-margin);
  --section: var(--spacing-xxl);
  --header-h: 4.75rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-size="lg"] { font-size: 115%; }
html[data-size="xl"] { font-size: 130%; }

html[data-contrast="high"] {
  --ink: #000;
  --text: #fff;
  --muted: #dbe7e9;
  --line: #6d8a93;
  --surface: #000;
  --surface-high: #0d1b21;
  --teal-text: #7cf3f6;
  --orange-text: #ffb88a;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--rem-body-md);
  font-weight: var(--font-weight-body-md);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over the ink */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-contrast="high"] body::before { display: none; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.75rem, 1.1rem + 5.4vw, var(--rem-headline-display)); line-height: 1.02; letter-spacing: var(--tracking-headline-display); }
h2 { font-size: clamp(2.1rem, 1.3rem + 2.5vw, var(--rem-headline-lg)); line-height: 1.08; letter-spacing: var(--tracking-headline-lg); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, var(--rem-headline-md)); line-height: 1.15; letter-spacing: var(--tracking-headline-md); font-weight: var(--font-weight-headline-md); }
h4 { font-size: var(--rem-headline-sm); line-height: 1.2; font-weight: var(--font-weight-headline-sm); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--orange-text); }
p { margin: 0 0 1.15em; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

a { color: var(--teal-text); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s; }
a:hover { color: var(--text); }
html[data-links="underline"] a { text-decoration: underline !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }
main:focus { outline: none; }
::selection { background: var(--orange); color: var(--color-neutral); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--spacing-md); top: var(--spacing-md); z-index: 200;
  padding: .85rem 1.25rem; background: var(--orange); color: var(--color-neutral);
  font-family: var(--mono); font-size: var(--rem-label-md); letter-spacing: var(--tracking-label-md);
  text-transform: uppercase; text-decoration: none; border-radius: var(--radius-sm);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; color: var(--color-neutral); }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.label, .eyebrow {
  font-family: var(--mono); font-size: var(--rem-label-md); font-weight: var(--font-weight-label-md);
  letter-spacing: var(--tracking-label-md); text-transform: uppercase; line-height: 1.4;
}
.label { color: var(--muted); margin: 0; }
.eyebrow { color: var(--orange-text); margin: 0 0 var(--spacing-md); display: flex; align-items: center; gap: .9rem; }
.eyebrow::before { content: ""; width: 2.75rem; height: 2px; background: var(--filament); box-shadow: 0 0 12px rgb(248 104 0 / .55); flex: none; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, var(--rem-body-lg)); line-height: 1.6; color: var(--text); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose > * + h3 { margin-top: 2.5rem; }
.prose h3 { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--orange-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 3.25rem;
  padding: 0 1.5rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: var(--rem-label-md); font-weight: var(--font-weight-label-md);
  letter-spacing: var(--tracking-label-md); text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--color-neutral); }
.btn--primary:hover { background: var(--orange-text); color: var(--color-neutral); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-high); color: var(--text); border-color: var(--teal-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono);
  font-size: var(--rem-label-md); letter-spacing: var(--tracking-label-md); text-transform: uppercase;
  text-decoration: none; padding-block: .6rem;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(3 8 11 / .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
html[data-contrast="high"] .site-header::before { background: var(--color-black); }
.header-inner { display: flex; align-items: center; gap: var(--spacing-lg); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; flex: none; }
.brand img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: var(--teal-text); }
.brand:hover { color: var(--text); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: .25rem; list-style: none; }
.primary-nav a {
  position: relative; display: block; padding: .9rem .85rem; color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: var(--tracking-label-md); text-transform: uppercase; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .45rem; height: 2px;
  background: var(--filament); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: .5rem; flex: none; }
.lang-switch, .tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 2.75rem; min-height: 2.75rem;
  padding: 0 .75rem; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: var(--tracking-label-md); text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.lang-switch:hover, .tool-btn:hover, .tool-btn[aria-expanded="true"] { border-color: var(--teal-text); background: var(--surface-high); color: var(--text); }
.nav-toggle { display: none; }
.nav-toggle-bars { display: grid; gap: 6px; width: 20px; }
.nav-toggle-bars span { height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

.prefs-panel { border-top: 1px solid var(--line); background: var(--surface); }
.prefs-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-md) var(--spacing-lg); padding-block: var(--spacing-md); }
.prefs-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.prefs-name { font-size: var(--rem-body-sm); color: var(--muted); margin-right: .25rem; }
.prefs-link { margin-left: auto; font-size: var(--rem-body-sm); }
.chip {
  min-height: 2.75rem; padding: 0 1rem; background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-full); font-family: var(--sans); font-size: var(--rem-body-sm); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--teal-text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip-reset { border-style: dashed; color: var(--muted); }

/* collapsed navigation: set by JS when the viewport is narrow OR the header would overflow (long labels, enlarged text) */
.nav-collapsed .nav-toggle { display: inline-flex; }
.nav-collapsed .tool-btn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-collapsed .header-tools { margin-left: auto; }
.nav-collapsed .primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: var(--spacing-lg) var(--pad) var(--spacing-xl);
  background: var(--ink); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
}
.nav-collapsed .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-collapsed .primary-nav ul { flex-direction: column; gap: 0; }
.nav-collapsed .primary-nav a { padding: 1.1rem 0; font-family: var(--display); font-size: 2rem; letter-spacing: -.01em; text-transform: none; white-space: normal; color: var(--text); border-bottom: 1px solid var(--line); }
.nav-collapsed .primary-nav a::after { display: none; }
.nav-collapsed .primary-nav a[aria-current="page"] { color: var(--orange-text); }
@media (max-width: 64rem) {
  .no-js .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  .no-js .primary-nav { order: 3; width: 100%; margin: 0; }
  .no-js .primary-nav ul { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
}
.no-js #prefs-toggle { display: none; }
}
.no-js #prefs-toggle { display: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgb(3 8 11 / .9) 30%, rgb(3 8 11 / .25) 62%, transparent 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 38%);
}
html[data-contrast="high"] .hero-media { opacity: .45; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .9; }
html[data-contrast="high"] .hero-canvas { display: none; }

.hero-inner { display: grid; align-content: end; min-height: min(52rem, calc(100svh - var(--header-h))); padding-block: clamp(5rem, 12vh, 9rem) 0; }
.hero-copy { max-width: 44rem; padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero-copy h1 { margin-bottom: var(--spacing-lg); }
.hero-copy .lede { margin-bottom: 2.5rem; max-width: 40rem; color: var(--text); }
.hero-thread { display: block; width: min(100%, 30rem); height: 1.5rem; margin-bottom: var(--spacing-lg); overflow: visible; }
.hero-thread path { fill: none; stroke: url(#thread-gradient); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(248 104 0 / .6)); }
.js .hero-thread path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: draw 2.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.annot {
  position: absolute; z-index: 0; font-family: var(--mono); font-size: var(--rem-label-sm);
  letter-spacing: var(--tracking-label-sm); text-transform: uppercase; color: var(--muted); line-height: 1.7; margin: 0;
}
.annot--tr { right: var(--pad); bottom: 13.5rem; text-align: right; }
.annot b { color: var(--teal-text); font-weight: 500; }
@media (max-width: 47.99rem) { .annot--tr { display: none; } }

.motion-toggle {
  position: absolute; right: var(--pad); bottom: 9.5rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 .9rem; background: rgb(3 8 11 / .7); color: var(--muted); border: 1px solid var(--line);
  border-radius: var(--radius-full); font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.motion-toggle:hover { color: var(--text); border-color: var(--teal-text); }
.no-js .motion-toggle { display: none; }
@media (max-width: 47.99rem) { .motion-toggle { position: static; margin: 0 0 var(--spacing-lg); } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); background: rgb(3 8 11 / .55); backdrop-filter: blur(6px); }
.facts > div { padding: 1.5rem 1.5rem 1.75rem 0; }
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: var(--tracking-label-sm); text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.facts dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.1; letter-spacing: -.01em; }
.facts dd small { display: block; margin-top: .35rem; font-family: var(--sans); font-size: var(--rem-body-sm); letter-spacing: 0; color: var(--muted); line-height: 1.4; }
@media (max-width: 56rem) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div { padding: 1.25rem 1rem 1.25rem 0; }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 1rem; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 47.99rem) {
  .hero-media { position: relative; height: 15rem; z-index: 0; }
  .hero-media img { object-position: 88% 40%; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 55%); }
  .hero-canvas { height: 15rem; }
  .hero-inner { min-height: 0; padding-top: var(--spacing-lg); }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("../img/hero-1100.webp") right -8rem center / auto 170% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
html[data-contrast="high"] .page-hero::before { display: none; }
.page-hero h1 { max-width: 16ch; margin-bottom: var(--spacing-lg); font-size: clamp(2.75rem, 1.4rem + 4.4vw, 4.25rem); }
.page-hero .lede { max-width: 56ch; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgb(3 8 11 / .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: .25rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.subnav a { display: block; padding: 1rem .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: var(--tracking-label-md); text-transform: uppercase; }
.subnav a:hover, .subnav a.is-active { color: var(--text); }
.subnav a.is-active { box-shadow: inset 0 -2px 0 var(--orange); }
.subnav li:first-child a { padding-left: 0; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(var(--spacing-xl), 10vw, var(--section)); }
.section + .section { border-top: 1px solid var(--line); }
.section--glow { overflow-x: clip; }
.section--glow::before {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -8rem; pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 160 160 / .13), transparent 70%);
}
.section--glow-orange::before { left: -16rem; right: auto; background: radial-gradient(closest-side, rgb(248 104 0 / .1), transparent 70%); }
html[data-contrast="high"] .section--glow::before { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spacing-xl) clamp(var(--spacing-lg), 6vw, 6rem); align-items: start; }
.split-aside { position: sticky; top: calc(var(--header-h) + 5rem); }
.split-aside h2 { margin-bottom: var(--spacing-md); }
.section-head { max-width: 50rem; margin-bottom: clamp(var(--spacing-lg), 5vw, var(--spacing-xl)); }
.section-head h2, .section-head h3 { margin-bottom: var(--spacing-md); }
@media (max-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--spacing-lg); } .split-aside { position: static; } }

.pullquote { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 var(--spacing-lg); max-width: 28ch; }
.pullquote em { color: var(--teal-text); }

/* ---------- figure frame (viewport overlay) ---------- */
.figure-frame { position: relative; margin: 0; padding: 1.25rem; border: 1px solid var(--line); background: var(--color-black); }
.figure-frame::before, .figure-frame::after { content: ""; position: absolute; width: 1.25rem; height: 1.25rem; border: 2px solid var(--teal-text); pointer-events: none; }
.figure-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.figure-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-color: var(--orange); }
.figure-frame img { width: 100%; }
.figure-labels { display: grid; grid-template-columns: 27fr 35fr 38fr; gap: .5rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-align: center; }
.figure-labels li { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.figure-labels li:nth-child(1) { border-color: var(--orange); }
.figure-labels li:nth-child(3) { border-color: var(--teal-text); }
.figure-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .06em; color: var(--muted); line-height: 1.5; }
@media (max-width: 40rem) { .figure-labels { font-size: .625rem; letter-spacing: .02em; } .figure-frame { padding: .75rem; } }

/* ---------- pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.pipeline > li { position: relative; padding: var(--spacing-lg) 1.75rem 2.25rem; counter-increment: step; }
.pipeline > li + li { border-left: 1px solid var(--line); }
.pipeline > li::before { content: "0" counter(step); display: block; margin-bottom: 2.5rem; font-family: var(--mono); font-size: var(--rem-label-md); letter-spacing: var(--tracking-label-md); color: var(--orange-text); }
.pipeline > li:nth-child(n+3)::before { color: var(--teal-text); }
.pipeline > li::after { content: ""; position: absolute; top: 3.35rem; left: 1.75rem; right: -1px; height: 2px; background: var(--filament); background-size: 400% 100%; opacity: .9; }
.pipeline > li:nth-child(1)::after { background-position: 0% 0; }
.pipeline > li:nth-child(2)::after { background-position: 33% 0; }
.pipeline > li:nth-child(3)::after { background-position: 66% 0; }
.pipeline > li:nth-child(4)::after { background-position: 100% 0; right: 1.75rem; }
.pipeline h3 { font-size: var(--rem-headline-sm); margin-bottom: 1rem; }
.pipeline ul { list-style: none; font-size: var(--rem-body-sm); color: var(--muted); line-height: 1.5; }
.pipeline ul li { padding: .45rem 0; border-top: 1px solid var(--line); }
.pipeline ul li:first-child { border-top: 0; }
@media (max-width: 64rem) { .pipeline { grid-template-columns: repeat(2, 1fr); } .pipeline > li:nth-child(3) { border-left: 0; } .pipeline > li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 40rem) { .pipeline { grid-template-columns: 1fr; } .pipeline > li + li { border-left: 0; border-top: 1px solid var(--line); } .pipeline > li::before { margin-bottom: 1.75rem; } .pipeline > li::after { top: 2.85rem; right: 1.75rem; } }

.io { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-gutter); margin-top: var(--spacing-xl); }
@media (max-width: 56rem) { .io { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-gutter); list-style: none; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 64rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .cards, .cards--2 { grid-template-columns: 1fr; } }
.card { position: relative; padding: var(--spacing-lg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: rgb(79 209 213 / .55); }
.card .label { display: block; margin-bottom: 1.5rem; }
.card .label b { color: var(--orange-text); font-weight: 500; }
.card h3, .card h4 { font-size: var(--rem-headline-sm); margin-bottom: .75rem; }
.card p, .card li { font-size: var(--rem-body-sm); color: var(--muted); line-height: 1.6; }
.card ul { list-style: none; }
.card ul li { padding: .5rem 0; border-top: 1px solid var(--line); }
.card ul li:first-child { border-top: 0; padding-top: 0; }
.card .card-figure, .card-figure { font-family: var(--display); font-size: clamp(2.75rem, 2rem + 2vw, 4rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 1rem; color: var(--text); }
.card .card-figure sup, .card-figure sup { font-size: .4em; font-family: var(--mono); letter-spacing: .08em; color: var(--teal-text); vertical-align: top; margin-left: .2em; }

.impact { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--line); margin-top: var(--spacing-xl); }
.impact li { padding: 1.5rem 1.5rem 0 0; font-family: var(--display); font-size: 1.4rem; line-height: 1.2; }
.impact li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.impact li::before { content: ""; display: block; width: .6rem; height: .6rem; margin-bottom: 1.25rem; border-radius: var(--radius-full); background: var(--orange); box-shadow: 0 0 14px var(--orange); }
.impact li:nth-child(even)::before { background: var(--teal-text); box-shadow: 0 0 14px var(--teal); }
@media (max-width: 56rem) { .impact { grid-template-columns: repeat(2, 1fr); } .impact li { padding-bottom: 1.5rem; } .impact li:nth-child(3) { padding-left: 0; border-left: 0; } .impact li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- phases ---------- */
.phases { list-style: none; counter-reset: phase; border-top: 1px solid var(--line); }
.phases > li { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--spacing-md) var(--spacing-lg); align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--line); counter-increment: phase; }
.phases > li::before { content: "0" counter(phase); font-family: var(--mono); font-size: var(--rem-label-md); letter-spacing: var(--tracking-label-md); color: var(--orange-text); }
.phases h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.phases p { color: var(--muted); font-size: var(--rem-body-sm); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tags li { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-full); font-size: var(--rem-body-sm); color: var(--text); line-height: 1.5; }
@media (max-width: 47.99rem) { .phases > li { grid-template-columns: 3rem 1fr; } .phases > li > :last-child { grid-column: 2; } }

/* ---------- TRL ladder ---------- */
.trl { list-style: none; display: grid; gap: 3px; }
.trl li { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1rem; padding: .7rem 1rem .7rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--rem-body-sm); color: var(--muted); }
.trl .trl-n { font-family: var(--display); font-size: 1.6rem; line-height: 1; text-align: center; color: var(--muted); }
.trl li[data-range] { background: var(--surface-high); color: var(--text); border-color: transparent; box-shadow: inset 3px 0 0 var(--teal-text); }
.trl li[data-range] .trl-n { color: var(--text); }
.trl li[data-range="start"] { box-shadow: inset 3px 0 0 var(--orange); }
.trl-flag { font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--radius-full); background: var(--orange); color: var(--color-neutral); white-space: nowrap; }
.trl li[data-range="end"] .trl-flag { background: var(--teal); }
@media (max-width: 30rem) { .trl li { grid-template-columns: 2.5rem 1fr; } .trl-flag { grid-column: 2; justify-self: start; } }

/* ---------- Gantt ---------- */
.gantt { --meta-w: 23rem; margin-bottom: var(--spacing-lg); }
.gantt-axis { margin-left: calc(var(--meta-w) + var(--spacing-lg)); font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .06em; color: var(--muted); }
.gantt-years, .gantt-ticks, .gantt-track { display: grid; grid-template-columns: repeat(36, minmax(0, 1fr)); }
.gantt-years span { grid-column: var(--s) / calc(var(--e) + 1); padding: .35rem .5rem; border-left: 1px solid var(--line); text-transform: uppercase; }
.gantt-ticks { position: relative; padding-block: .35rem .6rem; border-bottom: 1px solid var(--line); }
.gantt-ticks span { grid-column: var(--m); grid-row: 1; white-space: nowrap; }
.gantt-ticks span:last-child { justify-self: end; }
.gantt-rows { list-style: none; }
.gantt-row { display: grid; grid-template-columns: var(--meta-w) 1fr; gap: var(--spacing-lg); align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.gantt-meta { display: grid; grid-template-columns: 3.25rem 1fr; gap: .15rem .5rem; }
.gantt-code { grid-row: span 2; font-family: var(--mono); font-size: var(--rem-label-md); letter-spacing: .08em; color: var(--orange-text); padding-top: .2rem; }
.gantt-row[data-tone="teal"] .gantt-code { color: var(--teal-text); }
.gantt-title { font-family: var(--display); font-size: 1.2rem; line-height: 1.25; }
.gantt-info { font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .04em; color: var(--muted); }
.gantt-track { position: relative; align-items: center; min-height: 2.25rem; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 6)); }
.gantt-bar { grid-column: var(--s) / calc(var(--e) + 1); grid-row: 1; display: flex; justify-content: space-between; align-items: center; height: 1.5rem; padding: 0 .6rem; border-radius: var(--radius-full); background: var(--orange); color: var(--color-neutral); font-family: var(--mono); font-size: .6875rem; font-weight: 600; transform-origin: left; box-shadow: 0 0 18px rgb(248 104 0 / .35); }
.gantt-row[data-tone="teal"] .gantt-bar { background: var(--teal); box-shadow: 0 0 18px rgb(0 160 160 / .4); }
.js .reveal .gantt-bar { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .reveal.is-in .gantt-bar { transform: none; }
.js .reveal .gantt-row:nth-child(2) .gantt-bar { transition-delay: .1s; }
.js .reveal .gantt-row:nth-child(3) .gantt-bar { transition-delay: .2s; }
.js .reveal .gantt-row:nth-child(4) .gantt-bar { transition-delay: .3s; }
.js .reveal .gantt-row:nth-child(5) .gantt-bar { transition-delay: .4s; }
.gantt-now { grid-column: var(--m); grid-row: 1; justify-self: center; width: 0; height: calc(100% + 2.2rem); border-left: 1px dashed var(--text); opacity: .7; z-index: 1; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gantt-legend [data-tone]::before { content: ""; display: inline-block; width: 1.5rem; height: .5rem; margin-right: .5rem; border-radius: var(--radius-full); background: var(--orange); }
.gantt-legend [data-tone="teal"]::before { background: var(--teal); }
.gantt-legend-now { color: var(--text); }
.gantt-legend-now::before { content: ""; display: inline-block; height: .9rem; margin-right: .6rem; border-left: 1px dashed var(--text); vertical-align: middle; }
.gantt-legend-axis { margin-left: auto; }
@media (max-width: 64rem) {
  .gantt-axis { margin-left: 0; }
  .gantt-row { grid-template-columns: 1fr; gap: .75rem; }
  .gantt-bar span { display: none; }
  .gantt-legend-axis { margin-left: 0; }
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: var(--rem-body-sm); }
.data-table th, .data-table td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: var(--mono); font-size: var(--rem-label-sm); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); white-space: nowrap; }
.data-table tbody th { font-family: var(--mono); font-weight: 500; color: var(--orange-text); white-space: nowrap; }
.data-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data-table thead th:nth-last-child(-n+3) { text-align: right; }
.data-table tfoot th, .data-table tfoot td { border-bottom: 0; background: var(--surface); font-weight: 600; color: var(--text); }
.data-table tbody tr:hover { background: var(--surface); }

/* ---------- plates & partners ---------- */
.plate { background: var(--color-plate); color: var(--color-on-paper); border-radius: var(--radius-sm); }
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-gutter); list-style: none; }
@media (max-width: 56rem) { .partners { grid-template-columns: 1fr; } }
.partner { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.partner .plate { display: grid; place-items: center; min-height: 11rem; padding: 2rem 2.5rem; border-radius: 0; }
.partner .plate img { max-height: 5rem; width: auto; max-width: min(100%, 22rem); }
.partner-body { padding: var(--spacing-lg); display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.partner-body h3 { font-size: var(--rem-headline-md); }
.partner-body p { color: var(--muted); font-size: var(--rem-body-sm); margin: 0; }
.partner-role { font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: var(--tracking-label-sm); text-transform: uppercase; color: var(--orange-text); margin: 0; }
.partner[data-tone="teal"] .partner-role { color: var(--teal-text); }
.partner-body .link-arrow { margin-top: auto; align-self: flex-start; }
.partner address { font-style: normal; font-size: var(--rem-body-sm); color: var(--muted); line-height: 1.6; }

/* ---------- paper section ---------- */
.section--paper { background: var(--color-paper); color: var(--color-on-paper); --text: var(--color-on-paper); --muted: var(--color-paper-muted); --line: var(--color-paper-line); --teal-text: var(--color-teal-deep); --orange-text: var(--color-orange-deep); --focus: var(--color-teal-deep); border-top: 0 !important; }
.section--paper a { color: var(--color-teal-deep); }
.section--paper a:hover { color: var(--color-on-paper); }
.section--paper + .section { border-top: 0; }

/* ---------- timeline (news) ---------- */
.timeline { list-style: none; position: relative; max-width: 56rem; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: .5rem; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--orange), var(--teal-text) 60%, transparent); }
.tl-item { position: relative; padding: 0 0 var(--spacing-xl) 3.5rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.125rem; height: 1.125rem; border-radius: var(--radius-full); background: var(--ink); border: 2px solid var(--orange); box-shadow: 0 0 16px rgb(248 104 0 / .6); }
.tl-item:nth-child(even)::before { border-color: var(--teal-text); box-shadow: 0 0 16px rgb(0 160 160 / .6); }
.tl-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .9rem; font-family: var(--mono); font-size: var(--rem-label-sm); letter-spacing: var(--tracking-label-sm); text-transform: uppercase; color: var(--muted); }
.tl-tag { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: var(--radius-full); color: var(--text); }
.tl-item h3 { margin-bottom: .75rem; }
.tl-item p { color: var(--muted); max-width: 62ch; }

.empty { padding: var(--spacing-lg); border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--muted); max-width: 56rem; }
.empty .label { display: block; margin-bottom: .75rem; color: var(--teal-text); }
.empty p { font-size: var(--rem-body-md); }

/* ---------- downloads, citation ---------- */
.downloads { list-style: none; border-top: 1px solid var(--line); }
.downloads li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: var(--spacing-md) var(--spacing-lg); align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.downloads .thumb { width: 5.5rem; height: 4rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-black); }
.downloads .thumb--light { background: var(--color-plate); }
.downloads .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.downloads h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.downloads p { font-size: var(--rem-body-sm); color: var(--muted); margin: 0; }
@media (max-width: 40rem) { .downloads li { grid-template-columns: 4.5rem 1fr; } .downloads li > :last-child { grid-column: 1 / -1; justify-self: start; } }

.cite { position: relative; margin: 0 0 var(--spacing-gutter); padding: var(--spacing-lg); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius-sm); }
.cite:nth-of-type(even) { border-left-color: var(--teal-text); }
.cite .label { display: block; margin-bottom: .9rem; }
.cite blockquote { overflow-wrap: anywhere; margin: 0 0 1.25rem; font-family: var(--display); font-size: 1.3rem; line-height: 1.45; }
.copy-btn { min-height: 2.75rem; }
.no-js .copy-btn { display: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--spacing-xl) clamp(var(--spacing-lg), 6vw, 6rem); align-items: start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-block { padding-bottom: var(--spacing-lg); margin-bottom: var(--spacing-lg); border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 0; }
.contact-block h2, .contact-block h3 { font-size: var(--rem-headline-md); margin: .5rem 0 1rem; }
.contact-block address { font-style: normal; color: var(--muted); }
.contact-list { list-style: none; margin-top: 1rem; }
.contact-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: var(--rem-body-sm); }
.contact-list .label { padding-top: .15rem; }
.contact-list li > * { min-width: 0; overflow-wrap: anywhere; }
.prose .contact-list li { grid-template-columns: 9.5rem 1fr; }
.prose .contact-list li::marker { content: none; }
@media (max-width: 30rem) { .prose .contact-list li { grid-template-columns: 1fr; gap: .1rem; } }

.form { padding: clamp(var(--spacing-gutter), 4vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.form h2 { font-size: var(--rem-headline-md); margin-bottom: .5rem; }
.form > p { color: var(--muted); font-size: var(--rem-body-sm); margin-bottom: var(--spacing-lg); }
.field { margin-bottom: 1.5rem; }
.field label { display: block; margin-bottom: .5rem; font-size: var(--rem-body-sm); font-weight: 500; }
.field .req { color: var(--orange-text); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; background: var(--ink); color: var(--text); border: 1px solid var(--color-field-border); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--rem-body-md); line-height: 1.5; transition: border-color .2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--teal-text); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field-error { display: flex; gap: .4rem; min-height: 1.5rem; margin: .4rem 0 0; font-size: var(--rem-body-sm); line-height: 1.5rem; color: var(--color-error); }
.field-error:not(:empty)::before { content: "⚠"; }
.field:has(.field-error) { margin-bottom: .6rem; }
.field-hint { margin: .4rem 0 0; font-size: var(--rem-body-sm); color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 var(--spacing-lg); padding: 1rem 1.25rem; border: 1px solid var(--teal-text); border-radius: var(--radius-sm); background: var(--surface-high); }
.form-status[data-state="error"] { border-color: var(--color-error); }
.form-status:empty { display: none; }
.form-note { margin-top: var(--spacing-lg); font-size: var(--rem-body-sm); color: var(--muted); }

/* ---------- call to action band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--spacing-lg); }
.cta h2 { max-width: 18ch; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--filament); box-shadow: 0 0 24px rgb(248 104 0 / .7); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--ink); }
.funding { padding-block: var(--spacing-xl); border-bottom: 1px solid var(--line); }
.funding-inner { display: grid; gap: var(--spacing-md); }
.funding-plate { --mark-h: clamp(3.25rem, 5.6vw, 5.25rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem clamp(1.5rem, 5vw, 4.5rem); padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.5rem); }
.funding-plate img { height: var(--mark-h); width: calc(var(--mark-h) * var(--ar)); max-width: 100%; object-fit: contain; }
@media (max-width: 47.99rem) { .funding-plate { --mark-h: 3.75rem; justify-content: flex-start; } }
.funding-statement { max-width: 74ch; font-size: var(--rem-body-sm); color: var(--muted); margin: .5rem 0 0; }
.funding-statement strong { color: var(--text); font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: var(--spacing-xl) var(--spacing-lg); padding-block: var(--spacing-xl); }
.footer-grid .label { margin-bottom: 1.25rem; font-family: var(--mono); }
.footer-grid h2.label { font-size: var(--rem-label-md); }
.footer-brand p { margin-top: 1.25rem; max-width: 38ch; font-size: var(--rem-body-sm); color: var(--muted); }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: .3rem 0; }
.footer-grid li a { display: inline-block; padding: .3rem 0; color: var(--text); text-decoration: none; }
.footer-grid li a:hover { color: var(--teal-text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem var(--spacing-lg); padding-block: var(--spacing-gutter); border-top: 1px solid var(--line); font-size: var(--rem-body-sm); color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .card-figure { font-size: clamp(5rem, 3rem + 12vw, 12rem); color: transparent; background: var(--filament); -webkit-background-clip: text; background-clip: text; }
html[data-contrast="high"] .notfound .card-figure { color: var(--text); background: none; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
.js .hero-copy > * { opacity: 0; transform: translateY(1.25rem); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .1s; }
.js .hero-copy > :nth-child(2) { animation-delay: .22s; }
.js .hero-copy > :nth-child(3) { animation-delay: .34s; }
.js .hero-copy > :nth-child(4) { animation-delay: .46s; }
.js .hero-copy > :nth-child(5) { animation-delay: .58s; }
.js .hero-copy > :nth-child(6) { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-copy > * { opacity: 1; transform: none; }
  .js .hero-thread path { stroke-dashoffset: 0; }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
html[data-motion="off"] .reveal, html[data-motion="off"] .hero-copy > * { opacity: 1; transform: none; }

@media (max-width: 40rem) { :root { --pad: var(--spacing-md); --header-h: 4.25rem; } .brand-name { font-size: 1.35rem; } .brand img { width: 2.1rem; height: 2.1rem; } }
@media (max-width: 40rem) { .header-inner { gap: var(--spacing-md); } .header-tools { gap: .375rem; } }
/* narrow screens and enlarged text: keep the mark, hide the wordmark (the link keeps its aria-label) */
@media (max-width: 24rem) { .brand-name { font-size: 1.2rem; } }
@media (max-width: 21.5rem) { .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 27rem) { html[data-size="lg"] .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 31rem) { html[data-size="xl"] .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

@media (forced-colors: active) {
  .gantt-bar, .trl-flag, .btn--primary { forced-color-adjust: none; }
  .eyebrow::before, .cta::after { background: CanvasText; }
}

@media print {
  body::before, .site-header, .hero-canvas, .motion-toggle, .subnav { display: none !important; }
  body, .section--paper { background: #fff; color: #000; --text: #000; --muted: #333; --line: #bbb; --teal-text: #00696b; --orange-text: #a84400; }
  .js .reveal, .js .hero-copy > * { opacity: 1 !important; transform: none !important; }
}
