/* ═══════════════════════════════════════════════════════════
   ATLAS OS — landing stylesheet
   Palette: electric lime #CCFF00 (primary field) / ink black
   / alarm red. Akira-poster type, Eva-panel layout, CRT skin.
   ═══════════════════════════════════════════════════════════ */

:root {
  --lime: #CCFF00;
  --lime-soft: rgba(204, 255, 0, 0.14);
  --lime-line: rgba(204, 255, 0, 0.35);
  --ink: #0B0B0C;
  --ink-2: #131314;
  --red: #FF2E2E;
  --paper: #F4FFE0;
  --font-display: 'Anton', Impact, 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 76px; } /* sticky topbar clearance for anchor jumps */

body {
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  /* blueprint grid over the lime field */
  background-image:
    linear-gradient(rgba(11, 11, 12, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 12, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* CRT scanlines over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.055) 0px,
    rgba(0, 0, 0, 0.055) 1px,
    transparent 1px,
    transparent 3px
  );
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.mono { font-family: var(--font-mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.micro { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; opacity: 0.65; }
.dim { opacity: 0.66; }
.blink { animation: blink 1.1s steps(2) infinite; color: var(--red); }
@keyframes blink { 50% { opacity: 0; } }

/* scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--lime); border: 3px solid var(--ink); }

:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s, color 0.12s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red); }
.btn-solid { background: var(--ink); color: var(--lime); }
.btn-ghost:hover { background: var(--ink); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-big { font-size: 17px; padding: 18px 38px; }
.btn-nav { padding: 10px 18px; font-size: 12px; }

/* ── topbar ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lime); }
.logo-mark { width: 30px; height: 30px; }
.logo-eye { fill: var(--red); }
.logo-word { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; }
.logo-word em { color: var(--red); font-style: normal; }
.topbar .btn-nav { margin-left: auto; border-color: var(--lime); color: var(--lime); }
.topbar .btn-nav:hover { background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 var(--red); }
.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-decoration: none;
  opacity: 0.85;
  position: relative;
}
.nav a:hover { opacity: 1; color: var(--red); }

/* ── hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-left: 4px solid var(--red);
  padding-left: 12px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 148px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-sub { font-size: 19px; max-width: 46ch; margin-bottom: 30px; }
.hero-sub strong { background: var(--ink); color: var(--lime); padding: 0 6px; font-weight: 600; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-bottom: 10px; }
.stat { display: flex; flex-direction: column; border-top: 3px solid var(--ink); padding-top: 8px; }
.stat-num { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; opacity: 0.7; margin-top: 4px; }

.hero-visual { position: relative; z-index: 2; }
.readout { font-size: 11px; letter-spacing: 0.1em; margin-top: 12px; text-align: right; }

/* big black diagonal slabs (Akira-poster geometry) */
.slab { position: absolute; background: var(--ink); z-index: 1; }
.slab-b {
  width: 420px; height: 420px;
  right: -160px; bottom: -80px;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.slab-c {
  width: 300px; height: 300px;
  left: -140px; top: -60px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.slab-d {
  width: 380px; height: 380px;
  right: -120px; top: -100px;
  transform: rotate(18deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* vertical japanese side-caption */
.jp-side {
  position: absolute;
  right: 18px;
  top: 120px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5em;
  opacity: 0.5;
  z-index: 2;
}
.jp-hero { color: var(--lime); top: 34px; right: 26px; opacity: 0.9; }

/* glitch title */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
.glitch:hover::before, .hero .glitch::before {
  color: var(--red);
  animation: glitch-a 2.8s infinite steps(1);
}
.glitch:hover::after, .hero .glitch::after {
  color: var(--paper);
  animation: glitch-b 2.8s infinite steps(1);
}
@keyframes glitch-a {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: none; }
  93% { opacity: 0.8; transform: translate(-6px, 2px); clip-path: inset(12% 0 64% 0); }
  95% { opacity: 0.8; transform: translate(5px, -3px); clip-path: inset(58% 0 18% 0); }
  97% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 90%, 100% { opacity: 0; transform: none; clip-path: none; }
  91% { opacity: 0.7; transform: translate(6px, -2px); clip-path: inset(70% 0 8% 0); }
  94% { opacity: 0.7; transform: translate(-5px, 3px); clip-path: inset(4% 0 78% 0); }
  96% { opacity: 0; }
}

/* ── ticker ──────────────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--lime);
  border-top: 2px solid var(--ink);
  border-bottom: 4px solid var(--red);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item { display: inline-block; padding: 0 26px; }
.tick-item .sev-critical { color: var(--red); font-weight: 600; }
.tick-item .sev-warning { color: var(--lime); font-weight: 600; }
.tick-item .sev-info { opacity: 0.75; }
.tick-sep { color: var(--red); }

/* ── bands / sections ────────────────────────────────────── */
.band { position: relative; padding: 96px 0; overflow: hidden; }
.band-black {
  background: var(--ink);
  color: var(--paper);
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.band-lime { color: var(--ink); }

.sec-head { position: relative; margin-bottom: 26px; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.band-black .sec-title { color: var(--lime); }
.outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}
.band-black .outline { -webkit-text-stroke: 2px var(--lime); color: transparent; }
.band-lime .outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.sec-lead { font-size: 18px; max-width: 62ch; margin-bottom: 34px; }
.band-black .kicker { border-left-color: var(--red); color: var(--lime); }

/* ── scanner console ─────────────────────────────────────── */
.console-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  margin-bottom: 26px;
}
.term {
  border: 2px solid var(--lime);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 0 rgba(204, 255, 0, 0.18);
}
.term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lime-line);
  color: var(--lime);
}
.term-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 2s steps(2) infinite; }
.term-mode { margin-left: auto; font-size: 10.5px; opacity: 0.8; border: 1px solid var(--lime-line); padding: 3px 8px; }
.term-mode.live { color: var(--ink); background: var(--lime); opacity: 1; font-weight: 600; }
.term-body {
  min-height: 260px;
  max-height: 340px;
  overflow-y: auto;
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--lime);
}
.term-body .tl { white-space: pre-wrap; word-break: break-all; }
.term-body .tl-dim { opacity: 0.55; }
.term-body .tl-red { color: var(--red); font-weight: 600; }
.term-body .tl-white { color: var(--paper); }
.term-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--lime-line);
}
.term-input .prompt { color: var(--red); font-weight: 600; font-size: 13px; }
.term-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.term-input input:focus { outline: none; }
.term-input input::placeholder { color: rgba(244, 255, 224, 0.35); }
.term-input .btn { padding: 9px 20px; }
.kind-toggle { display: flex; border: 1px solid var(--lime-line); }
.kind {
  background: transparent;
  border: none;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 8px 10px;
  cursor: pointer;
  opacity: 0.55;
}
.kind.active { background: var(--lime); color: var(--ink); opacity: 1; font-weight: 600; }
.term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px 14px;
  font-size: 11px;
}
.chips-label { opacity: 0.5; color: var(--lime); letter-spacing: 0.1em; }
.chip {
  background: transparent;
  border: 1px solid var(--lime-line);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.chip:hover { background: var(--lime); color: var(--ink); }
.chip .chip-kind { color: var(--red); }
.chip:hover .chip-kind { color: var(--red); }

.graph-panel {
  border: 2px solid var(--lime);
  background: #060607;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 0 rgba(255, 46, 46, 0.25);
}
.panel-head {
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lime-line);
  color: var(--lime);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
#graphMeta { opacity: 0.7; font-size: 11px; }
#graphCanvas { width: 100%; flex: 1; min-height: 300px; display: block; }
.graph-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 14px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--lime);
  border-top: 1px solid var(--lime-line);
}
.lg { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: baseline; }
.lg-node { background: var(--lime); border-radius: 50%; }
.lg-contract { background: var(--lime); }
.lg-bad { background: var(--red); border-radius: 50%; }
.lg-root { background: transparent; border: 2px solid var(--paper); border-radius: 50%; }

