/* ============================================================
   FONTS — self-hosted latin subsets (no third-party request)
   ============================================================ */
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("./fonts/InstrumentSerif-italic.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;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("./fonts/InstrumentSerif-normal.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;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("./fonts/JetBrainsMono-normal.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;
}
@font-face {
  font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("./fonts/Karla-normal.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;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ground:      #f7f5ef;
  --ground-card: #fffdf8;
  --ground-sink: #efece2;
  --ink:         #191712;
  --ink-body:    #45413a;
  --ink-muted:   #5f5a4e;
  --ink-faint:   #6b665b;   /* 5:1 on --ground; do not lighten */
  --rule:        #ddd7ca;
  --accent:      #a8401d;
  --accent-lift: #e0743f;   /* accent for use ON dark only */
  --on-dark:     #f7f5ef;
  --on-dark-dim: #c9c3b5;
  --dark-rule:   #4a453a;
  --dark-sink:   #221f18;
  --accent-hover: #7d2f14;
  --surface-dark: var(--ink);      /* the dark bands and app windows */
  --btn-bg:       var(--ink);
  --btn-fg:       var(--ground);
  --input-bg:     var(--ground);
  --input-border: transparent;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(40px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-dur: 720ms;
}

/* Dark theme: follows the OS setting; data-theme on <html> can force either. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --ground:      #16140f;
  --ground-card: #1d1a15;
  --ground-sink: #221f19;
  --ink:         #f0ece2;
  --ink-body:    #cbc5b6;
  --ink-muted:   #a8a191;
  --ink-faint:   #9b9484;   /* 6:1 on --ground */
  --rule:        #322e26;
  --accent:      #e0743f;
  --accent-lift: #e0743f;
  --accent-hover: #f09a70;
  --dark-rule:   #3f3a30;
  --dark-sink:   #1f1c16;
  --surface-dark: #0e0d0a;
  --btn-bg:      #f0ece2;
  --btn-fg:      #16140f;
  --input-bg:    #26221b;
  --input-border: #4a453a;
  }
}
:root[data-theme="dark"] {
  --ground:      #16140f;
  --ground-card: #1d1a15;
  --ground-sink: #221f19;
  --ink:         #f0ece2;
  --ink-body:    #cbc5b6;
  --ink-muted:   #a8a191;
  --ink-faint:   #9b9484;   /* 6:1 on --ground */
  --rule:        #322e26;
  --accent:      #e0743f;
  --accent-lift: #e0743f;
  --accent-hover: #f09a70;
  --dark-rule:   #3f3a30;
  --dark-sink:   #1f1c16;
  --surface-dark: #0e0d0a;
  --btn-bg:      #f0ece2;
  --btn-fg:      #16140f;
  --input-bg:    #26221b;
  --input-border: #4a453a;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Karla", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

button { font: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; color: var(--btn-fg); }

.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.pad { padding-inline: var(--gutter); }
.link--strong { font-weight: 600; }
.hero__caption { margin: 0; font-style: italic; font-size: 16px; color: var(--ink-muted); }
.noscript__note { color: var(--ink-body); margin-top: 20px; }
.site-footer__tag { font-style: italic; font-size: 16px; }

/* ============================================================
   SCROLL REVEAL
   Sections fade + rise once, staggered by child index.
   ============================================================ */
.reveal > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--reveal-dur) var(--ease),
    transform var(--reveal-dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal > * { opacity: 1; transform: none; transition: none; }
  .bar { transition: none !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--ease), padding 260ms var(--ease);
}
.site-header.stuck {
  border-bottom-color: var(--rule);
  padding-block: 10px;
}
.wordmark { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a {
  font-size: 15px; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 16px; font-weight: 600;
  border: 0; border-radius: 999px;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--accent { background: var(--accent-lift); color: #191712; }
.btn--accent:hover { color: #191712; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); }
.hero h1 { margin: 0; font-size: clamp(38px, 6.2vw, 82px); line-height: 1.0; text-wrap: pretty; }
.hero__lede { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-body); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__aside { flex: 0 1 300px; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }

.frame {
  border: 1px solid var(--rule);
  background: var(--ground-sink);
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-faint);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame--portrait { aspect-ratio: 5 / 6; }
/* the mark sits on the page ground so its punched rivet holes (#f7f5ef) read as holes */
/* the mark fills a square tile rather than floating in a portrait frame */
.frame--logo { aspect-ratio: 1 / 1; background: var(--ground-sink); }
.frame--logo svg { width: 76%; height: auto; display: block; color: var(--ink); --logo-accent: var(--accent); }
.frame--shot { aspect-ratio: 16 / 9; }

/* Thrennel card: a live port of the app's constellation, on the app's own near-black */
.frame--graph {
  position: relative;
  display: block;
  background: radial-gradient(120% 95% at 50% 46%, #141416, #0a0a0b 72%);
  border-color: #2b2821;
}
.frame--graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame--graph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 2px 4px);
}
.graph-hud {
  position: absolute; left: 10px; right: 10px; z-index: 1;
  font: 500 9px/1 "JetBrains Mono", Consolas, monospace;
  letter-spacing: 0.14em; color: #8a8578;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.graph-hud--top { top: 9px; }
.graph-hud--foot { bottom: 9px; color: #c9c2b0; letter-spacing: 0.08em; }
.graph-hud i {
  display: inline-block; width: 5px; height: 5px; margin-right: 6px;
  border-radius: 50%; vertical-align: 1px;
  background: #f5c84b; box-shadow: 0 0 6px currentColor;
}
.graph-hud--top i { color: #f5c84b; animation: tgBlink 1.6s ease-in-out infinite; }
@keyframes tgBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .graph-hud--top i { animation: none; } }
.graph-hud--right { left: auto; color: #ffb300; letter-spacing: 0.04em; }

/* Lap-time card: TrackSense's carbon panel, race red glow, no scanlines */
.frame--lap {
  background: radial-gradient(90% 80% at 85% -10%, rgba(225, 6, 0, 0.1), transparent 60%), #0a0a0c;
  border-color: #26262f;
}
.frame--lap::after { display: none; }
.frame--lap .graph-hud--top i { background: #e10600; color: #e10600; }

/* ============================================================
   PROOF ROW
   ============================================================ */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(20px, 2.4vw, 28px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.proof__item { display: flex; flex-direction: column; gap: 4px; }
.proof__n { font-size: clamp(30px, 3.4vw, 40px); line-height: 1; }
.proof__l { font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   WORK
   ============================================================ */
.section { padding: var(--section-y) var(--gutter); }
.section__head {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: baseline; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section__head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--ground-card);
  border: 1px solid var(--rule);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -22px rgba(25, 23, 18, 0.45); }
.card h3 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; }
.card__blurb { margin: 0; font-size: 15px; color: var(--ink-body); flex-grow: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  background: var(--ground-sink);
  font-size: 11px; letter-spacing: 0.1em; font-weight: 700;
  color: var(--ink-body); text-transform: uppercase;
}
.badge__dot { width: 7px; height: 7px; border-radius: 999px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 10px; border: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-muted); text-transform: uppercase;
}
.card__cta { display: inline-flex; align-items: center; min-height: 48px; font-size: 15px; font-weight: 600; }

/* ============================================================
   LAP CHART (dark band)
   ============================================================ */
.band { background: var(--surface-dark); color: var(--on-dark); padding: var(--section-y) var(--gutter); }
.band h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); }
.band__head { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; justify-content: space-between; }
.band__note { margin: 0; font-size: clamp(16px, 1.4vw, 18px); color: var(--on-dark-dim); max-width: 62ch; }
.stamp {
  padding: 5px 12px; border: 1px solid var(--dark-rule);
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--on-dark-dim); text-transform: uppercase;
}

.chart-wrap { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-top: clamp(20px, 2.6vw, 30px); }
.chart { flex: 1 1 400px; display: flex; flex-direction: column; gap: 12px; }
.chart__plot {
  display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 14px);
  height: 200px; padding-bottom: 2px;
  border-bottom: 1px solid var(--dark-rule);
}
.corner {
  flex: 1 1 0; min-width: 0; height: 100%; padding: 0;
  background: none; border: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bar {
  width: 100%;
  background: var(--dark-rule);
  transition: height 520ms var(--ease), background 200ms var(--ease);
}
.corner:hover .bar { background: #6d6757; }
.corner[aria-pressed="true"] .bar { background: var(--accent-lift); }
.chart__labels { display: flex; gap: clamp(4px, 1vw, 14px); }
.chart__labels span {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-size: 12px; font-weight: 600; color: #a8a294;
  transition: color 200ms var(--ease);
}
.chart__labels span.on { color: var(--accent-lift); }

.readout {
  flex: 1 1 280px;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--dark-sink); border: 1px solid var(--dark-rule);
  display: flex; flex-direction: column; gap: 14px;
}
.readout__k { font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--on-dark-dim); text-transform: uppercase; }
.readout__v { font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--accent-lift); }
.readout__note { margin: 0; font-size: 15px; color: #ded8c9; min-height: 3.3em; }
.readout__meta {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 6px; border-top: 1px solid var(--dark-rule);
  font-size: 13px; color: #a8a294;
}

/* ============================================================
   ABOUT / FOOTER
   ============================================================ */

.about { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 72px); align-items: flex-start; }
.about__main { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.about__main h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }
.about__pull { margin: 0; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.5; }
.about__body { margin: 0; font-size: clamp(16px, 1.4vw, 17px); line-height: 1.7; color: var(--ink-body); max-width: 58ch; }
.about__links { flex: 0 1 240px; min-width: 200px; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.about__links a { font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }

/* ============================================================
   APP WINDOWS
   Each app's detail panel is a <dialog class="appwin"> that opens
   over the page instead of stacking under it.
   ============================================================ */
html:has(dialog.appwin[open]) { overflow: hidden; }
dialog.appwin {
  width: min(1200px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto; padding: 0;
  border: 1px solid var(--dark-rule); border-radius: 14px;
  background: var(--surface-dark); color: var(--on-dark);
  overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
dialog.appwin.is-open { opacity: 1; transform: none; }
dialog.appwin:focus, dialog.appwin:focus-visible { outline: none; }   /* the window itself, not its controls */
dialog.appwin::backdrop {
  background: rgba(25, 23, 18, 0);
  backdrop-filter: blur(0);
  transition: background 260ms var(--ease), backdrop-filter 260ms var(--ease);
}
dialog.appwin.is-open::backdrop { background: rgba(25, 23, 18, 0.55); backdrop-filter: blur(4px); }
dialog.appwin .band { padding-top: clamp(24px, 3vw, 40px); }
.appwin__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px var(--gutter);
  background: color-mix(in srgb, var(--surface-dark) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dark-rule);
}
.appwin__title { font-size: 11px; letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase; color: var(--on-dark-dim); }
.appwin__close {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--dark-rule); border-radius: 50%;
  background: transparent; color: var(--on-dark);
  font-size: 22px; line-height: 1;
}
.appwin__close:hover { background: var(--dark-sink); }
@media (prefers-reduced-motion: reduce) {
  dialog.appwin, dialog.appwin::backdrop { transition: none; }
}
@media (max-width: 640px) {
  dialog.appwin { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
}

/* Automation: a run log in plain monospace, and the document it files */
.frame--run { background: #12100c; border-color: #3a3428; display: block; position: relative; }
.rl__log {
  position: absolute; inset: 0;
  padding: 26px 12px 24px;
  overflow: hidden;
  font: 400 10px/1.65 "JetBrains Mono", Consolas, monospace;
  color: #b9b3a5;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.rl__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rlIn 260ms var(--ease) both; }
.rl__t { color: #6b665b; margin-right: 8px; }
.rl__line.is-run { color: #e0d7c2; }
.rl__line.is-ok { color: #52e0a8; }
@keyframes rlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rl__line { animation: none; } }
.rl__chip {
  position: absolute; left: 10px; bottom: 8px; z-index: 1;
  font: 500 9px/1 "JetBrains Mono", Consolas, monospace; letter-spacing: 0.1em;
  color: #52e0a8;
}
.rl__chip[hidden] { display: none; }

.ts-stage { margin-top: clamp(20px, 2.6vw, 30px); }
.ts-stage .frame--lap { aspect-ratio: 23 / 9; }
@media (max-width: 700px) { .ts-stage .frame--lap { aspect-ratio: 16 / 10; } }

.automation-wrap { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-top: clamp(20px, 2.6vw, 30px); }
.automation-wrap .frame--run { flex: 1 1 380px; aspect-ratio: auto; min-height: 300px; }
.rl__doc { flex: 1 1 340px; display: flex; flex-direction: column; gap: 2px; }
.rl__sec {
  display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px;
  padding: 10px 12px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  color: var(--on-dark-dim);
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.rl__sec:hover { border-color: var(--dark-rule); }
.rl__sec.done { color: #8f8a7d; }
.rl__sec.on { background: var(--dark-sink); border-color: var(--dark-rule); color: var(--on-dark); }
.rl__num { font: 500 10px/1.7 "JetBrains Mono", Consolas, monospace; color: var(--accent-lift); }
.rl__name { font-size: 15px; font-weight: 600; }
.rl__line-text { grid-column: 2; font-size: 13px; color: #a8a294; display: none; }
.rl__sec.on .rl__line-text { display: block; }

/* Thrennel window: live constellation beside the waitlist panel */
.thrennel-stage { flex: 1 1 420px; }
.thrennel-stage .frame--graph { aspect-ratio: 16 / 10; }
.waitlist form { display: flex; flex-direction: column; gap: 10px; }
.waitlist form[hidden] { display: none; }
.waitlist label { font-size: 12px; letter-spacing: 0.14em; color: var(--on-dark-dim); text-transform: uppercase; }
.waitlist__row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input {
  flex: 1 1 200px; min-height: 52px; padding: 0 18px;
  background: var(--input-bg); color: var(--ink);
  border: 1px solid var(--input-border); border-radius: 999px;
  font: inherit; font-size: 15px;
}
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }   /* honeypot: bots fill it, people never see it */
.waitlist__msg { margin: 0; font-size: 14px; color: var(--accent-lift); min-height: 1.4em; }
.waitlist__done { display: flex; flex-direction: column; gap: 10px; }
.waitlist__done[hidden] { display: none; }
.waitlist__done .serif { font-size: clamp(30px, 3vw, 38px); line-height: 1.05; color: var(--accent-lift); }
.waitlist a { color: var(--accent-lift); }
/* links that sit inside running text on the dark panels are underlined, not colour-only */
.readout__meta a, .band__note a, .waitlist__msg a { text-decoration: underline; text-underline-offset: 3px; }
.waitlist a:hover { color: var(--on-dark); }

.site-footer {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
  padding: clamp(24px, 2.6vw, 32px) var(--gutter);
  font-size: 14px; color: var(--ink-muted);
}

/* Narrow-viewport trims that clamp() can't express */
@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { font-size: 14px; }
  .chart__plot { height: 150px; }
  .chart__labels span { font-size: 11px; }
}
@media (max-width: 420px) {
  .site-nav .btn--sm { padding: 0 14px; }
}

/* ============================================================
   PROJECT PAGES
   ============================================================ */
.band__crumb { margin: 0 0 18px; font-size: 13px; }
.band__crumb a { color: var(--on-dark-dim); }
.band__crumb a:hover { color: var(--on-dark); }
.more {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px 32px; padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.more__links { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 600; font-size: 17px; }
