:root {
  /* ground + surfaces */
  --bg: #0A0A0A;
  --panel: #141414;
  --card: #1C1C1C;
  --card2: #1F1F1F;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  /* accent: spent only on aliveness */
  --green: #00C805;
  --green-soft: rgba(0,200,5,0.20);
  --green-line: rgba(0,200,5,0.30);

  /* ink tiers: 100 / 60 / 45, never lower */
  --ink: #ffffff;
  --muted: rgba(255,255,255,0.60);
  --mono-dim: rgba(255,255,255,0.45);

  /* float */
  --float:
    0 1px 2px rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.35),
    0 24px 48px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.06);

  /* radius steps down as it nests */
  --r-panel: 28px;
  --r-card: 20px;
  --r-tile: 14px;

  --ease: cubic-bezier(.22,1,.36,1);
  --page: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding: 0 20px 48px;
}

/* every number and every mono glyph lines up */
body, code, pre, table, input, button { font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mono-dim);
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; }
h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 10px; }
h3 { font-size: 18px; }

code, .mono { font-family: 'JetBrains Mono', monospace; }

/* anchor jumps clear the sticky header */
#project, #cli, #clients, #models, #benchmarks, #stats, #pricing, #flywheel, #thesis, #floor { scroll-margin-top: 82px; }
/* the wordmark jumps past the marquee's top inset, so it lands at a true 0 */
#top { scroll-margin-top: 24px; }

/* slim scrollbars on the dark theme */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- the floating panel ---------- */
.panel {
  position: relative;
  max-width: var(--page);
  margin: 0 auto 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  box-shadow: var(--float);
  padding: 28px 24px;
}

/* ---------- marquee banner ---------- */
.marquee {
  max-width: var(--page);
  margin: 14px auto 14px;
  background: #0F0F0F;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-roll 55s linear infinite;
}
.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  white-space: nowrap;
  padding-right: 64px;
}
.marquee-item a { color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.marquee-item a:hover { color: var(--ink); }
@keyframes marquee-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ---------- twin strip: two cards, one panel ---------- */
.twin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.twin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
}
.twin-head {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 10px 0 10px;
  letter-spacing: -0.01em;
}
.twin-line {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
}

/* ---------- header: sticky glass pill ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: var(--page);
  margin: 0 auto 28px;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--float);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  white-space: nowrap;
}
.d-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #0A0A0A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  flex: 0 0 auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  min-width: 0;
}
.header-nav a, .header-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.header-nav a:hover, .header-link:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

/* ---------- pills / buttons ---------- */
.ca-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #0A0A0A;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.ca-pill:hover { background: #00b004; transform: translateY(-1px); }
.ca-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: inline-block;
  flex: 0 0 auto;
}
/* the big ones sit on a surface, never a green slab: aliveness is the dot alone.
   the dot is a pseudo-element so the button's own text stays untouched. */
.ca-pill-wide {
  width: auto;
  min-width: 260px;
  font-size: 13px;
  min-height: 46px;
  padding: 0 26px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--green-line);
  box-shadow: var(--float);
}
.ca-pill-wide::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
  animation: pulse 1.8s infinite;
}
.ca-pill-wide:hover { background: #232323; border-color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .ca-pill-wide::before { animation: none; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #0A0A0A;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  min-height: 42px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); background: #00b004; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 20px;
  min-height: 42px;
  cursor: pointer;
  box-shadow: var(--float);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-outline:hover { transform: translateY(-2px); background: #232323; border-color: var(--border-strong); }

.btn-copy, .btn-copy-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-copy:hover { color: var(--ink); background: #232323; border-color: var(--border-strong); }
.btn-copy-all {
  background: var(--green);
  color: #0A0A0A;
  border: 1px solid var(--green);
  font-weight: 600;
  font-size: 13px;
  min-height: 42px;
  padding: 0 20px;
}
.btn-copy-all:hover { background: #00b004; color: #0A0A0A; border-color: #00b004; transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  padding: 56px 24px 52px;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 16px 0 4px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  box-shadow: var(--float);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.hero-pill:hover { transform: translateY(-2px); color: var(--ink); background: #232323; }
/* no max-width: the <br>s in the markup own the line breaks */
.hero h1 { margin: 16px auto; }
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
  margin: 0 auto;
}
.hero .btn-primary { margin-top: 24px; }

/* ---------- access cards ---------- */
.access-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.access-card-featured {
  border-radius: var(--r-card);
  padding: 24px;
}
.access-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.access-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.access-desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.mini-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.mini-link {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  padding: 14px 16px;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.mini-link:hover { transform: translateY(-2px); background: #262626; border-color: var(--border-strong); }
.mini-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.mini-sub { color: var(--muted); font-size: 12px; font-family: 'JetBrains Mono', monospace; }

.access-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.access-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.access-item:hover { transform: translateY(-2px); background: #212121; border-color: var(--border-strong); }
.access-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
a.access-open {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
a.access-open:hover { border-bottom-color: var(--ink); }
/* not a link: vocabulary, so it must not read like one */
code.access-open {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.chip-inline {
  display: inline-block;
  margin-top: 10px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--mono-dim);
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- copypasta ---------- */
.copypasta-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.copypasta-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--mono-dim);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  padding: 16px;
  white-space: pre-wrap;
  max-height: 320px;
  overflow-y: auto;
  line-height: 1.7;
  cursor: pointer;
}

/* ---------- quote cards ---------- */
.quote-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}
.quote-card:hover { transform: translateY(-2px); background: #212121; }
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.quote-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
}
.quote-open {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.quote-open:hover { color: var(--ink); }
blockquote { font-size: 15px; color: var(--ink); line-height: 1.6; }
blockquote code {
  background: var(--card2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- contract strip ---------- */
.contract-strip { padding: 20px 24px; }
.contract-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contract-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  white-space: nowrap;
}
.contract-inner .ca-pill-wide { flex: 0 0 auto; }

/* ---------- section body copy ---------- */
.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 68ch;
  margin-top: 12px;
}
.section-lead a { color: var(--ink); border-bottom: 1px solid var(--border-strong); }
.section-lead a:hover { border-bottom-color: var(--ink); }
.section-lead code {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--ink);
}
.bind-section .section-lead { margin-left: 0; }
.bind-card { max-width: 68ch; }

/* ---------- stat cards ---------- */
.stat-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 20px;
  text-align: left;
  min-width: 0;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  letter-spacing: 0.06em;
}
.stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 10px 0 4px;
}
.stat-sub { color: var(--muted); font-size: 13px; }

/* ---------- code cards ---------- */
.code-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.code-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
  min-width: 0;
}
.code-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.code-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
}
.code-card-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  padding: 14px;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.7;
}

