/* Speedrunning AI — WWD trade-news masthead (iteration 10)
   Full dark. One zone. Wire = free. Take = paid. No amber. */

/* Legacy component variables are now aliases onto the token system in
   tokens.css. This keeps every existing rule on the Soft Signal Dark palette
   while components are migrated page by page (report build order: foundation
   -> profile -> board -> data pages -> learn). No hex values live here. */
:root {
  --bg: var(--bg-canvas);
  --bg-raised: var(--surface-1);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --rule: var(--border-hairline);
  --rule-strong: var(--border-default);
  --violet: var(--accent-text);
  --violet-dim: var(--accent-muted);

  --sans: var(--font-ui);
  --display: var(--font-editorial);
  --mono: var(--font-data);

  --max: var(--content-max);
  --gutter: var(--space-8);
  --baseline: var(--leading-body);
}

/* Shared centered rail — header, main, footer share the same edges */
.shell {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-synthesis-weight: none;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

img:not(.avatar-img) {
  display: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Masthead ——— */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-1);
  min-height: 52px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
}

.brand-name span {
  color: var(--violet);
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.header-nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--text);
}

.header-status {
  justify-self: end;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* ——— Page shell ——— */
.page {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  padding-bottom: 80px;
}

/* ——— Tags ——— */
.tag-wire,
.tag-take {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.tag-wire {
  color: var(--muted);
}

.tag-take {
  color: var(--violet);
}

.tag-take .lock {
  width: 10px;
  height: 10px;
  display: inline-block;
}

.tag-take .lock svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--violet);
}

/* ——— Front page / Board ——— */
.front {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
}

.front-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
}

.front-kicker .edition {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.front-kicker .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.front-grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: var(--space-2);
  align-items: start;
}

.front-lead .hl-label {
  display: block;
  margin-bottom: 10px;
}

.front-lead h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.front-lead h1 a {
  text-decoration: none;
}

.front-lead h1 a:hover {
  color: var(--violet);
}

.front-lead .byline {
  font-size: 13px;
  color: var(--muted);
}

.front-lead .byline strong {
  color: var(--text);
  font-weight: 500;
}

.front-signals {
  border-left: 1px solid var(--rule);
  padding-left: var(--space-1);
  min-width: 0;
}

.front-signals h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.board-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.board-table td:first-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  width: 7ch;
  white-space: nowrap;
  padding-right: 10px;
}

.board-table td:nth-child(2) {
  font-weight: 500;
  width: 28%;
  padding-right: 10px;
}

.board-table td:nth-child(3) {
  color: var(--muted);
}

.board-table td:last-child {
  font-size: 11px;
  color: var(--violet);
  text-align: right;
  width: 5ch;
}

.board-table tr.tick-out {
  opacity: 0.35;
  transition: opacity 0.4s;
}

.board-table tr.tick-in {
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.front-enter {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--violet);
}

.front-enter:hover {
  color: var(--text);
}

/* ——— Sections — shared left edge + 24/48/96 rhythm ——— */
.section {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-note {
  margin: 0 0 var(--space-1);
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
}

.link-plain {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}

.link-plain:hover {
  color: var(--violet);
}

/* ——— Wire (FREE) ——— */
.wire-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}

