/* ============================================================
   PSYBORG // V1 CRYPTOPUNKS
   Palette: V1 lavender #A79AFF, bright red, black, grey.
   ============================================================ */

@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk[wght].ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono[wght].ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --lav: #a79aff;
  --lav-hi: #c2b8ff;
  --lav-lo: #8d7cf0;
  --ink: #08070c;
  --ink-2: #100e16;
  --panel: #0b0a10;
  --panel-2: #15121e;
  --red: #ff2b2b;
  --red-deep: #d41414;
  --red-ink: #7a0000;
  --grey: #6e6a7a;
  --grey-2: #9a95a8;
  --line: rgba(8, 7, 12, 0.18);
  --line-light: rgba(255, 255, 255, 0.14);
  --paper: #f3f0ff;
  --font-display: "Chakra Petch", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 82px);
  --max: 1500px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--lav);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 1000;
  padding: 12px 18px; background: var(--red); color: var(--ink);
  font-family: var(--font-mono); font-size: 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* ---------- global textures ---------- */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: 0.18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.scan {
  position: fixed; inset: 0; z-index: 901; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,0.055) 3px 4px);
  opacity: 0.5;
}
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--red); z-index: 1001;
  box-shadow: 0 0 14px rgba(255,43,43,0.8);
}

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--ink); color: var(--lav);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: min(560px, calc(100vw - 48px)); }
.boot-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 12vw, 120px); line-height: 0.8;
  color: var(--lav); letter-spacing: -0.06em; margin-bottom: 34px;
}
.boot-mark span { color: var(--red); }
.boot-log {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  border-top: 1px solid rgba(167,154,255,0.3); padding-top: 18px;
}
.boot-log p { display: flex; gap: 10px; margin: 0 0 9px; color: var(--grey-2); }
.boot-log p span { color: var(--red); }
.boot-log p b { margin-left: auto; color: var(--lav); font-weight: 500; }
.boot-bar { height: 3px; background: rgba(167,154,255,0.2); margin-top: 22px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--red); animation: bootload 1.5s var(--ease) forwards; }
@keyframes bootload { to { width: 100%; } }

