/* Signal 37 — site styles.
   Tokens from signal37-design/public/tokens.css (generated from DESIGN.md v1.0-draft, 2026-07-05).
   Theme policy: light-primary, always. No prefers-color-scheme auto-switch (ruled 2026-07-05).
   Display type: Instrument Serif + 12% optical widening via scaleX (O2 FINAL 2026-07-05). */

:root {
  --canvas: #FBFBF8;
  --canvas-alt: #FFFFFF;
  --void: #0D0F0E;
  --ink: #0B0D0C;
  --ink-mid: #434745;
  --ink-faint: #8C908E;
  --accent: #00A36C;
  --accent-bright: #2FA483;
  --accent-deep: #007A50;
  --escalation: #E8590C;
  --escalation-bg: rgba(232, 89, 12, 0.09);
  --border: #E2E0DA;
  --border-strong: #C9C7C0;
  --line: rgba(0, 163, 108, 0.28);
  --line-peak: rgba(0, 163, 108, 0.75);
  --display-stretch: 1.12;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 18, 0.06);
  --shadow-md: 0 2px 8px rgba(17, 19, 18, 0.08);
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;
  --sp-4xl: 128px;
  /* Status layer (RAG), separate from brand color — per mockup token set */
  --raised: #F1F0EC;
  --good: #587539;
  --good-bg: rgba(88, 117, 57, 0.12);
  --warn: #8C6C3E;
  --warn-bg: rgba(140, 108, 62, 0.13);
  --accent-bg: rgba(0, 163, 108, 0.10);
  /* Dark surface (contained CTA moments) */
  --dark-bg: #0E1610;
  --dark-text: #E8EDE9;
  --dark-muted: #8A9E8D;
}

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

html {
  scrollbar-gutter: stable;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---------- Display type: Instrument Serif with the 12% optical widening.
   scaleX + transform-origin left top + width compensation so the widened
   text still fits its column. Left-aligned by design (origin is left). ---------- */
.display, h1, h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  transform: scaleX(var(--display-stretch));
  transform-origin: left top;
  width: calc(100% / var(--display-stretch));
  overflow-wrap: break-word;
}

h1, .display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.125rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.display em, h1 em, h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
}

p { color: var(--ink-mid); }
p.lead {
  font-size: 1.125rem;
  line-height: 1.75;
}
strong { color: var(--ink); font-weight: 600; }

a { color: inherit; text-decoration: none; }
main a, footer a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s linear;
}
main a:hover, footer a:hover { text-decoration-color: var(--accent-deep); }

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

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

section { margin-bottom: var(--sp-3xl); }

/* ---------- Nav (fixed-feel: sticky, backdrop blur — components page treatment) ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 244, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
nav.site {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--sp-lg) * 0.85) var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-lg);
}
.wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-block;
  transform: scaleX(var(--display-stretch));
  transform-origin: left center;
  white-space: nowrap;
}
.nav-links { display: flex; gap: var(--sp-lg); flex-wrap: wrap; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-mid);
  transition: color 0.15s linear;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent-deep); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 7px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Section label ---------- */
.section-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: var(--sp-md);
}

/* ---------- Hero ---------- */
.hero { padding: var(--sp-3xl) 0 var(--sp-md); position: relative; }
/* Only the hero that carries the motif graphic needs the tall bottom padding to hold it. */
.hero:has(.hero-motif) { padding-bottom: calc(var(--sp-2xl) + 64px); }
/* Hero motif: the signal drawing in behind the copy (components page, approved treatment) */
.hero-motif {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-motif svg { width: 100%; height: auto; display: block; }
.hero > *:not(.hero-motif) { position: relative; z-index: 1; }
.hero .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin-bottom: var(--sp-lg);
}
.hero p.lead { margin-top: var(--sp-lg); max-width: 640px; }

/* ---------- Signal separator (the motif, compact 80x24 form per the Signal page) ---------- */
.signal-sep {
  display: flex;
  justify-content: flex-start;
  margin: var(--sp-2xl) 0;
}

/* ---------- Phase rows (mono labels) ---------- */
.phase-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-lg);
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--border);
}
.phase-row:last-of-type { border-bottom: 1px solid var(--border); }
.phase-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--accent-deep);
  line-height: 1.6;
}
.phase-row p { font-size: 0.9375rem; }

/* ---------- Metachips (mockup masthead row) ---------- */
.metachips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.metachip {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-mid);
  background: var(--canvas-alt);
  white-space: nowrap;
}
.metachip.hot {
  border-color: transparent;
  background: var(--accent-bg);
  color: var(--accent-deep);
  font-weight: 600;
}

/* ---------- Panels (mockup card system) ---------- */
.panel {
  background: var(--canvas-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--sp-md) var(--sp-lg);
}
.panel-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--sp-sm);
}
.panel .fine {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: var(--sp-sm) 0 0;
}
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); margin-top: var(--sp-lg); }
.panel-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-md); margin-top: var(--sp-lg); }
@media (max-width: 720px) {
  .panel-grid-2, .panel-grid-3 { grid-template-columns: 1fr; }
}
.panel h3 { margin-bottom: var(--sp-xs); font-size: 1rem; }
.panel p { font-size: 0.875rem; line-height: 1.6; }

