/* ─── Nascens — main.css ─────────────────────────────────────────────────── */

/* Variables */
:root {
  --ink: #1a2332;
  --paper: #F0EDE5;
  --amber: #b87a20;
  --sage: #3d7067;
  --ink-light: rgba(26, 35, 50, 0.55);
  --ink-faint: rgba(26, 35, 50, 0.09);
  --body-font: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --head-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --container: 1100px;
  --radius: 4px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--head-font); line-height: 1.2; color: var(--ink); }

/* ─── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--ink-faint);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
  backdrop-filter: blur(4px);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; opacity: 0.8; }
.mark { width: 28px; height: 28px; color: var(--ink); flex-shrink: 0; }
.wordmark {
  font-family: var(--head-font);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: 0.01em;
}
nav a:hover { opacity: 1; text-decoration: none; }
nav a.active { opacity: 1; }
nav a.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  opacity: 1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
nav a.cta:hover { background: var(--amber); text-decoration: none; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer.site {
  background: var(--ink);
  color: var(--paper);
  margin-top: 6rem;
  padding: 4rem 0 2rem;
}
footer.site .container:first-child {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240, 237, 229, 0.1);
}
footer .brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
footer .brand-col .mark { width: 32px; height: 32px; color: var(--paper); }
footer .brand-col .wordmark { color: var(--paper); font-size: 1.1rem; }
footer .brand-col p { font-size: 0.82rem; opacity: 0.5; line-height: 1.6; }
footer .brand-col .brand { display: flex; align-items: center; gap: 0.55rem; }
footer h4 {
  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 1rem;
  color: var(--paper);
}
footer ul { display: flex; flex-direction: column; gap: 0.55rem; }
footer ul li a {
  color: var(--paper);
  font-size: 0.875rem;
  opacity: 0.65;
  transition: opacity 0.15s;
}
footer ul li a:hover { opacity: 1; text-decoration: none; }
.copyright {
  font-size: 0.77rem;
  opacity: 0.3;
  padding-top: 2rem;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--ink-faint);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 700px;
  margin-bottom: 1.25rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero .sub {
  font-size: 1.1rem;
  max-width: 580px;
  color: var(--ink-light);
  line-height: 1.7;
}
.hero .meta {
  font-family: var(--body-font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.38;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */
section.page-section { padding: 4.5rem 0; }
section.page-section + section.page-section { border-top: 1px solid var(--ink-faint); }
section.alt {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0;
}
section.alt h1, section.alt h2, section.alt h3, section.alt h4 { color: var(--paper); }
section.alt p, section.alt li { color: rgba(240, 237, 229, 0.75); }
section.alt .section-label { color: rgba(240, 237, 229, 0.35); }
section.alt a { color: var(--amber); }

.section-label {
  font-family: var(--body-font);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.38;
  margin-bottom: 0.65rem;
  display: block;
}
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-body {
  font-size: 1rem;
  max-width: 660px;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}
section.alt .section-body { color: rgba(240, 237, 229, 0.65); }

/* ─── Pipeline ────────────────────────────────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: stretch;
  margin: 2.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  background: white;
}
.stage {
  flex: 1;
  min-width: 130px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--ink-faint);
  transition: background 0.15s;
}
.stage:last-child { border-right: none; }
.stage:hover { background: rgba(184, 122, 32, 0.04); }
.stage-num {
  font-family: var(--body-font);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.3;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.stage-name {
  font-family: var(--head-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.35rem;
}
.stage-desc {
  font-size: 0.75rem;
  color: var(--ink-light);
  line-height: 1.45;
}
.stage-arrow {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--amber);
  font-size: 0.9rem;
  opacity: 0.5;
  background: white;
  width: 16px;
  text-align: center;
}
.stage:last-child .stage-arrow { display: none; }

/* ─── Confidence Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22em 0.6em;
  border-radius: 2px;
  vertical-align: middle;
  line-height: 1.6;
}
.badge.novel {
  background: rgba(184, 122, 32, 0.1);
  color: var(--amber);
  border: 1px solid rgba(184, 122, 32, 0.28);
}
.badge.comparable {
  background: rgba(61, 112, 103, 0.1);
  color: var(--sage);
  border: 1px solid rgba(61, 112, 103, 0.28);
}
.badge.established {
  background: rgba(26, 35, 50, 0.06);
  color: var(--ink);
  border: 1px solid rgba(26, 35, 50, 0.18);
}

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: white;
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  padding: 1.75rem;
  color: var(--ink);
}
/* Cards on dark (alt) backgrounds must override the inherited paper color */
section.alt .card { color: var(--ink); }
section.alt .card p, section.alt .card li { color: var(--ink-light); }
section.alt .card h1, section.alt .card h2,
section.alt .card h3, section.alt .card h4 { color: var(--ink); }
.card-dark {
  background: rgba(240, 237, 229, 0.04);
  border: 1px solid rgba(240, 237, 229, 0.1);
  border-radius: 6px;
  padding: 1.75rem;
}
.card h3, .card-dark h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p, .card-dark p { font-size: 0.875rem; line-height: 1.65; }
.card p { color: var(--ink-light); }
.card-dark p { color: rgba(240, 237, 229, 0.6); }

