/* ===========================================================================
   on.dev, set in the Foxe Labs "Foxe Mono Kit" theme.
   Space Grotesk carries the voice, Inconsolata every figure and label.
   No brand accent: the primary button is inverted, and the hue quad is only
   used as tints (12% fill, 38% border).
   =========================================================================== */
/* Self-hosted (OFL), latin subset. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* Arial sized to Space Grotesk's metrics, so the swap barely moves layout. */
@font-face {
  font-family: 'Space Grotesk Fallback';
  src: local('Arial');
  size-adjust: 105%; ascent-override: 93%; descent-override: 25%; line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  --bg:          #0a0a0b;
  --bg-subtle:   #101113;
  --bg-sunken:   #121315;
  --bg-card:     #17181b;
  --bg-hover:    #1f2124;

  --text:        #f4f5f6;
  --text-strong: #ffffff;
  --text-subtle: #b0b6be;
  --text-caps:   #9ea6b0;
  --text-faint:  #8d949d;

  --border:        #26282d;
  --border-strong: #34373d;
  --border-dashed: #3a3d43;

  --bold:        #ececec;
  --bold-text:   #131313;
  --bold-hover:  #ffffff;

  --acc-1: #4d6bfa;
  --acc-2: #9a5cf5;
  --acc-3: #f5a30b;
  --acc-4: #10c877;
  --hue-blue:    #4d6bfa;
  --hue-emerald: #10c877;
  --hue-purple:  #9a5cf5;
  --hue-amber:   #f5a30b;
  --hue-red:     #ef3f52;
  --hue-cyan:    #0cb8c4;

  --code-bg:   #121315;
  --code-head: #1f2124;
  --code-text: #dee0e4;
  --code-key:  #c88fe8;
  --code-str:  #6fd39b;
  --code-num:  #ffb84d;
  --code-fn:   #79b8ff;
  --code-com:  #8d949d;

  --ok: #4ade80;

  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-hero:  clamp(2.4rem, 1.4rem + 4.2vw, 4rem);
  --text-h2-lg: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --text-h3:    1.125rem;
  --text-lead:  1.125rem;
  --text-md:    0.9375rem;
  --text-ui:    0.875rem;
  --text-small: 0.8125rem;
  --text-xs:    0.75rem;

  --band-pad:      clamp(4rem, 7vw, 5.5rem);
  --container:     1180px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --nav-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
p, figure, dl, dd, pre { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
h1, h2, h3 {
  margin: 0; color: var(--text);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--text); text-decoration: none; }
code, .mono { font-family: var(--font-mono); }
p code, dd code {
  font-size: .92em; color: var(--text);
  background: var(--bg-hover); border-radius: 6px; padding: 1px 6px;
}
:where(a, button, input):focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.faint { color: var(--text-faint); }

.container-x { max-width: var(--container); margin-inline: auto; width: 100%; padding-inline: var(--container-pad); }
.band { padding-block: var(--band-pad); position: relative; }
.band--subtle { background: var(--bg-subtle); }
.band--top { border-top: 1px solid var(--border); }

/* ---------- kit components ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-caps);
}
.eyebrow + h2 { margin-top: 14px; }
h2 { font-size: var(--text-h2-lg); }
.section-lead { margin-top: 14px; max-width: 620px; font-size: 1.0625rem; color: var(--text-subtle); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-display); font-size: .9375rem; font-weight: 700; line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 36px; padding: 0 20px; font-size: var(--text-ui); }
.btn--primary { background: var(--bold); color: var(--bold-text); border-color: var(--bold); }
.btn--primary:hover { background: var(--bold-hover); border-color: var(--bold-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: 500; }
.btn--ghost:hover { background: var(--bg-hover); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  color: var(--text-subtle); background: var(--bg-hover);
}
.chip--solid { background: var(--bg-card); }
.chip--sm { padding: 4px 10px; font-size: 11px; min-height: 24px; }
.chip--muted { color: var(--text-faint); background: transparent; }
.chip--muted.chip--solid { background: var(--bg-card); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--acc-1); flex: none; }
.dot--sm { width: 8px; height: 8px; border-radius: 2px; }
.dot--round { border-radius: var(--r-pill); }

.card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; color: var(--text-subtle);
  transition: border-color .2s ease;
}
.card--pad { padding: 32px; }

.tint {
  background: color-mix(in srgb, var(--hue, var(--acc-1)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--hue, var(--acc-1)) 38%, transparent);
  color: var(--hue, var(--acc-1));
}
.step-chip {
  display: inline-flex; align-items: center; align-self: flex-start;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em;
}

.accent-bar { display: flex; gap: 4px; }
.accent-bar span { width: 16px; height: 6px; border-radius: 2px; }
.accent-bar span:nth-child(1), .code__dots span:nth-child(1) { background: var(--acc-1); }
.accent-bar span:nth-child(2), .code__dots span:nth-child(2) { background: var(--acc-2); }
.accent-bar span:nth-child(3), .code__dots span:nth-child(3) { background: var(--acc-3); }
.accent-bar span:nth-child(4), .code__dots span:nth-child(4) { background: var(--acc-4); }

.stat__value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}
.stat__label {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-caps);
}

.sync-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .sync-dot { animation: syncPulse 2.2s ease-in-out infinite; }
}
@keyframes syncPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.mark-underline { position: relative; display: inline-block; z-index: 0; }
.mark-underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .08em; height: .18em; z-index: -1;
  background: color-mix(in srgb, var(--hue-amber) 22%, transparent);
  transform-origin: left; transition: transform .5s ease, background-color .4s ease;
}

.cellgrid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5;
}
.hero-glow { position: absolute; width: 720px; height: 560px; pointer-events: none; transition: opacity .8s ease; }
.hero-glow--amber { top: -180px; right: -120px; background: radial-gradient(closest-side, color-mix(in srgb, var(--hue-amber) 7%, transparent), transparent); }
.hero-glow--emerald { bottom: -220px; left: -140px; background: radial-gradient(closest-side, color-mix(in srgb, var(--hue-emerald) 6%, transparent), transparent); }

.code { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; background: var(--code-bg); }
.code__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: var(--code-head);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .08em;
  color: var(--code-com);
}
.code__dots { display: flex; gap: 4px; }
.code__dots span { width: 8px; height: 8px; border-radius: 2px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: var(--nav-h); padding-inline: var(--container-pad);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 26px; height: 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--bg-hover);
  position: relative; transition: background-color .3s, border-color .3s;
}
.brand-mark i {
  position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-faint); transition: transform .3s cubic-bezier(.3,1.4,.5,1), background-color .3s;
}
.is-on .brand-mark { background: color-mix(in srgb, var(--hue-emerald) 18%, transparent); border-color: color-mix(in srgb, var(--hue-emerald) 50%, transparent); }
.is-on .brand-mark i { transform: translateX(10px); background: var(--hue-emerald); }

.nav__links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav__link {
  position: relative; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--text-subtle); font-size: var(--text-ui); font-weight: 500;
  transition: color .1s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 1px;
  background: var(--hue, var(--text)); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: clamp(4rem, 8vw, 6rem);
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__title { font-size: var(--text-hero); line-height: 1.05; overflow-wrap: anywhere; }
.lead { font-size: var(--text-lead); color: var(--text-subtle); max-width: 540px; }
.hero__note { font-size: var(--text-xs); color: var(--text-faint); }

/* Off: the lights are down. On: glows, dot grid and the marker come up. */
.hero .hero-glow { opacity: .15; }
.is-on .hero .hero-glow { opacity: 1; }
.hero .cellgrid { transition: opacity .8s ease; opacity: .25; }
.is-on .hero .cellgrid { opacity: .5; }
/* Green brush stroke behind "on": painted in on load, brighter once switched on. */
.mark-paint { position: relative; display: inline-block; z-index: 0; }
.mark-paint::before {
  content: ''; position: absolute; z-index: -1;
  left: -.12em; right: -.14em; top: .16em; bottom: -.02em;
  background: color-mix(in srgb, var(--hue-emerald) 55%, transparent);
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  transform: rotate(-2deg) scaleX(0); transform-origin: left center;
  animation: paint .75s cubic-bezier(.65, 0, .35, 1) .5s forwards;
  transition: background-color .4s ease;
}
.is-on .mark-paint::before { background: color-mix(in srgb, var(--hue-emerald) 72%, transparent); }
@keyframes paint { to { transform: rotate(-2deg) scaleX(1); } }
:root {
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M5 10Q2 6 8 5L58 3Q98 1 113 5Q119 7 116 11Q120 15 115 19Q119 24 114 29Q117 35 108 35L52 37Q16 39 7 35Q1 32 5 27Q1 23 4 19Q0 14 5 10Z'/%3E%3C/svg%3E");
}

.hero__side { display: flex; flex-direction: column; }
.power { box-shadow: 0 24px 60px -30px rgb(0 0 0 / .8); }
.power__body { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 32px; }
.power__word {
  font-size: clamp(4.5rem, 3rem + 6vw, 8rem); font-weight: 700; line-height: .9; letter-spacing: -.045em;
  color: var(--border-strong);
}
.power__on { color: var(--text-faint); transition: color .35s ease, text-shadow .5s ease; }
.is-on .power__word { color: var(--text-faint); }
.is-on .power__on { color: var(--hue-emerald); text-shadow: 0 0 40px color-mix(in srgb, var(--hue-emerald) 35%, transparent); }

.power__row { display: flex; align-items: center; gap: 20px; padding-top: 24px; border-top: 1px dashed var(--border-dashed); }
.toggle {
  position: relative; flex: none;
  width: 84px; height: 46px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--bg-hover);
  cursor: pointer; padding: 0;
  transition: background-color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.toggle:hover { border-color: var(--text-faint); }
.toggle__knob {
  position: absolute; top: 5px; left: 5px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--text-subtle);
  box-shadow: 0 2px 6px rgb(0 0 0 / .45);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), background-color .25s ease;
}
.toggle[aria-checked="true"] {
  background: color-mix(in srgb, var(--hue-emerald) 16%, transparent);
  border-color: color-mix(in srgb, var(--hue-emerald) 55%, transparent);
}
.toggle[aria-checked="true"] .toggle__knob { transform: translateX(38px); background: var(--hue-emerald); }
:root:not(.is-on) .toggle { animation: nudge 2.4s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 transparent; } 85% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 8%, transparent); } }

