/* ==========================================================================
   OpenEXA — "The Ledger" design system
   Paper + ink. Serif display, mono numerals, hairline rules.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* palette — anchored to the deck (paper #F5F2EC, charcoal #4D4D4D, khaki #ACA68E) */
  --paper: #F5F2EC;
  --paper-2: #ECE8DF;
  --paper-3: #E2DDD1;
  --rule: rgba(14, 21, 18, 0.14);
  --rule-strong: rgba(14, 21, 18, 0.32);
  --ink: #0E1512;
  --ink-2: #1B221F;
  --graphite: #4D4D4D;
  --slate: #6F736F;
  --mist: #9A9E98;
  --khaki: #ACA68E;
  --khaki-deep: #857F66;
  --signal: #1E7A5A;
  --signal-bright: #4FCB93;
  --reject: #B4443C;
  --brand-blue: #4A5FC1;

  /* scoped tokens (swap in dark sections) */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --fg-2: var(--graphite);
  --fg-3: var(--slate);
  --line: var(--rule);
  --line-strong: var(--rule-strong);
  --accent: var(--signal);

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 72px;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-3); }
em, .ital { font-style: italic; }
.serif em { font-family: var(--serif); }

.display-1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 8.2vw, 7.6rem); line-height: .96; letter-spacing: -0.025em; }
.display-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -0.02em; }
.display-3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; }
.h4 { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.5; color: var(--fg-2); max-width: 40ch; }
.body-lg { font-size: 1.1rem; line-height: 1.6; color: var(--fg-2); }
.small { font-size: .875rem; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--bare::before { display: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: clamp(20px, 3vw, 48px); }
.col-3 { grid-column-end: span 3; } .col-4 { grid-column-end: span 4; } .col-5 { grid-column-end: span 5; } .col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; } .col-8 { grid-column-end: span 8; } .col-9 { grid-column-end: span 9; } .col-12 { grid-column-end: span 12; }
.offset-1 { grid-column-start: 2; } .offset-2 { grid-column-start: 3; } .offset-4 { grid-column-start: 5; } .offset-6 { grid-column-start: 7; } .offset-7 { grid-column-start: 8; } .offset-8 { grid-column-start: 9; } .offset-9 { grid-column-start: 10; }
@media (max-width: 960px) {
  .grid > [class*="col-"] { grid-column: 1 / -1; }
  .md-col-6 { grid-column: span 6 !important; }
}
@media (max-width: 600px) { .md-col-6 { grid-column: span 12 !important; } }

.section { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head .idx { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.sec-head .lab { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding-bottom: .35rem; }
.sec-head .aside { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--fg-3); padding-bottom: .35rem; text-align: right; }
@media (max-width: 600px) { .sec-head .aside { display: none; } }

/* ---------- dark scope ---------- */
.is-dark {
  --bg: var(--ink); --bg-2: var(--ink-2);
  --fg: var(--paper); --fg-2: rgba(245, 242, 236, .78); --fg-3: rgba(245, 242, 236, .56);
  --line: rgba(245, 242, 236, .14); --line-strong: rgba(245, 242, 236, .32);
  --accent: var(--signal-bright);
  background: var(--bg); color: var(--fg);
}
.is-dark ::selection { background: var(--paper); color: var(--ink); }
.is-dark .lede, .is-dark .body-lg { color: var(--fg-2); }
.is-paper-2 { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--fg); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; gap: .7em; padding: .95em 1.45em; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; font-size: .95rem; letter-spacing: -0.005em; line-height: 1;
  border: 1px solid transparent; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap;
}
.btn .arr { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); }
.btn--sm { padding: .7em 1.1em; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: .95rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.link-arrow .arr { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link-arrow:hover { border-color: var(--fg); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.nav--solid { background: rgba(245, 242, 236, .86); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); color: var(--ink); border-bottom-color: var(--rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1; }
.mark { display: inline-block; flex: none; background: currentColor; -webkit-mask: url("../img/globe.svg") center / contain no-repeat; mask: url("../img/globe.svg") center / contain no-repeat; }
.brand .mark { width: 30px; height: 30px; color: var(--brand-blue); transition: color .35s; }
.nav:not(.nav--solid) .brand .mark { color: var(--paper); }
.brand small { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-left: 10px; padding-left: 12px; border-left: 1px solid currentColor; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a { font-size: .9rem; font-weight: 500; opacity: .82; position: relative; padding: 6px 0; letter-spacing: -0.005em; transition: opacity .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.nav--solid .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav { background: var(--paper); color: var(--ink); border-bottom-color: var(--rule); }
  .nav-open .brand .mark { color: var(--brand-blue) !important; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper); z-index: 99; padding: 28px var(--gutter) 40px; display: none; flex-direction: column; gap: 6px; overflow: auto; }
  .nav-open .nav-menu { display: flex; }
  .nav-menu a { font-family: var(--serif); font-size: 2.2rem; line-height: 1.15; padding: 10px 0; border-bottom: 1px solid var(--rule); letter-spacing: -0.01em; }
  .nav-menu .btn { margin-top: 22px; align-self: flex-start; font-family: var(--sans); font-size: .95rem; border-bottom: 0; padding: .95em 1.45em; }
  .nav-open { overflow: hidden; }
}
@media (min-width: 961px) { .nav-menu { display: none !important; } }
.brand small { display: none; }
@media (min-width: 1100px) { .brand small { display: inline; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-kicker { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: var(--fg-2); margin-bottom: 22px; display: flex; align-items: center; gap: 16px; }
.hero-kicker::before { content: ""; width: 36px; height: 1px; background: var(--khaki); }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero h1 .thin { color: var(--fg-2); }
.hero-sub { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-aside { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 18px; align-self: end; }
.hero-aside .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.hero-aside .v { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -0.02em; }
.hero-aside .v small { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--fg-3); margin-left: .5em; }
@media (max-width: 960px) { .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; grid-template-columns: repeat(2, 1fr); } }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); display: none; align-items: center; gap: 10px; }
@media (min-width: 961px) { .hero-scroll { display: flex; } }
.hero-scroll i { display: block; width: 1px; height: 36px; background: currentColor; opacity: .6; animation: drop 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); opacity: 0 } 40% { transform: scaleY(1); opacity: .8 } 100% { transform: scaleY(1) translateY(20px); opacity: 0 } }

/* page hero (interior pages, paper) */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 16ch; text-wrap: balance; margin-top: 22px; }
.page-hero .lede { margin-top: 26px; }
.page-hero--dark { border-bottom: 0; }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; align-items: center; }
.ticker li { display: inline-flex; align-items: center; gap: 14px; padding: 16px 34px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--fg-2); white-space: nowrap; }
.ticker li b { font-weight: 500; color: var(--fg); }
.ticker li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--khaki); }
.ticker li.up::before { background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: 100%; } .ticker-track ul + ul { display: none; } .ticker-track ul { flex-wrap: wrap; } }

/* ---------- reveal ---------- */
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].will-reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- cards & lists ---------- */
.card { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.4vw, 34px); background: var(--bg); position: relative; }
.card--tint { background: var(--bg-2); }
.card .n { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--fg-3); margin-bottom: 26px; display: flex; justify-content: space-between; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--fg-2); font-size: .98rem; }
.card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-grid > .card { border: 0; border-radius: 0; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } }

.list-rule { border-top: 1px solid var(--line); }
.list-rule > li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list-rule > li .k { font-family: var(--mono); font-size: .75rem; color: var(--fg-3); letter-spacing: .08em; }
.list-rule > li h3 { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.01em; line-height: 1.2; }
.list-rule > li p { color: var(--fg-2); margin-top: 8px; max-width: 60ch; }
.list-rule--3 > li { grid-template-columns: 56px 1fr 1fr; }
@media (max-width: 760px) { .list-rule--3 > li { grid-template-columns: 56px 1fr; } .list-rule--3 > li > :last-child { grid-column: 2; } }

