/* Systems That Decide — shared stylesheet
   Aligned to the deck's visual system: obsidian + gold,
   Playfair Display / Inter / Space Mono, dot-pattern background,
   italic gold ems, numbered card chrome, light section variant. */

:root {
  color-scheme: dark;
  /* Core obsidian + gold, lifted from the deck */
  --obsidian: #0D0D0D;
  --surface:  #141414;
  --raised:   #1C1B1B;
  --warm:     #141312;
  --hairline: #2A2825;
  --hairline-soft: #1F1D1A;

  --gold:        #9A8B47;
  --gold-light:  #BBA55F;
  --gold-bright: #C4A84A;
  --gold-soft:   rgba(154,139,71,.18);
  --gold-line:   rgba(154,139,71,.22);
  --gold-faint:  rgba(154,139,71,.08);

  --off:    #F0EDE8;     /* primary text on dark */
  --cream:  #F2EFE9;     /* alias for legacy markup */
  --muted:  #B8B2AE;
  --dim:    #828079;
  --darker: #5A5752;

  /* Light variant tokens */
  --paper:        #F0EDE8;
  --paper-warm:   #E8E4DB;
  --paper-rule:   rgba(13,13,13,0.16);
  --ink:          #0D0D0D;
  --ink-muted:    #3A3833;
  --ink-dim:      #6A6663;
  --gold-on-paper:#8B7A2E;

  /* Aliases used by legacy markup we're porting in */
  --ground: var(--obsidian);
  --ground-warm: var(--surface);
  --cream-dim: var(--muted);
  --rule: var(--hairline);
  --brass: var(--gold);
  --brass-dim: var(--gold-line);

  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  --maxw: 1320px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--obsidian); }
html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--off);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  /* Deck signature: subtle radial dot pattern across the whole page */
  background-image: radial-gradient(circle, rgba(154,139,71,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Gold rule across the top of every page — same as the slide chrome */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  z-index: 100;
  pointer-events: none;
}

/* Subtle SVG noise overlay for warmth, same recipe as the slides */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.028;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 4px; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-right { justify-content: flex-end; }

.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms;
}
.nav a:hover { color: var(--off); }
.nav a.active { color: var(--gold); }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 66px;
}
.brand img {
  height: 66px;
  width: auto;
  display: block;
}

.nav .contact {
  color: var(--gold);
  border-left: 1px solid var(--hairline);
  padding-left: 1.8rem;
  margin-left: 0.4rem;
}
.nav .contact:hover { color: var(--off); }

/* ============ MOBILE NAV ============ */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--off);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms, transform 220ms;
  transform-origin: center;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  flex-direction: column;
  padding: 0.25rem 1.4rem 1.25rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: color 150ms;
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover,
.mobile-drawer a.active { color: var(--gold); }
.mobile-drawer a.contact { color: var(--gold); border-left: none; padding-left: 0; margin-left: 0; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
}

/* ============ SECTION SCAFFOLD ============ */
section {
  position: relative;
  padding: 6.5rem var(--pad-x);
  border-bottom: 1px solid var(--hairline);
}
section.flush { padding-top: 3rem; }

.container { max-width: var(--maxw); margin: 0 auto; }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.eyebrow .dot { color: var(--dim); margin: 0 0.55em; font-weight: 400; }
.eyebrow .seq { color: var(--dim); font-weight: 400; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--off);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  margin-bottom: 1.75rem;
  max-width: 22ch;
}
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 1.3rem;
  max-width: 22ch;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.16;
  margin-bottom: 0.7rem;
  letter-spacing: -0.005em;
}

h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  color: var(--off);
}

p { margin-bottom: 1.1rem; max-width: 62ch; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--off);
  font-weight: 400;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}
.lede em { font-style: normal; color: var(--gold); font-weight: 500; }

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}

/* ============ BUTTONS / LINKS ============ */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-primary, .btn-secondary {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--obsidian);
  transition: background 200ms, border-color 200ms, color 200ms;
  position: relative;
  display: inline-block;
}

.btn-primary:hover, .btn-secondary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--obsidian);
}

.see-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-line);
  transition: color 200ms, border-color 200ms;
}
.see-more::after { content: '→'; }
.see-more:hover { color: var(--off); border-bottom-color: var(--off); }

.microcopy {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 1rem;
}

/* ============ INTRO / SPLIT GRIDS ============ */
.intro-grid, .who-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-top: 0.5rem;
}
.intro-grid .text-col p,
.who-grid .text-col p { color: var(--muted); font-size: 1.04rem; }