.power__state { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.power__label { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--text-caps); }
.power__value { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-md); color: var(--text); }
.power__value .dot { background: var(--text-faint); }
.is-on .power__value .dot { background: var(--ok); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 1px solid var(--border); padding-top: 20px; margin-top: 28px;
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* ---------- namespace ---------- */
.namefield {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap;
  margin: 40px 0 24px; padding: 18px 24px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  cursor: text; transition: border-color .15s ease;
}
.namefield:focus-within { border-color: var(--border-strong); }
.namefield input {
  font: inherit; letter-spacing: inherit; color: var(--text);
  background: none; border: 0; outline: 0; padding: 0; margin: 0;
  width: 4ch; min-width: .5ch; max-width: 100%;
  caret-color: var(--hue-emerald);
}
.namefield__suffix { color: var(--text-faint); font-weight: 500; }
/* A visible caret while the demo types; the real one takes over on focus. */
.namefield__caret {
  align-self: center; flex: none;
  width: 3px; height: .95em; margin: 0 2px 0 1px; border-radius: 2px;
  background: var(--hue-emerald);
  animation: blink 1s steps(1) infinite;
}
.namefield.typing .namefield__caret { animation: none; }
.namefield:focus-within .namefield__caret { display: none; }
.measure { position: absolute; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; }
.namefield__hint { margin-left: auto; align-self: center; letter-spacing: 0; }

.grid-2, .grid-3 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#term {
  flex: 1; min-height: 280px;
  padding: 20px 24px;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.8; color: var(--code-text);
  white-space: pre-wrap; word-break: break-all;
}
#term .c { color: var(--code-com); }
#term .s { color: var(--code-str); }
#term .k { color: var(--code-key); }
#term .f { color: var(--code-fn); }
#term .n { color: var(--code-num); }
#term .cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--code-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.browser { min-width: 0; }
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  margin: 12px; padding: 8px 12px;
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: var(--text-small); color: var(--text-subtle); white-space: nowrap; overflow: hidden;
}
.browser__bar svg { width: 12px; height: 12px; flex: none; color: var(--text-faint); }
.browser__host { overflow: hidden; text-overflow: ellipsis; }
.browser__host b { color: var(--text); font-weight: 700; }

