/* ==========================================================================
   TRENCHIT — style.css
   The whole design system. One file, no imports, no nesting, no @layer.

   Technical databook brutalism: cream paper with a faint graph grid, hard
   1.5px black rules, monospace micro-labels, one editorial serif used big.
   The palette comes off the mark — a lime slab stack with a chrome T — so
   green means live, amber means attention, and nothing else carries colour.
   Dark console panels stand for the machine.

   Deliberate omissions:
     - no prefers-color-scheme. This is printed paper. It stays cream.
     - no border-radius except the LED dots and the wallet pill.
     - no box-shadow except one tight offset on .console and the two 1px
       chrome inner edges the spec asks for (.con-head, .wal-btn).
     - no gradients except the paper grid rules and the LED glow.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01  TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* paper */
  --paper: #efeee6;
  --paper-2: #e6e5da;
  --paper-3: #dedcd0;
  --ink: #111110;
  --ink-2: #45453f;
  --dim: #83837a;

  /* rationed colour — taken from the mark: a lime slab stack with a chrome T.
     green means live, always. --lime-deep is the only green allowed under
     text on cream; --lime and --lime-bright are fills, LEDs and gates. */
  --lime: #a9d436;
  --lime-bright: #c6e85a;
  --lime-soft: #e3efbe;
  --lime-faint: #f0f5e0;
  --lime-deep: #3c6b0f;

  /* the chrome T. a 1px inner edge on the console head and the wallet pill,
     and nowhere else. */
  --chrome: #c8cbc4;      /* reserved: the light half of the T. not painted yet. */
  --chrome-2: #8f938c;

  /* attention, and "local, not on chain" */
  --amber: #f5c842;
  --amber-deep: #8a6404;
  --amber-wash: rgba(245, 200, 66, 0.22);

  /* the machine */
  --panel: #0c0d0b;
  --panel-2: #141613;
  --panel-line: #272a25;
  --panel-dim: #6f7669;
  --panel-text: #d7dcd2;
  --die-bg: #07080a;

  /* type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* micro-label: 10.5px mono, wide tracking, uppercase. used everywhere. */
  --micro: 10.5px;
  --micro-sm: 9.5px;
  --track: 0.16em;
  --track-wide: 0.22em;

  /* metrics */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
  --rule: 1.5px solid var(--ink);
  --rule-soft: 1.5px solid rgba(17, 17, 16, 0.18);
  --rule-panel: 1px solid var(--panel-line);
  --grid-step: 68px;
  --pad: clamp(14px, 2.2vw, 24px);
  --sec-gap: clamp(40px, 6vw, 92px);
}

/* --------------------------------------------------------------------------
   02  RESET + BASE + PAPER GRID
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  /* two 1px rules, 68px apart: graph paper, not a texture. */
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(17, 17, 16, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 16, 0.055) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  background-position: 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  max-width: 100%;
}

img,
canvas {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

b,
strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: var(--rule);
  margin: 0;
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
  font-size: 0.86em;
}

pre {
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime-deep);
  outline-offset: 2px;
}

/* wrapper used by every band of the page */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   03  TYPOGRAPHY PRIMITIVES
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--lime-deep);
}

.display-2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

.display-2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--lime-deep);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.56;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

.kicker {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  border: var(--rule);
  padding: 5px 10px 4px;
  background: var(--paper);
  white-space: nowrap;
}

.footnote {
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--dim);
  text-transform: uppercase;
  margin: 0;
}

/* monospace address / hash / hex run. wraps rather than overflows at 320px. */
.addr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* the pending state: nothing is deployed, and it says so in amber. */
.pending {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border: 1.5px solid var(--amber-deep);
  padding: 3px 8px 2px;
  display: inline-block;
  white-space: nowrap;
}

/* local, not on chain. same amber, different words. */
.is-local {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border: 1.5px solid var(--amber-deep);
  padding: 3px 7px 2px;
  display: inline-block;
  white-space: nowrap;
}

/* something the user got wrong. amber, never red: nothing here is fatal. */
.is-bad {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
  background: var(--amber-wash);
}

.ok {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--lime-deep);
}

/* inline arrow, set in mono so it lines up with labels */
.arr {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--dim);
  padding: 0 0.35em;
}

/* CSS squares. icons are SVG; these are bullets. */
.sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ink);
  vertical-align: 0.06em;
  flex: 0 0 auto;
}

.sq-lime {
  background: var(--lime-deep);
}