.wire-row {
  display: grid;
  grid-template-columns: 6.5ch 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.wire-row time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.wire-row a {
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
}

.wire-row a:hover {
  color: var(--violet);
}

.wire-row .who {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.wire-row .views {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.wire-row .tag-wire {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

/* ——— Take / Paywall ——— */
.take-rail-label {
  margin-bottom: 18px;
}

.conv-track {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.conv-node {
  flex: 1 1 180px;
  background: var(--bg-raised);
  padding: 16px 18px;
  text-align: left;
  min-height: 96px;
  transition: background 0.15s;
}

.conv-node:hover,
.conv-node[aria-expanded="true"] {
  background: var(--surface-2);
}

.conv-node .topic {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.conv-node .meta {
  font-size: 12px;
  color: var(--muted);
}

.conv-detail {
  display: none;
  margin-top: 0;
  border: 1px solid var(--rule);
  border-top: 0;
  padding: 18px 20px;
  background: var(--bg-raised);
}

.conv-detail.open {
  display: block;
}

.conv-take {
  display: grid;
  grid-template-columns: 16ch 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.conv-take:last-child {
  border-bottom: 0;
}

.conv-take .who {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split-mark {
  color: var(--violet);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ——— Signal (free commentary) ——— */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.signal-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-raised);
}

.signal-face {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.signal-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}

.signal-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.signal-top {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft, var(--muted));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— Spectrum (TAKE) ——— */
.spectrum-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: none;
}

.paywall-story .preview:has(.spectrum-track) {
  max-width: none;
}

.spectrum-card {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 18px 20px 16px;
}

.spectrum-card.is-active {
  border-color: var(--violet);
}

.spectrum-topic {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 0;
  margin: 0 0 14px;
  cursor: pointer;
}

.spectrum-topic .topic {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.spectrum-topic .meta {
  font-size: 12px;
  color: var(--muted);
}

.spectrum-bar {
  display: flex;
  height: 14px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg);
}

.spectrum-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.spectrum-seg em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--mono, "IBM Plex Mono", monospace);
  color: var(--text-inverse);
  opacity: 0.85;
}

.spectrum-bullish { background: var(--bullish); }
.spectrum-neutral { background: var(--neutral); }
.spectrum-skeptical { background: var(--skeptical); }

.spectrum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.spectrum-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: middle;
}

.spectrum-legend .dot.bullish { background: var(--bullish); }
.spectrum-legend .dot.neutral { background: var(--neutral); }
.spectrum-legend .dot.skeptical { background: var(--skeptical); }

.spectrum-preview-label {
  margin: 16px 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spectrum-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.spectrum-names li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stance-chip {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 6px;
  border: 1px solid var(--rule);
}

.stance-bullish { color: var(--bullish); border-color: var(--bullish-border); }
.stance-neutral { color: var(--neutral); border-color: var(--neutral-border); }
.stance-skeptical { color: var(--skeptical); border-color: var(--skeptical-border); }

.spectrum-locked-head {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.spectrum-read {
  display: grid;
  grid-template-columns: 16ch 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.spectrum-read:last-child {
  border-bottom: 0;
}

.spectrum-read .who {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spectrum-read .snippet {
  display: block;
  margin: 6px 0 4px;
  color: var(--text-secondary);
}

.spectrum-read .ev {
  font-size: 12px;
}

/* Paywall shell — offer block, not just a lock */
.paywall-story {
  position: relative;
}

.paywall-story .preview {
  max-width: 68ch;
}

.paywall-story .preview p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.paywall-story .locked {
  position: relative;
  max-height: 7.5em;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.paywall-story .locked p,
.paywall-story .locked .kv,
.paywall-story .locked li {
  font-size: 15px;
  line-height: 1.6;
}

.paywall-cta {
  margin-top: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--rule-strong);
  background: var(--bg-raised);
  max-width: 52ch;
}

.paywall-cta .offer-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.paywall-cta .offer-list li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  padding: 3px 0;
}

.paywall-cta .offer-list li::before {
  content: "· ";
  color: var(--violet);
}

.btn-subscribe {
  display: inline-block;
  padding: 10px 18px;
  background: var(--violet);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
}

.btn-subscribe:hover {
  color: var(--text);
  filter: brightness(1.12);
}

/* ——— Tool Consensus Tracker ——— */
.tool-rank-list {
  border-top: 1px solid var(--rule-strong);
}

.tool-row {
  display: grid;
  grid-template-columns: 3.5ch minmax(0, 1fr) 4ch;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.tool-rank {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.tool-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.tool-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tool-meta .trend.gaining {
  color: var(--violet);
}

.tool-meta .trend.losing {
  color: var(--muted);
}

.tool-creators {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.tool-creators a {
  color: var(--text);
  text-decoration: none;
}

.tool-creators a:hover {
  color: var(--violet);
}

.tool-count {
  font-family: var(--mono);
  font-size: 14px;
  text-align: right;
  color: var(--violet);
}

.profile-bio {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.profile-skool {
  margin: 10px 0 0;
  font-size: 13px;
}

.profile-skool a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-skool a:hover {
  color: var(--violet);
}

/* ——— Index movers ——— */
.mover-rows {
  border-top: 1px solid var(--rule-strong);
}

.mover-row {
  display: grid;
  grid-template-columns: 18ch minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 52px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}

.mover-row .kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mover-row .name {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mover-row .stat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  text-align: right;
  white-space: nowrap;
}

.mover-row .sub {
  grid-column: 2 / -1;
  font-size: 13px;
  color: var(--muted);
  margin-top: -4px;
}

/* ——— Field Cut ——— */
.cut-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.cut-col {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
}

.cut-col:last-child {
  border-right: 0;
}

.cut-col h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
}

.cut-col p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cut-col .fn {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.illus-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}

/* ——— Method ——— */
.method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.method-list li {
  display: grid;
  grid-template-columns: 4ch 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.method-list .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
}

.method-list .step {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}

.method-list .limit {
  font-size: 13px;
  color: var(--muted);
}

/* ——— Empty / archive ——— */
.empty-state {
  border: 1px solid var(--rule);
  padding: 22px 20px;
  background: var(--bg-raised);
}

.empty-state strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
  font-weight: 600;
}

/* ——— Creator directory (logic untouched; skin only) ——— */
.dir-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
}

.filter-line button {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 2px;
}

.filter-line button[aria-pressed="true"],
.filter-line button:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-line .sep {
  color: var(--rule-strong);
  margin-right: 8px;
}

.search-inline {
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  padding: 4px 0;
  min-width: 16ch;
  color: var(--text);
  outline: none;
}

.search-inline:focus {
  border-bottom-color: var(--violet);
}

.dir-actions {
  font-size: 12px;
  color: var(--muted);
}

.dir-actions a {
  margin-left: 14px;
}

.ledger-sheet {
  width: 100%;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  container-type: inline-size;
  container-name: ledger;
}

.ledger-head {
  display: grid;
  grid-template-columns: 4ch 32px minmax(22ch, 3fr) 8ch 9ch 8ch 11ch;
  gap: 10px;
  min-height: 36px;
  align-items: center;
  border-bottom: 1px solid var(--text);
  padding: 0 8px;
  position: sticky;
  top: 52px;
  background: var(--bg);
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-head button {
  text-align: inherit;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

.ledger-head button.active {
  color: var(--text);
}

.ledger-head .num,
.ledger-row > summary .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 12px;
}

.ledger-row {
  border-bottom: 1px solid var(--rule);
}

.ledger-row > summary {
  display: grid;
  grid-template-columns: 4ch 32px minmax(22ch, 3fr) 8ch 9ch 8ch 11ch;
  gap: 10px;
  min-height: 44px;
  align-items: center;
  list-style: none;
  padding: 8px;
  cursor: pointer;
}

.ledger-row > summary::-webkit-details-marker {
  display: none;
}

.ledger-row > summary:hover,
.ledger-row.kb-focus > summary {
  background: var(--bg-raised);
}

.ledger-row[open] > summary {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--rule);
}

.ledger-row .name {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.face {
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-raised);
  overflow: hidden;
  flex-shrink: 0;
}

.face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.08em;
  color: var(--violet);
}

.expand {
  padding: 12px 12px 18px 56px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--rule);
}

.expand .kv,
.kv {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.expand .kv a,
.kv a {
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.expand .sources {
  margin-top: 12px;
  font-size: 13px;
}

.expand .sources a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

@container ledger (max-width: 720px) {
  .ledger-head,
  .ledger-row > summary {
    grid-template-columns: 4ch 28px minmax(0, 1fr) 7ch;
  }
  .ledger-head .col-cadence,
  .ledger-head .col-median,
  .ledger-head .col-cat,
  .ledger-row .col-cadence,
  .ledger-row .col-median,
  .ledger-row .col-cat {
    display: none !important;
  }
}

/* ——— Profile ——— */
.profile-mast {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.profile-mast-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.profile-face {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

.profile-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.profile-spec {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.current-take {
  margin: 28px 0;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
}

.current-take .take-rail {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-take .take-main {
  padding: 18px 20px 22px;
}

.refresh-stamp {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

/* ——— Data table ——— */
.data-table {
  border-top: 1px solid var(--rule-strong);
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.data-row .fmt {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ——— Rank rows (category pages) ——— */
.rank-sheet {
  border-top: 1px solid var(--rule-strong);
}

.rank-row {
  display: grid;
  grid-template-columns: 4ch 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.rank-row .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.rank-row .name {
  font-family: var(--display);
  font-size: 20px;
  text-decoration: none;
}

.rank-row .blurb {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.rank-row .stat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}

/* ——— Footer ——— */
.colophon {
  border-top: 2px solid var(--text);
  margin-top: 8px;
}

.colophon-inner {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  padding: 28px 0 100px;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.colophon a {
  color: var(--text);
  text-decoration: none;
}

.colophon a:hover {
  color: var(--violet);
}

.colophon .not {
  margin: 8px 0 0;
  max-width: 62ch;
  line-height: 1.55;
}

/* ——— Mobile nav ——— */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  z-index: 50;
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.bottom-nav a[aria-current="page"] {
  color: var(--text);
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .header-status {
    display: none;
  }

  .header-nav {
    gap: 14px;
  }

  .front-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .front-signals {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: var(--space-1);
  }

  .cut-cols {
    grid-template-columns: 1fr;
  }

  .cut-col {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .cut-col:last-child {
    border-bottom: 0;
  }

  .mover-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mover-row .stat {
    text-align: left;
  }

  .mover-row .sub {
    grid-column: 1;
  }

  .wire-row {
    grid-template-columns: 5.5ch 1fr;
  }

  .wire-row .views {
    grid-column: 2;
  }

  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }

  .conv-take {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spectrum-read {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  /* Previously this hid every nav link past the second, which left Spectrum,
     Tools and Data unreachable on a phone (the bottom bar only carries four).
     Scroll the nav instead of amputating it. */
  .header-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .header-nav a {
    white-space: nowrap;
  }
}

@media print {
  .site-header,
  .bottom-nav,
  .paywall-cta,
  .btn-subscribe {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .ledger-head {
    position: static;
  }
}

/* ---------- Hero: identity before signal ----------
   The page previously opened on "LOUDEST SIGNAL" plus a video headline, which
   tells a first-time visitor nothing about what the site is. */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 20ch;
}

.hero-sub {
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 62ch;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 26px;
  }
  .hero-h1 {
    max-width: none;
  }
}

/* ---------- Reading the wire: external press links ---------- */
.press-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.press-rail li {
  background: var(--bg);
  padding: 14px 16px;
}

.press-rail a {
  text-decoration: none;
  display: block;
}

.press-rail a:hover .press-title {
  text-decoration: underline;
}

.press-outlet {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.press-title {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.press-date {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}


/* ---------- Mobile pass (tested at 390px) ---------- */
@media (max-width: 640px) {
  /* Any wide table gets a scroll affordance instead of blowing out the page. */
  .board-table,
  .data-table,
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Profile masthead stacks rather than squeezing the name beside the avatar. */
  .profile-mast-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .press-rail {
    grid-template-columns: 1fr;
  }

  .hero-h1 {
    font-size: clamp(28px, 8vw, 38px);
  }
}

/* Nothing may exceed the viewport width on any page. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Topic search (free) ---------- */
.search-band {
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.search-label-main {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}

.search-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--rule-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 15px;
  border-radius: 0;
  -webkit-appearance: none;
}

.search-input:focus {
  outline: 2px solid var(--violet);
  outline-offset: -1px;
}

.search-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.search-results {
  margin-top: 14px;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  max-height: 60vh;
  overflow-y: auto;
}

.search-group {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 12px;
}

.search-group:last-child {
  border-bottom: 0;
}

.search-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 15px 6px;
}

.search-row,
.search-tool {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 14px;
}

.search-row:hover {
  background: var(--violet-dim);
}

.search-row .n,
.search-tool .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.search-results mark {
  background: var(--violet-dim);
  color: var(--text);
  padding: 0 1px;
}

.search-empty {
  padding: 18px 15px;
  font-size: 14px;
}

.search-empty strong {
  display: block;
  margin-bottom: 4px;
}

.search-empty span {
  color: var(--muted);
  font-size: 12px;
}

.search-open {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  color: var(--text);
  font-weight: 650;
}
.search-open-primary {
  width: 100%;
  margin: 0;
  padding: 14px 15px;
  border-bottom: 1px solid var(--rule);
  background: var(--violet-dim);
  text-decoration: none;
}

/* Topic dossiers: one calm centre axis with a visible evidence spine. */
.topic-page { max-width: 1040px; }
.topic-hero {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 72px);
  text-align: center;
}
.topic-back { display: inline-block; margin-bottom: var(--space-8); color: var(--text-secondary); font-size: 14px; }
.topic-title { margin: var(--space-3) auto 0; font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; }
.topic-deck { max-width: 62ch; margin: var(--space-5) auto 0; color: var(--text-secondary); font-size: var(--text-body-lg); line-height: 1.6; }
.topic-search-form { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); max-width: 680px; margin: var(--space-8) auto 0; }
.topic-search-form .search-input { margin: 0; }
.topic-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 680px; margin: var(--space-8) auto 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--rule); }
.topic-stats div { display: grid; gap: 3px; padding: var(--space-5); background: var(--bg-raised); }
.topic-stats strong { font-size: 24px; }
.topic-stats span { color: var(--text-secondary); font-size: 12px; }
.topic-section { max-width: 900px; margin-inline: auto; padding: clamp(48px, 7vw, 72px) 0; border-top: 1px solid var(--rule); }
.topic-source-note { color: var(--text-secondary); font-size: 13px; }
.evidence-stack { position: relative; max-width: 780px; margin: var(--space-8) auto 0; }
.evidence-stack::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 1px; background: var(--rule-strong); }
.evidence-item { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: var(--space-6); padding-bottom: var(--space-8); }
.evidence-marker { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 5px; border: 3px solid var(--bg); border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.evidence-body { padding: var(--space-6); border: 1px solid var(--rule); border-radius: var(--radius-xl); background: var(--bg-raised); }
.evidence-meta { display: flex; justify-content: space-between; gap: var(--space-4); color: var(--text-secondary); font-size: 12px; }
.evidence-meta span { color: var(--violet-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.evidence-body h3 { margin: var(--space-3) 0; font-size: 18px; }
.evidence-body p { margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.evidence-source { display: inline-block; margin-top: var(--space-4); font-size: 13px; }
.topic-paywall { max-width: 760px; margin: 0 auto clamp(48px, 8vw, 80px); }
.topic-gate { padding: clamp(32px, 5vw, 52px); text-align: center; border: 1px solid color-mix(in srgb, var(--violet) 45%, var(--rule)); border-radius: var(--radius-xl); background: radial-gradient(circle at 50% 0, var(--violet-dim), transparent 60%), var(--bg-raised); }
.topic-gate h2 { margin: var(--space-3) 0; font-size: var(--text-h2); }
.topic-gate p { max-width: 52ch; margin-inline: auto; color: var(--text-secondary); line-height: 1.6; }
.topic-gate ul { display: inline-grid; gap: 8px; margin: var(--space-5) auto; padding: 0; text-align: left; list-style: none; }
.topic-gate li::before { content: "\2713"; margin-right: 10px; color: var(--violet-soft); }
.gate-kicker { color: var(--violet-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.related-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.related-topics a { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--rule); border-radius: var(--radius-lg); text-decoration: none; }
.related-topics a:hover { border-color: var(--violet); background: var(--violet-dim); }
.useful-empty { padding: var(--space-6); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg-raised); }
.useful-empty p { color: var(--text-secondary); }
.wire-context { padding: 12px 0; color: var(--text-secondary); font-size: 13px; }

.home-tool-list { max-width: 900px; margin: var(--space-8) auto 0; border-top: 1px solid var(--rule); }
.home-tool { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 24px; gap: var(--space-4); align-items: center; min-height: 64px; padding: 0 var(--space-3); border-bottom: 1px solid var(--rule); text-decoration: none; }
.home-tool:hover { background: var(--violet-dim); }
.home-tool-rank, .home-tool-proof { color: var(--text-secondary); font-size: 13px; }
.home-tool-name { font-size: 18px; font-weight: 680; }

@media (max-width: 680px) {
  .topic-search-form { grid-template-columns: 1fr; }
  .topic-stats { grid-template-columns: 1fr; }
  .topic-stats div { grid-template-columns: auto 1fr; align-items: baseline; text-align: left; }
  .related-topics { grid-template-columns: 1fr; }
  .home-tool { grid-template-columns: 34px minmax(0, 1fr) 20px; }
  .home-tool-proof { display: none; }
}

/* ============================================================
   Clarity and symmetry pass — one centre axis, plain language UI.
   ============================================================ */
.site-header { isolation: isolate; overflow: visible; }
.header-inner { overflow: visible; }

.home-page .section { max-width: 1040px; margin-inline: auto; }
.home-page .section > .section-title,
.home-page .section > .section-note { margin-left: auto; margin-right: auto; text-align: center; }
.home-page .section > .section-note { max-width: 68ch; }
.home-page .section-head { position: relative; justify-content: center; min-height: 28px; }
.home-page .section-head .link-plain { position: absolute; right: 0; top: 0; }
.home-page .signals-grid { max-width: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .signals-grid > * { min-width: 0; }
.nl-form { width: min(100%, 860px); margin-inline: auto; text-align: left; }
.nl-intro, .nl-micro, .nl-status { text-align: center; }

.tool-row-link { color: inherit; text-decoration: none; border-radius: var(--radius-sm); padding-inline: var(--space-3); }
.tool-row-link:hover { color: inherit; background: var(--accent-muted); }
.tool-row-link:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 3px; }
.mover-clickable a { color: var(--text-primary); font-weight: 700; }

/* Builder pages read as one centred dossier, not a left page plus right rail. */
.builder-profile-hero { max-width: 900px; }
.profile-layout { max-width: 960px; grid-template-columns: 1fr; gap: var(--space-8); }
.profile-main { width: 100%; }
.profile-section-head { position: relative; justify-content: center; text-align: center; }
.profile-section-head .section-count { position: absolute; right: 0; bottom: 5px; }
.profile-overview > p { max-width: 66ch; margin-left: auto; margin-right: auto; text-align: center; }
.profile-topic-block { margin-top: var(--space-5); text-align: center; }
.profile-topic-block > span { display: block; margin-bottom: var(--space-3); color: var(--text-muted); font-size: var(--text-caption); }
.profile-topic-block > div { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.profile-topic-block a { padding: 8px 12px; border: 1px solid var(--border-default); border-radius: 999px; color: var(--text-primary); text-decoration: none; font-size: var(--text-body-sm); }
.profile-topic-block a:hover { border-color: var(--accent-border); background: var(--accent-muted); }
.profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-sidebar section { min-width: 0; }
.profile-sidebar section:only-child { grid-column: 1 / -1; }

/* Familiar work artifacts make the corporate guide legible to beginners. */
.corporate-deck { max-width: 62ch; margin: var(--space-4) auto 0; color: var(--text-secondary); font-size: var(--text-body-lg); line-height: 1.65; }
.work-artifacts { width: min(100%, 920px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.work-artifacts article { min-height: 190px; padding: var(--space-5); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); background: var(--surface-1); text-align: left; overflow: hidden; }
.work-artifacts span, .work-artifacts strong, .work-artifacts small { display: block; }
.artifact-app { color: var(--accent-text); font-size: var(--text-caption); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-label); }
.work-artifacts strong { margin-top: var(--space-3); font-size: var(--text-body); }
.work-artifacts small { margin-top: var(--space-1); color: var(--text-muted); }
.work-artifacts i { display: block; height: 64px; margin-top: var(--space-5); border-radius: var(--radius-sm); opacity: .8; }
.artifact-grid { background: repeating-linear-gradient(0deg, var(--border-hairline) 0 1px, transparent 1px 16px), repeating-linear-gradient(90deg, var(--border-hairline) 0 1px, transparent 1px 28px), var(--surface-2); }
.artifact-lines { background: linear-gradient(var(--border-strong) 0 0) 0 4px/72% 2px no-repeat, linear-gradient(var(--border-default) 0 0) 0 22px/92% 2px no-repeat, linear-gradient(var(--border-default) 0 0) 0 40px/82% 2px no-repeat, linear-gradient(var(--border-default) 0 0) 0 58px/55% 2px no-repeat; }
.artifact-checks { background: radial-gradient(circle, var(--accent-500) 0 4px, transparent 5px) 2px 6px/18px 20px repeat-y, linear-gradient(var(--border-default) 0 0) 24px 9px/75% 2px no-repeat, linear-gradient(var(--border-default) 0 0) 24px 29px/62% 2px no-repeat, linear-gradient(var(--border-default) 0 0) 24px 49px/82% 2px no-repeat; }

/* Interactive two-builder comparison. */
.builder-compare-lab { max-width: 980px; margin: var(--space-12) auto; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--accent-border); border-radius: var(--radius-xl); background: var(--surface-1); }
.compare-lab-head { max-width: 680px; margin-inline: auto; text-align: center; }
.compare-lab-head h2 { margin: var(--space-2) 0; font-size: var(--text-h2); }
.compare-lab-head p { color: var(--text-secondary); }
.compare-controls { display: grid; grid-template-columns: 1.3fr 1fr auto 1fr; gap: var(--space-3); align-items: end; margin-top: var(--space-8); }
.compare-controls label { display: grid; gap: var(--space-2); color: var(--text-secondary); font-size: var(--text-caption); }
.compare-controls input, .compare-controls select { width: 100%; min-height: 48px; padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-2); color: var(--text-primary); font: inherit; }
.compare-controls .button-primary { grid-column: 1 / -1; justify-self: center; min-width: 240px; }
.compare-swap { width: 48px; height: 48px; border: 1px solid var(--border-default); border-radius: 50%; font-size: 22px; }
.builder-compare-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-8); }
.builder-view-card { min-width: 0; padding: var(--space-6); border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-canvas); }
.builder-view-card.has-quote { border-color: var(--accent-border); }
.builder-view-top { display: flex; justify-content: space-between; gap: var(--space-3); color: var(--text-muted); font-size: var(--text-caption); }
.builder-view-card h3 { margin: var(--space-4) 0; font-size: var(--text-title); }
.builder-view-card blockquote { margin: 0 0 var(--space-4); font-family: var(--font-editorial); font-size: var(--text-title); line-height: 1.55; }
.builder-view-card p { color: var(--text-secondary); }
.coverage-label { color: var(--accent-text); font-weight: 700; }
.coverage-title { color: var(--text-primary) !important; font-weight: 700; }
.frontier-context { margin-top: var(--space-5); }
.frontier-context:empty { display: none; }
.frontier-context:not(:empty) { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-5); border-top: 1px solid var(--border-default); }
.frontier-context h3 { margin: var(--space-2) 0; }
.frontier-context p, .frontier-context li { color: var(--text-secondary); font-size: var(--text-body-sm); }
.frontier-context ul { margin: 0; padding-left: var(--space-5); }
.frontier-context li { margin-bottom: var(--space-3); }
.frontier-context li span { display: block; }
.compare-collective-head { max-width: 720px; margin: var(--space-12) auto var(--space-6); text-align: center; }

@media (max-width: 760px) {
  .home-page .section-head .link-plain { position: static; }
  .home-page .section-head { flex-direction: column; }
  .home-page .signals-grid, .profile-sidebar, .work-artifacts, .builder-compare-result, .frontier-context:not(:empty) { grid-template-columns: 1fr; }
  .compare-controls { grid-template-columns: 1fr; }
  .compare-swap { justify-self: center; transform: rotate(90deg); }
  .compare-controls .button-primary { grid-column: auto; width: 100%; min-width: 0; }
  .profile-section-head { justify-content: flex-start; text-align: left; }
  .premium-readiness { grid-template-columns: 1fr; }
}

/* ---------- Frontier tracker ---------- */
.frontier-legend {
  margin: 8px 0 26px;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 12px 14px;
}

.legend-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 12px;
  color: var(--muted);
}

.status-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status-confirmed { color: var(--confirmed); }
.status-rumored   { color: var(--developing); }
.status-speculation { color: var(--watching); }

.frontier-lab {
  border-top: 1px solid var(--rule);
  padding: 24px 0 28px;
}

.frontier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.frontier-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  margin: 0;
}

.frontier-head .model {
  color: var(--muted);
  font-size: 17px;
}

.frontier-summary {
  margin: 10px 0 0;
  max-width: 68ch;
}

.frontier-evidence li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.ev-date,
.ev-flag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
}

.ev-flag {
  color: var(--accent-text);
  border: 1px solid currentColor;
  padding: 1px 5px;
}

.ev-claim {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Open models ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
}

.open-card {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}

.open-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 6px;
}

/* ---------- Footer links (Signal + Data demoted here) ---------- */
.footer-links {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
}

.profile-elsewhere {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.profile-elsewhere a {
  color: var(--violet);
}

/* Reading list — free block on the Wire, only shown when substacks exist */
.reading-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 28px;
}

.reading-list li {
  padding: 5px 0;
  break-inside: avoid;
  font-size: 14px;
}

@media (max-width: 640px) {
  .reading-list { columns: 1; }
}


/* ============================================================
   Report B — required state styles, applied globally
   ============================================================ */

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Every number is tabular (B: "Numbers use tabular figures") */
.num,
.kv,
[class*="count"],
.press-date,
.search-row .n,
table td.num,
.mono,
code {
  font-variant-numeric: tabular-nums;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target-min);
  padding-inline: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--action-fg);
  background: var(--action-bg);
  font: 700 var(--text-body-sm) / 1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) linear;
}
.button-primary:hover {
  background: var(--action-bg-hover);
  transform: translateY(-1px);
}
.button-primary:active {
  background: var(--action-bg-active);
  transform: translateY(0) scale(0.99);
}
.button-primary:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target-min);
  padding-inline: var(--space-5);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: transparent;
  font: 650 var(--text-body-sm) / 1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) linear,
    background-color var(--duration-fast) linear;
}
.button-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-1);
}