.mono-checklist {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.mono-checklist li::before { content: '· '; color: var(--mono-dim); }
.mono-checklist a { color: var(--ink); border-bottom: 1px solid var(--border-strong); }
.mono-checklist a:hover { border-bottom-color: var(--ink); }

/* ---------- pricing ---------- */
.receipt-line {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--border);
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
}
.rails-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.rails-primary { color: var(--ink); }
.rails-list li::before { content: '· '; color: var(--mono-dim); }

/* ---------- flywheel ---------- */
.flywheel-loop {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.flywheel-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  min-width: 0;
}
.flywheel-step-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.flywheel-step-line { color: var(--muted); font-size: 15px; }
/* the connector sits in the 16px gutter. decorative only: the <ol> carries the
   order, and the arrow glyph is already page vocabulary (bench-value "5/6 → 6/6"). */
.flywheel-step::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 16px;
  text-align: center;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1;
  color: var(--mono-dim);
}
.flywheel-step:nth-child(3n)::after { content: none; }
.flywheel-step:last-child::after { content: none; }
/* .twin-grid ships with no top margin; .code-cards is 2-up by default */
.flywheel-paths { margin-top: 24px; }
/* the definition is a left column, not a slab: it holds the same measure as the
   lead above it, the way .bind-card does */
.flywheel-formula { grid-template-columns: 1fr; }
.flywheel-formula .code-card { max-width: 620px; }

/* ---------- book ---------- */
.book-count {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--mono-dim);
}
.book-count span { color: var(--ink); font-size: 24px; font-weight: 600; }
.model-search {
  margin-top: 16px;
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  min-height: 44px;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.model-search::placeholder { color: var(--mono-dim); }
.model-search:focus { outline: 2px solid var(--green); outline-offset: 2px; border-color: transparent; }
.model-table-wrap {
  margin-top: 16px;
  max-height: 420px;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  background: var(--card2);
}
table { width: 100%; border-collapse: collapse; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
th {
  text-align: left;
  position: sticky;
  top: 0;
  background: #232323;
  color: var(--mono-dim);
  padding: 10px 16px;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
}
td { padding: 9px 16px; border-bottom: 1px solid var(--border); color: var(--mono-dim); }
.model-table td:first-child { color: var(--ink); }
.model-table td:last-child { color: var(--muted); }
.book-more { margin-top: 14px; color: var(--mono-dim); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ---------- benchmarks ---------- */
.bench-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bench-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 20px;
  min-width: 0;
}
.bench-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
}
.bench-value { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-top: 10px; }

.bench-tables {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
}
.bench-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  min-width: 0;
}
.bench-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bench-table-tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mono-dim); }
.bench-table-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.bench-table-card h3 { font-size: 17px; margin-bottom: 14px; }
.bench-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
}
.bench-table-wrap table td:first-child, .bench-table-wrap table th:first-child { padding-left: 14px; }
.bench-table-wrap tr:last-child td { border-bottom: none; }
.cell-green { color: var(--ink); }
.cell-muted { color: var(--mono-dim); }

