/* ============================================================
   Ebenworks · website
   Magazine-editorial. Dual-theme (light + dark). v2.
   ------------------------------------------------------------
   Architecture
   ─ Brand constants  -> never shift across themes (orange).
   ─ Literal palette  -> kept for explicit-color usage (paper, ink, charcoal).
   ─ Semantic tokens  -> --bg, --text, --rule, etc. Flip via [data-theme="dark"].
   ─ Component rules  -> consume semantic tokens; literals only when intentional.
   Companion to: ../README.md, ../voice-playbook.md
   ============================================================ */

/* ---------- Brand · constants ---------- */
:root {
  --orange:        #FC5F00;
  --orange-deep:   #DA4300;
  --orange-700:    #B23700;
  --orange-50:     #FFF1E6;
  --orange-100:    #FFD9BF;
  --orange-200:    #FFB280;

  /* Literal palette (kept for explicit color references; do not theme-shift) */
  --paper:         #FAF8F4;
  --paper-2:       #F2EFE8;
  --paper-3:       #ECE7DC;
  --ink:           #1D1009;
  --charcoal:      #28282B;
  --charcoal-2:    #323235;
  --charcoal-3:    #3A3A3D;
  --rule-light:    #E5E1D8;
  --rule-light-strong: #D4D0C5;
  --gray-700:      #555558;
  --gray-500:      #8B8B8E;
  --gray-300:      #D4D4D5;

  /* ---------- Semantic theme tokens · LIGHT defaults ---------- */
  --bg:            #FAF8F4;
  --bg-1:          #F2EFE8;
  --bg-2:          #ECE7DC;
  --bg-inverse:    #1D1009;
  --bg-elevated:   #FFFFFF;

  --text:          #1D1009;
  --text-soft:     #28282B;
  --text-muted:    #555558;
  --text-faint:    #8B8B8E;
  --text-inverse:  #FAF8F4;

  --rule:          #E5E1D8;
  --rule-strong:   #D4D0C5;
  --rule-inverse:  #323235;
  --rule-inverse-strong: #3A3A3D;

  --accent:        #FC5F00;
  --accent-deep:   #DA4300;
  --accent-soft:   #FFF1E6;
  --accent-on:     #1D1009;        /* text/icon on accent surface (≥10:1) */

  --overlay-strong: rgba(29, 16, 9, 0.78);
  --overlay-medium: rgba(29, 16, 9, 0.60);
  --overlay-soft:   rgba(29, 16, 9, 0.12);
  --shadow-card:    0 24px 48px -12px rgba(29, 16, 9, 0.12);
  --shadow-strong:  0 32px 64px -16px rgba(29, 16, 9, 0.18);

  --selection-bg:  var(--accent);
  --selection-fg:  var(--paper);
  --focus:         var(--accent);

  /* Aurora / mesh tints for hero halo */
  --aurora-1: rgba(252, 95, 0, 0.32);
  --aurora-2: rgba(255, 178, 128, 0.24);
  --aurora-3: rgba(29, 16, 9, 0.08);

  /* Type */
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body:    'Geist', 'Inter', -apple-system, system-ui, sans-serif;
  --mono:    'Geist Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --container:        1280px;
  --container-narrow:  780px;
  --container-wide:   1440px;

  --ease:      cubic-bezier(0.2, 0, 0, 1);
  --ease-emph: cubic-bezier(0.3, 0, 0, 1);
  --dur-fast:  120ms;
  --dur-base:  200ms;
  --dur-slow:  360ms;

  --nav-h: 56px;

  /* Type scale */
  --text-xs:      11px;
  --text-sm:      13px;
  --text-base:    15px;
  --text-md:      17px;
  --text-lg:      19px;
  --text-xl:      22px;
  --text-2xl:     26px;
  --text-3xl:     clamp(20px, 2.4vw, 32px);
  --text-h2:      clamp(30px, 5.5vw, 72px);
  --text-h1:      clamp(44px, 11vw, 184px);
  --text-display: clamp(36px, 7vw, 112px);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  56px;
  --space-9:  64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 128px;

  color-scheme: light;
}

