/* ===================================================================
   The Immanence Project - Visual Identity System (June 2026)
   Brand tokens adopted site-wide. See WEBSITE_SEGMENTATION_MEMO.md S5.
   Obsidian / HOC Gold / AFCIS Amber / Parchment / Document Grey.
   IM Fell English (display) + Space Grotesk (body).
   =================================================================== */
:root {
  /* Brand palette */
  --obsidian: #0C0C14;
  --gold-hoc: #C49838;   /* company accent */
  --amber: #D08B2A;      /* branch / research accent */
  --amber-deep: #8B5A0A;
  --parchment: #F0EBE0;
  --off-white: #EDE8DC;
  --doc-grey: #B0A89A;

  /* Ground scale (derived from Obsidian) */
  --bg: #0C0C14;
  --bg-raised: #14141f;
  --bg-panel: #181826;
  --bg-band: #0f0f18;

  /* Text */
  --text: #EDE8DC;
  --text-soft: #d3cdbf;
  --text-muted: #B0A89A;

  /* Accents + rules (homepage tokens remapped to brand) */
  --gold: #C49838;
  --gold-soft: rgba(196, 152, 56, 0.16);
  --silver-line: rgba(196, 152, 56, 0.16);
  --gold-line: rgba(196, 152, 56, 0.34);
  --amber-soft: rgba(208, 139, 42, 0.14);
  --amber-line: rgba(208, 139, 42, 0.40);

  /* Legacy Figma-page compatibility tokens (catalyst/districts/etc.) */
  --accent-gold: #C49838;
  --secondary-silver: #d3cdbf;
  --text-primary: #EDE8DC;
  --border-subtle: rgba(196, 152, 56, 0.18);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --header-height: 72px;
  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "IM Fell English", Georgia, "Times New Roman", serif;

  /* Motion system (Website Motion & Galaxy-Theme Directive §4) --------------- */
  --t-micro: 120ms;   /* feedback            */
  --t-quick: 240ms;   /* ignite bloom        */
  --t-base: 480ms;    /* settle scroll-ins   */
  --t-slow: 900ms;    /* deliberate reveals  */
  --t-drift: 14s;     /* ambient loop        */
  --t-orbit: 80s;     /* continuous slow orbit */
  --ease-settle: cubic-bezier(0.4, 0, 0.2, 1);
  --parallax-max: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  /* Obsidian base lives on <html>; body stays translucent so the fixed
     star field (#starfield, z-index:-1) reads through as deep-space ground. */
  background: linear-gradient(180deg, rgba(199, 166, 75, 0.04), transparent 420px);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
}

h1 {
  max-width: 760px;
  font-size: 4.25rem;
  line-height: 0.98;
  overflow-wrap: normal;
}

h2 {
  font-size: 2.75rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.28;
}

.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;
}

.section-frame {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section-intro {
  max-width: 760px;
}

.section-intro h2,
.section-intro p {
  margin-top: 18px;
}

.section-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--silver-line);
  background: rgba(8, 9, 10, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  width: 22px;
  height: 24px;
  color: var(--gold);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--off-white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 160ms ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--silver-line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  padding: 104px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 80px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.hero-live {
  max-width: 740px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-lede {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.22rem;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-anchors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 840px;
}

.hero-anchors article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(196, 152, 56, 0.07);
}

.hero-anchors strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.hero-anchors span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #090909;
}

.button-secondary {
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.02);
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.proof-line span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.proof-line span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-system {
  position: relative;
  min-height: 460px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.system-layer {
  position: relative;
  z-index: 2;
  padding: 26px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.9);
  box-shadow: var(--shadow);
}

.system-layer strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.layer-top {
  border-color: var(--gold-line);
}

.layer-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.system-rail {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 28px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--silver-line));
}

.hero-sequence {
  padding: 24px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(196, 152, 56, 0.12), transparent),
    var(--bg-raised);
  box-shadow: var(--shadow);
}

.sequence-chip {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-sequence ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: hero-sequence;
  display: grid;
  gap: 8px;
}