.checks li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.checks li b { color: var(--fg); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--accent); background: radial-gradient(circle at center, var(--accent) 0 3px, transparent 3.5px); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats > div { background: var(--bg); padding: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.stats .v { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.stats .v small { font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; color: var(--fg-3); margin-left: .4em; }
.stats .k { margin-top: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.stats .d { margin-top: 10px; color: var(--fg-2); font-size: .92rem; max-width: 26ch; }
.stats--2 { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- ledger table ---------- */
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ledger { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.ledger th, .ledger td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line-strong); }
.ledger td.num, .ledger th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ledger .lab { font-weight: 500; }
.ledger .sub { display: block; color: var(--fg-3); font-size: .82rem; margin-top: 2px; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .good { color: var(--accent); font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; }
.ledger .bad { color: var(--fg-3); font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; }
.ledger .tag { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg-2); }
.ledger .tag.on { border-color: var(--accent); color: var(--accent); }
.ledger-wrap { overflow-x: auto; }

/* ---------- comparison (traditional vs agentic) ---------- */
.compare { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compare > div { background: var(--bg); padding: 22px 24px; }
.compare .head { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); display: flex; flex-direction: column; gap: 6px; }
.compare .head b { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; text-transform: none; color: var(--fg); font-weight: 400; }
.compare .metric { font-weight: 500; }
.compare .metric small { display: block; color: var(--fg-3); font-weight: 400; font-size: .85rem; }
.compare .trad { color: var(--fg-2); font-family: var(--mono); font-size: .88rem; }
.compare .agent { font-family: var(--mono); font-size: .88rem; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.compare .agent .bar { flex: 1; height: 6px; background: var(--line); border-radius: 1px; overflow: hidden; }
.compare .agent .bar i { display: block; height: 100%; background: var(--accent); width: var(--w, 100%); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.is-in .compare .agent .bar i, .compare.is-in .agent .bar i { transform: scaleX(1); }
.compare .wgt { grid-column: 1 / -1; background: var(--bg-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); padding: 10px 24px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare .head { display: none; } .compare .trad::before { content: "Traditional · "; color: var(--fg-3); } .compare .agent::before { content: "Agentic · "; color: var(--fg-3); } }

/* ---------- yield ladder ---------- */
.ladder { display: grid; gap: 6px; }
.ladder .row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); transition: background .3s, border-color .3s; }
.ladder .row .pct { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--fg-3); }
.ladder .row .who { font-weight: 500; }
.ladder .row .who small { display: block; color: var(--fg-3); font-weight: 400; font-size: .85rem; margin-top: 2px; }
.ladder .row .own { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ladder .row.zone { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); position: relative; }
.ladder .row.zone .own { color: var(--accent); }
.ladder .row.zone::after { content: "The Goldilocks zone"; position: absolute; right: -1px; top: -13px; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--paper); padding: 4px 10px; border-radius: 2px; }
.ladder .row.dim { opacity: .6; }
@media (max-width: 600px) { .ladder .row { grid-template-columns: 64px 1fr; } .ladder .row .own { grid-column: 2; } }

/* ---------- lifecycle diagram ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.flow .panel { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg); position: relative; }
.flow .panel .lab { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; margin-bottom: 18px; }
.flow .panel .lab b { color: var(--accent); font-weight: 500; }
.flow .stack { display: grid; gap: 8px; }
.flow .stack li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: .92rem; background: var(--bg-2); }
.flow .stack li span:last-child { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--fg-3); }
.flow .stack li.owned { border-color: var(--line-strong); background: var(--bg); }
.flow .gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 130px; }
.flow .gate .dia { width: 74px; height: 74px; border: 1px solid var(--line-strong); transform: rotate(45deg); display: grid; place-items: center; border-radius: 3px; background: var(--bg); }
.flow .gate .dia span { transform: rotate(-45deg); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.3; }
.flow .gate .dia span b { color: var(--accent); font-weight: 500; display: block; }
.flow .gate .dia span i { color: var(--reject); font-style: normal; display: block; }
.flow .gate .lab { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); text-align: center; }
.flow .gate .ln { width: 1px; flex: 1; background: var(--line-strong); min-height: 24px; }
.flow .panel.exec { box-shadow: 8px 8px 0 -1px var(--bg), 8px 8px 0 0 var(--line), 16px 16px 0 -1px var(--bg), 16px 16px 0 0 var(--line); }
.flow-note { margin-top: 30px; display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--fg-3); text-transform: uppercase; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow .gate { flex-direction: row; } .flow .gate .ln { width: auto; height: 1px; min-height: 0; flex: 1; } .flow .panel.exec { box-shadow: none; } .flow-note { flex-direction: column; gap: 8px; } }

/* ---------- performance strip ---------- */
.perf { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.perf .day { border: 1px solid var(--line); border-radius: 2px; padding: 12px 4px 12px; text-align: center; background: var(--bg); position: relative; overflow: hidden; }
.perf .day::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.is-in .perf .day::before { transform: scaleX(1); }
.perf .day .d { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.perf .day .v { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; margin-top: 6px; letter-spacing: -0.01em; }
.perf .day .t { font-family: var(--mono); font-size: .56rem; letter-spacing: .05em; text-transform: uppercase; margin-top: 8px; color: var(--fg-3); white-space: nowrap; }
.perf .day .t.p { color: var(--accent); }
@media (max-width: 1100px) { .perf { grid-template-columns: repeat(5, 1fr); } .perf .day { padding: 14px 10px; } .perf .day .d { font-size: .66rem; } .perf .day .t { font-size: .62rem; letter-spacing: .1em; } }
@media (max-width: 520px) { .perf { grid-template-columns: repeat(2, 1fr); } }

/* ---------- layers (platform) ---------- */
.layers { display: grid; gap: 0; border: 1px solid var(--line); }
.layers .layer { display: grid; grid-template-columns: 80px 1.1fr 1.6fr; gap: 28px; padding: clamp(22px, 3vw, 40px); border-bottom: 1px solid var(--line); align-items: start; background: var(--bg); transition: background .3s; }
.layers .layer:last-child { border-bottom: 0; }
.layers .layer:hover { background: var(--bg-2); }
.layers .layer .k { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--fg-3); padding-top: 6px; }
.layers .layer h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.015em; }
.layers .layer h3 small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-top: 10px; }
.layers .layer p { color: var(--fg-2); }
.layers .layer ul { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.layers .layer ul li { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--fg-2); }
@media (max-width: 860px) { .layers .layer { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; gap: 0; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.roadmap .phase { padding: 30px 28px 0 0; position: relative; }
.roadmap .phase::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.roadmap .phase.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.roadmap .phase .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.roadmap .phase.now .k { color: var(--accent); }
.roadmap .phase h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin-top: 10px; letter-spacing: -0.015em; }
.roadmap .phase p { color: var(--fg-2); margin-top: 12px; }
.roadmap .phase ul { margin-top: 18px; border-top: 1px solid var(--line); }
.roadmap .phase ul li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; }
.roadmap .phase ul li span:last-child { font-family: var(--mono); font-size: .78rem; color: var(--fg-3); white-space: nowrap; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; gap: 36px; } .roadmap::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; } .roadmap .phase { padding: 0 0 0 36px; } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team .person { background: var(--bg); padding: clamp(22px, 2.6vw, 34px); display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; }
.team .person .ph { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--paper-3); position: relative; }
.team .person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 20%); filter: grayscale(100%) contrast(1.05); transition: filter .5s var(--ease); }
.team .person:hover .ph img { filter: grayscale(0%); }
.team .person .role { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.team .person h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; margin-top: 8px; letter-spacing: -0.01em; }
.team .person p { color: var(--fg-2); font-size: .92rem; margin-top: 10px; }
.team .person .links { margin-top: 12px; display: flex; gap: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; }
.team .person .links a { border-bottom: 1px solid var(--line-strong); }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } .team .person { grid-template-columns: 1fr; } }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wall > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); padding: 22px 18px; font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.01em; color: var(--fg-2); display: flex; align-items: center; justify-content: center; min-height: 82px; text-align: center; }
.wall-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 34px 0 12px; }

