/*
 * ajmalps.com, the one stylesheet.
 * Every page loads this. The home page adds assets/home.css for its forest.
 * The rules are in docs/REDESIGN.md: one dark skin, Geist for everything,
 * Instrument Serif italic for a few accent words, Geist Mono for small labels.
 */

/* ---------- fonts, self-hosted (SIL OFL, see assets/fonts/) ---------- */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.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-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #050506;
  --bg-2: #0D0D0F;
  --bg-3: #151518;
  --fg: #F5F5F7;
  --body: #B9B9BE;
  --mute: #8C8C92;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --heron: #FD641A;
  --heron-light: #FF9A5C;
  --ok: #3DDC84;
  --fog: #C6CACE;
  --sans: "Geist", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1440px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 80; background: var(--bg);
}
/* film grain: the one texture on the site */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .3s; }
p a:hover, li a:hover, dd a:hover, .link:hover { text-decoration-color: currentColor; }
.tabs a, .foot a, a.pill, a.ghost, a.card, a.row, .overlay a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 800px) {
  .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); }
}

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
em.s, .s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.title { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -0.045em; max-width: 16ch; }
.title em.s { font-size: 1.05em; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: 1; letter-spacing: -0.045em; max-width: 18ch; }
.h2 em.s { font-size: 1.05em; }
.h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.15; letter-spacing: -0.03em; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--body); max-width: 46ch; }
.lede strong { color: var(--fg); font-weight: 500; }
.prose { color: var(--body); max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--fg); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.muted { color: var(--mute); }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: #000; font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 13px 20px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .4s var(--ease), background .3s;
  will-change: transform;
}
.pill:hover { background: #fff; }
.pill svg { width: 14px; height: 14px; flex: none; }
.ghost {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 500; font-size: 14.5px; line-height: 1; color: var(--fg); background: transparent; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s;
}
.ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.4); }
.ghost svg { width: 14px; height: 14px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pill.heron { background: linear-gradient(135deg, var(--heron), var(--heron-light)); color: #0F0F10; }

/* ---------- the bar ---------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 70;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), color .4s;
}
.nav.solid { background: rgba(5, 5, 6, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav-in { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.mark { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.mark i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nav .pill { justify-self: end; }

/* tabs: a glass capsule, and one highlight that glides to the tab under the pointer */
.tabs {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 30px rgba(0,0,0,.18);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.tabs li { position: relative; z-index: 1; }
.tabs li.tab-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: rgba(255,255,255,.12); opacity: 0;
  transition: transform .55s cubic-bezier(.2, .9, .25, 1), width .55s cubic-bezier(.2, .9, .25, 1), background .35s ease, box-shadow .35s ease, opacity .25s ease;
}
.tabs li.tab-ind.instant { transition: background .35s ease, box-shadow .35s ease, opacity .25s ease; }
.tabs a { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; color: rgba(245,245,247,.72); transition: color .35s ease; }
.tabs a.lit { color: var(--fg); }
.tabs .tab-ind[data-mode="sel"] { background: var(--fg); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tabs .tab-ind[data-mode="sel"] ~ li a.lit { color: #000; }
/* with no script, the current page still reads as selected */
.no-js .tabs a[aria-current="page"] { background: var(--fg); color: #000; }

/* the light bar, over the home page's fog */
.nav.light { color: #0F1114; }
.nav.light .tabs { background: rgba(255,255,255,.34); border-color: rgba(15,17,20,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 30px rgba(15,17,20,.08); }
.nav.light .tabs a { color: rgba(15,17,20,.66); }
.nav.light .tabs a.lit { color: #0F1114; }
.nav.light .tabs .tab-ind { background: rgba(15,17,20,.08); }
.nav.light .tabs .tab-ind[data-mode="sel"] { background: #0F1114; box-shadow: 0 6px 18px rgba(15,17,20,.2); }
.nav.light .tabs .tab-ind[data-mode="sel"] ~ li a.lit { color: #fff; }
.nav.light .pill { background: #0F1114; color: #fff; }
.nav.light .burger { color: #0F1114; border-color: rgba(15,17,20,.16); background: rgba(255,255,255,.3); }
.nav.light.solid { background: rgba(206,209,212,.6); border-color: rgba(15,17,20,.08); }
.nav.light :focus-visible { outline-color: #0F1114; }

/* Heron wears its own colours, only while it is pointed at or selected */
.tabs .tab-ind.heron, .nav.light .tabs .tab-ind.heron, .nav.light .tabs .tab-ind.heron[data-mode="sel"] {
  background: linear-gradient(135deg, var(--heron) 0%, var(--heron-light) 100%);
  box-shadow: 0 8px 26px rgba(253,100,26,.42), inset 0 1px 0 rgba(255,255,255,.35);
}
.tabs .tab-ind.heron ~ li a.lit, .nav.light .tabs .tab-ind.heron ~ li a.lit, .nav.light .tabs .tab-ind.heron[data-mode="sel"] ~ li a.lit { color: #0F0F10; }
.no-js .tabs a[data-tab="heron"][aria-current="page"] { background: linear-gradient(135deg, var(--heron), var(--heron-light)); color: #0F0F10; }

.burger {
  display: none; justify-self: end; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--fg); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger svg { width: 18px; height: 18px; }
.overlay {
  position: fixed; inset: 0; z-index: 75; background: var(--bg);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 6px;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}
.overlay[data-open] { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.overlay a.big { font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.1; display: flex; align-items: baseline; gap: 14px; transition: color .3s; }
.overlay a.big small { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--mute); font-weight: 400; }
.overlay a.big[aria-current="page"] small { color: currentColor; }
.overlay a.big.heron:hover, .overlay a.big.heron[aria-current="page"] { color: var(--heron); }
.overlay .pill { margin-top: auto; align-self: flex-start; }
.overlay .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 13px); right: max(20px, env(safe-area-inset-right, 0px)); display: inline-flex; }
@media (max-width: 900px) {
  .nav-tabs, .nav .pill { display: none; }
  .burger { display: inline-flex; }
  .nav-in { grid-template-columns: 1fr auto; }
}
/* with no script the menu button cannot open the sheet, so the tabs stay in the bar */
@media (max-width: 900px) {
  .no-js .nav-in { height: auto; padding-block: 14px; grid-template-columns: 1fr; gap: 12px; }
  .no-js .nav-tabs { display: block; justify-self: start; }
  .no-js .burger { display: none; }
}

/* the contact card: the Contact button grows into it (assets/site.js) */
.cbox { position: fixed; inset: 0; z-index: 85; }
.cbox[hidden] { display: none; }
.cbox-bg { position: absolute; inset: 0; background: rgba(5, 5, 6, .46); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.cbox-card {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(48px, env(safe-area-inset-right, 0px));
  width: min(376px, calc(100vw - 32px)); overflow: hidden; border-radius: 24px;
  background: #131316; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cbox-in { position: relative; padding: 24px 24px 20px; }
.cbox-x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--fg); display: grid; place-items: center; cursor: pointer;
  transition: background .3s, transform .4s var(--ease);
}
.cbox-x:hover { background: rgba(255, 255, 255, .1); transform: rotate(90deg); }
.cbox-x svg { width: 14px; height: 14px; }
.cbox-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-right: 48px; }
.cbox-live { display: inline-flex; align-items: center; gap: 8px; color: #c9f2d8; }
.cbox-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 132, .7); }
.cbox-h { font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1; letter-spacing: -0.045em; margin-top: 14px; }
.cbox-h em.s { font-size: 1.05em; }
.cbox-say { color: var(--mute); font-size: 14px; margin-top: 10px; max-width: 34ch; }
.cbox-mail {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 9px 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-size: .95rem; font-weight: 500; letter-spacing: -0.02em;
}
.cbox-mail a { overflow-wrap: anywhere; text-decoration: none; }
.cbox-links { margin-top: 6px; }
.cbox-links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; transition: padding .35s var(--ease), color .3s;
}
.cbox-links li:last-child a { border-bottom: 0; }
.cbox-links a:hover { padding-left: 10px; }
.cbox-links b { font-weight: 500; }
.cbox-links span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--mute); }
.cbox-links svg { width: 14px; height: 14px; color: var(--mute); transition: transform .35s var(--ease), color .3s; }
.cbox-links a:hover svg { color: var(--fg); transform: translate(2px, -2px); }
.cbox-note { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
@media (max-width: 900px) {
  .cbox-card { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; border-radius: 26px; }
  .cbox-in { padding: 22px 18px 16px; }
}

/* ---------- page header (every page but home) ---------- */
.page-head { position: relative; padding-block: calc(env(safe-area-inset-top, 0px) + clamp(130px, 16vw, 200px)) clamp(48px, 6vw, 88px); overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(50% 55% at 30% 0%, rgba(198,202,206,.12), transparent 70%);
}
.page-head .wrap { position: relative; }
.page-head .eyebrow { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 22px; }
.page-head .lede { margin-top: 22px; }
.page-head .btns { margin-top: 30px; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--fg); }
.page-head.heron::before { background: radial-gradient(50% 55% at 30% 0%, rgba(253,100,26,.16), transparent 70%); }
.heron-mark { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 26px; box-shadow: 0 18px 40px rgba(253,100,26,.25); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.sec + .sec { padding-top: 0; }
.sec-top { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.sec-soft { background: var(--bg-2); padding-block: clamp(64px, 9vw, 130px); }
.sec-soft + .sec { padding-top: clamp(64px, 9vw, 130px); }

/* rows: a list of things, title on the left and what it is on the right */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; align-items: start;
  padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line);
}
.row-k { display: flex; gap: 16px; align-items: baseline; min-width: 0; }
.row-k .n { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; flex: none; }
.row-k .h3 { min-width: 0; }
.row-v { color: var(--body); min-width: 0; }
.row-v p + p { margin-top: .6em; }
.row-v .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
a.row { transition: color .3s; }
a.row .h3 { transition: transform .5s var(--ease); }
a.row:hover .h3 { transform: translateX(8px); }
a.row .go { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s var(--ease), color .4s, transform .5s var(--ease); }
a.row .go svg { width: 14px; height: 14px; }
a.row:hover .go { background: var(--fg); color: #000; transform: translateY(-50%) rotate(-45deg); }
a.row .row-v { padding-right: 64px; }

/* cards: a grid of things you can open */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 55%, #080809 100%);
  transition: border-color .4s var(--ease), transform .6s var(--ease);
}
.card::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -22%; top: -30%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint, rgba(198,202,206,.5)), transparent); opacity: .18; pointer-events: none;
}
a.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card .idx { font-weight: 600; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: .85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.24); }
.card .h3 { margin-top: auto; }
.card p { color: var(--mute); font-size: 15.5px; }
.card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; color: var(--fg); margin-top: 4px; }
.card .more svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
a.card:hover .more svg { transform: translateX(4px); }
.card.heron { --tint: rgba(253,100,26,.9); }
.card.heron .more { color: var(--heron-light); }
.card img.icon { width: 52px; height: 52px; border-radius: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: #c8c8cd; background: rgba(255,255,255,.03); white-space: nowrap; }
.chip.live { color: #c9f2d8; border-color: rgba(61,220,132,.3); }
.chip.dev { color: #ffd2b8; border-color: rgba(253,100,26,.35); }

/* figures */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nums > * { padding: 30px 24px 0 0; border-right: 1px solid var(--line); min-width: 0; }
.nums > * + * { padding-left: 24px; }
.nums > :last-child { border-right: 0; }
.nums b {
  display: block; font-weight: 600; font-size: clamp(2.5rem, 4.4vw, 4.4rem); line-height: .92; letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 30%, #77777d 110%); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.nums span { display: block; margin-top: 16px; color: var(--mute); font-size: 15px; max-width: 24ch; }
.nums.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note, .numnote { color: var(--mute); font-size: 14px; margin-top: 22px; max-width: 70ch; }

/* timeline */
.tl { border-top: 1px solid var(--line); }
.tl-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 10px 40px; padding: clamp(22px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line); }
.tl-when { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; padding-top: 6px; }
.tl-what .h3 { margin-bottom: 6px; }
.tl-what .where { color: var(--fg); font-size: 15.5px; margin-bottom: 10px; }
.tl-what p { color: var(--body); }
.tl-what .stake { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--fg); }

/* tags: a row of names */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--body); font-size: 14.5px; background: rgba(255,255,255,.02); }

/* facts: plain statements in two columns */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.fact { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fact dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.fact dd { color: var(--fg); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(18px, 2.2vw, 26px) 0; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-4px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .ans { padding: 0 0 24px; color: var(--body); max-width: 70ch; }
.faq .ans p + p { margin-top: .7em; }

/* more: a folded block of detail */
details.more-detail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.more-detail > summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 500; }
details.more-detail > summary::-webkit-details-marker { display: none; }
details.more-detail > summary span { color: var(--mute); font-weight: 400; }
details.more-detail[open] > summary { border-bottom: 1px solid var(--line); }
details.more-detail > .inner { padding: 24px 0 8px; }

/* quote */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; color: var(--fg); }

/* steps: an ordered progression */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.steps li { counter-increment: s; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .08em; margin-bottom: 18px; }
.steps li b { display: block; font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; margin-bottom: 6px; }
.steps li span { color: var(--mute); font-size: 15px; }

/* ---------- footer: one slim line on every page ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 26px calc(env(safe-area-inset-bottom, 0px) + 26px); color: var(--mute); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { text-decoration: none; transition: color .3s; }
.foot a:hover { color: var(--fg); }
.copy { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.08); }

/* the pointer's linked particles (assets/site.js), above the page, under the bar */
.links-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 66; pointer-events: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .nums.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums > :nth-child(2n) { border-right: 0; }
  .nums > :nth-child(2n+1) { padding-left: 0; }
  .row, .tl-item { grid-template-columns: minmax(0, 1fr); }
  a.row .row-v { padding-right: 56px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::after, body::before, .nav, .overlay, .cbox, .links-fx, .copy { display: none !important; }
  .page-head { padding-top: 0; }
  .card, .steps li { background: none; border-color: #ccc; }
  .nums b { color: #000; background: none; -webkit-text-fill-color: #000; }
  .card .idx { color: #999; -webkit-text-fill-color: #999; -webkit-text-stroke: 0; }
  .lede, .prose, .row-v, .tl-what p, .faq .ans, .muted, .eyebrow, .mute { color: #333 !important; }
  details:not([open]) > :not(summary) { display: block; }
  a { text-decoration: underline; }
}
