:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --raised: #1a1a1e;
  --fg: #eceae4;
  --muted: #9a9890;
  --subtle: #6e6c66;
  --accent: #d8d4cc;
  --accent-fg: #0a0a0b;
  --border: color-mix(in oklab, #eceae4 12%, transparent);
  --border-strong: color-mix(in oklab, #eceae4 22%, transparent);
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); color: var(--fg); }
::selection { background: var(--accent); color: var(--accent-fg); }
header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
.bar, .page, footer .inner { width: min(1152px, 100%); margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
@media (min-width: 640px) { .bar, .page, footer .inner { padding-left: 24px; padding-right: 24px; } }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 10px; flex: none; }
.mark svg { width: 16px; height: 16px; }
.brand-copy { line-height: 1; }
.brand-copy strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18.4px; letter-spacing: -0.02em; }
.brand-copy span { display: none; margin-top: 3px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
@media (min-width: 640px) { .brand-copy span { display: block; } }
nav.desk { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { nav.desk { display: flex; } }
nav a { color: var(--muted); font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: 8px; }
nav a[aria-current="page"] { background: var(--raised); color: var(--fg); }
nav a:hover { color: var(--fg); }
.star { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); font-size: 14px; font-weight: 500; }
.star .long { display: none; }
@media (min-width: 640px) { .star .long { display: inline; } .star .short { display: none; } }
nav.mobile { display: flex; gap: 4px; overflow-x: auto; border-top: 1px solid var(--border); padding: 4px 12px; }
nav.mobile a { white-space: nowrap; flex: none; }
@media (min-width: 768px) { nav.mobile { display: none; } }
.page { padding: 40px 16px 0; }
@media (min-width: 640px) { .page { padding: 56px 24px 0; } }
.kicker { font-size: 12px; line-height: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
h1 { margin-top: 16px; font-size: 36px; line-height: 1; letter-spacing: -0.025em; }
@media (min-width: 640px) { h1 { font-size: 48px; line-height: 48px; } }
h1.hero { margin-top: 20px; max-width: 896px; font-size: 37.6px; letter-spacing: -0.03em; line-height: 1.08; }
@media (min-width: 640px) { h1.hero { font-size: 48px; line-height: 51.84px; } }
.lede { margin-top: 16px; max-width: 672px; color: var(--muted); font-size: 16px; line-height: 24px; }
.lede.lg { margin-top: 24px; font-size: 16px; line-height: 26px; }
@media (min-width: 640px) { .lede.lg { font-size: 18px; line-height: 29.25px; } }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); font-size: 14px; line-height: 20px; font-weight: 500; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); font-weight: 400; }
.grid { display: grid; gap: 12px; }
.grid.three { margin-top: 56px; }
@media (min-width: 640px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: 1fr 1fr; }
}
.card, .plain, .toolcard, .step, .manifesto, pre, .tablewrap {
  border: 1px solid var(--border);
  border-radius: 28px;
}
.card, .toolcard { background: var(--surface); padding: 20px; text-align: left; }
@media (min-width: 640px) { .toolcard { padding: 24px; } }
.card > svg, .btn svg, .star svg, footer svg, a.up svg { display: block; }
.card dt { margin-top: 16px; font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 24px; }
.card dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 22.75px; }
.section { margin-top: 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head h2, .section > h2, .manifesto h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.head a { font-size: 14px; line-height: 20px; color: var(--muted); }
.close .sub { max-width: 512px; }
.note a { display: inline-block; font-size: 14px; line-height: 20px; }
.sub { margin-top: 8px; max-width: 576px; color: var(--muted); font-size: 14px; line-height: 20px; }
.layers { list-style: none; padding: 0; margin: 24px 0 0; }
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.name { margin-top: 8px; font-size: 18px; line-height: 28px; color: var(--fg); }
.blurb { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.manifesto { margin-top: 64px; background: var(--surface); padding: 24px; }
@media (min-width: 640px) { .manifesto { padding: 32px; } }
.prose { margin-top: 20px; display: grid; gap: 16px; color: var(--muted); font-size: 15.6px; line-height: 25.35px; }
.prose .fg { color: var(--fg); }
.plain { padding: 20px; background: transparent; }
.plain h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plain p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 22.75px; }
.gaps { list-style: none; padding: 0; margin-top: 24px; }
.close { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 640px) { .close { flex-direction: row; align-items: center; justify-content: space-between; } }
.close h2 { font-size: 24px; line-height: 32px; }
footer { border-top: 1px solid var(--border); margin-top: 56px; }
footer .inner { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; line-height: 20px; color: var(--muted); }
@media (min-width: 640px) { footer .inner { flex-direction: row; align-items: center; justify-content: space-between; } }
footer a { color: var(--fg); display: inline-flex; align-items: center; gap: 4px; }
.layer-block { margin-top: 40px; }
.layer-block h2 { font-size: 24px; line-height: 32px; }
.layer-block > .sub { margin-top: 4px; margin-bottom: 16px; max-width: none; }
.tooltop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tooltop strong { display: block; font-weight: 500; font-size: 18px; line-height: 28px; }
.role { color: var(--muted); font-size: 14px; line-height: 20px; }
.why { margin-top: 16px; font-size: 14px; line-height: 22.75px; }
.facts { margin: 16px 0 0; display: grid; gap: 12px; font-size: 14px; line-height: 20px; }
.facts dt, .facts dd, a.up, .role { line-height: 20px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts dt { color: var(--subtle); }
.facts dd { margin: 4px 0 0; color: var(--muted); line-height: 20px; }
a.up { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
ol.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; padding: 20px; background: transparent; }
.num { font-family: var(--mono); color: var(--subtle); font-size: 14px; line-height: 24px; }
.step h3 { font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 24px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 22.75px; }
pre { margin: 40px 0 0; overflow: auto; background: var(--surface); padding: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.625; color: var(--muted); }
.tablewrap { margin-top: 40px; overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 14px; }
th { background: var(--surface); color: var(--muted); font-weight: 500; }
th, td { padding: 12px 16px; line-height: 20px; }
tbody tr { border-top: 1px solid var(--border); }
td:first-child { font-weight: 500; }
td:not(:first-child) { color: var(--muted); }
.note { margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 20px; }
.note + .note { margin-top: 16px; }
ol.play { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.play h2 { margin-top: 8px; font-size: 24px; line-height: 32px; }
.play .role { margin-top: 4px; }
.play ol { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 22.75px; }
.play ol li { margin: 0; padding-left: 4px; }
.play ol li + li { margin-top: 8px; }
.rise { animation: rise 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise:nth-child(2) { animation-delay: 50ms; }
.rise:nth-child(3) { animation-delay: 90ms; }
.rise:nth-child(4) { animation-delay: 140ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }
