/* MAKRC — site styles, v2
   Lab notebook paper, blueprint blue, safety orange, green phosphor.
   System fonts only. No inline styles anywhere (strict CSP). */

:root {
  --paper: #f2ead8;
  --paper-2: #e9dfc8;
  --paper-3: #fbf5e8;
  --ink: #1d1b16;
  --ink-soft: #4a463c;
  --rule: #c9bc9c;
  --grid: rgba(29, 69, 110, 0.09);
  --accent: #c2501d;        /* safety orange */
  --accent-ink: #9c3d12;    /* darker orange for text on paper (AA) */
  --accent-bright: #ff9a5c; /* on dark / blueprint */
  --bp: #16365a;            /* blueprint navy */
  --bp-ink: #e8f0fa;
  --bp-soft: #c6d5e8;
  --bp-line: rgba(232, 240, 250, 0.16);
  --on-dark: #d9d1bf;
  --on-dark-soft: #b9b19f;
  --focus: #1f6fd1;

  /* lab equipment */
  --wood: #c99a62;
  --beige: #e4d8b8;
  --steel: #b9c0c4;
  --crt: #0f1a12;
  --phosphor: #7dff8a;
  --glass: rgba(232, 240, 250, 0.55);
  --goo: #5fd06e;
  --spark: #6fd3ff;
  --led-red: #e5402a;
  --led-amber: #ffb02e;
  --led-green: #3fd25a;
  --danger: #d62d1f;

  --font-sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
  --font-serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, "Noto Serif", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-hand: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Neue", "Comic Sans MS", "Comic Relief", cursive;

  --wrap: 72rem;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--bp); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sans); font-weight: 700;
  text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