/* ─── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  font-family: var(--body-font);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(26, 35, 50, 0.45);
  text-align: left;
  padding: 0.8rem 1.25rem;
  border-bottom: 2px solid var(--ink-faint);
}
td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--ink-faint);
  vertical-align: top;
  line-height: 1.6;
  color: var(--ink);
}
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 500; }

/* ─── Scenarios ───────────────────────────────────────────────────────────── */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.scenario {
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  padding: 2rem;
  background: white;
}
.scenario .type-label {
  font-family: var(--body-font);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.scenario h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.scenario-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ink-faint);
  font-size: 0.875rem;
  gap: 1rem;
}
.scenario-row:last-child { border-bottom: none; }
.scenario-row .label { color: var(--ink-light); flex: 1; }
.scenario-row .val { font-weight: 600; color: var(--sage); flex-shrink: 0; }

/* ─── Notice / Callout ────────────────────────────────────────────────────── */
.notice {
  background: rgba(184, 122, 32, 0.06);
  border-left: 3px solid var(--amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 2.5rem 0;
}
.notice p { font-size: 0.9rem; line-height: 1.7; color: var(--ink-light); }
.notice p strong { color: var(--amber); }
.notice-dark {
  background: rgba(184, 122, 32, 0.08);
  border-left: 3px solid var(--amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 2.5rem 0;
}
.notice-dark p { font-size: 0.9rem; line-height: 1.7; color: rgba(240, 237, 229, 0.7); }
.notice-dark p strong { color: var(--amber); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--amber); border-color: var(--amber); text-decoration: none; color: white; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 35, 50, 0.3);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); text-decoration: none; border-color: var(--ink); }

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  text-align: center;
  padding: 4rem 2rem;
}
.not-found .code {
  font-family: var(--head-font);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.3;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.not-found h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.not-found > p { color: var(--ink-light); max-width: 400px; line-height: 1.65; }
.not-found .links { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ─── Blog index ──────────────────────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; }
.post-card { border-bottom: 1px solid var(--ink-faint); padding-bottom: 2.5rem; }
.post-card:last-child { border-bottom: none; }
.post-date {
  font-family: var(--body-font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.38;
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: block;
}
.post-card h2 a { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.5rem); text-decoration: none; }
.post-card h2 a:hover { color: var(--amber); }
.post-excerpt {
  font-size: 0.975rem;
  color: var(--ink-light);
  max-width: 640px;
  margin-top: 0.6rem;
  line-height: 1.7;
}
.post-read {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--amber);
  margin-top: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-read:hover { text-decoration: none; opacity: 0.8; }

/* ─── Blog post ───────────────────────────────────────────────────────────── */
.post-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--ink-faint);
  margin-bottom: 3.5rem;
}
.post-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 720px;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.post-meta { font-size: 0.8rem; color: var(--ink-light); font-weight: 600; letter-spacing: 0.04em; }
.post-body { max-width: 680px; }
.post-body p { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.82; color: var(--ink); opacity: 0.87; }
.post-body h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 2.5rem 0 0.8rem; }
.post-body h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.post-body ul, .post-body ol { margin: 0.5rem 0 1.75rem 1.5rem; list-style: disc; }
.post-body li { font-size: 1rem; line-height: 1.75; opacity: 0.87; margin-bottom: 0.4rem; }
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-faint);
  font-size: 0.875rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-footer a { color: var(--amber); }