/* ---------- hud ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 74px; display: flex; align-items: center; gap: 30px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(8,7,12,0.25);
  background: rgba(167,154,255,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background 0.3s ease, transform 0.4s var(--ease);
}
.hud.scrolled {
  background: rgba(8,7,12,0.9);
  color: var(--paper);
  border-bottom-color: rgba(255,43,43,0.55);
}
.hud-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.hud-glyph {
  font-family: var(--font-display); font-weight: 700; font-size: 27px;
  letter-spacing: -0.08em; line-height: 1; color: var(--ink);
}
.hud-glyph span { color: var(--red); }
.hud.scrolled .hud-glyph { color: var(--paper); }
.hud-name {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; line-height: 1.25; display: flex; flex-direction: column;
}
.hud-name small { font-weight: 400; font-size: 8px; letter-spacing: 0.18em; color: var(--grey); }
.hud.scrolled .hud-name small { color: var(--grey-2); }
.hud-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.hud-nav a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0;
}
.hud-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s var(--ease);
}
.hud-nav a:hover::after, .hud-nav a.active::after { width: 100%; }
.hud-status {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,43,43,0.7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255,43,43,0); } 100% { box-shadow: 0 0 0 0 rgba(255,43,43,0); } }
.hud-chain b { color: var(--red); font-weight: 600; }
.menu-btn {
  display: none; border: 1px solid currentColor; background: transparent;
  padding: 7px 10px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; cursor: pointer;
}

.rail {
  position: fixed; z-index: 400; left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.28em;
  color: rgba(8,7,12,0.55); pointer-events: none;
}
.rail i { width: 1px; height: 40px; background: rgba(8,7,12,0.3); }
.rail-right { left: auto; right: 14px; transform: translateY(-50%); pointer-events: auto; }
.rail-right a { text-decoration: none; color: rgba(8,7,12,0.62); }
.rail-right a:hover { color: var(--red); }
@media (max-width: 1180px) { .rail { display: none; } }

/* ---------- shared ---------- */
.section {
  position: relative;
  padding: clamp(84px, 11vw, 160px) var(--pad);
}
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(180px, 260px);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(46px, 6vw, 86px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section-head.light { border-bottom-color: var(--line-light); }
.build .sec-num, .culture .sec-num, .credits .sec-num { color: var(--red); }
.build .eyebrow, .culture .eyebrow, .credits .eyebrow { color: var(--red); }
.sec-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--red-ink); align-self: start; padding-top: 8px;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red-ink); margin: 0 0 12px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 6.6vw, 96px); line-height: 0.88;
  letter-spacing: -0.035em; margin: 0; text-transform: uppercase;
}
.sec-note {
  font-family: var(--font-mono); font-size: 10px; line-height: 1.8;
  letter-spacing: 0.08em; color: rgba(8,7,12,0.55); margin: 0; text-align: right;
}
.light .sec-note { color: var(--grey-2); }
.lead {
  font-size: clamp(19px, 1.7vw, 26px); line-height: 1.5;
  letter-spacing: -0.015em; font-weight: 500;
}
.section a:not(.btn):not(.link-card) { text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  min-width: 200px; padding: 15px 18px 15px 22px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
}
.btn i { font-style: normal; font-size: 16px; line-height: 1; }
.btn:hover { transform: translate(-2px, -2px); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-red:hover { box-shadow: 8px 8px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--lav); }
.btn-ghost.dark { border-color: var(--paper); color: var(--paper); }
.btn-ghost.dark:hover { background: var(--paper); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: 118px var(--pad) 30px;
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 82% 35%, rgba(255,43,43,0.20), transparent 60%),
    radial-gradient(ellipse 80% 70% at 10% 90%, rgba(255,255,255,0.35), transparent 55%),
    var(--lav);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(8,7,12,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,7,12,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 78%);
}
.hero-topline {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  color: rgba(8,7,12,0.6);
}
.hero-topline i { color: var(--red); font-style: normal; }
.hero-layout {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(26px, 4vh, 52px) 0;
}
.hero-copy, .hero-art { min-width: 0; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  margin: 0 0 clamp(12px, 2vh, 24px);
}
.pulse {
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,43,43,0.6); animation: ping 1.9s infinite;
}
.hero-title {
  position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(68px, 10.5vw, 170px);
  line-height: 0.76; letter-spacing: -0.07em;
  margin: 0 0 clamp(12px, 2vh, 22px);
  text-transform: uppercase;
  color: var(--ink);
  isolation: isolate;
}
.hero-title::before {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; z-index: -1;
  color: var(--red); transform: translate(0.055em, 0.05em);
  -webkit-text-stroke: 0;
}
.hero-title span {
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.22vw, 3px) var(--ink);
}
.hero-title::after {
  content: ""; position: absolute; left: 2%; right: 4%; top: 48%; height: 7%;
  background: var(--red); z-index: -1; transform: skewX(-18deg) translateX(10px);
  opacity: 0.9;
}
.hero-sub { display: flex; gap: 16px; align-items: stretch; margin-bottom: clamp(10px, 2vh, 18px); }
.sub-rule { width: 44px; background: var(--ink); flex: 0 0 auto; }
.hero-sub p {
  margin: 0; font-family: var(--font-mono); font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.6; letter-spacing: 0.12em;
}
.hero-sub b { font-weight: 700; }
.hero-lede {
  max-width: 610px; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.55;
  margin: 0 0 clamp(20px, 3vh, 34px); color: rgba(8,7,12,0.82);
}
.hero-lede em { font-style: normal; background: var(--ink); color: var(--lav); padding: 1px 7px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(22px, 4vh, 40px); }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--line); max-width: 610px;
}
.hero-meta div { padding: 13px 14px 0 0; }
.hero-meta span { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em; color: rgba(8,7,12,0.55); }
.hero-meta b { display: block; font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.01em; }

