/* Novi Systems — novi.systems
   One page, no build step, no script. Tokens first, then the page top to bottom.
   The house is ink on paper with one accent; each system brings its own colour
   (--p, --p-text), which shows when its row is hovered or focused. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  color-scheme: light dark;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #F6F4EF;
  --bg-2: #EDEAE2;
  --ink: #121316;
  --ink-2: #43464D;
  --muted: #686B72;
  --line: #DCD8CE;
  --grid: rgba(18, 19, 22, 0.09);
  --accent: #F2472C;
  --accent-text: #C2361D;
  --on-ink: #F6F4EF;

  /* the systems' own colours, taken from their sites */
  --novi: #E08A00;   --novi-text: #8A5A00;
  --rhea: #B8922F;   --rhea-text: #7A5C10;
  --fado: #3F74A3;   --fado-text: #2E5C86;

  /* chart series, checked against --bg in each theme */
  --s1: #2F5F9E;
  --s2: #F2472C;
  --chart-grid: rgba(18, 19, 22, 0.10);

  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --rail: 2.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F12;
    --bg-2: #15171B;
    --ink: #F3F1EC;
    --ink-2: #BDBBB4;
    --muted: #8B8D94;
    --line: #2A2D34;
    --grid: rgba(243, 241, 236, 0.09);
    --accent: #FF5A3C;
    --accent-text: #FF6E54;
    --on-ink: #0E0F12;

    --novi: #F59E0B;   --novi-text: #FBBF24;
    --rhea: #D4AE52;   --rhea-text: #E2C379;
    --fado: #6FA3D4;   --fado-text: #8DB8E2;

    --s1: #4F86D1;
    --s2: #F2472C;
    --chart-grid: rgba(243, 241, 236, 0.11);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-stretch: 104%;
  word-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--ink); color: var(--on-ink); z-index: 10; }
.skip:focus { left: 0; }