/* ---------- pull quote / manifesto ---------- */
.manifesto { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.manifesto .hl { color: var(--accent); font-style: italic; }
.manifesto .dim { color: var(--fg-3); }

/* ---------- economics calculator ---------- */
.calc { border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.calc .in { padding: clamp(22px, 3vw, 40px); border-right: 1px solid var(--line); }
.calc .out { padding: clamp(22px, 3vw, 40px); background: var(--bg-2); display: grid; gap: 22px; align-content: start; }
.calc label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 14px; }
.calc .big { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.calc input[type=range] { width: 100%; margin: 26px 0 8px; accent-color: var(--accent); }
.calc .scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .68rem; color: var(--fg-3); letter-spacing: .06em; }
.calc .assump { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; font-size: .9rem; color: var(--fg-2); }
.calc .assump div { display: flex; justify-content: space-between; gap: 12px; }
.calc .assump span:last-child { font-family: var(--mono); font-size: .82rem; }
.calc .out .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.calc .out .v { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.025em; margin-top: 8px; }
.calc .out .v.acc { color: var(--accent); }
.calc .out .row { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.calc .out .row:last-child { border-bottom: 0; padding-bottom: 0; }
.calc .note { font-size: .8rem; color: var(--fg-3); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc .in { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- TAM rings ---------- */
.tam { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.tam svg text { font-family: var(--mono); letter-spacing: .06em; }
.tam svg text.big { font-family: var(--serif); letter-spacing: -0.02em; }
@media (max-width: 860px) { .tam { grid-template-columns: 1fr; } }

/* ---------- believe / not ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: .78rem; color: var(--fg-3); padding-top: 4px; grid-row: 1 / span 2; }
.num-list li h3 { grid-column: 2; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }
.num-list li p { grid-column: 2; color: var(--fg-2); margin-top: 8px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form .f { display: grid; gap: 8px; }
.form label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.form input, .form select, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: 12px 0; font: inherit; color: var(--fg); border-radius: 0; outline: none; transition: border-color .25s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--fg); }
.form textarea { min-height: 110px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.seg label { display: block; padding: 16px; background: var(--bg); cursor: pointer; font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--fg); }
.seg label small { display: block; color: var(--fg-3); font-size: .82rem; margin-top: 4px; }
.seg input { display: none; }
.seg input:checked + span { color: var(--accent); }
.seg label:has(input:checked) { background: var(--bg-2); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 600px) { .seg { grid-template-columns: 1fr; } }
.form-ok { padding: 28px; border: 1px solid var(--accent); border-radius: var(--r); display: none; }
.form-ok.show { display: block; }

/* ---------- insights ---------- */
.posts > li { border-bottom: 1px solid var(--line); }
.posts > li a { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; padding: 26px 0; align-items: baseline; transition: background .3s; }
.posts > li a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.posts .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--fg-3); text-transform: uppercase; }
.posts h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.25; letter-spacing: -0.01em; }
.posts p { color: var(--fg-2); margin-top: 8px; font-size: .95rem; max-width: 70ch; }
.posts .arr { width: 18px; height: 18px; color: var(--fg-3); }
@media (max-width: 760px) { .posts > li a { grid-template-columns: 1fr; gap: 8px; } .posts .arr { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(80px, 12vw, 160px); position: relative; overflow: hidden; }
.cta-band h2 { max-width: 20ch; text-wrap: balance; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.cta-band .contact { margin-top: 56px; display: grid; grid-template-columns: repeat(3, auto); gap: 40px; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--fg-2); }
.cta-band .contact span { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
@media (max-width: 760px) { .cta-band .contact { grid-template-columns: 1fr; gap: 24px; } }
.cta-band .globe { position: absolute; right: -6vw; bottom: -14vw; width: 46vw; max-width: 720px; aspect-ratio: 1; color: rgba(245, 242, 236, .07); pointer-events: none; }

/* ---------- footer ---------- */
.footer { padding: clamp(56px, 7vw, 100px) 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { font-size: 1.6rem; }
.footer .tag { margin-top: 18px; color: var(--fg-2); max-width: 30ch; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.footer h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }
.footer ul li { padding: 5px 0; font-size: .95rem; }
.footer ul li a { opacity: .85; } .footer ul li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer .disc { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .78rem; line-height: 1.6; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer .disc strong { color: var(--fg-2); font-weight: 500; }
.footer .bottom { margin-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--fg-3); }
.footer .wordmark { font-family: var(--serif); font-size: clamp(5rem, 18vw, 17rem); line-height: 1; letter-spacing: -0.04em; color: var(--fg); opacity: .06; margin-top: clamp(24px, 4vw, 48px); margin-bottom: -0.26em; user-select: none; white-space: nowrap; }
@media (max-width: 860px) { .footer .top { grid-template-columns: 1fr 1fr; } .footer .disc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer .top { grid-template-columns: 1fr; } }

/* ---------- stack visual (platform) ---------- */
.stackviz { display: grid; gap: 6px; }
.stackviz .sv { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 2px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; background: var(--bg); transition: transform .4s var(--ease), background .3s; }
.stackviz .sv span { color: var(--fg-3); font-size: .68rem; }
.stackviz .sv.l1 { background: var(--bg-2); }
.stackviz .sv.l2 { border-style: dashed; }
.stackviz .sv.rails { border-color: var(--line); color: var(--fg-3); }
.stackviz .sv:hover { transform: translateX(6px); }

/* ---------- stacked cost bars (evidence) ---------- */
.bars { display: grid; gap: 18px; }
.barrow { display: grid; grid-template-columns: 200px 1fr 64px; gap: 20px; align-items: center; }
.barlab b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; }
.barlab span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.bars .bar { display: flex; height: 54px; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.bars .bar i { display: flex; align-items: center; justify-content: center; width: var(--w); background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); overflow: hidden; font-style: normal; }
.bars .bar i span { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); white-space: nowrap; padding: 0 8px; }
.bars .bar em { position: absolute; left: 9%; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-style: normal; font-size: .7rem; letter-spacing: .06em; color: var(--fg-3); }
.bars.is-in .bar i { transform: scaleX(1); }
.bars .bar i:nth-child(2) { transition-delay: .25s } .bars .bar i:nth-child(3) { transition-delay: .5s } .bars .bar i:nth-child(4) { transition-delay: .65s }
.barval { font-family: var(--serif); font-size: 2rem; text-align: right; letter-spacing: -0.02em; }
.barval.acc { color: var(--accent); }
@media (max-width: 760px) { .barrow { grid-template-columns: 1fr 56px; } .barlab { grid-column: 1 / -1; } .bars .bar i span { display: none; } .bars .bar em { font-size: .6rem; } }

/* ==========================================================================
   Advanced layer — story stage, kinetic type, loader, cursor, transitions
   ========================================================================== */

/* ---------- view transitions (MPA, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .32s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .55s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.nav { view-transition-name: site-nav; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: transform .9s cubic-bezier(.76, 0, .24, 1), visibility 0s .9s; }
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader .mark { width: 64px; height: 64px; color: var(--paper); opacity: .9; animation: loader-spin 6s linear infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
.loader-count { font-family: var(--serif); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.loader-lab { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 242, 236, .55); }
.loader-bar { width: 160px; height: 1px; background: rgba(245, 242, 236, .18); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: left; }
body.is-loading { overflow: hidden; }

/* ---------- kinetic split text ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .wi { display: inline-block; transform: translateY(112%); transition: transform 1.05s cubic-bezier(.22, .9, .18, 1); transition-delay: calc(var(--i, 0) * 38ms + var(--d, 0ms)); will-change: transform; }
[data-split].is-in .wi { transform: translateY(0); }
[data-reveal][data-split] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-split] .wi { transform: none; transition: none; } }

/* ---------- nav progress ---------- */
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: currentColor; opacity: .55; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav--solid .nav-progress { background: var(--ink); }

/* ---------- story stage (homepage) ---------- */
.story { position: relative; height: calc(var(--beats, 4) * 100vh + 60vh); background: var(--ink); color: var(--paper); }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.story-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 78% 45%, rgba(245, 242, 236, .05), transparent 60%); pointer-events: none; }
.story-gl, .story-2d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.story-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.no-webgl .story-2d[hidden] { display: block; }
.beat.is-active [data-split] .wi { transform: translateY(0); }
.story-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.story-ui .container { position: relative; height: 100%; }
.beat { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 6vh, 72px); opacity: 0; transform: translateY(28px); pointer-events: none; will-change: opacity, transform; }
.beat.is-active { pointer-events: auto; }
.beat-text { max-width: 46%; }
.beat-0 .beat-text { max-width: 50%; }
.beat-0 .display-1 { font-size: clamp(3rem, 5.9vw, 5.8rem); }
.beat-0 .hero-sub { max-width: 44ch; }
.beat .eyebrow { margin-bottom: 18px; }
.beat h2 { max-width: 16ch; text-wrap: balance; }
.beat .body-lg { margin-top: 24px; max-width: 46ch; }
.beat .hero-cta { margin-top: 32px; }
@media (max-width: 960px) {
  .beat-text, .beat-0 .beat-text { max-width: 100%; }
  .beat .body-lg { max-width: 100%; font-size: 1rem; }
  .beat h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .beat-0 .display-1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
    .beat-0 .hero-aside .v { font-size: 1.4rem; }
  .beat-0 .hero-sub { margin-top: 16px; }
  .beat-0 .hero-cta { margin-top: 20px; }
  .beat-0 .hero-kicker { margin-bottom: 12px; font-size: 1.05rem; }
}
.story-lab { position: absolute; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 242, 236, .62); white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease); will-change: transform, opacity; }
.story-lab b { color: var(--signal-bright); font-weight: 500; }
.story-lab.is-on { opacity: 1; }
.story-lab.node { transform: translate(-50%, -50%); }
.story-lab.node::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 9px; background: rgba(245, 242, 236, .5); }
.story-lab.band { transform: translate(0, -100%); padding-bottom: 6px; }
.story-lab.band i { display: inline-block; width: 22px; height: 1px; background: rgba(245, 242, 236, .35); vertical-align: middle; margin-right: 10px; }
.story-lab.bar-lab { transform: translate(-50%, -100%); text-align: center; padding-bottom: 10px; }
.story-lab.bar-lab .big { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.02em; text-transform: none; color: var(--paper); line-height: 1; margin-bottom: 8px; }
.story-lab.bar-lab.acc .big { color: var(--signal-bright); }
.story-lab.cap { transform: translate(-100%, 0); text-align: right; }
.story-lab.cap span { display: block; margin-top: 4px; }
.story-lab.tag { padding: 4px 0; }
.story-lab.lay i { display: inline-block; width: 18px; height: 1px; background: rgba(245, 242, 236, .35); vertical-align: middle; margin-left: 10px; }
.story-lab.lay b { color: var(--signal-bright); }
.story-idx { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 2px; z-index: 3; }
.story-idx button { display: block; width: 44px; height: 44px; position: relative; }
.story-idx button::before { content: ""; position: absolute; right: 0; top: 50%; width: 26px; height: 1px; background: rgba(245, 242, 236, .25); transition: background .3s, width .3s; }
.story-idx button::after { content: attr(data-n); position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 10px; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: rgba(245, 242, 236, .35); }
.story-idx button.is-on::before, .story-idx button:hover::before { background: var(--paper); width: 40px; }
.story-idx button.is-on::after { color: var(--paper); }
.story-motion { position: absolute; right: calc(var(--gutter) + 104px); bottom: 14px; min-height: 44px; padding-inline: 10px; z-index: 4; font: .59rem/1.5 var(--mono); letter-spacing: .055em; text-transform: uppercase; color: rgba(245, 242, 236, .56); }
.story-motion:hover { color: var(--signal-bright); }
.story-motion[hidden] { display: none; }
@media (max-width: 960px) { .story-idx { display: none; } .story-lab.band { font-size: .58rem; } .story-lab.bar-lab .big { font-size: 1.5rem; } }
.story .hero-scroll { bottom: 22px; transition: opacity .5s var(--ease); }
.story.is-scrolled .hero-scroll { opacity: 0; }
.no-webgl .story { height: auto; }
.no-webgl .story-stage { position: relative; height: auto; min-height: 100svh; display: grid; }
.no-webgl .story-ui { position: relative; }
.no-webgl .beat { position: relative; opacity: 1; transform: none; pointer-events: auto; padding: 120px 0 60px; left: auto; right: auto; }
.no-webgl .story-lab, .no-webgl .story-idx, .no-webgl .story-gl { display: none; }