.site { --site-hue: hsl(var(--h, 150) 70% 60%); flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 12px 24px 24px; }
.site__nav { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.site__logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: var(--text-ui); }
.site__mark {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--site-hue) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--site-hue) 45%, transparent);
  color: var(--site-hue);
}
.site__links { display: flex; gap: 10px; }
.site__links i { width: 30px; height: 6px; border-radius: 3px; background: var(--bg-hover); }
.site__chip .dot { background: var(--site-hue); }
.site__h { margin-top: 14px; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text); max-width: 18ch; }
.site__h .b-title { color: var(--site-hue); }
.site__btn { margin-top: 18px; background: var(--bold); color: var(--bold-text); font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 10px; }
.site__cards { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 28px; }
.site__cards i { height: 56px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--border); }
.site.flash { animation: siteIn .4s ease-out; }
@keyframes siteIn { from { opacity: .4; } }

/* ---------- applications ---------- */
.apps { margin-top: 40px; }
.app { gap: 12px; }
.app:hover { border-color: var(--border-strong); }
.app__top { display: flex; align-items: center; justify-content: space-between; }
.app__icon { width: 20px; height: 20px; fill: none; stroke: var(--hue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app h3 { font-size: var(--text-h3); }
.app p { font-size: var(--text-md); }
.app__code {
  display: block; margin-top: auto;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--code-bg); border: 1px solid var(--border);
  font-size: 13px; line-height: 1.65; color: var(--code-text);
  white-space: nowrap; overflow-x: auto;
}
.app__code .k { color: var(--code-key); }
.app__code .s { color: var(--code-str); }
.app__code .f { color: var(--code-fn); }
.app p + .app__code { margin-top: 12px; }

/* ---------- scarcity ---------- */
.scarcity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.facts { margin-top: 32px; display: flex; flex-direction: column; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--border-dashed); }
.facts > div:last-child { border-bottom: 1px dashed var(--border-dashed); }
.facts dt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-caps); padding-top: 3px; }
.facts dd { color: var(--text); font-size: var(--text-md); }

