/* Rinder, pixel edition. The reference layout (floating nav, hero card over
   art, slate stripe dividers, sticky stepper, blue analyzer panel, card grid,
   curtain footer) redrawn as a pixel UI: stepped corners, hard bevels, pixel
   type, dithered surfaces and stepped motion. */

@font-face { font-family: "ppmondwest"; src: url("../fonts/pp-mondwest.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "ppmondwest Fallback"; src: local("Arial"); ascent-override: 88.47%; descent-override: 26.55%; line-gap-override: 4.43%; size-adjust: 90.41%; }

:root {
  --font-sans: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "ppmondwest", "ppmondwest Fallback", Georgia, serif;
  --font-pixel: "Silkscreen", "Pixelify Sans", ui-monospace, monospace;
  --font-mono: "VT323", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Paper and ink, from the reference */
  --paper: #fefffc;
  --paper-2: #f5f7f2;
  --neutral-300: #e7ebe6;
  --stroke: #d3d8d3;
  --neutral-500: #c2c7c3;
  --neutral-600: #a3a9a4;
  --neutral-700: #5e615f;
  --neutral-800: #3f3d3d;
  --neutral-900: #2c2c2c;
  --ink: #171717;

  /* Night, for the art, chain band and dark panels */
  --night: #0b1414;
  --night-2: #122020;
  --night-3: #1a2b2b;
  --night-line: rgba(207, 211, 207, 0.16);
  --cream: #f3f5f2;
  --cream-60: rgba(254, 255, 252, 0.62);

  /* Stripe ramps from the reference */
  --slate-1: #334444;
  --slate-2: #576a6a;
  --slate-3: #728383;
  --slate-4: #a5afaf;
  --slate-5: #cfd3cf;
  --mint-1: #e7f5f3;
  --mint-2: #cfebe8;
  --mint-3: #a0d7d1;

  /* The reference panel blue, plus the Rinder lime for pixel highlights */
  --accent: #0081c0;
  --accent-2: #006da3;
  --accent-line: #41a1cf;
  --accent-ink: #0a5f8c;
  --lime: #c0ff01;
  --lime-ink: #5c7a00;

  /* Verification states: shape carries meaning, colour stays quiet */
  --v-verified: #2d6a64;
  --v-partial: #4f7690;
  --v-stale: #9a7b45;
  --v-unverified: #8e938e;
  --v-verified-dark: #a0d7d1;
  --v-partial-dark: #9dc0d6;
  --v-stale-dark: #d7b97f;
  --v-unverified-dark: #9aa19a;

  /* Stepped motion: pixel UIs move in frames, not curves */
  --ease: steps(4, end);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: 20px;
  --pad-y: 112px;

  /* Pixel patterns */
  --grid: linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px) 0 0 / 16px 16px;
  --grid-dark: linear-gradient(rgba(207, 211, 207, 0.05) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, rgba(207, 211, 207, 0.05) 1px, transparent 1px) 0 0 / 16px 16px;
}
@media (min-width: 768px) { :root { --pad-x: 32px; --pad-y: 152px; } }
@media (min-width: 1280px) { :root { --pad-x: 48px; --pad-y: 192px; } }
@media (min-width: 1536px) { :root { --pad-x: 120px; --pad-y: 212px; } }

/* ---------- Pixel frame system ----------
   Stair: a mask of three overlapping bands cuts two stepped corners of --u, a --u ring in --bc and a --bg fill.
   Notch: two bands leave one missing corner pixel, ring drawn by the element itself. */
.hero__card::before, .search__results, .analyzer, .result, .fig__frame, .fig__inner, .explorer__inner,
.card, .map, .contrast, .event__card, .categories__grid, .mini, .toast, .card__caption, .menu nav, .map__scroll {
  --u: 3px;
  -webkit-mask: linear-gradient(#000 0 0) 0 calc(var(--u) * 2) / 100% calc(100% - var(--u) * 4) no-repeat, linear-gradient(#000 0 0) calc(var(--u) * 2) 0 / calc(100% - var(--u) * 4) 100% no-repeat, linear-gradient(#000 0 0) var(--u) var(--u) / calc(100% - var(--u) * 2) calc(100% - var(--u) * 2) no-repeat;
  mask: linear-gradient(#000 0 0) 0 calc(var(--u) * 2) / 100% calc(100% - var(--u) * 4) no-repeat, linear-gradient(#000 0 0) calc(var(--u) * 2) 0 / calc(100% - var(--u) * 4) 100% no-repeat, linear-gradient(#000 0 0) var(--u) var(--u) / calc(100% - var(--u) * 2) calc(100% - var(--u) * 2) no-repeat;
  background:
    linear-gradient(var(--bc) 0 0) var(--u) var(--u) / var(--u) var(--u) no-repeat,
    linear-gradient(var(--bc) 0 0) right var(--u) top var(--u) / var(--u) var(--u) no-repeat,
    linear-gradient(var(--bc) 0 0) left var(--u) bottom var(--u) / var(--u) var(--u) no-repeat,
    linear-gradient(var(--bc) 0 0) right var(--u) bottom var(--u) / var(--u) var(--u) no-repeat,
    var(--bg);
  box-shadow: inset 0 0 0 var(--u) var(--bc), var(--bevel, 0 0 #0000);
}
.btn, .cap, .hint, .search::before, .search__kbd, .ca__copy, .tag, .pill, .analyze__input, .sr, .sr__icon, .result__icon,
.ent, .chip, .filter, .event__icon, .event__entity, .verb, .social, .skip, .hero__tag, .iconbtn, .nav__toggle, .ticks--steps button i {
  --n: 2px;
  -webkit-mask: linear-gradient(#000 0 0) 0 var(--n) / 100% calc(100% - var(--n) * 2) no-repeat, linear-gradient(#000 0 0) var(--n) 0 / calc(100% - var(--n) * 2) 100% no-repeat;
  mask: linear-gradient(#000 0 0) 0 var(--n) / 100% calc(100% - var(--n) * 2) no-repeat, linear-gradient(#000 0 0) var(--n) 0 / calc(100% - var(--n) * 2) 100% no-repeat;
}

/* Dither: a 2px checkerboard, the pixel artist's 50% transparency */
.dither, .hero__card::after {
  background-image: conic-gradient(var(--dc, rgba(0, 0, 0, 0.35)) 25%, transparent 0 50%, var(--dc, rgba(0, 0, 0, 0.35)) 0 75%, transparent 0);
  background-size: 4px 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1920px) { body { border-left: 2px solid var(--stroke); border-right: 2px solid var(--stroke); max-width: 120rem; margin: auto; } }
img, canvas, svg { display: block; max-width: 100%; }
svg { shape-rendering: crispEdges; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
code, pre, kbd { font-family: var(--font-mono); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px dashed var(--accent-line); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--ink); color: var(--paper); font-family: var(--font-pixel); font-size: 11px; box-shadow: inset 0 0 0 2px var(--lime); transition: top 0.2s steps(3); }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--neutral-900);
  font-kerning: none;
  font-feature-settings: "liga" off;
  text-wrap: balance;
}
@media (min-width: 640px) { .display { font-size: 30px; } }
@media (min-width: 768px) { .display { font-size: 34px; line-height: 1.08; letter-spacing: -0.6px; } }
@media (min-width: 1024px) { .display { font-size: 42px; letter-spacing: -0.8px; } }
@media (min-width: 1280px) { .display { font-size: 50px; } }
.display--light { color: var(--paper); text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45); }
.display--muted { color: var(--neutral-900); }

.lede { font-size: 16px; color: var(--neutral-700); max-width: 360px; }
.label { font-family: var(--font-pixel); font-size: 10px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-700); }
.label--light { color: var(--cream-60); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream-60); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--lime); flex: none; }
.section .eyebrow, .api .eyebrow { color: var(--neutral-700); }
.section .eyebrow::before, .api .eyebrow::before { background: var(--accent); }
.eyebrow--light { color: rgba(254, 255, 252, 0.8) !important; }