/* ---------- lifecycle packets ---------- */
.flow .gate .ln { position: relative; }
.flow .gate .ln::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pkt-v 1.8s cubic-bezier(.4, 0, .6, 1) infinite; }
.flow .gate .ln:last-child::after { animation-delay: .9s; }
@keyframes pkt-v { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0; } }
.flow .gate .dia { animation: gate-pulse 3.6s ease-in-out infinite; }
@keyframes gate-pulse { 0%, 60%, 100% { box-shadow: 0 0 0 0 transparent; } 72% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (max-width: 860px) {
  .flow .gate .ln::after { top: -2px; left: 0; animation-name: pkt-h; }
  @keyframes pkt-h { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .flow .gate .ln::after, .flow .gate .dia { animation: none; } }

/* ---------- live ledger stream ---------- */
.ledger-stream { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; }
.ledger-stream .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ledger-stream .head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ledger-stream .head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.ledger-stream .body { padding: 12px 18px; font-family: var(--mono); font-size: .76rem; line-height: 1.7; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ledger-stream .ln { display: grid; grid-template-columns: 52px 92px 96px 1fr auto; gap: 14px; color: var(--fg-2); opacity: 0; transform: translateY(6px); animation: ln-in .5s var(--ease) forwards; white-space: nowrap; }
.ledger-stream .ln .h { color: var(--fg-3); }
.ledger-stream .ln .t { color: var(--fg-3); }
.ledger-stream .ln .s { font-weight: 500; }
.ledger-stream .ln .p { color: var(--fg-3); text-align: right; }
.ledger-stream .ln.ok .s, .ledger-stream .ln.ok { color: var(--accent); }
.ledger-stream .ln.bad .s { color: var(--reject); }
.ledger-stream .ln.dim { color: var(--fg-3); }
@keyframes ln-in { to { opacity: 1; transform: none; } }
.ledger-stream .foot { padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; color: var(--fg-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .ledger-stream .ln { grid-template-columns: 44px 1fr; } .ledger-stream .ln .t, .ledger-stream .ln .d, .ledger-stream .ln .p { display: none; } .ledger-stream { min-height: 360px; } }

/* ---------- misc ---------- */
.kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg-2); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.figure-cap { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--fg-3); margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mt-1 { margin-top: 12px } .mt-2 { margin-top: 24px } .mt-3 { margin-top: 40px } .mt-4 { margin-top: 64px } .mt-5 { margin-top: 96px }
.mb-2 { margin-bottom: 24px } .mb-3 { margin-bottom: 40px }
.sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 960px) { .sticky { position: static; } }
.nowrap { white-space: nowrap; }
.divider-dots { display: flex; gap: 6px; align-items: center; }
.divider-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.is-dark.grain::after { mix-blend-mode: screen; opacity: .08; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- chapters: giant numerals + fixed index ---------- */
.section[data-n] { overflow: clip; }
.section[data-n]::before { content: attr(data-n); position: absolute; right: -0.04em; top: -0.08em; font-family: var(--serif); font-size: clamp(11rem, 26vw, 24rem); line-height: 1; letter-spacing: -0.06em; color: var(--fg); opacity: .035; pointer-events: none; user-select: none; font-variant-numeric: tabular-nums; }
.chapters { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 50; display: grid; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.chapters.is-on { opacity: 1; pointer-events: auto; }
.chapters a { display: grid; grid-template-columns: auto 30px; align-items: center; justify-items: end; padding: 4px 0; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); transition: color .3s; }
.chapters a b { font-weight: 400; position: relative; padding-right: 8px; }
.chapters a b::after { content: ""; position: absolute; right: 0; top: 50%; width: 0; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.chapters a span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s var(--ease), opacity .25s, padding .35s var(--ease); }
.chapters:hover a span { max-width: 180px; opacity: 1; padding-right: 10px; }
.chapters a.is-on { color: var(--fg); }
.chapters a.is-on b::after { width: 5px; }
.chapters a:hover { color: var(--fg); }
@media (max-width: 1240px) { .chapters { display: none; } }

/* ---------- the swarm, live ---------- */
.swarm-live { border: 1px solid var(--line-strong); background: var(--ink-2); border-radius: var(--r); overflow: hidden; margin-bottom: 40px; }
.swarm-live canvas { display: block; width: 100%; height: clamp(300px, 34vw, 440px); }
.swarm-live.is-halted .desk-head .live { color: var(--khaki); } .swarm-live.is-halted .desk-head .live i { background: var(--khaki); animation: none; box-shadow: none; }
.swarm-bar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.swarm-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 1px solid var(--line); }
.swarm-stats > div { padding: 18px 18px 16px; border-right: 1px solid var(--line); } .swarm-stats > div:last-child { border-right: 0; }
.swarm-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.swarm-stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.swarm-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; padding: 14px 18px 12px; }
.swarm-controls label { display: grid; gap: 6px; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.swarm-controls output { color: var(--accent); }
.swarm-controls input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
.swarm-controls input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--line-strong); }
.swarm-controls input[type=range]::-moz-range-track { height: 1px; background: var(--line-strong); }
.swarm-controls input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line-strong); margin-top: -6.5px; }
.swarm-controls input[type=range]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line-strong); }
.swarm-controls input[type=range]:focus-visible { outline: none; } .swarm-controls input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--accent); }
.swarm-controls .halt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 12px 18px; border: 1px solid var(--reject); color: var(--reject); border-radius: 2px; transition: background .25s, color .25s; align-self: end; margin-bottom: 4px; }
.swarm-controls .halt:hover { background: var(--reject); color: var(--paper); }
.swarm-controls .halt[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.gates--compact > div { padding: 18px 16px 20px; } .gates--compact h3 { font-size: 1.25rem; } .gates--compact p { font-size: .82rem; }
@media (max-width: 1100px) { .swarm-bar { grid-template-columns: 1fr; } .swarm-stats { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 640px) { .swarm-stats { grid-template-columns: 1fr 1fr; } .swarm-stats > div:nth-child(2) { border-right: 0; } .swarm-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .swarm-controls { grid-template-columns: 1fr; } .swarm-controls .halt { justify-self: start; } .swarm-live canvas { height: 260px; } }

/* ---------- the chain (editable, real hashes) ---------- */
.chain { border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--ink-2); padding: 22px 22px 18px; transition: border-color .4s; }
.chain.is-broken { border-color: rgba(214, 96, 86, .55); }
.chain-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.chain-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); transition: color .3s; }
.chain-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: background .3s; }
.chain.is-broken .chain-status { color: var(--reject); } .chain.is-broken .chain-status i { background: var(--reject); animation: pulse 1s ease-in-out infinite; }
.chain-note { margin: 12px 0 18px; color: var(--fg-3); font-size: .88rem; line-height: 1.5; max-width: 70ch; }
.chain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chain-list li { display: grid; grid-template-columns: 2.2em 6.5em 9em minmax(0, 1fr) 6em 11em; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); transition: color .3s, background .3s; position: relative; }
.chain-list .i { color: var(--fg-3); }
.chain-list .who { color: var(--fg-3); }
.chain-list .ev { font-weight: 500; letter-spacing: .08em; color: var(--fg); }
.chain-list .what { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-list [contenteditable] { outline: none; border-bottom: 1px dashed transparent; cursor: text; transition: border-color .25s; padding-bottom: 1px; }
.chain-list [contenteditable]:hover { border-bottom-color: var(--line-strong); }
.chain-list [contenteditable]:focus { border-bottom-color: var(--accent); }
.chain-list .prev, .chain-list .hash { color: var(--fg-3); text-align: right; font-size: .66rem; white-space: nowrap; }
.chain-list .prev::before { content: "← "; opacity: .5; }
.chain-list .hash { color: var(--accent); }
.chain-list li.is-broken { color: rgba(214, 96, 86, .8); }
.chain-list li.is-broken .ev, .chain-list li.is-broken .what, .chain-list li.is-broken .hash, .chain-list li.is-broken .prev { color: var(--reject); }
.chain-list li.is-broken .hash { text-decoration: none; }
.chain-list li.is-broken .hash s { color: var(--fg-3); text-decoration-color: rgba(214, 96, 86, .6); margin-right: 6px; }
.chain-list li.is-edited { background: rgba(214, 96, 86, .06); }
.chain-list li.is-edited .ev::after { content: "edited"; display: inline-block; margin-left: 8px; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--reject); border: 1px solid rgba(214, 96, 86, .5); padding: 1px 5px; vertical-align: middle; }
.chain-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--fg-3); }
.chain-restore { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--fg); transition: border-color .25s, background .25s; }
.chain-restore:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .chain-list li { grid-template-columns: 2.2em 6em 1fr 5.5em; } .chain-list .what, .chain-list .prev { display: none; } .chain-list li.is-broken .hash s { display: none; } }

