/* Erika: the site stylesheet. The drawings' motion lives in drawings.css, written beside it.
 *
 * The visual system is distilled from pentagon.run (measured, skills/pentagon/): a near-black
 * ground, one geometric sans for words (DM Sans), 1px rules at 2px radius, no shadows, light
 * primary buttons, outlined secondary ones, and motion that eases in over half a second. Erika
 * keeps its own voice inside it: the typewriter face for typed matter and the navigation, green
 * ink for what is live, violet for carbons, white paper. */

:root {
  /* ground and surfaces */
  --bg: #0b0d10;
  --bg-2: #131518;
  --panel: #15171b;
  --panel-2: #1c1f24;
  --line: #2a2d33;
  --line-2: #3a3e45;
  /* words */
  --hi: #ffffff;
  --text: #d4d9e1;
  --soft: #a4abb5;
  --faint: #7d838c;
  /* ink */
  --green: #4ade80;
  --green-ink: #0b0d10;
  --carbon: #8c93ff;
  --paper: #f8f8f8;
  --ink: #0b0d10;
  --bad: #ff8f80;
  /* faces */
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --type: "Courier Prime", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --nums: "JetBrains Mono", "Courier Prime", ui-monospace, monospace;
  /* measures */
  --radius: 2px;        /* controls: buttons, fields, chips (pentagon measures 2px) */
  --radius-panel: 0px;  /* panels and grids are square */
  --radius-menu: 4px;   /* a menu that opens over the page */
  --gutter: 16px;
  --col: 1180px;
  --top-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip;
}
img, svg, canvas, video { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color 0.18s ease, text-decoration-color 0.18s ease; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 1px solid var(--hi); outline-offset: 3px; }
/* The skip link moves focus to <main>: the page's own first heading shows where, not a frame. */
main[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; color: var(--hi); margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(74, 222, 128, 0.28); color: var(--hi); }
.num { font-family: var(--nums); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.green { color: var(--green); }
.soft { color: var(--soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.16em; }

/* The label voice: small caps of the sans, wide tracked (pentagon's 12/600/1.4px). */
.label, .sec__head h2, .facts dt, .stat__k, .field > span, .seg legend, .detail h3, .ledger th, .logo figcaption, .carbon-card h3 {
  font: 600 12px/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft);
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: var(--radius); font: 600 12px/1.6 var(--sans); }
.skip:focus { top: 10px; }

/* ------------------------------------------------------------------ the chrome */

.top {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(to bottom, rgba(11, 13, 16, 0.96) 0%, rgba(11, 13, 16, 0.88) 70%, rgba(11, 13, 16, 0) 100%);
}
.top__bar {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 22px; min-height: var(--top-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--hi); font: 500 22px/1 var(--sans); letter-spacing: -0.02em; }
.brand__stamp { width: 26px; height: 26px; }
.brand__logo { width: 30px; height: 30px; flex: none; }
.stamp { overflow: visible; }
.stamp__ring { fill: none; stroke: currentColor; stroke-width: 2.4; }
.stamp__ring--in { stroke-width: 1.2; }
.stamp__tick { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stamp__word { fill: currentColor; font: 700 9.5px var(--type); letter-spacing: 0.04em; }
.brand .stamp { color: var(--green); }
.top__net { flex: none; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid rgba(140, 147, 255, 0.55); color: var(--carbon); border-radius: var(--radius); font: 600 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 1023px) { .top__net { display: none; } }

/* Navigation: outlined rectangles, the typewriter face in small capitals. */
.top__nav { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.top__nav a, .top__titles summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px;
  font: 700 12.5px/1 var(--type); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(11, 13, 16, 0.35);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.top__nav a:hover, .top__titles summary:hover { background: var(--panel-2); color: var(--hi); border-color: #4a4f57; }
.top__nav a[aria-current="page"] { color: var(--hi); border-color: var(--hi); }

/* The press on X: a square outlined like the nav beside the action; a row of the menu on a phone. */
.top__x {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(11, 13, 16, 0.35);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.top__x .i { width: 17px; height: 17px; }
.top__x:hover { background: var(--panel-2); color: var(--hi); border-color: #4a4f57; }
.top__nav .top__nav-x { display: none; }

.top__titles { position: relative; flex: none; }
.top__titles summary { cursor: pointer; list-style: none; }
.top__titles summary::-webkit-details-marker { display: none; }
.top__titles[open] summary { color: var(--hi); background: var(--panel-2); }
.top__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; max-height: 60vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-menu); padding: 6px;
  display: grid; gap: 2px;
}
.top__menu a { padding: 10px 12px; border-radius: var(--radius); text-decoration: none; font: 400 14px/1.3 var(--type); color: var(--text); }
/* A closed <details> keeps its content laid out (content-visibility), so its links still report a box
   over the nav; the closed menu takes no box at all. */
.top__titles:not([open]) .top__menu { display: none; }
.top__menu a:hover, .top__menu a[aria-current="page"] { background: var(--panel-2); color: var(--hi); }

/* The primary action: a light block with dark words and an arrow (pentagon's START TODAY). */
.top__cta {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px;
  background: var(--hi); color: var(--ink); text-decoration: none; border-radius: var(--radius);
  font: 600 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.18s ease;
}
.top__cta .i { width: 0.95em; height: 0.95em; }
.top__cta:hover { background: var(--text); }
.top__cta[aria-current="page"] { outline: 1px solid var(--paper); outline-offset: 3px; }

/* The menu button exists only where the pages do not fit in one row: a checkbox and its label, no script. */
.top__toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.top__burger { display: none; }

@media (max-width: 1023px) {
  .top__bar {
    display: grid; grid-template-columns: 1fr auto auto auto; grid-template-areas: "brand titles cta burger" "nav nav nav nav";
    column-gap: 8px; row-gap: 0; min-height: 64px; padding-top: 12px; padding-bottom: 12px;
  }
  .brand { grid-area: brand; }
  .top__titles { grid-area: titles; }
  .top__cta { grid-area: cta; }
  .top__burger {
    grid-area: burger; display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(11, 13, 16, 0.35);
  }
  .top__burger span, .top__burger span::before, .top__burger span::after {
    content: ""; display: block; width: 16px; height: 1.5px; background: var(--hi); transition: transform 0.25s var(--ease), background-color 0.18s ease;
  }
  .top__burger span { position: relative; }
  .top__burger span::before { position: absolute; top: -5px; }
  .top__burger span::after { position: absolute; top: 5px; }
  .top__toggle:checked ~ .top__burger span { background: transparent; }
  .top__toggle:checked ~ .top__burger span::before { transform: translateY(5px) rotate(45deg); }
  .top__toggle:checked ~ .top__burger span::after { transform: translateY(-5px) rotate(-45deg); }
  .top__toggle:focus-visible ~ .top__burger { outline: 1px solid var(--hi); outline-offset: 3px; }
  .top__nav { grid-area: nav; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 0 6px; }
  .top__toggle:checked ~ .top__nav { display: flex; }
  .top__nav a { min-height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 13px; }
  .top__nav a:hover { background: transparent; }
  .top__nav a[aria-current="page"] { border-color: var(--line); color: var(--green); }
  .top__x { display: none; }
  .top__nav .top__nav-x { display: inline-flex; gap: 10px; }
  .top__nav-x .num { font: 400 13px/1 var(--nums); letter-spacing: 0; text-transform: none; color: var(--soft); }
  .top:has(.top__toggle:checked) { background: var(--bg); }
  html { scroll-padding-top: 88px; }
}
@media (max-width: 480px) {
  .brand { font-size: 20px; }
  .top__cta { padding: 0 12px; min-height: 40px; font-size: 12px; gap: 8px; }
  .top__titles summary { padding: 0 10px; min-height: 40px; }
  .top__titles summary span { display: none; }
}

/* ------------------------------------------------------------------ footer */

.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 72px 0 32px; color: var(--soft); font-size: 15px; position: relative; overflow: hidden; }
.foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(64% 70% at 18% 0%, rgba(31, 34, 40, 0.55), transparent 72%);
}
.foot__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.foot__brand p { margin-top: 18px; max-width: 24ch; color: var(--hi); font: 500 clamp(24px, 3vw, 32px)/1.2 var(--sans); letter-spacing: -0.02em; }
.foot__brand .brand { color: var(--hi); }
.foot__social { margin-top: 20px; }
.foot__social a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; color: var(--text); text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--radius); transition: background-color 0.18s ease, color 0.18s ease; }
.foot__social a:hover { background: var(--panel-2); color: var(--hi); }
.foot__social .i { width: 16px; height: 16px; }
.foot__social .num { font: 400 14px/1 var(--nums); }
.foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 32px; align-content: start; }
.foot__nav a { text-decoration: none; color: var(--text); font: 400 15px/1.6 var(--sans); }
.foot__nav a:hover { color: var(--hi); }
.foot__chain { margin: 0; display: grid; gap: 10px; align-content: start; }
.foot__chain div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.foot__chain dt { font: 600 12px/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.foot__chain dd { margin: 0; color: var(--text); }
.foot__rule { position: relative; margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: var(--faint); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; gap: 32px; } .foot { margin-top: 88px; padding-top: 56px; } }

