/* ==========================================================================
   Dropinbase — site.css
   Plain CSS, no build step. Tokens first, then base, then components.
   Light theme is the default; dark follows prefers-color-scheme and the
   manual toggle (html[data-theme="dark"|"light"]).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f3f4f2;
  --ink: #131a21;
  --ink-2: #414a55;
  --ink-3: #66707b;
  --line: #dadddb;
  --line-2: #e9ebe8;
  --accent: #0e6b60;
  --accent-hover: #0a5449;
  --accent-soft: #e3f1ee;
  --paper-on-ink: #ffffff;
  --focus: #0e6b60;
  --shadow-ink: rgba(19, 26, 33, 0.06);

  --serif: "Newsreader", "Charter", "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", "Arial", system-ui, sans-serif;

  --measure: 66ch;
  --container: 1160px;
  --gutter: 16px;
  --section: clamp(4rem, 2.5rem + 4vw, 7rem);
  --section-tight: clamp(2.75rem, 2rem + 2.5vw, 4.5rem);

  --radius-ui: 4px;
  --radius-slot: 6px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418;
    --bg-2: #161c22;
    --ink: #e8ebee;
    --ink-2: #b9c0c7;
    --ink-3: #8f98a2;
    --line: #2a323a;
    --line-2: #222930;
    --accent: #6ccdb9;
    --accent-hover: #8fdccb;
    --accent-soft: #15302b;
    --paper-on-ink: #0f1418;
    --focus: #6ccdb9;
    --shadow-ink: rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1418;
  --bg-2: #161c22;
  --ink: #e8ebee;
  --ink-2: #b9c0c7;
  --ink-3: #8f98a2;
  --line: #2a323a;
  --line-2: #222930;
  --accent: #6ccdb9;
  --accent-hover: #8fdccb;
  --accent-soft: #15302b;
  --paper-on-ink: #0f1418;
  --focus: #6ccdb9;
  --shadow-ink: rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.375rem, 1.6rem + 3.1vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.14; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
li:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

strong { font-weight: 600; }
em { font-style: italic; }
small, .small { font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

img, svg { display: block; max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--paper-on-ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-ui);
}
.skip-link:focus { top: 12px; color: var(--paper-on-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-tight { padding-top: var(--section-tight); padding-bottom: var(--section-tight); }
.section-figures { padding-top: var(--section-tight); padding-bottom: var(--section); }
.section-alt { background: var(--bg-2); }
.section-rule { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 3rem); }
.section-head h2 { margin-bottom: 0.4em; }
.section-head .lead { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 5rem); }
  .split-even { grid-template-columns: 1fr 1fr; }
}
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split-figure { grid-template-rows: auto 1fr; }
  .split-figure > .section-head { grid-column: 1; grid-row: 1; }
  .split-figure > .prose { grid-column: 1; grid-row: 2; }
  .split-figure > .model-figure { grid-column: 2; grid-row: 1 / span 2; }
}

.caption {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: var(--measure);
}

.prose h3 { margin-top: 2rem; }
.prose h3:first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-ui);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-on-ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 24px; height: 24px; flex: none; }
.mark-bg { fill: var(--ink); }
.mark-row { fill: var(--paper-on-ink); }
.mark-row-accent { fill: var(--accent); }

.nav-controls { display: flex; align-items: center; gap: 0.5rem; }

.nav {
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; max-width: none; }
.nav li { margin: 0; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  cursor: pointer;
}
.nav-toggle:hover, .theme-toggle:hover { border-color: var(--ink-3); background: var(--bg-2); }
.theme-toggle { width: 40px; padding: 0; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .half { fill: currentColor; }
.theme-toggle .ring { fill: none; stroke: currentColor; stroke-width: 1.5; }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px var(--shadow-ink);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.0625rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-2); font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 2rem + 3vw, 5.5rem); padding-bottom: 0; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 5rem); }
}
.hero h1 { max-width: 12ch; margin-bottom: 0.55em; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; }

.status {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.status > div { padding: 1rem 0; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.status > div:first-child { border-top: 0; }
.status b { display: block; font-weight: 600; color: var(--ink); }
@media (min-width: 720px) {
  .status { grid-template-columns: repeat(3, 1fr); }
  .status > div { padding: 1.1rem 1.5rem 1.1rem 0; border-top: 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
  .status > div:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Ledger (key figures) ---------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
}
@media (min-width: 720px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ledger-6 { grid-template-columns: repeat(6, 1fr); } .ledger-5 { grid-template-columns: repeat(5, 1fr); } .ledger-4 { grid-template-columns: repeat(4, 1fr); } }
.ledger > div {
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.ledger-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.ledger-num sup { font-size: 0.45em; font-weight: 500; vertical-align: 0.9em; margin-left: 0.1em; color: var(--ink-3); }
.ledger-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.ledger-notes {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: none;
}
.ledger-notes p { max-width: none; margin-bottom: 0.3em; }

/* ---------- Paradigms ---------- */
.paradigm-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
@media (min-width: 900px) { .paradigm-grid { grid-template-columns: repeat(3, 1fr); } }
.paradigm-col { padding: 1.5rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 900px) {
  .paradigm-col { padding: 1.75rem 2rem 1.75rem 0; }
  .paradigm-col + .paradigm-col { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.paradigm-col h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.paradigm-col .tag { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 1rem; }
.paradigm-col ul { list-style: none; padding: 0; margin: 0; }
.paradigm-col li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-2);
  font-size: 1rem;
  color: var(--ink-2);
}
.paradigm-col li:first-child { border-top: 0; }
.paradigm-col.is-both li { color: var(--ink); }
.paradigm-col.is-both { background: var(--bg); padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 900px) {
  .paradigm-col.is-both { padding-right: 2rem; }
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 1.75rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 720px) {
  .pillar { padding: 2rem 2rem 2rem 0; }
  .pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { font-size: 1rem; color: var(--ink-2); }
.pillar a { font-family: var(--sans); font-size: 0.9375rem; }
.pillar .pillar-link { display: inline-block; margin-top: 0.9rem; }

/* ---------- Logo slots ---------- */
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 2;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-slot);
  background: var(--bg);
  color: var(--ink-3);
  font-family: var(--sans);
  font-variant: small-caps;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
}
.logo-slot img, .logo-slot svg { max-height: 70%; max-width: 80%; width: auto; }
/* Optional light/dark logo variants inside a slot (see README-deploy.md). */
.logo-slot .dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-slot .dark-only { display: block; }
  :root:not([data-theme="light"]) .logo-slot .light-only { display: none; }
}
:root[data-theme="dark"] .logo-slot .dark-only { display: block; }
:root[data-theme="dark"] .logo-slot .light-only { display: none; }