/* round only because it is a dot */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex: 0 0 auto;
  vertical-align: 0.04em;
}

.dot-live {
  background: var(--lime-deep);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --------------------------------------------------------------------------
   04  TICKER — black marquee strip, 46s, duplicated set
   -------------------------------------------------------------------------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--rule);
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
  will-change: transform;
}

.ticker-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  padding: 0;
}

.ticker-set > * {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 8px 26px 7px;
  white-space: nowrap;
  color: var(--paper);
}

.ticker-set > *::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--lime-bright);
  flex: 0 0 auto;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   05  NAV + LOGO + BUTTONS
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: none;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: var(--rule);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: auto;
}

/* holds brand/logo-128.png at 28px. the mark is transparent, so the box is
   paper-2 with a hard rule and no tile colour behind it. */
.logo-box {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: var(--rule);
  background: var(--paper-2);
  flex: 0 0 auto;
  overflow: hidden;
}

.logo-box img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.logo-word {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-links a {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 4px 0 3px;
  border-bottom: 1.5px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav .btn {
  flex: 0 0 auto;
}

/* buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 18px 11px;
  border: var(--rule);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.12s linear, color 0.12s linear;
}

.btn svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
}

/* the one lime button on the page: the token is live, the factory is not */
.btn-buy {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}

.btn-buy:hover {
  background: var(--ink);
  color: var(--lime-bright);
  border-color: var(--ink);
}

.btn-sm {
  font-size: var(--micro);
  padding: 8px 12px 7px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  color: var(--dim);
  border-color: rgba(17, 17, 16, 0.35);
  background: var(--paper-2);
  cursor: not-allowed;
}

.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover {
  background: var(--paper-2);
  color: var(--dim);
}

.btn.pending {
  background: var(--amber-wash);
  color: var(--amber-deep);
  border-color: var(--amber-deep);
  cursor: not-allowed;
  font-size: 11px;
  padding: 12px 18px 11px;
}

/* wallet pill + dropdown --------------------------------------------------- */

.wal {
  position: relative;
  flex: 0 0 auto;
}

.wal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1;
  padding: 9px 14px 8px;
  border: var(--rule);
  /* the one pill in the design */
  border-radius: 999px;
  /* the second and last chrome edge */
  box-shadow: inset 0 0 0 1px var(--chrome-2);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

.wal-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.wal-btn .dot {
  width: 7px;
  height: 7px;
}

.wal-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 214px;
  display: none;
  flex-direction: column;
  background: var(--paper);
  border: var(--rule);
}

.wal-menu.is-on {
  display: flex;
}

.wal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  width: 100%;
  padding: 11px 13px 10px;
  border-bottom: var(--rule-soft);
  color: var(--ink);
  background: var(--paper);
}

.wal-item:last-child {
  border-bottom: 0;
}

.wal-item:hover {
  background: var(--lime-soft);
}

.wal-item.pending {
  border: 0;
  border-bottom: var(--rule-soft);
  background: var(--amber-wash);
  color: var(--amber-deep);
  cursor: default;
}

/* --------------------------------------------------------------------------
   06  HERO
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 68px) var(--gutter) clamp(28px, 4vw, 56px);
  border-bottom: var(--rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 22px);
  min-width: 0;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.hero-logo {
  width: clamp(42px, 4.8vw, 62px);
  height: clamp(42px, 4.8vw, 62px);
  display: grid;
  place-items: center;
  background: transparent;
  flex: 0 0 auto;
}

/* the large placement: brand/logo-256.png, never redrawn, never on a tile */
.hero-logo img {
  width: 76%;
  height: 76%;
  display: block;
  object-fit: contain;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  border: var(--rule);
  background: var(--paper);
  margin-top: 4px;
}

.hstat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 13px;
  border-right: var(--rule);
  min-width: 0;
}

.hstat:last-child {
  border-right: 0;
}

.hstat > span {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

.hstat-v {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: var(--rule-soft);
  padding-top: 12px;
  width: 100%;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   07  CONSOLE — the machine. dark panel, the only shadow in the file.
   -------------------------------------------------------------------------- */

.console {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: var(--rule);
  color: var(--panel-text);
  box-shadow: 5px 5px 0 rgba(17, 17, 16, 0.9);
  min-width: 0;
  overflow: hidden;
}

.con-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 9px;
  border-bottom: var(--rule-panel);
  background: var(--panel-2);
  /* chrome, used twice in the whole file: here and on the wallet pill */
  box-shadow: inset 0 1px 0 var(--chrome-2);
  flex-wrap: wrap;
}

.con-tag {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--panel-text);
}