/* ---------- Semantic theme tokens · DARK overrides ---------- */
:root[data-theme="dark"] {
  --bg:            #14110E;          /* warm near-black, brown-tinted */
  --bg-1:          #1F1A14;          /* raised surface (cards, paper-2) */
  --bg-2:          #2A1F18;          /* deeper raised (paper-3 echo) */
  --bg-inverse:    #0A0703;          /* deeper than --bg, near-black */
  --bg-elevated:   #261E16;

  --text:          #F2EFE8;
  --text-soft:     #D4CEC2;
  --text-muted:    #9D968B;
  --text-faint:    #6F695F;
  --text-inverse:  #1D1009;

  --rule:          #2D261D;
  --rule-strong:   #3D3528;
  --rule-inverse:  #2D261D;
  --rule-inverse-strong: #3D3528;

  /* Slight luminance/chroma lift on the orange so it doesn't vibrate on near-black */
  --accent:        oklch(72% 0.18 47);
  --accent-deep:   oklch(64% 0.19 41);
  --accent-soft:   oklch(28% 0.06 47);
  --accent-on:     #14110E;

  --overlay-strong: rgba(0, 0, 0, 0.78);
  --overlay-medium: rgba(0, 0, 0, 0.60);
  --overlay-soft:   rgba(0, 0, 0, 0.40);
  --shadow-card:    0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --shadow-strong:  0 32px 64px -16px rgba(0, 0, 0, 0.7);

  --selection-bg:  var(--accent);
  --selection-fg:  #14110E;

  --aurora-1: rgba(252, 95, 0, 0.36);
  --aurora-2: rgba(255, 178, 128, 0.16);
  --aurora-3: rgba(255, 241, 230, 0.06);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: manual;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
ul, ol { list-style: none; }

::selection { background: var(--selection-bg); color: var(--selection-fg); }

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

/* Photos in dark: gentle desaturation so RGB-pure stock images don't blast luminance */
:root[data-theme="dark"] img:not([data-no-tone]) { filter: saturate(0.92) brightness(0.95); }

/* Theme-aware scrollbar (Chromium + Firefox) */
:root { scrollbar-color: color-mix(in oklab, var(--text) 24%, transparent) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--text) 22%, transparent);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in oklab, var(--accent) 65%, transparent); }

/* ---------- Containers ---------- */
.container        { max-width: var(--container);        margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
.container-wide   { max-width: var(--container-wide);   margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .container, .container-narrow, .container-wide { padding: 0 24px; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 600; line-height: 1.18; }
h4 { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.01em; }

/*
 * Italic accent — the brand's positional grammar.
 * Italic-orange marks the *thing being argued*. Never decorative-only.
 */
h1 .accent, h2 .accent, h3 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: inherit;
  font-family: var(--display);
  position: relative;
  display: inline-block;
}

/* Drawn underline on accent words once they've entered view.
   Slightly more present than v1 so the accent word feels deliberately marked. */
h1 .accent::after, h2 .accent::after, h3 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: 0.07em;
  background: currentColor;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.48;
  transition: transform 1100ms var(--ease-emph) 280ms, opacity 600ms var(--ease) 280ms;
  pointer-events: none;
}
.reveal.in h1 .accent::after,
.reveal.in h2 .accent::after,
.reveal.in h3 .accent::after,
h1.in .accent::after, h2.in .accent::after, h3.in .accent::after { transform: scaleX(1); }

/* ---------- Hero · kinetic word load ----------
   JS splits the hero headline into <span class="word"> tokens, then sets --i.
   The .in class (added by IO immediately on load since the headline is above the fold)
   tweens each word in with a 45ms stagger. The parent .reveal transition is suppressed
   so we don't double-up motion.
*/
:root.js .hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.42em, 0);
  transition: opacity 800ms var(--ease-emph), transform 800ms var(--ease-emph);
  transition-delay: calc(var(--i, 0) * 45ms);
  /* Prevent descenders being clipped by inline-block overflow */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  will-change: opacity, transform;
}
:root.js .hero-headline.in .word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* When kinetic is active on a .reveal headline, suppress the parent transform/opacity
   so only the word stagger plays. */
:root.js .hero-headline.reveal[data-kinetic="done"] {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  :root.js .hero-headline .word { opacity: 1; transform: none; transition: none; }
}

p { margin-bottom: 1.1em; max-width: 65ch; color: var(--text); text-wrap: pretty; }
p.lede { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; color: var(--text-soft); max-width: 32ch; font-weight: 400; }
p.deck { font-size: 19px; color: var(--text-soft); line-height: 1.55; max-width: 50ch; }
p.small { font-size: 14px; color: var(--text-muted); }

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, currentColor 35%, transparent);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
a:hover { color: var(--accent); border-bottom-color: currentColor; }
:root[data-theme="dark"] a { color: var(--accent); }
:root[data-theme="dark"] a:hover { color: var(--orange-200); }
a.plain, a.btn, .nav a, footer a { border-bottom: 0; }

em.accent { color: var(--accent); font-style: italic; font-weight: 600; font-family: var(--display); }

strong { font-weight: 600; color: var(--text); }

/* ---------- Section markers (editorial) ---------- */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-number {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-left: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(56px, 9vw, 140px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
section.no-rule { border-top: 0; }
section.tight { padding: clamp(40px, 5vw, 96px) 0; }
section.dark {
  background: var(--bg-inverse);
  color: var(--paper);
  border-top: 0;
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--paper); }
section.dark p { color: var(--paper); }
section.dark p.deck { color: var(--gray-300); }
section.dark .section-label { color: var(--accent); }
section.dark a { color: var(--accent); }
section.dark a:hover { color: var(--orange-200); }

section.paper-2 { background: var(--bg-1); border-top-color: var(--rule-strong); }

/* Per-section local theming so dark blocks always read as inverse */
section.dark {
  --text: var(--paper);
  --text-soft: var(--gray-300);
  --text-muted: var(--gray-300);
  --rule: var(--charcoal-2);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--ink) 96%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--charcoal-2);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur-base) var(--ease);
}
:root[data-theme="dark"] .nav {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom-color: var(--rule);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  :root[data-theme="dark"] .nav { background: var(--bg); }
}

