/* Novus Agent. One sheet for the whole site: the tokens first, then the overview from top to bottom, then a desk's
   page, then the agent's panel, then the narrow screens. Green throughout: the hero opens on the deep green of a
   Macedonian forest at night and fades to paper; everything below it is ink on white. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --void: #04160d;
  --ground: #0b3a24;
  --paper: #ffffff;
  --card: #ffffff;
  --line-1: #dbe8df;
  --line-2: #bfd5c7;
  --ink: #11291b;
  --ink-dim: #4c6657;
  --ink-faint: #677b6f;
  --ink-hero: #ffffff;
  --ink-hero-dim: #c3e3cf;
  --ink-hero-faint: #8fb9a0;
  --signal: #3fcf86;
  --signal-lo: #1b8a51;
  --signal-hi: #8ef0b8;
  --accent: #9fd8b5;
  --warn: #d9932e;
  --bad: #c4553f;
  --glow: rgba(63, 207, 134, 0.28);
  --ink-rgb: 17, 41, 27;
  --signal-rgb: 63, 207, 134;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --radius: 4px;
  --wrap: 1120px;
  --gutter: 24px;
  --nav-h: 56px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.16, 1, .30, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font-family: var(--display); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--signal-lo); color: #fff; }
a { color: inherit; }
img, canvas, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.plane { position: fixed; inset: 0; pointer-events: none; }
.atmos { z-index: 0; background: linear-gradient(180deg, #f1f7f3 0%, #ffffff 100%); }
main, .foot { position: relative; z-index: 1; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.nav[data-stuck="true"] { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line-1); }
.nav[data-page="desk"][data-stuck="false"] { background: rgba(255, 255, 255, 0.6); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--nav-h); display: flex; align-items: center; gap: var(--s3); }
.nav-mark { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hero); text-decoration: none; flex: none; }
.nav-mark svg { width: 22px; height: 22px; color: var(--signal); }
.nav-mark span { display: none; }
.nav[data-stuck="true"] .nav-mark, .nav[data-page="desk"] .nav-mark { color: var(--ink); }
.nav[data-stuck="true"] .nav-mark svg, .nav[data-page="desk"] .nav-mark svg { color: var(--signal-lo); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-links > a, .nav-group-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-hero-faint); text-decoration: none; background: none; border: 0; padding: 4px 0 3px; cursor: pointer;
  position: relative; display: inline-flex; align-items: center; gap: 5px; transition: color 200ms var(--ease-out);
}
.nav-links > a:hover, .nav-group-btn:hover, .nav-group[data-open="true"] .nav-group-btn { color: var(--ink-hero); }
.nav-links > a.on, .nav-group.on .nav-group-btn { color: var(--ink-hero); }
.nav-links > a.on::after, .nav-group.on .nav-group-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--signal); }
.nav-group-btn svg { width: 9px; height: 9px; transition: transform 200ms var(--ease-out); }
.nav-group[data-open="true"] .nav-group-btn svg { transform: rotate(180deg); }
.nav[data-stuck="true"] .nav-links > a, .nav[data-stuck="true"] .nav-group-btn,
.nav[data-page="desk"] .nav-links > a, .nav[data-page="desk"] .nav-group-btn { color: var(--ink-faint); }
.nav[data-stuck="true"] .nav-links > a:hover, .nav[data-stuck="true"] .nav-group-btn:hover,
.nav[data-page="desk"] .nav-links > a:hover, .nav[data-page="desk"] .nav-group-btn:hover { color: var(--ink); }
.nav[data-stuck="true"] .nav-links > a.on, .nav[data-stuck="true"] .nav-group.on .nav-group-btn,
.nav[data-page="desk"] .nav-links > a.on, .nav[data-page="desk"] .nav-group.on .nav-group-btn { color: var(--signal-lo); }
.nav-links > a.nav-pill { color: var(--signal-hi); border: 1px solid rgba(142, 240, 184, 0.6); border-radius: 999px; padding: 4px 11px; }
.nav-links > a.nav-pill:hover { background: rgba(142, 240, 184, 0.14); }
.nav-links > a.nav-pill.on::after { display: none; }
.nav[data-stuck="true"] .nav-links > a.nav-pill, .nav[data-page="desk"] .nav-links > a.nav-pill { color: var(--signal-lo); border-color: var(--signal-lo); }
.nav-links > a.nav-city::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-right: 2px; }
.nav-wallet {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-hero); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; white-space: nowrap;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.nav-wallet:hover { border-color: var(--signal); color: var(--signal-hi); }
.nav[data-stuck="true"] .nav-wallet, .nav[data-page="desk"] .nav-wallet { color: var(--ink); border-color: var(--line-2); }
.nav[data-stuck="true"] .nav-wallet:hover, .nav[data-page="desk"] .nav-wallet:hover { border-color: var(--signal-lo); color: var(--signal-lo); }
.nav-wallet.on { color: var(--signal-hi); border-color: var(--signal); background: rgba(var(--signal-rgb), 0.14); }
.nav[data-stuck="true"] .nav-wallet.on, .nav[data-page="desk"] .nav-wallet.on { color: var(--signal-lo); border-color: var(--signal-lo); }

.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-4px);
  width: min(560px, 80vw); max-height: min(70vh, 640px); overflow-y: auto; padding: 10px;
  background: #ffffff; border: 1px solid var(--line-1); border-radius: 8px; box-shadow: 0 24px 60px rgba(4, 22, 13, 0.22);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
}
.nav-group[data-open="true"] .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.nav-menu a { display: block; text-decoration: none; padding: 9px 11px; border-radius: 5px; color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: #eef6f1; outline: none; }
.nav-menu a.on { background: #e5f3ea; }
.nav-menu b { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--signal-lo); }
.nav-menu i { display: block; font-style: normal; font-size: 14.5px; line-height: 1.32; color: var(--ink-dim); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nav-burger { display: none; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 28px) 0 var(--s12); overflow: hidden;
  background: linear-gradient(180deg, #04160d 0%, #082c1a 22%, #0f4a2c 44%, #2a6b46 60%, #6a9d80 72%, #a0c3ad 80%, rgba(198, 222, 207, 0.75) 87%, rgba(224, 238, 229, 0.4) 93%, rgba(242, 247, 244, 0) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none; background: linear-gradient(180deg, rgba(242, 247, 244, 0) 0%, rgba(246, 250, 247, 0.55) 55%, rgba(248, 251, 249, 0.9) 100%); }
.wall {
  position: absolute; z-index: 0; inset: 0; font-family: var(--mono); font-size: clamp(15px, 1.5vw, 21px); line-height: 1.28; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.075); overflow: hidden; user-select: none; word-break: break-word; text-transform: lowercase; white-space: normal;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0,0,0,0.4) 56%, transparent 76%); mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0,0,0,0.4) 56%, transparent 76%);
  transform: translate3d(0, calc(var(--wall-y, 0) * 1px), 0);
}
.wall .wg { color: rgba(255, 255, 255, 0.16); }
.wall .wd { color: rgba(142, 240, 184, 0.34); transition: color 600ms var(--ease-out); }
.grainplane {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.col-herald {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; text-decoration: none;
  max-width: 440px; padding: 12px 14px 13px; margin: 0 0 var(--s4); border: 1px solid rgba(142, 240, 184, 0.55); border-radius: 8px;
  background: rgba(4, 22, 13, 0.55); box-shadow: 0 0 0 4px rgba(142, 240, 184, 0.06), 0 14px 40px rgba(0, 0, 0, 0.25);
  transition: border-color 200ms, transform 200ms var(--ease-spring), box-shadow 200ms;
}
.col-herald:hover { border-color: var(--signal-hi); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(142, 240, 184, 0.12), 0 18px 44px rgba(0, 0, 0, 0.3); }
.col-herald-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #04160d; background: var(--signal); padding: 3px 7px; border-radius: 3px; font-weight: 700; }
.col-herald-name { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1; color: var(--signal-hi); }
.col-herald-go { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--signal-hi); }
.col-herald-sub { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: #d9efe2; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s3); flex-wrap: wrap; }
.eyebrow > span:first-child { color: var(--signal-lo); }
.eyebrow .rule { flex: 1; height: 1px; background: var(--line-1); max-width: 120px; min-width: 24px; }
.eyebrow.center { justify-content: center; }
.hero .eyebrow { color: var(--ink-hero-dim); }
.hero .eyebrow > span:first-child { color: var(--signal-hi); }
.hero .eyebrow .rule { background: rgba(255, 255, 255, 0.22); }
h1 { font-family: var(--display); font-size: clamp(40px, 6.2vw, 76px); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; margin: 0 0 var(--s3); color: var(--ink); }
h1 .glow, h2 .glow { font-style: italic; color: var(--signal-lo); }
.hero h1 { color: var(--ink-hero); }
.hero h1 .glow { color: var(--signal-hi); }
h2 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 52px); font-weight: 400; letter-spacing: -0.008em; line-height: 1.1; margin: 0 0 var(--s3); color: var(--ink); }
h3 { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.lede { font-size: 18px; color: var(--ink-dim); max-width: 58ch; margin: 0 0 var(--s4); line-height: 1.55; }
.hero .lede { color: #d3eadc; }
.hero .lede a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.55); }
.hero .lede a:hover { text-decoration-color: var(--signal); }
.body-lg { font-size: 17.5px; color: var(--ink-dim); max-width: 62ch; margin: 0 0 var(--s4); line-height: 1.6; }

.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.btn {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.09em; padding: 11px 20px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-spring), box-shadow 200ms var(--ease-out);
}
.btn svg { width: 13px; height: 13px; }
.btn-solid { background: var(--signal-lo); color: #fff; border-color: var(--signal-lo); font-weight: 600; }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27, 138, 81, 0.32); }
.btn-ghost:hover { border-color: var(--signal-lo); color: var(--signal-lo); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 12px; letter-spacing: 0.02em; }
.btn-reason { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); flex-basis: 100%; }
.hero .btn-solid { background: var(--signal); border-color: var(--signal); color: #04160d; }
.hero .btn-ghost { color: var(--ink-hero); border-color: rgba(255, 255, 255, 0.34); background: rgba(4, 22, 13, 0.4); }
.hero .btn-ghost:hover { border-color: var(--signal-hi); color: var(--signal-hi); }
.hero .btn-reason { color: var(--ink-hero-faint); }

.plate { position: relative; display: grid; place-items: center; min-height: 460px; isolation: isolate; }
.plate .appa { position: absolute; inset: -6% -10%; width: 120%; height: 112%; pointer-events: none; }
#appa-back { z-index: 0; }
#appa-front { z-index: 2; }
.bust { position: relative; z-index: 1; width: 78%; max-width: 470px; height: auto; filter: drop-shadow(0 0 44px rgba(120, 255, 180, 0.22)); }
.plate-cap { position: absolute; z-index: 3; bottom: -18px; left: 50%; transform: translateX(-50%); margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); text-align: center; white-space: nowrap; }

/* ---------------- sections ---------------- */
.sect { padding: var(--s12) 0; position: relative; scroll-margin-top: var(--nav-h); }
.sect + .sect { border-top: 1px solid var(--line-1); }