/* hero art */
.hero-art {
  position: relative; display: grid; place-items: center;
  min-height: 480px; padding: 24px;
}
.orbit {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(8,7,12,0.35);
  pointer-events: none;
}
.orbit-a { width: min(560px, 92%); aspect-ratio: 1; animation: spin 46s linear infinite; }
.orbit-b { width: min(470px, 78%); aspect-ratio: 1; border-color: rgba(255,43,43,0.55); border-style: solid; border-width: 1px; animation: spin 32s linear infinite reverse; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; width: 7px; height: 7px; background: var(--red);
}
.orbit::before { top: -4px; left: 50%; }
.orbit::after { bottom: -4px; left: 50%; background: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.specimen {
  position: relative; z-index: 2;
  width: min(420px, 88%);
  background: var(--panel); color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 16px 16px 0 rgba(255,43,43,0.9), 22px 22px 0 rgba(8,7,12,0.9);
  transform: rotate(1.4deg);
  transition: transform 0.5s var(--ease);
}
.hero-art:hover .specimen { transform: rotate(0deg) translateY(-4px); }
.specimen-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em;
}
.rec { display: flex; align-items: center; gap: 5px; color: var(--red); }
.rec i { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: blink 1.3s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.specimen-screen {
  position: relative; margin: 12px; background: var(--lav);
  border: 1px solid rgba(255,255,255,0.15); overflow: hidden;
}
.specimen-screen img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.specimen-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(8,7,12,0.10) 4px 5px);
}
.target i { position: absolute; width: 18px; height: 18px; border-color: var(--red); border-style: solid; }
.target i:nth-child(1) { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.target i:nth-child(2) { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.target i:nth-child(3) { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.target i:nth-child(4) { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.coord {
  position: absolute; font-family: var(--font-mono); font-size: 7px;
  letter-spacing: 0.12em; background: var(--ink); color: var(--lav); padding: 3px 5px;
}
.c1 { top: 12px; left: 50%; transform: translateX(-50%); }
.c2 { bottom: 12px; left: 12px; }
.c3 { bottom: 12px; right: 12px; color: var(--red); }
.specimen-data {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,0.13); margin: 0 12px 12px;
}
.specimen-data div { background: var(--panel); padding: 7px 9px; }
.specimen-data span { display: block; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.13em; color: var(--grey-2); }
.specimen-data b { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.03em; font-weight: 600; }
.specimen-data b.ok { color: #6dffb0; }
.specimen-barcode {
  height: 20px; margin: 0 12px 14px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 1px, transparent 1px 3px, var(--paper) 3px 5px, transparent 5px 8px);
  opacity: 0.55;
}
.float-tag {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em;
  background: var(--ink); color: var(--lav); padding: 6px 9px;
  border: 1px solid var(--lav);
}
.tag-a { top: 16%; left: 0; transform: rotate(-4deg); }
.tag-b { bottom: 20%; right: 0; transform: rotate(3deg); border-color: var(--red); color: var(--red); }
.tag-c { top: 8%; right: 8%; background: var(--red); color: var(--ink); border-color: var(--red); }

.hero-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 16px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
}
.hero-footer p { margin: 0; color: rgba(8,7,12,0.6); }
.hero-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); }
.scroll-cue { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.scroll-cue i {
  width: 16px; height: 26px; border: 1px solid var(--ink); border-radius: 10px; position: relative;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 7px;
  background: var(--red); transform: translateX(-50%); animation: scroll 1.8s ease infinite;
}
@keyframes scroll { 0%,100% { transform: translate(-50%,0); opacity: 1; } 70% { transform: translate(-50%,9px); opacity: 0; } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink); color: var(--lav);
  border-top: 2px solid var(--red); border-bottom: 2px solid var(--red);
  overflow: hidden; padding: 13px 0;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
}
.ticker-track { display: flex; gap: 42px; width: max-content; animation: marquee 52s linear infinite; }
.ticker span { white-space: nowrap; }
.ticker b { color: var(--red); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- origin ---------- */
.origin-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: clamp(30px, 5vw, 80px); align-items: start;
}
.origin-copy p { margin: 0 0 20px; max-width: 64ch; }
.origin-copy blockquote {
  margin: 34px 0 0; padding: 22px 0 0 24px;
  border-left: 3px solid var(--red);
}
.origin-copy blockquote p {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px;
}
.origin-copy cite { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.13em; font-style: normal; color: var(--grey); }

.code-panel {
  position: sticky; top: 108px;
  background: var(--panel); color: var(--paper);
  border: 1px solid var(--ink); box-shadow: 12px 12px 0 rgba(255,43,43,0.9);
}
.code-top, .code-foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em;
  padding: 10px 12px;
}
.code-top { border-bottom: 1px solid var(--line-light); color: var(--grey-2); }
.code-foot { border-top: 1px solid var(--line-light); color: var(--grey-2); align-items: center; }
.code-panel pre {
  margin: 0; padding: 18px 14px; overflow-x: auto;
  font-family: var(--font-mono); font-size: clamp(9px, 0.8vw, 11px); line-height: 1.8;
}
.code-panel code { font-family: inherit; }
.c-grey { color: #7d778c; }
.c-red { color: var(--red); }
.led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.led.red { background: var(--red); }
.code-callout {
  margin: 0 14px 16px; padding: 14px;
  border: 1px solid var(--red); color: var(--red);
  font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 30px);
  line-height: 0.95; letter-spacing: -0.02em;
}
.code-callout b { color: var(--paper); }