/* Scroll-progress hairline along the bottom of the nav */
.nav::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 1;
}
@supports (animation-timeline: scroll()) {
  .nav::after {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress { to { transform: scaleX(1); } }
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-brand {
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav-brand img { width: 22px; height: 22px; }
.nav-brand .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.nav-list {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-list a {
  color: var(--gray-300);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right var(--dur-base) var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"], .nav-list a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--charcoal-2);
  border-radius: 999px;
  color: var(--paper);
  background: var(--charcoal-2);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }

/* Theme toggle button — sits between .nav-list and .nav-cta. Sun/moon swap. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--charcoal-2);
  background: transparent;
  color: var(--paper);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle:active { transform: rotate(0deg) scale(0.94); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
:root[data-theme="dark"] .theme-toggle .icon-sun { transform: scale(0.5) rotate(-40deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .icon-moon { transform: scale(1) rotate(0deg); opacity: 1; }
:root:not([data-theme="dark"]) .theme-toggle .icon-sun { transform: scale(1) rotate(0deg); opacity: 1; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { transform: scale(0.5) rotate(40deg); opacity: 0; }
.theme-toggle:focus-visible { outline-offset: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--paper);
}
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease), top var(--dur-base) var(--ease);
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top:  6px; }
.nav.open .nav-toggle .bar { background: transparent; }
.nav.open .nav-toggle .bar::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle .bar::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; order: 3; }
  .theme-toggle { order: 2; margin-left: auto; }
  .nav.open + main { filter: blur(2px); pointer-events: none; }
  .nav.open .nav-list, .nav.open .nav-cta { display: flex; }
  .nav.open .nav-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0 0 24px;
    gap: 0;
  }
  .nav.open .nav-brand {
    height: var(--nav-h);
    flex-shrink: 0;
  }
  .nav.open .nav-toggle {
    position: absolute;
    top: env(safe-area-inset-top, 0px);
    right: 24px;
    height: var(--nav-h);
  }
  .nav.open .theme-toggle {
    position: absolute;
    top: env(safe-area-inset-top, 0px);
    right: 76px;
    height: var(--nav-h);
    width: var(--nav-h);
    border: 0;
    margin: 0;
  }
  .nav.open .nav-list {
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    width: 100%;
    padding: 8px 0 0;
    border-top: 1px solid var(--charcoal-2);
  }
  .nav.open .nav-list a {
    font-size: 17px;
    letter-spacing: 0.04em;
    padding: 16px 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--charcoal-2);
  }
  .nav.open .nav-list a::after { display: none; }
  .nav.open .nav-cta {
    align-self: flex-start;
    margin-top: 20px;
    padding: 14px 22px;
    min-height: 48px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
  border-top: 0;
  position: relative;
  overflow: hidden;
  /* Pointer-tracked spotlight; falls back to centered gradient when JS off */
  --mx: 50%;
  --my: 30%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

/* Aurora · animated gradient mesh wash. Single instance, hero only.
   Slightly more present than v1 — designed to be felt, not seen. */
.hero::after {
  content: '';
  position: absolute;
  inset: -20% -8% -10% -8%;
  background:
    radial-gradient(38% 52% at 14% 22%, var(--aurora-1) 0%, transparent 64%),
    radial-gradient(36% 48% at 88% 28%, var(--aurora-2) 0%, transparent 68%),
    radial-gradient(60% 70% at 50% 100%, var(--aurora-3) 0%, transparent 72%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  animation: auroraDrift 26s ease-in-out infinite;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%,  1%, 0) rotate(-1deg) scale(1);    }
  50%  { transform: translate3d( 3%, -3%, 0) rotate(2deg)  scale(1.06); }
  100% { transform: translate3d(-2%,  1%, 0) rotate(-1deg) scale(1);    }
}

/* Cursor spotlight — JS sets --mx/--my on pointer move. Disabled on coarse pointers. */
.hero .hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    color-mix(in oklab, var(--accent) 14%, transparent) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.hero[data-pointer="fine"] .hero-spotlight { opacity: 1; }

.hero-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: clamp(20px, 3vw, 36px);
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--text); font-weight: 600; }

.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}
.hero-headline .accent { color: var(--accent); font-style: italic; font-weight: 700; }
.hero-headline .ink-soft { color: var(--text-soft); }

.hero-deck {
  margin-top: clamp(18px, 2vw, 28px);
  max-width: 60ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-soft);
  line-height: 1.45;
}
.hero-tagline {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 32px;
  max-width: 22ch;
  line-height: 1.2;
}
.hero-tagline .last { color: var(--accent); }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .hero-bottom { grid-template-columns: 1.6fr 1fr; gap: 64px; }
}

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.stat { border-top: 2px solid var(--text); padding-top: 16px; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.45;
}
section.dark .stat { border-top-color: var(--paper); }
section.dark .stat-label { color: var(--gray-300); }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 2fr; gap: 80px; } }