/* ─── Two-col layout ──────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.two-col.wide { grid-template-columns: 3fr 2fr; }

/* ─── Signal dimensions ───────────────────────────────────────────────────── */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.signal-dim {
  border: 1px solid var(--ink-faint);
  border-radius: 5px;
  padding: 1.25rem;
  background: white;
}
.signal-dim .dim-name {
  font-family: var(--head-font);
  font-size: 0.95rem;
  color: var(--amber);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.signal-dim p { font-size: 0.8rem; color: var(--ink-light); line-height: 1.55; }

/* ─── Opportunity States ──────────────────────────────────────────────────── */
.states { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.state-badge {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--body-font);
}
.state-badge.forming { background: rgba(61, 112, 103, 0.12); color: var(--sage); }
.state-badge.validating { background: rgba(61, 112, 103, 0.22); color: #2e5850; }
.state-badge.progressing { background: rgba(184, 122, 32, 0.13); color: var(--amber); }
.state-badge.stalling { background: rgba(190, 120, 40, 0.13); color: #a86520; }
.state-badge.pivoting { background: rgba(180, 90, 40, 0.12); color: #9a4c18; }
.state-badge.terminal { background: rgba(26, 35, 50, 0.08); color: var(--ink); opacity: 0.55; }

/* ─── Confidence tier rows ────────────────────────────────────────────────── */
.tier-table { margin: 2rem 0; }
.tier-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ink-faint);
}
.tier-row:last-child { border-bottom: none; }
.tier-row .tier-desc { font-size: 0.875rem; color: var(--ink-light); line-height: 1.6; }
.tier-row .tier-req { font-size: 0.8rem; color: var(--ink-light); opacity: 0.7; line-height: 1.6; font-style: italic; }

/* ─── Person card ─────────────────────────────────────────────────────────── */
.person-card {
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  padding: 2rem;
  background: white;
}
.person-name { font-size: 1.35rem; margin-bottom: 0.25rem; }
.person-role { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); font-weight: 700; margin-bottom: 1rem; font-family: var(--body-font); }
.person-bio { font-size: 0.9rem; color: var(--ink-light); line-height: 1.7; margin-bottom: 1.25rem; }
.person-contact { font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.3rem; }
.person-contact a { color: var(--ink); opacity: 0.65; }
.person-contact a:hover { opacity: 1; text-decoration: none; color: var(--amber); }

/* ─── Status pill ─────────────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(61, 112, 103, 0.1);
  color: var(--sage);
  border: 1px solid rgba(61, 112, 103, 0.25);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--body-font);
  margin-bottom: 1.25rem;
}
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* ─── Atlas family grid ───────────────────────────────────────────────────── */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.atlas-item {
  border: 1px solid rgba(240, 237, 229, 0.12);
  border-radius: 4px;
  padding: 1.25rem;
}
.atlas-item .atlas-code {
  font-family: var(--body-font);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.35rem;
  opacity: 0.8;
}
.atlas-item h4 { font-size: 0.95rem; color: var(--paper); margin-bottom: 0.35rem; }
.atlas-item p { font-size: 0.8rem; color: rgba(240, 237, 229, 0.5); line-height: 1.5; }

/* ─── Divider ─────────────────────────────────────────────────────────────── */
hr.rule {
  border: none;
  border-top: 1px solid var(--ink-faint);
  margin: 3rem 0;
}

/* ─── Spacing tokens (also used by secondary agent pattern) ──────────────── */
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --meta: rgba(26, 35, 50, 0.55);
  --paper-muted: #E8E4DC;
  --paper-card: #ffffff;
}

/* ─── Eyebrow / lede (alternate typography pattern) ─────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--body-font);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.65rem;
  opacity: 0.85;
}
section.alt .eyebrow { color: rgba(184, 122, 32, 0.85); }

.lede {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--ink-light);
  line-height: 1.7;
}
section.alt .lede { color: rgba(240, 237, 229, 0.65); }

/* ─── Callout blocks ──────────────────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--ink-faint);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.callout p { font-size: 1rem; line-height: 1.75; color: var(--ink-light); font-style: italic; }
.callout.sage {
  border-left-color: var(--sage);
  background: rgba(61, 112, 103, 0.06);
}
.callout.sage p { color: #2e5850; }
.callout.amber {
  border-left-color: var(--amber);
  background: rgba(184, 122, 32, 0.06);
}
.callout.amber p { color: var(--amber); }

/* ─── Container narrow ────────────────────────────────────────────────────── */
.container.narrow {
  max-width: 800px;
}

/* ─── Section tight ───────────────────────────────────────────────────────── */
section.tight { padding: 2.5rem 0; }
section.tight + section.tight { border-top: 1px solid var(--ink-faint); }

