/* PERSPECTIVES-SWITCH — one word decides whether Perspectives is visible on the whole site.
   ".persp-on"  hidden = OFF (zero published pieces; hero chip points to /decisioning/).
   Change it to ".persp-off" to turn Perspectives ON. Full checklist: docs/PUBLISHING.md */
.persp-on { display: none !important; }

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Pillar8 — site design system v2 (2026-11)
   Brand: #10CBB3 teal · #0C0E12 dark-1 · #1F2B5B dark-2 · #8B9BAE gray
   Dark is the default; light via [data-theme="light"] or system preference. */

:root {
  --teal: #10cbb3;
  --teal-dim: #0c9985;
  --navy: #1f2b5b;

  --bg: #0c0e12;
  --bg-2: #10131a;
  --panel: #131826;
  --panel-2: #182036;
  --line: rgba(139, 155, 174, 0.16);
  --line-strong: rgba(139, 155, 174, 0.28);
  --text: #ffffff;
  --text-2: #c9d2de;
  --muted: #8b9bae;
  --accent: var(--teal);
  --accent-ink: #04201c;
  --accent-soft: rgba(16, 203, 179, 0.10);
  --accent-line: rgba(16, 203, 179, 0.35);
  --glow: 0 0 0 1px rgba(16, 203, 179, 0.25), 0 20px 60px -20px rgba(16, 203, 179, 0.35);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 20px;
  --section: clamp(80px, 11vw, 144px);
  color-scheme: dark;
}