/* Glass — B4. Opaque fallback first; only three component families may use it. */
.glass-surface {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(115%);
    backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  }
}
@media (max-width: 639px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-surface {
      -webkit-backdrop-filter: blur(var(--glass-blur-mobile)) saturate(115%);
      backdrop-filter: blur(var(--glass-blur-mobile)) saturate(115%);
    }
  }
}

/* StatusChip — colour is always redundant to icon + word (B, E7) */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 28px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font: 650 var(--text-caption) / 1 var(--font-ui);
  white-space: nowrap;
}
.status-chip .glyph {
  font-family: var(--font-data);
}
.chip-bullish { color: var(--bullish); background: var(--bullish-bg); border-color: var(--bullish-border); }
.chip-neutral { color: var(--neutral); background: var(--neutral-bg); border-color: var(--neutral-border); }
.chip-skeptical { color: var(--skeptical); background: var(--skeptical-bg); border-color: var(--skeptical-border); }
.chip-mixed { color: var(--mixed); background: var(--mixed-bg); border-color: var(--mixed-border); }
.chip-unknown { color: var(--unknown); background: var(--unknown-bg); border-color: var(--unknown-border); }

/* Skip link — first focusable element on every page (E7) */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: 0;
  z-index: var(--z-dialog);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(calc(-100% - 6px));
  transition: transform var(--duration-fast) var(--ease-standard);
}
.skip-link:focus-visible {
  transform: translateY(var(--space-3));
}