/* Word reveal, redone as a pixel dissolve: words drop in on a frame clock */
[data-words] .w { display: inline-block; white-space: pre; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.4s steps(4, end), transform 0.4s steps(4, end); transition-delay: calc(var(--i) * 60ms); }
[data-words].is-in .w { opacity: 1; transform: none; }
[data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 0.6s steps(5, end), transform 0.6s steps(5, end); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Buttons and links: bevelled pixel keys ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px 0 16px;
  font-family: var(--font-pixel); font-size: 11px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  transition: transform 0.08s steps(1), filter 0.15s steps(2);
}
.btn:active { transform: translateY(2px); }
.btn--dark {
  color: #fff; background: #1f1f29;
  box-shadow: inset 0 0 0 2px #0c0c12, inset 2px 2px 0 2px rgba(255, 255, 255, 0.14), inset -2px -2px 0 2px rgba(0, 0, 0, 0.5);
}
.btn--dark:hover { background: #2a2a38; }
.btn--dark:hover .cap { background: var(--lime); color: var(--ink); }
.btn--glass {
  color: var(--ink); background: var(--lime);
  box-shadow: inset 0 0 0 2px #0c1a02, inset 2px 2px 0 2px rgba(255, 255, 255, 0.55), inset -2px -4px 0 2px rgba(60, 90, 0, 0.35);
}
.btn--glass:hover { filter: brightness(1.06); }
.btn--glass:active { box-shadow: inset 0 0 0 2px #0c1a02, inset 2px 4px 0 2px rgba(60, 90, 0, 0.3); }

/* The arrow key cap, with the reference's slideOut loop stepped */
.cap { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 18px; padding: 0 2px 0 3px; background: rgba(255, 255, 255, 0.14); color: currentColor; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); overflow: hidden; flex: none; }
.cap--dark { background: rgba(0, 0, 0, 0.06); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3); }
.cap--light { background: rgba(0, 0, 0, 0.12); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.55); }
.cap svg { width: 6px; height: 10px; }
a:hover .cap svg, button:hover .cap svg { animation: slideOut 0.8s steps(6, end) infinite; }
@keyframes slideOut { 0% { opacity: 1; transform: translate(0); } 45% { opacity: 0; transform: translate(100%); } 46% { opacity: 0; transform: translate(-100%); } 100% { opacity: 1; transform: translate(0); } }

.link { display: inline-flex; align-items: center; gap: 10px; height: 36px; color: var(--neutral-800); align-self: flex-start; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.link__text { padding-bottom: 3px; background: repeating-linear-gradient(90deg, var(--neutral-700) 0 4px, transparent 4px 6px) left bottom / 100% 2px no-repeat; }
.link:hover { color: var(--ink); }
.link:hover .link__text { background: linear-gradient(var(--ink) 0 0) left bottom / 100% 2px no-repeat; }
.link:hover .cap { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.footer .link { align-self: center; }

/* ---------- Brand logo: lockup on small screens, mark in the desktop bar ---------- */
.brand { position: relative; display: block; width: 94px; height: 26px; }
.brand img { position: absolute; left: 0; top: 0; height: 26px; width: auto; transition: opacity 0.2s steps(2); }
.brand__mark { display: none; }
.brand__l { opacity: 0; }
.nav.is-light .brand__d { opacity: 0; }
.nav.is-light .brand__l { opacity: 1; }
@media (min-width: 1024px) {
  .brand { width: 34px; height: 34px; }
  .brand__lockup { display: none; }
  .brand__mark { display: block; left: 5px; top: 4px; }
}
.footer__logo { display: block; height: 42px; width: auto; margin: 0 auto 32px; }
.curtain__brand { display: inline-flex; align-items: center; gap: 8px; }
.curtain__brand img { width: 15px; height: 16px; }

/* ---------- Pixel icons (built in JS from bitmaps) ---------- */
.pixicon { display: inline-block; width: 36px; height: 16px; color: var(--slate-5); }
.pixicon svg { width: 100%; height: 100%; }
.pixicon--light { color: rgba(255, 255, 255, 0.92); width: 26px; height: 18px; }

/* ---------- Tags and state glyphs ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-700); background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--stroke); }
.tag--demo::before { content: ""; width: 6px; height: 6px; background: var(--v-stale); animation: blink 1.6s steps(1) infinite; }
.tag--onDark { color: var(--cream-60); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 2px var(--night-line); }
.tag--onDark::before { background: var(--v-stale-dark); }

/* Classification: pixel label + 3x3 pixel glyph. Payment family gets the accent. */
.cls { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-800); white-space: nowrap; }
.cls__glyph { display: grid; grid-template-columns: repeat(3, 3px); gap: 1px; flex: none; }
.cls__glyph i { width: 3px; height: 3px; background: currentColor; opacity: 0.14; }
.cls__glyph i.on { opacity: 1; }
.cls--pay .cls__glyph { color: var(--accent); }
.cls--other .cls__glyph { color: var(--neutral-800); }
.cls--unknown .cls__glyph { color: var(--neutral-600); }
.on-dark .cls { color: var(--cream); }
.on-dark .cls--other .cls__glyph { color: var(--cream); }
.on-dark .cls--pay .cls__glyph { color: var(--lime); }

/* Verification: a pixel ring whose completeness is the state */
.vb { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--vc); }
.vb svg { width: 14px; height: 14px; flex: none; }
.vb--VERIFIED { --vc: var(--v-verified); }
.vb--PARTIALLY_VERIFIED { --vc: var(--v-partial); }
.vb--STALE { --vc: var(--v-stale); }
.vb--UNVERIFIED { --vc: var(--v-unverified); }
.vb--NONE { --vc: var(--neutral-600); }
.on-dark .vb--VERIFIED { --vc: var(--v-verified-dark); }
.on-dark .vb--PARTIALLY_VERIFIED { --vc: var(--v-partial-dark); }
.on-dark .vb--STALE { --vc: var(--v-stale-dark); }
.on-dark .vb--UNVERIFIED { --vc: var(--v-unverified-dark); }

/* Confidence: signal bars. Quantity, never colour. */
.cb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-800); white-space: nowrap; }
.cb__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.cb__bars i { width: 3px; background: currentColor; opacity: 0.18; }
.cb__bars i:nth-child(1) { height: 4px; }
.cb__bars i:nth-child(2) { height: 8px; }
.cb__bars i:nth-child(3) { height: 12px; }
.cb__bars i.on { opacity: 1; }
.on-dark .cb { color: var(--cream); }