.hero-sequence li {
  counter-increment: hero-sequence;
  position: relative;
  min-height: 44px;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: rgba(12, 12, 20, 0.84);
}

.hero-sequence li::before {
  content: counter(hero-sequence);
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-sequence strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.25;
}

.hero-sequence p {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.terms-band {
  padding: 82px 0;
  border-top: 1px solid var(--silver-line);
  border-bottom: 1px solid var(--silver-line);
  background: var(--bg-band);
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.term-block {
  padding: 0 28px 0 0;
  border-right: 1px solid var(--silver-line);
}

.term-block:last-child {
  border-right: 0;
}

.term-block h3 {
  margin-bottom: 16px;
  color: var(--gold);
}

.method-rule {
  margin-top: 48px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 44px;
  align-items: start;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: rgba(199, 166, 75, 0.06);
}

.method-rule h3 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.method-rule p {
  color: var(--text-soft);
}

.problem-section {
  padding: 110px 0;
  display: grid;
  grid-template-columns: 1fr 0.64fr;
  gap: 80px;
  align-items: end;
}

.problem-copy h2 {
  margin: 18px 0 24px;
  max-width: 760px;
}

.problem-statement {
  padding: 28px;
  border-left: 2px solid var(--gold);
  background: rgba(199, 166, 75, 0.07);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.48;
}

.branch-section {
  padding: 24px 0 116px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.branch-card,
.entry-card {
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
}

.branch-card {
  padding: 34px;
}

.branch-number {
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.branch-card h3 {
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 400;
}

.clean-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.clean-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.collaborator-section {
  padding: 106px 0;
  background:
    linear-gradient(90deg, rgba(199, 166, 75, 0.08), transparent 34%),
    var(--bg-band);
  border-top: 1px solid var(--silver-line);
  border-bottom: 1px solid var(--silver-line);
}

.collaborator-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 74px;
  align-items: center;
}

.collaborator-layout h2 {
  margin: 18px 0 24px;
}

.collaborator-layout p + p {
  margin-top: 18px;
}

.node-map {
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
  position: relative;
}

.node-map::before {
  content: "";
  position: absolute;
  inset: 50% 12%;
  height: 1px;
  background: var(--gold-line);
}

.node-map span,
.node-map strong {
  position: relative;
  z-index: 2;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: #0f1113;
  color: var(--text-soft);
  text-align: center;
  font-size: 0.94rem;
}

.node-map strong {
  grid-column: 1 / -1;
  border-color: var(--gold-line);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.sequence-section {
  padding: 112px 0;
}

.sequence-list {
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sequence;
  display: grid;
  gap: 1px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--silver-line);
}

.sequence-list li {
  counter-increment: sequence;
  position: relative;
  min-height: 104px;
  padding: 28px 32px 28px 96px;
  background: var(--bg-raised);
}

.sequence-list li::before {
  content: counter(sequence, decimal-leading-zero);
  position: absolute;
  left: 32px;
  top: 30px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
}

.sequence-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
}

.sequence-list p {
  color: var(--text-muted);
}

.status-live {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-sequenced {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid var(--silver-line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-sequence .status-live,
.hero-sequence .status-sequenced {
  margin-bottom: 0;
  padding: 3px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.parallel-note {
  margin-top: 24px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  color: var(--text-soft);
}

.evidence-section {
  padding: 106px 0;
  background: var(--bg-band);
  border-top: 1px solid var(--silver-line);
  border-bottom: 1px solid var(--silver-line);
}

.evidence-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 70px;
  align-items: center;
}

.evidence-copy h2 {
  margin: 18px 0 34px;
}

.evidence-item {
  padding: 26px 0;
  border-top: 1px solid var(--silver-line);
}

.evidence-item h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.evidence-item p + p {
  margin-top: 12px;
}

.schematic-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.schematic-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.schematic-panel figcaption {
  padding: 16px 18px 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.governance-locks {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.governance-locks article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: #0f1113;
}

.governance-locks span {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.governance-locks h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.governance-locks p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.entry-section {
  padding: 112px 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.entry-card {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.entry-card h3 {
  margin-bottom: 14px;
  color: var(--gold);
}

.entry-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.entry-card a {
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.entry-card a::after {
  content: " ->";
  color: var(--gold);
}

.honest-close {
  padding: 96px 0;
  border-top: 1px solid var(--silver-line);
  background: linear-gradient(180deg, rgba(199, 166, 75, 0.07), transparent);
  text-align: center;
}

.honest-close .section-frame {
  max-width: 780px;
}

.honest-close p {
  margin-top: 22px;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--silver-line);
  background: #060707;
}

.footer-layout {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--text-muted);
}

.footer-layout strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-layout p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 14px;
  }

  .hero,
  .problem-section,
  .method-rule,
  .collaborator-layout,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 52px;
  }

  .hero-anchors {
    grid-template-columns: 1fr;
  }

  .hero-system {
    min-height: auto;
  }

  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .governance-locks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.24rem;
  }

  .site-header {
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 30px;
    border-bottom: 1px solid var(--silver-line);
    background: rgba(8, 9, 10, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--silver-line);
    font-size: 0.94rem;
  }

  .term-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .term-block {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--silver-line);
  }

  .term-block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer-layout {
    padding: 30px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .section-frame {
    width: min(var(--max), calc(100% - 32px));
  }

  h1 {
    max-width: 100%;
    font-size: 2.28rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.92rem;
  }

  .brand {
    max-width: 230px;
    white-space: normal;
    line-height: 1.3;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 56px;
  }

  .hero-lede {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .system-layer,
  .method-rule,
  .governance-locks article,
  .branch-card,
  .entry-card {
    padding: 22px;
  }

  .problem-section,
  .sequence-section,
  .entry-section {
    padding: 78px 0;
  }

  .terms-band,
  .collaborator-section,
  .evidence-section,
  .honest-close {
    padding: 74px 0;
  }

  .sequence-list li {
    padding: 72px 22px 24px;
  }

  .sequence-list li::before {
    left: 22px;
    top: 26px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .node-map {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ===================================================================
   SEGMENTED SITE - shared components (memo S5, S6, S10)
   =================================================================== */

/* Branch theming: AFCIS Research + Project Arkhan recolour gold -> amber */
body.theme-branch {
  --gold: var(--amber);
  --gold-line: var(--amber-line);
  --gold-soft: var(--amber-soft);
  --accent-gold: var(--amber);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

.site-nav a[aria-current="page"],
.site-nav a.is-active { color: var(--gold); }

/* ---- Interior page hero --------------------------------------------------- */
.page-hero {
  padding: 96px 0 40px;
}
.page-hero.with-mark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 56px;
  align-items: center;
}
.page-hero .kicker { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1.02;
  max-width: 18ch;
}
.page-lede {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--text-soft);
}
.hero-mark {
  color: var(--gold);
  width: 200px;
  height: 200px;
  justify-self: end;
  opacity: 0.92;
}
.hero-mark svg { width: 100%; height: 100%; display: block; }

.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- Generic section + prose ---------------------------------------------- */
.page-section { padding: 40px 0; }
.page-section.bordered { border-top: 1px solid var(--silver-line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 16px; }

.prose { max-width: 68ch; }
.prose p { margin-top: 16px; }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--off-white);
}
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--gold); }

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.42;
  color: var(--text);
}

/* ---- Column grids --------------------------------------------------------- */
.cols-2,
.cols-3,
.cols-4 {
  display: grid;
  gap: 20px;
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 28px;
  border: 1px solid var(--silver-line);
  border-radius: 10px;
  background: var(--bg-raised);
}
.card h3 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--text);
}
.card h3.amber { color: var(--gold); }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card .card-num {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ---- Claim tags ([est]/[imp]/[ana]/[pro]/[guess]) ------------------------- */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid currentColor;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  vertical-align: middle;
  white-space: nowrap;
}
.tag.est { color: #8FB98A; }
.tag.imp { color: #7FA8C9; }
.tag.ana { color: #B79BD0; }
.tag.pro { color: var(--amber); }
.tag.guess { color: var(--doc-grey); }

/* ---- Data tables (decisions, theorems, standards) ------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 8px;
}
.data-table caption {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px;
  border-bottom: 1px solid var(--silver-line);
}
.data-table thead th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.data-table tbody th {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.data-table td { color: var(--text-muted); }
.data-table code,
code.var {
  font-family: "Space Grotesk", ui-monospace, monospace;
  color: var(--off-white);
  background: var(--gold-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ---- Numbered list (research questions, theorems) ------------------------- */
.numbered {
  list-style: none;
  counter-reset: n;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.numbered li {
  counter-increment: n;
  position: relative;
  padding: 18px 20px 18px 64px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
}
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
}
.numbered li strong { color: var(--text); display: block; margin-bottom: 4px; }
.numbered li p { color: var(--text-muted); font-size: 0.94rem; }

/* ---- Metric grid (measured results) -------------------------------------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: var(--silver-line);
  border: 1px solid var(--silver-line);
  border-radius: 10px;
  overflow: hidden;
}
.metric {
  padding: 22px 20px;
  background: var(--bg-raised);
}
.metric .num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
}
.metric .lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---- Callouts ------------------------------------------------------------- */
.callout {
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--gold-soft);
}
.callout h3 {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.callout p { color: var(--text-soft); }
.callout p + p { margin-top: 10px; }
.callout--ceiling {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}
.callout--ceiling h3 { color: var(--amber); }

/* ---- Framing-question banner (the standing lens) ------------------------- */
.framing-banner {
  border-top: 1px solid var(--amber-line);
  border-bottom: 1px solid var(--amber-line);
  background:
    linear-gradient(90deg, var(--amber-soft), transparent 60%),
    var(--bg-band);
}
.framing-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
}
.framing-banner .brand-mark.afcis {
  color: var(--amber);
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}
.framing-eyebrow {
  display: block;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.framing-q {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--off-white);
}
.framing-a {
  margin-top: 8px;
  max-width: 80ch;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---- Placeholder notice (pedagogy page) ---------------------------------- */
.placeholder-notice {
  margin: 8px 0 12px;
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--gold-line);
  border-radius: 12px;
  background: var(--gold-soft);
}
.placeholder-notice .tag-large {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.placeholder-notice h2 { margin-bottom: 14px; }
.placeholder-notice p { max-width: 64ch; margin: 0 auto; color: var(--text-soft); }

/* ---- Founder portrait section ------------------------------------------- */
.founder-hero {
  padding: 96px 0 72px;
  background: var(--obsidian);
}
.founder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}
.founder-img {
  width: 100%;
  max-width: 480px;
  height: auto;
}
.founder-caption {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.72;
  color: var(--parchment);
  text-align: center;
}
.founder-caption em {
  font-style: italic;
}
.founder-cta {
  margin-top: 28px;
}
@media (max-width: 620px) {
  .founder-hero { padding: 72px 0 56px; }
  .founder-caption {
    margin-top: 26px;
    font-size: 1.02rem;
    line-height: 1.66;
  }
}

.scaffold-item {
  padding: 22px 24px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
  opacity: 0.86;
}
.scaffold-item h3 { margin-bottom: 8px; font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; }
.scaffold-item p { color: var(--text-muted); font-size: 0.94rem; }
.scaffold-item .soon {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--doc-grey);
}

/* ---- Pills / tag rows ----------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 8px 14px;
  border: 1px solid var(--silver-line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ---- Cross links / pager -------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 8px;
}
.pager a {
  flex: 1 1 240px;
  padding: 20px 24px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
  color: var(--text);
}
.pager a:hover { border-color: var(--gold-line); }
.pager .dir { display: block; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }

/* ---- Contact Form & Topic Selector UI ------------------------------------ */
.contact-form-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 52px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(196, 152, 56, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(20, 20, 31, 0.94), rgba(18, 18, 28, 0.98));
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .contact-form-container {
    padding: 30px 22px;
  }
}

.contact-form {
  display: grid;
  gap: 26px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-label-hint {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: rgba(10, 11, 16, 0.84);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.5;
  transition: border-color var(--t-quick) var(--ease-settle),
              box-shadow var(--t-quick) var(--ease-settle),
              background var(--t-quick) var(--ease-settle);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(196, 152, 56, 0.45);
  background: rgba(14, 15, 22, 0.95);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(16, 18, 26, 0.98);
  box-shadow: 0 0 0 3px rgba(196, 152, 56, 0.18);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C49838' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
}

.form-select option {
  background: var(--obsidian);
  color: var(--text);
  padding: 12px;
}

/* Interactive Topic Selector Pills / Cards */
.topic-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .topic-selector-grid {
    grid-template-columns: 1fr;
  }
}

.topic-pill-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: rgba(14, 15, 24, 0.7);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-quick) var(--ease-settle);
}