.versus {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  margin-top: clamp(48px, 6vw, 80px);
  border: 1px solid var(--ink);
}
.versus article { padding: clamp(22px, 3vw, 38px); background: rgba(255,255,255,0.18); }
.versus article:last-child { background: var(--ink); color: var(--paper); }
.v-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 9px;
  background: var(--ink); color: var(--lav); padding: 4px 8px; margin-bottom: 12px;
}
.v-tag.v2 { background: var(--red); color: var(--ink); }
.versus h3 { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.versus ul { margin: 0; padding: 0; list-style: none; }
.versus li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 9px 0; border-top: 1px solid currentColor; border-color: rgba(8,7,12,0.18);
}
.versus article:last-child li { border-color: rgba(255,255,255,0.16); }
.v-divider { display: grid; place-items: center; background: var(--red); color: var(--ink); }
.v-divider span { font-family: var(--font-display); font-size: 20px; transform: rotate(-90deg); letter-spacing: 0.1em; }

/* ---------- spark ---------- */
.spark { background: var(--paper); }
.spark-grid {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,0.75fr);
  gap: clamp(30px, 5vw, 80px); align-items: start;
}
.spark-copy p { margin: 0 0 18px; }
.transmission {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}
.tx-head, .tx-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em;
}
.tx-head { border-bottom: 1px solid var(--line-light); color: var(--grey-2); }
.tx-body { padding: 16px 14px; }
.tx-line { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.14); }
.tx-line span { font-family: var(--font-mono); font-size: 8px; color: var(--red); padding-top: 4px; }
.tx-line p { margin: 0; font-size: 14px; line-height: 1.45; }
.tx-foot { border-top: 1px solid var(--line-light); color: var(--grey-2); align-items: center; }
.blink { color: var(--red); animation: blink 1.3s steps(1) infinite; }
.tx-disclaimer { margin: 0; padding: 0 14px 14px; font-family: var(--font-mono); font-size: 7px; color: var(--grey); }

/* ---------- build ---------- */
.build { background: var(--ink); color: var(--paper); overflow: hidden; }
.build::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(255,43,43,0.16), transparent 65%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(167,154,255,0.14), transparent 70%);
}
.build > * { position: relative; }
.build .section-head h2 { color: var(--paper); }
.build-intro { max-width: 980px; margin-bottom: clamp(36px, 5vw, 64px); }
.build-intro p { color: var(--grey-2); }
.build-intro .lead { color: var(--paper); }
.arch {
  display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr 46px 1fr;
  align-items: stretch; margin-bottom: clamp(40px, 5vw, 70px);
}
.arch-node {
  border: 1px solid rgba(255,255,255,0.18); padding: 18px;
  background: rgba(255,255,255,0.03); position: relative;
}
.arch-node.hot { border-color: var(--red); background: rgba(255,43,43,0.06); }
.arch-node .n { font-family: var(--font-mono); font-size: 8px; color: var(--red); letter-spacing: 0.12em; }
.arch-node h3 { font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 21px); margin: 8px 0 8px; letter-spacing: -0.01em; }
.arch-node p { margin: 0; font-family: var(--font-mono); font-size: 8px; line-height: 1.7; color: var(--grey-2); }
.arch-link { display: grid; place-items: center; position: relative; }
.arch-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--red); }
.arch-link span {
  position: relative; background: var(--ink); color: var(--red);
  font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; padding: 3px 2px;
}
.build-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.16); }
.build-cards article { background: var(--ink); padding: clamp(22px, 3vw, 36px); position: relative; }
.bc-index { font-family: var(--font-mono); font-size: 9px; color: var(--red); }
.build-cards h3 { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); margin: 10px 0 12px; letter-spacing: -0.015em; }
.build-cards p { margin: 0; color: var(--grey-2); font-size: 15px; }
.swatches { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-mono); font-size: 9px; }
.swatches i { width: 38px; height: 18px; border: 1px solid rgba(255,255,255,0.4); }
.build-quote {
  margin-top: clamp(40px, 5vw, 66px); padding: clamp(26px, 4vw, 48px);
  border-left: 3px solid var(--red); background: rgba(255,255,255,0.03);
}
.build-quote p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -0.025em;
  margin: 0 0 16px; max-width: 1100px;
}
.build-quote span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--red); }