/* Dark is the brand default. Light only when the visitor chooses it (toggle, stored). */
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-2: #eef1f5;
  --panel: #ffffff;
  --panel-2: #f2f5f9;
  --line: rgba(31, 43, 91, 0.12);
  --line-strong: rgba(31, 43, 91, 0.22);
  --text: #0c0e12;
  --text-2: #2c3a52;
  --muted: #5b6b80;
  --accent: #0a9e8b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 158, 139, 0.08);
  --accent-line: rgba(10, 158, 139, 0.35);
  --glow: 0 0 0 1px rgba(10, 158, 139, 0.2), 0 20px 50px -24px rgba(31, 43, 91, 0.25);
  --shadow: 0 30px 70px -35px rgba(31, 43, 91, 0.35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.h-display { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -0.045em; line-height: 1.0; }
.h-1 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.04em; }
.h-2 { font-size: clamp(24px, 2.6vw, 34px); }
.h-3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); line-height: 1.55; max-width: 62ch; }
.body { color: var(--text-2); max-width: 64ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.dim { color: var(--muted); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--text-2); }
.nav-links a:not(.btn) { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .site-header.menu-open .nav-links a:not(.btn) { padding: 10px 0; }
  .site-header.menu-open .nav-links .btn { margin-top: 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(16, 203, 179, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(16, 203, 179, 0.7); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); overflow: hidden; isolation: isolate; }
.hero-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .9; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 78% 40%, rgba(16, 203, 179, 0.10), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(31, 43, 91, 0.55), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
:root[data-theme="light"] .hero::after { background: radial-gradient(60% 60% at 78% 40%, rgba(10, 158, 139, 0.08), transparent 70%), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero h1 .accent { display: block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--panel) 60%, transparent);
  font-size: 13.5px; color: var(--text-2);
  transition: border-color .2s;
}
.chip:hover { border-color: var(--accent-line); }
.chip-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 999px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* ---------- decision engine visual (hero) ---------- */
.engine {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--bg-2) 92%, transparent));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  padding: 18px; font-family: var(--mono); font-size: 12.5px;
}
.engine-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.engine-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.stage { display: grid; gap: 10px; }
.layer {
  position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.layer-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.layer.is-active { border-color: var(--accent-line); box-shadow: var(--glow); }
[data-k="t-id"] { text-transform: none; letter-spacing: .02em; }
.layer-p8 { background: linear-gradient(180deg, rgba(16, 203, 179, 0.10), rgba(16, 203, 179, 0.02)); border-color: var(--accent-line); }
.layer-p8 .layer-label { color: var(--accent); }
.txn { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text); font-size: 13px; min-height: 20px; }
.txn b { font-weight: 500; }
.txn .sep { color: var(--muted); }
.pkg { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.pkg dt { color: var(--muted); }
.pkg dd { margin: 0; color: var(--text); min-height: 1.4em; position: relative; }
.pkg dd .val { display: inline-block; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.pkg dd.on .val { opacity: 1; transform: none; }
.pkg dd .val.hl { color: var(--accent); }
.why { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); color: var(--text-2); font-family: var(--font); font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .5s; }
.why.on { opacity: 1; }
.why b { color: var(--accent); font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.flow { height: 18px; display: grid; place-items: center; }
.flow svg { width: 2px; height: 18px; overflow: visible; }
.flow line { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 3 4; }
.flow.run line { stroke: var(--accent); animation: dash .6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.outcome { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11.5px; transition: all .4s; }
.status.ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.loop { color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; opacity: .4; transition: opacity .4s, color .4s; }
.loop.on { opacity: 1; color: var(--accent); }
.loop svg { width: 14px; height: 14px; }
.engine-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; }
.engine-steps { display: flex; gap: 6px; }
.engine-steps i { width: 18px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background .3s; }
.engine-steps i.on { background: var(--accent); }

/* ---------- stakes band ---------- */
.stakes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.stake { padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: start; }
.stake + .stake { border-left: 1px solid var(--line); }
.stake-num { font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stake-num .u { color: var(--accent); }
.stake p { color: var(--text-2); font-size: 15.5px; }
.stake cite { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.stakes-line { margin-top: 28px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; color: var(--text); }
.stakes-line .muted { color: var(--muted); }

/* ---------- stack diagram ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.stack { display: grid; gap: 0; perspective: 1400px; }
.slab {
  --tilt: 0deg;
  position: relative; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 18px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  cursor: default; transition: transform .35s ease, border-color .3s, box-shadow .3s, background .3s;
}
.slab + .slab { margin-top: 12px; }
.slab-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slab-n { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.slab-d { grid-column: 2; font-size: 14.5px; color: var(--text-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s, margin .3s; }
.slab:hover, .slab:focus-visible, .slab.is-open { border-color: var(--line-strong); transform: translateX(6px); }
.slab:hover .slab-d, .slab:focus-visible .slab-d, .slab.is-open .slab-d { max-height: 80px; opacity: 1; margin-top: 4px; }
.slab-p8 { background: linear-gradient(100deg, rgba(16, 203, 179, 0.14), rgba(16, 203, 179, 0.03) 60%), var(--panel); border-color: var(--accent-line); box-shadow: var(--glow); }
.slab-p8 .slab-k { color: var(--accent); }
.slab-p8 .slab-n { display: flex; align-items: center; gap: 10px; }
.slab-p8 .slab-n img { width: 22px; height: 22px; }
.slab-pkg { margin: 12px 0 0 64px; border-style: dashed; border-color: var(--accent-line); background: var(--accent-soft); grid-template-columns: 1fr; padding: 14px 18px; }
.pkg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-tags span { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--accent-line); color: var(--accent); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.fact-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.fact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.fact-list li span { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }

/* ---------- eras ---------- */
.eras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.era { position: relative; padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); display: grid; gap: 14px; align-content: start; overflow: hidden; }
.era-k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; display: flex; justify-content: space-between; }
.era h3 { font-size: 30px; letter-spacing: -0.035em; }
.era p { color: var(--text-2); font-size: 15.5px; }
.era-meta { display: grid; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.era-meta div { display: flex; justify-content: space-between; gap: 12px; }
.era-meta dt { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.era-meta dd { margin: 0; color: var(--text); text-align: right; }
.era-now { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(16, 203, 179, 0.12), transparent 70%), var(--panel); box-shadow: var(--glow); }
.era-now .era-k { color: var(--accent); }
.era-bars { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.era-bars i { flex: 1; background: var(--line-strong); border-radius: 2px; }
.era-now .era-bars i { background: var(--accent); opacity: .85; }
.pull { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.25; max-width: 30ch; }
.pull .q { color: var(--accent); }

/* ---------- decision points ---------- */
.dps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dp { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.dp-k { display: flex; align-items: center; gap: 12px; }
.dp-badge { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: 4px 9px; }
.dp-when { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dp h3 { font-size: clamp(24px, 2.4vw, 30px); }
.dp > p { color: var(--text-2); }
.dp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-list li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); }
.proof {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14.5px; color: var(--text);
}
.proof svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.proof b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2px; }

/* mini FOP visual for DP1 */
.fop { display: grid; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, transparent); }
.fop-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, border-color .3s; }
.fop-row .rk { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fop-row .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fop-row.top { border-color: var(--accent-line); }
.fop-row.top .tag { color: var(--accent); }
.fop-row.sup { opacity: .38; }
.fop-row.sup .tag { text-decoration: none; }
.fop-cap { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; display: flex; justify-content: space-between; }

/* decision package card (DP2) */
.dpkg { border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, transparent); font-family: var(--mono); font-size: 13px; overflow: hidden; }
.dpkg-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.dpkg-h .id { color: var(--text-2); letter-spacing: .04em; text-transform: none; }
.dpkg-b { padding: 14px 16px; display: grid; grid-template-columns: 104px 1fr; gap: 9px 14px; }
.dpkg-b dt { color: var(--muted); }
.dpkg-b dd { margin: 0; color: var(--text); }
.dpkg-b dd .hl { color: var(--accent); }
.dpkg-f { padding: 12px 16px; border-top: 1px dashed var(--line-strong); font-family: var(--font); font-size: 13.5px; color: var(--text-2); }
.dpkg-f b { font-family: var(--mono); font-weight: 400; color: var(--accent); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }

.foundations { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.found { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.found-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.found-i svg { width: 22px; height: 22px; }
.found h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.015em; }
.found p { color: var(--text-2); font-size: 15px; }

/* ---------- adoption timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--accent-line), var(--accent)); }
.step { position: relative; padding: 0 24px 0 0; display: grid; gap: 12px; align-content: start; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text-2); position: relative; z-index: 1; }
.step:last-child .step-n { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.step h3 { font-size: 20px; margin-top: 8px; }
.step p { color: var(--text-2); font-size: 15px; }
.guards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(40px, 5vw, 56px); }
.guards li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14.5px; color: var(--text); background: var(--panel); }
.guards svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- not ---------- */
.nots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.not { padding: 26px 22px; display: grid; gap: 8px; background: var(--panel); }
.not + .not { border-left: 1px solid var(--line); }
.not-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.not-n { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: line-through; text-decoration-color: rgba(139, 155, 174, 0.55); text-decoration-thickness: 1px; }
.not p { font-size: 13.5px; color: var(--muted); }
.is-line { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.025em; }
.is-line .k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- perspectives ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; transition: transform .25s ease, border-color .25s; }
.post:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-cover { aspect-ratio: 16 / 9; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-cover svg { width: 100%; height: 100%; }
.post-body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.post-meta { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.post-meta .pill { color: var(--accent); }
.post h3 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
.post p { color: var(--text-2); font-size: 15px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line-strong); background: var(--navy); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.95); mix-blend-mode: luminosity; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12, 14, 18, 0.65)), linear-gradient(135deg, rgba(16, 203, 179, 0.25), transparent 55%); mix-blend-mode: normal; pointer-events: none; }
.portrait-cap { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; }
.portrait-cap b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.portrait-cap span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.seats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.seats li { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.timeline li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.timeline li span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

/* ---------- contact ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--accent-line); padding: clamp(36px, 6vw, 80px); background: radial-gradient(80% 120% at 100% 0%, rgba(16, 203, 179, 0.18), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(31, 43, 91, 0.7), transparent 70%), var(--panel); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
:root[data-theme="light"] .cta-card { background: radial-gradient(80% 120% at 100% 0%, rgba(10, 158, 139, 0.14), transparent 60%), var(--panel); }
.cta-card .h-1 { max-width: 18ch; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-actions .muted { font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.foot-grid ul { display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-line { margin-top: 14px; max-width: 34ch; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }

/* ---------- responsive ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) {
  .nots { grid-template-columns: 1fr; }
  .not { grid-template-columns: 110px 160px 1fr; align-items: baseline; padding: 18px 20px; }
  .not + .not { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .not { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 960px) {
  .hero-grid, .split, .founder, .cta-card { grid-template-columns: 1fr; }
  .eras, .posts { grid-template-columns: 1fr; }
  .dps, .foundations { grid-template-columns: 1fr; }
  .stakes { grid-template-columns: 1fr; }
  .stake + .stake { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .founder .portrait { max-width: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .slab { grid-template-columns: 1fr; gap: 4px; }
  .slab-d { grid-column: 1; }
  .slab-pkg { margin-left: 24px; }
  .dpkg-b { grid-template-columns: 88px 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.stake cite a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.stake cite a:hover { color: var(--accent); }

/* =========================================================
   Inner pages: page hero, prose, tables, glossary, articles
   ========================================================= */
.page-hero { position: relative; padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 0%, rgba(16, 203, 179, 0.12), transparent 70%), radial-gradient(40% 70% at 0% 0%, rgba(31, 43, 91, 0.55), transparent 70%); }
:root[data-theme="light"] .page-hero::before { background: radial-gradient(50% 80% at 85% 0%, rgba(10, 158, 139, 0.10), transparent 70%); }
.page-hero .wrap { display: grid; gap: 24px; }
.page-hero .h-display { max-width: 16ch; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.def {
  position: relative; margin-top: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line); background: linear-gradient(135deg, rgba(16, 203, 179, 0.10), transparent 60%), var(--panel);
  font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; letter-spacing: -0.015em; max-width: 900px; box-shadow: var(--glow);
}
.def-k { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.def em { font-style: normal; color: var(--accent); }

.layout-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 4px; font-size: 14px; }
.toc-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--muted); padding: 6px 0 6px 14px; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--accent); }
.doc-sec { padding-bottom: clamp(56px, 7vw, 96px); }
.doc-sec + .doc-sec { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.doc-sec > .eyebrow { margin-bottom: 18px; }
.doc-sec h2 { margin-bottom: 22px; }

.prose { color: var(--text-2); font-size: 18px; line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.8em; }
.prose h3 { color: var(--text); font-size: 21px; margin-top: 1.6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { padding-left: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--text); font-size: 22px; line-height: 1.45; letter-spacing: -0.015em; }
.prose .sources { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.why-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 10px; align-content: start; }
.why-card .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.why-card h3 { font-size: 18px; letter-spacing: -0.015em; }
.why-card p { font-size: 15px; color: var(--text-2); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.tbl th, .tbl td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.tbl tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.tbl td { color: var(--text-2); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl .now th, .tbl .now td { background: var(--accent-soft); color: var(--text); }
.tbl .now th { color: var(--accent); }

.cases { display: grid; gap: 14px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.case > div { padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.case > div + div { border-left: 1px solid var(--line); }
.case-k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 19px; letter-spacing: -0.02em; }
.case p { font-size: 15px; color: var(--text-2); }
.case .rule .case-k { color: #e0a36b; }
.case .layer .case-k { color: var(--accent); }
.case .layer { background: var(--accent-soft); }

.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.gloss div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.gloss dt { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.gloss dd { margin: 0; color: var(--text-2); font-size: 15.5px; }

.closing { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1.2; max-width: 26ch; }
.closing .accent { color: var(--accent); }

/* perspectives index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.plist { display: grid; border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 140px minmax(0, 1fr) 180px; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prow[hidden] { display: none; }
.prow:hover h3 { color: var(--accent); }
.prow time, .prow .pmeta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.prow h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.025em; transition: color .2s; }
.prow p { color: var(--text-2); margin-top: 8px; max-width: 60ch; }
.prow .pmeta { text-align: right; display: grid; gap: 6px; }
.prow .pmeta .pill { color: var(--accent); }
.draft-flag { display: inline-block; margin-left: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #e0a36b; border: 1px solid rgba(224, 163, 107, 0.45); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.notice { margin-bottom: 28px; padding: 14px 18px; border-radius: 12px; border: 1px dashed rgba(224, 163, 107, 0.55); color: var(--text-2); font-size: 14.5px; }
.notice b { color: #e0a36b; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; }

/* article */
.art-head { max-width: 780px; display: grid; gap: 22px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.byline { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font); font-size: 15px; color: var(--text); letter-spacing: 0; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.byline small { display: block; color: var(--muted); font-size: 13px; }
.art-body { padding: clamp(48px, 6vw, 80px) 0; }
.art-body .prose { margin: 0 auto; max-width: 70ch; }
.art-body .prose > p:first-child { font-size: 21px; color: var(--text); line-height: 1.55; }
.art-foot { max-width: 70ch; margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.cv { display: grid; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cv .yr { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.cv h3 { font-size: 18px; letter-spacing: -0.015em; }
.cv h3 span { color: var(--muted); font-weight: 400; }
.cv p { color: var(--text-2); font-size: 15.5px; margin-top: 6px; }
.creds { display: grid; gap: 10px; }
.creds li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14.5px; color: var(--text-2); }
.creds li b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }

/* pointer + 404 */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-page .wrap { display: grid; gap: 22px; justify-items: center; max-width: 720px; }

@media (max-width: 960px) {
  .layout-doc, .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .toc { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .gloss { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 1fr; gap: 8px; }
  .prow .pmeta { text-align: left; display: flex; gap: 14px; }
}
@media (max-width: 600px) {
  .prose { font-size: 17px; }
  .cv li { grid-template-columns: 1fr; gap: 4px; }
}

.layout-doc > *, .about-grid > * { min-width: 0; }