/* ─── Button secondary ────────────────────────────────────────────────────── */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 35, 50, 0.3);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); text-decoration: none; border-color: var(--ink); }
section.alt .btn-secondary {
  color: var(--paper);
  border-color: rgba(240, 237, 229, 0.3);
}
section.alt .btn-secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ─── 404 alternate class ─────────────────────────────────────────────────── */
.four-oh-four {
  font-family: var(--head-font);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.3;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ─── Tag / eyebrow inline ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ─── Read more link ──────────────────────────────────────────────────────── */
.read-more {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--amber);
  margin-top: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.read-more:hover { text-decoration: none; opacity: 0.8; }

/* ─── Grid helpers ────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid.grid-3, .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.grid-2, .grid.grid-3, .grid.grid-4 { grid-template-columns: 1fr; }
}

/* ─── Section alt (muted) ─────────────────────────────────────────────────── */
section.muted {
  background: var(--paper-muted);
  padding: 4.5rem 0;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col, .two-col.wide, .scenario-grid { grid-template-columns: 1fr; gap: 2rem; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .atlas-grid { grid-template-columns: 1fr; }
  footer.site .container:first-child { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tier-row { grid-template-columns: auto 1fr; }
  .tier-row .tier-req { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  nav { display: none; }
  .pipeline { flex-direction: column; border-radius: 6px; }
  .stage { border-right: none; border-bottom: 1px solid var(--ink-faint); }
  .stage:last-child { border-bottom: none; }
  .stage-arrow { display: none; }
  .signal-grid { grid-template-columns: 1fr; }
  footer.site .container:first-child { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── Compatibility addendum — covers main-page class names ─── */
:root {
  --card-border:   rgba(26, 35, 50, 0.10);
  --paper-card:    #ffffff;
  --radius-sm:     4px;
  --radius-lg:     10px;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono:     'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --accent:        var(--amber);
  --nominal:       #2d6e45;
  --watch:         #b87a20;
  --danger:        #A02D2F;
}

/* Metrics strip */
.metrics-strip { display: grid; gap: 0; border: 1px solid var(--ink-faint); border-radius: 6px; overflow: hidden; margin: var(--space-6) 0; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.metric-cell { padding: var(--space-5); border-right: 1px solid var(--ink-faint); background: var(--paper-card); }
.metric-cell:last-child { border-right: none; }
.metric-val { font-family: var(--head-font); font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: var(--space-2); }
.metric-label { font-size: 12px; color: var(--meta); line-height: 1.4; }
@media (max-width: 680px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2) { border-right: none; }
  .metric-cell:nth-child(1), .metric-cell:nth-child(2) { border-bottom: 1px solid var(--ink-faint); }
}

/* Signal vector bars */
.signal-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--ink-faint); }
.signal-row:last-child { border-bottom: none; }
.signal-dim { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; width: 100px; flex-shrink: 0; color: var(--meta); }
.signal-bar-wrap { flex: 1; height: 6px; background: var(--paper-muted); border-radius: 999px; overflow: hidden; }
.signal-bar { height: 100%; border-radius: 999px; background: var(--amber); }
.signal-score { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); width: 40px; text-align: right; flex-shrink: 0; }
.signal-conf { font-size: 11px; color: var(--meta); width: 80px; text-align: right; flex-shrink: 0; }

/* Status pills (aliases for state-badge) */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.status-forming    { background: rgba(184,122,32,0.10); color: var(--watch); }
.status-validating { background: rgba(61,112,103,0.12); color: var(--sage); }
.status-progressing { background: rgba(45,110,69,0.12); color: var(--nominal); }
.status-stalling   { background: rgba(160,45,47,0.10); color: var(--danger); }
.status-pivoting   { background: rgba(77,92,112,0.10); color: var(--meta); }

/* Stage note (alias for stage-desc) */
.stage .stage-note { font-size: 0.75rem; color: var(--meta); line-height: 1.45; }

/* Grid utilities */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Form elements */
.form-group { margin-bottom: var(--space-5); }
.form-group label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--meta); margin-bottom: var(--space-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--ink-faint); border-radius: 4px;
  background: var(--paper-card); color: var(--ink); font-family: var(--font-sans); font-size: 15px;
  transition: border-color 0.15s; -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(184,122,32,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Eyebrow / lede (if not already defined) */
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: var(--space-3); }
.lede { font-size: 20px; color: var(--meta); max-width: 720px; line-height: 1.6; }
.text-accent { color: var(--amber); }
.text-meta   { color: var(--meta); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-size: 15px; font-weight: 500; text-decoration: none; transition: all 0.15s; cursor: pointer; border: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: 0.9; text-decoration: none; color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink-faint); }
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }

/* Callout (if not already defined adequately) */
.callout { border-left: 3px solid var(--amber); padding: var(--space-4) var(--space-5); background: var(--paper-muted); border-radius: 4px; margin: var(--space-5) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.sage { border-left-color: var(--sage); }

/* Verdict card */
.verdict-card { border: 1px solid var(--ink-faint); border-left: 3px solid var(--amber); border-radius: 6px; padding: var(--space-6); background: var(--paper-card); }

/* Rule */
.rule { height: 1px; background: var(--ink-faint); border: 0; margin: var(--space-6) 0; }

/* Tag */
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--amber); text-transform: uppercase; }

/* Footer compat — paper background variant */
footer.site.light { background: var(--paper); color: var(--ink); margin-top: var(--space-8); padding: var(--space-7) 0 var(--space-6); border-top: 1px solid var(--ink-faint); }

/* Container narrow */
.container.narrow { max-width: 900px; }

/* Pivot additions */
.signal-bar-warn { background: #c0392b !important; opacity: 0.7; }