.partners {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) { .partners { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }
.partner { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: start; }
.partner .logo-slot { font-size: 0.9375rem; }
.partner h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.partner p { font-size: 1rem; color: var(--ink-2); }
.partner .small { color: var(--ink-3); }
@media (max-width: 479px) { .partner { grid-template-columns: 1fr; } .partner .logo-slot { max-width: 180px; } }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 560px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.logo-grid .logo-slot { font-size: 0.9375rem; }
.logo-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 22rem; }
.logo-grid-3 { max-width: 48rem; }
@media (min-width: 560px) { .logo-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid-5 { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Evidence (cited figures) ---------- */
.evidence {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
@media (min-width: 900px) { .evidence { grid-template-columns: repeat(3, 1fr); } }
.evidence li { margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 900px) {
  .evidence li { padding: 1.75rem 2rem 1.75rem 0; }
  .evidence li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.evidence .figure {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 0.6rem;
}
.evidence p { font-size: 1rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.evidence .source { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); }

.quote {
  margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent);
  max-width: 40em;
}
.quote p { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.35; font-style: italic; color: var(--ink); margin-bottom: 0.5rem; }
.quote cite { font-family: var(--sans); font-style: normal; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Closing / contact block ---------- */
.closing { border-top: 1px solid var(--line); }
.closing-grid { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.closing h2 { margin-bottom: 0.4em; }
.closing .contact-lines { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.closing .contact-lines a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-2);
  padding: 2.5rem 0 2.25rem;
}
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } }
.site-footer .brand { font-size: 1.25rem; margin-bottom: 0.75rem; }
.site-footer p { max-width: 36em; margin-bottom: 0.5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.8125rem;
}
.footer-meta p { margin: 0; max-width: none; }

/* ---------- Illustrations (shared) ---------- */
.art { width: 100%; height: auto; }
.art-bg { fill: var(--bg-2); }
.art-paper { fill: var(--bg); }
.art-line { stroke: var(--line); fill: none; }
.art-line-strong { stroke: var(--ink-3); fill: none; }
.art-rule { stroke: var(--line); }
.art-bar { fill: var(--line); }
.art-bar-2 { fill: var(--line-2); }
.art-bar-dark { fill: var(--ink-3); }
.art-ink { fill: var(--ink); }
.art-accent { fill: var(--accent); }
.art-accent-soft { fill: var(--accent-soft); }
.art-accent-line { stroke: var(--accent); fill: none; }
.art-label {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-3);
  letter-spacing: 0.01em;
}
.art-label-strong { fill: var(--ink); font-weight: 600; }
.art-serif { font-family: var(--serif); fill: var(--ink); }

/* Hero reveal: one orchestrated moment, only when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art[data-animate="true"] .rv { opacity: 0; animation: rv-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--d, 0ms); }
  .hero-art[data-animate="true"] .rv-draw {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: rv-draw 1200ms ease-out forwards;
    animation-delay: var(--d, 0ms);
  }
  @keyframes rv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes rv-draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Platform page ---------- */
.flow {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 900px) { .flow { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.25rem; align-items: center; } }
.flow-stage {
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  min-width: 0;
}
.flow-stage svg { width: 100%; height: auto; margin-bottom: 1rem; }
.flow-stage h3 { font-size: 1.125rem; margin-bottom: 0.3rem; }
.flow-stage p { font-size: 0.9375rem; color: var(--ink-2); }
.flow-join {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-align: center;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.flow-join { flex-direction: column; }
.flow-join::before { content: ""; display: block; width: 1px; height: 22px; background: var(--ink-3); }
.flow-join span { display: block; }
@media (min-width: 900px) {
  .flow-join { min-width: 7.5rem; max-width: 9rem; }
  .flow-join::before { width: 32px; height: 1px; }
}

.spec {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.spec-row {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .spec-row { grid-template-columns: 10rem minmax(0, 1fr); padding: 1.75rem 0; } }
@media (min-width: 1000px) { .spec-row { grid-template-columns: 13rem minmax(0, 1fr); } }
.spec-row h3 { font-size: 1.375rem; margin: 0; }
.spec-row .spec-sub { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.35rem; }
.spec-body { min-width: 0; }
.spec-body p { color: var(--ink-2); }
.spec-body ul { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0.45rem 2rem; }
@media (min-width: 720px) { .spec-body ul { grid-template-columns: 1fr 1fr; } }
.spec-body li { margin: 0; padding-left: 1rem; position: relative; font-size: 1rem; color: var(--ink-2); }
.spec-body li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 1px; background: var(--ink-3); }
.spec-body li strong { color: var(--ink); font-weight: 600; }

.model-figure { margin: 0; }
@media (min-width: 900px) { .model-figure { position: sticky; top: 2rem; } }
.model-figure svg { width: 100%; height: auto; }
.model-figure figcaption { margin-top: 0.75rem; }

/* ---------- Proof page ---------- */
.case {
  display: grid;
  gap: 1.25rem 3rem;
  padding: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.case:first-of-type { border-top-color: var(--ink); }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.case h3 { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); margin-bottom: 0.25rem; }
.case .case-meta { list-style: none; padding: 0; max-width: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-family: var(--sans); font-size: 0.875rem; color: var(--ink-3); margin: 0 0 1.1rem; }
.case .case-meta li { margin: 0; }
.case .case-meta li + li::before { content: ""; display: inline-block; width: 1px; height: 0.8em; background: var(--line); margin: 0 0.6rem -0.05em; vertical-align: baseline; }
.case-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; max-width: 24rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.case-figures div { min-width: 0; }
.case-figures .num { display: block; font-family: var(--serif); font-size: 1.625rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.case-figures .lbl { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.2rem; }
.case-body p { color: var(--ink-2); }
.case-body ul { color: var(--ink-2); }
.case-body .note { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); }

.record-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .record-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.record-list li { margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; color: var(--ink-2); }

/* ---------- Security page ---------- */
.commit-list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.commit-list li { padding: 0.9rem 0; border-top: 1px solid var(--line-2); margin: 0; color: var(--ink-2); }
.commit-list li:first-child { border-top: 0; }
.commit-list li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.15rem; }

/* ---------- Company page ---------- */
.timeline { list-style: none; padding: 0; margin: 0; max-width: none; border-top: 1px solid var(--ink); }
.timeline li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
@media (min-width: 720px) { .timeline li { grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem 3rem; padding: 1.15rem 0; } }
.timeline time, .timeline .when {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.3;
  color: var(--ink);
}
.timeline .what { color: var(--ink-2); line-height: 1.5; padding-top: 0.15rem; }
.timeline .what strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact page ---------- */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.field .hint { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field textarea { min-height: 9rem; resize: vertical; }
.form-note { font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-3); }
.form-status { font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-2); min-height: 1.5em; }

.address { font-style: normal; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.address a { color: var(--ink); }
.address strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; }
.contact-blocks { display: grid; gap: 1.5rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .theme-toggle, .skip-link { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}

/* Logo marquee (home) */
.section-logos { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.logos-intro { max-width: 46em; margin: 0 0 0.35rem; font-size: 1.0625rem; color: var(--ink-2); }
.logos-intro-strong { color: var(--ink); font-weight: 500; margin-bottom: 1.5rem; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 1.25rem; width: max-content; animation: logo-scroll 48s linear infinite; }
.logo-track .logo-slot { flex: 0 0 auto; width: 11rem; font-size: 0.9375rem; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logo-track .logo-slot[data-dup] { display: none; }
}
.paradigm-col .tag .plus { display: inline-block; margin-left: 0.35em; font-size: 1.25em; line-height: 1; color: var(--accent, inherit); }

.logo-track .logo-slot.logo-img { width: 12rem; height: 5rem; padding: 0.9rem 1.25rem; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-track .logo-slot.logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) { .logo-track .logo-slot.logo-img[data-dup] { display: none; } }