.chart__body { padding: 20px; }
.grid {
  display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: 2px;
  font-family: var(--font-mono); font-size: clamp(7px, .72vw, 9.5px);
}
.cell, .axis-l { aspect-ratio: 1; display: grid; place-items: center; user-select: none; border-radius: 3px; }
.cell { color: #4a4e55; background: var(--bg-sunken); }
.axis-l { color: var(--text-faint); font-weight: 600; }
.grid.scan .cell { animation: blip .5s ease-out both; animation-delay: calc(var(--d) * 1ms); }
@keyframes blip { 30% { background: var(--bg-hover); color: var(--text-subtle); } }
.grid.lit .cell.cross { background: color-mix(in srgb, var(--hue-emerald) 7%, var(--bg-sunken)); color: var(--text-faint); }
.grid.lit .axis-l.hit { color: var(--hue-emerald); }
.cell.on { position: relative; z-index: 1; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), background-color .2s, color .2s; }
.grid.lit .cell.on {
  background: color-mix(in srgb, var(--hue-emerald) 22%, var(--bg-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue-emerald) 60%, transparent);
  color: var(--hue-emerald); font-weight: 700; transform: scale(1.7);
}

/* ---------- faq ---------- */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color .15s ease;
}
.faq__item:hover, .faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  color: var(--text); font-size: 1.0625rem; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; flex: none;
  font-family: var(--font-mono); font-size: 18px; color: var(--text-faint);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; font-size: var(--text-md); max-width: 680px; }

/* ---------- acquire ---------- */
.acquire { overflow: hidden; }
.acquire .cellgrid { opacity: .35; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.acquire__inner {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  max-width: 680px;
}
.acquire h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.125rem); }
.acquire p { font-size: 1.0625rem; }
.acquire .btn-row { justify-content: center; margin-top: 8px; }
.acquire__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; }
.footer__by { font-size: var(--text-ui); color: var(--text-subtle); gap: 10px; }
.footer__by b { color: var(--text); font-weight: 700; }
.brand-logo {
  width: 22px; height: 22px; display: block; flex: none; background: currentColor; color: var(--text);
  -webkit-mask: url('/foxe.svg') center / contain no-repeat; mask: url('/foxe.svg') center / contain no-repeat;
}
.footer__egg { font-size: var(--text-small); color: var(--text-faint); }
.footer__egg code { color: var(--text); background: var(--bg-hover); padding: 2px 6px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__side { max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scarcity { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card--pad { padding: 24px; }
  .power__body { padding: 28px 22px 22px; }
  .namefield { padding: 14px 18px; }
  .namefield__hint { display: none; }
  #term { min-height: 220px; font-size: 13px; padding: 16px 18px; }
  .facts > div { grid-template-columns: 96px 1fr; }
  .grid { font-size: 0; gap: 1.5px; }
  .cell.on { font-size: 7px; }
  .axis-l { font-size: 6.5px; }
  .grid.lit .cell.on { transform: scale(2.2); }
  .stat__value { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