/* B5 / F4 — complete reduced-motion path */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ============================================================
   C0 / E2 / E3 — shared shell: header, IA nav, mobile bottom bar
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--bg-canvas);
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-fast) linear,
    border-color var(--duration-fast) linear;
}

/* B4.1: glass only after scrollY > 12; before that it is solid canvas */
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border-hairline);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header[data-scrolled="true"] {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(115%);
    backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header[data-scrolled="true"] { background: var(--glass-bg-strong); }
}

.header-inner {
  width: min(100% - var(--space-8) * 2, var(--content-max));
  margin-inline: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  text-decoration: none;
  color: var(--text-primary);
  flex: 0 0 auto;
}
.brand-name {
  font: 700 var(--text-body) / 1 var(--font-ui);
  letter-spacing: var(--tracking-heading);
}
.brand-mark { width: 26px; height: 26px; display: block; }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1 1 auto;
}
.header-nav a,
.header-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 var(--space-1);
  color: var(--text-muted);
  background: none;
  border: 0;
  font: 650 var(--text-body-sm) / 1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast) linear;
}
.header-nav a:hover,
.header-nav button:hover { color: var(--text-secondary); }
/* E2: active route is text-primary + 2px violet underline, never a bare colour change */
.header-nav a[aria-current="page"] {
  color: var(--text-primary);
}
.header-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--accent-500);
}

/* Intelligence menu — opaque surface-2 even if the header above is glass (E2) */
.nav-group { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  width: 320px;
  padding: var(--space-2);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  display: none;
  z-index: var(--z-sheet);
}
.nav-group[data-open="true"] .nav-menu { display: block; }
.nav-menu a {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  min-height: var(--target-min);
}
.nav-menu a:hover { background: var(--surface-3); }
.nav-menu .t { font: 650 var(--text-body-sm) / 1.3 var(--font-ui); }
.nav-menu .d {
  display: block;
  margin-top: 2px;
  font: 550 var(--text-caption) / 1.4 var(--font-ui);
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
}
.header-status {
  font: 450 var(--text-caption) / 1 var(--font-data);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* E3 — mobile bottom bar, five items, safe-area aware */
.bottom-nav {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-header);
  background: rgba(23, 23, 31, 0.96);
  border-top: 1px solid var(--border-hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--space-2) var(--space-1);
  color: var(--text-muted);
  font: 650 var(--text-micro) / 1 var(--font-ui);
  text-decoration: none;
  position: relative;
}
.bottom-nav a[aria-current="page"] { color: var(--text-primary); }
.bottom-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-500);
}

@media (max-width: 1023px) {
  .header-inner { width: min(100% - var(--space-6) * 2, var(--content-max)); gap: var(--space-4); }
  .header-status { display: none; }
}

@media (max-width: 639px) {
  .site-header, .header-inner { height: var(--header-height-mobile); }
  .header-inner { width: min(100% - var(--space-4) * 2, var(--content-max)); }
  .header-nav { display: none; }
  .bottom-nav { display: flex; }
  /* content, focused controls and inline gates must clear the bar (E3) */
  body { padding-bottom: calc(64px + var(--space-6) + env(safe-area-inset-bottom)); }
}

/* ============================================================
   C8 — paywall gate. Opaque, centred, max 560px. No fake blurred
   paragraphs, no gold, no countdown, no bouncing CTA.
   ============================================================ */
.paywall-story .preview {
  /* 48-64px fade applies to the VISIBLE preview only */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  padding-bottom: var(--space-6);
}

.paywall-gate {
  max-width: 560px;
  margin: var(--space-6) auto 0;
  padding: var(--space-8);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  text-align: center;
}

.gate-mark {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}

.gate-headline {
  font: 700 var(--text-h3) / var(--leading-heading) var(--font-ui);
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.gate-context {
  font: 450 var(--text-body-sm) / var(--leading-body) var(--font-ui);
  color: var(--text-secondary);
  margin: 0 auto var(--space-5);
  max-width: 46ch;
}

.gate-benefits {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-2);
  text-align: left;
  max-width: 42ch;
  margin-inline: auto;
}
.gate-benefits li {
  position: relative;
  padding-left: var(--space-6);
  font: 450 var(--text-body-sm) / 1.5 var(--font-ui);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.gate-benefits li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.gate-price {
  font: 450 var(--text-body) / 1 var(--font-data);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  font-variant-numeric: tabular-nums;
}
.gate-price strong { font-weight: 600; }

.paywall-cta { display: grid; gap: var(--space-3); justify-items: center; }
.paywall-terms {
  margin: 0;
  font: 450 var(--text-caption) / 1.5 var(--font-ui);
  color: var(--text-muted);
  max-width: 42ch;
}

@media (max-width: 639px) {
  .paywall-gate { padding: var(--space-6); }
  .paywall-cta .button-primary { width: 100%; min-height: 48px; }
}

/* ============================================================
   D — Learn: Builder Runway path
   ============================================================ */
.corporate-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(34rem, 1.12fr);
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: start;
  padding: var(--space-16) 0 var(--space-20);
  border-bottom: 1px solid var(--border-hairline);
}
.corporate-intro { position: sticky; top: calc(var(--header-height) + var(--space-8)); }
.corporate-h1 {
  max-width: 11ch;
  margin: var(--space-3) 0 var(--space-5);
  font: 650 var(--text-display) / .98 var(--font-editorial);
  letter-spacing: var(--tracking-display);
}
.trust-line { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-6) 0 var(--space-4); }
.trust-line span {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--bullish-border);
  border-radius: var(--radius-pill);
  color: var(--bullish);
  font: 650 var(--text-caption) / 1.2 var(--font-ui);
}
.text-link { color: var(--text-secondary); font-size: var(--text-body-sm); text-underline-offset: 4px; }
.workday-map {
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}
.workday-head { padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-hairline); }
.workday-head h2 { margin: 0 0 var(--space-2); font: 750 var(--text-h2) / 1.12 var(--font-ui); }
.workday-head p:last-child { margin: 0; color: var(--text-muted); font-size: var(--text-body-sm); }
.workday-map fieldset { margin: var(--space-6) 0 0; padding: 0; border: 0; }
.workday-map legend { width: 100%; margin-bottom: var(--space-3); font: 700 var(--text-body) / 1.4 var(--font-ui); }
.workday-map legend span {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: var(--space-2);
  border-radius: var(--radius-xs); background: var(--accent-muted); color: var(--accent-text); font-family: var(--font-data);
}
.field-help { margin: calc(-1 * var(--space-2)) 0 var(--space-3); color: var(--text-muted); font-size: var(--text-caption); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.choice-chip { position: relative; display: block; cursor: pointer; }
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip > span {
  display: flex; align-items: center; min-height: var(--target-min); padding: var(--space-3);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-2);
  color: var(--text-secondary); font: 600 var(--text-body-sm) / 1.3 var(--font-ui);
  transition: border-color var(--duration-fast), background-color var(--duration-fast), color var(--duration-fast);
}
.choice-chip input:focus-visible + span { box-shadow: var(--shadow-focus); }
.choice-chip input:checked + span { border-color: var(--accent-300); background: var(--accent-muted); color: var(--text-primary); }
.tool-choice > span { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
.tool-choice small { color: var(--text-muted); font-weight: 450; }
.map-submit { width: 100%; min-height: 48px; margin-top: var(--space-6); }
.form-status { min-height: 1.3em; margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-caption); }

.workday-result { scroll-margin-top: calc(var(--header-height) + var(--space-4)); margin: var(--space-10) 0; border: 1px solid var(--bullish-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-1); }
.result-stamp { padding: var(--space-3) var(--space-6); color: var(--bullish); background: var(--bullish-bg); border-bottom: 1px solid var(--bullish-border); font: 700 var(--text-caption) / 1.2 var(--font-data); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.result-stamp span { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: var(--space-2); border: 1px solid currentColor; border-radius: 50%; }
.result-main { padding: clamp(var(--space-6), 5vw, var(--space-10)); }
.result-main h2 { max-width: 20ch; margin: 0 0 var(--space-3); font: 700 var(--text-h2) / 1.15 var(--font-editorial); }
.result-main > p:not(.node-eyebrow) { max-width: 62ch; color: var(--text-secondary); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-6) 0; }
.result-grid div { padding: var(--space-4); border-left: 2px solid var(--accent-border); background: var(--surface-2); }
.result-grid span { display: block; margin-bottom: var(--space-2); color: var(--text-muted); font: 700 var(--text-micro) / 1.2 var(--font-ui); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.result-grid strong { font: 550 var(--text-body-sm) / 1.45 var(--font-ui); }
.result-main > .button-secondary { margin-left: var(--space-2); }

.safety-desk { scroll-margin-top: calc(var(--header-height) + var(--space-4)); margin: var(--space-16) 0; padding: clamp(var(--space-6), 5vw, var(--space-10)); border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--surface-inset); }
.safety-copy { display: grid; grid-template-columns: .7fr 1fr; gap: var(--space-8); align-items: end; }
.safety-copy .node-eyebrow { grid-column: 1 / -1; margin-bottom: calc(-1 * var(--space-5)); }
.safety-copy h2 { margin: 0; font: 700 var(--text-h2) / 1.1 var(--font-editorial); }
.safety-copy p { margin: 0; color: var(--text-secondary); }
.traffic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: var(--space-8); overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--border-default); }
.traffic { padding: var(--space-5); background: var(--surface-1); }
.traffic strong, .traffic span { display: block; }
.traffic strong { margin-bottom: var(--space-2); font-size: var(--text-body-sm); }
.traffic span { color: var(--text-muted); font-size: var(--text-caption); line-height: 1.5; }
.traffic.green strong { color: var(--success); } .traffic.amber strong { color: var(--warning); } .traffic.red strong { color: var(--danger); }
.legal-note { margin: var(--space-4) 0 0; color: var(--text-muted); font-size: var(--text-caption); }
.course-intro { padding-top: var(--space-8); border-top: 1px solid var(--border-hairline); }
.learn-h1 {
  font: 800 var(--text-h1) / var(--leading-heading) var(--font-ui);
  letter-spacing: var(--tracking-heading);
  margin: var(--space-2) 0 var(--space-3);
}
.learn-promise {
  font: 450 var(--text-body-lg) / var(--leading-body) var(--font-ui);
  color: var(--text-secondary);
  max-width: var(--reading-max);
  margin: 0 0 var(--space-2);
}
.learn-sub { color: var(--text-muted); font-size: var(--text-body-sm); margin: 0; }
.learn-notice {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

.learn-layout {
  display: grid;
  grid-template-columns: 1fr var(--aside-width);
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-10);
}

