/*
 * base.css — the audited visual language, extracted from apps/demo/index.html.
 *
 * DO NOT EDIT BY HAND. Regenerate:
 *     node apps/landing/extract-base.mjs
 *
 * Edit the demo page instead; it is the reference the design partner audited
 * and the one carrying the 17 page tests. test/base-css.test.ts fails when this
 * file and the demo have drifted apart.
 */

:root {
      color-scheme: light;
      --surface: #ffffff;
      --surface-raised: #f4f4f1;
      --surface-soft: #ecece7;
      --surface-ink: #191917;
      --text: #1b1b19;
      --text-muted: #56616d;
      --text-on-ink: #ffffff;
      --border: #d8d8d1;
      --border-strong: #9d9d95;
      --accent: #145fb8;
      --accent-soft: #eaf2fb;
      --attention: #92510c;
      --attention-soft: #fff5e7;
      --ok: #47641c;
      --ok-soft: #eef4e6;
      --pending: #596676;
      --pending-soft: #eef1f4;
      --focus: #0c66d4;
      --danger: #8c2f27;
      --radius-input: 4px;
      --radius-button: 8px;
      --radius-card: 12px;
      --max: 1150px;
      --app-min: 860px;
      --app-header: 42px;
      --ease: cubic-bezier(.2,.75,.25,1);
    }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
      margin: 0;
      min-width: 320px;
      background: var(--surface);
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.5;
      text-rendering: optimizeLegibility;
    }

button, input, textarea, select { font: inherit; }

button, a, summary, select, label, input[type="checkbox"] { cursor: pointer; }

button[disabled] { opacity: .45; cursor: not-allowed; }

.button.is-loading { position: relative; color: transparent !important; }

.button.is-loading::after {
      content: ""; position: absolute; inset: 0; margin: auto;
      width: 14px; height: 14px; border-radius: 50%;
      border: 2px solid #fff; border-right-color: transparent;
      animation: buttonSpin .7s linear infinite;
    }

@keyframes buttonSpin { to { transform: rotate(360deg); } }

button { color: inherit; }

a { color: var(--accent); text-underline-offset: 3px; }

svg { display: block; }

[hidden] { display: none !important; }

.skip-link {
      position: fixed;
      z-index: 100;
      top: 8px;
      left: 8px;
      padding: 10px 14px;
      border-radius: var(--radius-button);
      background: var(--surface-ink);
      color: var(--text-on-ink);
      transform: translateY(-150%);
      transition: transform 160ms var(--ease);
    }

.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.eyebrow {
      margin: 0 0 12px;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .11em;
      text-transform: uppercase;
    }

.button {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 16px;
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-button);
      background: transparent;
      text-decoration: none;
      font-weight: 650;
      transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
    }

.button:hover { background: var(--surface-raised); border-color: var(--text); }

.button:active { transform: translateY(1px); }

.button.primary { border-color: var(--surface-ink); background: var(--surface-ink); color: var(--text-on-ink); }

.button.primary:hover { background: #353531; }

.button.small { min-height: 44px; padding: 9px 11px; font-size: 13px; }

.button[aria-pressed="true"] { border-color: var(--text); background: var(--surface-soft); }

.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.wordmark { font-size: 22px; font-weight: 820; letter-spacing: -.04em; }

.expansion { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-muted); font-size: 12px; }

.expansion b { color: var(--text); }

.site-header {
      position: sticky;
      z-index: 20;
      top: 0;
      border-bottom: 1px solid rgba(216,216,209,.92);
      background: rgba(255,255,255,.94);
      backdrop-filter: blur(12px);
    }

.site-header .container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand-lockup { display: grid; gap: 2px; color: var(--text); text-decoration: none; }

.header-link { color: var(--text); font-size: 14px; font-weight: 650; text-decoration: none; }

.header-link:hover { text-decoration: underline; }

.hero {
      min-height: min(820px, calc(100vh - 64px));
      display: grid;
      place-items: center;
      padding: 96px 0 80px;
      overflow: hidden;
      border-bottom: 1px solid var(--border);
    }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 64px; align-items: center; }

.hero h1 {
      max-width: 850px;
      margin: 0;
      font-size: clamp(64px, 10vw, 142px);
      line-height: .88;
      letter-spacing: -.075em;
      font-weight: 770;
    }

.hero h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 500; }

.hero-copy { max-width: 62ch; margin: 28px 0 28px; font-size: clamp(18px, 2vw, 22px); color: #3f464d; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-note { color: var(--text-muted); font-size: 13px; }

.hero-mark {
      min-height: 430px;
      display: grid;
      grid-template-rows: repeat(5, 1fr);
      border: 1px solid var(--border-strong);
      border-radius: var(--radius-card);
      background: var(--surface-raised);
      overflow: hidden;
    }

.principle-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; border-bottom: 1px solid var(--border); }

.principle-row:last-child { border-bottom: 0; }