/* ------------------------------------------------------------------ shared pieces */

.ext { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--soft); }
.ext:hover { color: var(--hi); }
.ext .i { width: 0.9em; height: 0.9em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius); text-decoration: none;
  background: transparent; color: var(--text); border: 1px solid var(--line-2);
  font: 600 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--panel-2); color: var(--hi); border-color: #4a4f57; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn[hidden] { display: none; }
/* The primary button, whatever its class says: light block, dark words. */
.btn--green { background: var(--hi); color: var(--ink); border-color: var(--hi); }
.btn--green:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn--small { min-height: 34px; padding: 0 12px; font-size: 11.5px; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius); font: 600 11px/1 var(--nums); letter-spacing: 0.04em; border: 1px solid transparent; }
.tag--gen { color: var(--carbon); border-color: rgba(140, 147, 255, 0.4); }
.tag--dex { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }

.gen-0 { opacity: 1; }
.gen-1 { opacity: 0.82; }
.gen-2 { opacity: 0.64; }
.gen-3 { opacity: 0.46; }
.gen-4 { opacity: 0.28; }

/* The opening drawing of a route: full bleed to the column, the first thing in <main>. */
.opening { margin: 28px 0 8px; }
.opening svg { display: block; width: 100%; height: auto; max-height: 46vh; }

/* A page's title block: pentagon's H1 (56/500, -1.4px), its lede at 18/30.6. */
.lead { margin: 40px 0 48px; max-width: 840px; }
.lead h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.lead p { margin-top: 18px; color: var(--text); max-width: 60ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }
.lead .lead__cta { justify-content: flex-start; margin-top: 28px; }