/* ---------- Pixel panels (the reference's glass, redrawn) ---------- */
.glass { color: #fff; }
.glass-light { color: var(--neutral-900); }

/* ---------- Navigation ---------- */
.nav { position: fixed; z-index: 112; top: 0; left: 0; right: 0; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 20px;
  color: #fff;
  background: rgba(11, 20, 20, 0.72);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12);
  transition: color 0.2s steps(2), background-color 0.2s steps(2);
}
@media (min-width: 1024px) {
  .nav { top: 16px; left: 50%; right: auto; transform: translateX(-50%); }
  .nav__inner {
    --u: 3px; padding: 8px 10px 8px 12px;
    background:
      linear-gradient(var(--nb) 0 0) var(--u) var(--u) / var(--u) var(--u) no-repeat,
      linear-gradient(var(--nb) 0 0) right var(--u) top var(--u) / var(--u) var(--u) no-repeat,
      linear-gradient(var(--nb) 0 0) left var(--u) bottom var(--u) / var(--u) var(--u) no-repeat,
      linear-gradient(var(--nb) 0 0) right var(--u) bottom var(--u) / var(--u) var(--u) no-repeat,
      var(--nf);
    --nb: rgba(255, 255, 255, 0.28); --nf: rgba(11, 20, 20, 0.74);
    box-shadow: inset 0 0 0 var(--u) var(--nb), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
    -webkit-mask: linear-gradient(#000 0 0) 0 calc(3px * 2) / 100% calc(100% - 3px * 4) no-repeat, linear-gradient(#000 0 0) calc(3px * 2) 0 / calc(100% - 3px * 4) 100% no-repeat, linear-gradient(#000 0 0) 3px 3px / calc(100% - 3px * 2) calc(100% - 3px * 2) no-repeat;
    mask: linear-gradient(#000 0 0) 0 calc(3px * 2) / 100% calc(100% - 3px * 4) no-repeat, linear-gradient(#000 0 0) calc(3px * 2) 0 / calc(100% - 3px * 4) 100% no-repeat, linear-gradient(#000 0 0) 3px 3px / calc(100% - 3px * 2) calc(100% - 3px * 2) no-repeat;
  }
}
.nav.is-light .nav__inner { color: var(--neutral-900); background: rgba(254, 255, 252, 0.9); box-shadow: inset 0 -2px 0 var(--stroke); }
@media (min-width: 1024px) {
  .nav.is-light .nav__inner {
    --nb: var(--ink); --nf: rgba(254, 255, 252, 0.94);
    background:
      linear-gradient(var(--nb) 0 0) 3px 3px / 3px 3px no-repeat,
      linear-gradient(var(--nb) 0 0) right 3px top 3px / 3px 3px no-repeat,
      linear-gradient(var(--nb) 0 0) left 3px bottom 3px / 3px 3px no-repeat,
      linear-gradient(var(--nb) 0 0) right 3px bottom 3px / 3px 3px no-repeat,
      var(--nf);
    box-shadow: inset 0 0 0 3px var(--nb), inset 0 -6px 0 rgba(0, 0, 0, 0.06);
  }
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__links { display: none; gap: 4px; align-items: center; }
.nav__links a { position: relative; padding: 8px 10px; font-size: 15px; }
.nav__links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.2s steps(4); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav.is-light .btn--dark { color: #fff; }
.nav__toggle { position: relative; width: 38px; height: 38px; display: grid; place-items: center; align-content: center; gap: 4px; box-shadow: inset 0 0 0 2px currentColor; }
.nav__toggle span { display: block; width: 16px; height: 2px; background: currentColor; transition: transform 0.2s steps(2); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 1024px) { .nav__toggle { display: none; } }
.menu { position: fixed; inset: 0; z-index: 110; padding: 88px 16px 32px; background: rgba(11, 20, 20, 0.94); background-image: var(--grid-dark); animation: fadeIn 0.2s steps(3); }
.menu nav { --bc: rgba(255, 255, 255, 0.22); --bg: var(--night-2); display: flex; flex-direction: column; padding: 12px 20px; }
.menu a { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 32px; letter-spacing: -0.4px; color: var(--paper); padding: 10px 0; background: repeating-linear-gradient(90deg, var(--night-line) 0 4px, transparent 4px 8px) left bottom / 100% 2px no-repeat; }
.menu a:last-child { background: none; }
.menu a::after { content: ""; width: 8px; height: 8px; background: var(--lime); opacity: 0; }
.menu a:hover::after, .menu a:focus-visible::after { opacity: 1; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: max(820px, calc(100svh + 220px));
  color: #fff;
  background: var(--night);
  overflow: clip;
  isolation: isolate;
}
@media (min-width: 1024px) { .hero { min-height: max(900px, calc(100svh + 36vh)); } }
.hero__art { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.hero__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero__tags { display: none; }
@media (min-width: 1200px) { .hero__tags { display: block; } }
.hero__tag {
  position: absolute; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 8px;
  font-family: var(--font-pixel); font-size: 9.5px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: rgba(243, 245, 242, 0.72);
  background: rgba(10, 19, 19, 0.82);
  box-shadow: inset 0 0 0 2px rgba(207, 211, 207, 0.16);
  transition: color 0.5s steps(3), box-shadow 0.5s steps(3), background-color 0.5s steps(3);
}
.hero__tag.is-hit { color: #fff; background: rgba(var(--c), 0.18); box-shadow: inset 0 0 0 2px rgb(var(--c)); transition-duration: 0.06s; }
.hero__glyph { display: grid; grid-template-columns: repeat(3, 3px); gap: 1px; flex: none; }
.hero__glyph i { width: 3px; height: 3px; background: rgb(var(--c)); opacity: 0.18; }
.hero__glyph i.on { opacity: 1; }
/* A stepped shade instead of a smooth gradient: bands, like a limited palette */
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 20, 20, 0.3) 0 6%, rgba(11, 20, 20, 0.15) 6% 14%, transparent 14% 64%, rgba(11, 20, 20, 0.18) 64% 76%, rgba(11, 20, 20, 0.36) 76% 88%, rgba(11, 20, 20, 0.55) 88%); }
.hero__title {
  position: relative; z-index: 2;
  max-width: 24ch; margin: 0 auto; padding: 96px 20px 0;
  font-family: var(--font-display); font-weight: 400; text-align: center;
  font-size: 20px; line-height: 1.2; letter-spacing: -0.6px;
  font-kerning: none; font-feature-settings: "liga" off;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
}
@media (min-width: 640px) { .hero__title { font-size: 26px; } }
@media (min-width: 768px) { .hero__title { padding-top: 116px; } }
@media (min-width: 1024px) { .hero__title { font-size: 30px; } }
@media (min-width: 1920px) { .hero__title { font-size: 34px; } }
.hero__title .w:first-child { color: var(--lime); letter-spacing: 0.02em; }

.hero__clock { position: absolute; top: 24px; right: 16px; z-index: 103; display: none; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 19px; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.hero__compass { color: var(--paper); transition: transform 1s steps(8); margin-bottom: 2px; }
.hero__zone, .hero__cluster { color: rgba(255, 255, 255, 0.6); }
.hero__cluster::before { content: "·"; margin-right: 10px; }
@media (min-width: 768px) { .hero__clock { display: flex; } }
@media (min-width: 1024px) { .hero__clock { top: 30px; right: 24px; } }

.hero__aside { position: absolute; right: 0; bottom: 0; z-index: 2; display: none; flex-direction: column; align-items: flex-end; gap: 12px; padding: 18px 40px 40px; max-width: 340px; text-align: right; color: var(--cream); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
@media (min-width: 1024px) { .hero__aside { display: flex; } }
.hero__aside p { max-width: 26ch; }

.hero__card {
  position: sticky; bottom: 16px; z-index: 5; isolation: isolate;
  margin: auto 16px 16px; padding: 22px 20px 20px;
  max-width: 540px;
}
.hero__card::before { content: ""; position: absolute; inset: 0; z-index: -2; --bc: rgba(255, 255, 255, 0.34); --bg: rgba(8, 15, 15, 0.8); --bevel: inset 0 -9px 0 rgba(0, 0, 0, 0.28); }
.hero__card::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 26px; z-index: -1; --dc: rgba(255, 255, 255, 0.05); pointer-events: none; }
/* The card sits in the middle of the screen, the lens above it */
@media (min-width: 768px) { .hero__card { margin-left: auto; margin-right: auto; width: calc(100% - 32px); text-align: center; } }
@media (min-width: 768px) {
  .hero__card .hero__headline { max-width: 24ch; margin-left: auto; margin-right: auto; }
  .hero__card .search__hints { justify-content: center; }
  .hero__card .ca { justify-content: center; }
}
@media (min-width: 1024px) { .hero__card { bottom: 24px; margin: auto auto 24px; max-width: 600px; padding: 30px 32px 26px; } }
/* Short desktop screens: a tighter card leaves room for the lens above it */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero__card { padding: 22px 28px 18px; }
  .hero__card .eyebrow { margin-bottom: 10px; }
  .hero__card .hero__headline { font-size: 32px; margin-bottom: 16px; }
  .hero__card .ca { margin-top: 12px; padding-top: 10px; }
}
.hero__headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; line-height: 1.08; letter-spacing: -0.4px;
  max-width: 18ch; margin-bottom: 22px;
  font-kerning: none; font-feature-settings: "liga" off;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) { .hero__headline { font-size: 34px; letter-spacing: -0.5px; } }
@media (min-width: 1280px) { .hero__headline { font-size: 42px; letter-spacing: -0.7px; } }

/* Search: a pixel text field */
.search { position: relative; isolation: isolate; display: flex; align-items: center; height: 50px; padding: 0 10px 0 14px; gap: 10px; color: var(--ink); }
.search::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), inset 0 4px 0 2px rgba(0, 0, 0, 0.1); }
.search:focus-within::before { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--lime), inset 0 6px 0 4px rgba(0, 0, 0, 0.08); }
.search__icon { width: 16px; height: 16px; color: var(--neutral-700); flex: none; }
.search__icon svg { width: 100%; height: 100%; }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; caret-color: var(--accent); }
.search__input::placeholder { color: var(--neutral-700); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__kbd { display: none; min-width: 24px; height: 24px; padding: 0 6px; align-items: center; justify-content: center; font-size: 17px; color: var(--neutral-700); background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--stroke), inset 0 -3px 0 2px var(--stroke); }
@media (hover: hover) { .search__kbd { display: inline-flex; } }
.search__results {
  --bc: rgba(255, 255, 255, 0.3); --bg: rgba(8, 15, 15, 0.97);
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
  max-height: min(56vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; color: #fff;
  animation: rise 0.2s steps(3);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sr { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; text-align: left; }
.sr[aria-selected="true"], .sr:hover { background: rgba(192, 255, 1, 0.1); box-shadow: inset 0 0 0 2px rgba(192, 255, 1, 0.55); }
.sr__icon { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); color: var(--lime); }
.sr__icon svg { width: 14px; height: 14px; }
.sr__main { min-width: 0; }
.sr__title { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr__sub { display: block; font-size: 13px; color: var(--cream-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr__kind { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream-60); }
.search__empty { padding: 14px 12px; font-size: 14px; color: var(--cream-60); }
.search__group { padding: 8px 10px 4px; font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }

.search__hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hint { height: 28px; padding: 0 10px; font-size: 13.5px; color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2); transition: background-color 0.15s steps(2), box-shadow 0.15s steps(2); }
.hint:hover { background: rgba(192, 255, 1, 0.12); box-shadow: inset 0 0 0 2px var(--lime); color: #fff; }
.hint:active { transform: translateY(1px); }

/* Token CA */
.ca { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 4px, transparent 4px 8px) left top / 100% 2px no-repeat; min-width: 0; }
.ca__label { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream-60); flex: none; }
.ca__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 18px; color: var(--paper); }
.ca__value.is-soon { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.2px; }
.ca__value.is-soon::after { content: ""; display: inline-block; width: 8px; height: 14px; margin-left: 8px; vertical-align: -1px; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ca__copy { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; font-family: var(--font-pixel); font-size: 10px; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.26), inset 0 -3px 0 2px rgba(0, 0, 0, 0.3); flex: none; }
.ca__copy:hover { background: rgba(255, 255, 255, 0.14); }
.ca__copy[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.ca__copy-icon { width: 12px; height: 12px; }
.ca__copy-icon svg { width: 100%; height: 100%; }
.ca__copy.is-copied { box-shadow: inset 0 0 0 2px var(--lime); color: var(--lime); }

/* ---------- Stripes: the reference's slate dividers, finished with a dither row ---------- */
.stripes { position: relative; background: var(--paper); }
.stripes i { display: block; height: 6px; box-shadow: 0 2px 0 var(--paper); margin-bottom: 2px; }
.stripes i:last-child { margin-bottom: 0; box-shadow: none; }
.stripes--slate i:nth-child(1) { background: var(--slate-1); }
.stripes--slate i:nth-child(2) { background: var(--slate-2); }
.stripes--slate i:nth-child(3) { background: var(--slate-3); }
.stripes--slate i:nth-child(4) { background: var(--slate-4); }
.stripes--slate i:nth-child(5) { background: var(--slate-5); }
.stripes--slate::after { content: ""; display: block; height: 4px; background-image: conic-gradient(var(--slate-5) 25%, transparent 0 50%, var(--slate-5) 0 75%, transparent 0); background-size: 4px 4px; }
.stripes--up { display: flex; flex-direction: column-reverse; }
.stripes--up::after { order: 1; }
.stripes--up i:last-child { margin-bottom: 2px; box-shadow: 0 2px 0 var(--paper); }
.stripes--up i:first-child { margin-bottom: 0; box-shadow: none; }
.stripes--mint i:nth-child(1) { background: var(--mint-1); }
.stripes--mint i:nth-child(2) { background: var(--mint-2); }
.stripes--mint i:nth-child(3) { background: var(--mint-3); }
.stripes--mint { background: #fff; }
.stripes--mint i { box-shadow: 0 2px 0 #fff; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--pad-y) var(--pad-x); background: var(--grid), var(--paper); }

/* Overview */
.overview__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; max-width: 1080px; margin: 0 auto; }
@media (min-width: 768px) { .overview__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .overview__grid { gap: 64px; } }
.overview__art { display: flex; justify-content: center; }
.pixelart { width: 200px; height: 300px; image-rendering: pixelated; filter: drop-shadow(6px 6px 0 rgba(23, 23, 23, 0.12)); }
@media (min-width: 768px) { .pixelart { width: 300px; height: 450px; } }
.overview__copy { display: flex; flex-direction: column; gap: 56px; max-width: 340px; }
@media (min-width: 768px) { .overview__copy { max-width: none; } }
.overview .lede { padding-left: 14px; box-shadow: inset 4px 0 0 var(--accent); }

.metrics { max-width: 1080px; margin: 112px auto 0; }
@media (min-width: 1024px) { .metrics { margin-top: 152px; } }
.metrics__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.ticks { display: inline-flex; align-items: flex-end; gap: 6px; height: 16px; }
.ticks i { width: 4px; height: 8px; background: var(--neutral-500); transition: height 0.3s steps(2), background-color 0.3s steps(2); }
.ticks i.on { height: 16px; background: var(--ink); }
.metrics__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px) left top / 100% 2px no-repeat; }
@media (min-width: 768px) { .metrics__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .metrics__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.metric { padding: 20px 16px 22px 0; box-shadow: inset 0 -2px 0 var(--stroke); }
.metric dt { font-size: 14px; color: var(--neutral-700); margin-bottom: 10px; }
.metric dd { font-family: var(--font-mono); font-size: 46px; line-height: 0.8; color: var(--neutral-900); font-variant-numeric: tabular-nums; }
.metric dd small { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.04em; color: var(--neutral-600); margin-left: 6px; vertical-align: 6px; }
@media (min-width: 1024px) { .metric dd { font-size: 56px; } }

/* ---------- Classification: sticky scroll stepper ---------- */
.classify { position: relative; padding: 80px var(--pad-x) var(--pad-y); background: var(--grid), var(--paper); }
@media (min-width: 1024px) {
  .classify { padding-top: 140px; }
  /* Head and stage pin as one block inside the track, so the categories only arrive after the pin lets go. */
  .classify.is-scrub .classify__track { min-height: 3100px; }
  .classify.is-scrub .classify__pin { position: sticky; top: 100px; }
}
.classify__head { max-width: 1080px; margin: 0 auto; }
@media (min-width: 1024px) { .classify.is-scrub .classify__head { height: 270px; padding: 0 20px; } }
.classify__head .display { display: flex; flex-direction: column; gap: 32px; max-width: 28ch; padding-bottom: 16px; }
.display__strong { color: var(--neutral-900); }
.classify__head .display > span:first-child { color: #2c2c2c; }

.pillword { position: relative; display: inline-block; padding: 4px 2px 2px 4px; cursor: default; outline: none; color: var(--neutral-600); background: repeating-linear-gradient(90deg, var(--neutral-600) 0 4px, transparent 4px 7px) left bottom / 100% 3px no-repeat; }
.pillword__pills { position: absolute; inset: 0; pointer-events: none; }
.pill {
  position: absolute; display: inline-block; white-space: nowrap;
  padding: 7px 10px;
  font-family: var(--font-pixel); font-size: 9.5px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: #3d6d8c;
  background: #eaf3f8; box-shadow: inset 0 0 0 2px #7fa6bf, inset 0 -3px 0 2px rgba(80, 115, 138, 0.2);
  opacity: 0; transform: translate(var(--x), var(--y));
  transition: opacity 0.3s steps(3), transform 0.3s steps(3);
}
@media (min-width: 768px) { .pill { font-size: 10.5px; padding: 8px 12px; } }
.pill:nth-child(1) { top: -30px; left: -20px; }
.pill:nth-child(2) { top: -38px; right: -10px; }
.pill:nth-child(3) { bottom: -34px; left: -10px; }
.pill:nth-child(4) { bottom: -30px; right: 10px; }
.pillword:hover .pill, .pillword:focus .pill, .pillword.is-auto .pill { opacity: 1; transform: none; }
.pillword:hover .pill:nth-child(2), .pillword:focus .pill:nth-child(2), .pillword.is-auto .pill:nth-child(2) { transition-delay: 80ms; }
.pillword:hover .pill:nth-child(3), .pillword:focus .pill:nth-child(3), .pillword.is-auto .pill:nth-child(3) { transition-delay: 160ms; }
.pillword:hover .pill:nth-child(4), .pillword:focus .pill:nth-child(4), .pillword.is-auto .pill:nth-child(4) { transition-delay: 240ms; }

.classify__stage { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column-reverse; gap: 40px; padding-top: 32px; }
@media (min-width: 1024px) {
  .classify__stage { flex-direction: row; align-items: center; padding: 64px 20px 0; }
}
.classify__steps { display: flex; flex-direction: column; gap: 16px; flex: 1; max-width: 400px; min-height: 180px; }
@media (min-width: 1024px) { .classify__steps { min-height: 320px; } }
.ticks--steps { height: 44px; margin-bottom: 4px; gap: 0; }
.ticks--steps button { position: relative; width: 28px; height: 44px; display: flex; align-items: flex-end; justify-content: flex-start; }
.ticks--steps button i { --n: 1px; display: block; width: 14px; height: 8px; background: var(--neutral-300); box-shadow: inset 0 0 0 2px var(--neutral-500); transition: height 0.25s steps(2), background-color 0.25s steps(2); }
.ticks--steps button[aria-selected="true"] i { height: 18px; background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }
.ticks--steps button.done i { background: var(--ink); box-shadow: none; }
.classify__step-title { font-family: var(--font-pixel); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--neutral-900); }
.classify__step-body { font-size: 17px; color: var(--neutral-700); max-width: 30ch; min-height: 48px; }
.classify__text > * { transition: opacity 0.24s steps(3), transform 0.24s steps(3); }
.classify__text.is-swapping > * { opacity: 0; transform: translateY(6px); }

.fig { flex: 1; width: min(700px, 100%); }
.fig__frame { --bc: var(--neutral-600); --bg: rgba(222, 226, 222, 0.22); padding: 14px; }
.fig__inner { --bc: var(--neutral-800); --bg: var(--paper); --bevel: inset -6px -6px 0 rgba(23, 23, 23, 0.06); overflow: clip; }
@media (min-width: 1024px) { .fig__inner { min-height: 325px; } }
.fig figcaption, .figcap { display: flex; gap: 10px; padding: 10px 20px 0 0; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; color: var(--neutral-600); }
.fig figcaption span:first-child, .figcap span:first-child { color: var(--neutral-900); }
@media (min-width: 1024px) { .classify .fig figcaption { justify-content: flex-end; } }

.pipeline { width: 100%; height: auto; font-family: var(--font-pixel); }
.pipeline .node rect { rx: 0; fill: #fff; stroke: var(--neutral-600); stroke-width: 2; transition: stroke 0.3s steps(2), fill 0.3s steps(2); }
.pipeline .node text { font-size: 8.5px; fill: var(--neutral-700); letter-spacing: 0.02em; }
.pipeline .node .t2 { fill: var(--neutral-900); font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.pipeline .node { opacity: 0.28; transition: opacity 0.4s steps(3); }
.pipeline .node.on { opacity: 1; }
.pipeline .node.focus rect { stroke: var(--ink); fill: #f2f9fd; }
.pipeline .edge { stroke: var(--neutral-600); stroke-width: 2; fill: none; stroke-dasharray: 4 4; opacity: 0.4; transition: opacity 0.4s steps(3); }
.pipeline .edge.on { opacity: 1; stroke: var(--neutral-800); animation: dash 0.8s steps(4) infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.pipeline .pulse { fill: var(--accent); stroke: var(--ink); stroke-width: 1; }
.pipeline .grid { stroke: var(--neutral-300); stroke-width: 1; }
.pipeline .out rect { fill: var(--ink); stroke: var(--ink); }
.pipeline .out.focus rect { fill: var(--ink); stroke: var(--lime); }
.pipeline .out text { fill: var(--paper); }
.pipeline .out .t2 { fill: var(--lime); }
.pipeline .scan { fill: url(#scanGrad); }

.categories { max-width: 1080px; margin: 96px auto 0; }
@media (min-width: 1024px) { .categories { padding: 0 20px; margin-top: 140px; } }
.categories .label { margin-bottom: 18px; }
.categories__grid { --bc: var(--ink); --bg: var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 3px; }
@media (min-width: 768px) { .categories__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .categories__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.category { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 20px; background: var(--paper); min-height: 132px; transition: background-color 0.15s steps(2); }
.category:hover { background: #f1f8e0; }
.category:hover .cls__glyph i.on { animation: blink 0.8s steps(1) infinite; }
.category p { font-size: 14px; color: var(--neutral-700); line-height: 1.35; }
.category .cls { white-space: normal; }
/* Seven outcomes: the last one closes the row so no empty cell shows */
@media (max-width: 1279px) { .category:last-child { grid-column: span 2; } }

/* ---------- Analyzer (the reference's blue panel, in pixels) ---------- */
.analyzer-wrap { padding: 16px; background: var(--paper); }
@media (min-width: 1024px) { .analyzer-wrap { padding: 24px; } }
.analyzer {
  --u: 4px; --bc: var(--ink); --bg: var(--accent); --bevel: inset 0 0 0 8px rgba(255, 255, 255, 0.16);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 40px;
  padding: 48px 20px 20px;
  color: #fff;
}
@media (min-width: 1024px) { .analyzer { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; gap: 48px; padding: 80px; min-height: 800px; } }
@media (min-width: 1536px) { .analyzer { padding: 96px 96px 80px; } }
.analyzer__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; }
.analyzer__body { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
@media (min-width: 1024px) { .analyzer__body { gap: 72px; min-height: 100%; } }
.analyzer__title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -0.8px; max-width: 16ch; margin-bottom: 20px; font-kerning: none; font-feature-settings: "liga" off; text-shadow: 3px 3px 0 rgba(3, 40, 60, 0.55); }
@media (min-width: 640px) { .analyzer__title { font-size: 50px; } }
@media (min-width: 1024px) { .analyzer__title { font-size: 58px; } }
@media (min-width: 1920px) { .analyzer__title { font-size: 68px; } }
.analyzer__type { min-height: 44px; max-width: 34ch; font-size: 18px; text-shadow: 2px 2px 0 rgba(3, 40, 60, 0.45); }
.caret { display: inline-block; margin-left: 2px; width: 10px; height: 1em; vertical-align: -3px; background: var(--lime); color: transparent; animation: blink 1s steps(1) infinite; overflow: hidden; }
.analyze { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.analyze__label { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.analyze__row { display: flex; gap: 8px; }
.analyze__input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: rgba(3, 40, 60, 0.55); color: #fff; font-family: var(--font-mono); font-size: 20px; outline: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), inset 0 4px 0 2px rgba(0, 0, 0, 0.25); caret-color: var(--lime); }
.analyze__input::placeholder { color: rgba(255, 255, 255, 0.72); font-family: var(--font-sans); font-size: 15px; }
.analyze__input:focus { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--lime), inset 0 6px 0 4px rgba(0, 0, 0, 0.2); }
.analyze .btn { height: 46px; }
.analyze__samples { display: flex; flex-wrap: wrap; gap: 6px; }
.analyze__samples .hint { color: #fff; background: rgba(3, 40, 60, 0.35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.analyze__samples .hint:hover { background: rgba(3, 40, 60, 0.55); box-shadow: inset 0 0 0 2px #fff; }
.analyze__samples .hint[aria-pressed="true"] { background: var(--paper); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 -3px 0 2px rgba(0, 0, 0, 0.12); }
.analyzer__foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.analyzer__foot p { max-width: 26ch; text-shadow: 2px 2px 0 rgba(3, 40, 60, 0.45); }

/* Result card: the reference notification card, as a pixel window */
.result { --bc: var(--ink); --bg: var(--paper); --bevel: inset -6px -6px 0 rgba(0, 0, 0, 0.07); position: relative; color: var(--neutral-900); padding: 20px; min-height: 320px; overflow: hidden; }
@media (min-width: 1024px) { .result { padding: 24px; } }
.result__empty { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 276px; padding: 0 8px; }
.result__kicker { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-700); }
.result__empty .result__kicker::after { content: ""; display: inline-block; width: 7px; height: 11px; margin-left: 6px; vertical-align: -1px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.result__hint { font-size: 17px; color: var(--neutral-800); }
.result__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; background: repeating-linear-gradient(90deg, var(--stroke) 0 4px, transparent 4px 8px) left bottom / 100% 2px no-repeat; }
.result__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: #eaf5fb; box-shadow: inset 0 0 0 2px var(--accent), inset 0 -4px 0 2px rgba(0, 129, 192, 0.18); color: var(--accent); }
.result__icon svg { width: 20px; height: 20px; }
.result__title { font-family: var(--font-pixel); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.result__time { margin-left: auto; font-family: var(--font-mono); font-size: 17px; color: rgba(23, 23, 23, 0.5); }
.verdict { font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -0.5px; margin: 6px 0 14px; }
@media (min-width: 640px) { .verdict { font-size: 40px; } }
.verdict--LIKELY_PAYMENT { color: var(--accent-ink); }
.verdict--NOT_A_PAYMENT { color: var(--neutral-900); }
.verdict--UNKNOWN { color: var(--neutral-700); }
.result__badges { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0; margin-bottom: 8px; background: linear-gradient(var(--neutral-300) 0 0) left top / 100% 2px no-repeat, linear-gradient(var(--neutral-300) 0 0) left bottom / 100% 2px no-repeat; }
.kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 14px; align-items: center; background: repeating-linear-gradient(90deg, var(--neutral-300) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; }
.kv:last-child { background: none; }
.kv dt { color: var(--neutral-700); }
.kv dd { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--neutral-900); }
.mono { font-family: var(--font-mono); font-size: 17px; line-height: 1; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.iconbtn { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--neutral-700); }
.iconbtn:hover { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.iconbtn svg { width: 12px; height: 12px; }
.result__evidence { margin-top: 12px; }
.result__evidence li { position: relative; padding-left: 16px; font-size: 14px; color: var(--neutral-800); margin-top: 5px; }
.result__evidence li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--accent); }
.result__demo { margin-top: 14px; }

.scanning { display: flex; flex-direction: column; gap: 10px; min-height: 276px; justify-content: center; padding: 0 8px; }
.scanning__sig { font-family: var(--font-mono); font-size: 18px; color: var(--neutral-700); }
.scanning ol { display: flex; flex-direction: column; gap: 8px; }
.scanning li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--neutral-600); }
.scanning li::before { content: ""; width: 8px; height: 8px; background: currentColor; opacity: 0.4; }
.scanning li.on { color: var(--neutral-900); }
.scanning li.on::before { opacity: 1; background: var(--accent); }
.scanline { position: absolute; left: 0; right: 0; height: 12px; top: -12px; background-image: conic-gradient(rgba(0, 129, 192, 0.3) 25%, transparent 0 50%, rgba(0, 129, 192, 0.3) 0 75%, transparent 0); background-size: 4px 4px; animation: scan 1.2s steps(24) infinite; pointer-events: none; }
@keyframes scan { to { top: 100%; } }
.result.is-new > * { animation: rise 0.3s steps(3); }

/* ---------- Intelligence cards and explorer ---------- */
.intel__head { max-width: 1280px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .intel__head { padding: 0 16px; } }
.cards { max-width: 1280px; margin: 0 auto; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cards { padding: 0 16px; } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { --u: 4px; --bc: var(--ink); --bg: var(--night); position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 330px; overflow: hidden; text-align: left; isolation: isolate; transition: transform 0.15s steps(2); }
/* Frames drawn on top, for panels whose children paint to the edge */
.card::after, .explorer__inner::after, .analyzer::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--bc) 0 0) var(--u) var(--u) / var(--u) var(--u) no-repeat,
    linear-gradient(var(--bc) 0 0) right var(--u) top var(--u) / var(--u) var(--u) no-repeat,
    linear-gradient(var(--bc) 0 0) left var(--u) bottom var(--u) / var(--u) var(--u) no-repeat,
    linear-gradient(var(--bc) 0 0) right var(--u) bottom var(--u) / var(--u) var(--u) no-repeat;
  box-shadow: inset 0 0 0 var(--u) var(--bc), var(--bevel, 0 0 #0000);
}
.explorer__inner::after, .card::after { --bevel: 0 0 #0000; }
.card:hover { transform: translateY(-4px); }
.card[aria-selected="true"]::after { box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 8px var(--lime), inset 0 0 0 10px var(--ink); }
.card__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; }
.card__ui { position: absolute; left: 50%; top: 40%; width: min(74%, 290px); transform: translate(-50%, -50%); transition: transform 0.3s steps(3); }
.card:hover .card__ui { transform: translate(-50%, calc(-50% - 8px)); }
.card__caption { --bc: rgba(255, 255, 255, 0.3); --bg: rgba(8, 15, 15, 0.66); position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 12px; text-align: center; }
@media (min-width: 640px) { .card__caption { padding: 18px 20px; } }
@media (min-width: 1024px) { .card__caption { left: 28px; right: 28px; bottom: 24px; } }
.card__title { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.2; letter-spacing: -0.2px; color: #fff; margin-bottom: 6px; }
@media (min-width: 640px) { .card__title { font-size: 21px; margin-bottom: 8px; } }
.card__meta { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.card[aria-selected="true"] .card__title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 2px; background: var(--lime); }

.mini { --bc: var(--ink); --bg: var(--paper); --bevel: inset 0 -5px 0 rgba(0, 0, 0, 0.08); display: block; padding: 12px 14px; font-size: 13px; color: var(--neutral-900); }
.mini__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; background: repeating-linear-gradient(90deg, var(--neutral-300) 0 2px, transparent 2px 5px) left bottom / 100% 2px no-repeat; }
.mini__row:last-child { background: none; }
.mini__name { font-weight: 600; font-size: 14px; }
.mini__muted { color: var(--neutral-700); }
.mini__bar { display: block; height: 8px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 4px, transparent 4px 6px); overflow: hidden; flex: 1; }
.mini__bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 6px); transform-origin: left; transform: scaleX(var(--v)); transition: transform 1.2s steps(12); }
.mini__graph { display: block; width: 100%; height: 86px; }
.mini__graph line { stroke: rgba(0, 0, 0, 0.3); stroke-width: 1; stroke-dasharray: 2 2; }
.mini__graph rect { fill: #fff; stroke: var(--neutral-800); stroke-width: 2; }
.mini__graph .hub { fill: var(--ink); stroke: var(--ink); }
.mini__graph .dot { fill: var(--accent); stroke: none; }

.explorer { max-width: 1280px; margin: 48px auto 0; outline: none; scroll-margin-top: 90px; }
@media (min-width: 768px) { .explorer { padding: 0 16px; } }
.explorer__inner { --bc: var(--neutral-800); --bg: #fff; --bevel: inset -6px -6px 0 rgba(0, 0, 0, 0.05); position: relative; display: grid; grid-template-columns: 1fr; min-height: 460px; }
@media (min-width: 900px) { .explorer__inner { grid-template-columns: 260px minmax(0, 1fr); } }
.explorer__list { display: flex; gap: 4px; padding: 11px; overflow-x: auto; background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--neutral-300); scrollbar-width: none; margin: 3px 3px 0; }
.explorer__list::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .explorer__list { flex-direction: column; overflow: visible; margin: 3px 0 3px 3px; box-shadow: inset -2px 0 0 var(--neutral-300); } }
.ent { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; text-align: left; font-size: 15px; color: var(--neutral-800); white-space: nowrap; }
.ent:hover { background: rgba(0, 0, 0, 0.04); }
.ent[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 -3px 0 2px rgba(0, 0, 0, 0.06); }
.ent[aria-selected="true"] > span:first-child::before { content: "\25B8"; margin-right: 6px; color: var(--accent); }
.ent .vb { font-size: 0; gap: 0; }
.profile { padding: 22px 20px 26px; min-width: 0; }
@media (min-width: 900px) { .profile { padding: 32px 36px 36px; } }
.profile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.profile__kind { font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-700); margin-bottom: 8px; }
.profile__name { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -0.6px; line-height: 1.05; }
@media (min-width: 768px) { .profile__name { font-size: 40px; } }
.profile__grid { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 1100px) { .profile__grid { grid-template-columns: 1fr 1fr; } }
.profile .kv { grid-template-columns: 136px minmax(0, 1fr); padding: 9px 0; font-size: 14.5px; }
.profile__sub { margin-top: 24px; }
.profile__sub .label { margin-bottom: 12px; display: block; }
.dist { display: grid; gap: 8px; }
.dist__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 14px; }
.dist__row span:last-child { text-align: right; font-family: var(--font-mono); font-size: 17px; color: var(--neutral-700); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; font-family: var(--font-pixel); font-size: 9.5px; text-transform: uppercase; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--neutral-500); color: var(--neutral-800); }
.minievents li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 7px 0; font-size: 14px; background: repeating-linear-gradient(90deg, var(--neutral-300) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; }
.minievents li span:first-child { font-family: var(--font-mono); font-size: 17px; line-height: 1.1; color: var(--neutral-700); }
.profile.is-new { animation: rise 0.3s steps(3); }
.delta { font-family: var(--font-mono); font-size: 18px; }
.delta--up { color: var(--v-verified); }
.delta--down { color: var(--v-stale); }