.con-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--lime-bright);
}

.con-live .dot {
  background: var(--lime-bright);
}

.con-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
}

.con-die {
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--die-bg);
  border-bottom: var(--rule-panel);
  min-width: 0;
}

.con-die canvas,
#die {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: var(--die-bg);
}

.die-note {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-dim);
  padding: 8px 14px 7px;
  border-bottom: var(--rule-panel);
  text-align: center;
}

.con-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: var(--rule-panel);
}

.cstat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px 10px;
  border-right: var(--rule-panel);
  min-width: 0;
}

.cstat:last-child {
  border-right: 0;
}

.cstat > span {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--panel-dim);
}

.cv {
  font-family: var(--mono);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--lime-bright);
  overflow-wrap: anywhere;
}

.con-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px 10px;
  background: var(--panel-2);
  flex-wrap: wrap;
}

.con-exec {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--panel-text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.con-exec b {
  color: var(--lime-bright);
  font-weight: 600;
}

.halted {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--amber);
  border: 1.5px solid var(--amber);
  padding: 3px 7px 2px;
  white-space: nowrap;
}

/* LED row ------------------------------------------------------------------ */

.leds {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1d211c;
  border: 1px solid #2f342d;
  flex: 0 0 auto;
}

.led.is-on {
  background: var(--lime-bright);
  border-color: var(--lime-bright);
  background-image: radial-gradient(circle at 35% 32%, #ffffff 0%, var(--lime-bright) 55%, var(--lime-deep) 100%);
}

/* --------------------------------------------------------------------------
   08  STRIP — the four-up figure row
   -------------------------------------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: var(--rule);
}

.cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px 8px;
  padding: clamp(16px, 2.2vw, 26px) var(--pad);
  border-right: var(--rule);
  min-width: 0;
  overflow: hidden;
}

.cell:last-child {
  border-right: 0;
}

.cell-v {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.cell-n {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

/* the faint index numeral. laid out in the grid, never absolutely placed. */
.ghost {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-family: var(--display);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(17, 17, 16, 0.09);
  user-select: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   09  SECTIONS
   -------------------------------------------------------------------------- */

.sec {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sec-gap) var(--gutter);
  border-bottom: var(--rule);
}

.sec-last {
  border-bottom: 0;
}

.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 2.4vw, 34px);
  margin-bottom: clamp(20px, 3vw, 40px);
}

.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 7px 12px 6px;
  white-space: nowrap;
  align-self: start;
}

.pill-n {
  color: var(--lime-bright);
  font-weight: 600;
}

.sec-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.62;
}

.sec-copy b {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10  BAR + CHIPS + CONTROLS
   -------------------------------------------------------------------------- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: var(--rule);
  background: var(--paper);
  margin-bottom: clamp(16px, 2vw, 26px);
}

.bar-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px 9px;
  border-right: var(--rule);
  min-width: 0;
  flex: 1 1 auto;
}

.bar-cell:last-child {
  border-right: 0;
}

.bar-cell > span {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

.bar-v {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px 6px;
  border: var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  white-space: nowrap;
}

.chip:hover {
  background: var(--lime-soft);
  color: var(--ink);
}

.chip.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   11  SPLIT + CARDS
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}

.split-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  border: var(--rule);
  background: var(--paper);
  min-width: 0;
}

.card-pad {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 9px;
  border-bottom: var(--rule);
  background: var(--paper-2);
  flex-wrap: wrap;
}

.card-head-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 0 8px;
  border-bottom: var(--rule-soft);
  margin-bottom: 4px;
}

.ck {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}

.ck-dim {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

.card-copy {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0;
}

.card-copy b {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   12  REGISTER FILE
   -------------------------------------------------------------------------- */

.registers {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: var(--rule);
  border-left: var(--rule);
}

.reg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px 8px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--paper);
  min-width: 0;
  transition: background-color 0.2s linear;
}

.reg-name {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.reg-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.reg.just-changed {
  animation: regflash 0.5s ease-out 1;
}

@keyframes regflash {
  0% { background: var(--lime); }
  100% { background: var(--paper); }
}

/* --------------------------------------------------------------------------
   13  ROM LISTING
   -------------------------------------------------------------------------- */

.listing {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  border-top: var(--rule);
  background: var(--paper);
}

.line {
  display: grid;
  grid-template-columns: 5ch 8ch minmax(0, 1fr);
  gap: 10px;
  padding: 3px 12px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.08);
  white-space: nowrap;
  color: var(--ink);
}