/* A route's head on a wide screen: its title block beside its drawing, pentagon's two columns, so
   the page's own content starts inside the first screen. The document order stays drawing first. */
@media (min-width: 1024px) {
  main:has(> .lead) { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(40px, 5vw, 88px); align-items: center; }
  main:has(> .lead) > * { grid-column: 1 / -1; min-width: 0; }
  main:has(> .lead) > .opening { grid-column: 2; grid-row: 1; margin: 36px 0 28px; }
  main:has(> .lead) > .lead { grid-column: 1; grid-row: 1; margin: 36px 0 28px; }
  main:has(> .lead) > .opening svg { max-height: 52vh; }
}

.sec { margin-top: 88px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec__head p { color: var(--soft); }

.sync { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); font-size: 12.5px; }
.sync[data-sync="live"] { color: var(--green); }
.sync[data-sync="unreachable"] { color: var(--bad); }
.sync[data-sync="loading"] .i { animation: spin 1.2s linear infinite; }
.i.spin { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px dashed var(--line-2);
  border-radius: var(--radius); background: rgba(21, 23, 27, 0.5); color: var(--soft);
}
.empty__sheet { width: 44px; height: 62px; flex: none; }
.empty__page { fill: none; stroke: var(--line-2); stroke-width: 2; }
.empty__type { stroke: var(--line-2); stroke-width: 3; stroke-linecap: round; }
.empty p { max-width: 52ch; }

.bar { display: block; height: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar__fill { display: block; height: 100%; background: var(--green); }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

.pips { display: inline-flex; gap: 4px; vertical-align: middle; }
.pip { width: 9px; height: 9px; border-radius: 1px; border: 1.5px solid var(--carbon); opacity: 0.5; }
.pip--on { background: var(--carbon); opacity: 1; }

.facts { margin: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(3, minmax(0, max-content)); }
.facts div { display: grid; gap: 3px; }
.facts dd { margin: 0; font-size: 15px; color: var(--hi); }
.facts .span2 { grid-column: span 2; }

.scroller { position: relative; overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--panel); }

/* ------------------------------------------------------------------ home: the scene and its words */

main[data-route="/"] .opening {
  position: relative; margin: 0 calc(50% - 50vw); width: 100vw; overflow: hidden;
  height: min(calc(100svh - var(--top-h)), 56.25vw); min-height: 300px; max-height: 900px;
  background: radial-gradient(70% 60% at 50% 40%, #12151a 0%, var(--bg) 70%);
}
main[data-route="/"] .opening svg { width: 100%; height: 100%; max-height: none; transition: opacity 0.8s var(--ease); }
main[data-route="/"] .opening::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(62% 46% at 0% 100%, rgba(11, 13, 16, 0.88), transparent 82%),
    linear-gradient(to bottom, rgba(11, 13, 16, 0.12), transparent 20%, transparent 70%, var(--bg) 100%);
}
.pressroom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s var(--ease); }
.opening.is-live .pressroom-canvas { opacity: 1; }
.opening.is-live > svg { opacity: 0; }