.topic-pill-btn:hover {
  border-color: rgba(196, 152, 56, 0.5);
  transform: translateY(-2px);
  color: var(--text);
}

.topic-pill-btn.is-selected {
  border-color: var(--gold);
  background: rgba(196, 152, 56, 0.16);
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(196, 152, 56, 0.12);
}

.topic-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.topic-pill-btn.is-selected .topic-pill-icon {
  background: var(--gold);
  color: #090909;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--silver-line);
}

.form-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

/* Inquiry cards interactive styling */
#pilot-inquiry .card {
  cursor: pointer;
  transition: all var(--t-quick) var(--ease-settle);
  position: relative;
}

#pilot-inquiry .card:hover {
  border-color: var(--gold-line);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

#pilot-inquiry .card.is-active-topic {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(196, 152, 56, 0.12), var(--bg-raised));
  box-shadow: 0 12px 36px rgba(196, 152, 56, 0.15);
}

/* ---- Unified rich footer -------------------------------------------------- */
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding: 56px 0 36px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand .brand-mark { width: 30px; height: 33px; color: var(--gold); }
.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-brand p { margin-top: 6px; color: var(--text-muted); font-size: 0.88rem; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-social--links a {
  width: auto;
  min-width: 34px;
  padding: 0 11px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-col h4 {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--gold); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  padding: 22px 0 40px;
  border-top: 1px solid var(--silver-line);
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 1080px) {
  .page-hero.with-mark { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .page-hero h1 { font-size: 2.6rem; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framing-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .data-table thead { display: none; }
  .data-table tbody th, .data-table td { display: block; padding: 6px 0; border: 0; }
  .data-table tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--silver-line); }
}

/* ===================================================================
   LEGACY COMPATIBILITY LAYER (memo S10)
   Styles the Figma-export classes used by catalyst/districts/framework/
   about/insights so no existing page renders unstyled under the schema.
   These pages also receive the unified header/footer in markup.
   =================================================================== */
.page-container { width: 100%; }
.content-stack { display: block; }
.section-pad {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}
.section-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-block { padding: 40px 0 8px; }
.hero-content h1 { font-family: var(--font-serif); font-style: italic; font-size: 3.2rem; line-height: 1.04; max-width: 20ch; }
.body-large, .lead-text {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--text-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--gold); color: var(--obsidian); border: 1px solid var(--gold); }
.btn-secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold-line); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); }
.split-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.section-header-block { max-width: 62ch; margin-bottom: 36px; }
.section-header-block h2 { margin-top: 14px; }
.section-header-block p { margin-top: 14px; color: var(--text-muted); }
.card-feature-standard {
  border: 1px solid var(--silver-line);
  border-radius: 10px;
  background: var(--bg-raised);
}
.bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.bullet-item { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }
.bullet-item::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--gold); }
.bullet-item strong { color: var(--text); font-weight: 500; }
.pills-container { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-role-tag {
  padding: 8px 14px;
  border: 1px solid var(--silver-line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-soft);
  font-size: 0.85rem;
}
.timeline-grid { display: grid; gap: 16px; }
.step-timeline { display: flex; gap: 16px; align-items: flex-start; }
.step-number {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-line); border-radius: 999px;
  color: var(--gold); font-weight: 700; font-size: 0.9rem;
}
.step-content h4 { margin-bottom: 6px; color: var(--text); font-size: 1rem; }
.step-content p { color: var(--text-muted); font-size: 0.94rem; }
.timeline-horizontal { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.timeline-horizontal-step { padding: 20px; border: 1px solid var(--silver-line); border-radius: 8px; background: var(--bg-raised); }
.timeline-horizontal-step h4 { margin: 8px 0 6px; color: var(--text); font-size: 1rem; }
.timeline-horizontal-step p { color: var(--text-muted); font-size: 0.92rem; }
.h-step-line { height: 2px; background: var(--gold-line); position: relative; margin-bottom: 10px; }
.h-step-dot { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.checklist-container { display: grid; gap: 12px; }
.checklist-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--silver-line); border-radius: 8px; background: var(--bg-raised); cursor: pointer; }
.check-icon { flex: 0 0 auto; width: 20px; height: 20px; border: 1px solid var(--gold-line); border-radius: 5px; margin-top: 2px; }
.check-icon[data-checked="true"] { background: var(--gold); border-color: var(--gold); }
.checklist-text h4 { color: var(--text); font-size: 0.98rem; margin-bottom: 4px; }
.checklist-text p { color: var(--text-muted); font-size: 0.92rem; }
.cta-banner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--gold-soft), transparent 70%), var(--bg-raised);
  text-align: center;
}
.cta-banner-content { max-width: 60ch; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
blockquote { margin: 0; }
.text-gold { color: var(--gold); }

/* ---- Resource / download cards (governed artifacts) ---------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--silver-line);
  border-radius: 10px;
  background: var(--bg-raised);
  transition: border-color 160ms ease, transform 160ms ease;
}
.resource-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.resource-card .doc-type {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.resource-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--text);
}
.resource-card p { color: var(--text-muted); font-size: 0.92rem; }
.resource-card .dl {
  margin-top: auto;
  padding-top: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Legacy footer/nav classes still present anywhere -> hide redundancy gracefully */
.mobile-nav-overlay { display: none; }

@media (max-width: 860px) {
  .split-two-col, .split-three-col { grid-template-columns: 1fr; gap: 28px; }
  .hero-content h1 { font-size: 2.5rem; }
  .cta-banner { padding: 36px 24px; }
}

/* ===================================================================
   MEMO 01-08 IMPLEMENTATION COMPONENTS
   Proof, procurement, product workflow, forms, and launch-support pages.
   =================================================================== */
.trust-strip,
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.trust-item,
.proof-card,
.status-card,
.packet-card {
  padding: 20px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
}

.trust-item strong,
.proof-card strong,
.status-card strong,
.packet-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.96rem;
}