.mrow { margin: var(--s5) 0 var(--s6); }
.mrow-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.mrow-eyebrow { flex: 1; margin-bottom: var(--s2); }
.mrow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.mcard { background: var(--card); border: 1px solid var(--line-1); border-radius: 8px; padding: 18px 20px 16px; min-height: 196px; position: relative; overflow: hidden; }
.mcard-k { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.mcard-v { margin: 0; font-family: var(--mono); font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.mcard-v small { font-size: 0.42em; letter-spacing: 0.08em; color: var(--ink-faint); margin-left: 6px; }
.mcard-s { margin: 4px 0 12px; font-size: 15px; color: var(--ink-dim); }
.mcard-spark { width: 100%; height: 70px; }
.mcard-bars { display: grid; gap: 7px; }
.mcard-bar { display: grid; grid-template-columns: 150px 1fr 54px; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-dim); }
.mcard-bar i { height: 6px; border-radius: 3px; background: #e5efe8; position: relative; overflow: hidden; }
.mcard-bar i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--ink); border-radius: 3px; transition: width 900ms var(--ease-out); }
.mcard-bar b { font-family: var(--mono); font-weight: 500; font-size: 12px; text-align: right; color: var(--ink); }
.mcard[data-state="waiting"] .mcard-v { color: #b3c6ba; }
.mrow-note { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.card { background: var(--card); border: 1px solid var(--line-1); border-radius: 8px; padding: 0 22px 20px; display: flex; flex-direction: column; transition: border-color 200ms, box-shadow 200ms; }
.card:hover { border-color: var(--line-2); box-shadow: 0 14px 34px rgba(4, 22, 13, 0.07); }
.card-bar { display: flex; align-items: center; gap: 8px; margin: 0 -22px 18px; padding: 12px 22px; border-bottom: 1px solid var(--line-1); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.18); flex: none; }
.pid-state { margin-left: auto; color: var(--warn); }
.pid-state[data-state="live"] { color: var(--signal-lo); }
.card p { margin: 0 0 14px; font-size: 16.5px; color: var(--ink-dim); line-height: 1.55; }
.card .card-foot { margin-top: auto; margin-bottom: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-faint); }
.card-foot a { color: var(--signal-lo); text-underline-offset: 3px; }