.hero {
  position: relative; z-index: 2; text-align: center; display: grid; justify-items: center;
  margin: clamp(-360px, -28vw, -150px) auto 0; padding: 0 0 clamp(24px, 4vw, 56px); max-width: 980px;
}
/* The words over the scene sit on a pool of ground, as pentagon sets every line it lays on its
   point cloud: the scene stays whole and every letter stays legible. */
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -18%; bottom: -6%; left: 50%; width: min(128%, 100vw); transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 13, 16, 0.86), rgba(11, 13, 16, 0.62) 52%, rgba(11, 13, 16, 0) 100%);
}
.hero h1 { font-size: clamp(36px, 4.9vw, 56px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.hero__line { margin-top: 18px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; color: var(--text); max-width: 46ch; text-wrap: balance; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero h1, .hero__line, .hero__cta { animation: rise 0.9s var(--ease) both; }
.hero__line { animation-delay: 0.12s; }
.hero__cta { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 719px) {
  main[data-route="/"] .opening { height: 74vw; min-height: 0; }
  .hero { margin-top: -28px; }
}

/* The statement: one paragraph, its first sentence white, the rest lighting word by word as it
   scrolls into view (CSS scroll timelines where the browser has them; fully lit where not). */
.statement { margin: clamp(96px, 12vw, 180px) 0 clamp(72px, 10vw, 140px); }
.statement p { max-width: 30ch; font: 500 clamp(26px, 3.2vw, 40px)/1.32 var(--sans); letter-spacing: -0.02em; color: var(--hi); }
.statement p .w--soft { color: var(--text); }
@supports (animation-timeline: view()) {
  .statement p .w--soft { animation: lit linear both; animation-timeline: view(); animation-range: entry 30% cover 42%; }
}
@keyframes lit { from { color: #3c4148; } to { color: var(--text); } }
@media (min-width: 900px) { .statement { padding-left: 8.5%; } }

/* The journey (pressroom.js, only with WebGL and motion): the opening, the hero words and the
   statement in one sticky stage inside a tall track, the scroll over the track playing the walk
   to the platen. At its start the stage is the static page exactly: the opening, then the hero
   on it. The script keeps its values in a constructed stylesheet: --journey-top and --hero-top
   (where the stage sticks, where the hero stood), --out (the hero leaving), --says (the
   statement's presence) and --reveal, which writes each word as it passes, a word and a half of
   soft edge (pentagon's statement); --i is each word's place. */
.journey { position: relative; height: 260vh; }
.journey__stage { position: sticky; top: var(--journey-top, var(--top-h)); height: calc(100svh - var(--journey-top, var(--top-h))); }
.journey .hero { opacity: calc(1 - var(--out, 0)); transform: translateY(calc(var(--out, 0) * -46px)); will-change: opacity, transform; }
.journey.is-past .hero { pointer-events: none; }
.journey.is-gone .hero__cta { visibility: hidden; }
.journey .statement {
  position: absolute; z-index: 2; left: 0; right: 0; top: var(--hero-top, 50%); margin: 0 auto; padding: 0 var(--gutter);
  width: min(100%, 980px); display: grid; justify-items: center; opacity: var(--says, 0); pointer-events: none;
}
.journey .statement p { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 30px rgba(0, 0, 0, 0.95); }
/* The statement's pool of ground spans its own box, the column, so it never widens the page. */
.journey .statement::before {
  content: ""; position: absolute; z-index: -1; inset: -16% 0 -12%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 13, 16, 0.86), rgba(11, 13, 16, 0.62) 52%, rgba(11, 13, 16, 0) 100%);
}
.journey .statement p .w { opacity: clamp(0, calc((var(--reveal, 0) * (var(--n, 1) + 0.5) - var(--i, 0)) / 1.5), 1); animation: none; }
@media (max-width: 719px) {
  .journey { height: 180vh; }
}

/* A chapter: the words on the left, the interface they describe on the right. */
.chapter { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 110px); align-items: center; margin: clamp(88px, 11vw, 168px) 0; }
.chapter__copy h2 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.chapter__copy p { margin-top: 22px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--text); max-width: 46ch; }
.chapter__copy .label { display: block; margin-bottom: 18px; }
.chapter__more { margin-top: 28px; }
.chapter__ui { position: relative; min-width: 0; }
@media (min-width: 900px) {
  .chapter { padding-left: 8.5%; }
  .chapter--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); padding-left: 0; padding-right: 8.5%; }
  .chapter--flip .chapter__copy { order: 2; }
}
@media (max-width: 899px) { .chapter { grid-template-columns: minmax(0, 1fr); } }