.line .addr {
  font-size: 12.5px;
  color: var(--dim);
  overflow-wrap: normal;
}

.line .word {
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.line.is-pc {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.line.is-pc .addr,
.line.is-pc .word {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   14  WORKBENCH — the in-browser assembler
   -------------------------------------------------------------------------- */

.workbench {
  display: flex;
  flex-direction: column;
  border: var(--rule);
  background: var(--paper);
  margin-top: clamp(16px, 2.2vw, 28px);
  min-width: 0;
}

.wb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 9px;
  border-bottom: var(--rule);
  background: var(--paper-2);
  flex-wrap: wrap;
}

.wb-editor {
  display: block;
  width: 100%;
  min-height: 250px;
  resize: vertical;
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: var(--panel-text);
  background: var(--panel);
  border: 0;
  border-bottom: var(--rule);
  outline-offset: -3px;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}

.wb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: var(--rule);
}

.wb-run {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1;
  padding: 11px 18px 10px;
  border: var(--rule);
  background: var(--ink);
  color: var(--paper);
}

.wb-run:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
}

.tag-incoming {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: var(--micro-sm);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--lime-deep);
  background: var(--lime-soft);
  border: 1.5px solid var(--lime-deep);
  padding: 4px 8px 3px;
  white-space: nowrap;
}

.wb-out {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 11px 14px;
  min-height: 42px;
  background: var(--paper);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wb-out b {
  color: var(--ink);
}

.wb-out.ok {
  color: var(--lime-deep);
  background: var(--lime-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.wb-out.is-bad {
  color: var(--amber-deep);
  background: var(--amber-wash);
}

/* --------------------------------------------------------------------------
   15  BAND — the second marquee, serif and mono alternating
   -------------------------------------------------------------------------- */

.band {
  overflow: hidden;
  width: 100%;
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: var(--paper-2);
  padding: clamp(10px, 1.4vw, 16px) 0;
}

.band-track {
  display: flex;
  width: max-content;
  animation: marquee 62s linear infinite;
  will-change: transform;
}

.band-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.band-set > * {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 30px);
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.band-set > *:nth-child(even) {
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   16  STEPS — the five-stage fabrication row
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--pad);
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--ink-2);
  min-width: 0;
}

.steps li b {
  display: block;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}

.steps li.pending {
  background: var(--amber-wash);
  border: 0;
  border-right: var(--rule);
  border-bottom: var(--rule);
  color: var(--amber-deep);
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  padding: var(--pad);
}

.step-n {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  color: var(--paper);
  background: var(--ink);
  width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   17  NOTE — mint panel with a heavy heading
   -------------------------------------------------------------------------- */

.note {
  border: var(--rule);
  background: var(--lime-soft);
  padding: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note h3,
.note h4 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.note p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   18  TABLES — the opcode table
   -------------------------------------------------------------------------- */

.table-wrap {
  border: var(--rule);
  background: var(--paper);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.isa {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
}

.isa th {
  text-align: left;
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 9px 12px 8px;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.isa td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.12);
  color: var(--ink-2);
  vertical-align: top;
}

.isa tbody tr:last-child td {
  border-bottom: 0;
}

.isa tbody tr:hover td {
  background: var(--lime-soft);
  color: var(--ink);
}

.isa td:first-child {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.isa td b {
  color: var(--ink);
  font-weight: 600;
}

/* costs table shares the frame, different rhythm */
.costs {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  border: var(--rule);
  background: var(--paper);
}

.costs th {
  text-align: left;
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
  padding: 9px 12px 8px;
  border-bottom: var(--rule);
  white-space: nowrap;
}

.costs td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.12);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.costs tr:last-child td {
  border-bottom: 0;
}

.costs td:last-child,
.costs th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   19  ROWS — the deployment table
   -------------------------------------------------------------------------- */

.rows {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  margin: 0;
  border-top: var(--rule);
}

.rows dt {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 14px 11px;
  border-bottom: var(--rule);
  border-right: var(--rule);
  min-width: 0;
}

.rows dd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 11px 14px 10px;
  border-bottom: var(--rule);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   20  LAUNCHPAD — mint form, emission maths, chip card
   -------------------------------------------------------------------------- */

.mintgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}

.mintform {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: var(--rule);
  background: var(--paper);
  padding: clamp(16px, 2.2vw, 26px);
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-k {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px 9px;
  border: var(--rule);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  min-width: 0;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime-deep);
  outline: none;
  background: var(--lime-faint);
}

.field-note {
  font-family: var(--mono);
  font-size: var(--micro-sm);
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--dim);
}

.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea {
  border-color: var(--amber-deep);
  background: var(--amber-wash);
}

.field.is-bad .field-note {
  color: var(--amber-deep);
}

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

.drop {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: clamp(18px, 3vw, 30px) 14px;
  border: 1.5px dashed var(--ink);
  background: var(--paper-3);
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

.drop:hover,
.drop.is-on {
  background: var(--lime-soft);
  border-color: var(--lime-deep);
}

.drop img,
.drop svg {
  max-width: 76px;
  max-height: 76px;
  display: block;
}

.drop-text {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.7;
}

.emission {
  display: flex;
  flex-direction: column;
  border: var(--rule);
  background: var(--paper-2);
}

.em-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px 8px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.12);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  min-width: 0;
}