/* the desks, listed */
.dl-bar { display: flex; align-items: center; gap: var(--s2); margin: var(--s5) 0 var(--s2); flex-wrap: wrap; }
.dl-count { display: flex; align-items: baseline; gap: 8px; padding-right: var(--s2); border-right: 1px solid var(--line-1); }
.dl-count b { font-family: var(--mono); font-weight: 500; font-size: 30px; line-height: 1; color: var(--ink); }
.dl-count span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.dl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); background: #fff; border: 1px solid var(--line-1); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all 180ms; }
.dl-chip:hover { border-color: var(--signal-lo); color: var(--signal-lo); }
.dl-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dl-find { margin-left: auto; }
.dl-find input { font-family: var(--mono); font-size: 12.5px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); width: 200px; }
.dl-find input:focus { outline: 2px solid rgba(var(--signal-rgb), 0.4); border-color: var(--signal-lo); }
.dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); border-top: 1px solid var(--line-1); }
.dl-row { display: grid; grid-template-columns: 74px 1fr auto 18px; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line-1); text-decoration: none; color: var(--ink); transition: background 160ms; }
.dl-row:hover { background: #f1f8f3; }
.dl-row:hover .dl-go { color: var(--signal-lo); transform: translateX(2px); }
.dl-glyph { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-name { display: block; font-size: 19px; line-height: 1.2; }
.dl-what { display: block; font-size: 15px; line-height: 1.35; color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }
.dl-go { color: var(--ink-faint); transition: transform 160ms, color 160ms; }
.dl-none { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); padding: var(--s3) 0; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s4); }
.news-item { background: #fff; border: 1px solid var(--line-1); border-radius: 8px; padding: 18px 20px; }
.news-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px; display: flex; gap: 10px; }
.news-meta b { color: var(--signal-lo); font-weight: 500; }
.news-item h3 { font-size: 23px; }
.news-item p { margin: 0; color: var(--ink-dim); font-size: 16px; line-height: 1.5; }

