/* self-hosted ibm plex mono (latin + arrows U+2190–2199, 300/400/500) — sil open font license, see fonts/OFL.txt.
   subset from the official @ibm/plex-mono 2.5.0 woff2 files; a new subset gets a new file name (fonts are cached as immutable). */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-300-normal.v2.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.v2.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.v2.woff2") format("woff2");
}

/* ==========================================================================
   rill — ink on paper
   one typeface (ibm plex mono), 1px lines, one accent.
   ========================================================================== */

:root {
  --paper: #ffffff;   /* pure white everywhere; there is no dark mode */
  --ink: #111111;
  --ink-2: #6b6b6b;
  --ink-3: #9a9a97;   /* decorative only (separators, ticks, dashed guides); text uses --ink-2 */
  --hair: #d9d9d6;
  --accent: #c4531d;
  --accent-soft: rgba(196, 83, 29, 0.1);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 40px;
  --maxw: 1680px;
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-xs: 10.5px;
  --t-sm: 12px;
  --t-md: 14px;
  --t-lg: 17px;
  color-scheme: light;
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-h: 54px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--paper); }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -40px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 6px 10px; font-size: var(--t-sm);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--accent); }
.muted { color: var(--ink-2); }

/* ---------- primitives ---------- */
.circ {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.2px solid var(--ink); background: var(--paper);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.circ--sm { width: 30px; height: 30px; font-size: 11px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 13px; letter-spacing: 0.06em; line-height: 1; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn[aria-disabled="true"] { color: var(--ink-2); border-color: var(--hair); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--paper); color: var(--ink-2); }
.btn .soon { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.btn:hover .soon { color: inherit; }

.link-btn {
  color: var(--ink); font-size: inherit; letter-spacing: inherit;
  border-bottom: 1px solid transparent; transition: border-color .15s, color .15s;
}
.link-btn:hover { border-bottom-color: currentColor; }

.arrow-link { display: inline-flex; gap: 8px; align-items: baseline; font-size: 13px; letter-spacing: .06em; }
.arrow-link span { transition: transform .25s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

.tag {
  display: inline-block; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.tag--accent { color: var(--accent); }

.fineprint { margin-top: 20px; font-size: 11.5px; color: var(--ink-2); letter-spacing: .04em; }
.fineprint a { border-bottom: 1px solid var(--hair); }
.fineprint a:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hair); }
.nav__inner {
  height: var(--nav-h); max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; }
.logo__mark { width: 34px; height: 22px; }
.logo__mark path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.logo__word { font-size: 15px; letter-spacing: .08em; font-weight: 500; }
.logo:hover .logo__mark path:nth-child(2) { stroke: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 18px; font-size: 13.5px; letter-spacing: .06em; }
.nav__links a { position: relative; padding: 4px 0; color: var(--ink); transition: color .15s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__sep { color: var(--ink-3); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
#connect-wallet { gap: 8px; }
#connect-wallet .btn__dot {
  width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; flex: none;
}
#connect-wallet.is-connected .btn__dot { background: var(--accent); border-color: var(--accent); }
#connect-wallet.is-connected { font-variant-numeric: tabular-nums; }
#connect-wallet[aria-busy="true"] { opacity: .6; cursor: progress; }

.nav__toggle { display: none; width: 38px; height: 32px; border: 1px solid var(--ink); position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle span:first-child { top: 12px; }
.nav__toggle span:last-child { top: 18px; }
.nav.is-open .nav__toggle span:first-child { top: 15px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 15px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__inner { gap: 10px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    padding: 8px var(--gutter) 16px;
    font-size: 18px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__sep { display: none; }
  .nav.is-open { border-bottom-color: var(--hair); }
}
@media (max-width: 400px) {
  .logo { gap: 10px; }
  .logo__mark { width: 28px; }
  #connect-wallet { padding: 0 10px; font-size: 11.5px; }
}

/* ==========================================================================
   atlas (hero)
   ========================================================================== */
.atlas {
  /* the page gutter, also when the content column is capped at --maxw */
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  position: relative;
  height: min(78vh, 760px);
  min-height: 460px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}
#atlas-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
#atlas-canvas:active { cursor: grabbing; }
#atlas-canvas:focus { outline: none; }
/* inset: .atlas clips its overflow */
#atlas-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.atlas__head {
  position: absolute; left: 0; right: 0; top: 6px; z-index: 2;
  text-align: center; pointer-events: none; padding-inline: var(--gutter);
}
.atlas h1 {
  display: inline-block;
  font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; letter-spacing: .14em;
  background: var(--paper); padding: 2px 10px;
}

.atlas__zoom {
  position: absolute; left: var(--edge); bottom: 32px; z-index: 3;
  display: flex; background: var(--paper);
}
.atlas__zoom button {
  width: 36px; height: 34px; border: 1px solid var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1; transition: background-color .15s, color .15s;
}
.atlas__zoom button + button { border-left: 0; }
.atlas__zoom button:hover { background: var(--ink); color: var(--paper); }

.atlas__add { position: absolute; right: var(--edge); bottom: 32px; z-index: 3; min-height: 34px; }
.atlas__add span { font-size: 16px; margin-right: 2px; }

.atlas__ticker {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 10px; align-items: center; white-space: nowrap;
  font-size: var(--t-xs); letter-spacing: .12em; color: var(--ink-2); text-transform: uppercase;
  background: var(--paper); padding: 2px 8px; pointer-events: none;
}
.atlas__ticker span:first-child { color: var(--ink); }
.atlas__ticker i { font-style: normal; color: var(--ink-3); }

/* detail panel */
.detail {
  position: absolute; z-index: 4; top: 104px; right: var(--edge);
  width: 300px; max-width: calc(100% - 2 * var(--gutter));
  background: var(--paper); border: 1px solid var(--ink);
  padding: 16px 18px 16px;
  animation: panel-in .28s var(--ease);
}
.detail::before { /* hairline accent tick, top-left */
  content: ""; position: absolute; left: -1px; top: -1px; width: 28px; height: 2px; background: var(--accent);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.detail__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.detail__kicker { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.detail__close {
  width: 26px; height: 26px; display: grid; place-items: center; font-size: 17px; line-height: 1;
  border: 1px solid transparent; color: var(--ink-2); transition: border-color .15s, color .15s;
}
.detail__close:hover { border-color: var(--ink); color: var(--ink); }
.detail__title { font-size: 17px; line-height: 1.35; color: var(--accent); letter-spacing: .04em; word-break: break-word; }
.detail__meta { margin-top: 4px; font-size: var(--t-sm); color: var(--ink-2); letter-spacing: .06em; }
.detail__note {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair);
  font-size: 12.5px; line-height: 1.65; color: var(--ink); max-height: 9.5em; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
.detail__note:empty { display: none; }
.detail__actions {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; letter-spacing: .06em;
}
.detail__open { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.detail__open:hover { color: var(--accent); border-color: var(--accent); }
.detail__actions .link-btn { color: var(--ink-2); }
.detail__actions .link-btn:hover { color: var(--ink); }

@media (max-width: 720px) {
  /* the plate is ~0.62vw tall here: leave room for the title, ticker and
     controls without a band of empty paper that swallows swipes */
  .atlas { height: 70vh; height: min(70svh, max(420px, calc(62vw + 180px))); min-height: 0; }
  .atlas h1 { font-size: 15px; letter-spacing: .1em; }
  .atlas__zoom { left: var(--gutter); bottom: 16px; }
  .atlas__add { right: var(--gutter); bottom: 16px; }
  .atlas__ticker { bottom: auto; top: 38px; font-size: 9.5px; gap: 6px; }
  .detail {
    top: auto; right: var(--gutter); left: var(--gutter); bottom: 62px;
    width: auto; max-width: none; padding: 14px 14px;
  }
  .detail__note { max-height: 5.5em; }
}

/* desktop: the map runs up under a transparent nav, as in the sketch */
@media (min-width: 721px) and (min-height: 501px) {
  .nav { background: transparent; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
  .nav.is-scrolled, .nav.is-open { background: var(--paper); }
  .atlas { margin-top: calc(-1 * var(--nav-h) - 1px); }
  .atlas__head { top: calc(var(--nav-h) - 12px); }
}
/* phones in landscape: always leave a strip of page to scroll by */
@media (orientation: landscape) and (max-height: 500px) {
  .atlas { min-height: 0; height: calc(100vh - var(--nav-h) - 56px); height: calc(100svh - var(--nav-h) - 56px); }
  .atlas__ticker { display: none; }
  .atlas__zoom, .atlas__add { bottom: 12px; }
  /* too short for the title over the plate: keep it for screen readers only */
  .atlas__head { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
}

/* ==========================================================================
   tables (recent, index, facts)
   ========================================================================== */
.table-wrap { width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; letter-spacing: .04em; }
.table th {
  text-align: left; font-weight: 400; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); padding: 10px 16px 8px; border-bottom: 1px solid var(--hair);
}
.table td {
  padding: 9px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle;
  word-break: break-word;
}
.table tbody tr { transition: background-color .15s; }
.table tbody tr[data-id]:hover td:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.table tbody tr.is-selected td:first-child, .table tbody tr[aria-selected="true"] td:first-child,
.table tbody tr[aria-selected="true"] .row-title { color: var(--accent); }
@media (min-width: 721px) {
  /* a selected row keeps the white paper; a short accent rule marks it */
  .table tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
}
.table .t-right, .table td:last-child { text-align: right; }
.table th:last-child { text-align: right; }
.table td a:not(.btn), .table td button:not(.btn) {
  color: var(--ink); font-size: 13px; letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.table td a:not(.btn):hover, .table td button:not(.btn):hover { border-bottom-color: currentColor; }
.table td button[data-action="delete"]:hover, .table td .danger:hover { color: var(--accent); }
.table td .sep, .table td .dot { color: var(--ink-3); margin: 0 6px; }
.table td:nth-child(2) { color: var(--ink); }
.table td time, .table td .date { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.table td button.row-title {
  font-size: inherit; letter-spacing: inherit; white-space: normal; text-align: left; word-break: break-word;
  text-decoration: none; border-bottom: 1px solid transparent;
}
.table tbody tr[data-id]:hover td:first-child { text-decoration: none; }
.table td button.row-title:hover { border-bottom-color: currentColor; }

/* recent */
.recent { padding-top: 26px; padding-bottom: 12px; }
.recent__head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 8px; }
.recent__title { font-size: 15px; letter-spacing: .06em; display: flex; align-items: center; gap: 12px; }
.table--recent td { padding-block: 6px; }
@media (min-width: 721px) {
  /* table text sits on the page gutter; the rules hang 16px outside it */
  .recent .table-wrap, #index .table-wrap { margin-inline: -16px; width: auto; }
}
.table--recent th:nth-child(1), .table--recent td:nth-child(1) { width: 46%; }

/* index */
.index-tools {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 12px; align-items: stretch;
  margin-bottom: 18px;
}
.field { position: relative; display: flex; align-items: center; border: 1px solid var(--ink); background: var(--paper); min-height: 38px; }
.field input, .field select {
  width: 100%; height: 100%; min-height: 36px; border: 0; background: transparent; padding: 0 12px;
  font-size: 13px; letter-spacing: .04em; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--ink-2); }
.field input:focus, .field select:focus { outline: none; }
.field:focus-within { outline: 1px solid var(--accent); outline-offset: 2px; }
.field--search svg { margin-left: 12px; flex: none; }
.field--search svg * { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.field--search input { padding-left: 10px; }
.field--select::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field--select select { padding-right: 32px; cursor: pointer; }
.field select option { background: var(--paper); color: var(--ink); }
.index-tools__io { display: flex; gap: 8px; }
.index-tools__io .btn { min-height: 38px; }

.table--index th:nth-child(1), .table--index td:nth-child(1) { width: 40%; }
.table--index td:first-child a, .table--index td:first-child .title { font-size: 13.5px; }
.table--index td small, .table--index td .url {
  display: block; color: var(--ink-2); font-size: 11px; letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44ch;
}

.empty {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 44px 16px; border-bottom: 1px solid var(--hair);
  color: var(--ink-2); font-size: 13px; text-align: center;
}
.empty__mark { display: inline-block; width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; }
.empty .link-btn { border-bottom-color: var(--ink); }

@media (max-width: 860px) {
  .index-tools { grid-template-columns: 1fr 1fr; }
  .field--search { grid-column: 1 / -1; }
  .index-tools__io .btn { flex: 1; }
}
@media (max-width: 720px) {
  .recent__head { padding-inline: 0; }
  .table th, .table td { padding-inline: 8px; }
  .table th:first-child, .table td:first-child { padding-left: 0; }
  .table th:last-child, .table td:last-child { padding-right: 0; }
  .table { font-size: 13px; }
  .table--index th:nth-child(3), .table--index td:nth-child(3) { display: none; }
  /* actions stack as full-size targets instead of wrapping around separators */
  .table--index td:last-child { white-space: nowrap; }
  .table--index td:last-child .sep { display: none; }
  .table--index td:last-child a, .table--index td:last-child button { display: block; margin-left: auto; padding: 9px 0; }
  .table--index td small, .table--index td .url { max-width: 22ch; }
}
@media (max-width: 480px) {
  .index-tools { grid-template-columns: 1fr; }
  .index-tools__io { display: grid; grid-template-columns: 1fr 1fr; }
  .table--recent th:nth-child(2), .table--recent td:nth-child(2) { color: var(--ink-2); }
}

/* ==========================================================================
   sections
   ========================================================================== */
.section { padding-top: clamp(80px, 11vw, 160px); }
.sec-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head__title { font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.sec-head__rule { flex: 1; height: 1px; background: var(--hair); min-width: 24px; }
.sec-head__meta { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 720px) {
  .sec-head { gap: 10px; flex-wrap: wrap; }
  .sec-head__rule { order: 3; flex-basis: 100%; }
  .sec-head__meta { order: 4; white-space: normal; }
  .sec-head__title { white-space: normal; }
}

.statement {
  font-size: clamp(30px, 5.4vw, 76px); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em;
  max-width: 18ch; text-wrap: balance;
}
.lede { font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; line-height: 1.4; letter-spacing: 0; max-width: 26ch; text-wrap: balance; }
.kicker { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }

/* manifesto */
.manifesto {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 88px); border-top: 1px solid var(--ink);
}
.manifesto__col { padding: 22px 28px 0 0; }
.manifesto__col + .manifesto__col { padding-left: 28px; border-left: 1px solid var(--hair); }
.manifesto__n { display: block; font-size: var(--t-sm); color: var(--accent); margin-bottom: 14px; letter-spacing: .08em; }
.manifesto p { font-size: 14.5px; line-height: 1.75; color: var(--ink); max-width: 42ch; }
@media (max-width: 860px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto__col, .manifesto__col + .manifesto__col { padding: 20px 0 22px; border-left: 0; border-bottom: 1px solid var(--hair); }
}

/* four-up hairline grid */
.grid4 {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair);
}
.step { padding: 24px 24px 32px; position: relative; }
.step + .step { border-left: 1px solid var(--hair); }
.step:first-child { padding-left: 0; }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step h3 { margin-top: 28px; font-size: 18px; letter-spacing: .04em; }
.step p { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-2); max-width: 32ch; }
.step:hover .circ { border-color: var(--accent); color: var(--accent); }
.grid4--get .step h3 { margin-top: 22px; }
.glyph { width: 64px; height: 40px; }
.glyph * { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; }
.glyph .fill { fill: var(--ink); stroke: none; }
.glyph .dash { stroke-dasharray: 2 3; stroke: var(--ink-2); }
.step:hover .glyph path { stroke: var(--accent); }
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 20px 0 24px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--hair); }
  .step h3 { margin-top: 16px; }
}

/* why solana */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fact { padding: 26px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--hair); }
.fact dt {
  font-size: clamp(32px, 3.8vw, 54px); font-weight: 300; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact dt small { font-size: .38em; letter-spacing: .04em; margin-left: 4px; color: var(--ink-2); }
.fact dd { margin-top: 22px; font-size: 13px; line-height: 1.7; color: var(--ink-2); max-width: 30ch; }
.fact dd strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 0 24px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--hair); }
}

/* token */
.token { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.utility { margin-top: 36px; border-top: 1px solid var(--ink); }
.utility li {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; line-height: 1.6;
}
.utility__verb { font-weight: 500; letter-spacing: .06em; }
.utility__verb::before { content: "→ "; color: var(--ink-3); font-weight: 400; }
.utility li:hover .utility__verb, .utility li:hover .utility__verb::before { color: var(--accent); }

.token__chart { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: center; }
.donut { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; overflow: visible; }
.donut svg .seg { fill: none; stroke-linecap: butt; transition: stroke-width .25s var(--ease), opacity .25s var(--ease); cursor: pointer; }
.donut svg.has-hover .seg { opacity: .28; }
.donut svg.has-hover .seg.is-hover { opacity: 1; }
.donut svg .ring-guide { fill: none; stroke: var(--hair); stroke-width: 1; }
.donut svg .tick { stroke: var(--ink-3); stroke-width: 1; }
.donut__center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; padding: 0 15%;
}
.donut__big { font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.donut__small { margin-top: 6px; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.4; }
.legend { margin-top: 14px; border-top: 1px solid var(--hair); }
.legend li {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; cursor: default;
  transition: color .15s;
}
.legend li small { display: block; color: var(--ink-2); font-size: 11px; letter-spacing: .02em; }
.legend__sw { width: 12px; height: 12px; border-radius: 50%; }
.legend__pct { font-variant-numeric: tabular-nums; }
.legend li.is-hover { color: var(--accent); }
.legend li.is-dim { color: var(--ink-3); }
.legend li:focus-visible { outline-offset: 0; }

.keyfacts { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.table--facts th, .table--facts td { padding: 13px 0; font-size: 13.5px; }
.table--facts th { width: 34%; font-size: var(--t-xs); color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.table--facts td { text-align: right; }
.table--facts tbody tr:hover { background: none; }
.ca-wrap { display: inline-flex; justify-content: flex-end; align-items: center; gap: 14px; flex-wrap: wrap; }
.ca-row code { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .04em; overflow-wrap: anywhere; }
@media (min-width: 641px) {
  /* values start on the grid's second line instead of the far right edge */
  .table--facts th { width: 25%; }
  .table--facts td:last-child { text-align: left; }
  .ca-wrap { justify-content: flex-start; }
}

@media (max-width: 1100px) {
  .token { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .token__chart { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .token__chart figcaption { width: 100%; }
  .donut { max-width: 260px; }
  .utility li { grid-template-columns: 82px 1fr; gap: 10px; }
  .table--facts th { width: auto; padding-right: 12px; }
  .ca-row th { vertical-align: top; }
  .ca-wrap { flex-direction: column; align-items: flex-end; gap: 10px; }
}

/* stats */
.stats { margin-top: clamp(80px, 10vw, 140px); }
.stats__label { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.stats__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { padding: 22px 20px 26px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--hair); }
.stat dt { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.stat dd { margin-top: 18px; font-size: clamp(28px, 3.4vw, 48px); font-weight: 300; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .stat { padding: 18px 12px 20px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* roadmap */
.roadmap { position: relative; max-width: 920px; }
.roadmap__line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.roadmap__line path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.roadmap__line .done { stroke: var(--ink); }
.roadmap__line .todo { stroke: var(--ink-3); stroke-dasharray: 3 4; }
.roadmap__list { position: relative; }
.phase {
  --x: 0px;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding: 0 0 52px var(--x);
}
.phase:nth-child(even) { --x: 64px; }
.phase:last-child { padding-bottom: 0; }
.phase__circ { width: 40px; height: 40px; font-size: 12px; position: relative; z-index: 1; }
.phase__body { padding-top: 8px; border-top: 1px solid transparent; }
.phase h3 { font-size: 17px; letter-spacing: .04em; line-height: 1.4; }
.phase p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.65; max-width: 48ch; }
.phase .tag { padding-top: 12px; }
.phase.is-done .phase__circ { background: var(--ink); color: var(--paper); }
.phase.is-current .phase__circ { border-color: var(--accent); color: var(--accent); }
.phase.is-current .phase__circ::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--accent); opacity: .35;
  animation: ripple 2.8s var(--ease) infinite;
}
.phase.is-current h3 { color: var(--accent); }
@keyframes ripple { 0% { transform: scale(.85); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phase.is-current .phase__circ::after { animation: none; } }
@media (max-width: 640px) {
  .phase { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding-bottom: 40px; }
  .phase:nth-child(even) { --x: 24px; }
  .phase .tag { grid-column: 2; padding-top: 0; }
}

/* how to get */
.warning {
  margin-top: 28px; display: flex; gap: 14px; align-items: center;
  color: var(--accent); font-size: 13.5px; letter-spacing: .04em;
}
.warning span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none;
  border: 1px solid var(--accent); border-radius: 50%; font-size: 12px; font-weight: 500;
}

/* faq */
.faq { border-top: 1px solid var(--ink); max-width: 1000px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 12px;
  padding: 20px 0; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .03em; transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; justify-self: end; font-size: 18px; font-weight: 300; color: var(--ink-2);
  transition: transform .3s var(--ease), color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq__n { font-size: var(--t-xs); letter-spacing: .12em; color: var(--ink-2); }
.faq details[open] .faq__n { color: var(--accent); }
.faq__a { padding: 0 32px 24px 56px; }
.faq__a p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); max-width: 62ch; }
.faq details[open] .faq__a { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (min-width: 1001px) {
  /* end on the third column line of the four-up grids above */
  .roadmap, .faq { max-width: 75%; }
}
@media (max-width: 560px) {
  .faq summary { grid-template-columns: 30px 1fr 18px; gap: 8px; padding: 18px 0; }
  .faq__a { padding: 0 0 20px 38px; }
}

/* community */
.community .statement { max-width: none; }
.community__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.community__links .btn { min-height: 46px; padding: 0 22px; font-size: 14px; }
@media (max-width: 560px) {
  .community__links { display: grid; grid-template-columns: 1fr 1fr; }
}

/* footer */
.footer { margin-top: clamp(96px, 12vw, 180px); padding-bottom: 32px; }
.footer__row {
  display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 12px; border-top: 1px solid var(--ink);
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.footer__right { text-transform: none; letter-spacing: .08em; }
.footer__note { font-size: 11px; color: var(--ink-2); letter-spacing: .04em; }

/* ==========================================================================
   modal
   ========================================================================== */
.modal {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 0;
}
.modal[open] { animation: modal-in .25s var(--ease); }
.modal::backdrop { background: rgba(255, 255, 255, .72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal__form { padding: 22px 24px 24px; position: relative; }
.modal__form::before { content: ""; position: absolute; left: -1px; top: -1px; width: 36px; height: 2px; background: var(--accent); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal__head h2 { font-size: 16px; letter-spacing: .06em; }
.mfield { display: block; margin-bottom: 14px; }
.mfield > span {
  display: flex; justify-content: space-between; margin-bottom: 6px;
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.mfield em { font-style: normal; color: var(--ink-2); }
.mfield input, .mfield textarea {
  width: 100%; border: 1px solid var(--hair); background: var(--paper); padding: 10px 12px;
  font-size: 14px; letter-spacing: .02em; border-radius: 0; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.mfield textarea { resize: vertical; min-height: 78px; line-height: 1.6; }
.mfield input::placeholder, .mfield textarea::placeholder { color: var(--ink-2); }
.mfield input:hover, .mfield textarea:hover { border-color: var(--ink-3); }
.mfield input:focus, .mfield textarea:focus { outline: none; border-color: var(--ink); }
.mfield input:focus-visible, .mfield textarea:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.mfield input[aria-invalid="true"], .mfield input.is-invalid, .was-validated .mfield input:invalid { border-color: var(--accent); }
.modal__error, .field-error { color: var(--accent); font-size: 12px; margin-top: 6px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@media (max-width: 480px) {
  .modal__form { padding: 18px 16px 18px; }
  .modal__actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 11px 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  font-size: 12.5px; letter-spacing: .04em; line-height: 1.4;
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.toast::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 1px;
}
.toast.is-visible, .toast.is-open, .toast.show, .toast.visible, .toast[data-show="true"], .toast[data-state="visible"] {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}

/* ==========================================================================
   reveal on scroll (only when js is running and motion is fine)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .grid4 .reveal:nth-child(2), .js .facts .reveal:nth-child(2), .js .manifesto .reveal:nth-child(2) { transition-delay: .08s; }
  .js .grid4 .reveal:nth-child(3), .js .facts .reveal:nth-child(3), .js .manifesto .reveal:nth-child(3) { transition-delay: .16s; }
  .js .grid4 .reveal:nth-child(4), .js .facts .reveal:nth-child(4) { transition-delay: .24s; }
}

/* ==========================================================================
   touch: 44px targets
   ========================================================================== */
@media (pointer: coarse) {
  .btn, .btn--sm, .index-tools__io .btn, .field, .field input, .field select { min-height: 44px; }
  .nav__toggle { width: 44px; height: 44px; }
  .nav__toggle span:first-child { top: 18px; }
  .nav__toggle span:last-child { top: 24px; }
  .nav.is-open .nav__toggle span:first-child, .nav.is-open .nav__toggle span:last-child { top: 21px; }
  .atlas__zoom button { width: 44px; height: 44px; }
  .atlas__add { min-height: 44px; }
  .detail__close { width: 44px; height: 44px; margin: -9px -9px -9px 0; }
  .table td a:not(.btn), .table td button:not(.btn), .detail__open, .detail__actions .link-btn,
  .fineprint a { display: inline-block; padding-block: 11px; }
  .arrow-link, .logo { padding-block: 11px; }
  .table td button.row-title { padding-block: 11px; }
  .detail__open { padding-bottom: 10px; }
}

/* ios zooms into any focused field under 16px */
@media (max-width: 720px) {
  .mfield input, .mfield textarea, .field input, .field select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail, .modal[open], .faq details[open] .faq__a { animation: none; }
  .btn:active { transform: none; }
}

@media print {
  .nav, .atlas, .toast, .modal { display: none !important; }
}