/* ---------- Robinhood Chain band ---------- */
.chain {
  position: relative; overflow: hidden; color: var(--cream);
  padding: var(--pad-y) var(--pad-x);
  background: var(--grid-dark), var(--night);
}
/* Dithered glows in place of the reference's soft radial light: banded, like a limited palette */
.chain::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: conic-gradient(rgba(160, 215, 209, 0.16) 25%, transparent 0 50%, rgba(160, 215, 209, 0.16) 0 75%, transparent 0); background-size: 4px 4px; -webkit-mask-image: radial-gradient(38% 30% at 8% 0%, #000 0 40%, rgba(0, 0, 0, 0.55) 40% 70%, rgba(0, 0, 0, 0.22) 70% 100%, transparent 100%); mask-image: radial-gradient(38% 30% at 8% 0%, #000 0 40%, rgba(0, 0, 0, 0.55) 40% 70%, rgba(0, 0, 0, 0.22) 70% 100%, transparent 100%); }
.chain::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: conic-gradient(rgba(0, 129, 192, 0.28) 25%, transparent 0 50%, rgba(0, 129, 192, 0.28) 0 75%, transparent 0); background-size: 4px 4px; -webkit-mask-image: radial-gradient(34% 34% at 100% 100%, #000 0 40%, rgba(0, 0, 0, 0.55) 40% 70%, rgba(0, 0, 0, 0.22) 70% 100%, transparent 100%); mask-image: radial-gradient(34% 34% at 100% 100%, #000 0 40%, rgba(0, 0, 0, 0.55) 40% 70%, rgba(0, 0, 0, 0.22) 70% 100%, transparent 100%); }
.chain__inner, .chain__lower { position: relative; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .chain__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; } }
.chain__lede { margin: 20px 0 36px; color: var(--cream-60); max-width: 34ch; font-size: 17px; }
.chain__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: repeating-linear-gradient(90deg, var(--cream-60) 0 4px, transparent 4px 8px) left top / 100% 2px no-repeat; margin-bottom: 20px; }
.chain__stats div { padding: 16px 12px 18px 0; box-shadow: inset 0 -2px 0 var(--night-line); }
.chain__stats dt { font-size: 14px; color: var(--cream-60); margin-bottom: 8px; }
.chain__stats dd { font-family: var(--font-mono); font-size: 44px; line-height: 0.8; color: #fff; font-variant-numeric: tabular-nums; }
.chain__stats dd small { font-family: var(--font-pixel); font-size: 9px; color: rgba(255, 255, 255, 0.4); margin-left: 6px; vertical-align: 6px; letter-spacing: 0.04em; }
.map { --bc: var(--night-line); --bg: rgba(255, 255, 255, 0.02); padding: 14px; }
.map__scroll { --bc: rgba(207, 211, 207, 0.28); --bg: rgba(8, 15, 15, 0.8); overflow-x: auto; scrollbar-width: thin; }
.map__svg { width: 100%; height: auto; font-family: var(--font-pixel); }
@media (max-width: 600px) { .map__svg { min-width: 520px; } }
.map figcaption { display: flex; gap: 10px; padding-top: 10px; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.map figcaption span:first-child { color: var(--cream); }
.map .n rect { rx: 0; fill: var(--night-2); stroke: rgba(207, 211, 207, 0.34); stroke-width: 2; }
.map .n .k { font-size: 8px; fill: rgba(254, 255, 252, 0.55); letter-spacing: 0.02em; }
.map .n .v { font-family: var(--font-sans); font-size: 12.5px; fill: var(--cream); }
.map .n.hl rect { stroke: var(--mint-3); }
.map .e { stroke: rgba(207, 211, 207, 0.28); stroke-width: 2; fill: none; }
.map .e.flow { stroke: var(--mint-3); stroke-dasharray: 2 6; animation: dash 1s steps(4) infinite; }
.map .p { fill: var(--lime); }
.map .grid { stroke: rgba(207, 211, 207, 0.05); }
.map .out rect { fill: rgba(192, 255, 1, 0.1); stroke: var(--lime); }
.map .out .v { fill: var(--lime); }

.chain__lower { margin-top: 64px; }
@media (min-width: 1024px) { .chain__lower { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 64px; margin-top: 96px; } }
.feed__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; background: linear-gradient(var(--night-line) 0 0) left bottom / 100% 2px no-repeat; }
.live { width: 8px; height: 8px; background: var(--lime); animation: blink 1.2s steps(1) infinite; }
.feed__list { position: relative; min-height: 290px; overflow: hidden; }
.feed__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 70px 96px minmax(0, 1.3fr) auto; gap: 14px; align-items: center; height: 58px; font-size: 14px; background: repeating-linear-gradient(90deg, var(--night-line) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; animation: feedIn 0.4s steps(4); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.feed__row .mono { color: var(--cream-60); }
.feed__row .amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--cream); }
@media (max-width: 720px) {
  .feed__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; height: auto; padding: 10px 0; row-gap: 6px; }
  .feed__row .col-coin, .feed__row .col-conf { display: none; }
}
.contracts__list { display: flex; flex-direction: column; }
.contracts__list li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 38px; gap: 12px; align-items: center; padding: 12px 0; font-size: 14px; background: repeating-linear-gradient(90deg, var(--night-line) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; }
.contracts__list .mini__bar { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 4px, transparent 4px 6px); }
.contracts__list .mini__bar i { background: repeating-linear-gradient(90deg, var(--mint-3) 0 4px, transparent 4px 6px); }
.contracts__list li span:last-child { text-align: right; font-family: var(--font-mono); font-size: 17px; color: var(--cream-60); }