/* ---------- timeline ---------- */
.timeline { background: var(--lav); }
.tl { position: relative; max-width: 1160px; margin: 0 auto; padding-left: 72px; }
.tl::before { content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 2px; background: rgba(8,7,12,0.32); }
.tl-year {
  position: relative; margin: 48px 0 26px; padding-left: 0;
}
.tl-year:first-child { margin-top: 0; }
.tl-year span {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(54px, 7vw, 100px); line-height: 1;
  letter-spacing: -0.05em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(8,7,12,0.55);
}
.tl-year span::before {
  content: ""; position: absolute; left: -54px; top: 50%; width: 14px; height: 14px;
  background: var(--red); transform: translateY(-50%) rotate(45deg);
}
.tl-item {
  position: relative; display: grid; grid-template-columns: 104px minmax(0,1fr);
  gap: clamp(16px, 2.5vw, 32px);
  padding: 0 0 30px;
}
.tl-item::before {
  content: ""; position: absolute; left: -50px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 4px var(--lav);
}
.tl-item.hot::before { background: var(--red); box-shadow: 0 0 0 4px var(--lav), 0 0 16px rgba(255,43,43,0.7); }
.tl-item.alert::before { background: var(--red); }
.tl-date {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  padding-top: 7px; color: rgba(8,7,12,0.65); white-space: nowrap;
}
.tl-body {
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(8,7,12,0.16);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.tl-item:hover .tl-body { transform: translateX(6px); background: rgba(255,255,255,0.5); border-color: rgba(8,7,12,0.45); }
.tl-item.hot .tl-body { border-left: 3px solid var(--red); }
.tl-body h3 { font-family: var(--font-display); font-size: clamp(20px, 2vw, 27px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.015em; }
.tl-body p { margin: 0; font-size: 15px; }
.tl-body code { font-family: var(--font-mono); font-size: 0.85em; background: rgba(8,7,12,0.08); padding: 1px 5px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-tags span {
  font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em;
  border: 1px solid rgba(8,7,12,0.35); padding: 3px 6px;
}
.tl-tags .tag-red { background: var(--red); color: var(--ink); border-color: var(--red); }
.tl-link {
  display: inline-flex; gap: 8px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  text-decoration: none; border-bottom: 1px solid var(--red-ink); padding-bottom: 2px;
}
.tl-link span { color: var(--red-ink); }

/* ---------- culture ---------- */
.culture { background: var(--ink); color: var(--paper); }
.culture .section-head h2 { color: var(--paper); }
.culture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.16); }
.culture-card { background: var(--panel); display: flex; flex-direction: column; min-height: 100%; transition: background 0.25s ease; }
.culture-card:hover { background: var(--panel-2); }
.cc-visual { position: relative; height: 300px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.14); }
.cc-body { padding: clamp(22px, 2.8vw, 34px); display: flex; flex-direction: column; flex: 1; }
.cc-tag { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em; color: var(--red); margin-bottom: 10px; }
.cc-body h3 { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 36px); line-height: 1; margin: 0 0 14px; letter-spacing: -0.025em; }
.cc-body p { margin: 0 0 20px; color: var(--grey-2); font-size: 15px; }
.cc-body a, .cc-links a {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 3px;
}
.cc-body a span, .cc-links a span { color: var(--red); }
.cc-links { display: flex; gap: 20px; margin-top: auto; }
.cc-links a { margin-top: 0; }