.two-col-even {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 880px) { .two-col-even { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text-soft);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 32px;
  margin: 56px 0;
  max-width: 28ch;
  text-wrap: balance;
}
.pull-quote em { font-style: italic; color: var(--accent); font-weight: 600; }
.pull-quote-attr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 24px;
  display: block;
}
.pull-quote-attr strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
  position: relative;
}
.btn::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease);
}
.btn.no-arrow::after { display: none; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); color: var(--paper); box-shadow: 0 12px 28px -8px color-mix(in oklab, var(--accent) 60%, transparent); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--charcoal); color: var(--paper); transform: translateY(-1px); }
.btn-secondary { background: transparent; border-color: var(--text); color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--accent); padding: 6px 0; }
.btn-ghost:hover { color: var(--accent-deep); }
:root[data-theme="dark"] .btn-ghost:hover { color: var(--orange-200); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* Magnetic primary CTA — JS sets --tx/--ty on pointermove; reset on leave.
   Override the hover translateY of .btn-primary so the hover state doesn't fight the magnet. */
.btn-magnetic { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform 220ms var(--ease); }
.btn-primary.btn-magnetic:hover,
.btn-magnetic:hover { transform: translate(var(--tx, 0), var(--ty, 0)); }

/* ---------- Tag chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--rule-strong);
}
.chip::before { content: "·"; color: var(--accent); font-weight: 700; }
.chip.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.solid::before { color: var(--accent); }
.chip.outline { background: transparent; }

section.dark .chip { background: var(--charcoal-2); color: var(--paper); border-color: var(--charcoal-3); }

/* ---------- Cards · companies ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 720px)  { .company-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1080px) { .company-grid { grid-template-columns: repeat(3, 1fr); } }

.company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}
.company-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.company-card-top {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.company-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.company-card:hover .company-card-top img { transform: scale(1.04); }
.company-card-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--overlay-medium) 100%);
  pointer-events: none;
}
/* Card shine — light streak across the image on hover */
.company-card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in oklab, var(--paper) 32%, transparent) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 900ms var(--ease-emph);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
.company-card:hover .company-card-top::before { transform: translateX(110%); }

.company-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  z-index: 2;
}
.company-card-tag.live { background: var(--accent); color: var(--accent-on); }
.company-card-tag.coming { background: var(--charcoal-2); color: var(--paper); }
.company-card-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}
.company-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.company-card-cat {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.company-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.company-card p { color: var(--text-soft); margin: 0; max-width: none; font-size: 15px; line-height: 1.55; }
.company-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: auto;
}
.company-card-footer strong { color: var(--text); }

/* h2 in company-hero card needs a tight measure */
.company-h2-tight { max-width: 14ch; margin-bottom: 16px; }

/* ---------- Big company hero ---------- */
.company-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 880px) { .company-hero { grid-template-columns: 1fr 1fr; gap: 80px; } }
.company-hero-image {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.company-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.company-hero-image figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--overlay-strong);
  padding: 8px 12px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---------- Trait / principle ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 56px;
}
@media (min-width: 880px) { .principles { grid-template-columns: 1fr 1fr; gap: 56px 80px; } }
.principle {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  position: relative;
  transition: padding-left var(--dur-base) var(--ease), border-left-width var(--dur-base) var(--ease);
}
.principle:hover { padding-left: 28px; }
.principle h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.principle p { color: var(--text-soft); }
.principle .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

/* ---------- Voice cols ---------- */
.voice-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}
@media (min-width: 720px) { .voice-table { grid-template-columns: 1fr 1fr; gap: 32px; } }
.voice-col {
  background: var(--bg-1);
  padding: 28px;
  border-radius: 4px;
  position: relative;
}
.voice-col.do   { border-top: 3px solid var(--accent); }
.voice-col.dont { border-top: 3px solid var(--charcoal); }
.voice-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.voice-col.dont h4 { color: var(--text); }
.voice-col li {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.4;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-soft);
}
.voice-col li:last-child { border-bottom: 0; }
.voice-col.do   li::before { content: '+'; color: var(--accent);   margin-right: 12px; font-weight: 700; }
.voice-col.dont li::before { content: '−'; color: var(--text); margin-right: 12px; font-weight: 700; }

/* ---------- Numbered steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
}
@media (min-width: 720px)  { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero) ".";
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.step h4 { font-size: var(--text-xl); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text-soft); margin: 0; }

/* ---------- Honest disclosure ---------- */
.disclose {
  background: var(--bg-1);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 6px 6px 0;
}
.disclose .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.disclose p { margin: 0; font-size: 15px; color: var(--text-soft); max-width: none; }
.disclose p + p { margin-top: 8px; }