/* Display type: Archivo at its widest. */
.display, h1, h2, .sys-name {
  font-stretch: 125%;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1;
  text-wrap: balance;
}
/* Labels: mono, small, upper case. */
.label, .eyebrow, .sys-kind, .tags, .status, .go, nav a, .fig figcaption, .principles .n, .fig-n, .figures th, .xs, .grid b, summary, .foot-h {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { font-stretch: 125%; font-weight: 300; font-size: 1.02rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-name b { font-weight: 680; }
.mk-ink { stroke: var(--ink); }
.mk-fill { fill: var(--ink); }
.mk-acc { fill: var(--accent); }
nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
nav a { text-decoration: none; color: var(--ink-2); padding-block: .4rem; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(15rem, 26vw, 21rem); gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7.5rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--muted); margin-bottom: 1.75rem; }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(2.55rem, 6.5vw, 5.9rem); line-height: .97; letter-spacing: -0.022em; }
.lead { max-width: 36rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.25rem; border: 1px solid var(--ink); border-radius: 999px; font-weight: 560; font-size: 1rem; line-height: 1; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn .arr { width: 1rem; height: 1rem; transition: transform .2s; }
.btn-solid { background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn:hover .arr-down { transform: translateY(2px); }
.btn:hover .arr-out { transform: translate(2px, -2px); }
.btn:hover .arr-right { transform: translateX(3px); }

/* Fig. 1: the mark, drawn as the process it stands for. */
.fig { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background-image: radial-gradient(circle, var(--grid) 1.1px, transparent 1.3px); background-size: 1.375rem 1.375rem; background-position: .6875rem .6875rem; display: grid; place-items: center; margin-bottom: 2.25rem; }
.fig svg { width: 70%; overflow: visible; }
.fig figcaption { position: absolute; left: 0; right: 0; top: calc(100% + .75rem); color: var(--muted); letter-spacing: .06em; }
.fig-path { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fig-start { fill: var(--accent); }
.fig-ring { fill: none; stroke: var(--ink); stroke-width: 3.5; }
.fig-dot { fill: var(--ink); }
.fig-start, .fig-ring, .fig-dot { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .fig-start { animation: pop .45s .15s cubic-bezier(.3, 1.5, .5, 1) both; }
  .fig-path { animation: draw 1.15s .45s cubic-bezier(.65, 0, .2, 1) both; }
  .fig-ring { animation: pop .4s 1.5s cubic-bezier(.3, 1.5, .5, 1) both; }
  .fig-dot { animation: pop .3s 1.75s cubic-bezier(.3, 1.5, .5, 1) both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------ sections */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem 3rem; align-items: end; padding-bottom: 2.25rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); }
.sec-note { color: var(--ink-2); }

/* ------------------------------------------------------------ the systems */
.systems { padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.sys {
  --p: var(--accent); --p-text: var(--accent-text);
  --node-y: 3.3rem;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1.3fr) 12.75rem; column-gap: clamp(1.25rem, 2.6vw, 2.25rem);
  padding-block: 2.5rem 2.75rem;
  border-top: 1px solid var(--line);
}
.sys:last-child { border-bottom: 1px solid var(--line); }
.sys-novi { --p: var(--novi); --p-text: var(--novi-text); }
.sys-rhea { --p: var(--rhea); --p-text: var(--rhea-text); }
.sys-fado { --p: var(--fado); --p-text: var(--fado-text); }
/* hover ground */
.sys::after { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; background: var(--p); opacity: 0; transition: opacity .25s; }
.sys.is-link:hover::after, .sys.is-link:focus-within::after { opacity: .07; }
/* the rail and its nodes: filled where the system is out, a ring where it is still to come */
.sys::before { content: ""; position: absolute; left: calc(var(--rail) / 2 - 1px); top: -1px; bottom: 0; width: 2px; background: var(--line); }
.sys:first-child::before { top: var(--node-y); }
.sys:last-child::before { bottom: auto; height: calc(var(--node-y) - .4rem); }
.node { position: absolute; left: calc(var(--rail) / 2); top: var(--node-y); width: .875rem; height: .875rem; margin: -.4375rem 0 0 -.4375rem; border-radius: 50%; background: var(--ink); transition: background .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.sys:first-child .node { background: var(--accent); }
.is-soon .node { background: none; border: 2.5px solid var(--ink); }
.sys.is-link:hover .node, .sys.is-link:focus-within .node { background: var(--p); transform: scale(1.35); }

.sys-main { grid-column: 2; }
.sys-kind { color: var(--muted); display: flex; gap: .75rem; }
.sys-kind .num { color: var(--ink); }
.sys-title { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.chip { flex: none; width: 3.25rem; height: 3.25rem; border-radius: .8rem; overflow: hidden; display: grid; place-items: center; }
.chip svg, .chip img { width: 100%; height: 100%; }
.chip::after { content: ""; grid-area: 1 / 1; width: 100%; height: 100%; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .28); pointer-events: none; }
.chip > * { grid-area: 1 / 1; }
.chip-novi { background: #171714; }
.chip-novi svg { width: 54%; height: 54%; }
.chip-fado { background: #F7F5F0; }
.chip-fado img { width: 84%; height: 84%; object-fit: contain; }
.chip-text { background: var(--ink); color: var(--on-ink); font-stretch: 125%; font-weight: 680; font-size: 1.35rem; line-height: 1; }
.chip-soon { background: none; color: var(--ink); border: 1.5px dashed var(--muted); font-size: 1.1rem; }
.chip-text::after { content: none; }
.sys-name { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
.sys-name a { text-decoration: none; }
.sys-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole row is the link */
.sys-line { margin-top: .9rem; font-size: 1.1875rem; font-weight: 520; line-height: 1.3; }

.sys-body { grid-column: 3; padding-top: 2.15rem; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; font-size: .6875rem; }
.tags li { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }

.sys-meta { grid-column: 4; padding-top: 2.15rem; display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; text-align: right; }
.status { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--p); }
.is-soon .status::before { background: none; border: 1.5px solid var(--muted); }
.go { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-size: .8125rem; letter-spacing: .04em; text-transform: none; color: var(--p-text); text-decoration: none; }
.go .arr { width: .95rem; height: .95rem; transition: transform .2s; }
.sys.is-link:hover .go .arr, .go:hover .arr { transform: translate(2px, -2px); }
a.go { position: relative; z-index: 2; border-bottom: 1px solid transparent; }
a.go:hover { border-color: currentColor; }
.go-quiet { color: var(--muted); }

/* ------------------------------------------------------------ how we build */
.approach { padding-block: clamp(4rem, 9vw, 7rem); background: var(--bg-2); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.principles li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.principles .n { color: var(--accent-text); }
.principles h3 { margin-top: 1rem; font-stretch: 112%; font-size: 1.3125rem; font-weight: 640; line-height: 1.2; letter-spacing: -0.005em; text-wrap: balance; }
.principles p { margin-top: .8rem; color: var(--ink-2); font-size: 1rem; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.more p { color: var(--ink-2); }

/* ------------------------------------------------------------ numbers page */
.sub-hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.sub-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.lead a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.lead a:hover { color: var(--accent-text); }
.band { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.band::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.band .sec-head { padding-bottom: 2.5rem; }
.band h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.band h3, .figbox h3 { font-stretch: 112%; font-weight: 640; font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.005em; }

/* A figure: the number, then what it counts. Numbers wear ink, never the accent. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); }
.stat { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.stat-v { font-stretch: 125%; font-weight: 620; font-size: clamp(2.5rem, 4.6vw, 3.9rem); letter-spacing: -0.025em; line-height: 1; white-space: nowrap; font-variant-numeric: proportional-nums; }
.stat-l { margin-top: .8rem; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }

/* Charts are HTML and CSS: a mark's size is its value over the scale's top, --v / --max.
   Marks follow the chart rules the page was built to: thin, a 4px rounded end at the
   data end, square at the baseline, a 2px gap between stacked parts, a recessive grid. */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.figbox { min-width: 0; padding: 1.4rem 1.5rem 1.1rem; border: 1px solid var(--line); }
.figbox-wide { grid-column: 1 / -1; }
.figbox-2 { grid-column: span 2; }
.figbox figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 2rem; }
.fig-n { display: block; margin-bottom: .55rem; color: var(--accent-text); }
.figbox figcaption p { margin-top: .35rem; color: var(--ink-2); font-size: .9375rem; max-width: 34rem; }
.legend { display: flex; gap: 1.25rem; font-size: .9375rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: .7rem; height: .7rem; border-radius: 2px; }
.s1 { background: var(--s1); }
.s2 { background: var(--s2); }

.cols { margin-top: 3.4rem; padding-left: 2.4rem; }
.plot { position: relative; height: 13.5rem; isolation: isolate; }
.grid { position: absolute; inset: 0; z-index: -1; }
.grid span { position: absolute; left: 0; right: 0; bottom: calc(var(--v) / var(--max) * 100%); border-top: 1px solid var(--chart-grid); }
.grid span:first-child { border-top-color: var(--muted); }
.grid b { position: absolute; right: 100%; top: 0; margin-right: .55rem; transform: translateY(-50%); font-size: .6875rem; font-weight: 400; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: 100%; height: 100%; }
.bars li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; min-width: 0; height: 100%; }
.bars li:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.bars i { flex: none; width: min(70%, 1.6rem); height: calc(var(--v) / var(--max) * 100%); min-height: 1px; }
.bars li > i:first-of-type { border-radius: 4px 4px 0 0; }
.bars li > b { margin-bottom: 3px; font-size: .75rem; font-weight: 620; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the readout: one line above the plot, filled by whichever column the pointer is on */
.read { display: none; position: absolute; left: 0; bottom: calc(100% + 1.5rem); font-size: .8125rem; line-height: 1.2; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.read b { color: var(--ink); font-weight: 620; margin-right: .5rem; }
.bars li:hover .read { display: block; }
.xs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: .55rem; font-size: .6875rem; letter-spacing: .02em; color: var(--muted); }
.xs li { display: flex; justify-content: center; white-space: nowrap; height: 1rem; }

details { margin-top: 1rem; overflow-x: auto; }
summary { display: inline-block; cursor: pointer; color: var(--muted); padding-block: .2rem; border-bottom: 1px solid transparent; }
summary::before { content: "+ "; }
details[open] summary::before { content: "− "; }
summary:hover { color: var(--ink); border-color: currentColor; }
details .figures { margin-top: .9rem; font-size: .9375rem; }
details .figures th, details .figures td { padding-block: .5rem; }

.hbars { margin-top: 1.75rem; }
.hbars li { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 5rem 3.25rem; align-items: center; column-gap: 1.25rem; padding-block: .6rem; }
.hbars .hl { color: var(--ink-2); }
.hbars .ht { height: .875rem; border-left: 1px solid var(--muted); }
.hbars i { display: block; height: 100%; width: calc(var(--v) / var(--max) * 100%); min-width: 2px; background: var(--s1); border-radius: 0 4px 4px 0; }
.hbars b { text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; }
.hbars small { text-align: right; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* a ledger: what was counted on the left, the count on the right */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); margin: 2.25rem 0 0; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 4rem); margin-top: 3.25rem; }
.pair .facts { grid-template-columns: minmax(0, 1fr); margin-top: .9rem; border-top: 2px solid var(--ink); }

.figures { width: 100%; border-collapse: collapse; margin-top: 2.75rem; }
.figures caption { text-align: left; padding-bottom: .9rem; color: var(--ink-2); }
.figures th, .figures td { padding: .8rem 1rem .8rem 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--line); }
.figures th { color: var(--muted); font-weight: 500; border-top: 2px solid var(--ink); }
.figures tr:last-child td { border-bottom: 1px solid var(--line); }
.figures .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures td.num { font-weight: 620; }
.figures td.num.quiet { font-weight: 400; color: var(--ink-2); }
.figures td + td.num, .figures th + th.num { padding-left: 1.5rem; }
.figures tr.sum td { font-weight: 620; border-top: 2px solid var(--ink); }
.note { margin-top: 2.5rem; color: var(--muted); font-size: .9375rem; max-width: 52rem; }
.note b { color: var(--ink-2); font-weight: 620; }
.note a, .sec-note a { color: var(--ink); text-decoration-color: var(--muted); text-underline-offset: .2em; }
.note a:hover, .sec-note a:hover { color: var(--accent-text); }

/* ------------------------------------------------------------ contact */
.contact { padding-block: clamp(4.5rem, 10vw, 8rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.contact h2 { font-size: clamp(2.1rem, 5vw, 4.25rem); line-height: .98; }
.contact p { color: var(--ink-2); max-width: 30rem; }
.contact .cta { margin-top: 1.75rem; }
.mail { font-family: var(--mono); font-weight: 500; font-size: .9375rem; }

/* ------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3rem 2.5rem; }
.foot .brand-mark { width: 2rem; height: 2rem; }
.foot-note { margin-top: 1rem; color: var(--muted); font-size: .9375rem; max-width: 22rem; }
.foot-h { color: var(--muted); margin-bottom: .9rem; }
.foot ul { display: grid; gap: .45rem; }
.foot li a { text-decoration: none; border-bottom: 1px solid transparent; }
.foot li a:hover { border-color: currentColor; }
.foot li span { color: var(--muted); }
.base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-bottom: 2rem; color: var(--muted); font-size: .9375rem; }
.base::before { content: ""; flex: 0 0 100%; border-top: 1px solid var(--line); margin-bottom: .5rem; }
.backed a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--muted); transition: color .15s, border-color .15s; }
.backed a:hover { color: var(--accent-text); border-color: currentColor; }

/* ------------------------------------------------------------ not found */
.lost { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 1.5rem; padding-block: 4rem; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.lost p { color: var(--ink-2); max-width: 32rem; }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 68rem) {
  .sys { grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1.2fr); }
  .sys-meta { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 1.75rem; text-align: left; }
  .principles, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figbox, .figbox-2 { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  :root { --rail: 1.75rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .fig { display: none; }
  .sec-head, .contact { grid-template-columns: minmax(0, 1fr); }
  .stats-3, .facts, .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .pair { grid-template-columns: minmax(0, 1fr); }
  .hbars li { grid-template-columns: minmax(0, 1fr) 5rem 3.25rem; row-gap: .3rem; }
  .hbars .hl { grid-column: 1 / -1; }
  .sys { grid-template-columns: var(--rail) minmax(0, 1fr); padding-block: 2rem 2.25rem; --node-y: 2.45rem; }
  .sys-body, .sys-meta { grid-column: 2; }
  .sys-body { padding-top: 1.25rem; }
  .sys-meta { padding-top: 1.5rem; flex-wrap: wrap; gap: .75rem 1.5rem; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .top nav a:first-child { display: none; }
  .brand-name { font-size: .92rem; }
  .principles, .stats { grid-template-columns: minmax(0, 1fr); }
  .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .figbox { padding: 1.1rem 1rem .9rem; }
  .cols { margin-top: 4.6rem; padding-left: 1.9rem; }
  .plot { height: 11rem; }
  .read { right: 0; white-space: normal; }
  .xs .wide-only { visibility: hidden; }
  .facts div { flex-direction: column; gap: .2rem; }
  .facts dd { text-align: left; }
  .figures th, .figures td { padding-right: .6rem; }
  .figures td + td.num, .figures th + th.num { padding-left: .6rem; }
  .figures th { letter-spacing: .03em; }
  .figures { font-size: .9375rem; }
  .figures td.quiet, .figures th.num { white-space: normal; }
  .chip { width: 2.75rem; height: 2.75rem; border-radius: .7rem; }
  .sys-title { gap: .8rem; }
  .tags li { white-space: normal; border-radius: .9rem; }
}
@media (max-width: 23rem) {
  .top nav a:nth-child(2) { display: none; }
  .go { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .fig, nav, .cta { display: none; }
  body { background: #fff; color: #000; }
}