.trust-item span,
.proof-card span,
.status-card span,
.packet-card span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge.warning {
  border-color: var(--amber-line);
  color: var(--amber);
  background: var(--amber-soft);
}

.product-subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 20;
  border-top: 1px solid var(--silver-line);
  border-bottom: 1px solid var(--silver-line);
  background: rgba(12, 12, 20, 0.95);
  backdrop-filter: blur(14px);
}

.product-subnav .section-frame {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 14px 0;
}

.product-subnav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-subnav a:hover {
  color: var(--gold);
}

.product-subnav a.is-active {
  color: var(--gold);
}

.product-subnav .subnav-group {
  align-self: center;
  flex: 0 0 auto;
  padding-left: 18px;
  border-left: 1px solid var(--silver-line);
  color: var(--amber);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  padding: 18px;
  border: 1px solid var(--silver-line);
  border-radius: 8px;
  background: var(--bg-raised);
}

.workflow-step .step-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-step h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.workflow-step ul,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.workflow-step li,
.plain-list li {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.role-grid,
.packet-grid,
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.preview-card {
  overflow: hidden;
  border: 1px solid var(--silver-line);
  border-radius: 10px;
  background: var(--bg-raised);
}

.browser-frame {
  border-bottom: 1px solid var(--silver-line);
  background: #0a0a10;
}

.browser-frame .chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--silver-line);
}