/* ---------- Figure / image ---------- */
.figure {
  margin: clamp(40px, 6vw, 72px) 0;
}
.figure img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.figure figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Detail row ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) { .detail-row { grid-template-columns: 200px 1fr; align-items: baseline; } }
.detail-row > * { padding: 24px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.detail-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.detail-row dd { color: var(--text); font-size: 16px; line-height: 1.55; max-width: none; }
.detail-row dd a { color: var(--accent-deep); }
:root[data-theme="dark"] .detail-row dd a { color: var(--accent); }
.detail-row dd strong { color: var(--text); font-weight: 600; }

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--bg-inverse);
  color: var(--paper);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--charcoal-2);
  border-bottom: 1px solid var(--charcoal-2);
  position: relative;
  /* Edge fade so the strip slides under instead of clipping abruptly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.marquee-track > * { flex-shrink: 0; }
.marquee-track .dot { color: var(--accent); }
.marquee-track em { font-style: italic; color: var(--accent); font-weight: 600; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Press / Journal ---------- */
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}
@media (min-width: 720px) { .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; } }
@media (min-width: 1080px){ .journal-grid { grid-template-columns: repeat(3, 1fr); } }
.journal-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  color: var(--text);
  border-bottom: 0;
  position: relative;
  transition: border-top-color var(--dur-base) var(--ease);
}
.journal-item::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease);
}
.journal-item:hover::before { transform: scaleX(1); }
.journal-item .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.journal-item h3 {
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1.18;
  transition: color var(--dur-fast) var(--ease);
  color: var(--text);
}
.journal-item:hover h3 { color: var(--accent-deep); }
:root[data-theme="dark"] .journal-item:hover h3 { color: var(--accent); }
.journal-item p { color: var(--text-soft); margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- Image scroll strip ---------- */
.imagestrip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 720px)  { .imagestrip { grid-template-columns: 2fr 1fr; gap: 16px; } }
@media (min-width: 1080px) { .imagestrip { grid-template-columns: 2fr 1fr 1fr; } }
.imagestrip-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
}
.imagestrip-item img { width: 100%; height: 100%; object-fit: cover; }
.imagestrip-item figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--overlay-strong);
  padding: 6px 10px;
  border-radius: 4px;
}
@media (min-width: 720px) {
  .imagestrip-item:first-child { aspect-ratio: 4 / 3; }
}

/* ---------- Editorial body (article pages) ---------- */
.article {
  padding: clamp(56px, 8vw, 96px) 0;
}
.article header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(40px, 6vw, 64px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.article header h1 { font-size: clamp(40px, 7vw, 96px); line-height: 0.98; max-width: 18ch; }
.article header .deck { font-size: clamp(18px, 1.7vw, 22px); color: var(--text-soft); margin-top: 28px; max-width: 50ch; line-height: 1.45; }
.article-body p,
.article-body ul,
.article-body ol { max-width: 65ch; margin-left: auto; margin-right: auto; }
.article-body h2 { margin: clamp(40px, 5vw, 72px) auto 16px; max-width: 35ch; font-size: clamp(28px, 3.5vw, 44px); }
.article-body h3 { margin: 32px auto 12px; max-width: 50ch; font-size: 22px; }
.article-body p  { font-size: 18px; line-height: 1.7; color: var(--text); }
.article-body p.lede { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--text-soft); margin: 24px auto 32px; max-width: 38ch; }
.article-body ul,
.article-body ol { padding-left: 24px; margin-bottom: 1.4em; color: var(--text); }
.article-body ul li,
.article-body ol li { padding: 4px 0; line-height: 1.6; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li::before { content: '— '; color: var(--accent); font-weight: 700; margin-right: 4px; }
.article-body blockquote {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-soft);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 48px auto;
  max-width: 32ch;
  letter-spacing: -0.015em;
}
.article-body blockquote em { color: var(--accent); }
.article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.article-meta strong { color: var(--text); }

/* ---------- Compliance block ---------- */
.compliance {
  background: var(--bg-1);
  border: 1px solid var(--rule);
  padding: 28px 32px;
  border-radius: 6px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .compliance { grid-template-columns: repeat(2, 1fr); gap: 16px 32px; } }
.compliance-item .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 4px;
}
.compliance-item p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.compliance-item strong { color: var(--text); font-weight: 600; }

/* ---------- Marquee tagline (footer) ---------- */
.tagline-strip {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--paper);
}
.tagline-strip em { color: var(--accent); font-style: italic; font-weight: 700; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--bg-inverse);
  color: var(--paper);
  padding: clamp(72px, 10vw, 120px) 0 40px;
  border-top: 0;
}
footer.site h2 { color: var(--paper); }
footer.site .subscribe {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--charcoal-2);
}
@media (min-width: 880px) { footer.site .subscribe { grid-template-columns: 1.6fr 1fr; gap: 64px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; } }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col ul li { padding: 6px 0; }
.footer-col a {
  color: var(--paper);
  font-size: 15px;
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right var(--dur-base) var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-col a:hover::after { right: 0; }

.footer-brand img { width: 56px; height: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--gray-300); max-width: 32ch; margin: 0; font-size: 14px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--charcoal-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.footer-meta strong { color: var(--accent); font-weight: 600; }

/* Email field for newsletter / contact */
.email-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  background: var(--charcoal-2);
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  border: 1px solid var(--charcoal-3);
  align-items: center;
  max-width: 480px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.email-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}