.learn-path { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }

.path-node {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.path-node.is-current { background: var(--surface-2); border-color: var(--accent-border); box-shadow: var(--shadow-1), 0 0 0 2px var(--accent-muted); }
.path-node.is-complete { border-left: 3px solid var(--bullish); }
.path-node.is-locked { opacity: 0.86; }

/* Illustration slot — Higgsfield art drops in here later (D7) */
.node-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  font: 700 var(--text-micro) / 1 var(--font-ui);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.node-eyebrow {
  font: 700 var(--text-micro) / 1.4 var(--font-ui);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
  font-variant-numeric: tabular-nums;
}
.node-title { font: 750 var(--text-h3) / 1.2 var(--font-ui); margin: 0 0 var(--space-2); }
.node-outcome { margin: 0 0 var(--space-3); color: var(--text-secondary); font-size: var(--text-body-sm); }
.node-status { margin: 0 0 var(--space-3); font-size: var(--text-body-sm); color: var(--text-muted); display: flex; align-items: center; gap: var(--space-2); }
.node-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.is-complete .node-status { color: var(--bullish); }
.is-current .node-status { color: var(--accent-text); }

.node-progress { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.node-progress .num, .panel-meta.num, .node-lessons .num { font-family: var(--font-data); font-size: var(--text-data); font-variant-numeric: tabular-nums; color: var(--text-muted); }
progress { width: 100%; height: 6px; appearance: none; border: 0; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-3); }
progress::-webkit-progress-value { background: var(--accent-500); }
progress::-moz-progress-bar { background: var(--accent-500); }

.node-lessons { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-1); font-size: var(--text-body-sm); color: var(--text-secondary); }
.node-lessons .done { color: var(--text-muted); text-decoration: line-through; }
.node-lessons .cp { color: var(--accent-text); }

.learn-panel {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
}
.panel-figure { font: 600 2.5rem / 1 var(--font-data); margin: 0 0 var(--space-3); font-variant-numeric: tabular-nums; }
.panel-figure span { font-size: 1rem; color: var(--text-muted); }
.panel-meta { margin: var(--space-2) 0 0; font-size: var(--text-data); }
.badge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-body-sm); }
.badge-list li { color: var(--text-muted); }
.badge-list li.earned { color: var(--text-primary); }
.badge-list .d { display: block; font-size: var(--text-caption); color: var(--text-muted); }
.panel-note { font-size: var(--text-caption); color: var(--text-muted); margin: 0; }
.panel-actions { display: grid; gap: var(--space-2); }

@media (max-width: 1023px) {
  .corporate-hero { grid-template-columns: 1fr; }
  .corporate-intro { position: static; }
  .corporate-h1 { max-width: 14ch; }
  .learn-layout { grid-template-columns: 1fr; }
  .learn-panel { position: static; }
}
@media (max-width: 639px) {
  .corporate-hero { padding-top: var(--space-8); }
  .choice-grid, .result-grid, .traffic-grid, .safety-copy { grid-template-columns: 1fr; }
  .safety-copy .node-eyebrow { grid-column: auto; margin-bottom: 0; }
  .result-main > .button-primary, .result-main > .button-secondary { width: 100%; margin: var(--space-2) 0 0; }
  .path-node { grid-template-columns: 1fr; }
  .node-art { aspect-ratio: auto; min-height: 4rem; }
}

/* ============================================================
   Learn — lesson screens. One screen at a time, so the desktop
   and 390px layouts are the same single column.
   ============================================================ */
.lesson-view {
  max-width: var(--reading-max);
  margin: var(--space-8) auto 0;
}

.lesson-bar { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.lesson-exit { justify-self: start; }
.lesson-where {
  margin: 0;
  font: 450 var(--text-data) / 1.4 var(--font-data);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.lesson-screen {
  padding: var(--space-8);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
}
.lesson-heading {
  font: 750 var(--text-h3) / var(--leading-heading) var(--font-ui);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 var(--space-4);
}
.lesson-body {
  font: 450 var(--text-body-lg) / var(--leading-body) var(--font-ui);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
  max-width: 68ch;
}
.lesson-example, .lesson-tryit {
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border-left: 3px solid var(--border-default);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}
.lesson-tryit { border-left-color: var(--accent-500); }
.lesson-tryit p { margin: 0; }
.lesson-example .lbl, .lesson-tryit .lbl {
  display: block;
  font: 700 var(--text-micro) / 1.4 var(--font-ui);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.quiz { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--border-hairline); }
.quiz-question { font: 650 var(--text-body) / 1.5 var(--font-ui); margin: 0 0 var(--space-4); }
.quiz-options { display: grid; gap: var(--space-2); }
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font: 450 var(--text-body-sm) / 1.4 var(--font-ui);
  cursor: pointer;
  transition: border-color var(--duration-fast) linear, background-color var(--duration-fast) linear;
}
.quiz-option:hover:not(:disabled) { border-color: var(--border-hover); background: var(--surface-3); }
.quiz-option:disabled { cursor: default; }
.quiz-option.is-correct { border-color: var(--bullish-border); background: var(--bullish-bg); color: var(--bullish); }
.quiz-option.is-wrong { border-color: var(--skeptical-border); background: var(--skeptical-bg); color: var(--skeptical); }
.quiz-mark { width: 1em; font-family: var(--font-data); }

.quiz-feedback {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border-default);
  background: var(--bg-subtle);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}
.quiz-feedback.ok { border-left-color: var(--bullish); }
.quiz-feedback.no { border-left-color: var(--skeptical); }
.quiz-feedback strong { display: block; margin-bottom: var(--space-2); color: var(--text-primary); }
.quiz-feedback p { margin: 0; }

.lesson-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.lesson-hint { margin: var(--space-3) 0 0; font-size: var(--text-caption); color: var(--text-muted); text-align: right; }

.cp-result {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--surface-2);
}
.cp-result.ok { border-color: var(--bullish-border); }
.cp-result h3 { font: 750 var(--text-title) / 1.3 var(--font-ui); margin: 0 0 var(--space-2); }
.cp-result p { margin: 0 0 var(--space-2); color: var(--text-secondary); font-size: var(--text-body-sm); }

@media (max-width: 639px) {
  .lesson-screen { padding: var(--space-5); }
  .lesson-actions { flex-direction: column-reverse; align-items: stretch; }
  .lesson-actions .button-primary, .lesson-actions .button-secondary { width: 100%; min-height: 48px; }
  .lesson-hint { text-align: left; }
}

/* Mobile "More" — a labelled sheet of choices, not a silent redirect */
.more-trigger {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: 0;
  color: var(--text-muted);
  font: 650 var(--text-micro) / 1 var(--font-ui);
  cursor: pointer;
}
.more-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  background: var(--surface-scrim);
  display: flex;
  align-items: flex-end;
}
.more-sheet[hidden] { display: none; }
.more-panel {
  width: 100%;
  max-height: min(88dvh, 720px);
  overflow-y: auto;
  background: var(--surface-2);
  border-top: 1px solid var(--border-default);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-5) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-3);
}
.more-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.more-head h2 { font: 750 var(--text-title) / 1.2 var(--font-ui); margin: 0; }
.more-close {
  width: var(--target-min); height: var(--target-min);
  background: none; border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 22px; line-height: 1; cursor: pointer;
}
.more-panel nav { display: grid; gap: var(--space-2); }
.more-panel a {
  display: block;
  min-height: var(--target-min);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-primary);
  text-decoration: none;
  font: 650 var(--text-body-sm) / 1.3 var(--font-ui);
}
.more-panel a span { display: block; margin-top: 2px; font: 450 var(--text-caption) / 1.4 var(--font-ui); color: var(--text-muted); }

/* ============================================================
   Premium modules — Breakthrough Radar, Tool Movers, Contrarian Map
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bt-card, .cm-card {
  padding: var(--space-6);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
}
.bt-card h3, .cm-card h3 {
  font: 750 var(--text-title) / 1.3 var(--font-ui);
  margin: var(--space-2) 0 var(--space-2);
}
.bt-meta, .cm-denominator {
  font: 450 var(--text-data) / 1.5 var(--font-data);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--space-3);
}
.bt-card blockquote, .cm-counter blockquote {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
  border-left: 3px solid var(--accent-500);
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
}
.bt-note {
  margin: 0;
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.movers-table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; }
.movers-table th, .movers-table td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--border-hairline);
  text-align: left;
  font-size: var(--text-body-sm);
}
.movers-table th { font: 650 var(--text-caption) / 1.3 var(--font-ui); color: var(--text-muted); }
.movers-table .num { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.mover-rising { color: var(--bullish); }
.mover-cooling { color: var(--skeptical); }
.mover-steady { color: var(--text-muted); }

.cm-bar {
  display: flex;
  gap: 2px;
  height: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-3) 0;
}
.cm-seg { min-width: 4px; display: block; }
.cm-bullish { background: var(--bullish); }
.cm-neutral { background: var(--neutral); }
.cm-skeptical { background: var(--skeptical); }
.cm-mixed { background: var(--mixed); }

.cm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0 0 var(--space-4); padding: 0; }
.cm-key { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-sm); color: var(--text-secondary); }
.cm-key .num { font-family: var(--font-data); font-size: var(--text-data); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cm-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.cm-counter {
  margin: var(--space-4) 0 var(--space-3);
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}
.cm-src { margin: 0; font-size: var(--text-caption); color: var(--text-muted); }

@media (max-width: 639px) {
  .movers-table th:nth-child(3), .movers-table td:nth-child(3) { display: none; }
  .cm-legend { gap: var(--space-3); }
}

/* ============================================================
   Round 3 — IA restructure, quiet gating, newsletter, Open Models
   ============================================================ */