.em-row:last-child {
  border-bottom: 0;
}

.em-row > span:first-child {
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

.em-row > span:last-child {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.em-break {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
}

.em-break > span:first-child,
.em-break > span:last-child {
  color: var(--paper);
}

.chipcard {
  display: flex;
  flex-direction: column;
  border: var(--rule);
  background: var(--paper);
  min-width: 0;
}

.chip-preview {
  display: block;
  width: 100%;
  background: var(--die-bg);
  border-bottom: var(--rule);
  min-width: 0;
  line-height: 0;
}

.chip-preview svg,
.chip-preview img,
.chip-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.chipcard.is-local {
  border: 0;
  border: 1.5px solid var(--amber-deep);
  background: var(--paper);
  padding: 0;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  display: flex;
}

/* the live chip grid on /launchpad */
.agentgrid,
.mintgrid .chipcard {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   21  POWER — the tick card
   -------------------------------------------------------------------------- */

.power {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: var(--rule);
  background: var(--paper);
  padding: clamp(16px, 2.2vw, 26px);
  min-width: 0;
}

.power-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.byte-in {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
  min-width: 0;
}

.byte-in input {
  width: 100%;
  padding: 11px 12px 10px;
  border: var(--rule);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.byte-in input:focus {
  border-color: var(--lime-deep);
  outline: none;
  background: var(--lime-faint);
}

.byte-label {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
}

.cli {
  border: var(--rule);
  background: var(--panel);
  color: var(--panel-text);
  font-family: var(--mono);
  font-size: 12px;
  min-width: 0;
}

.cli > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px 9px;
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--panel-text);
  background: var(--panel-2);
}

.cli > summary::-webkit-details-marker {
  display: none;
}

.cli > summary::before {
  content: "+ ";
  color: var(--lime-bright);
}

.cli[open] > summary::before {
  content: "- ";
}

.cli pre {
  padding: 13px 14px;
  border-top: var(--rule-panel);
  line-height: 1.62;
  color: var(--panel-text);
  overflow-x: auto;
}

.cli pre b {
  color: var(--lime-bright);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   22  ARTFRAME — the engraved plates
   -------------------------------------------------------------------------- */

.artframe {
  display: flex;
  flex-direction: column;
  border: var(--rule);
  background: var(--paper-2);
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  min-width: 0;
}

.artframe img,
.artframe svg {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: var(--rule);
  background: var(--paper);
}

.artframe figcaption {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
  padding: 9px 13px 8px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   23  AGENTS — api reference + terminal
   -------------------------------------------------------------------------- */

.agentgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}

.api {
  display: flex;
  flex-direction: column;
  border-top: var(--rule);
  min-width: 0;
}

.api-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 10px 18px;
  padding: 12px 0 11px;
  border-bottom: var(--rule-soft);
  align-items: baseline;
  min-width: 0;
}

.api-row > code,
.api-row > :first-child {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.api-row > :last-child {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}

.api-row:hover {
  background: var(--lime-faint);
}

/* the live console you can type into */
.term {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: var(--rule);
  color: var(--panel-text);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.62;
  min-width: 0;
  min-height: 320px;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: auto;
  padding: 12px 14px;
  gap: 2px;
}

.term input {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--lime-bright);
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  padding: 2px 0;
  caret-color: var(--lime-bright);
}

.term-line {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--panel-dim);
  min-width: 0;
}

.term-line b {
  color: var(--panel-text);
  font-weight: 500;
}

/* what the operator typed */
.term-line.is-on {
  color: var(--panel-text);
}

.term-line.is-on::before {
  content: "> ";
  color: var(--lime-bright);
}

.term-line.ok {
  color: var(--lime-bright);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 400;
}

.term-line.is-bad {
  color: var(--amber);
  background: transparent;
  border: 0;
}

.term-line.is-local {
  color: var(--amber);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  display: block;
  white-space: pre-wrap;
}

.term-line.pending {
  color: var(--amber);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  display: block;
  white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   24  FOOTER
   -------------------------------------------------------------------------- */

.footer {
  border-top: var(--rule);
  background: var(--paper);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px) var(--gutter) clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 30px);
}