.principle-letter { display: grid; place-items: center; height: 100%; border-right: 1px solid var(--border); font-size: 36px; font-weight: 780; }

.principle-copy { padding: 16px 20px; }

.principle-copy strong { display: block; font-size: 18px; }

.principle-copy span { color: var(--text-muted); font-size: 13px; }

.landing-section { padding: 96px 0; border-bottom: 1px solid var(--border); }

.section-heading { max-width: 760px; margin: 0 0 48px; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }

.section-heading em { font-family: Georgia, serif; font-weight: 500; }

.three-up { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }

.feature { min-height: 250px; padding: 28px; border-right: 1px solid var(--border); background: var(--surface); }

.feature:last-child { border-right: 0; }

.feature-index { display: block; margin-bottom: 64px; color: var(--text-muted); font: 600 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

.feature h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.025em; }

.feature p { margin: 0; color: var(--text-muted); }

.truth-band { background: var(--surface-ink); color: var(--text-on-ink); }

.truth-band .eyebrow { color: #c5c9c6; }

.truth-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }

.truth-band .section-heading { margin-bottom: 0; }

.law-list { border-top: 1px solid #555650; }

.law { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid #555650; }

.law strong { color: #d7d9d5; font-size: 13px; letter-spacing: .08em; }

.law p { margin: 0; font-size: 18px; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--border); }

.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: var(--text-muted); font-size: 13px; }

.site-header {
      border-bottom-color: rgba(255,255,255,.18);
      background: rgba(7,10,12,.86);
      color: var(--text-on-ink);
    }

.site-header .brand-lockup,
    .site-header .header-link { color: var(--text-on-ink); }

.site-header .expansion { color: #bac3ca; }

.site-header .expansion b { color: var(--text-on-ink); }

.hero {
      position: relative;
      isolation: isolate;
      min-height: max(760px, calc(100svh - 64px));
      padding: 112px 0 72px;
      border-bottom: 0;
      background: #070a0c;
      color: var(--text-on-ink);
    }

.hero-atmosphere {
      position: absolute;
      z-index: -3;
      inset: -4%;
      width: 108%;
      height: 108%;
      object-fit: cover;
      object-position: 58% center;
      opacity: .82;
      transform: scale(1.04);
      animation: atmosphereDrift 16s var(--ease) infinite alternate;
    }

.hero-veil {
      position: absolute;
      z-index: -2;
      inset: 0;
      background: rgba(0,0,0,.32);
    }

.hero-fog {
      position: absolute;
      z-index: -1;
      inset: -6%;
      overflow: hidden;
      pointer-events: none;
    }

.hero-fog img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 58% center;
      will-change: transform;
    }

.hero-fog .fog-a {
      filter: blur(28px) brightness(1.25);
      mix-blend-mode: screen;
      opacity: .5;
      animation: fogDriftA 46s ease-in-out infinite alternate;
    }

.hero-fog .fog-b {
      filter: blur(52px) brightness(1.1);
      mix-blend-mode: screen;
      opacity: .38;
      animation: fogDriftB 78s ease-in-out infinite alternate;
    }

.hero-live {
      position: absolute;
      z-index: -1;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      mix-blend-mode: screen;
    }

.hero-grid {
      position: relative;
      grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
      gap: clamp(32px, 7vw, 92px);
      align-items: end;
    }

.hero-copy-block { align-self: center; padding-top: 24px; }

.hero .eyebrow { color: #d6dde2; }

.hero h1 {
      max-width: 980px;
      font-size: clamp(70px, 11.6vw, 176px);
      line-height: .78;
      letter-spacing: -.078em;
      text-wrap: balance;
    }

.hero h1 em { color: #dce8f0; }

.hero-copy { max-width: 58ch; color: #e5e9ec; }

.hero .button.primary {
      border-color: #ffffff;
      background: #f5f5f2;
      color: #171917;
    }

.hero .button.primary:hover { background: #ffffff; }

.hero-note { color: #d1d7db; }

.hero-mark {
      position: relative;
      min-height: 480px;
      align-self: end;
      border-color: rgba(255,255,255,.42);
      background: rgba(8,13,17,.64);
      backdrop-filter: blur(12px);
    }

.hero-mark::before {
      content: "";
      position: absolute;
      inset: 14px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      pointer-events: none;
    }

.principle-row { position: relative; border-bottom-color: rgba(255,255,255,.2); }

.principle-letter { border-right-color: rgba(255,255,255,.2); color: #ffffff; }

.principle-copy span { color: #bdc8cf; }

.hero-orbit {
      position: absolute;
      z-index: -1;
      right: -11vw;
      bottom: -24vw;
      width: min(54vw, 760px);
      aspect-ratio: 1;
      border: 1px solid rgba(255,255,255,.28);
      border-radius: 50%;
      animation: orbitTurn 24s linear infinite;
      pointer-events: none;
    }

.hero-orbit::before,
    .hero-orbit::after {
      content: "";
      position: absolute;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 50%;
    }

.hero-orbit::before { inset: 11%; }

.hero-orbit::after { inset: 27%; border-color: rgba(214,154,82,.38); }

.hero-orbit span {
      position: absolute;
      top: 7%;
      left: 50%;
      width: 12px;
      height: 12px;
      border: 2px solid #ffffff;
      border-radius: 50%;
      background: #9b641f;
    }

.kinetic-strip {
      position: relative;
      width: 100%;
      overflow: hidden;
      border-top: 1px solid #2c3337;
      border-bottom: 1px solid #2c3337;
      background: #0a0d0f;
      color: #ffffff;
      white-space: nowrap;
    }

.motion-toggle {
      position: absolute;
      z-index: 2;
      top: 50%;
      right: 16px;
      min-height: 44px;
      padding: 8px 13px;
      border: 1px solid #89949a;
      border-radius: var(--radius-button);
      background: #0a0d0f;
      color: #ffffff;
      font-size: 13px;
      font-weight: 700;
      transform: translateY(-50%);
    }

.motion-toggle:hover { background: #242a2d; }

.kinetic-track {
      display: flex;
      width: max-content;
      animation: kineticMove 26s linear infinite;
    }

.kinetic-strip:hover .kinetic-track,
    .kinetic-strip.is-paused .kinetic-track { animation-play-state: paused; }

.kinetic-set { display: flex; align-items: center; }

.kinetic-word {
      display: inline-flex;
      align-items: center;
      gap: 30px;
      padding: 20px 30px;
      font-size: clamp(19px, 2.4vw, 34px);
      font-weight: 760;
      letter-spacing: -.035em;
    }

.kinetic-word::after {
      content: "";
      width: 8px;
      height: 8px;
      border: 1px solid #9aa6ad;
      border-radius: 50%;
    }

.landing-section { position: relative; overflow: hidden; padding: 120px 0; }

.story-section { background: #f1f0eb; }

.story-lede {
      display: grid;
      grid-template-columns: minmax(0, .72fr) minmax(280px, .28fr);
      gap: 64px;
      align-items: end;
      margin-bottom: 56px;
    }

.story-lede .section-heading { margin: 0; }

.story-aside { max-width: 34ch; margin: 0; color: var(--text-muted); }

.three-up { border-color: #a8aaa5; background: #ffffff; }

.feature {
      position: relative;
      min-height: 340px;
      padding: 28px;
      transition: background-color 220ms var(--ease), transform 220ms var(--ease);
    }

.feature:hover { background: #f8f8f4; transform: translateY(-4px); }

.feature-index { margin-bottom: 92px; }

.feature-signal {
      position: absolute;
      top: 72px;
      right: 28px;
      left: 28px;
      height: 58px;
      border-top: 1px solid var(--border-strong);
      border-bottom: 1px solid var(--border);
    }

.feature-signal::before {
      content: "";
      position: absolute;
      top: -5px;
      left: var(--signal-position, 22%);
      width: 9px;
      height: 9px;
      border: 2px solid var(--surface);
      border-radius: 50%;
      background: var(--signal-color, var(--accent));
      outline: 1px solid var(--signal-color, var(--accent));
      animation: signalTravel 5s var(--ease) infinite alternate;
    }

.feature:nth-child(2) .feature-signal { --signal-position: 52%; --signal-color: var(--attention); }

.feature:nth-child(3) .feature-signal { --signal-position: 78%; --signal-color: var(--ok); }

.truth-band {
      min-height: 720px;
      display: grid;
      align-items: center;
      background: #07090a;
    }

.truth-band::before {
      content: "DISCLOSE / ADMIT";
      position: absolute;
      right: -2vw;
      bottom: -1vw;
      color: #151a1d;
      font-size: clamp(76px, 15vw, 230px);
      font-weight: 850;
      line-height: .76;
      letter-spacing: -.07em;
      white-space: nowrap;
      pointer-events: none;
    }

.truth-grid { position: relative; z-index: 1; grid-template-columns: 1fr 1fr; }

.truth-band .section-heading { font-size: clamp(58px, 8vw, 112px); }

.truth-band .section-heading em { color: #aabfd0; }

.law-list { border-top-color: #566066; }

.law { border-bottom-color: #566066; transition: padding-left 220ms var(--ease); }

.law:hover { padding-left: 12px; }

[data-reveal] { opacity: 1; transform: none; }

.motion-ready [data-reveal] {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 420ms var(--ease), transform 420ms var(--ease);
    }

.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes atmosphereDrift {
      from { transform: scale(1.04) translate3d(-1%, 0, 0); }
      to { transform: scale(1.09) translate3d(1.5%, -1%, 0); }
    }

@keyframes fogDriftA {
      from { transform: translate3d(-3.5%, 1.5%, 0) scale(1.06); }
      to { transform: translate3d(4%, -2.5%, 0) scale(1.16); }
    }

@keyframes fogDriftB {
      from { transform: translate3d(3.5%, 2%, 0) scale(1.12) rotate(1.5deg); }
      to { transform: translate3d(-4.5%, -2%, 0) scale(1.04) rotate(-1deg); }
    }

@keyframes orbitTurn { to { transform: rotate(360deg); } }

@keyframes kineticMove { to { transform: translateX(-50%); } }

@keyframes signalTravel {
      from { transform: translateX(-18px); }
      to { transform: translateX(18px); }
    }

@keyframes scanPulse {
      50% { outline-width: 8px; outline-color: rgba(20,95,184,.08); }
    }

@media (max-width: 900px) {
  .hero-grid, .truth-grid { grid-template-columns: 1fr; }
  .hero-mark { min-height: 350px; }
  .story-lede { grid-template-columns: 1fr; gap: 24px; }
  .three-up { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--border); }
  .feature:last-child { border-bottom: 0; }
}

@media (max-width: 768px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .site-header .expansion { display: none; }
  .hero { min-height: 880px; padding-top: 72px; }
  .hero h1 { font-size: clamp(56px, 20vw, 92px); }
  .hero-atmosphere { object-position: 64% center; opacity: .68; }
  .hero-orbit { right: -38vw; bottom: -12vw; width: 100vw; }
  .landing-section, .demo-section { padding: 72px 0; }
  .section-heading { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}


/*
 * site.css — what a multi-page site needs and a single demo page did not.
 *
 * Everything here obeys the rules `base.css` already establishes, because
 * those came from the audited design and `_doc/22`:
 *
 *   no box-shadow, ever      separation is background colour plus a 1px border
 *   radii 4 / 8 / 12         input, button, card. Nothing else.
 *   one type family          Inter, with Georgia italic for a single accented
 *                            word in a heading — `_doc/22` allows one per line
 *   no gradients             there is nothing to look at except the content
 *   tokens only              a raw hex here is a bug unless it is a tint of an
 *                            existing token that has no variable yet
 *
 * The demo is one page with a dark hero, so its header is dark unconditionally.
 * That carries over on purpose: the header is the brand bar and it looks the
 * same on every page, rather than changing identity between the home page and
 * an article.
 */

/* ---- Utilities -------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* Stagger set by motion.js; harmless when it never runs. */
.motion-ready [data-reveal] {
  transition-delay: var(--reveal-delay, 0ms);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Header: primary navigation ---------------------------------------- */

.site-header .container {
  gap: 20px;
}

.site-header.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.site-nav {
  margin-inline: auto 0;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-button);
  color: #d5dbdf;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-ink);
}

/* Current page is marked with weight and a rule, not with colour alone —
   `_doc/22` §3.1: meaning may never rest on colour by itself. */
.site-nav a[aria-current='page'] {
  position: relative;
  color: var(--text-on-ink);
}

.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  background: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .button.primary {
  border-color: #ffffff;
  background: #f5f5f2;
  color: #171917;
}

.site-header .button.primary:hover {
  background: #ffffff;
}

/* A secondary button on the dark hero.
 *
 * The demo never had one — its hero has a single primary button and a note —
 * so nothing in base.css covers this case, and the button fell back to the
 * global link colour: #145fb8 on #070a0c, which is about 2.2:1 and fails at
 * any text size. Caught by looking at the page on a phone width, not by a
 * test. `_doc/22` §3.1 is the rule it was breaking. */
.hero .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--text-on-ink);
}

.hero .button:not(.primary):hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-button);
  background: transparent;
}

.nav-toggle span[aria-hidden] {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text-on-ink);
  transition: transform 160ms var(--ease);
}

.nav-toggle[aria-expanded='true'] span[aria-hidden]:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span[aria-hidden]:last-of-type {
  transform: translateY(-2.5px) rotate(-45deg);
}

.nav-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 10, 12, 0.98);
}

.nav-drawer ul {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 8px 0 16px;
  list-style: none;
}

.nav-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-on-ink);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}

/* ---- Section scaffolding ----------------------------------------------- */

.section-head {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-head .section-heading {
  margin-bottom: 20px;
}

.section-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.landing-section.tone-soft {
  background: var(--surface-raised);
}

.landing-section.tone-ink {
  background: var(--surface-ink);
  color: var(--text-on-ink);
}

.landing-section.tone-ink .section-lede,
.landing-section.tone-ink .eyebrow {
  color: #c5c9c6;
}

.landing-section.tone-ink .prose p {
  color: #e2e5e3;
}

/* ---- Inner-page hero ---------------------------------------------------
   Not the home hero: no artwork, no canvas. Pages below the front door state
   what they are and get out of the way. */

.page-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.page-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.page-hero h1 em {
  color: var(--accent);
  font-family: Georgia, serif;
  font-weight: 500;
}

.page-hero .lede {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.8vw, 21px);
}

.crumbs {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.crumbs a {
  color: inherit;
}

.crumbs span[aria-hidden] {
  padding: 0 6px;
}

/* ---- Prose -------------------------------------------------------------- */

.prose {
  font-size: 17px;
}

.prose-narrow {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

.block-heading {
  max-width: 30ch;
  margin: 56px 0 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.block-heading:first-child {
  margin-top: 0;
}

.block-list {
  max-width: 68ch;
  margin: 0 0 24px;
  padding-left: 22px;
  color: var(--text-muted);
}

.block-list li {
  margin-bottom: 10px;
}

.block-list li::marker {
  color: var(--border-strong);
}

/* A list where each item is a refusal the product makes. The rule replaces a
   bullet, because these read as clauses rather than as options. */
.block-list.tone-contract {
  padding-left: 0;
  list-style: none;
}

.block-list.tone-contract li {
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--border-strong);
}

/* ---- Measured numbers ---------------------------------------------------
   `.fact` carries its provenance in data attributes. The dotted rule is a
   deliberate invitation to hover: the tooltip names the tool that produced the
   number. Nothing on this site asks to be believed. */

.fact {
  border-bottom: 1px dotted var(--border-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
  cursor: help;
}

.tone-ink .fact,
.truth-band .fact {
  color: var(--text-on-ink);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.stat {
  padding: 24px 26px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.stat:last-child {
  border-right: 0;
}

.stat dt {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat dd {
  margin: 10px 0 0;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 760;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat dd .fact {
  border-bottom: 0;
  font-weight: inherit;
}

/* ---- Steps -------------------------------------------------------------- */

.steps {
  max-width: 76ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: 0;
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font: 700 15px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.step h3 {
  margin: 6px 0 8px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

/* ---- Notes -------------------------------------------------------------- */

.note {
  max-width: 68ch;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: var(--surface-raised);
}

.note strong {
  display: block;
  margin-bottom: 6px;
}

.note p {
  margin: 0;
  color: var(--text-muted);
}

.note-attention {
  border-left-color: var(--attention);
  background: var(--attention-soft);
}

.note-ok {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

/* ---- Quote -------------------------------------------------------------- */

.pull {
  max-width: 30ch;
  margin: 40px 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--accent);
}

.pull p {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.pull cite {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-style: normal;
}

/* ---- Code --------------------------------------------------------------- */

.code {
  max-width: 76ch;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.code figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-muted);
  font: 650 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.code-copy {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--surface);
}

.code code,
.prose code {
  font: 400 13.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.prose code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface-raised);
}

/* ---- Compare ------------------------------------------------------------ */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.compare-col {
  padding: 26px 28px;
  border-right: 1px solid var(--border);
}

.compare-col:last-child {
  border-right: 0;
}

.compare-b {
  background: var(--surface-raised);
}

.compare-col h3 {
  margin: 0 0 16px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.compare-col ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.compare-col li {
  margin-bottom: 10px;
}

/* ---- FAQ ---------------------------------------------------------------- */

.faq {
  max-width: 76ch;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-body {
  padding: 0 0 20px;
  color: var(--text-muted);
}

.faq-body p {
  margin: 0 0 14px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---- Tables ------------------------------------------------------------- */

.table-scroll {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-scroll caption {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
}

.table-scroll th,
.table-scroll td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-scroll thead th {
  background: var(--surface-raised);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.table-scroll td {
  color: var(--text-muted);
}

/* ---- Call to action ----------------------------------------------------- */

.cta-band {
  border-bottom: 0;
  background: var(--surface-raised);
  text-align: left;
}

.cta-band .section-heading {
  margin-bottom: 20px;
}

.cta-band .section-lede {
  margin-bottom: 32px;
}

/* ---- Blog --------------------------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--border);
  overflow: hidden;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  transition: background-color 200ms var(--ease);
}

.post-card:hover {
  background: var(--surface-raised);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font: 650 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.post-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font: 650 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Article ------------------------------------------------------------ */

.article {
  padding: 72px 0 96px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: start;
}

.article-body {
  max-width: 72ch;
  font-size: 17.5px;
}

.article-body h2 {
  margin: 56px 0 16px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.article-body h3 {
  margin: 40px 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.article-body > p {
  margin: 0 0 22px;
  color: #3f464d;
}

.article-body a {
  color: var(--accent);
}

.toc {
  position: sticky;
  top: 92px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin-bottom: 9px;
}

.toc a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---- Legal -------------------------------------------------------------- */

.legal .article-body h2 {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 22px;
}

.legal-meta {
  margin: 0 0 40px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 14px;
}

.legal-meta p {
  margin: 0 0 6px;
}

.legal-meta p:last-child {
  margin: 0;
}

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--surface-raised);
}

/* base.css makes this a flex row for the demo's one-line footer. */
.site-footer .container {
  display: block;
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 40px;
}

.foot-brand p {
  max-width: 40ch;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.foot-col h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-col li {
  margin-bottom: 9px;
}

.foot-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1040px) {
  .site-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-raised);
  }
}

@media (max-width: 900px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .compare-col {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 620px) {
  .landing-section {
    padding: 72px 0;
  }

  .page-hero {
    padding: 56px 0 40px;
  }

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

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}

/* ---- Reduced motion -----------------------------------------------------
   base.css already disables scroll-behaviour and reveals. This covers the
   marquee and the hero layers, which are CSS animations rather than JS. */

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

/* ---- Print --------------------------------------------------------------
   The legal pages are the ones people actually print. */

@media print {
  .site-header,
  .nav-drawer,
  .site-footer,
  .kinetic-strip,
  .cta-band,
  .toc,
  .skip-link {
    display: none !important;
  }

  .article {
    padding: 0;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 11px;
    word-break: break-all;
  }
}

/* ---- The world (home page) ----------------------------------------------
 * `body.world` turns the front page into one continuous descent instead of a
 * dark hero followed by white bands. Three parts:
 *
 *   .world-backdrop   a fixed, full-viewport layer: the atmosphere artwork,
 *                     the live canvas (rings, dust, smoke), and a veil whose
 *                     opacity deepens as you scroll (motion.js depth()) — so
 *                     scrolling down reads as sinking, not as page-turning
 *   panels            every section's .container becomes a translucent island
 *                     floating over the world: 1px light border, no shadow,
 *                     which is the hero-mark's own audited treatment
 *   dark palette      the light-surface components (features, compare, stats,
 *                     notes, code, footer) restated in the ink palette
 *
 * Inner pages (guides, blog, legal) stay light on purpose: long-form reading
 * is better there, and the contrast makes returning home feel like an event.
 */

.world {
  background: #070a0c;
  color: #e5e9ec;
  color-scheme: dark;
}

.world-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.world-atmosphere {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.82;
  /* No keyframe drift here: motion.js drives this transform for parallax, and
   * a CSS animation on the same property would override the inline style for
   * as long as it runs. The living motion comes from the canvas. */
  transform: scale(1.05);
}

.world-backdrop .hero-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

.world-veil {
  position: absolute;
  inset: 0;
  background: #05080a;
  opacity: 0.34;
}

/* The hero floats on the shared world now; its own dark ground would hide it. */
.world .hero {
  background: transparent;
}

/* Islands, separated by open water rather than by rules. */
.world .landing-section {
  padding: 64px 0;
  border-bottom: 0;
  background: transparent;
}

.world .landing-section > .container {
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-card);
  background: rgba(9, 13, 16, 0.78);
}

.world .story-section {
  background: transparent;
}

.world .kinetic-strip {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 11, 13, 0.72);
}

/* A slower, deeper reveal for the islands. */
.motion-ready .world [data-reveal],
.world.motion-ready [data-reveal] {
  transform: translateY(28px) scale(0.988);
  transition-duration: 640ms;
}

.motion-ready .world [data-reveal].is-visible,
.world.motion-ready [data-reveal].is-visible {
  transform: none;
}

/* ---- Ink palette for every component the home page uses ---------------- */

.world .section-heading {
  color: #f4f7f9;
}

.world .section-heading em {
  color: #aabfd0;
}

.world .eyebrow {
  color: #c2cbd2;
}

.world .section-lede,
.world .prose p,
.world .story-aside,
.world .block-list {
  color: #b9c3cb;
}

.world .prose strong {
  color: #ffffff;
}

.world a {
  color: #9cc3ef;
}

.world .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--text-on-ink);
}

.world .button:not(.primary):hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.world .button.primary {
  border-color: #ffffff;
  background: #f5f5f2;
  color: #171917;
}

.world .button.primary:hover {
  background: #ffffff;
}

.world .three-up {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.world .feature {
  background: rgba(255, 255, 255, 0.03);
  border-right-color: rgba(255, 255, 255, 0.12);
}

.world .feature:hover {
  background: rgba(255, 255, 255, 0.07);
}

.world .feature h3 {
  color: #ffffff;
}

.world .feature p,
.world .feature-index {
  color: #b9c3cb;
}

.world .feature-signal {
  border-top-color: rgba(255, 255, 255, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.world .feature-signal::before {
  border-color: #0a0e11;
}

.world .compare {
  border-color: rgba(255, 255, 255, 0.18);
}

.world .compare-col {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.world .compare-b {
  background: rgba(255, 255, 255, 0.05);
}

.world .compare-col h3 {
  color: #ffffff;
}

.world .compare-col ul {
  color: #b9c3cb;
}

.world .note {
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: #89949a;
  background: rgba(255, 255, 255, 0.05);
}

.world .note strong {
  color: #ffffff;
}

.world .note p {
  color: #b9c3cb;
}

.world .note-attention {
  border-left-color: #d69a52;
  background: rgba(146, 81, 12, 0.16);
}

.world .note-ok {
  border-left-color: #9db95c;
  background: rgba(63, 98, 18, 0.18);
}

.world .block-list.tone-contract li {
  border-left-color: rgba(255, 255, 255, 0.35);
}

.world .block-list li::marker {
  color: rgba(255, 255, 255, 0.4);
}

.world .stat-row {
  border-color: rgba(255, 255, 255, 0.18);
}

.world .stat {
  background: rgba(255, 255, 255, 0.03);
  border-right-color: rgba(255, 255, 255, 0.12);
}

.world .stat dt {
  color: #9fb0bc;
}

.world .stat dd {
  color: #ffffff;
}

.world .fact {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.world .pull {
  border-left-color: #aabfd0;
}

.world .pull p {
  color: #f4f7f9;
}

.world .pull cite {
  color: #9fb0bc;
}

.world .code {
  border-color: rgba(255, 255, 255, 0.18);
}

.world .code figcaption {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #b9c3cb;
}

.world .code pre {
  background: rgba(3, 5, 7, 0.6);
  color: #d5dde2;
}

.world .code-copy {
  border-color: #89949a;
  background: transparent;
  color: #ffffff;
}

.world .prose code {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #e5e9ec;
}

/* The truth band's ghost caption was tuned for its own solid #07090a; on the
 * shared world it needs to be light-on-dark, not dark-on-darker. */
.world .truth-band {
  background: transparent;
  min-height: 0;
}

.world .truth-band::before {
  color: rgba(255, 255, 255, 0.05);
}

.world .cta-band {
  background: transparent;
}

/* Sections above the fixed backdrop need stacking context over it. */
.world main {
  position: relative;
  z-index: 0;
}

.world .site-footer {
  border-top-color: rgba(255, 255, 255, 0.14);
  background: rgba(6, 9, 11, 0.82);
}

.world .site-footer .expansion {
  color: #9fb0bc;
}

.world .site-footer .expansion b,
.world .foot-col h2 {
  color: #e8edf0;
}

.world .foot-brand p,
.world .foot-base {
  color: #9fb0bc;
}

.world .foot-base {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.world .foot-col a {
  color: #b9c3cb;
}

.world .foot-col a:hover {
  color: #ffffff;
}

/* ---- Surfacing: the hero copy rises once, on load ----------------------
 * Animation only — the resting state is fully visible, so with CSS animations
 * disabled (reduced motion zeroes every duration) or unsupported, the content
 * is simply there. */
@keyframes surface {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

.world .hero-copy-block > * {
  animation: surface 640ms var(--ease) backwards;
}

.world .hero-copy-block > :nth-child(2) {
  animation-delay: 90ms;
}

.world .hero-copy-block > :nth-child(3) {
  animation-delay: 180ms;
}

.world .hero-copy-block > :nth-child(4) {
  animation-delay: 270ms;
}

.world .hero-mark {
  animation: surface 720ms var(--ease) 200ms backwards;
}

/* The footer lockup inherits the light-page muted grey from base.css, which on
 * the world's dark footer left the brand name at #56616d on near-black — found
 * by a machine sweep for dark text on the dark page, in exactly the screenshot
 * the Licensor sent. */
.world .site-footer .wordmark {
  color: #ffffff;
}

/* ---- The fog ------------------------------------------------------------
 * The Licensor named the metaphor, and it is the product's own: the fog is
 * what you do not know about your backend, and scrolling down — LEDAR working
 * — thins it until the content stands clear. So the fog is thickest at the
 * surface, drifts the whole time, and fades with depth (motion.js drives the
 * fade; the drift is the fogDriftA/B keyframes the demo already ships).
 *
 * Two planes:
 *   .world-fog        inside the fixed backdrop, BEHIND the islands — the
 *                     world breathes everywhere, at reading-safe opacity
 *   .world-fog-front  a fixed plane ABOVE the content — real wisps crossing
 *                     the page near the surface, faded out by depth() as you
 *                     descend. This is the layer that "opens" for you.
 */

.world-fog {
  position: absolute;
  inset: -6%;
  overflow: hidden;
}

.world-fog img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  will-change: transform;
  mix-blend-mode: screen;
}

.world-fog .fog-slow {
  filter: blur(34px) brightness(1.2);
  opacity: 0.42;
  animation: fogDriftA 52s ease-in-out infinite alternate;
}

.world-fog .fog-fast {
  filter: blur(58px) brightness(1.12);
  opacity: 0.3;
  animation: fogDriftB 84s ease-in-out infinite alternate;
}

/* The front fog is a CANVAS, not a blurred copy of the artwork.
 *
 * The first attempt layered the atmosphere webp over the content with
 * `opacity` on the wrapper. Two failures in one: opacity on the wrapper
 * isolates the blend group, so the img's screen blend had nothing beneath it
 * and the layer composited as a plain grey wash that dimmed every headline —
 * and the artwork is too dark to read as cloud in the first place. The
 * Licensor's screenshot showed both: grey text, no fog.
 *
 * Real mist is drawn: soft white puffs on a transparent canvas, drifting,
 * faded by scroll in motion.js fogLive(). A canvas over content composites
 * normally, so what you see is exactly what is painted.
 */
.fog-live {
  position: fixed;
  inset: 0;
  z-index: 5; /* over the islands (main is z 0), under the header (z 20) */
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The pause button stops the weather too, not only the marquee. */
.motion-paused .world-fog img,
.motion-paused .world-atmosphere,
.motion-paused .hero-fog img {
  animation-play-state: paused;
}

/* Under reduced motion nothing thins the front fog (depth() never runs), and
 * a fixed veil over every word of the page is not a mood, it is a legibility
 * failure. The backdrop fog stays: it is behind the islands. */
@media (prefers-reduced-motion: reduce) {
  .fog-live {
    display: none;
  }
}

/* ---- Scrollbar: one world, one chrome -----------------------------------
 * base.css sets `color-scheme: light` on :root, and the viewport scrollbar is
 * styled by the ROOT element's scheme — `.world` on body never reaches it, so
 * the dark page scrolled with a glaring light track (the Licensor's
 * screenshot). :has() lifts the scheme to the root only when the world page
 * is loaded, and scrollbar-color states the intent explicitly for engines
 * that support it. */
html:has(body.world) {
  color-scheme: dark;
  scrollbar-color: #3a444c #0a0d10;
}

/* ---- Rhythm: the descent is numbered ------------------------------------
 * The Licensor's verdict on the first pass was "bố cục chán" — boring — and
 * the cause was sameness: identical full-width islands, evenly spaced, all
 * headings alike. Two counters against monotony, both cheap:
 *
 *   every island's eyebrow gains a gold stage number — the page reads as a
 *   numbered descent, not a stack of cards
 *
 *   from 1100px up, islands alternate a slight lateral drift, so the eye
 *   traces a path down instead of a straight column
 */
.world main {
  counter-reset: island;
}

.world .landing-section .eyebrow::before {
  counter-increment: island;
  content: counter(island, decimal-leading-zero);
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: #d69a52;
  font: 700 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

@media (min-width: 1100px) {
  .world .landing-section:nth-of-type(odd) > .container {
    transform: translateX(-2.2%);
  }

  .world .landing-section:nth-of-type(even) > .container {
    transform: translateX(2.2%);
  }
}

/* ---- Mobile: the world at phone width -----------------------------------
 * The Licensor's phone screenshot showed islands jammed against the right
 * edge. The root cause was the missing `* { box-sizing: border-box }` (see
 * extract-base.mjs — the extractor had dropped the universal selector), and
 * these rules finish the job: at phone width the island frame steps back so
 * the CONTENT keeps its room — a border inside a border inside a 375px screen
 * is chrome eating the page. */
@media (max-width: 620px) {
  .world .landing-section {
    padding: 40px 0;
  }

  .world .landing-section > .container {
    width: calc(100% - 20px);
    padding: 24px 16px;
  }

  .compare-col {
    padding: 20px 16px;
  }

  .world .section-head {
    margin-bottom: 32px;
  }

  .kinetic-word {
    gap: 18px;
    padding: 14px 18px;
  }

  .motion-toggle {
    top: auto;
    right: 8px;
    bottom: 8px;
    transform: none;
    min-height: 36px;
    padding: 6px 10px;
  }

  .world .hero {
    min-height: 100svh;
    padding: 96px 0 56px;
  }
}

/* ---- The torch ----------------------------------------------------------
 * A soft light where the cursor is, BEHIND the islands (z -1: above the
 * backdrop, below the content) — a torch carried through the fog, on the
 * same metaphor as everything else here. pointerWorld() moves it with a lazy
 * lerp and reveals it on the first real pointer move; it never exists for
 * touch, and reduced motion never starts it. */
.world-torch {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 640px;
  height: 640px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(126, 168, 214, 0.16) 0%, rgba(126, 168, 214, 0.05) 42%, rgba(126, 168, 214, 0) 68%);
  mix-blend-mode: screen;
  transition: opacity 600ms var(--ease);
}

/* ---- The world, in three dimensions -------------------------------------
 * A Three.js layer INSIDE the fixed backdrop: the artwork's data-field floor,
 * alive — breathing points, packet trails in transmission. Screen-blended
 * over the atmosphere image, under the fog, under every island. Once a frame
 * has actually rendered, body.world3d-on retires the 2D rings canvas; until
 * then (no WebGL, no modules) everything stays as it was. */
.world-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

.world3d-on .world-backdrop .hero-live {
  display: none;
}