/* ---------- Verification ---------- */
.verify__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1080px; margin: 0 auto; }
@media (min-width: 768px) { .verify__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.verify__visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.seal { width: 240px; height: 240px; color: var(--sc, var(--v-verified)); transition: color 0.3s steps(3); }
@media (min-width: 768px) { .seal { width: 312px; height: 312px; } }
.seal .cell { fill: var(--neutral-300); transition: fill 0.2s steps(1); transition-delay: calc(var(--d) * 8ms); }
.seal .cell.on { fill: currentColor; }
.seal .tk { fill: var(--neutral-500); }
.seal .tk.major { fill: var(--neutral-700); }
.seal .core { fill: currentColor; transition: opacity 0.3s steps(3), transform 0.4s steps(4); transform-origin: 120px 120px; }
.seal .sweep { fill: currentColor; opacity: 0.4; transform-origin: 120px 120px; animation: spin 9s steps(36) infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.verify__state { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc, var(--v-verified)); padding: 6px 12px; box-shadow: inset 0 0 0 2px currentColor; }
.verify__copy { display: flex; flex-direction: column; gap: 40px; }
.states { display: flex; flex-direction: column; background: linear-gradient(var(--ink) 0 0) left top / 100% 2px no-repeat; }
.state { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 14px; width: 100%; padding: 16px 8px; text-align: left; background: repeating-linear-gradient(90deg, var(--stroke) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; transition: background-color 0.15s steps(2); }
.state:hover { background-color: rgba(0, 0, 0, 0.025); }
.state[aria-selected="true"] { background-color: #fff; box-shadow: inset 4px 0 0 var(--vc); }
.state__glyph { grid-row: span 2; padding-top: 2px; color: var(--vc); }
.state__glyph svg { width: 16px; height: 16px; }
.state__name { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-600); }
.state__desc { font-size: 15px; color: var(--neutral-600); }
.state[aria-selected="true"] .state__name { color: var(--vc); }
.state[aria-selected="true"] .state__desc { color: var(--neutral-800); }
.state.vb--VERIFIED, .state.vb--PARTIALLY_VERIFIED, .state.vb--STALE, .state.vb--UNVERIFIED { display: grid; font-size: inherit; letter-spacing: inherit; text-transform: none; }

.contrast { --u: 4px; --bc: var(--ink); --bg: #fff; --bevel: inset -8px -8px 0 rgba(0, 0, 0, 0.05); max-width: 1080px; margin: 120px auto 0; display: grid; gap: 24px; padding: 28px; }
@media (min-width: 768px) { .contrast { grid-template-columns: 1fr 2px 1fr; gap: 40px; padding: 40px; } }
.contrast__divider { background: repeating-linear-gradient(90deg, var(--stroke) 0 4px, transparent 4px 8px); height: 2px; }
@media (min-width: 768px) { .contrast__divider { height: auto; background: repeating-linear-gradient(180deg, var(--stroke) 0 4px, transparent 4px 8px); } }
.contrast__q { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.3px; margin: 10px 0 18px; }
@media (min-width: 1024px) { .contrast__q { font-size: 32px; } }
.contrast__demo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contrast__what { font-size: 14px; color: var(--neutral-700); }
.contrast__note { grid-column: 1 / -1; padding-top: 18px; font-size: 14px; color: var(--neutral-700); background: repeating-linear-gradient(90deg, var(--stroke) 0 4px, transparent 4px 8px) left top / 100% 2px no-repeat; }

/* ---------- Changes ---------- */
.changes { padding-top: 0; }
.changes__head { max-width: 1080px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { height: 34px; padding: 0 14px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-800); background: #fff; box-shadow: inset 0 0 0 2px var(--stroke), inset 0 -3px 0 2px rgba(0, 0, 0, 0.05); }
.filter:hover { box-shadow: inset 0 0 0 2px var(--neutral-700), inset 0 -3px 0 2px rgba(0, 0, 0, 0.05); }
.filter:active { transform: translateY(1px); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--lime); box-shadow: inset 0 0 0 2px var(--ink), inset 0 -3px 0 2px rgba(255, 255, 255, 0.1); }
.timeline { position: relative; max-width: 1080px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; background: repeating-linear-gradient(180deg, var(--neutral-600) 0 4px, transparent 4px 8px); }
@media (min-width: 768px) { .timeline::before { left: 127px; } }
.event { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px 20px; padding: 0 0 20px; opacity: 0; transform: translateY(16px); transition: opacity 0.4s steps(4), transform 0.4s steps(4); }
@media (min-width: 768px) { .event { grid-template-columns: 100px 16px minmax(0, 1fr); gap: 0 20px; padding-left: 0; } }
.event.is-in { opacity: 1; transform: none; }
.event__date { grid-column: 2; font-family: var(--font-mono); font-size: 17px; line-height: 1; color: var(--neutral-700); padding-top: 2px; }
@media (min-width: 768px) { .event__date { grid-column: 1; grid-row: 1; text-align: right; padding-top: 24px; } }
.event__dot { grid-column: 1; grid-row: 1 / span 2; width: 16px; height: 16px; margin-top: 2px; display: grid; place-items: center; }
@media (min-width: 768px) { .event__dot { grid-column: 2; grid-row: 1; margin-top: 22px; } }
.event__dot i { width: 10px; height: 10px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--neutral-800); }
.event:first-child .event__dot i { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); animation: blink 1.4s steps(1) infinite; }
.event__card { --bc: var(--neutral-500); --bg: #fff; --bevel: inset 0 -5px 0 rgba(0, 0, 0, 0.04); grid-column: 2; display: flex; align-items: center; gap: 12px; padding: 12px; min-width: 0; transition: transform 0.12s steps(2); }
@media (min-width: 768px) { .event__card { grid-column: 3; padding: 12px 16px 12px 12px; } }
.event__card:hover { --bc: var(--ink); transform: translateX(4px); }
.event__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--neutral-300); color: var(--neutral-800); }
.event__icon svg { width: 18px; height: 18px; }
.event__main { min-width: 0; flex: 1; }
.event__title { font-size: 15px; font-weight: 600; color: var(--neutral-900); }
.event__detail { font-size: 14px; color: var(--neutral-700); }
.event__entity { flex: none; font-size: 13px; color: var(--neutral-700); padding: 4px 8px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--neutral-300); }
@media (max-width: 560px) { .event__entity { display: none; } }
.event__type { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-600); }
.timeline__empty { padding: 24px 0 24px 36px; color: var(--neutral-700); }