.email-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
  outline: 0;
  padding: 12px 0;
}
.email-form input::placeholder { color: var(--gray-500); }
.email-form button {
  background: var(--accent);
  color: var(--accent-on);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.email-form button:hover { background: var(--accent-deep); color: var(--paper); }

/* Theme-aware autofill (kills the yellow tint) */
.email-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--paper);
  -webkit-box-shadow: 0 0 0 999px var(--charcoal-2) inset;
  caret-color: var(--paper);
}

/* ---------- Reveal animation ----------
   Only hides .reveal when JS is available (root .js class set in the inline early-script).
   Without JS the content is shown immediately so the page never appears broken. */
.reveal { opacity: 1; transform: none; }
:root.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}
:root.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  :root.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Big mark on dark blocks ---------- */
.mark-bg {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.06;
  width: 80vw;
  max-width: 1200px;
  inset: auto -10vw -20vw auto;
}
.mark-bg img { width: 100%; }

/* ---------- Sub navigation (in-page) ---------- */
.subnav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.subnav a { color: var(--text-muted); border-bottom: 0; }
.subnav a:hover { color: var(--accent); }

/* ---------- Code ---------- */
code:not(pre code) {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-1);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-soft);
}
pre {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 26px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0;
}
:root[data-theme="dark"] pre { background: var(--bg-1); border: 1px solid var(--rule); }
pre .c-key { color: var(--orange-200); }
pre .c-val { color: var(--orange-100); }
pre .c-com { color: var(--gray-500); font-style: italic; }

/* ---------- Big editorial photo ---------- */
.photo-block {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  margin: 32px 0;
}
.photo-block img { width: 100%; height: 100%; object-fit: cover; }
.photo-block figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--overlay-strong);
  padding: 8px 12px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---------- Hero with mark big bg ---------- */
.hero-bg-mark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  width: clamp(420px, 60vw, 920px);
  inset: auto -10% -20% auto;
  opacity: 0.08;
  z-index: 0;
  transition: opacity 800ms var(--ease);
}
.hero-bg-mark img { width: 100%; display: block; }
:root[data-theme="dark"] .hero-bg-mark { opacity: 0.10; }

.hero > .container { position: relative; z-index: 1; }

/* ---------- Banner / live status ---------- */
.banner {
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 0;
  text-align: center;
  position: relative;
}
.banner a { color: var(--accent-on); border-bottom: 1px solid color-mix(in oklab, var(--accent-on) 60%, transparent); }
.banner a:hover { color: var(--ink); }
.banner strong { font-weight: 600; }
:root[data-theme="dark"] .banner { color: var(--ink); }
:root[data-theme="dark"] .banner a { color: var(--ink); }

/* ---------- Number list ----------
   Each <li> is heading + body. Heading (<strong>) sits on its own line above the body
   so the pair reads as a key/value, not a run-on sentence.
*/
.numbered {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 24px;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-soft);
  letter-spacing: 0;
  line-height: 1.55;
  counter-reset: item;
}
.numbered li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.numbered li > strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
}
.numbered li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
/* Inside section.dark the inline color="var(--paper)" still wins on the strong;
   we just want the body text faintly softer than the bright heading. */
section.dark .numbered li { color: var(--gray-300); }
section.dark .numbered li > strong { color: var(--paper); }

/* ---------- Mini company tile ---------- */
.minilink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-1);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 12px 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  border-bottom: 1px solid var(--rule);
}
.minilink:hover { background: var(--accent-soft); border-color: var(--orange-200); color: var(--text); }
:root[data-theme="dark"] .minilink:hover { color: var(--paper); border-color: var(--accent); }
.minilink::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Side rail ---------- */
.rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}
@media (min-width: 880px) { .rail { grid-template-columns: 220px 1fr; gap: 64px; } }
.rail .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted  { color: var(--text-muted); }
.mono   { font-family: var(--mono); }
.display{ font-family: var(--display); }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-8 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }
.divider {
  height: 1px;
  background: var(--rule);
  margin: 48px 0;
  border: 0;
}

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

/* visually-hidden */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Source attribution */
.sources {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 16px;
  line-height: 1.6;
}
.sources a { color: var(--text-muted); border-bottom: 1px solid var(--rule); }
.sources a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }
:root[data-theme="dark"] .sources a:hover { color: var(--accent); border-bottom-color: var(--accent); }
section.dark .sources { color: var(--gray-300); }
section.dark .sources a { color: var(--gray-300); border-bottom-color: var(--charcoal-2); }
section.dark .sources a:hover { color: var(--accent); border-bottom-color: var(--accent); }
sup.cite { font-family: var(--mono); font-size: 0.6em; color: var(--accent); padding-left: 1px; font-style: normal; font-weight: 600; }
sup.cite a { color: var(--accent); border-bottom: 0; }

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  color: var(--accent-on);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 100;
}