.browser-frame .chrome span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.65;
}

.wireframe {
  min-height: 220px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.wire-row,
.wire-block {
  border: 1px solid var(--silver-line);
  border-radius: 6px;
  background: rgba(196, 152, 56, 0.07);
}

.wire-row {
  min-height: 34px;
}

.wire-block {
  min-height: 76px;
}

.preview-card .preview-copy {
  padding: 18px;
}

.preview-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 400;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--silver-line);
  border-radius: 6px;
  background: #090910;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-line);
  outline: 2px solid var(--gold-line);
  outline-offset: 1px;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.mini-link {
  color: var(--gold);
  font-weight: 800;
}

.mini-link::after {
  content: " ->";
}

.claim-audit {
  border: 1px solid var(--amber-line);
  border-radius: 10px;
  background: var(--amber-soft);
}

.claim-audit .data-table {
  margin-top: 0;
}

.legal-meta {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .trust-strip,
  .proof-strip,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .product-subnav {
    position: static;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   MOTION & GALAXY THEME - Phase 1 floor (presentation layer only)
   Motion & Galaxy-Theme Directive: S2 non-compensables, S3 palette, S4.
   Rules: transform/opacity only, CLS = 0, reduced-motion first-class.
   =================================================================== */

/* Procedural star field: a fixed deep-space ground behind all content.
   Built in JS (canvas), count-capped, paused when the tab is hidden. */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;                                   /* JS lifts to 1: fade-from-black */
  transition: opacity var(--t-slow) var(--ease-settle);
}
.js-motion #starfield.is-lit { opacity: 1; }

/* settle: the default block entrance - fade + 8px rise, once, on scroll-in.
   JS-gated (.js-motion) so no-JS / pre-JS content is never hidden, and the
   transform-only motion contributes zero layout shift. */
.js-motion .settle {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease-settle),
              transform var(--t-base) var(--ease-settle);
}
.js-motion .settle.is-in { opacity: 1; transform: none; }