/* ---------- Loop strip (mockup operating-rhythm component) ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: var(--sp-lg);
}
@media (max-width: 860px) { .loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }
.loop-step {
  background: var(--canvas-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--sp-md) var(--sp-md) 14px;
}
.loop-step .n {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-deep);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.loop-step h3 { font-size: 0.9rem; margin: 0 0 4px; }
.loop-step p { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-faint); margin: 0; }
.loop-step .who {
  display: block;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
}
.loop-step .who.s37 { color: var(--ink-mid); }
.loop-step .who.both { color: var(--accent-deep); }
.loop-step .who.client { color: var(--good); }

/* ---------- Door cards (two doors in) ---------- */
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); margin-top: var(--sp-lg); }
@media (max-width: 720px) { .door-grid { grid-template-columns: 1fr; } }
.door {
  background: var(--canvas-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--sp-lg);
}
.door .door-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: var(--sp-sm);
}
.door h3 { margin-bottom: var(--sp-xs); }
.door p { font-size: 0.9rem; line-height: 1.6; }

/* ---------- Team links ---------- */
.team-link {
  display: inline-block;
  margin-top: var(--sp-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
}

/* ---------- Callout (termnote treatment) ---------- */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--canvas-alt);
  padding: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-lg);
}
.callout p { font-size: 0.9rem; line-height: 1.6; margin: 0 0 var(--sp-sm); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Status pills (RAG layer, separate from brand) ---------- */
.status {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; font-style: normal; }
.st-done { background: var(--good-bg); color: var(--good); }
.st-prog { background: var(--accent-bg); color: var(--accent-deep); }
.st-risk { background: var(--warn-bg); color: var(--warn); }
.st-idle { background: var(--raised); color: var(--ink-faint); }

/* ---------- Footstrip ---------- */
.footstrip {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-top: var(--sp-md);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--raised);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.footstrip b { color: var(--ink-mid); font-weight: 600; }

/* Review-loop: the recurring-review cadence as a connected step flow */
.review-loop {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}
.review-step {
  flex: 1 1 170px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--canvas-alt);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-md);
}
.review-step .review-n {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}
.review-step p {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}
.review-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-faint);
  font-size: 1.15rem;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .review-arrow { display: none; }
  .review-step { flex-basis: calc(50% - var(--sp-sm)); }
}

/* ---------- Dark CTA surface (contained close moment, components page) ---------- */
.cta-dark {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl) var(--sp-xl);
}
.cta-dark .section-label { color: var(--accent-bright); }
.cta-dark h2 { color: var(--dark-text); }
.cta-dark p, .cta-dark p.lead { color: var(--dark-muted); }
.cta-dark a:not(.btn) { color: var(--accent-bright); }
@media (max-width: 640px) { .cta-dark { padding: var(--sp-xl) var(--sp-lg); } }

/* ---------- Proof blocks ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}
@media (max-width: 720px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-block {
  background: var(--canvas-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
}
.proof-block h3 { margin-bottom: var(--sp-sm); }
.proof-block p { font-size: 0.875rem; line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}
.btn-primary {
  background: var(--accent-deep);
  color: #FFFFFF;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent); }
main a.btn-primary { color: #FFFFFF; text-decoration: none; }
.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink-mid); }
main a.btn-secondary { color: var(--ink); text-decoration: none; }

/* ---------- Quote / lore ---------- */
blockquote.lore {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: var(--sp-lg);
  margin: var(--sp-xl) 0;
  max-width: 620px;
}

/* ---------- Diagrams (hand-authored inline SVG) ---------- */
figure.diagram {
  margin: var(--sp-xl) 0;
}
figure.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
figure.diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(11, 13, 12, 0.04), 0 12px 32px rgba(11, 13, 12, 0.07);
}
figure.diagram figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-top: var(--sp-sm);
}

/* ---------- Placeholder marker (review builds only) ---------- */
.placeholder {
  background: var(--escalation-bg);
  border: 1px dashed var(--escalation);
  border-radius: var(--radius-md);
  color: var(--escalation);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  padding: var(--sp-sm) var(--sp-md);
  display: inline-block;
  margin: var(--sp-sm) 0;
}