/* ---------- View Transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: var(--ease-emph); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ============================================================
   Mobile fine-tuning
   ============================================================ */

@media (max-width: 880px) {
  .hero-deck { font-size: clamp(17px, 2.2vw, 20px); }
  .hero-tagline { font-size: clamp(20px, 5vw, 28px); }
  .pull-quote { padding-left: 20px; margin: 40px 0; }
  .principle h3 { font-size: clamp(20px, 4vw, 26px); }
  .hero::after { filter: blur(28px); }
}

@media (max-width: 720px) {
  .hero-headline .accent { display: block; }
  .banner { padding: 10px 0; }
  .banner .container {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-align: left;
  }
  .banner-item { display: inline-block; margin-right: 10px; }
  .hero { padding: 40px 0 48px; }
  section { padding: 56px 0; }
  .hero-meta {
    font-size: 11px;
    letter-spacing: 0.1em;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero-bottom { gap: 24px; margin-top: 40px; padding-top: 24px; }
  .stat-row { gap: 20px; }
  .stat-num { font-size: clamp(32px, 9vw, 48px); }
  .pull-quote {
    font-size: clamp(24px, 5.5vw, 36px);
    margin: 32px 0;
    padding: 4px 0 4px 18px;
  }
  .marquee { padding: 14px 0; }
  .marquee-track { gap: 36px; font-size: clamp(22px, 5vw, 36px); }
  .principles { gap: 32px !important; }
  .principle { padding-left: 18px; }
  .voice-col { padding: 24px 22px; }
  .voice-col li { font-size: 16px; }
  .compliance { padding: 22px; }
  .article header h1 { font-size: clamp(36px, 9vw, 64px); }
  .article-body p { font-size: 17px; line-height: 1.65; }
  .article-body blockquote { font-size: clamp(22px, 5.5vw, 32px); padding-left: 20px; margin: 32px auto; }
  .tagline-strip { font-size: clamp(36px, 11vw, 80px); }
  .footer-grid { gap: 32px; }
  .pull-quote-attr { margin-top: 16px; }
  .btn-row { gap: 10px; }
  .btn { padding: 13px 20px; font-size: 14px; }
  .chip { font-size: 10px; padding: 6px 10px; }
  .company-card-name { font-size: 28px; }
  .company-card-top { aspect-ratio: 16 / 11; }
  .company-hero-image { aspect-ratio: 4 / 3 !important; }
  .detail-row dt { padding-bottom: 4px; padding-top: 16px; }
  .detail-row dd { padding-top: 0; padding-bottom: 16px; }
  .form-stack { gap: 14px; }
}

@media (max-width: 520px) {
  .container, .container-narrow, .container-wide { padding: 0 20px; }
  h1 { font-size: clamp(40px, 11vw, 184px); }
  h2 { font-size: clamp(28px, 7vw, 72px); }
  .hero-headline { font-size: clamp(40px, 13vw, 200px); line-height: 0.95; }
  .hero-deck { font-size: 16px; line-height: 1.55; }
  .hero-tagline { font-size: 22px; }
  .section-label { font-size: 10px; letter-spacing: 0.14em; gap: 8px; }
  .section-label::before { width: 20px; }
  .section-number { font-size: 10px; }
  .stat { padding-top: 12px; }
  .stat-label { font-size: 10px; line-height: 1.35; margin-top: 8px; }
  .nav-brand span { font-size: 13px; }
  .nav-cta { padding: 7px 12px; font-size: 11px; }
  .marquee-track { gap: 28px; font-size: clamp(20px, 5.6vw, 32px); }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 10px; }
  .article header h1 { font-size: clamp(32px, 9.5vw, 56px); }
  .article-body blockquote { font-size: clamp(20px, 5.5vw, 30px); }
  .pull-quote { font-size: clamp(22px, 6vw, 32px); }
  .voice-col li { font-size: 15px; padding: 10px 0; }
  .principle { padding-left: 16px; }
  .principle h3 { font-size: clamp(20px, 5.5vw, 26px); }
  .step h4 { font-size: 19px; }
  .step::before { font-size: 22px; }
  .company-card-name { font-size: 26px; bottom: 14px; left: 14px; }
  .company-card-tag { font-size: 10px; padding: 4px 8px; top: 14px; left: 14px; }
  .company-card-body { padding: 20px 20px 24px; }
  .company-card-footer { padding: 14px 20px; flex-wrap: wrap; gap: 8px; font-size: 10px; }
  .company-card h3 { font-size: 19px; }
  .company-card p { font-size: 14px; }
  .compliance { padding: 20px; }
  .compliance-item p { font-size: 13px; }
  .disclose { padding: 20px 22px; }
  .chips { gap: 6px; }
  .chip { font-size: 10px; padding: 5px 9px; letter-spacing: 0.05em; }
  .channel { padding: 14px 16px; gap: 14px; }
  .channel-icon { width: 32px; height: 32px; font-size: 13px; }
  .channel h4 { font-size: 14px; word-break: break-word; }
  .channel p { font-size: 13px; }
  .form-row label { font-size: 10px; }
  .footer-col h4 { font-size: 10px; margin-bottom: 12px; }
  .footer-col a { font-size: 14px; }
  .tagline-strip { font-size: clamp(32px, 12vw, 64px); }

  .email-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 12px;
    gap: 8px;
  }
  .email-form input { padding: 12px 16px; }
  .email-form button { padding: 14px 18px; min-height: 48px; }

  .btn { min-height: 44px; padding: 12px 20px; }

  .article-body p { font-size: 17px; }
  .article-body p.lede { font-size: 19px; line-height: 1.45; }
}