/* gallery visual */
.gallery-visual { background: linear-gradient(160deg, #211a34, #0b0a10 60%); display: grid; place-items: center; }
.gallery-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,43,43,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,43,43,0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(380px) rotateX(62deg) translateY(42%);
  transform-origin: bottom;
}
.gallery-frame {
  position: relative; z-index: 2; width: 130px; height: 168px;
  border: 2px solid var(--lav); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(167,154,255,0.08), 0 0 38px rgba(167,154,255,0.25);
  transform: rotate(-4deg);
}
.gallery-frame span { font-family: var(--font-display); font-size: 58px; color: var(--lav); }
.gallery-frame i { position: absolute; width: 9px; height: 9px; border: 1px solid var(--red); }
.gallery-frame i:nth-child(2) { top: 8px; left: 8px; }
.gallery-frame i:nth-child(3) { top: 8px; right: 8px; }
.gallery-frame i:nth-child(4) { bottom: 8px; left: 8px; }
.neon {
  position: absolute; z-index: 3; top: 22px; right: 24px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.08em;
  color: var(--red); border: 1px solid var(--red); padding: 4px 10px;
  text-shadow: 0 0 12px rgba(255,43,43,0.8); box-shadow: 0 0 20px rgba(255,43,43,0.3) inset;
}

/* discord visual */
.discord-visual { background: radial-gradient(ellipse at 50% 0%, #2a2342, #0b0a10 65%); display: grid; place-items: center; padding: 26px; }
.terminal { width: 100%; max-width: 390px; background: #09080e; border: 1px solid rgba(167,154,255,0.35); font-family: var(--font-mono); font-size: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.term-top { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.12); color: var(--grey-2); }
.term-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey); }
.term-top i:first-child { background: var(--red); }
.term-top span { margin-left: 8px; font-size: 8px; }
.term-line { display: grid; grid-template-columns: 68px 1fr; gap: 6px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.term-line b { color: var(--lav); font-weight: 500; font-size: 8px; }
.term-line span { color: var(--grey-2); }
.term-line.dim { opacity: 0.55; }

/* wall visual */
.wall-visual { background: #17131d; display: grid; place-items: center; }
.brickwall { display: grid; grid-template-columns: repeat(3, 96px); grid-auto-rows: 72px; gap: 6px; transform: rotate(-2deg); }
.brick { background: #241d2f; border: 1px solid rgba(255,255,255,0.09); display: grid; place-items: center; overflow: hidden; position: relative; }
.brick img { width: 64px; height: 64px; image-rendering: pixelated; }
.brick:nth-child(2n) { background: #2b2238; }
.brick.b5, .brick.b6 { background: repeating-linear-gradient(0deg, #1d1726 0 6px, #241d2f 6px 12px); }
.wall-label {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em;
  color: var(--lav); border-left: 2px solid var(--red); padding-left: 8px; line-height: 1.6;
}

/* book visual */
.book-visual { background: radial-gradient(ellipse at 60% 40%, #2c2440, #0b0a10 70%); display: grid; place-items: center; perspective: 700px; }
.book {
  position: relative; z-index: 2; width: 190px; height: 250px;
  background: var(--lav); color: var(--ink); padding: 20px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateY(-18deg) rotateX(4deg) rotateZ(-3deg);
  box-shadow: 18px 18px 0 rgba(255,43,43,0.85), 28px 28px 40px rgba(0,0,0,0.5);
  border-left: 10px solid #6f5fd6;
}
.book-small { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em; }
.book strong { font-family: var(--font-display); font-size: 44px; line-height: 0.78; letter-spacing: -0.05em; }
.book-foot { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.13em; }
.book-shadow { position: absolute; width: 220px; height: 20px; background: rgba(0,0,0,0.55); filter: blur(14px); transform: translate(14px, 150px); }

/* lift visual */
.lift-visual { background: radial-gradient(ellipse at 50% 30%, #2a2342, #0b0a10 70%); display: grid; place-items: center; }
.gba {
  position: relative; width: 238px; height: 146px; border-radius: 11px 11px 26px 11px;
  background: linear-gradient(160deg, #b9b4c8, #7d778c);
  border: 2px solid #d9d5e3; box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  transform: rotate(-4deg);
}
.gba-screen { position: absolute; left: 16px; top: 16px; width: 112px; height: 102px; background: var(--lav); border: 7px solid #2a2633; border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.gba-screen img { width: 62px; height: 62px; image-rendering: pixelated; }
.gba-screen span { position: absolute; bottom: 2px; font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.2em; color: var(--ink); }
.gba-controls { position: absolute; right: 16px; top: 26px; width: 84px; height: 84px; }
.dpad { position: absolute; left: 0; top: 18px; width: 32px; height: 32px; background: #2a2633; clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%); }
.ab { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--red); right: 12px; top: 8px; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25); }
.ab.b { right: 0; top: 32px; background: #2a2633; }
.start { position: absolute; width: 26px; height: 8px; border-radius: 6px; background: #2a2633; right: 12px; bottom: -10px; }
.gba-brand { position: absolute; bottom: 8px; left: 18px; font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.15em; color: #2a2633; }

/* moon visual */
.moon-visual { background: #05040a; overflow: hidden; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 45% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 80%, #fff, transparent); opacity: 0.7; }
.moon {
  position: absolute; right: -40px; top: 30px; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e9e5f5, #8f88a8 55%, #4a4560 80%);
  box-shadow: 0 0 60px rgba(167,154,255,0.18);
}
.moon-punks { position: absolute; left: 30px; top: 80px; display: flex; }
.moon-punks img { width: 92px; height: 92px; image-rendering: pixelated; border: 1px solid rgba(255,255,255,0.45); background: var(--lav); }
.moon-punks img + img { margin-left: -30px; transform: translateY(18px); }
.moon-label { position: absolute; left: 30px; top: 38px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em; color: var(--lav); line-height: 1.7; }
.moon-label span { color: var(--red); }
.moon-path { position: absolute; left: 0; right: 0; bottom: 28px; height: 1px; background: repeating-linear-gradient(90deg, rgba(167,154,255,0.6) 0 6px, transparent 6px 12px); }

.dayjob {
  margin-top: 1px; display: grid; grid-template-columns: 110px minmax(0,1fr) auto;
  align-items: center; gap: clamp(20px, 3vw, 40px);
  background: var(--red); color: var(--ink); padding: clamp(22px, 3vw, 34px);
}
.dj-mark { font-family: var(--font-display); font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.05em; }
.dj-copy .eyebrow { color: var(--ink); }
.dj-copy p { margin: 0; max-width: 820px; font-size: 15px; }
.dayjob .btn { border-color: var(--ink); color: var(--ink); }

/* ---------- archive ---------- */
.archive { background: var(--paper); }
.archive-group { margin-bottom: clamp(40px, 5vw, 64px); }
.ag-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ag-head span { font-family: var(--font-mono); font-size: 9px; color: var(--red-ink); }
.ag-head h3 { font-family: var(--font-display); font-size: clamp(20px, 2vw, 27px); margin: 0; letter-spacing: -0.01em; }
.ag-head i { flex: 1; height: 1px; background: rgba(8,7,12,0.22); }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: rgba(8,7,12,0.18); border: 1px solid rgba(8,7,12,0.18); }
.link-card {
  position: relative; display: block; text-align: left;
  background: var(--paper); border: 0; padding: 20px 20px 18px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 132px;
}
.link-card:hover { background: var(--ink); color: var(--paper); }
.link-card:hover p { color: var(--grey-2); }
.lc-tag { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.14em; color: var(--red-ink); }
.link-card h4 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 5px; letter-spacing: -0.01em; line-height: 1.05; }
.link-card p { margin: 0; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.04em; color: rgba(8,7,12,0.6); line-height: 1.6; }
.link-card p.mono { letter-spacing: 0.02em; font-size: 9px; }
.link-card > i {
  position: absolute; top: 16px; right: 16px;
  font-style: normal; font-size: 15px; color: var(--red-ink);
  transition: transform 0.2s ease;
}
.link-card:hover > i { transform: translate(2px,-2px); }
.link-card:hover .lc-tag, .link-card:hover > i { color: var(--red); }
.link-card.copy { width: 100%; font: inherit; color: inherit; }
.link-card.copied { background: var(--red); color: var(--ink); }
.link-card.copied p, .link-card.copied .lc-tag { color: var(--ink); }

/* ---------- credits ---------- */
.credits { background: var(--ink); color: var(--paper); overflow: hidden; }
.credits::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255,43,43,0.12), transparent 70%);
  pointer-events: none;
}
.credits > * { position: relative; }
.credits .section-head h2 { color: var(--paper); }
.credit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.15); }
.credit-card { background: var(--ink); padding: clamp(24px, 3vw, 40px); position: relative; }
.credit-card.feature { grid-column: span 2; display: grid; grid-template-columns: 90px minmax(0,1fr); column-gap: 20px; }
.credit-card.feature .cr-num { grid-row: span 4; }
.credit-card.red { background: var(--red); color: var(--ink); }
.cr-num { font-family: var(--font-mono); font-size: 10px; color: var(--red); }
.credit-card.red .cr-num { color: var(--ink); }
.credit-card h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); line-height: 1; margin: 0 0 8px; letter-spacing: -0.03em; }
.cr-role { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em; color: var(--red); margin: 0 0 16px; }
.credit-card.red .cr-role { color: var(--ink); }
.credit-card p { color: var(--grey-2); font-size: 15px; margin: 0 0 18px; max-width: 70ch; }
.credit-card.red p { color: rgba(8,7,12,0.86); }
.cr-links { display: flex; gap: 16px; }
.cr-links a { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.closing { text-align: center; padding: clamp(70px, 9vw, 130px) 0 0; }
.closing-kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.24em; color: var(--red); margin: 0 0 18px; }
.closing h2 { font-family: var(--font-display); font-size: clamp(44px, 8vw, 126px); line-height: 0.82; letter-spacing: -0.05em; margin: 0 0 24px; color: var(--paper); }
.closing > p:not(.closing-kicker) { color: var(--grey-2); max-width: 480px; margin: 0 auto 30px; }
.closing .btn { margin: 0 auto; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 34px var(--pad) 28px; border-top: 1px solid rgba(255,255,255,0.15); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.foot-mark { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.08em; color: var(--lav); }
.foot-mark span { color: var(--red); }
.foot-links { display: flex; gap: clamp(14px, 2.5vw, 34px); flex-wrap: wrap; }
.foot-links a { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-decoration: none; color: var(--grey-2); }
.foot-links a:hover { color: var(--red); }
.disclaimer { max-width: 1000px; font-family: var(--font-mono); font-size: 8px; line-height: 1.9; color: var(--grey-2); margin: 22px 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: var(--grey-2); }

/* ---------- toast / cursor ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 1200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--red); color: var(--ink); padding: 11px 18px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cursor {
  position: fixed; z-index: 1500; width: 24px; height: 24px; pointer-events: none;
  border: 1px solid var(--red); border-radius: 50%; transform: translate(-50%,-50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference; display: none;
}
.cursor::before, .cursor::after { content: ""; position: absolute; background: var(--red); }
.cursor::before { left: 50%; top: -5px; width: 1px; height: 34px; }
.cursor::after { top: 50%; left: -5px; height: 1px; width: 34px; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor.hot { width: 42px; height: 42px; background: rgba(255,43,43,0.12); }

/* ---------- reveal ---------- */
.js-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal.in { opacity: 1; transform: none; }
.js-reveal.d1 { transition-delay: 0.07s; }
.js-reveal.d2 { transition-delay: 0.14s; }
.js-reveal.d3 { transition-delay: 0.21s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { min-height: 0; margin-top: 8px; }
  .specimen { width: min(380px, 82vw); }
  .hero { min-height: auto; }
  .section-head { grid-template-columns: 58px minmax(0,1fr); }
  .sec-note { grid-column: 2; text-align: left; }
  .origin-grid, .spark-grid { grid-template-columns: 1fr; }
  .code-panel { position: relative; top: 0; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-link { height: 34px; }
  .arch-link::before { left: 24px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .arch-link span { position: absolute; left: 24px; transform: translateX(-50%); }
  .build-cards { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .credit-grid { grid-template-columns: 1fr; }
  .credit-card.feature { grid-column: span 1; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .hud { height: 64px; gap: 16px; }
  .hud-nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; gap: 0; margin: 0; padding: 12px var(--pad) 22px;
    background: var(--ink); color: var(--paper);
    border-bottom: 2px solid var(--red);
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    z-index: -1;
  }
  .hud-nav.open { transform: none; }
  .hud-nav a { font-size: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .menu-btn { display: block; }
  .hud-status .hud-chain { display: none; }
  .hero { padding-top: 96px; }
  .hero-topline { font-size: 7px; gap: 8px; }
  .hero-topline span:nth-child(3) { display: none; }
  .hero-title { font-size: clamp(54px, 17.5vw, 140px); }
  .hero-meta div { padding-right: 8px; }
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .specimen { box-shadow: 10px 10px 0 rgba(255,43,43,0.9), 15px 15px 0 rgba(8,7,12,0.9); }
  .float-tag { font-size: 7px; }
  .tag-a { top: 2%; }
  .tag-c { top: 0; }
  .versus { grid-template-columns: 1fr; }
  .v-divider { height: 44px; }
  .v-divider span { transform: none; }
  .tl { padding-left: 46px; }
  .tl::before { left: 16px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-item::before { left: -35px; }
  .tl-year span::before { left: -38px; width: 10px; height: 10px; }
  .tl-date { padding-top: 0; }
  .dayjob { grid-template-columns: 1fr; }
  .dayjob .btn { justify-self: start; }
  .link-grid { grid-template-columns: 1fr; }
  .credit-card.feature { grid-template-columns: 1fr; }
  .credit-card.feature .cr-num { grid-row: auto; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .cc-visual { height: 260px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta div:last-child { grid-column: span 2; padding-top: 10px; }
  .hero-lede { font-size: 15px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .hud { padding: 0 18px; }
  .hud-name { display: none; }
  .code-panel pre { font-size: 8px; }
  .specimen-screen { margin: 8px; }
  .specimen-data { margin: 0 8px 8px; }
  .specimen-barcode { margin: 0 8px 10px; }
  .float-tag { display: none; }
  .brickwall { grid-template-columns: repeat(3, 80px); grid-auto-rows: 60px; }
  .brick img { width: 52px; height: 52px; }
  .book { width: 160px; height: 214px; }
  .book strong { font-size: 36px; }
  .gba { transform: scale(0.92) rotate(-4deg); }
  .closing h2 { font-size: 15vw; }
}

@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; }
  .js-reveal { opacity: 1; transform: none; }
}