/* ---------- API ---------- */
.api { padding-top: 0; }
.api__grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.api__grid > *, .fig, .chain__inner > *, .chain__lower > *, .verify__grid > *, .overview__grid > * { min-width: 0; }
.footer__bar:has(> :only-child) { justify-content: center; }
@media (min-width: 1024px) { .api__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.endpoints { margin: 36px 0 32px; background: linear-gradient(var(--ink) 0 0) left top / 100% 2px no-repeat; }
.endpoints li { display: flex; align-items: center; gap: 14px; padding: 11px 0; min-width: 0; background: repeating-linear-gradient(90deg, var(--stroke) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; }
.endpoints code { font-size: 19px; line-height: 1; color: var(--neutral-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verb { flex: none; font-family: var(--font-pixel); font-size: 9.5px; letter-spacing: 0.04em; color: var(--accent-ink); padding: 5px 7px; background: #e5f2f9; box-shadow: inset 0 0 0 2px rgba(0, 129, 192, 0.35); }
.status { display: grid; gap: 0; }
.status div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; font-size: 14px; align-items: center; background: repeating-linear-gradient(90deg, var(--stroke) 0 2px, transparent 2px 6px) left bottom / 100% 2px no-repeat; }
.status dt { color: var(--neutral-700); }
.status dd { min-width: 0; display: flex; align-items: center; gap: 8px; }
.dotstate { width: 8px; height: 8px; flex: none; background: var(--neutral-600); }
.dotstate.ok { background: var(--v-verified); }
.fig__inner--code { --bg: #0f1818; --bc: var(--ink); }
.code { margin: 0; padding: 24px 24px 26px; overflow-x: auto; font-size: 18px; line-height: 1.3; color: #cfd8d6; tab-size: 2; }
.code .k { color: #9dc0d6; }
.code .s { color: #a0d7d1; }
.code .n { color: #d7b97f; }
.code .c { color: rgba(207, 216, 214, 0.4); }

/* ---------- Footer and curtain ---------- */
.footer { position: relative; background: var(--grid), #fff; margin-bottom: 400px; }
@media (min-width: 1280px) { .footer { margin-bottom: 500px; } }
.footer__inner { max-width: 1280px; margin: 0 auto; padding: 120px 20px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__title { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.15; letter-spacing: -0.4px; color: var(--neutral-900); max-width: 24ch; margin-bottom: 20px; font-kerning: none; font-feature-settings: "liga" off; }
@media (min-width: 768px) { .footer__title { line-height: 1.08; letter-spacing: -0.6px; } }
@media (min-width: 1024px) { .footer__title { font-size: 42px; letter-spacing: -0.8px; } }
@media (min-width: 1280px) { .footer__title { font-size: 50px; } }
.footer__bar { width: 100%; display: flex; flex-direction: column-reverse; align-items: center; gap: 24px; padding-top: 120px; }
@media (min-width: 768px) { .footer__bar { flex-direction: row; justify-content: space-between; } }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.footer__nav a { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-800); }
.footer__nav a:hover { color: var(--ink); background: var(--lime); }
.footer__social { display: flex; gap: 8px; }
.social { position: relative; display: grid; place-items: center; width: 38px; height: 38px; background: #fff; color: #000; box-shadow: inset 0 0 0 2px var(--ink), inset 0 -4px 0 2px rgba(0, 0, 0, 0.08); }
.social:hover { background: var(--lime); }
.social:active { transform: translateY(1px); }
.social svg { position: relative; width: 15px; height: 15px; }

.curtain { position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; max-width: 1920px; margin: 0 auto; height: 400px; overflow: clip; background: var(--night); }
@media (min-width: 1280px) { .curtain { height: 500px; } }
.curtain__art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.curtain__shade { position: absolute; inset: 0; background: linear-gradient(transparent 0 58%, rgba(0, 0, 0, 0.3) 58% 72%, rgba(0, 0, 0, 0.55) 72% 86%, rgba(0, 0, 0, 0.75) 86%); }
.curtain__bar { position: absolute; left: 0; right: 0; bottom: 0; max-width: 1280px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; font-size: 14px; line-height: 1.3; color: #fff; }
.curtain__bar span:last-child { color: rgba(255, 255, 255, 0.7); }
@media (min-width: 640px) { .curtain__bar { flex-direction: row; justify-content: space-between; } }

/* ---------- Toast ---------- */
.toast { --bc: var(--lime); --bg: var(--ink); position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); padding: 12px 16px; font-family: var(--font-pixel); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper); animation: rise 0.2s steps(3); max-width: calc(100vw - 32px); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  [data-words] .w, [data-reveal], .event { opacity: 1 !important; filter: none !important; transform: none !important; }
}