@media (max-width: 380px) {
  .container, .container-narrow, .container-wide { padding: 0 16px; }
  .hero-headline { font-size: clamp(36px, 13vw, 200px); }
  .hero-tagline { font-size: 20px; }
  h2 { font-size: clamp(26px, 7.5vw, 72px); }
  .stat-num { font-size: 30px; }
  .nav-brand span { display: none; }
  .nav-brand img { width: 26px; height: 26px; }
  .marquee-track { gap: 24px; font-size: 22px; }
  .article header h1 { font-size: clamp(30px, 10vw, 48px); }
  .compliance { grid-template-columns: 1fr; }
}

/* Touch-only tweaks */
@media (hover: none) and (pointer: coarse) {
  .company-card:hover { transform: none; box-shadow: none; }
  .btn:hover { transform: none; }
  .btn-primary:hover { transform: none; box-shadow: none; }
  .btn-dark:hover { transform: none; }
  .hero-spotlight { display: none; }
  .principle:hover { padding-left: 24px; }
  .nav-list a::after { display: none; }
}

/* Reduced motion: drop animations completely */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track, .marquee-track * { animation: none !important; }
  .hero::after { animation: none !important; }
  .hero-spotlight { display: none !important; }
}

/* Reduced transparency: drop blurs */
@media (prefers-reduced-transparency: reduce) {
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .photo-block figcaption,
  .imagestrip-item figcaption,
  .company-hero-image figcaption {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ink);
  }
  .hero::after { display: none; }
}

/* High contrast: thicken rules, drop decorative gradients */
@media (prefers-contrast: more) {
  :root {
    --rule: color-mix(in oklab, var(--text) 45%, transparent);
    --rule-strong: color-mix(in oklab, var(--text) 65%, transparent);
  }
  .hero::after { display: none; }
  .hero-bg-mark { display: none; }
  .company-card-top::before { display: none; }
}

/* Forced colors (Windows High Contrast / Edge) */
@media (forced-colors: active) {
  .hero::after, .hero-spotlight, .hero-bg-mark, .hero-photo, .company-card-top::before { display: none; }
  .btn, .nav-cta, .theme-toggle, .chip, .company-card { border: 1px solid CanvasText; }
  .btn-primary { background: Highlight; color: HighlightText; }
}

/* iOS Safari address-bar collapse */
@supports (height: 100dvh) {
  .full-screen-min { min-height: 100dvh; }
}

/* Print: drop fixed nav, dark sections, photos */
@media print {
  .nav, .marquee, footer.site, .hero-bg-mark, .hero-photo, .mark-bg, .theme-toggle { display: none; }
  body, section, .hero { background: white !important; color: black !important; }
  section.dark { background: white !important; color: black !important; }
  section.dark *, section.dark h2, section.dark h3, section.dark p { color: black !important; }
  .pull-quote { border-color: #FC5F00; color: black; }
  a { color: black !important; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* ---------- Full-bleed hero photo (.hero > .hero-photo) ---------- */
/* Used on index.html and manifesto.html. Sits behind .hero-bg-mark and .container.
   Image renders at full opacity; a translucent paper/ink gradient overlay
   keeps the headline + accent text legible in both themes. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--paper) 86%, transparent) 0%,
    color-mix(in srgb, var(--paper) 64%, transparent) 50%,
    color-mix(in srgb, var(--paper) 92%, transparent) 100%);
  pointer-events: none;
}
:root[data-theme="dark"] .hero-photo::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) 84%, transparent) 0%,
    color-mix(in srgb, var(--ink) 60%, transparent) 50%,
    color-mix(in srgb, var(--ink) 92%, transparent) 100%);
}
@media (max-width: 720px) {
  .hero-photo::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 92%, transparent) 0%,
      color-mix(in srgb, var(--paper) 78%, transparent) 50%,
      color-mix(in srgb, var(--paper) 96%, transparent) 100%);
  }
  :root[data-theme="dark"] .hero-photo::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--ink) 92%, transparent) 0%,
      color-mix(in srgb, var(--ink) 76%, transparent) 50%,
      color-mix(in srgb, var(--ink) 96%, transparent) 100%);
  }
}

/* ---------- Journal index card thumbnail (.journal-item > .journal-thumb) ---------- */
.journal-item .journal-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0 0 16px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}
.journal-item .journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.journal-item:hover .journal-thumb img,
.journal-item:focus-visible .journal-thumb img {
  transform: scale(1.03);
}