/* ---------- Prose spacing ---------- */
.prose > * + * { margin-top: var(--sp-md); }
.prose h2 { margin-top: var(--sp-2xl); }
.prose h3 { margin-top: var(--sp-xl); }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--ink-mid); }
.prose li + li { margin-top: var(--sp-sm); }
.copy-list { list-style: disc; padding-left: 1.25rem; color: var(--ink-mid); max-width: 660px; }
.copy-list li + li { margin-top: var(--sp-sm); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: var(--sp-3xl);
  padding: var(--sp-xl) 0 var(--sp-2xl);
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}
footer.site p, footer.site a {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
footer.site .foot-links { display: flex; gap: var(--sp-md); }
footer.site .foot-links a { text-decoration: none; color: var(--ink-mid); }
footer.site .foot-links a:hover { color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .phase-row { grid-template-columns: 1fr; gap: var(--sp-sm); }
  .hero { padding-top: var(--sp-2xl); }

  /* Optical widening overflows on narrow screens — render headings at natural width. */
  :root { --display-stretch: 1; }

  /* Collapse the nav to a hamburger. */
  nav.site { position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--sp-xs) var(--sp-lg) var(--sp-sm);
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 1rem; }
}

/* ---------- Page-load reveal: one orchestrated stagger, nothing else moves ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
main.wrap > * { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
main.wrap > *:nth-child(1) { animation-delay: 0.05s; }
main.wrap > *:nth-child(2) { animation-delay: 0.13s; }
main.wrap > *:nth-child(3) { animation-delay: 0.21s; }
main.wrap > *:nth-child(4) { animation-delay: 0.29s; }
main.wrap > *:nth-child(5) { animation-delay: 0.37s; }
main.wrap > *:nth-child(n+6) { animation-delay: 0.45s; }

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

/* team roles (2026-07-09) */
.panel-role { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin: 2px 0 8px; }

/* ---------- Insight index: article cards (2026-07-10) ---------- */
.article-list { display: flex; flex-direction: column; gap: var(--sp-md); margin-top: var(--sp-lg); }
.article-card {
  display: block;
  background: var(--canvas-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--sp-lg);
  transition: border-color 0.15s linear, transform 0.15s ease, box-shadow 0.15s ease;
}
main a.article-card { color: inherit; text-decoration: none; }
.article-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.article-card .article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--sp-sm);
}
.article-card h3 { font-size: 1.0625rem; margin-bottom: var(--sp-xs); color: var(--ink); }
.article-card .article-dek { font-size: 0.9rem; line-height: 1.6; color: var(--ink-mid); }
/* Featured (newest) card */
.article-card.featured { border-color: var(--border-strong); box-shadow: var(--shadow-sm); padding: var(--sp-xl) var(--sp-lg); }
.article-card.featured .article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  margin-bottom: var(--sp-md);
}
.article-card.featured h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transform: scaleX(var(--display-stretch));
  transform-origin: left top;
  width: calc(100% / var(--display-stretch));
  margin-bottom: var(--sp-sm);
}
.article-card.featured .article-dek { font-size: 1.0625rem; line-height: 1.7; }

/* ---------- Article prose extras (2026-07-10) ---------- */
.prose figure.post-image { margin: var(--sp-xl) 0; }
.prose figure.post-image img { border: 1px solid var(--border); border-radius: var(--radius-lg); }
.prose figure.post-image figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-top: var(--sp-sm);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-xl) 0; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--raised);
  padding: 0.12em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  margin-bottom: var(--sp-lg);
}

/* ── Signal motif components (approved 2026-07-10) ─────────────── */
.peak37-strip { max-width: 1100px; margin: var(--sp-2xl) auto 0; padding: 0 32px; }
.noise-floor {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='48'><g stroke='%2300A36C' stroke-width='1' opacity='0.16'><line x1='7' y1='30' x2='7' y2='36'/><line x1='23' y1='28' x2='23' y2='36'/><line x1='41' y1='31' x2='41' y2='36'/><line x1='58' y1='29' x2='58' y2='36'/><line x1='77' y1='30.5' x2='77' y2='36'/><line x1='90' y1='28.5' x2='90' y2='36'/></g></svg>");
  background-size: 96px 48px; border-radius: var(--radius-lg);
}
.snr-strip { display: flex; align-items: center; gap: 20px; margin: var(--sp-md) 0 var(--sp-lg); }
.snr-strip .snr-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--ink-faint); white-space: nowrap; }
.snr-strip .snr-label.locked { color: var(--accent-deep); }
.trace { display: inline-block; position: relative; }
.trace svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; }
.threshold-callout { display: flex; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: var(--sp-lg); }
.threshold-callout .edge { flex: 0 0 44px; background: var(--escalation-bg); display: flex; align-items: center; justify-content: center; }
.threshold-callout .body { padding: 20px 24px; }
.threshold-callout .body .t { font-weight: 600; margin-bottom: 4px; }

/* ---------- Brand mark (signal-from-noise lockup, 2026-07-17) ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; }
.brand .wordmark { transform-origin: center center; }
.brandmark { width: 100%; height: 17px; display: block; transform: scaleX(var(--display-stretch)); transform-origin: center center; }
footer.site .wrap { align-items: center; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footmark { height: 20px; width: auto; display: block; }
.brand-lockup .tagline {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: lowercase;
  color: var(--ink-faint); margin: 0;
}