/* verdict card */
.verdict {
  border: 2px solid var(--lime);
  background: var(--ink-2);
  padding: 22px 24px;
  animation: verdict-in 0.25s ease-out;
}
@keyframes verdict-in { from { transform: translateY(10px); opacity: 0; } }
.verdict-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.verdict-score { font-size: 15px; color: var(--paper); }
.verdict-score b { font-family: var(--font-display); font-size: 34px; color: var(--lime); font-weight: 400; }
.verdict-addr { font-size: 12px; opacity: 0.6; color: var(--paper); word-break: break-all; }
.verdict-line { font-size: 18px; font-weight: 500; color: var(--paper); margin-bottom: 16px; }
.signal-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-bottom: 14px; }
.signal-list li { font-size: 12px; line-height: 1.5; color: var(--paper); padding-left: 16px; position: relative; }
.signal-list li::before { content: '▸'; position: absolute; left: 0; }
.signal-list li.sig-hit { color: var(--lime); }
.signal-list li.sig-hit::before { color: var(--red); }
.signal-list li.sig-miss { opacity: 0.4; }
.signal-list li b { letter-spacing: 0.08em; }
.verdict-meta { font-size: 11px; opacity: 0.55; color: var(--paper); letter-spacing: 0.08em; }

/* tier badges */
.tier-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  border: 2px solid var(--lime);
  color: var(--lime);
}
.tier-badge.t-clear   { border-color: var(--lime); color: var(--lime); background: transparent; }
.tier-badge.t-watch   { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tier-badge.t-suspect { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tier-badge.t-cabal   { border-color: var(--red); color: var(--red); background: transparent; }
.tier-badge.t-critical{ background: var(--red); color: var(--ink); border-color: var(--red); animation: pulse-red 1.4s ease-in-out infinite; }
@keyframes pulse-red { 50% { box-shadow: 0 0 0 6px rgba(255, 46, 46, 0.25); } }

/* on lime band, the badges keep readable borders */
.band-lime .tier-badge.t-clear { border-color: var(--ink); color: var(--ink); }
.band-lime .tier-badge.t-watch { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.band-lime .tier-badge.t-suspect { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── capabilities ────────────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cap {
  background: var(--ink);
  color: var(--paper);
  padding: 26px 24px 28px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform 0.15s ease;
}
.cap:hover { transform: translateY(-6px); }
.cap::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 22px; height: 22px;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.cap-glyph {
  width: 44px; height: 44px;
  stroke: var(--lime);
  stroke-width: 1.6;
  fill: none;
  margin-bottom: 18px;
}
.cap-glyph .fill-red { fill: var(--red); stroke: none; }
.cap-glyph .thick { stroke-width: 2.4; }
.cap h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--lime);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cap-id { font-family: var(--font-mono); font-size: 10px; color: var(--red); letter-spacing: 0.2em; }
.cap p { font-size: 14.5px; opacity: 0.85; }

/* ── divider band ────────────────────────────────────────── */
.divider-band { border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }

/* ── protocol steps ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  border: 2px solid var(--lime);
  padding: 26px 24px 30px;
  position: relative;
  background: rgba(204, 255, 0, 0.03);
}
.step-num {
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--lime);
  display: block;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--font-display);
  color: var(--lime);
  font-size: 26px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.step p { font-size: 14.5px; opacity: 0.88; }
.step-io {
  margin-top: 16px;
  font-size: 11px;
  color: var(--lime);
  opacity: 0.75;
  border-top: 1px dashed var(--lime-line);
  padding-top: 12px;
  word-break: break-all;
}
.step::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 14px; height: 14px;
  background: var(--red);
}

/* ── threat index ────────────────────────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.tier-table { display: flex; flex-direction: column; }
.tier-row {
  display: grid;
  grid-template-columns: 190px 90px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 2px solid var(--ink);
}
.tier-row:first-child { border-top: 4px solid var(--ink); }
.tier-range { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; }
.tier-desc { font-size: 15px; }
.tier-critical { background: var(--ink); }
.tier-critical .tier-desc { color: var(--paper); padding-right: 12px; }
.tier-critical .tier-range { color: var(--red); }
.tier-critical .tier-badge { margin-left: 12px; }

/* ── manifesto ───────────────────────────────────────────── */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.quote {
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 22px;
  margin: 30px 0;
}
.quote p {
  font-size: 22px;
  font-weight: 500;
  color: var(--lime);
  line-height: 1.45;
  margin-bottom: 12px;
}
.quote cite { font-style: normal; font-size: 12px; opacity: 0.7; letter-spacing: 0.1em; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band { padding: 120px 0; }
.cta-wrap { text-align: center; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.outline-strong { color: transparent; -webkit-text-stroke: 3px var(--ink); }
.cta-wrap .sec-lead { margin: 0 auto 36px; }

/* ── footer ──────────────────────────────────────────────── */
.footer { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}
.logo-foot .logo-word { font-size: 18px; }
.foot-jp { font-size: 10.5px; opacity: 0.5; margin-top: 10px; letter-spacing: 0.14em; color: var(--lime); }
.foot-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.foot-nav a { font-size: 11.5px; letter-spacing: 0.14em; text-decoration: none; opacity: 0.7; color: var(--paper); }
.foot-nav a:hover { opacity: 1; color: var(--lime); }
.foot-copy {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--lime);
  text-align: center;
  align-self: center;
  white-space: nowrap;
}
.foot-end {
  justify-self: end;
  text-align: right;
  max-width: 60ch;
}
.foot-social {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--lime);
  border-bottom: 1px solid var(--lime);
  margin-bottom: 16px;
}
.foot-social:hover { color: var(--red); border-bottom-color: var(--red); }
.disclaimer { font-size: 12px; opacity: 0.55; }

/* ── image slots + fallback art ──────────────────────────── */
.img-slot { position: relative; overflow: hidden; background: var(--ink); }
.slot-45 { aspect-ratio: 4 / 5; }
.slot-11 { aspect-ratio: 1 / 1; }
.slot-wide { aspect-ratio: 21 / 6; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.is-empty img { display: none; }

.frame { border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.frame-dark { border-color: var(--lime); box-shadow: 12px 12px 0 rgba(204, 255, 0, 0.22); }

.slot-fallback {
  position: absolute;
  inset: 0;
  display: none;
  background:
    linear-gradient(rgba(204, 255, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.05) 1px, transparent 1px),
    var(--ink);
  background-size: 32px 32px;
}
.img-slot.is-empty .slot-fallback { display: block; }
.sf-tri {
  position: absolute;
  left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  width: 46%;
  aspect-ratio: 1;
  background: transparent;
  border: 2px solid var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}
.sf-tri::after {
  content: '';
  position: absolute;
  inset: 12%;
  background: rgba(204, 255, 0, 0.12);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.sf-eye {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px 4px rgba(255, 46, 46, 0.7);
  animation: blink 2.6s steps(2) infinite;
}
.sf-bars {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 46px,
    rgba(255, 46, 46, 0.09) 46px 48px,
    transparent 48px 110px,
    rgba(204, 255, 0, 0.07) 110px 113px
  );
}
.sf-text {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding: 0 14px;
}
.sf-jp { font-family: var(--font-mono); color: var(--red); font-size: 12px; letter-spacing: 0.5em; }
.sf-label { font-family: var(--font-mono); color: var(--lime); font-size: 11px; letter-spacing: 0.28em; }
.sf-text code { font-family: var(--font-mono); color: var(--paper); font-size: 10.5px; opacity: 0.65; }
.sf-hint { font-family: var(--font-mono); color: var(--paper); font-size: 9.5px; opacity: 0.4; letter-spacing: 0.06em; }

/* hazard-stripe variant for the wide divider */
.sf-stripes {
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 26px,
    var(--lime) 26px 52px
  );
}
.sf-stripes .sf-text {
  bottom: 50%;
  transform: translateY(50%);
}
.sf-stripes .sf-label {
  background: var(--ink);
  padding: 10px 18px;
  font-size: 13px;
}
.sf-stripes code { background: var(--ink); padding: 4px 10px; }

.slot-meta {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  background: var(--ink);
  color: var(--lime);
  padding: 9px 12px;
  border-top: 2px solid var(--red);
}
.slot-meta .jp { opacity: 0.6; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid, .manifesto-grid, .tier-grid { grid-template-columns: 1fr; }
  .console-grid { grid-template-columns: 1fr; }
  .cap-grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .jp-side { display: none; }
  .hero-visual { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-copy { text-align: left; justify-self: start; }
  .foot-end { justify-self: start; text-align: left; max-width: none; }
  .disclaimer { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cap-grid, .steps { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .signal-list { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .tier-critical { padding: 16px 12px; }
  .term-input { flex-wrap: wrap; }
  .kind-toggle { order: 3; }
  .wrap { padding: 0 18px; }
  .topbar { padding: 12px 18px; gap: 14px; }
  .slab-b, .slab-d { display: none; }
}

/* ── scroll reveals ──────────────────────────────────────── */
.reveal {
  --reveal-y: 36px;
  --reveal-x: 0px;
  --reveal-scale: 1;
  --reveal-skew: 0deg;
  opacity: 0;
  transform:
    translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale))
    skewY(var(--reveal-skew));
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
  will-change: opacity, transform;
}
.reveal-up    { --reveal-y: 40px; --reveal-x: 0; }
.reveal-left  { --reveal-y: 18px; --reveal-x: -42px; }
.reveal-right { --reveal-y: 18px; --reveal-x: 42px; }
.reveal-scale { --reveal-y: 24px; --reveal-scale: 0.94; }
.reveal-slash { --reveal-y: 28px; --reveal-x: -18px; --reveal-skew: 1.4deg; }
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, var(--para-y, 0px), 0) scale(1) skewY(0);
}

.hero-copy .reveal:nth-child(1) { --reveal-delay: 40; }
.hero-copy .reveal:nth-child(2) { --reveal-delay: 120; }
.hero-copy .reveal:nth-child(3) { --reveal-delay: 200; }
.hero-copy .reveal:nth-child(4) { --reveal-delay: 280; }
.hero-copy .reveal:nth-child(5) { --reveal-delay: 360; }
.hero-copy .reveal:nth-child(6) { --reveal-delay: 440; }
.hero-visual.reveal { --reveal-delay: 220; }

.topbar.is-scrolled {
  background: rgba(11, 11, 12, 0.94);
  border-bottom-color: var(--lime);
  box-shadow: 0 8px 0 rgba(204, 255, 0, 0.12);
}
.topbar {
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav a {
  transition: color 0.15s ease, opacity 0.15s ease;
}
.nav a.is-active {
  opacity: 1;
  color: var(--lime);
}
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--red);
}

.band .sec-title.reveal-slash.is-in {
  transition-duration: 0.85s;
}

/* ── reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .glitch::before, .glitch::after { animation: none !important; opacity: 0 !important; }
  .blink, .term-head .dot, .sf-eye, .tier-badge.t-critical { animation: none; }
  .btn, .cap, .topbar, .nav a { transition: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