/* the close */
.close { text-align: center; padding-bottom: var(--s6); }
.close-h { max-width: 18ch; margin: 0 auto var(--s4); font-size: clamp(34px, 5vw, 60px); }
.formation { width: 100%; height: 420px; margin-top: var(--s6); }
.formation-cap { display: flex; justify-content: space-between; gap: var(--s2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-faint); border-top: 1px solid var(--line-1); padding-top: 12px; margin-top: 8px; flex-wrap: wrap; }

/* footer */
.foot { background: #f6faf7; border-top: 1px solid var(--line-1); padding: var(--s8) 0 var(--s6); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.foot-brand svg { width: 26px; height: 26px; color: var(--signal-lo); }
.foot-x { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-dim); margin: var(--s3) 0; }
.foot-x svg { width: 13px; height: 13px; }
.foot-x a { text-decoration: none; }
.foot-x a[aria-disabled="true"] { pointer-events: none; color: var(--ink-faint); }
.ca-row { display: flex; align-items: center; gap: 14px; max-width: 560px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-1); border-radius: 8px; }
.ca-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-faint); }
.ca-val { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--signal-lo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-note { max-width: 70ch; margin: var(--s4) 0 var(--s2); font-size: 15.5px; line-height: 1.6; color: var(--ink-dim); }
.foot-links { font-size: 15px; color: var(--ink-faint); }
.foot-links a { color: var(--signal-lo); text-underline-offset: 3px; }
.foot-fine { font-size: 14px; color: var(--ink-faint); margin: var(--s2) 0 0; }

/* ---------------- a desk's page ---------------- */
.desk-hero { padding: calc(var(--s8) + 8px) 0 var(--s4); }
.desk-hero .lede { max-width: 66ch; }
.desk-glyph { font-family: var(--mono); font-size: 13px; color: var(--signal-lo); background: #e9f5ee; border: 1px solid #cfe7d8; border-radius: 4px; padding: 3px 8px; margin-right: 2px; }
.desk-body { padding-bottom: var(--s12); }
.panel { background: #fff; border: 1px solid var(--line-1); border-radius: 8px; margin: 0 0 var(--s2); overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 9px; padding: 12px 20px; border-bottom: 1px solid var(--line-1); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-dim); }
.panel-h .dot { width: 6px; height: 6px; }
.panel-h .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(217, 147, 46, 0.18); }
.panel-h .dot.off { background: var(--bad); box-shadow: 0 0 0 3px rgba(196, 85, 63, 0.16); }
.panel-b { padding: 18px 20px 20px; }
.panel-b p { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 74ch; }
.panel-b p:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 32px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.steps li::before { content: "0" counter(s); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 12px; color: var(--signal-lo); letter-spacing: 0.1em; }
.steps li::after { content: ""; position: absolute; top: 7px; left: 30px; right: 0; height: 1px; background: var(--line-1); }
.nevers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nevers li { display: grid; grid-template-columns: 22px 1fr; font-size: 17px; line-height: 1.5; color: var(--ink); }
.nevers li::before { content: "\2205"; font-family: var(--mono); color: var(--bad); font-size: 14px; line-height: 1.7; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-1); }
.kv dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); padding-top: 13px; }
.kv dd { font-family: var(--mono); font-size: 13px; color: var(--ink); word-break: break-all; }
.kv dd a { color: var(--signal-lo); }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.rel { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
.rel .dl-row { grid-template-columns: 74px 1fr 18px; }
.pager { display: flex; justify-content: space-between; gap: var(--s2); margin-top: var(--s4); }
.pager a { flex: 1; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line-1); border-radius: 8px; background: #fff; transition: border-color 180ms; }
.pager a:hover { border-color: var(--signal-lo); }
.pager a:last-child { text-align: right; }
.pager small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.pager span { font-size: 20px; color: var(--ink); }
.docs-list { display: grid; gap: 0; }
.docs-item { display: grid; grid-template-columns: 200px 1fr; gap: var(--s3); padding: 18px 0; border-bottom: 1px solid var(--line-1); }
.docs-item:last-child { border-bottom: 0; }
.docs-item h4 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.docs-item h4 a { color: var(--signal-lo); text-decoration: none; }
.docs-item h4 small { display: block; color: var(--ink-faint); margin-top: 4px; letter-spacing: 0.04em; text-transform: none; }
.docs-item p { margin: 0 0 6px; font-size: 16.5px; color: var(--ink-dim); }
.docs-item ol { margin: 0; padding-left: 20px; font-size: 15.5px; color: var(--ink); }
.seal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.seal { aspect-ratio: 1; border-radius: 6px; background: radial-gradient(120% 120% at 30% 20%, #134d31, #04160d); display: grid; place-items: center; overflow: hidden; position: relative; }
.seal img { width: 88%; opacity: 0.9; filter: drop-shadow(0 0 10px rgba(120, 255, 180, 0.25)); }
.seal::after { content: attr(data-n); position: absolute; left: 6px; bottom: 4px; font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.6); }
.seal.sealed img { filter: blur(6px) brightness(0.7); }

/* ---------------- the agent's panel ---------------- */
.ask-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px;
  background: linear-gradient(135deg, #0b3a24, #126b3e); color: #fff; border: 1px solid rgba(142, 240, 184, 0.35); border-radius: 999px;
  box-shadow: 0 16px 40px rgba(4, 22, 13, 0.35); cursor: pointer; text-align: left; transition: transform 200ms var(--ease-spring);
}
.ask-fab:hover { transform: translateY(-2px); }
.ask-fab-mark { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #04160d; display: grid; place-items: center; border: 1px solid rgba(142, 240, 184, 0.4); flex: none; }
.ask-fab-mark svg { width: 24px; height: 24px; color: var(--signal-hi); }
.ask-fab-mark i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); border: 2px solid #04160d; }
.ask-fab-txt b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.ask-fab-txt em { display: block; font-size: 14px; color: var(--ink-hero-dim); }
body[data-ask="open"] .ask-fab { opacity: 0; pointer-events: none; }
.ask {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 100px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 80px rgba(4, 22, 13, 0.32); overflow: hidden;
}
.ask[hidden] { display: none; }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, #04160d, #0f4a2c); color: #fff; }
.ask-head h3 { color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; font-weight: 600; }
.ask-head p { margin: 0; font-size: 13.5px; color: var(--ink-hero-dim); line-height: 1.3; }
.ask-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0.8; padding: 4px 6px; }
.ask-x:hover { opacity: 1; }
.ask-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6faf7; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 10px; font-size: 16px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; font-family: var(--mono); font-size: 13px; }
.msg.it { align-self: flex-start; background: #fff; border: 1px solid var(--line-1); color: var(--ink); border-bottom-left-radius: 3px; }
.msg.it a { color: var(--signal-lo); }
.msg.it .src { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.ask-sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px 0; background: #fff; }
.ask-sugg button { font-family: var(--mono); font-size: 11px; color: var(--signal-lo); background: #eef6f1; border: 1px solid #d2e8da; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.ask-form { display: flex; gap: 8px; padding: 10px 14px 14px; background: #fff; }
.ask-form input { flex: 1; font-family: var(--mono); font-size: 13px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); min-width: 0; }
.ask-form input:focus { outline: 2px solid rgba(var(--signal-rgb), 0.4); border-color: var(--signal-lo); }

/* ---------------- wallet sheet ---------------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 22, 13, 0.55); backdrop-filter: blur(4px); padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-in { width: min(420px, 100%); background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.sheet-in h3 { margin-bottom: 4px; }
.sheet-in p { margin: 0 0 14px; color: var(--ink-dim); font-size: 16px; }
.sheet-list { display: grid; gap: 8px; }
.sheet-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--mono); font-size: 13px; padding: 12px 14px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; cursor: pointer; color: var(--ink); }
.sheet-list button:hover { border-color: var(--signal-lo); color: var(--signal-lo); }
.sheet-list img { width: 22px; height: 22px; }
.sheet-foot { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ---------------- narrow screens ---------------- */
@media (max-width: 1080px) {
  .nav-links { gap: 13px; }
  .nav-links > a, .nav-group-btn { font-size: 10.5px; letter-spacing: 0.08em; }
}
@media (max-width: 920px) {
  :root { --gutter: 16px; }
  .nav-mark span { display: inline; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 12px 10px; background: transparent; border: 0; cursor: pointer; }
  .nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink-hero); transition: transform 180ms var(--ease-out), opacity 180ms; }
  .nav[data-stuck="true"] .nav-burger span, .nav[data-page="desk"] .nav-burger span, .nav[data-menu="open"] .nav-burger span { background: var(--ink); }
  .nav[data-menu="open"] { background: #fff; }
  .nav[data-menu="open"] .nav-mark { color: var(--ink); }
  .nav[data-menu="open"] .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-menu="open"] .nav-burger span:nth-child(2) { opacity: 0; }
  .nav[data-menu="open"] .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; }
  .nav[data-menu="open"] .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0;
    background: #fff; border-top: 1px solid var(--line-1); overflow-y: auto; overscroll-behavior: contain; padding: 6px var(--gutter) 40px; margin: 0;
  }
  .nav[data-menu="open"] .nav-links > a, .nav[data-menu="open"] .nav-group-btn { color: var(--ink); font-size: 12.5px; padding: 14px 0; border-bottom: 1px solid var(--line-1); width: 100%; justify-content: space-between; }
  .nav[data-menu="open"] .nav-links > a.on::after, .nav[data-menu="open"] .nav-group.on .nav-group-btn::after { display: none; }
  .nav[data-menu="open"] .nav-links > a.nav-pill { border: 0; border-bottom: 1px solid var(--line-1); border-radius: 0; padding: 14px 0; color: var(--signal-lo); }
  .nav-menu { position: static; transform: none; width: auto; max-height: none; box-shadow: none; border: 0; padding: 0 0 8px; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; }
  .nav-group[data-open="true"] .nav-menu { display: grid; transform: none; }
  .nav-wallet { margin: 16px 0 0; padding: 12px; color: var(--ink) !important; border-color: var(--line-2) !important; }
  .hero { padding-bottom: var(--s8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .plate { min-height: 380px; order: -1; margin-top: 4px; }
  .bust { width: 72%; max-width: 330px; }
  .wall { font-size: 26px; }
  .sect { padding: var(--s8) 0; }
  .mrow-grid, .grid-3, .news, .dl, .rel, .steps { grid-template-columns: 1fr; }
  .steps { gap: 4px; }
  .dl-find { margin-left: 0; width: 100%; }
  .dl-find input { width: 100%; }
  .docs-item { grid-template-columns: 1fr; gap: 6px; }
  .seal-grid { grid-template-columns: repeat(3, 1fr); }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .formation { height: 300px; }
}
@media (max-width: 560px) {
  .lede { font-size: 17px; }
  .body-lg { font-size: 16.5px; }
  .col-herald { margin-bottom: var(--s3); }
  .mcard-bar { grid-template-columns: 110px 1fr 44px; font-size: 13.5px; }
  .dl-row { grid-template-columns: 56px 1fr 14px; }
  .dl-tag { display: none; }
  .ask-fab { padding: 7px; right: 12px; bottom: 12px; }
  .ask-fab-txt { display: none; }
  .ask { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .pager { flex-direction: column; }
  .pager a:last-child { text-align: left; }
  .formation-cap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------------- plain pages: terms, privacy, not found ---------------- */
.page-plain { background: #fff; }
.plain { padding: var(--s12) 0; min-height: 70vh; }
.plain h1 { font-size: clamp(36px, 5vw, 58px); }
.prose { max-width: 68ch; }
.prose h3 { margin-top: var(--s4); }
.prose p { font-size: 17.5px; color: var(--ink-dim); line-height: 1.65; }
.prose a { color: var(--signal-lo); }

/* ---------------- the statue: the 3D head over the drawn plate ---------------- */
.plate .statue { position: absolute; inset: -4% -12% -2%; width: 124%; height: 106%; z-index: 2; cursor: grab; outline: none; filter: drop-shadow(0 0 36px rgba(120, 255, 180, 0.18)); }
.plate.is-dragging .statue { cursor: grabbing; }
.plate.is-3d .appa { display: none; }
.plate.is-3d .bust { transition: opacity 400ms; pointer-events: none; }
.plate-cap .cap-3d { display: none; }
.plate.is-3d .plate-cap .cap-3d { display: inline; }
.statue-finish {
  position: absolute; z-index: 4; right: -4%; bottom: 4%; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--signal-hi); background: rgba(4, 22, 13, 0.55); border: 1px solid rgba(142, 240, 184, 0.45); border-radius: 999px; padding: 5px 11px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 300ms, border-color 200ms;
}
.plate.is-3d .statue-finish { opacity: 1; pointer-events: auto; }
.statue-finish:hover { border-color: var(--signal-hi); }
.plate-credit { position: absolute; z-index: 3; bottom: -38px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--ink-faint); opacity: 0.85; }
@media (max-width: 920px) {
  .plate .statue { inset: -2% -8% 0; width: 116%; height: 102%; }
  .plate-credit { font-size: 9px; bottom: -34px; }
}
@media (max-width: 560px) {
  .plate-cap, .plate-credit { white-space: normal; width: 100%; line-height: 1.5; }
  .plate-cap { bottom: -10px; font-size: 9.5px; letter-spacing: 0.12em; }
  .plate-credit { bottom: -40px; }
  .plate { margin-bottom: 28px; }
}