.page-h1 { font: 400 var(--text-h1)/var(--leading-heading) var(--font-editorial); letter-spacing: var(--tracking-heading); margin: var(--space-2) 0 var(--space-3); }
.page-deck { font: 450 var(--text-body-lg)/var(--leading-body) var(--font-ui); color: var(--text-secondary); max-width: var(--reading-max); margin: 0 0 var(--space-3); }
.page-meta { font: 450 var(--text-data)/1.4 var(--font-data); color: var(--text-muted); margin: 0 0 var(--space-6); font-variant-numeric: tabular-nums; }
.reading { max-width: var(--reading-max); }
.reading h2 { font: 700 var(--text-h3)/1.2 var(--font-ui); margin: var(--space-8) 0 var(--space-3); }
.reading p, .reading li { color: var(--text-secondary); line-height: var(--leading-body); }
.limitation { border-left: 3px solid var(--border-default); padding-left: var(--space-4); }

/* Premium header marker — one per page, no fill, no animation */
.premium-marker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--target-min); padding: 0 var(--space-3);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font: 650 var(--text-caption)/1 var(--font-ui); white-space: nowrap; flex: 0 0 auto;
}
.premium-marker:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* One end note per page */
.end-note {
  max-width: 640px; margin: var(--space-12) 0 var(--space-8);
  padding-top: var(--space-5); border-top: 1px solid var(--border-hairline);
}
.end-note p { margin: 0 0 var(--space-2); color: var(--text-secondary); font-size: var(--text-body-sm); line-height: var(--leading-body); }
.end-note-terms { color: var(--text-muted); font-size: var(--text-caption); }
.free-preview { margin: 0 0 var(--space-4); }
.more-note { color: var(--text-muted); font-size: var(--text-body-sm); font-variant-numeric: tabular-nums; }

/* Board signals — whole row is one action */
.signal-list, .wire-stack { list-style: none; margin: 0; padding: 0; }
.signal-row, .wire-item { border-bottom: 1px solid var(--border-hairline); }
.signal-link, .wire-link {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--space-2);
  min-height: var(--target-min); padding: var(--space-4) 0; text-decoration: none; color: var(--text-primary);
}
.signal-link:hover, .wire-link:hover { background: var(--accent-soft); }
.signal-title, .wire-title { font: 650 var(--text-body)/1.4 var(--font-ui); }
.signal-meta, .wire-meta { grid-column: 1 / -1; margin: var(--space-1) 0 0; font: 450 var(--text-data)/1.4 var(--font-data); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wire-why { margin: var(--space-1) 0 var(--space-3); color: var(--text-secondary); font-size: var(--text-body-sm); }
.ext { color: var(--text-muted); font-size: var(--text-body-sm); }

/* Routes */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.route-card { padding: var(--space-6); background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); }
.route-card h2 { font: 700 var(--text-h3)/1.2 var(--font-ui); margin: 0 0 var(--space-2); }
.route-card p { color: var(--text-secondary); font-size: var(--text-body-sm); margin: 0 0 var(--space-4); }

.signals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.proof-strip { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.proof-face .face { width: 44px; height: 44px; }
.coverage-note { max-width: var(--reading-max); color: var(--text-muted); font-size: var(--text-caption); line-height: var(--leading-body); }

/* `.muted` was already used by the rails' empty states and meta lines but never
   defined, so those strings rendered at full body contrast. */
.muted { color: var(--text-muted); font-size: var(--text-caption); }
.plain-list .muted { display: block; margin-top: var(--space-1); font-variant-numeric: tabular-nums; }
#wire-articles li { padding: var(--space-3) 0; }
#wire-articles a { display: block; font-weight: 650; line-height: 1.4; }

/* Wire page */
.wire-layout { display: grid; grid-template-columns: 1fr var(--aside-width); gap: var(--space-8); align-items: start; }
.wire-rail { display: grid; gap: var(--space-8); }
.rail-title { font: 700 var(--text-title)/1.2 var(--font-ui); margin: 0 0 var(--space-2); }
.rail-note { color: var(--text-muted); font-size: var(--text-caption); margin: 0 0 var(--space-3); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); }
.chip {
  min-height: var(--target-min); padding: 0 var(--space-4);
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  background: transparent; color: var(--text-secondary);
  font: 650 var(--text-body-sm)/1 var(--font-ui); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent-muted); border-color: var(--accent-border); color: var(--text-primary); }

/* Compare */
.cm-topic { font: 700 var(--text-h3)/1.2 var(--font-ui); margin: 0 0 var(--space-2); }
.disagree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.side { padding: var(--space-5); background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); }
.side blockquote { margin: 0 0 var(--space-2); padding-left: var(--space-4); border-left: 3px solid var(--accent-500); color: var(--text-secondary); font-size: var(--text-body-sm); }

/* Premium page */
.bundle-list { max-width: var(--reading-max); padding-left: var(--space-6); }
.bundle-list li { margin-bottom: var(--space-3); color: var(--text-secondary); line-height: var(--leading-body); }
.hero-proof { margin: var(--space-4) auto 0; color: var(--accent-text); font-size: var(--text-body-sm); }
.premium-readiness { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: var(--reading-max); margin: var(--space-8) 0 var(--space-5); }
.premium-readiness > div { display: grid; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-1); }
.premium-readiness strong { color: var(--accent-text); font-family: var(--font-data); font-size: var(--text-h2); }
.premium-readiness span { color: var(--text-secondary); }
@media (max-width: 760px) {
  .premium-readiness { grid-template-columns: 1fr; }
}
.price-line { font-family: var(--font-data); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.premium-page #premium-bundle { width: min(100%, var(--reading-max)); margin-inline: auto; }
.premium-page .price-line {
  width: fit-content;
  max-width: 100%;
  margin: var(--space-6) auto;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  text-align: center;
  line-height: 1.5;
}
.premium-page #premium-signup { width: min(100%, 860px); margin-inline: auto; }

/* Newsletter */
.nl-form { max-width: var(--reading-max); display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); }
.nl-intro { margin: 0; color: var(--text-secondary); }
.nl-field { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.nl-field label, .nl-field legend { font: 650 var(--text-body-sm)/1.3 var(--font-ui); color: var(--text-primary); padding: 0; }
.nl-field input[type="email"] {
  min-height: var(--target-min); padding: 0 var(--space-4);
  background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  color: var(--text-primary); font: 450 var(--text-body)/1 var(--font-ui);
}
.nl-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.nl-option { display: flex; align-items: center; gap: var(--space-3); min-height: var(--target-min); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-body-sm); }
.nl-option:has(input:checked) { border-color: var(--accent-border); background: var(--accent-muted); }
.nl-micro { margin: 0; color: var(--text-muted); font-size: var(--text-caption); }
.nl-status { margin: 0; font-size: var(--text-body-sm); }
.nl-status.is-error { color: var(--skeptical); }
.nl-status.is-pending { color: var(--text-secondary); }

/* Open Models cards */
.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.om-card { padding: var(--space-5); background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); display: grid; gap: var(--space-2); align-content: start; }
.om-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.om-head h3 { font: 700 var(--text-title)/1.2 var(--font-ui); margin: 0; }
.om-maker { font-family: var(--font-data); font-size: var(--text-data); color: var(--text-muted); }
.om-card p { margin: 0; font-size: var(--text-body-sm); color: var(--text-secondary); }
.om-card .lbl { display: block; font: 700 var(--text-micro)/1.4 var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.om-badge { display: inline-block; padding: 2px var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-pill); font-family: var(--font-data); font-size: var(--text-caption); color: var(--text-primary); text-decoration: none; }
.om-caution { display: block; margin-top: var(--space-2); font-size: var(--text-caption); color: var(--text-muted); }
.om-compare { display: flex; align-items: center; gap: var(--space-2); min-height: var(--target-min); font-size: var(--text-body-sm); cursor: pointer; }
.om-tray { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: var(--space-6) 0 var(--space-3); }
.om-compare-table { width: 100%; border-collapse: collapse; }
.om-compare-table th, .om-compare-table td { padding: var(--space-3); border-bottom: 1px solid var(--border-hairline); text-align: left; font-size: var(--text-body-sm); }

@media (max-width: 1023px) {
  .wire-layout, .signals-grid, .routes, .disagree-grid, .om-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .nl-options { grid-template-columns: 1fr; }
  /* IA_AUDIT keeps the marker in the sticky header on mobile too — compact,
     never a floating overlay and never displacing primary navigation. */
  .premium-marker { padding: 0 var(--space-2); font-size: var(--text-micro); }
  .premium-marker .label-long { display: none; }
}

/* Creators table on mobile: the subscriber figure was clipping. Give the
   numeric columns room and let the name wrap instead of the number. */
@media (max-width: 639px) {
  .creator-row, .creators-table tr { font-size: var(--text-body-sm); }
  /* Data cells stay on one line; the HEADER may wrap so a long label like
     "Subscribers" is never clipped at 390px. */
  .ledger-row .col-subs, .ledger-row .col-median, .ledger-row .col-cadence,
  td.col-subs, td.col-median, td.col-cadence {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 6.5ch;
    text-align: right;
  }
  .ledger-head button, .ledger-head .col-subs, .ledger-head .col-median, .ledger-head .col-cadence {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    text-align: right;
    min-width: 0;
  }
  .creators-table td:first-child, .creator-row .name { min-width: 0; overflow-wrap: anywhere; }
}

.nl-status.is-ok { color: var(--bullish); }