/* ---------- the desk (lifecycles · simulated session) ---------- */
.desk { border: 1px solid var(--line-strong); background: var(--ink-2); border-radius: var(--r); overflow: hidden; }
.desk-head { display: flex; align-items: center; gap: 22px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.desk-head .live { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.desk-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(79, 203, 147, .6); animation: desk-ping 1.8s ease-out infinite; }
.desk.is-closed .live { color: var(--khaki); } .desk.is-closed .live i { background: var(--khaki); animation: none; box-shadow: none; }
@keyframes desk-ping { 0% { box-shadow: 0 0 0 0 rgba(79, 203, 147, .55) } 100% { box-shadow: 0 0 0 9px rgba(79, 203, 147, 0) } }
.desk-head .t { color: var(--fg); font-variant-numeric: tabular-nums; }
.desk-head .hint { margin-left: auto; text-transform: none; letter-spacing: .04em; font-size: .7rem; }
.desk-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.desk-chart { position: relative; padding: 18px 8px 10px 8px; border-right: 1px solid var(--line); }
.desk-chart canvas { display: block; width: 100%; height: clamp(260px, 30vw, 400px); cursor: crosshair; }
.desk-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 12px 6px; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.desk-legend span { display: inline-flex; align-items: center; gap: 8px; }
.desk-legend i { width: 14px; height: 2px; background: var(--paper); }
.desk-legend i.khaki { background: var(--khaki); } .desk-legend i.green { background: var(--accent); height: 6px; width: 6px; border-radius: 50%; } .desk-legend i.band { background: rgba(79, 203, 147, .25); height: 8px; border-top: 1px dashed rgba(79, 203, 147, .6); border-bottom: 1px dashed rgba(79, 203, 147, .6); }
.desk-side { display: flex; flex-direction: column; min-width: 0; }
.desk-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.desk-stats > div { padding: 18px 16px 16px; border-right: 1px solid var(--line); } .desk-stats > div:last-child { border-right: 0; }
.desk-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.desk-stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.desk-controls { padding: 16px 18px 8px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.desk-controls label { display: grid; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.desk-controls output { color: var(--accent); }
.desk-controls input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
.desk-controls input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--line-strong); }
.desk-controls input[type=range]::-moz-range-track { height: 1px; background: var(--line-strong); }
.desk-controls input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line-strong); margin-top: -6.5px; transition: transform .2s var(--ease); }
.desk-controls input[type=range]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line-strong); }
.desk-controls input[type=range]:hover::-webkit-slider-thumb, .desk-controls input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.25); box-shadow: 0 0 0 1px var(--accent); }
.desk-controls input[type=range]:focus-visible { outline: none; }
.desk-log { list-style: none; margin: 0; padding: 10px 18px; font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; color: var(--fg-2); flex: 1; min-height: 196px; font-variant-numeric: tabular-nums; }
.desk-log li { display: grid; grid-template-columns: 3.2em 4.6em 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); animation: desk-in .5s var(--ease) both; }
.desk-log li:first-child { color: var(--fg); }
.desk-log .t { color: var(--fg-3); } .desk-log b { font-weight: 500; letter-spacing: .08em; } .desk-log b.c { color: var(--accent); } .desk-log b.r { color: var(--khaki); } .desk-log .g { text-align: right; }
@keyframes desk-in { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.desk-note { margin: 0; padding: 12px 18px 16px; font-size: .8rem; line-height: 1.5; color: var(--fg-3); border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .desk-body { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 900px) {
  .desk-body { grid-template-columns: 1fr; } .desk-chart { border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-head { flex-wrap: wrap; gap: 12px 18px; } .desk-head .hint { margin-left: 0; flex-basis: 100%; }
  .desk-log { min-height: 0; }
}

/* ---------- hero figures (under the copy, never over the globe) ---------- */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr .8fr 1.45fr; gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(245, 242, 236, .14); max-width: 52%; }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 2.05rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.hero-stats b em { font-style: normal; color: var(--signal-bright); }
.hero-stats span { display: block; margin-top: 9px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 242, 236, .56); line-height: 1.4; }
.hero-stats .badge { margin-top: 6px; color: rgba(245, 242, 236, .78); border-color: rgba(245, 242, 236, .32); white-space: nowrap; }
@media (max-height: 760px) and (min-width: 961px) {
  .beat-0 .display-1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
  .beat-0 .hero-sub { margin-top: 16px; }
  .beat .hero-cta { margin-top: 22px; }
  .hero-stats { margin-top: 24px; padding-top: 16px; }
}
@media (max-width: 960px) {
  .hero-stats { max-width: 100%; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; margin-top: 22px; padding-top: 16px; }
  .hero-stats b { font-size: 1.45rem; }
  .story-motion { right: var(--gutter); top: calc(var(--nav-h) + 4px); bottom: auto; }
}
.story-static-mark { position: absolute; top: 140px; right: 12%; width: 28%; opacity: .7; }
.story-ready .story-static-mark, .no-webgl .story-static-mark { display: none; }
html:not(.story-ready) .story { height: auto; }
html:not(.story-ready) .story-stage { position: relative; height: auto; min-height: 100svh; display: grid; }
html:not(.story-ready) .story-ui { position: relative; }
html:not(.story-ready) .beat { position: relative; opacity: 1; transform: none; pointer-events: auto; padding: 100px 0 60px; left: auto; right: auto; }
html:not(.story-ready) .story-lab, html:not(.story-ready) .story-idx, html:not(.story-ready) .story-gl { display: none; }
html:not(.story-ready) .beat [data-split] .wi { transform: none; }
@media (max-width: 960px) { .story-static-mark { width: 56%; top: calc(var(--nav-h) + 30px); right: 22%; } html:not(.story-ready) .beat-0 { padding-top: calc(var(--nav-h) + 66vw + 48px); } }

/* ---------- objects that live on paper sections keep their own ink ---------- */
.swarm-live, .chain, .desk { color: var(--paper); --fg: var(--paper); --fg-2: rgba(245, 242, 236, .78); --fg-3: rgba(245, 242, 236, .56); --line: rgba(245, 242, 236, .14); --line-strong: rgba(245, 242, 236, .32); --accent: var(--signal-bright); --bg: var(--ink); --bg-2: var(--ink-2); }
.swarm-live .swarm-controls input[type=range]::-webkit-slider-thumb, .desk-controls input[type=range]::-webkit-slider-thumb { background: var(--paper); }
.chain-list .chain-fallback { display: block; padding: 18px; font-family: var(--sans); line-height: 1.7; color: var(--fg-3); }
.chain-restore[hidden] { display: none; }
.model-motion { margin-left: auto; padding: 5px 9px; min-height: 36px; border: 1px solid var(--line); border-radius: 2px; color: var(--fg-2); font: .59rem/1.6 var(--mono); text-transform: uppercase; white-space: nowrap; }
.model-motion:hover { border-color: var(--signal-bright); color: var(--signal-bright); }
.model-motion[hidden] { display: none; }
.footer-legal { margin-top: 45px; border-top: 1px solid var(--line); }
.footer-legal > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 60px; list-style: none; cursor: pointer; color: var(--fg-3); font: .64rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-legal > summary::after { content: "+"; font-size: 1.2rem; color: var(--fg-2); }
.footer-legal[open] > summary::after { content: "-"; }
.footer-legal > summary::-webkit-details-marker { display: none; }
.footer .footer-legal .disc { margin-top: 0; padding-top: 0; padding-bottom: 25px; border-top: 0; }
.chapters { mix-blend-mode: difference; color: #fff; } .chapters a, .chapters a.is-on { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].will-reveal:not(.is-in) { opacity: 1; transform: none; }
  .badge i, .ledger-stream .head .live i, .swarm-live .live i, .desk-head .live i { animation: none; }
}

/* ---------- form feedback ---------- */
.form-error { padding: 12px 14px; border: 1px solid rgba(180, 68, 60, .45); background: rgba(180, 68, 60, .07); color: var(--reject); line-height: 1.6; }
.form-error[hidden] { display: none; }
.form-ok .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form-ok button.link-arrow { font: inherit; font-weight: 500; font-size: .95rem; }
.form button:disabled { cursor: wait; opacity: .65; }

/* ---------- footer clocks ---------- */
.footer .clocks { display: inline-flex; gap: 22px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.footer .clocks b { font-weight: 500; color: var(--fg-2); }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.notfound-swarm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; }
.notfound .container { position: relative; z-index: 1; }
.notfound .display-1 { max-width: 14ch; }
.notfound .lede { max-width: 46ch; }
.notfound-log { margin-top: 56px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.notfound-log span { color: var(--reject); }


/* ==========================================================================
   Editorial layer — research index, articles, figures, company page
   ========================================================================== */

/* ---------- figure stages (WebGL sculptures with inline fallback) ---------- */
.figure-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.figure-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.figure-stage.figure-ready canvas { opacity: 1; }
.figure-stage.no-figure canvas { display: none; }
.figure-stage.no-figure::after { content: ""; position: absolute; right: 8%; top: 18%; width: 34%; aspect-ratio: 1; background: currentColor; opacity: .08; -webkit-mask: url("../img/globe.svg") center / contain no-repeat; mask: url("../img/globe.svg") center / contain no-repeat; }
.page-hero--dark .container { position: relative; z-index: 1; }
.research-hero, .article-hero, .company-hero { position: relative; overflow: hidden; min-height: 78svh; display: flex; align-items: center; }
.research-hero .figure-stage, .article-hero .figure-stage { left: 42%; pointer-events: auto; }
.research-hero .figure-stage canvas, .article-hero .figure-stage canvas { touch-action: pan-y; }
.research-hero .lede, .article-hero .lede { max-width: 46ch; }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.article-title { max-width: 16ch; text-wrap: balance; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1.02; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.article-meta span { display: inline-flex; align-items: center; gap: 10px; }
.article-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }
@media (max-width: 960px) {
  .research-hero, .article-hero, .company-hero { min-height: 0; display: block; padding-top: calc(var(--nav-h) + 62vw); }
  .research-hero .figure-stage, .article-hero .figure-stage { left: 0; height: calc(var(--nav-h) + 66vw); pointer-events: none; }
  .article-hero-grid { grid-template-columns: 1fr; }
  .article-title { font-size: clamp(2.2rem, 9vw, 3.2rem); max-width: none; }
}

/* ---------- research index ---------- */
.posts-list { counter-reset: none; border-top: 1px solid var(--line); }
.posts-list .post { border-bottom: 1px solid var(--line); position: relative; }
.posts-list .post > a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 30px 0; transition: background .35s var(--ease), padding .35s var(--ease); }
.posts-list .post > a::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.posts-list .post:hover > a, .posts-list .post:focus-within > a { padding-left: 18px; }
.posts-list .post:hover > a::before, .posts-list .post:focus-within > a::before { transform: scaleY(1); }
.post-n { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; color: var(--fg-3); font-variant-numeric: tabular-nums; transition: color .3s; padding-top: 4px; }
.posts-list .post:hover .post-n, .posts-list .post:focus-within .post-n { color: var(--accent); }
.post-kind { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.post-main h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance; transition: color .3s; }
.post-main p { color: var(--fg-2); margin-top: 12px; max-width: 62ch; font-size: .98rem; }
.post-meta { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); padding-top: 10px; white-space: nowrap; }
.post-meta .arr { width: 18px; height: 18px; color: var(--fg-3); transition: transform .35s var(--ease), color .3s; }
.posts-list .post:hover .post-meta .arr, .posts-list .post:focus-within .post-meta .arr { transform: translateX(6px); color: var(--accent); }
@media (max-width: 760px) {
  .posts-list .post > a { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .post-meta { grid-column: 2; padding-top: 0; }
  .post-meta .post-fig { display: none; }
  .posts-list .post:hover > a, .posts-list .post:focus-within > a { padding-left: 10px; }
}

/* ---------- article ---------- */
.article-body-section { padding-top: clamp(56px, 7vw, 96px); }
.article-side .sticky { top: calc(var(--nav-h) + 40px); }
.toc { counter-reset: toc; border-top: 1px solid var(--line); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc li a { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 11px 0; font-size: .9rem; color: var(--fg-2); transition: color .25s; }
.toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--fg-3); padding-top: .25em; }
.toc li a:hover, .toc li.is-on a { color: var(--fg); }
.toc li.is-on a::before { color: var(--accent); }
.article { font-size: 1.12rem; line-height: 1.75; color: var(--fg); }
.article > p { margin: 0 0 1.35em; max-width: 66ch; color: var(--fg-2); }
.article > p.lead { font-size: 1.3rem; line-height: 1.6; color: var(--fg); }
.article > p.lead::first-letter { font-family: var(--serif); font-size: 3.6em; line-height: .8; float: left; margin: .1em .12em 0 0; color: var(--fg); }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em; margin: 2.2em 0 .7em; max-width: 24ch; position: relative; scroll-margin-top: calc(var(--nav-h) + 24px); }
.article h2::before { content: ""; display: block; width: 36px; height: 1px; background: var(--accent); margin-bottom: 18px; }
.article strong { font-weight: 600; color: var(--fg); }
.article em { font-style: italic; }
.article-end { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.article-end .mark { width: 18px; height: 18px; color: var(--fg-3); }
@media (max-width: 960px) {
  .article-side { order: -1; }
  .article-side .sticky { position: static; }
  .toc { display: none; }
  .article { font-size: 1.05rem; }
  .article > p.lead { font-size: 1.15rem; }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pager-card { background: var(--bg); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 10px; align-content: start; transition: background .3s; }
.pager-card.next { text-align: right; justify-items: end; }
.pager-card:hover { background: var(--paper); }
.pager-card .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.pager-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.pager-card p { color: var(--fg-3); font-size: .9rem; max-width: 40ch; }
@media (max-width: 700px) { .pager { grid-template-columns: 1fr; } .pager-card.next { text-align: left; justify-items: start; } }

/* ---------- homepage research chapter ---------- */
.research-card { display: grid; align-content: start; transition: border-color .3s, transform .35s var(--ease); }
.research-card:hover { transform: translateY(-2px); }
.research-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.research-card .link-arrow { justify-self: start; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 0; color: var(--fg-3); }
.research-card:hover .link-arrow { color: var(--accent); }

/* ---------- company page ---------- */
.company-hero { min-height: 92svh; }
.company-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.company-hero h1 { max-width: 12ch; text-wrap: balance; }
.company-hero h1 em { font-style: italic; color: var(--fg); }
.company-sculpture { position: relative; aspect-ratio: 1.1; min-width: 0; }
.company-sculpture .figure-stage { position: absolute; inset: 0; pointer-events: auto; }
.company-sculpture .frame { position: absolute; inset: 0; pointer-events: none; }
.company-sculpture .frame i { position: absolute; width: 14px; height: 14px; border: solid rgba(245, 242, 236, .3); }
.company-sculpture .frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; } .company-sculpture .frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.company-sculpture .frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; } .company-sculpture .frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.company-sculpture .readout { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.company-modes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 58px; }
.company-modes button { position: relative; padding: 16px 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); transition: color .25s; border-right: 1px solid var(--line); }
.company-modes button:last-child { border-right: 0; }
.company-modes button::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.company-modes button[aria-pressed="true"] { color: var(--fg); } .company-modes button[aria-pressed="true"]::after { transform: scaleX(1); }
.company-modes button:hover { color: var(--fg); }
.company-mode-copy { margin-top: 16px; font-size: .95rem; color: var(--fg-2); min-height: 3.2em; }
@media (max-width: 960px) {
  .company-hero { min-height: 0; padding-top: calc(var(--nav-h) + 30px); }
  .company-hero .container { grid-template-columns: 1fr; gap: 26px; }
  .company-sculpture { aspect-ratio: 1.2; margin-top: 12px; }
  .company-sculpture .readout { position: static; margin-top: 12px; }
  .company-modes { margin-top: 26px; }
}
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.timeline::after { content: ""; position: absolute; left: 0; top: 7px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.timeline.is-in::after { transform: scaleX(var(--p, .68)); }
.timeline .step { position: relative; padding-top: 30px; }
.timeline .step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background .5s, border-color .5s; }
.timeline.is-in .step::before { border-color: var(--accent); }
.timeline.is-in .step.now::before { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; letter-spacing: -0.01em; }
.timeline p { color: var(--fg-2); margin-top: 12px; font-size: .95rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; gap: 26px; } .timeline::before, .timeline::after { display: none; } .timeline .step { padding-left: 28px; padding-top: 0; } .timeline .step::before { top: 4px; } }
.constants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.constants > div { background: var(--bg); padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.constants .n { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; margin-bottom: 30px; }
.constants h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 18ch; text-wrap: balance; }
.constants p { color: var(--fg-2); margin-top: 16px; max-width: 46ch; }
.constants > div::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--line-strong); opacity: 0; transform: scale(.6); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.constants > div:hover::after { opacity: 1; transform: scale(1); }
@media (max-width: 760px) { .constants { grid-template-columns: 1fr; } }
.company-stage { position: relative; overflow: hidden; }
.company-stage .figure-stage { pointer-events: auto; opacity: .9; }
.company-stage .container { position: relative; z-index: 1; }
.company-stage .manifesto { max-width: 26ch; }
.manifesto .mw { color: var(--fg-3); transition: color .45s var(--ease); }
.manifesto .mw.is-lit { color: var(--fg); }
.manifesto em { font-style: normal; }
.manifesto em .mw.is-lit { color: var(--accent); }
.manifesto.is-lg { font-size: clamp(1.9rem, 4.1vw, 3.9rem); line-height: 1.16; }