.f-word {
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 168px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}

.f-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: var(--rule);
  padding-top: 14px;
}

.f-link {
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
}

.f-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==========================================================================
   25  RESPONSIVE — 1100 / 1000 / 900 / 860 / 720 / 560 / 460
   ========================================================================== */

@media (max-width: 1100px) {
  :root {
    --grid-step: 60px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  }

  .api-row {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .console {
    order: 2;
  }

  .agentgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mintgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  /* nav links go away; the mark, wallet and X link stay */
  .nav-links {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cell:nth-child(2) {
    border-right: 0;
  }

  .cell:nth-child(1),
  .cell:nth-child(2) {
    border-bottom: var(--rule);
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .registers {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .api-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 720px) {
  :root {
    --grid-step: 52px;
  }

  .registers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .con-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cstat:nth-child(2) {
    border-right: 0;
  }

  .cstat:nth-child(1),
  .cstat:nth-child(2) {
    border-bottom: var(--rule-panel);
  }

  .rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .rows dt {
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .rows dd {
    padding-top: 6px;
  }

  .field-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing {
    max-height: 320px;
  }
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .hstat {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .hstat:last-child {
    border-bottom: 0;
  }

  .bar-cell {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .bar-cell:last-child {
    border-bottom: 0;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .f-mid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .line {
    grid-template-columns: 4ch 7ch minmax(0, 1fr);
    gap: 8px;
    padding: 3px 9px;
  }
}

@media (max-width: 460px) {
  :root {
    --grid-step: 44px;
    --micro: 10px;
  }

  .registers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .cell:last-child {
    border-bottom: 0;
  }

  .ghost {
    display: none;
  }

  .con-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .cstat {
    border-right: 0;
    border-bottom: var(--rule-panel);
  }

  .cstat:last-child {
    border-bottom: 0;
  }

  .con-die {
    padding: 8px;
  }

  .band-set > * {
    padding: 0 14px;
  }

  .wal-menu {
    right: auto;
    left: 0;
    min-width: 190px;
  }

  .term {
    min-height: 260px;
    padding: 10px;
  }
}

/* 320px floor: nothing may push the page sideways. */
@media (max-width: 360px) {
  :root {
    --gutter: 14px;
  }

  .nav {
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo-word {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .wal-btn {
    padding: 8px 10px 7px;
  }

  .btn {
    padding: 10px 12px 9px;
  }

  .f-word {
    font-size: 42px;
  }
}

/* ==========================================================================
   26  MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track,
  .band-track {
    animation: none;
    transform: none;
  }

  .dot-live,
  .reg.just-changed,
  .con-die,
  .con-die canvas,
  #die {
    animation: none;
  }

  .reg {
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* ==========================================================================
   27  PRINT — a datasheet. no console, no marquees.
   ========================================================================== */

@media print {
  body {
    background: #ffffff;
    background-image: none;
    color: #000000;
    font-size: 11pt;
    line-height: 1.5;
  }

  .ticker,
  .band,
  .console,
  .term,
  .cli,
  .wal,
  .nav-links,
  .controls,
  .chips,
  .wb-editor,
  .wb-bar,
  .drop,
  .cta-row {
    display: none;
  }

  .nav {
    position: static;
    border-bottom: 1pt solid #000000;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12pt;
    padding-bottom: 12pt;
  }

  .sec {
    padding: 14pt 0;
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  .isa {
    min-width: 0;
    font-size: 8.5pt;
  }

  .listing {
    max-height: none;
    overflow: visible;
  }

  .display {
    font-size: 26pt;
  }

  .display-2 {
    font-size: 17pt;
  }

  .f-word {
    font-size: 30pt;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--mono);
    font-size: 7pt;
    color: #444444;
  }
}