/* Interfaces inside the chapters. */
.ui { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); font-size: 14px; overflow: hidden; }
.ui__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #1a1d22; }
.ui__bar b { color: var(--hi); font-weight: 500; font-size: 14px; }
.ui__bar small { display: block; color: var(--soft); font-size: 11.5px; margin-top: 1px; }
.ui__bar .i { color: var(--soft); }
.ui__sub { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 12px; }
.ui__body { padding: 20px 22px 24px; display: grid; gap: 16px; }
.ui__row { display: flex; align-items: flex-start; gap: 12px; }
.ui__row .i { color: var(--soft); margin-top: 2px; }
.ui__row b { display: block; color: var(--hi); font-weight: 500; }
.ui__row span { color: var(--soft); font-size: 13px; }
.ui__chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); background: var(--green); color: var(--ink); font: 700 11px/1 var(--type); flex: none; }
.ui__chip--carbon { background: var(--carbon); }
.ui__check { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; }
.ui__check::after { content: ""; width: 7px; height: 4px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg) translate(1px, -1px); }
.ui__foot { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 12px; }
.ui__type { font: 400 15px/1.55 var(--type); color: var(--ink); background: var(--paper); padding: 18px 20px; }
.ui__type b { font-weight: 700; }
.ui__pair { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ui__qr { display: grid; gap: 8px; padding: 10px; border: 1px solid rgba(140, 147, 255, 0.45); border-radius: var(--radius-panel); background: rgba(140, 147, 255, 0.06); }
.ui__qr svg { display: block; width: 100%; height: auto; }
.ui__qr span { font: 600 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--carbon); }
.ui__stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.ui__stat div { background: var(--panel); padding: 16px 18px; display: grid; gap: 4px; }
.ui__stat b { color: var(--hi); font: 500 22px/1.15 var(--nums); }
.ui__stat span { font: 600 11px/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 520px) { .ui__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ui .numbers { border: 0; border-radius: 0; }

/* Interfaces arrive in order as they scroll into view, and are complete without a timeline. */
@supports (animation-timeline: view()) {
  .reveal { animation: arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .reveal--1 { animation-range: entry 20% cover 30%; }
  .reveal--2 { animation-range: entry 40% cover 34%; }
  .reveal--3 { animation-range: entry 60% cover 38%; }
  .reveal--4 { animation-range: entry 80% cover 42%; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The closing line, pentagon's "There's so much left to build." */
.closing { margin: clamp(120px, 14vw, 200px) 0 0; text-align: center; display: grid; justify-items: center; }
.closing h2 { font-size: clamp(36px, 4.9vw, 56px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.closing p { margin-top: 16px; color: var(--text); font-size: clamp(16px, 1.4vw, 18px); }
.closing .hero__cta { animation: none; }

/* ------------------------------------------------------------------ home: numbers and copies */

.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.stat { display: grid; gap: 6px; align-content: start; padding: 22px 22px 18px; background: var(--panel); min-width: 0; }
.stat__v { font: 500 clamp(24px, 3.4vw, 38px)/1.08 var(--nums); color: var(--hi); overflow-wrap: anywhere; letter-spacing: -0.01em; }
.ui .stat__v { font-size: clamp(24px, 2.4vw, 34px); overflow-wrap: normal; white-space: nowrap; }
.stat--green .stat__v { color: var(--green); }
@media (max-width: 560px) { .numbers { grid-template-columns: minmax(0, 1fr); } }

.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; padding: 1px; }
.coin { position: relative; background: var(--panel); outline: 1px solid var(--line); transition: background-color 0.18s ease; }
/* On a phone the front shows the six newest; the ledger lists every copy. */
@media (max-width: 700px) { main[data-route="/"] .coins > .coin:nth-child(n + 7) { display: none; } }
.sec__more { margin-top: 20px; }
.coin:hover { background: var(--panel-2); }
.coin.gen-1, .coin.gen-2, .coin.gen-3, .coin.gen-4 { opacity: 1; }
.coin__main { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 18px 18px 12px; text-decoration: none; }
.coin__thumb { display: block; }
.coin__thumb .pg { width: 78px; height: auto; display: block; }
.coin__body { display: grid; gap: 6px; min-width: 0; align-content: start; }
.coin__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coin__sym { font: 500 18px/1.2 var(--sans); color: var(--hi); overflow-wrap: anywhere; }
.coin__name { color: var(--soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.coin__row .k { color: var(--soft); text-transform: uppercase; letter-spacing: 0.1em; font: 600 10.5px/1.5 var(--sans); }
.coin__mc .num { font-size: 15px; color: var(--hi); }
.coin__of { color: var(--soft); font-size: 12px; }
.coin__links { display: flex; justify-content: flex-end; gap: 14px; padding: 0 18px 14px; font-size: 12.5px; }
@media (max-width: 420px) { .coins { grid-template-columns: 1fr; } }

/* the miniature page */
.pg__sheet { fill: var(--paper); }
.pg__line { fill: var(--ink); opacity: 0.72; }
.pg__carbon { fill: rgba(140, 147, 255, 0.1); stroke: var(--carbon); stroke-width: 1.5; }
.pg__type { fill: var(--ink); font: 700 15px var(--type); }
.pg__stamp { fill: none; stroke: #1d9a4c; stroke-width: 2.6; stroke-linecap: round; }

/* ------------------------------------------------------------------ catalog */

.titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.title { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 22px; padding: 24px; background: var(--panel); }
.title__stack { width: 82px; height: auto; }
.st__under { fill: rgba(140, 147, 255, 0.12); stroke: var(--carbon); stroke-width: 1.2; }
.st__top { fill: var(--paper); }
.st__type { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.title h3 { font: 700 22px/1.2 var(--type); text-transform: uppercase; letter-spacing: 0.06em; overflow-wrap: anywhere; color: var(--hi); }
.title__by { color: var(--soft); margin: 4px 0 14px; }
.title__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* A wide row reads left to right: the title, its numbers, where to go. */
@media (min-width: 1024px) {
  .title { align-items: center; padding: 22px 28px; }
  .title__body { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name facts go" "by facts go"; column-gap: clamp(28px, 4vw, 64px); align-items: center; }
  .title__body > h3 { grid-area: name; }
  .title__body > .title__by { grid-area: by; margin: 6px 0 0; }
  .title__body > .facts { grid-area: facts; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; gap: 0 32px; }
  .title__body > .title__go { grid-area: go; margin: 0; justify-content: flex-end; }
}
@media (max-width: 420px) { .title .facts { grid-template-columns: repeat(2, minmax(0, max-content)); } .title { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px; } .title__stack { width: 56px; } }
.title__go a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font: 600 11.5px/1 var(--sans); border: 1px solid var(--line-2); border-radius: var(--radius); transition: background-color 0.18s ease, color 0.18s ease; }
.title__go a:hover { background: var(--panel-2); color: var(--hi); }
.go-green { color: var(--green); }
.title__go a.go-green { border-color: rgba(74, 222, 128, 0.45); }

/* ------------------------------------------------------------------ read */

.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.sheet { display: grid; gap: 6px; padding: 22px 22px 26px; background: var(--paper); color: var(--ink); border-radius: var(--radius); text-decoration: none; box-shadow: 6px 6px 0 rgba(140, 147, 255, 0.3); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.sheet__slug { font: 700 18px/1.2 var(--type); text-transform: uppercase; letter-spacing: 0.06em; }
.sheet__by { font: 400 13px/1.4 var(--type); color: #3c4048; }
.sheet__lines { display: grid; gap: 2px; margin-top: 10px; font: 400 13px/1.5 var(--type); color: #2a2d33; }
.sheet:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(140, 147, 255, 0.45); }

.reader { margin-top: 8px; }
.typed { margin: 8px 0 0; }
.typed__head h1 { font: 700 clamp(30px, 5vw, 50px)/1.1 var(--type); text-transform: uppercase; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.typed__meta { margin-top: 12px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.typed__meta .verified { color: var(--green); display: inline-flex; gap: 6px; align-items: center; }
.typed__text {
  margin-top: 28px; background: var(--paper); color: var(--ink); border-radius: var(--radius); max-width: 74ch;
  padding: clamp(20px, 5vw, 64px); font: 400 16px/1.75 var(--type);
  box-shadow: 7px 7px 0 rgba(140, 147, 255, 0.4), 14px 14px 0 rgba(140, 147, 255, 0.18);
}
.typed__text p + p { margin-top: 1em; }
.typed__text h2 { font: 700 18px/1.3 var(--type); text-transform: uppercase; letter-spacing: 0.08em; margin: 1.4em 0 0.6em; color: var(--ink); }
.typed__text h2:first-child { margin-top: 0; }
.typed__text blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--ink); }
.typed__text u { text-decoration-thickness: 1px; }
.typed__end { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.typed__end .stamp { width: 64px; height: 64px; color: var(--green); }

/* ------------------------------------------------------------------ tree */

.explorer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.explorer__pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.explorer__pick a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 700 12.5px/1 var(--type); text-transform: uppercase; letter-spacing: 0.08em; transition: background-color 0.18s ease; }
.explorer__pick a:hover { background: var(--panel-2); }
.explorer__pick a[aria-current="true"] { border-color: var(--hi); color: var(--hi); }
.explorer__map { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 12px; }
.explorer__card { display: grid; gap: 12px; }
@media (max-width: 860px) { .explorer { grid-template-columns: 1fr; } }
.tree { display: block; width: 100%; height: auto; max-height: 72vh; }
.tree__ring { fill: none; stroke: var(--carbon); stroke-opacity: 0.32; stroke-dasharray: 2 6; }
.tree__edge { stroke: var(--carbon); stroke-width: 1.5; stroke-opacity: 0.65; }
.tree__dot { fill: var(--paper); stroke: var(--carbon); stroke-width: 2.5; transition: fill 0.18s ease; }
.tree__node:hover .tree__dot, .tree__node:focus-visible .tree__dot { fill: var(--green); }
.tree__node.is-sel .tree__dot { fill: var(--green); stroke: var(--green); }
.tree__node.gen-1, .tree__node.gen-2, .tree__node.gen-3, .tree__node.gen-4 { opacity: 1; }
.tree__node.gen-1 .tree__dot { fill-opacity: 0.82; }
.tree__node.gen-2 .tree__dot { fill-opacity: 0.64; }
.tree__node.gen-3 .tree__dot { fill-opacity: 0.46; }
.tree__node.gen-4 .tree__dot { fill-opacity: 0.28; }
.tree__label { fill: var(--text); font: 600 13px var(--nums); }
.tree__ghost { fill: none; stroke: var(--carbon); stroke-dasharray: 2 3; stroke-opacity: 0.7; }
.tree__title { fill: var(--paper); }
.tree__type { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.tree__name { fill: var(--soft); font: 700 15px var(--type); letter-spacing: 0.1em; text-transform: uppercase; }
.detail { display: grid; gap: 10px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.detail h3 { margin-top: 6px; }
.lineage { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lineage li { display: inline-flex; align-items: center; gap: 6px; }
.lineage li + li::before { content: ">"; color: var(--carbon); }
.lineage li.gen-1, .lineage li.gen-2, .lineage li.gen-3, .lineage li.gen-4 { opacity: 1; }
.kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.loose { display: grid; justify-items: center; gap: 14px; padding: 28px 16px; text-align: center; color: var(--soft); }
.loose .pg { width: 120px; height: auto; display: block; }
.loose p { max-width: 38ch; }

/* ------------------------------------------------------------------ writers */

.pens { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pen { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); display: grid; gap: 18px; }
.pen__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pen__head h3 { font: 700 24px/1.2 var(--type); letter-spacing: 0.08em; text-transform: uppercase; overflow-wrap: anywhere; color: var(--hi); }
.pen__k { color: var(--green); font: 600 12px/1.6 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.seats { display: flex; flex-wrap: wrap; gap: 6px; }
.seat { width: 14px; height: 20px; border-radius: 7px 7px 2px 2px; background: var(--line-2); position: relative; margin-top: 9px; }
.seat::before { content: ""; position: absolute; left: 3px; top: -9px; width: 8px; height: 8px; border-radius: 50%; background: inherit; }
.seat--on { background: var(--text); }
.facts--pen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* One pen name (the usual press) takes the row, its facts in four columns. */
@media (min-width: 900px) {
  .pens:has(> .pen:only-child) { grid-template-columns: minmax(0, 1fr); }
  .pen:only-child .facts--pen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 32px; }
}

/* ------------------------------------------------------------------ ledger */

.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
@media (max-width: 900px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rates { grid-template-columns: repeat(4, minmax(0, max-content)); gap: 10px 32px; margin: 0 0 22px; padding: 0 2px; }
@media (max-width: 700px) { .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cap { color: var(--soft); font-size: 13px; margin-bottom: 12px; }
/* The ledger's flow, in the press room's points: each sum a wash with an edge of points. */
.flow { display: block; width: 100%; height: auto; max-height: 300px; padding: 20px 24px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.flow rect { stroke-width: 2.4; stroke-dasharray: 0 5.6; stroke-linecap: round; }
.flow__in { fill: rgba(74, 222, 128, 0.16); stroke: var(--green); }
.flow__held { fill: rgba(242, 244, 247, 0.08); stroke: var(--paper); }
.flow__out { fill: rgba(140, 147, 255, 0.16); stroke: var(--carbon); }
.flow__out--b { fill: rgba(140, 147, 255, 0.08); stroke-opacity: 0.7; }
.flow__rule { stroke: var(--soft); stroke-opacity: 0.5; stroke-width: 2; stroke-dasharray: 0 6; stroke-linecap: round; fill: none; }
.flow__k { fill: var(--soft); font: 600 9px var(--sans); letter-spacing: 0.14em; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.ledger th, .ledger td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ledger td a { text-decoration: none; color: var(--hi); }
.ledger .r { text-align: right; }
.ledger tbody tr { transition: background-color 0.18s ease; }
.ledger tbody tr:hover { background: var(--panel-2); }
.ledger tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ how */

.diagrams { display: grid; gap: clamp(72px, 9vw, 140px); margin-top: 24px; }
.diagram { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.diagram__copy { display: grid; gap: 18px; align-content: center; }
.diagram:nth-child(even) .diagram__copy { order: 2; }
.diagram h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.diagram p { color: var(--text); max-width: 46ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }
.diagram__art { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 10px; min-width: 0; }
.diagram__art svg { display: block; width: 100%; height: auto; max-height: 52vh; }
@media (max-width: 899px) { .diagram { grid-template-columns: minmax(0, 1fr); } .diagram:nth-child(even) .diagram__copy { order: 0; } }

/* ------------------------------------------------------------------ retype */

.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); display: grid; gap: 18px; min-width: 0; }
.step h2 { display: flex; align-items: center; gap: 14px; font: 500 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.step__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); color: var(--hi); font: 600 13px var(--nums); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { width: 100%; margin-bottom: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; transition: background-color 0.18s ease, border-color 0.18s ease; }
.seg label:hover span { background: var(--panel-2); }
.seg input:checked + span { border-color: var(--hi); color: var(--hi); background: var(--panel-2); }
.seg input:focus-visible + span { outline: 1px solid var(--hi); outline-offset: 3px; }
.pick { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.pick[hidden] { display: none; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pick-title { position: relative; display: block; }
.pick-title input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-title > span { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); transition: background-color 0.18s ease, border-color 0.18s ease; }
.pick-title:hover > span { background: var(--panel-2); }
.pick-title b { font: 700 15px/1.2 var(--type); text-transform: uppercase; letter-spacing: 0.06em; color: var(--hi); }
.pick-title small { color: var(--soft); }
.pick-title input:checked + span { border-color: var(--hi); background: var(--panel-2); }
.pick-title input:focus-visible + span { outline: 1px solid var(--hi); outline-offset: 3px; }
.field { display: grid; gap: 8px; min-width: 0; }
.input {
  width: 100%; min-height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius); font: 400 15px var(--sans); color: var(--hi); transition: border-color 0.18s ease;
}
.input:focus { outline: none; border-color: var(--hi); }
.input--code { font-family: var(--nums); font-size: 13px; letter-spacing: 0.02em; }
.code-in { display: flex; flex-wrap: wrap; gap: 8px; }
.code-in .input { flex: 1 1 260px; }
.filebtn input { display: none; }
.scan-video { width: 100%; max-width: 360px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #000; }
.scan-video[hidden] { display: none; }
.copy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; }
.fields { display: grid; gap: 16px; min-width: 0; }
.fields .two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.logo { margin: 0; display: grid; gap: 8px; justify-items: center; }
.logo canvas { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); }
@media (max-width: 620px) {
  .copy-grid { grid-template-columns: 1fr; }
  .logo canvas { max-width: 180px; }
}
.parent { display: grid; gap: 8px; }
.note { display: flex; align-items: flex-start; gap: 8px; color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.note[hidden] { display: none; }
.note .i { margin-top: 0.2em; }
.note--bad { color: var(--bad); }
.note a { color: inherit; text-decoration-color: currentColor; white-space: nowrap; }
.note b { color: var(--hi); }
.parent__card {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2); color: var(--soft); font-size: 14px;
}
.parent__card > span:first-child { flex-basis: 100%; color: var(--hi); }
.parent__card b { font-size: 17px; margin-right: 4px; }
.parent__card .num { color: var(--hi); }
.recover { border-top: 1px solid var(--line); padding-top: 14px; }
.recover summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--soft);
  font: 600 12px/1.6 var(--sans); text-transform: uppercase; letter-spacing: 0.1em; min-height: 32px;
}
.recover summary::-webkit-details-marker { display: none; }
.recover summary:hover, .recover[open] summary { color: var(--hi); }
.recover p { margin: 8px 0 12px; color: var(--soft); font-size: 14px; max-width: 62ch; }
.wallet-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--soft); }
.wallet-line .num { color: var(--hi); }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.progress li { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 14px; }
.progress li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.progress li[data-state="active"] { color: var(--hi); }
.progress li[data-state="active"]::before { border-color: var(--hi); border-right-color: transparent; animation: spin 0.9s linear infinite; }
.progress li[data-state="done"] { color: var(--hi); }
.progress li[data-state="done"]::before { background: var(--green); border-color: var(--green); }
.progress li[data-state="failed"] { color: var(--bad); }
.progress li[data-state="failed"]::before { background: var(--bad); border-color: var(--bad); }
.progress .num { margin-left: auto; color: var(--soft); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status { min-height: 1.5em; color: var(--soft); overflow-wrap: anywhere; }
.status[data-tone="bad"] { color: var(--bad); }
.status[data-tone="good"] { color: var(--green); }
.status a { color: inherit; }

.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cards4 { grid-template-columns: 1fr; } }
.carbon-card {
  display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); min-width: 0;
  background: rgba(140, 147, 255, 0.06); border: 1px solid rgba(140, 147, 255, 0.42);
}
.carbon-card h3 { color: var(--carbon); }
.carbon-card .qr { background: var(--paper); border-radius: var(--radius); padding: 8px; width: 100%; max-width: 200px; justify-self: center; }
.carbon-card .qr svg { display: block; width: 100%; height: auto; color: var(--ink); }
.carbon-card code { font: 400 12px/1.5 var(--nums); overflow-wrap: anywhere; word-break: break-all; color: var(--hi); }
.carbon-card--blank .qr { background: transparent; border: 1px dashed rgba(140, 147, 255, 0.5); aspect-ratio: 1; }
.carbon-card--pending { border-style: dashed; }
.carbons-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.carbons-head h3 { font: 500 22px/1.2 var(--sans); letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }

.wallets { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 22px; width: min(420px, calc(100vw - 32px)); }
.wallets::backdrop { background: rgba(0, 0, 0, 0.66); }
.wallets h2 { font: 500 18px/1.2 var(--sans); margin-bottom: 14px; }
.wallets ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.wallets li button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; text-align: left; transition: background-color 0.18s ease; }
.wallets li button:hover { background: var(--panel-2); }
.wallets li img { width: 28px; height: 28px; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  .coin, .btn, .tree__dot, .sheet, a { transition: none; }
  .sheet:hover { transform: none; }
  .hero h1, .hero__line, .hero__cta, .reveal, .statement p .w--soft { animation: none !important; }
  .sync[data-sync="loading"] .i, .progress li[data-state="active"]::before, .i.spin { animation: none; }
  .pressroom-canvas { transition: none; }
}

@media print {
  .top, .foot, .opening, .lead, .step:not([data-step="carbons"]), .skip, .actions, .carbons-head .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .step { border: 0; background: none; }
  .carbon-card { break-inside: avoid; border-color: #000; background: none; }
  .carbon-card code, .carbon-card h3 { color: #000; }
}

/* A title's own opening (generated per title by scripts/build.mjs): the sheet rises out of the
   platen, then its lines are typed one by one. The still frame is the finished sheet. */
.tp text { font-family: var(--font-type, "Courier Prime"), "Courier New", Courier, monospace; }
.tp__platen { fill: #15171b; stroke: #2a2d33; stroke-width: 2; }
.tp__knob { fill: #2a2d33; }
.tp__paper { fill: #f8f8f8; }
.tp__head { fill: #0b0d10; font-size: 34px; font-weight: 700; }
.tp__rule { fill: #0b0d10; }
.tp__line { fill: #0b0d10; font-size: 21px; }
.tp__ring { fill: none; stroke: #1d9a4c; stroke-width: 5; }
.tp__ring--in { stroke-width: 2.5; }
.tp__word { fill: #1d9a4c; font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.tp__sheet { animation: tp--rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.tp__line { animation: tp--type .55s steps(22, end) both; }
.tp__line--1 { animation-delay: 1.0s; } .tp__line--2 { animation-delay: 1.5s; } .tp__line--3 { animation-delay: 2.0s; }
.tp__line--4 { animation-delay: 2.5s; } .tp__line--5 { animation-delay: 3.0s; } .tp__line--6 { animation-delay: 3.5s; }
.tp__stamp { animation: tp--stamp 4.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tp--rise { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tp--type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tp--stamp { 0%, 80%, 100% { opacity: 1; } 88% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .tp__sheet, .tp__line, .tp__stamp { animation: none; } }

/* round-2 fixes */
/* A chain string never reorders the words around it (a ticker ending in U+202E, say). */
[data-chain] { unicode-bidi: isolate; }
/* Long chain strings shrink and wrap instead of widening the page. */
.lineage li, .kids li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.lineage a, .kids a { min-width: 0; overflow-wrap: anywhere; }
.explorer__map, .explorer__card, .detail { min-width: 0; }
@media (max-width: 860px) { .explorer { grid-template-columns: minmax(0, 1fr); } }
.parent__card > span { min-width: 0; overflow-wrap: anywhere; }
/* /retype: the first two steps are locked while a flow runs or a coin waits for its registration. */
.step__lock { display: grid; gap: inherit; min-width: 0; margin: 0; padding: 0; border: 0; }
.step__lock:disabled { opacity: 0.55; }
.step__lock:disabled input, .step__lock:disabled label, .step__lock:disabled .btn { cursor: not-allowed; }
.carbons-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.carbon-card--void { opacity: 0.62; border-style: dashed; background: none; }
.carbon-card--void s { text-decoration-thickness: 1.5px; }
.coin-line { display: grid; gap: 8px; }
.coin-line[hidden] { display: none; }
.coin-line__addr { overflow-wrap: anywhere; word-break: break-all; color: var(--hi); }
/* /tree: labels at the size the tree sets (views.mjs treeSvg), each on a halo of the map. At rest
   only the ones placed clear of every other label and dot show; the rest while hovered or focused. */
.tree .tree__label { font-size: inherit; visibility: hidden; paint-order: stroke; stroke: var(--panel); stroke-width: 0.3em; stroke-linejoin: round; }
.tree .tree__label.is-on, .tree__node:hover .tree__label, .tree__node:focus-visible .tree__label { visibility: visible; }
.tree .tree__name { font-size: inherit; }
.tree__node.is-near .tree__dot { stroke: var(--green); }