/* ---------- the team (company page only) ----------
   Six portraits on the paper. Each sits in a disc over a faint point grid - the swarm, at rest - in warm monochrome
   that comes to colour when you point at it. Hairline cells, mono index, serif name: the same grammar as the constants. */
.crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.crew > li { background: var(--bg); padding: clamp(24px, 2.8vw, 40px); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.crew .n { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; gap: 16px; }
.crew .n span:last-child { text-align: right; }
.crew .ph { position: relative; width: 176px; height: 176px; margin-top: 28px; border-radius: 50%; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 50% 30%, var(--paper-2), var(--paper-3) 72%); box-shadow: inset 0 0 0 1px var(--line); transform: translateZ(0); }
.crew .ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(14, 21, 18, .22) .75px, transparent 1.1px); background-size: 9px 9px; background-position: center; -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 26%, transparent 74%); mask-image: radial-gradient(circle at 50% 42%, #000 26%, transparent 74%); transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.crew .ph img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; filter: grayscale(1) contrast(1.06) sepia(.16) brightness(1.02); transition: filter .7s var(--ease), transform 1.1s var(--ease); will-change: filter, transform; }
.crew .ph.grain::after { z-index: 2; opacity: .22; }
.crew .ph::after { border-radius: 50%; }
.crew > li:hover .ph img, .crew > li:focus-within .ph img { filter: none; transform: scale(1.04); }
.crew > li:hover .ph::before, .crew > li:focus-within .ph::before { transform: scale(1.12); opacity: .6; }
.crew .ph .ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .7s var(--ease); z-index: 3; pointer-events: none; }
.crew > li:hover .ph .ring, .crew > li:focus-within .ph .ring { opacity: 1; transform: scale(1); }
.crew .role { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 26px; }
.crew h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.1vw, 1.9rem); line-height: 1.05; letter-spacing: -0.01em; margin: 10px 0 0; }
.crew p { color: var(--fg-2); font-size: .95rem; line-height: 1.55; margin-top: 12px; max-width: 40ch; }
.crew .links { margin-top: auto; padding-top: 18px; display: flex; gap: 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; }
.crew .links a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s var(--ease), color .3s var(--ease); }
.crew .links a:hover { border-color: var(--fg); }
.crew > li::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--line-strong); opacity: 0; transform: scale(.6); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.crew > li:hover::after { opacity: 1; transform: scale(1); }
.crew-stats { display: flex; gap: clamp(22px, 3vw, 40px); margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.crew-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.2vw, 2.2rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.crew-stats span { display: block; margin-top: 8px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); max-width: 14ch; line-height: 1.4; }
@media (max-width: 1080px) { .crew { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .crew { grid-template-columns: 1fr; } .crew .ph { width: 148px; height: 148px; } .crew-stats { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .crew .ph img, .crew .ph::before, .crew .ph .ring, .crew > li::after { transition: none; } }
/* ---------- the blog (research/blog) ----------
   An archive, set in the same grammar as Research: a sticky row of collection chips, hairline card grids with
   warm-monochrome thumbnails that come to colour on hover, and article pages that reuse the research typography. */
.blog-hero { min-height: 62svh; }
.blog-hero .eyebrow a, .blog-post-hero .eyebrow a { border-bottom: 1px solid rgba(245, 242, 236, .28); transition: border-color .3s var(--ease); }
.blog-hero .eyebrow a:hover, .blog-post-hero .eyebrow a:hover { border-color: currentColor; }
.blog-chips-bar { position: sticky; top: var(--nav-h); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.blog-chips { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.blog-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chip b { font-weight: 500; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-current="true"] b { color: var(--signal-bright); }
.blog-collection { scroll-margin-top: calc(var(--nav-h) + 64px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.blog-card { background: var(--bg); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .35s var(--ease); }
.blog-card:hover { background: var(--paper); }
.blog-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); border-bottom: 1px solid var(--line); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.04) sepia(.14); transform: scale(1.001); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.blog-card:hover .blog-thumb img, .blog-card:focus-visible .blog-thumb img { filter: none; transform: scale(1.035); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.2vw, 30px); }
.blog-card .k { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.blog-card .k span:last-child { text-align: right; }
.blog-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.16; letter-spacing: -0.01em; margin-top: 14px; text-wrap: balance; }
.blog-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.blog-card p { color: var(--fg-2); font-size: .92rem; line-height: 1.55; margin-top: 10px; }
.blog-card .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 0; color: var(--fg-3); }
.blog-card:hover .link-arrow { color: var(--accent); }
.blog-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.blog-card:hover::after, .blog-card:focus-visible::after { transform: scaleX(1); }
.scholar-link { display: inline-flex; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.blog-post-hero { min-height: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.blog-title { max-width: 22ch; font-size: clamp(2.1rem, 4.2vw, 3.9rem); line-height: 1.06; margin-top: 18px; }
.blog-side { display: grid; gap: 14px; justify-items: start; }
.blog-side .link-arrow { font-size: .9rem; }
.blog-article > figure, .blog-article figure { margin: 0 0 1.6em; border: 1px solid var(--line); background: var(--paper-2); }
.blog-article figure img { display: block; width: 100%; height: auto; }
.blog-article figcaption { padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; line-height: 1.55; letter-spacing: .02em; color: var(--fg-3); }
.blog-article .blog-hero-img { margin-bottom: 2.2em; }
.blog-article > ol, .blog-article > ul { margin: 0 0 1.35em; padding-left: 1.3em; color: var(--fg-2); max-width: 64ch; }
.blog-article li { margin: .35em 0; }
.blog-article h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; margin: 1.8em 0 .6em; }
.blog-article blockquote { margin: 0 0 1.35em; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--fg); font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.blog-article a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s; overflow-wrap: anywhere; }
.blog-article a:hover { border-color: var(--fg); }
.blog-article .article-end span:last-child { text-transform: none; letter-spacing: .02em; font-size: .78rem; }
@media (max-width: 1080px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } .blog-hero { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .blog-thumb img, .blog-card::after { transition: none; } }
/* ---------- featured series (blog) ----------
   Four posts read in order: a rail of numbered cards joined by one hairline, the part named above each title.
   On a post, the series sits at the top of the side column with the current part marked. */
.series-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: none; }
.series-rail > li { background: var(--bg); display: flex; }
.series-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: clamp(20px, 2vw, 28px); transition: background .35s var(--ease); }
.series-card:hover { background: var(--paper); }
.series-n { font-family: var(--serif); font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; color: var(--fg-3); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.series-card:hover .series-n, .series-card:focus-visible .series-n { color: var(--accent); }
.series-card .blog-thumb { margin: 18px 0 0; border: 1px solid var(--line); }
.series-card:hover .blog-thumb img, .series-card:focus-visible .blog-thumb img { filter: none; transform: scale(1.035); }
.series-card .k { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.series-card .k span:last-child { color: var(--fg-3); }
.series-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.18; letter-spacing: -0.01em; margin-top: 12px; text-wrap: balance; }
.series-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.series-card .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 0; color: var(--fg-3); }
.series-card:hover .link-arrow { color: var(--accent); }
.series-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.series-card:hover::after, .series-card:focus-visible::after { transform: scaleX(1); }
.row-links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.series-box { width: 100%; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.series-box ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.series-box a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 10px 9px 0; border-left: 2px solid transparent; padding-left: 10px; transition: background .3s var(--ease), border-color .3s var(--ease); font-size: .88rem; line-height: 1.35; color: var(--fg-2); }
.series-box a > span:first-child { font-family: var(--mono); font-size: .7rem; color: var(--fg-3); padding-top: 2px; }
.series-box a b { display: block; font-family: var(--mono); font-weight: 500; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 2px; }
.series-box a:hover { background: var(--paper-2); color: var(--fg); }
.series-box li[aria-current="true"] a { border-left-color: var(--accent); background: var(--paper-2); color: var(--fg); }
.series-box li[aria-current="true"] b { color: var(--accent); }
@media (max-width: 1080px) { .series-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .series-rail { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .series-card::after { transition: none; } }
/* ---------- team v2: ten people + advisors, full descriptions ----------
   Hairlines are drawn per cell (not by a grey grid background) so a short last row stays clean. */
.crew { gap: 0; background: none; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); align-items: start; }
.crew > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); align-self: stretch; }
.crew--team { grid-template-columns: repeat(5, 1fr); }
.crew--advisors { grid-template-columns: repeat(3, 1fr); }
.crew--team > li { padding: clamp(20px, 1.7vw, 28px); }
.crew--team .ph { width: 132px; height: 132px; margin-top: 22px; }
.crew--team .role { margin-top: 22px; }
.crew--team h3 { font-size: clamp(1.35rem, 1.6vw, 1.6rem); }
.crew--team p { font-size: .9rem; }
.crew-more { margin-top: 16px; }
.crew-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); padding: 4px 0; border-bottom: 1px solid var(--line-strong); transition: color .3s var(--ease), border-color .3s var(--ease); }
.crew-more summary::-webkit-details-marker { display: none; }
.crew-more summary::after { content: "+"; font-size: .95rem; line-height: 1; transition: transform .35s var(--ease); }
.crew-more[open] summary::after { transform: rotate(45deg); }
.crew-more summary:hover, .crew-more summary:focus-visible { color: var(--fg); border-color: var(--fg); }
.crew-more[open] summary { color: var(--accent); border-color: var(--accent); }
.crew-bio { padding-top: 14px; animation: crew-open .45s var(--ease); }
.crew-bio p { font-size: .88rem; line-height: 1.62; color: var(--fg-2); margin: 0 0 .9em; max-width: 60ch; }
@keyframes crew-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.crew .links { flex-wrap: wrap; row-gap: 8px; margin-top: 14px; padding-top: 0; }
.crew-sub { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: end; margin: clamp(48px, 6vw, 80px) 0 22px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.crew-sub-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.crew-sub p { color: var(--fg-2); max-width: 56ch; margin: 0; }
@media (max-width: 1280px) { .crew--team { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1080px) { .crew--team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .crew--team, .crew--advisors { grid-template-columns: repeat(2, 1fr); } .crew-sub { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .crew--team, .crew--advisors { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .crew-bio { animation: none; } .crew-more summary::after { transition: none; } }