/* ignite: the one permitted bloom - a contained gold halo behind the primary
   CTA on hover/focus. transform + opacity only (S4). */
.button-primary, .btn-primary { position: relative; }
.button-primary::before, .btn-primary::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--gold-line), transparent);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity var(--t-quick) var(--ease-settle),
              transform var(--t-quick) var(--ease-settle);
}
.button-primary:hover::before, .button-primary:focus-visible::before,
.btn-primary:hover::before, .btn-primary:focus-visible::before {
  opacity: 1;
  transform: scale(1.16);
}

/* S2.1 Reduced motion: a fully composed STILL cosmos - first-class, not
   degraded. No drift, no twinkle, no parallax, no settle, no fade delay. */
@media (prefers-reduced-motion: reduce) {
  #starfield { opacity: 1 !important; transition: none !important; }
  .js-motion .settle { opacity: 1 !important; transform: none !important; transition: none !important; }
  .button-primary::before, .btn-primary::before,
  .button-primary, .btn-primary, .button { transition: none !important; }
}

/* ===================================================================
   MOTION & GALAXY THEME - Phase 2 (branch treatments + centerpiece)
   =================================================================== */

/* Legibility scrim (S2.2): a per-glyph obsidian halo so the brighter star
   field never costs text contrast. A scrim that hugs the text - no panels,
   no layout shift. Static, so it holds for every user including reduced-motion. */
.page-hero, .hero-copy, .hero-anchors, .hero-sequence,
.section-head, .prose, .lead, .honest-close, .framing-inner {
  text-shadow: 0 0 9px var(--bg), 0 1px 2px var(--bg);
}

/* Block 6 - the sequence spine: the ONE genuinely-live step breathes slowly
   (gate #6: motion signals liveness only where liveness is real). The later,
   not-yet-earned steps stay dim - their dimness is honest. Opacity only. */
.status-live { position: relative; }
.status-live::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--gold-soft), transparent);
  opacity: 0.28;
  animation: livepulse var(--t-drift) var(--ease-settle) infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .status-live::after { animation: none; opacity: 0.38; }
}