h1, h2, h3 {
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

kbd, code {
  font-family: var(--font-mono); font-size: 0.9em;
  padding: 0.05em 0.35em; border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
}
kbd { border: 1px solid currentColor; border-bottom-width: 2px; background: transparent; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.7rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans); font-weight: 900; font-size: 1.25rem;
  letter-spacing: 0.18em; color: var(--ink); text-decoration: none;
}
.wordmark-mark { width: 1.75rem; height: 1.75rem; transition: transform 0.4s ease; }
.wordmark:hover .wordmark-mark { transform: rotate(120deg); }
.nav-list {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.nav-list a { color: var(--ink); text-decoration: none; padding: 0.3rem 0; display: inline-block; }
.nav-list a:hover { color: var(--accent-ink); text-decoration: underline; }
.nav-cta { font-weight: 700; color: var(--accent-ink) !important; }
@media (max-width: 40rem) {
  .nav-list li:not(:last-child) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.7rem 1.25rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.btn-primary:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-large { font-size: 1.1rem; padding: 0.9rem 1.6rem; }
.btn.is-disabled { cursor: not-allowed; opacity: 0.85; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-grid > *, .button-grid > *, .crew-grid > * { min-width: 0; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }

.status-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.4rem 0.75rem; margin-bottom: 1.25rem;
  border: 2px dashed var(--accent-ink); color: var(--accent-ink); background: var(--paper-3);
  border-radius: 999px;
}
.status-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.hero-title { margin-bottom: 1.25rem; }
.hero-letters {
  display: flex;
  font-size: clamp(4.2rem, 2rem + 12vw, 9rem);
  font-weight: 900; letter-spacing: 0.02em; line-height: 0.9;
}
.hero-letters > span {
  position: relative; display: inline-block;
  transition: transform 0.18s ease, color 0.18s ease;
}
.hero-letters > span:nth-child(1) { transform: rotate(-3deg); }
.hero-letters > span:nth-child(2) { transform: translateY(0.04em) rotate(2deg); }
.hero-letters > span:nth-child(3) { transform: rotate(-1deg); color: var(--accent); }
.hero-letters > span:nth-child(4) { transform: translateY(-0.03em) rotate(3deg); }
.hero-letters > span:nth-child(5) { transform: rotate(-2deg); }
.hero-letters > span:hover { transform: translateY(-0.08em) rotate(-6deg) scale(1.06); color: var(--bp); }
.hero-letters > span::after {
  content: attr(data-word);
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, 0.4rem) rotate(4deg);
  font-family: var(--font-hand); font-size: 1rem; font-weight: 700; letter-spacing: 0;
  white-space: nowrap; color: var(--accent-ink);
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.hero-letters > span:hover::after { opacity: 1; }
.hero-expansion {
  display: block; margin-top: 0.9rem;
  font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.3rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.hero-expansion b { color: var(--accent-ink); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 34em; }

.stamp {
  display: inline-block; margin: 0.25rem 0 0;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--danger); border: 3px double var(--danger);
  padding: 0.3rem 0.8rem; transform: rotate(-4deg);
  opacity: 0.85;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

.hero-art { margin: 0; max-width: 30rem; justify-self: center; width: 100%; }
.hero-art figcaption { display: flex; justify-content: center; margin-top: 0.5rem; }

/* Apparatus No. 1 */
.apparatus .led { animation: blink 2.6s steps(1) infinite; }
.apparatus .led-2 { animation-delay: -0.7s; animation-duration: 1.9s; }
.apparatus .led-3 { animation-delay: -1.3s; animation-duration: 3.1s; }
.apparatus .led-4 { animation-delay: -0.2s; animation-duration: 1.4s; }
.crt-cursor { animation: blink 1.1s steps(1) infinite; }
.crt-alive { display: none; }
.bubble { animation: bubble 3.2s ease-in infinite; }
.b2 { animation-delay: -1.1s; }
.b3 { animation-delay: -2.2s; }
.spark { opacity: 0; }
.knob { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.4s ease; }

.powered .crt-idle { display: none; }
.powered .crt-alive { display: inline; }
.powered .apparatus .led { animation-duration: 0.35s; }
.powered .bubble { animation-duration: 1.1s; }
.powered .spark { opacity: 1; animation: climb 1.2s ease-in infinite; }
.powered .knob { transform: rotate(150deg); }
.powered .crt { animation: jitter 0.25s steps(2) infinite; }

@keyframes blink { 50% { opacity: 0.2; } }
@keyframes bubble {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-48px); opacity: 0; }
}
@keyframes climb {
  0% { transform: translate(0, 0) scaleX(1); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(-12px, -140px) scaleX(1.9); opacity: 0; }
}
.spark { transform-box: fill-box; transform-origin: center; }
@keyframes jitter { 50% { transform: translate(0.6px, -0.4px); } }

/* Knife switch */
.switch {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 2.75rem; padding: 0.5rem 1rem 0.5rem 0.6rem;
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
  color: var(--ink); background: var(--paper-3);
  border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.switch:hover { background: var(--paper-2); }
.switch-lever {
  position: relative; width: 2.6rem; height: 1.3rem;
  border-radius: 999px; background: var(--ink-soft);
  transition: background-color 0.2s ease;
}
.switch-lever::after {
  content: ""; position: absolute; top: 0.15rem; left: 0.15rem;
  width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper);
  transition: transform 0.2s ease;
}
.switch[aria-pressed="true"] .switch-lever { background: var(--accent); }
.switch[aria-pressed="true"] .switch-lever::after { transform: translateX(1.3rem); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 2px solid var(--ink); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head > p:last-child { color: var(--ink-soft); }
.section-tint { background-color: var(--paper-2); }

/* ---------- Inventory ---------- */
.inventory { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.inv-col {
  background: var(--paper-3); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; position: relative;
}
.inv-col::before { /* notebook margin line */
  content: ""; position: absolute; left: 0.7rem; top: 0; bottom: 0;
  border-left: 1px solid rgba(194, 80, 29, 0.4);
}
.inv-have { transform: rotate(-0.6deg); }
.inv-havenot { transform: rotate(0.8deg); }
.inv-col ul { list-style: none; margin: 0; padding: 0; }
.inv-col li { padding: 0.35rem 0 0.35rem 1.9rem; position: relative; border-bottom: 1px dashed var(--rule); }
.inv-col li:last-child { border-bottom: 0; }
.inv-col li::before {
  position: absolute; left: 0.2rem; top: 0.3rem;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
}
.inv-have li::before { content: "✓"; color: #2a7a3a; }
.inv-havenot li::before { content: "✗"; color: var(--danger); }
.yet { font-family: var(--font-hand); color: var(--accent-ink); font-weight: 700; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

/* ---------- Terminal ---------- */
.section-dark { background: #23211b; color: var(--on-dark); }
.section-dark h2 { color: var(--paper); }
.section-dark .kicker { color: var(--accent-bright); }
.section-dark .section-head > p:last-child { color: var(--on-dark); }
.section-dark :focus-visible { outline-color: var(--accent-bright); }

.term {
  border: 2px solid #000; border-radius: 14px; overflow: hidden;
  background: var(--crt);
  box-shadow: 0 0 0 6px var(--beige), 0 0 0 8px #000, 0 18px 40px rgba(0, 0, 0, 0.5);
  max-width: 52rem;
  margin: 0.5rem auto 0;
}
.term-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem; background: var(--beige); color: var(--ink);
  border-bottom: 2px solid #000;
}
.term-bar span { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1.5px solid #000; background: var(--led-red); }
.term-bar span:nth-child(2) { background: var(--led-amber); }
.term-bar span:nth-child(3) { background: var(--led-green); }
.term-bar p { margin: 0 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-screen {
  position: relative;
  height: clamp(18rem, 55vh, 26rem); overflow-y: auto;
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.45;
  color: var(--phosphor);
  text-shadow: 0 0 4px rgba(125, 255, 138, 0.45);
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 3px),
    radial-gradient(ellipse at center, #13261a 0%, var(--crt) 75%);
  cursor: text;
}
.term-out pre { margin: 0 0 0.35rem; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out pre.echo { color: #c8ffd0; margin-top: 0.4rem; }
.term-out a { color: var(--accent-bright); }
.term-form { display: flex; align-items: baseline; gap: 0.5rem; }
.term-prompt { flex: none; }
.term-input {
  flex: 1; min-width: 0;
  font: inherit; color: inherit; text-shadow: inherit;
  background: transparent; border: 0; padding: 0.1rem 0;
  caret-color: var(--phosphor);
  border-bottom: 1px dashed rgba(125, 255, 138, 0.35);
}
.term-input:focus { outline: none; border-bottom-color: var(--phosphor); }
.term-screen:focus-within { box-shadow: inset 0 0 0 2px rgba(125, 255, 138, 0.45); }
.term-noscript { margin: 0; }
.term-noscript span { color: #c8ffd0; }
.term-hint { margin: 1.2rem auto 0; max-width: 52rem; font-size: 0.95rem; color: var(--on-dark-soft); }
.term-hint code { background: rgba(255, 255, 255, 0.1); color: var(--paper); }

/* ---------- Blueprint ---------- */
.section-blueprint { background: var(--bp); color: var(--bp-ink); }
.section-blueprint .kicker { color: var(--accent-bright); }
.section-blueprint .section-head > p:last-child { color: var(--bp-soft); }
.section-blueprint a { color: var(--accent-bright); }
.section-blueprint :focus-visible { outline-color: var(--accent-bright); }
.bp-figure { margin: 0; }
.bp-figure svg { border: 2px solid var(--bp-ink); border-radius: var(--radius); }
.engine .hand { font-family: var(--font-hand); }
.engine .gear { transform-box: fill-box; transform-origin: center; }
.engine .gear-a { animation: spin 9s linear infinite; }
.engine .gear-b { animation: spin 6s linear infinite reverse; }
.engine .wheel { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.engine .drip { animation: drip 0.9s linear infinite; }
.engine .glow { animation: glow 2.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drip { to { stroke-dashoffset: -18; } }
@keyframes glow { 50% { opacity: 0.6; } }
.legend {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; gap: 0.35rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--bp-soft);
}
.legend b { color: var(--accent-bright); }

/* ---------- The Button ---------- */
.button-grid { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 56rem) { .button-grid { grid-template-columns: 1.1fr 1fr; } }
.dnp { text-align: center; }
.dnp-housing {
  display: inline-grid; justify-items: center; gap: 1rem;
  padding: 1.4rem 2rem 2rem;
  background: #ffd23f;
  background-image: repeating-linear-gradient(-45deg, #ffd23f 0 18px, #1d1b16 18px 36px);
  border: 3px solid var(--ink); border-radius: 12px;
}
.dnp-plate {
  margin: 0; padding: 0.25rem 0.7rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ink); background: #ffd23f; border: 2px solid var(--ink);
}
.dnp-button {
  width: 9.5rem; height: 9.5rem; border-radius: 50%;
  font-family: var(--font-sans); font-weight: 900; font-size: 1.15rem; line-height: 1.1; letter-spacing: 0.06em;
  color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 35% 30%, #ff7a6b 0%, var(--danger) 45%, #8e1810 100%);
  border: 4px solid var(--ink);
  box-shadow: 0 10px 0 #5e0f09, 0 12px 0 var(--ink), 0 16px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.dnp-button:hover { filter: brightness(1.08); }
.dnp-button:active { transform: translateY(8px); box-shadow: 0 2px 0 #5e0f09, 0 4px 0 var(--ink), 0 6px 10px rgba(0, 0, 0, 0.35); }
.dnp-msg {
  min-height: 3.2em; margin: 1.5rem auto 0; max-width: 26rem;
  font-family: var(--font-hand); font-size: 1.15rem; font-weight: 700; color: var(--accent-ink);
}

.shake { animation: shake 0.45s ease; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px) rotate(-0.4deg); }
  40% { transform: translate(5px, -3px) rotate(0.3deg); }
  60% { transform: translate(-4px, 1px); }
  80% { transform: translate(3px, -1px); }
}
.spark-bit {
  position: fixed; z-index: 50; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--led-amber); pointer-events: none;
  box-shadow: 0 0 8px 2px var(--accent-bright);
  animation: burst 0.7s ease-out forwards;
}
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* ---------- Crew badge ---------- */
.crew-grid { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 56rem) { .crew-grid { grid-template-columns: 1.2fr 1fr; } }
.badge-card {
  position: relative; justify-self: center;
  width: min(100%, 22rem); padding: 2rem 1.4rem 1.2rem;
  background: var(--paper-3); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--bp);
  transform: rotate(2deg); transition: transform 0.3s ease;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.badge-card:hover { transform: rotate(-1deg); }
.badge-clip {
  position: absolute; top: -0.9rem; left: 50%; transform: translateX(-50%);
  width: 4rem; height: 1.6rem; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--steel);
}
.badge-org {
  margin: 0 -1.4rem 1rem; padding: 0.35rem; text-align: center;
  background: var(--bp); color: var(--bp-ink); font-weight: 700; letter-spacing: 0.16em; font-size: 0.75rem;
}
.badge-photo { width: 5rem; margin: 0 auto 0.75rem; border: 2px solid var(--ink); }
.badge-name { text-align: center; font-family: var(--font-sans); font-weight: 900; font-size: 1.35rem; margin-bottom: 0.75rem; }
.badge-spec { margin: 0; border-top: 2px solid var(--ink); }
.badge-spec div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.badge-spec dt { text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-size: 0.75rem; }
.badge-spec dd { margin: 0; }
.badge-bar { margin: 0.8rem 0 0; text-align: center; letter-spacing: 0.05em; font-weight: 700; overflow: hidden; white-space: nowrap; }

/* ---------- Links ---------- */
.link-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.link-card {
  display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem;
  padding: 1.3rem 1.4rem; height: 100%;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.link-card:hover { color: var(--ink); transform: translate(-2px, -2px) rotate(-0.5deg); box-shadow: 5px 5px 0 var(--bp); }
.link-label { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--bp); }
.link-desc { grid-column: 1; color: var(--ink-soft); }
.link-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.5rem; color: var(--accent-ink); transition: transform 0.15s ease; }
.link-card:hover .link-arrow { transform: translate(3px, -3px); }

/* ---------- Want in ---------- */
.section-interest { background: var(--ink); color: var(--paper); text-align: center; }
.section-interest h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.section-interest .kicker { color: var(--accent-bright); }
.interest-inner { max-width: 40rem; }
.interest-inner > p { color: var(--on-dark); }
.section-interest .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 0.75rem; }
.section-interest .btn-primary:hover { color: var(--ink); }
.section-interest .is-disabled { position: relative; }
.section-interest .is-disabled::after { /* caution tape */
  content: "UNDER CONSTRUCTION";
  position: absolute; right: -1.2rem; top: -0.9rem;
  transform: rotate(6deg);
  padding: 0.1rem 0.6rem;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--ink); background: #ffd23f; border-block: 2px solid var(--ink);
  opacity: 0.92;
}
.section-interest :focus-visible { outline-color: var(--accent-bright); }
.fine { font-family: var(--font-mono); font-size: 0.78rem; margin-top: 1rem; }
.section-interest .fine { color: var(--on-dark-soft); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.25rem; font-size: 0.95rem; }
.footer-inner p { margin: 0 0 0.4rem; }
.site-footer .fine { color: var(--ink-soft); margin-top: 0; }
.konami-hint { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--rule); margin-top: 1rem !important; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 60;
  transform: translate(-50%, 150%);
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
  color: var(--phosphor); background: var(--crt);
  border: 2px solid var(--phosphor); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}
.toast:empty { display: none; }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Turbo mode (↑↑↓↓←→←→BA) ---------- */
.turbo {
  --paper: #07110a;
  --paper-2: #0c1a10;
  --paper-3: #0a160d;
  --ink: #7dff8a;
  --ink-soft: #5fcf6b;
  --rule: #1f5a2a;
  --grid: rgba(125, 255, 138, 0.07);
  --accent: #ffb02e;
  --accent-ink: #ffb02e;
  --bp: #0a1f12;
  --bp-ink: #7dff8a;
  --bp-soft: #5fcf6b;
  --bp-line: rgba(125, 255, 138, 0.14);
  --wood: #1f5a2a;
  --beige: #0f2a16;
  --steel: #164020;
  --glass: rgba(125, 255, 138, 0.15);
  --focus: #ffb02e;
  color-scheme: dark;
}
.turbo body { font-family: var(--font-mono); text-shadow: 0 0 3px rgba(125, 255, 138, 0.35); }
.turbo body::after { /* scanlines */
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.25) 2px 3px);
}
.turbo a { color: var(--accent-bright); }
.turbo .section-dark, .turbo .section-interest { background: #030805; }
.turbo .section-dark h2 { color: var(--ink); }
.turbo .section-interest .btn-primary { background: var(--ink); color: #030805; }
.turbo .btn-primary { color: #030805; }
.turbo .inv-have li::before { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; padding-block: 3rem; background: #000; color: #fff; }
.guru {
  width: min(100% - 2rem, 44rem);
  font-family: var(--font-mono); text-align: center;
  border: 6px solid var(--danger); padding: 1.5rem 1.2rem;
  animation: guru 1s steps(1) infinite;
}
@keyframes guru { 50% { border-color: #000; } }
.guru p { margin: 0 0 0.6rem; }
.guru h1 { font-family: var(--font-mono); font-size: clamp(1rem, 0.8rem + 1vw, 1.35rem); font-weight: 700; color: var(--danger); margin: 0 0 0.75rem; letter-spacing: 0.02em; }
.guru .code { font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.1rem); color: var(--danger); word-break: break-all; }
.notfound-body { width: min(100% - 2rem, 44rem); margin-top: 2rem; font-family: var(--font-mono); color: #d9d1bf; }
.notfound-body p { margin: 0 0 0.9rem; }
.arf { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.arf a { color: var(--phosphor); font-weight: 700; text-decoration: none; padding: 0.4rem 0; }
.arf a:hover { color: #fff; text-decoration: underline; }
.arf a::first-letter { text-decoration: underline; }
.notfound :focus-visible { outline-color: var(--accent-bright); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn-primary:hover, .link-card:hover { transform: none; }
  .powered .spark { opacity: 1; animation: none; }
  .guru { animation: none; }
}

@media print {
  body { background: #fff; }
  .site-header { position: static; }
  .skip-link, .hero-actions, .switch, .toast, .term-form { display: none; }
}