/* ============ CARDS (3-column) ============
   Deck-style card: dark surface, hairline border, 2px gold accent rule on top,
   space-mono category tag, Playfair italicised label, body copy. */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.card {
  padding: 2.4rem 2rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  position: relative;
  transition: border-color 300ms, transform 300ms;
  display: flex;
  flex-direction: column;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.card:hover { border-color: var(--gold-line); }

.card-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.55rem;
  margin-bottom: 1.1rem;
  max-width: 18ch;
  color: var(--off);
}
.card h3 em { font-style: italic; color: var(--gold); }

.card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: none;
}
.card p strong { color: var(--off); font-weight: 600; }

.card-tail {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ NUMBERS ============ */
.numbers-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
  border-top: 1px solid var(--hairline);
  padding-top: 3.5rem;
  margin-top: 3rem;
}

.num {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.028em;
  color: var(--off);
  margin-bottom: 1rem;
}
.num.apex     { font-size: clamp(4.5rem, 9vw, 7.8rem); }
.num.standard { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.num .pct {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.num-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.5;
  max-width: 24ch;
}

/* ============ COMPONENTS (4-column, deck program style) ============ */
.components-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}

.component {
  padding: 2rem 1.6rem 2rem;
  border: 1px solid var(--hairline);
  background: var(--obsidian);
  transition: border-color 300ms;
  position: relative;
  display: flex;
  flex-direction: column;
}
.component::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.component:hover { border-color: var(--gold-line); }

.component-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.component-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.component h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  max-width: none;
}
.component p { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }

.component-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-soft);
  list-style: none;
}
.component-list li {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  padding: 0.25rem 0 0.25rem 1rem;
  position: relative;
}
.component-list li::before {
  content: '›';
  position: absolute; left: 0; top: 0.25rem;
  color: var(--gold);
}

/* ============ ESSAYS ============ */
.essay-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 3.5rem;
}

.essay {
  padding: 2.4rem 0 2rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.essay::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.essay-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}

.essay h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  max-width: 26ch;
  color: var(--off);
}
.essay h3 em { font-style: italic; color: var(--gold); }

.essay p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--muted);
  max-width: none;
}

.essay-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 3px;
  transition: color 200ms, border-color 200ms;
}
.essay-link:hover { color: var(--off); border-bottom-color: var(--off); }

.essay-take {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.4;
  max-width: 30ch;
}

/* ============ PULL QUOTE / INSIGHT ============ */
.pull {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: var(--off);
  letter-spacing: -0.015em;
  margin: 0 auto 2rem;
  max-width: 22ch;
  text-wrap: balance;
  text-align: center;
}

.attribution {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  display: block;
}

.insight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  margin-top: 2.5rem;
}
.insight .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  width: 130px;
}
.insight .txt {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--off);
}
.insight .txt strong { font-style: normal; color: var(--gold); font-weight: 700; }
.insight .mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 0.7;
}

/* ============ QUOTE SECTION ============ */
.quote-section {
  background: var(--surface);
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  color: var(--off);
  letter-spacing: -0.008em;
  margin: 0 auto 2rem;
  max-width: 34ch;
  text-wrap: balance;
}