/* ---------- inspect ---------- */
.inspect-links {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ---------- live floor ---------- */
.floor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
.floor-head h2 { margin-top: 0; }
.floor-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  margin-top: 8px;
}
.floor-card {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
}
.floor-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.floor-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mono-dim); }
.floor-card-head h3 { font-size: 17px; flex: 1; }
.awake-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.awake-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  .awake-dot { animation: none; }
}
.floor-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
  margin-top: 8px;
}
.floor-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
}
.floor-table tr:last-child td { border-bottom: none; }
.floor-price {
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.28s var(--ease);
}
.floor-price.tick-up { color: var(--green); }
.floor-price.tick-down { color: var(--muted); }
.desk-link {
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-bottom: 1px solid var(--border-strong);
}
.desk-link:hover { border-bottom-color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* odometer: each digit rolls in its own 1em window */
.odo { display: inline-block; white-space: nowrap; }
.odo-static, .odo-digit {
  display: inline-block;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
}
.odo-digit {
  width: 1ch;
  overflow: hidden;
}
.odo-strip {
  display: block;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.odo-strip span { display: block; height: 1em; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .odo-strip { transition: none; }
}

/* ---------- footer ---------- */
.site-footer { padding: 32px 24px; margin-bottom: 0; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-top .ca-pill-wide { flex: 0 0 auto; }
.footer-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
}
.footer-motto {
  margin-top: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
/* a byline, nothing more: one tier under the motto so the motto stays primary */
.footer-byline {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--mono-dim);
}
.footer-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--mono-dim);
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 999px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.footer-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

/* horizontal scroll cue: .has-overflow is toggled in app.js */
.model-table-wrap.has-overflow,
.bench-table-wrap.has-overflow,
.floor-table-wrap.has-overflow,
.header-nav.has-overflow,
.code-card-body.has-overflow {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%);
}
/* the model book also scrolls vertically: keep its scrollbar out of the fade */
.model-table-wrap.has-overflow {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%), linear-gradient(#000, #000);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent 100%), linear-gradient(#000, #000);
  -webkit-mask-size: calc(100% - 11px) 100%, 11px 100%;
  mask-size: calc(100% - 11px) 100%, 11px 100%;
  -webkit-mask-position: left top, right top;
  mask-position: left top, right top;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* highlight surfaces: green glow, never a green fill.
   lives after the card rules so it wins on source order. */
.is-featured {
  background:
    radial-gradient(circle at 14% 0%, rgba(0,200,5,0.16), transparent 50%),
    linear-gradient(145deg, #10190D, #141414 64%);
  border: 1px solid var(--green-line);
}

/* global overflow guard */
img, svg { max-width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bench-tables { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { padding: 0 12px 32px; }
  .panel { border-radius: 22px; padding: 22px 16px; margin-bottom: 24px; }
  .hero { padding: 40px 16px 36px; }
  .twin-grid { grid-template-columns: 1fr; }
  .mini-links { grid-template-columns: 1fr; }
  .quote-cards { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .code-cards { grid-template-columns: 1fr; }
  .bench-cards { grid-template-columns: 1fr; }
  .bench-tables { grid-template-columns: 1fr; }
  .inspect-links { grid-template-columns: 1fr; }
  .flywheel-loop { grid-template-columns: 1fr; }
  /* the connector turns the corner with the grid */
  .flywheel-step::after,
  .flywheel-step:nth-child(3n)::after {
    content: '↓';
    top: auto;
    bottom: -15px;
    right: auto;
    left: 50%;
    width: auto;
    transform: translateX(-50%);
  }
  .flywheel-step:last-child::after { content: none; }
  .marquee { margin: 10px auto; }

  /* header stacks to two tight rows, nav scrolls sideways instead of wrapping */
  .site-header { top: 8px; margin-bottom: 20px; }
  .header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-radius: 22px;
    padding: 8px 12px;
  }
  .header-left { justify-content: space-between; gap: 10px; }
  .header-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 2px;
    margin: 0 -4px;
    padding: 0 4px;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  /* tap boxes match the value the earlier fix round set */
  .header-nav a, .footer-nav a, .header-link { min-height: 40px; padding: 0 8px; }
  .ca-pill { font-size: 12px; padding: 0 11px; }

  /* mobile header pins at 8px and runs ~102px tall */
  #project, #cli, #clients, #models, #benchmarks, #stats, #pricing, #flywheel, #thesis, #floor { scroll-margin-top: 124px; }

  .contract-strip .contract-label { white-space: normal; }
  .ca-pill-wide { width: 100%; min-width: 0; }
  .contract-inner .ca-pill-wide, .footer-top .ca-pill-wide { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .panel { padding: 20px 14px; }
  .hero { padding: 34px 14px 30px; }
}