/* Builder directory v2 — semantic table, one optical grid, no dead accordion. */
.active-filters { min-height: var(--space-3); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); color: var(--text-muted); font-size: var(--text-caption); }
.active-filters button { min-height: 32px; padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-pill); color: var(--text-secondary); }
.active-filters button:last-child { border-color: transparent; text-decoration: underline; }
.builder-table-wrap { overflow-x: auto; border-block: 1px solid var(--border-strong); }
.builder-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
.builder-table th { height: 48px; padding: 0 var(--space-4); color: var(--text-muted); font: 650 var(--text-micro)/1.3 var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--border-default); }
.builder-table th:nth-child(1) { width: 36%; }
.builder-table th:nth-child(2) { width: 17%; }
.builder-table th:nth-child(3) { width: 11%; }
.builder-table th:nth-child(4) { width: 14%; }
.builder-table th:nth-child(5) { width: 16%; }
.builder-table th:nth-child(6) { width: 6%; }
.builder-table th.num, .builder-table td.num { text-align: right; }
.builder-table th button { min-height: var(--target-min); color: inherit; letter-spacing: inherit; text-transform: inherit; }
.builder-table th button.active { color: var(--text-primary); }
.builder-table td { min-height: 72px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-hairline); color: var(--text-secondary); font-size: var(--text-body-sm); vertical-align: middle; }
.builder-table tbody tr { transition: background var(--duration-fast) var(--ease-standard); }
.builder-table tbody tr:hover, .builder-table tbody tr:focus-within { background: var(--surface-1); }
.builder-identity { display: flex; align-items: center; gap: var(--space-3); color: var(--text-primary); text-decoration: none; min-height: var(--target-min); }
.builder-identity .face { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.builder-identity span { min-width: 0; }
.builder-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.builder-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; color: var(--text-muted); font-size: var(--text-caption); }
.focus-label { color: var(--text-secondary); }
.coverage-status { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.coverage-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--unknown); }
.coverage-status.is-recent i { background: var(--mixed); }
.coverage-status.is-evidence i { background: var(--bullish); }
.row-action { text-align: right; }
.row-action a { display: inline-flex; min-height: var(--target-min); align-items: center; text-decoration: none; color: var(--accent-text); }
.directory-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; color: var(--text-muted); font: 450 var(--text-caption)/1.4 var(--font-data); }
.directory-pagination p { margin: 0; }
.directory-pagination div { display: flex; align-items: center; gap: var(--space-3); }
.directory-pagination button { min-height: var(--target-min); padding: 0 var(--space-4); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.directory-pagination button:disabled { opacity: .38; cursor: not-allowed; }

/* Builder profile — evidence-first, with a stable 8/4 column structure. */
.breadcrumb { display: flex; gap: var(--space-2); margin-top: var(--space-6); color: var(--text-muted); font-size: var(--text-body-sm); }
.builder-profile-hero { padding: var(--space-12) 0 var(--space-10); border-bottom: 1px solid var(--border-default); }
.profile-kicker { display: flex; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); color: var(--text-muted); font: 500 var(--text-caption)/1.4 var(--font-data); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.profile-identity { display: flex; align-items: center; gap: var(--space-5); }
.profile-identity .profile-face { width: 80px; height: 80px; border-radius: var(--radius-md); }
.profile-identity h1 { margin: 0; font: 400 var(--text-h1)/var(--leading-heading) var(--font-editorial); letter-spacing: var(--tracking-heading); }
.profile-focus { margin: var(--space-2) 0 0; color: var(--accent-text); font-size: var(--text-body-sm); }
.builder-profile-hero .profile-bio { max-width: 48rem; margin: var(--space-6) 0 0; color: var(--text-secondary); font-size: var(--text-body-lg); }
.profile-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.profile-links a { display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-4); border: 1px solid var(--border-default); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--text-body-sm); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--space-12); padding: var(--space-10) 0 var(--space-16); }
.profile-main { min-width: 0; }
.profile-section { padding: 0 0 var(--space-12); margin: 0 0 var(--space-12); border-bottom: 1px solid var(--border-hairline); }
.profile-section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.eyebrow { display: block; margin-bottom: var(--space-2); color: var(--accent-text); font: 650 var(--text-micro)/1.4 var(--font-ui); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.profile-section h2 { margin: 0; font: 400 var(--text-h2)/var(--leading-heading) var(--font-editorial); }
.section-count { color: var(--text-muted); font: 500 var(--text-data)/1 var(--font-data); }
.source-feed { list-style: none; padding: 0; margin: 0; }
.source-feed li { display: grid; grid-template-columns: 10ch 1fr; gap: var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--border-hairline); }
.source-feed time { color: var(--text-muted); font: 450 var(--text-caption)/1.5 var(--font-data); }
.source-feed a { display: inline-block; color: var(--text-primary); font-weight: 650; text-decoration: none; }
.source-feed li span { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-caption); }
.useful-empty { padding: var(--space-6); border-left: 3px solid var(--border-strong); background: var(--surface-1); }
.useful-empty strong { display: block; color: var(--text-primary); }
.useful-empty p { max-width: 42rem; margin: var(--space-2) 0; color: var(--text-secondary); font-size: var(--text-body-sm); }
.evidence-list { display: grid; gap: var(--space-4); }
.evidence-list article { padding: var(--space-5); border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-1); }
.evidence-list article > div { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); color: var(--text-muted); font: 500 var(--text-caption)/1.4 var(--font-data); }
.evidence-list time { margin-left: auto; }
.evidence-list blockquote { margin: var(--space-5) 0; color: var(--text-primary); font: 400 var(--text-title)/1.55 var(--font-editorial); }
.stance-badge { padding: 2px var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-pill); text-transform: uppercase; }
.stance-badge.is-bullish { color: var(--bullish); border-color: var(--bullish-border); }
.stance-badge.is-skeptical { color: var(--skeptical); border-color: var(--skeptical-border); }
.stance-badge.is-mixed { color: var(--mixed); border-color: var(--mixed-border); }
.tool-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.tool-evidence li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); }
.tool-evidence a { color: var(--text-muted); font-size: var(--text-caption); }
.profile-sidebar { display: grid; align-content: start; gap: var(--space-6); }
.profile-sidebar section { padding: var(--space-5); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); background: var(--surface-1); }
.profile-sidebar dl { margin: 0; }
.profile-sidebar dl div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); }
.profile-sidebar dl div:last-child { border: 0; }
.profile-sidebar dt { color: var(--text-muted); font-size: var(--text-caption); }
.profile-sidebar dd { margin: 0; color: var(--text-primary); font: 500 var(--text-data)/1.4 var(--font-data); text-align: right; }
.profile-sidebar ul { list-style: none; padding: 0; margin: 0; }
.profile-sidebar li a { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; text-decoration: none; font-size: var(--text-body-sm); }

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .dir-toolbar { align-items: stretch; }
  .filter-line { gap: var(--space-2); }
  .filter-line .sep { display: none; }
  .filter-line button { min-height: 38px; padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-pill); margin: 0; }
  .search-inline { flex-basis: 100%; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
  .builder-table { min-width: 0; table-layout: auto; }
  .builder-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .builder-table tbody, .builder-table tr, .builder-table td { display: block; }
  .builder-table tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--border-default); }
  .builder-table td { min-height: 0; padding: var(--space-2) var(--space-1); border: 0; text-align: left !important; }
  .builder-table td:not(:first-child):not(.row-action)::before { content: attr(data-label); display: inline-block; width: 8ch; margin-right: var(--space-3); color: var(--text-muted); font-size: var(--text-caption); }
  .row-action a { width: 100%; justify-content: space-between; margin-top: var(--space-2); padding: 0 var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
  .builder-identity strong, .builder-identity small { white-space: normal; }
  .directory-pagination { align-items: flex-start; flex-direction: column; }
  .profile-kicker { flex-direction: column; }
  .profile-identity { align-items: flex-start; }
  .profile-identity .profile-face { width: 64px; height: 64px; }
  .profile-layout { gap: var(--space-6); }
  .profile-sidebar, .tool-evidence { grid-template-columns: 1fr; }
  .source-feed li { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ============================================================
   Nas-inspired composition pass — centred, calm, readable.
   This borrows layout grammar (not branding): a floating capsule,
   centred thesis blocks, restrained type and generous negative space.
   ============================================================ */

body { font-size: 16px; }

.site-header {
  height: 92px;
  padding-top: 14px;
  background: transparent;
  border: 0;
}
.site-header[data-scrolled="true"] { background: transparent; border: 0; }
.header-inner {
  width: min(calc(100% - 40px), 1000px);
  height: 64px;
  padding: 0 18px;
  gap: var(--space-5);
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
}
.header-status { display: none; }
.header-nav { justify-content: center; gap: var(--space-4); }
.header-nav a,
.header-nav button { font-size: 14px; }
.header-nav a[aria-current="page"]::after { bottom: 8px; border-radius: var(--radius-pill); }
.premium-marker { border-radius: var(--radius-pill); }

.page,
.colophon-inner {
  width: min(calc(100% - 64px), 1184px);
  margin-inline: auto;
}
.page { padding-bottom: var(--space-20); }

/* Page theses sit on the centre line. Data and editorial bodies remain wide. */
.hero {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 8vw, 96px);
  text-align: center;
  border-bottom: 0;
}
.hero-h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--font-ui);
  font-size: clamp(40px, 4.25vw, 54px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.hero-sub {
  max-width: 62ch;
  margin: var(--space-5) auto 0;
  color: var(--text-secondary);
  font-size: var(--text-body-lg);
  line-height: 1.65;
}
.hero-search { max-width: 720px; margin: var(--space-8) auto 0; text-align: left; }
.search-label-main { display: block; text-align: center; font-size: var(--text-body-sm); }
.search-input {
  min-height: 58px;
  margin-top: var(--space-3);
  padding-inline: var(--space-6);
  border-radius: var(--radius-pill);
  font-size: 16px;
  box-shadow: var(--shadow-1);
}
.search-hint { text-align: center; font-size: var(--text-caption); }

.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-title { font-size: var(--text-h2); line-height: 1.15; }
.section-note { font-size: 16px; line-height: 1.65; }
.link-plain { font-size: 14px; }
.tag-wire,
.tag-take,
.node-eyebrow,
.eyebrow { font-size: 12px; }

.page > .section:first-child > .page-h1,
.page > .section:first-child > .page-deck,
.page > .section:first-child > .page-meta,
.page > .section:first-child > .section-title,
.page > .section:first-child > .section-note,
.page > .section:first-child > .node-eyebrow {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page > .section:first-child > .page-h1,
.page > .section:first-child > .section-title { max-width: 22ch; }
.page > .section:first-child > h1.section-title { font-size: var(--text-h1); }
.page > .section:first-child > .page-deck,
.page > .section:first-child > .section-note { max-width: 66ch; }
.page > .section:first-child > .section-head {
  justify-content: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.page-h1 { font-size: var(--text-h1); line-height: 1.08; }
.page-deck { font-size: var(--text-body-lg); text-align: center; }

.routes { max-width: 960px; margin-inline: auto; }
.route-card { padding: var(--space-8); text-align: center; border-radius: var(--radius-xl); }
.route-card p { max-width: 44ch; margin-left: auto; margin-right: auto; font-size: var(--text-body-sm); }
.button-primary,
.button-secondary { border-radius: var(--radius-pill); }
.signals-grid,
#tool-movers,
.proof-strip,
#home-newsletter,
#learn-callout > :not(.section-head) { max-width: 980px; margin-left: auto; margin-right: auto; }
#learn-callout,
#newsletter-section { text-align: center; }
#learn-callout .section-head,
#newsletter-section .section-head { justify-content: center; }
#learn-callout .section-note { margin-left: auto; margin-right: auto; }
.coverage-note { margin-left: auto; margin-right: auto; text-align: center; font-size: var(--text-caption); }

/* Wide content still shares one stable centre axis. */
.wire-layout,
.builder-table-wrap,
.directory-pagination,
.dir-toolbar,
.active-filters,
.filter-chips,
.signal-grid-page,
.om-grid,
.rank-sheet,
.paywall-story { margin-left: auto; margin-right: auto; }
.wire-layout { max-width: 1080px; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: var(--space-12); }
.filter-chips { justify-content: center; }
.dir-toolbar { max-width: 1080px; margin-top: var(--space-8); }
.active-filters,
.builder-table-wrap,
.directory-pagination { max-width: 1080px; }
.builder-table td { font-size: 14px; }
.builder-table th { font-size: 12px; }

/* Corporate guide: the questionnaire is the centred focal object. */
.corporate-hero {
  max-width: 980px;
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding: clamp(64px, 8vw, 96px) 0;
}
.corporate-intro { position: static; max-width: 760px; margin-inline: auto; text-align: center; }
.corporate-h1 { max-width: 15ch; margin-left: auto; margin-right: auto; font-size: clamp(38px, 4.1vw, 52px); }
.trust-line { justify-content: center; }
.workday-map { width: min(100%, 820px); margin-inline: auto; border-radius: var(--radius-xl); }
.safety-desk,
.course-intro,
.learn-layout,
.workday-result { max-width: 1040px; margin-left: auto; margin-right: auto; }
.course-intro { text-align: center; }
.course-intro .learn-sub { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Builder profiles: richer facts, centred identity, balanced body. */
.breadcrumb { max-width: 1040px; margin-left: auto; margin-right: auto; }
.builder-profile-hero { max-width: 960px; margin-inline: auto; padding: clamp(56px, 7vw, 88px) 0; text-align: center; }
.profile-kicker { justify-content: center; }
.profile-identity { justify-content: center; }
.builder-profile-hero .profile-bio { margin-left: auto; margin-right: auto; font-size: var(--text-body-lg); line-height: 1.65; }
.profile-links { justify-content: center; }
.profile-layout { max-width: 960px; margin-inline: auto; grid-template-columns: 1fr; gap: var(--space-8); }
.profile-section-head { position: relative; justify-content: center; text-align: center; }
.profile-section-head .section-count { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.profile-overview > p { max-width: 68ch; margin-left: auto; margin-right: auto; color: var(--text-secondary); font-size: 16px; line-height: 1.7; text-align: center; }
.profile-fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.profile-fact-grid > div { min-height: 112px; padding: var(--space-5); background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); }
.profile-fact-grid span,
.profile-top-work > span { display: block; margin-bottom: var(--space-2); color: var(--text-muted); font-size: var(--text-caption); }
.profile-fact-grid strong,
.profile-top-work strong { display: block; color: var(--text-primary); font-size: var(--text-body); line-height: 1.45; }
.profile-top-work { margin-top: var(--space-3); padding: var(--space-5); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); background: var(--accent-soft); }
.profile-top-work small { display: block; margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-caption); }
.profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-sidebar section { min-width: 0; border-radius: var(--radius-lg); }
.source-feed a { font-size: 16px; line-height: 1.5; }
.useful-empty p { font-size: 14px; }

.colophon { border-top: 0; }
.colophon-inner { padding: var(--space-12) var(--space-8); margin-bottom: var(--space-6); background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); text-align: center; }
.footer-summary { margin-left: auto; margin-right: auto; font-size: 14px; }

@media (max-width: 1023px) {
  .header-inner { width: min(calc(100% - 32px), 920px); }
  .header-nav { gap: var(--space-2); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .site-header { height: 72px; padding-top: 8px; }
  .header-inner { width: calc(100% - 16px); height: 56px; padding: 0 12px; }
  .header-inner .premium-marker { min-width: 76px; margin-left: auto; justify-content: center; }
  .page,
  .colophon-inner { width: min(calc(100% - 32px), 1184px); }
  .hero { padding: 52px 0 48px; }
  .hero-h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.08; }
  .hero-sub { font-size: 16px; }
  .section { padding: 40px 0; }
  .section-title,
  .page-h1 { font-size: clamp(28px, 8vw, 34px); }
  .page > .section:first-child > h1.section-title { font-size: clamp(30px, 8.5vw, 36px); }
  .section-note,
  .page-deck { font-size: 15px; }
  .profile-identity { flex-direction: column; align-items: center; }
  .profile-identity h1 { font-size: clamp(32px, 10vw, 42px); }
  .profile-kicker { align-items: center; }
  .profile-section-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .profile-section-head .section-count { position: static; transform: none; }
  .profile-fact-grid,
  .profile-sidebar { grid-template-columns: 1fr; }
  .colophon-inner { padding: var(--space-8) var(--space-5); }
}

/* ============================================================
   Quiet motion and ambient signal — content rises into view as the
   reader reaches it. Motion never hides content when JS is unavailable.
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48rem 30rem at 50% -12rem, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(32rem 24rem at 96% 42%, rgba(167, 139, 250, .055), transparent 72%);
}
.page, .colophon { position: relative; }
.site-header, .bottom-nav { z-index: var(--z-header); }
.page, .colophon { z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal] {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(26px);
    transition:
      opacity 620ms var(--ease-standard) var(--reveal-delay, 0ms),
      transform 720ms var(--ease-standard) var(--reveal-delay, 0ms),
      filter 620ms var(--ease-standard) var(--reveal-delay, 0ms);
  }
  .motion-ready [data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  .button-primary, .button-secondary, .premium-marker, .home-tool,
  .tool-row-link, .profile-links a, .source-feed a {
    transition: transform 160ms var(--ease-standard), border-color 160ms linear,
      background-color 160ms linear, color 160ms linear;
  }
  .button-primary:active, .button-secondary:active, .premium-marker:active,
  .home-tool:active, .tool-row-link:active, .profile-links a:active {
    transform: scale(.975);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .route-card, .profile-fact-grid > div, .profile-sidebar > section,
  .work-artifacts > article, .builder-view-card {
    transition: transform 220ms var(--ease-standard), border-color 220ms linear,
      box-shadow 220ms var(--ease-standard);
  }
  .route-card:hover, .profile-fact-grid > div:hover, .profile-sidebar > section:hover,
  .work-artifacts > article:hover, .builder-view-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
    box-shadow: 0 18px 48px rgba(5, 5, 9, .22);
  }
}

@media (max-width: 760px) {
  .home-page .section-head { align-items: center; justify-content: center; text-align: center; }
  .profile-section-head { align-items: center; justify-content: center; text-align: center; }
  .profile-section-head .section-count { position: static; transform: none; }
}

/* ============================================================
   Final phone-density pass — preserve the desktop reading rhythm while
   keeping 375–430px screens calm, tappable and clear of the mobile dock.
   ============================================================ */
@media (max-width: 639px) {
  html { scroll-padding-bottom: 96px; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .bottom-nav {
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    padding: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface-2) 96%, transparent);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .bottom-nav a,
  .bottom-nav button {
    min-width: 0;
    min-height: 52px;
    padding: 8px 3px;
    font-size: 10px;
  }
  .bottom-nav a[aria-current="page"]::before {
    top: 5px;
    left: 34%;
    right: 34%;
    border-radius: var(--radius-pill);
  }

  .hero { padding: 44px 0 32px; }
  .section { padding: 34px 0; }
  .page { padding-bottom: var(--space-12); }
  .page-deck,
  .hero-sub { line-height: 1.55; }
  .colophon-inner { margin-bottom: var(--space-10); }

  /* The mobile directory is a scannable index, not thirty expanded records. */
  .builder-table tr { padding: var(--space-3) 0 var(--space-4); }
  .builder-table td { padding-block: 5px; }
  .builder-identity small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .builder-table td[data-label="Cadence"] { display: none; }
  .builder-table td:not(:first-child):not(.row-action)::before { width: 7ch; }

  /* Locked stages stay informative without repeating an unusable lesson list. */
  .path-node { gap: var(--space-3); padding: var(--space-4); }
  .node-art { min-height: 46px; }
  .path-node.is-locked .node-progress,
  .path-node.is-locked .node-lessons,
  .path-node.is-locked .button-secondary { display: none; }
  .path-node.is-locked .node-status { margin-bottom: 0; }
  .learn-layout { margin-top: var(--space-6); }

  /* Keep the weekly briefing focused and comfortably above the navigation. */
  .newsletter-page .section { padding-top: var(--space-8) !important; }
  .newsletter-page .page-deck { margin-bottom: var(--space-6); }
  .nl-form { gap: var(--space-3); padding: var(--space-5) var(--space-4); }
  .nl-option { min-height: 50px; padding: var(--space-2) var(--space-3); }
  .nl-micro { line-height: 1.5; }
  .newsletter-page .reading { margin-top: var(--space-8); }
  .premium-page .price-line { margin-inline: auto; }
}