.quote-section cite {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

/* ============ CHIPS ============ */
.chip-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.chip {
  padding: 0.6rem 1rem;
  border: 1px solid var(--gold-line);
  background: rgba(154,139,71,0.06);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ STEP LIST ============ */
ol.steps { list-style: none; margin-top: 2rem; }
ol.steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
ol.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.step-num {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.step-content h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.step-content h3 em { font-style: italic; color: var(--gold); }
.step-content p { margin-bottom: 0; max-width: 64ch; }

/* ============ BULLETS ============ */
ul.bullets { list-style: none; margin-top: 0.8rem; }
ul.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  color: var(--muted);
}
ul.bullets li::before {
  content: '›';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============ FINAL CTA ============ */
.final {
  padding-top: 7rem;
  padding-bottom: 8rem;
  text-align: center;
}
.final h2 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.final p {
  margin-left: auto; margin-right: auto;
  text-align: center;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.final .actions { justify-content: center; }

.final .closing {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 4rem var(--pad-x) 3rem;
  background: var(--obsidian);
  border-top: 1px solid var(--hairline);
}
.site-footer .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.site-footer .brand img { height: 36px; }
.site-footer .links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.site-footer .links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-footer .links a:hover { color: var(--gold); }
.site-footer .meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
}

/* ============ LIGHT SECTION VARIANT ============
   Use <section class="light"> to invert to the paper-cream
   palette used on light deck slides. */
section.light {
  background: var(--paper);
  color: var(--ink);
}
section.light .eyebrow { color: var(--gold-on-paper); }
section.light h1,
section.light h2,
section.light h3,
section.light h4 { color: var(--ink); }
section.light h1 em,
section.light h2 em,
section.light h3 em { color: var(--gold-on-paper); }
section.light p { color: var(--ink-muted); }
section.light .lede { color: var(--ink); }
section.light .lede em { color: var(--gold-on-paper); }
section.light .num { color: var(--ink); }
section.light .num .pct { color: var(--gold-on-paper); }
section.light .num-label { color: var(--ink-dim); }

section.light .card,
section.light .component {
  background: var(--obsidian);
  border-color: var(--hairline);
  color: var(--off);
}
section.light .card p,
section.light .component p { color: var(--muted); }
section.light .card h3,
section.light .component h3 { color: var(--off); }

section.light ul.bullets li { color: var(--ink-muted); }
section.light ol.steps li { border-top-color: var(--paper-rule); }
section.light ol.steps li:last-child { border-bottom-color: var(--paper-rule); }
section.light .step-num { color: var(--gold-on-paper); }
section.light .step-content h3 { color: var(--ink); }
section.light .step-content p { color: var(--ink-muted); }
section.light .numbers-grid { border-top-color: var(--paper-rule); }

section.light .btn-primary, section.light .btn-secondary { background: var(--gold-on-paper); border-color: var(--gold-on-paper); color: var(--ink); }
section.light .btn-primary:hover, section.light .btn-secondary:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
section.light .microcopy { color: var(--ink-dim); }

section.light .chip { color: var(--gold-on-paper); border-color: var(--gold-on-paper); background: rgba(139,122,46,0.06); }

/* Closing block in the final CTA — paper variant */
section.light .closing {
  color: var(--ink-dim);
  border-top-color: var(--paper-rule);
}
section.light .actions { justify-content: center; }

/* Library archive rows on paper */
section.light .archive-row,
section.light .archive-row:last-of-type { border-color: var(--paper-rule); }
section.light .archive-row .date { color: var(--ink); }
section.light .archive-row .read-time { color: var(--ink-dim); }
section.light .archive-row .body-col h3 { color: var(--ink); }
section.light .archive-row .body-col p { color: var(--ink-muted); }
section.light .featured-essay,
section.light .featured-essay:last-of-type { border-color: var(--paper-rule); }
section.light .featured-essay h2 { color: var(--ink); }
section.light .featured-essay p { color: var(--ink-muted); }

/* Essay links on paper */
section.light .essay-link {
  color: var(--gold-on-paper);
  border-bottom-color: rgba(139,122,46,0.3);
}
section.light .essay-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* About role history on paper */
section.light .role-row { border-top-color: var(--paper-rule); }
section.light .role-row:last-child { border-bottom-color: var(--paper-rule); }
section.light .role-row .period { color: var(--gold-on-paper); }
section.light .role-row h3 { color: var(--ink); }
section.light .role-row p { color: var(--ink-muted); }

/* ASRP maturity tiers — cards stay dark for contrast inside the cream section */
section.light .tier {
  background: var(--obsidian);
  color: var(--off);
}
section.light .tier h3 { color: var(--off); }
section.light .tier p { color: var(--muted); }

/* Insight block on paper — dark stamp on cream */
section.light .insight {
  background: var(--obsidian);
  border-color: var(--hairline);
  color: var(--off);
}
section.light .insight .txt { color: var(--off); }

/* Wordmark on light sections swaps to the dark-text logo */
section.light .section-wordmark img { content: url('logo-dark.png'); }

/* ============ SECTION WORDMARK ============
   Top-right of any section, matches the deck's slide wordmark. */
.section-wordmark {
  position: absolute;
  top: 1.5rem;
  right: clamp(1.5rem, 4vw, 3rem);
  width: 160px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.85;
}
.section-wordmark img { width: 100%; height: auto; display: block; }
.hero .section-wordmark { top: 5.5rem; opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .components-4 { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .essay-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 0.9rem 1.1rem; grid-template-columns: auto 1fr auto; }
  .nav-left, .nav-right { display: none; }
  .brand img { height: 36px; }

  section { padding: 4.5rem 1.4rem; }
  .page-hero { padding-top: 7rem; padding-bottom: 3rem; }

  .intro-grid, .who-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards-3, .components-4, .essay-row, .numbers-grid { grid-template-columns: 1fr; }
  .num.apex { grid-column: 1 / -1; }
  ol.steps li { grid-template-columns: 50px 1fr; gap: 1rem; }
  .insight { grid-template-columns: 1fr; }
  .insight .mark { display: none; }
  .site-footer .container { grid-template-columns: 1fr; text-align: center; }
  .site-footer .meta { text-align: center; }
  .section-wordmark { width: 110px; top: 1.1rem; right: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============ THESIS (pull-quote only) ============ */
.thesis { padding-top: 4rem; padding-bottom: 4rem; }

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 150ms;
}
.skip-link:focus { top: 0; }

/* ============ FOCUS VISIBLE ============ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ TOUCH ============ */
a, button { touch-action: manipulation; }
