/* =====================================================================
   GeekPatrol.com — "The Geek Files"
   Comic-book noir: YellowGold + Ink, Bow-tie Red accent.
   ===================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Bangers"; src: url("../fonts/bangers-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --gold: #F5B700;
  --gold-hi: #FFD23F;
  --gold-deep: #C99A00;
  --ink: #0B0B0B;
  --ink-2: #1C1A17;
  --ink-3: #34302A;
  --paper: #FFF8E1;
  --paper-2: #F3E6BF;
  --red: #D7261E;
  --red-deep: #A51A14;
  --white: #FFFFFF;

  --f-comic: "Bangers", "Impact", "Arial Narrow Bold", sans-serif;
  --f-poster: "Anton", "Impact", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --line: 4px;            /* panel ink line */
  --line-thin: 2.5px;
  --drop: 8px;            /* comic offset shadow */
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1200px;
  --radius-bubble: 999px;

  --halftone-ink: radial-gradient(circle at center, rgba(11,11,11,.22) 1.1px, transparent 1.6px);
  --halftone-gold: radial-gradient(circle at center, rgba(245,183,0,.22) 1.1px, transparent 1.6px);
  --halftone-red: radial-gradient(circle at center, rgba(215,38,30,.35) 1.4px, transparent 2px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.05; margin: 0 0 .4em; font-weight: 400; }
p { margin: 0 0 1em; }
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; border: var(--line) solid var(--ink); font-weight: 700; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.comic { font-family: var(--f-comic); letter-spacing: .03em; text-transform: uppercase; font-weight: 400; }
.poster { font-family: var(--f-poster); text-transform: uppercase; letter-spacing: .01em; }
.mono { font-family: var(--f-mono); }
.h-display {
  font-family: var(--f-comic);
  font-size: clamp(2.8rem, 1.6rem + 6vw, 7rem);
  line-height: .9; letter-spacing: .02em; text-transform: uppercase;
}
.h-section {
  font-family: var(--f-comic);
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem);
  line-height: .95; letter-spacing: .03em; text-transform: uppercase;
}
.h-panel { font-family: var(--f-comic); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: .03em; text-transform: uppercase; }
.ink-shadow { text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.red-shadow { text-shadow: 4px 4px 0 var(--red); }
.kicker { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-comic); font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .55em 1.1em .45em; border: var(--line-thin) solid var(--ink);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
  line-height: 1;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red { --btn-bg: var(--red); --btn-fg: var(--white); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--gold); border-color: var(--gold); box-shadow: 4px 4px 0 var(--gold); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--gold); }
.btn--paper { --btn-bg: var(--paper); }
.btn--sm { font-size: 1.05rem; padding: .45em .8em .35em; box-shadow: 3px 3px 0 var(--ink); }
.on-ink .btn:not(.btn--ink) { box-shadow: 4px 4px 0 var(--gold); }
.on-ink .btn:not(.btn--ink):hover { box-shadow: 6px 6px 0 var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ---------- Masthead / nav ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); border-bottom: var(--line) solid var(--gold);
  transition: transform .3s ease;
}
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__inner { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.brand__geek { width: 40px; height: auto; background: var(--gold); border-radius: 50%; padding: 4px; border: 2px solid var(--gold); }
.brand__word { font-family: var(--f-comic); font-size: 1.7rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1; }
.brand__dot { color: var(--red); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; font-family: var(--f-comic); font-size: 1.2rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--paper); text-decoration: none; border-radius: 2px;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--gold); }
.site-nav .btn { margin-left: 8px; box-shadow: 3px 3px 0 var(--gold); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 44px; background: var(--gold); border: 2px solid var(--gold); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; right: 11px; height: 3px; background: var(--ink); content: ""; transition: transform .2s ease, opacity .2s; }
.nav-toggle__bars { top: 50%; margin-top: -1.5px; }
.nav-toggle__bars::before { top: -9px; left: 0; right: 0; }
.nav-toggle__bars::after { top: 9px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--ink);
    border-bottom: var(--line) solid var(--gold);
    transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; gap: 2px; }
  .site-nav a { font-size: 1.8rem; padding: 10px 6px; border-bottom: 1px solid var(--ink-3); }
  .site-nav .btn { margin: 14px 0 0; justify-content: center; font-size: 1.5rem; }
}

/* ---------- Surfaces ---------- */
.on-gold { background: var(--gold); color: var(--ink); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-red { background: var(--red); color: var(--white); }
.halftone-ink { background-image: var(--halftone-ink); background-size: 9px 9px; }
.halftone-gold { background-image: var(--halftone-gold); background-size: 9px 9px; }
.on-gold.halftone-ink { background-color: var(--gold); }
.on-ink.halftone-gold { background-color: var(--ink); }
.on-paper.halftone-ink { background-color: var(--paper); }

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }

/* jagged comic-page edge between sections */
.edge-top { position: relative; }
.edge-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: inherit;
  clip-path: polygon(0 100%, 0 40%, 4% 70%, 9% 20%, 14% 65%, 20% 10%, 26% 60%, 31% 25%, 37% 75%, 43% 15%, 49% 55%, 55% 5%, 61% 60%, 67% 25%, 72% 70%, 78% 15%, 84% 60%, 90% 20%, 95% 65%, 100% 30%, 100% 100%);
}

/* ---------- Comic primitives ---------- */
.panel {
  position: relative; background: var(--paper); color: var(--ink);
  border: var(--line) solid var(--ink); box-shadow: var(--drop) var(--drop) 0 var(--ink);
  padding: clamp(18px, 2.4vw, 32px);
}
.on-ink .panel { box-shadow: var(--drop) var(--drop) 0 var(--gold); }
.panel--gold { background: var(--gold); }
.panel--ink { background: var(--ink); color: var(--paper); border-color: var(--gold); }

.caption {
  display: inline-block; background: var(--gold); color: var(--ink);
  border: var(--line-thin) solid var(--ink); padding: .35em .75em .3em;
  font-family: var(--f-mono); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}
.caption--paper { background: var(--paper); }
.caption--red { background: var(--red); color: var(--white); }

.bubble {
  position: relative; background: var(--white); color: var(--ink);
  border: var(--line-thin) solid var(--ink); border-radius: 28px;
  padding: 18px 22px; box-shadow: 4px 4px 0 var(--ink); max-width: 36ch;
  font-weight: 600;
}
.bubble p:last-child { margin-bottom: 0; }
.bubble::after, .bubble::before { content: ""; position: absolute; }
/* tail (default: bottom-left) */
.bubble::before {
  left: 36px; bottom: -22px; width: 30px; height: 24px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 10% 100%);
}
.bubble::after {
  left: 39px; bottom: -16px; width: 22px; height: 18px; background: var(--white);
  clip-path: polygon(0 0, 100% 0, 12% 100%);
}
.bubble--right::before { left: auto; right: 36px; clip-path: polygon(0 0, 100% 0, 90% 100%); }
.bubble--right::after { left: auto; right: 39px; clip-path: polygon(0 0, 100% 0, 88% 100%); }
.bubble--no-tail::before, .bubble--no-tail::after { display: none; }
.bubble--think { border-radius: 40px; }
.bubble--think::before { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: var(--line-thin) solid var(--ink); clip-path: none; bottom: -26px; left: 30px; }
.bubble--think::after { width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); clip-path: none; bottom: -40px; left: 22px; }

.sfx {
  --sfx-bg: var(--red); --sfx-fg: var(--gold);
  display: inline-grid; place-items: center; padding: 1.6em 1.8em;
  background: var(--sfx-bg); color: var(--sfx-fg);
  font-family: var(--f-comic); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); letter-spacing: .04em; line-height: 1;
  text-shadow: 3px 3px 0 var(--ink);
  clip-path: polygon(50% 0%, 59% 22%, 79% 6%, 74% 30%, 100% 24%, 82% 45%, 98% 62%, 74% 64%, 82% 92%, 59% 76%, 50% 100%, 41% 76%, 18% 92%, 26% 64%, 2% 62%, 18% 45%, 0% 24%, 26% 30%, 21% 6%, 41% 22%);
  transform: rotate(-8deg);
  filter: drop-shadow(4px 4px 0 var(--ink));
  pointer-events: none; user-select: none;
}
.sfx--gold { --sfx-bg: var(--gold); --sfx-fg: var(--red); }

.stamp {
  display: inline-block; font-family: var(--f-poster); text-transform: uppercase; letter-spacing: .12em;
  color: var(--red); border: 3px solid var(--red); padding: .2em .6em; transform: rotate(-6deg);
  font-size: .95rem; opacity: .9; mix-blend-mode: multiply;
}
.todo-stamp {
  display: inline-block; font-family: var(--f-mono); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, var(--ink) 10px 20px);
  padding: 4px; text-transform: uppercase;
}
.todo-stamp span { background: var(--gold); color: var(--ink); padding: 2px 8px; display: inline-block; }

.chip { display: inline-block; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border: 2px solid currentColor; border-radius: 99px; margin: 0 6px 6px 0; }

/* photo slot (until real photos arrive) */
.photo-slot {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: var(--ar, 4 / 5); width: 100%;
  background-color: var(--paper-2); background-image: var(--halftone-ink); background-size: 7px 7px;
  border: var(--line) solid var(--ink); color: var(--ink); padding: 16px;
}
.photo-slot__label { font-family: var(--f-mono); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); border: 2px solid var(--ink); padding: 6px 10px; max-width: 90%; }
.photo-slot__label::before { content: "📷 PHOTO NEEDED · "; }
.photo { border: var(--line) solid var(--ink); width: 100%; object-fit: cover; aspect-ratio: var(--ar, 4 / 5); filter: contrast(1.05) saturate(1.05); }
.photo--comic { filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; }

/* ---------- HERO / COVER ---------- */
.cover {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    repeating-conic-gradient(from 0deg at 68% 46%, rgba(255,210,63,.95) 0deg 6deg, rgba(245,183,0,1) 6deg 12deg),
    var(--gold);
  border-bottom: var(--line) solid var(--ink);
  min-height: min(calc(100svh - 68px), 980px);
  display: grid; align-items: center;
}
.cover::after { /* halftone vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--halftone-ink); background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse at 68% 46%, transparent 30%, #000 85%);
          mask-image: radial-gradient(ellipse at 68% 46%, transparent 30%, #000 85%);
}
.cover__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 3vw, 48px); align-items: center;
  padding-block: clamp(28px, 5vw, 64px);
}
.cover__issue {
  display: inline-flex; align-items: stretch; border: var(--line) solid var(--ink); background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink); margin-bottom: 18px; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em;
}
.cover__issue > span { padding: 6px 10px; }
.cover__issue > span + span { border-left: var(--line-thin) solid var(--ink); }
.cover__issue .num { background: var(--red); color: var(--white); font-family: var(--f-comic); font-size: 1.2rem; letter-spacing: .04em; padding: 2px 12px; }
.cover__title {
  font-family: var(--f-comic); text-transform: uppercase; line-height: .82; letter-spacing: .01em;
  font-size: clamp(3.6rem, 1.4rem + 10vw, 10.5rem);
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink), 10px 10px 0 var(--red);
  margin: 0 0 .1em; transform: rotate(-2deg); transform-origin: left center;
}
.cover__title .small { display: block; font-size: .36em; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; letter-spacing: .12em; margin-bottom: .1em; }
.cover__name { font-family: var(--f-poster); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; margin: .4em 0 .2em; }
.cover__name em { font-style: normal; color: var(--red); }
.cover__roles { font-family: var(--f-mono); font-weight: 700; font-size: clamp(.8rem, .74rem + .3vw, .95rem); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4em; }
.cover__roles span { background: var(--ink); color: var(--gold); padding: 2px 8px; margin: 0 4px 6px 0; display: inline-block; }
.cover__art { position: relative; justify-self: center; width: min(100%, 420px); }
.cover__geek { width: 74%; margin-left: auto; filter: drop-shadow(10px 10px 0 rgba(11,11,11,.85)); transform-origin: 50% 95%; }
.cover__geek .pupil { transition: transform .08s linear; }
.cover__bubble { position: absolute; top: 2%; left: -8%; z-index: 2; font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); }
.cover__photo { position: absolute; left: -6%; bottom: 4%; width: 44%; transform: rotate(-5deg); box-shadow: 6px 6px 0 var(--ink); z-index: 2; background: var(--paper); padding: 8px 8px 26px; border: var(--line-thin) solid var(--ink); }
.cover__photo .photo-slot { border-width: 2px; --ar: 1 / 1; padding: 6px; }
.cover__photo .photo-slot__label { font-size: .6rem; padding: 4px 6px; }
.cover__photo figcaption { font-family: var(--f-comic); font-size: 1rem; letter-spacing: .05em; position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; }
.cover__sfx { position: absolute; right: -4%; top: 38%; z-index: 3; }
.cover__price { position: absolute; top: 18px; right: 18px; z-index: 2; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; text-align: center; font-family: var(--f-comic); line-height: .9; font-size: 1.05rem; transform: rotate(12deg); border: 3px solid var(--paper); }
.cover__price b { display: block; font-size: 2rem; color: var(--paper); font-weight: 400; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--f-mono); font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.scroll-cue::after { content: "▼"; animation: bob 1.6s ease-in-out infinite; color: var(--red); font-size: 1rem; }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (max-width: 860px) {
  .cover__grid { grid-template-columns: 1fr; }
  .cover__art { width: min(88%, 360px); order: -1; margin-top: 6px; }
  .cover__price { width: 72px; height: 72px; font-size: .85rem; top: 10px; right: 10px; }
  .cover__price b { font-size: 1.5rem; }
  .cover__bubble { left: -2%; top: 0; max-width: 50%; font-size: .82rem; padding: 12px 14px; }
  .cover__geek { width: 56%; }
  .cover__price { top: auto; bottom: 26%; right: 0; }
  .cover__photo { width: 40%; left: 0; }
  .cover__title { -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink), 7px 7px 0 var(--red); }
  .scroll-cue { display: none; }
}

/* ---------- ORIGIN ---------- */
.origin__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.origin__intro { grid-column: 1 / span 7; }
.origin__aplus { grid-column: 8 / span 5; display: grid; place-items: center; text-align: center; background: var(--red); color: var(--white); border-color: var(--ink); transform: rotate(2deg); }
.origin__aplus .big { margin-top: 10px; font-family: var(--f-poster); font-size: clamp(4rem, 2rem + 8vw, 8rem); line-height: .9; color: var(--gold); text-shadow: 5px 5px 0 var(--ink); }
.origin__aplus p { font-weight: 600; max-width: 26ch; margin-inline: auto; }
.origin__photo { grid-column: 1 / span 4; }
.origin__quote { grid-column: 5 / span 8; display: flex; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 20px); margin-top: clamp(24px, 4vw, 48px); }
.stat { background: var(--ink); color: var(--gold); border: var(--line) solid var(--ink); padding: 16px; text-align: center; box-shadow: 6px 6px 0 var(--red); }
.stat b { display: block; font-family: var(--f-poster); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1; font-weight: 400; }
.stat span { font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); }
@media (max-width: 860px) {
  .origin__intro, .origin__aplus, .origin__photo, .origin__quote { grid-column: 1 / -1; }
  .origin__aplus { transform: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CAREER STRIP ---------- */
.strip { background: var(--ink); color: var(--paper); border-block: var(--line) solid var(--gold); position: relative; overflow: hidden; }
.strip__head { padding-top: clamp(48px, 7vw, 96px); }
.strip__head .h-section { color: var(--gold); }
.strip__viewport { position: relative; }
.strip__track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 36px var(--gutter) 56px; width: max-content; }
.era {
  position: relative; flex: 0 0 auto; width: min(82vw, 760px); min-height: 440px;
  display: grid; grid-template-columns: 1fr 200px; grid-template-rows: auto 1fr auto; gap: 14px 20px;
  background: var(--paper); color: var(--ink); border: var(--line) solid var(--gold);
  box-shadow: var(--drop) var(--drop) 0 var(--red); padding: clamp(18px, 2.4vw, 30px);
}
.era:nth-child(even) { background: var(--gold); transform: rotate(.6deg); }
.era:nth-child(odd) { transform: rotate(-.5deg); }
.era__years { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.era__years .poster { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: .9; }
.era__caption { align-self: start; flex: 1 1 260px; min-width: 0; max-width: 100%; margin-right: 54px; }
.era__badge:not(:empty) { line-height: 1; text-align: center; }
.era__body h3 { font-family: var(--f-comic); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: .03em; text-transform: uppercase; margin-bottom: .1em; }
.era__org { font-family: var(--f-mono); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8em; color: var(--red-deep); }
.era__art { grid-row: 2 / span 2; grid-column: 2; display: grid; place-items: center; align-self: center; }
.era__art img { max-height: 210px; width: auto; }
.era__sfx { position: absolute; right: -18px; top: -28px; font-size: 1.4rem; padding: 1.3em 1.4em; }
.era__badge { width: 170px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--red); background-image: var(--halftone-gold); background-size: 8px 8px; font-family: var(--f-poster); font-size: 3.4rem; letter-spacing: .02em; transform: rotate(-6deg); }
.era:nth-child(even) .era__badge { background-color: var(--red); color: var(--gold); box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 700px) { .era__badge { width: 96px; font-size: 1.9rem; } }
.card--wanted { background: var(--red); display: block; text-decoration: none; color: inherit; }
.card--wanted .card__flavor, .card--wanted .card__tested { display: block; }
.card--wanted .card__inner { background: var(--ink); color: var(--paper); border-color: var(--gold); text-decoration: none; }
.card--wanted .card__glyph { background-color: var(--gold); color: var(--ink); background-image: var(--halftone-ink); }
.card--wanted .card__tested { border-color: var(--gold); }
.card--wanted .card__tested b { color: var(--gold); }
.era__more { font-family: var(--f-mono); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.strip__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; height: 6px; background: var(--ink-3); }
.strip__progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.strip__hint { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
/* Without JS pinning (mobile / reduced motion) — natural horizontal scroll with snap */
.strip:not(.is-pinned) .strip__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-color: var(--gold) var(--ink-2); }
.strip:not(.is-pinned) .era { scroll-snap-align: center; }
.strip:not(.is-pinned) .strip__progress { display: none; }
@media (max-width: 700px) {
  .era { grid-template-columns: 1fr; width: 86vw; min-height: 0; }
  .era__art { grid-row: auto; grid-column: 1; justify-self: end; }
  .era__art img { max-height: 120px; }
  .era__sfx { right: -6px; top: -24px; font-size: 1.1rem; }
}

/* ---------- POWERS (trading cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 26px); perspective: 1200px; }
.card {
  position: relative; background: var(--gold); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 10px; padding: 10px;
  box-shadow: 6px 6px 0 var(--ink); transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { box-shadow: 10px 10px 0 var(--red); }
.card__inner { border: var(--line-thin) solid var(--ink); border-radius: 6px; background: var(--paper); padding: 14px 14px 12px; height: 100%; display: flex; flex-direction: column; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card__name { font-family: var(--f-comic); font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; margin: 0; }
.card__no { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; }
.card__glyph { height: 92px; display: grid; place-items: center; font-size: 3rem; line-height: 1; background: var(--ink); color: var(--gold); border-radius: 4px; margin-bottom: 10px; background-image: var(--halftone-gold); background-size: 8px 8px; font-family: var(--f-mono); font-weight: 700; }
.card__flavor { font-style: italic; font-size: .95rem; line-height: 1.45; flex: 1; }
.card__tested { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .03em; border-top: 2px dashed var(--ink); padding-top: 8px; margin: 0; text-transform: uppercase; font-weight: 700; }
.card__tested b { color: var(--red-deep); }

/* ---------- CASE FILES ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.case {
  position: relative; background: #E9D49A; color: var(--ink);
  border: var(--line) solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
  padding: 34px 22px 22px; display: flex; flex-direction: column;
  background-image: linear-gradient(transparent 31px, rgba(11,11,11,.06) 32px); background-size: 100% 32px;
}
.on-ink .case { box-shadow: 7px 7px 0 var(--gold); }
.case::before { /* folder tab */
  content: attr(data-file); position: absolute; top: -26px; left: -4px; height: 26px; padding: 3px 14px 0;
  background: #E9D49A; border: var(--line) solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0;
  font-family: var(--f-mono); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
}
.case__stamp { position: absolute; top: 12px; right: 12px; }
.case__title { font-family: var(--f-comic); font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); letter-spacing: .02em; text-transform: uppercase; margin: 6px 0 2px; line-height: 1; padding-right: 70px; }
.case__sub { font-family: var(--f-mono); font-size: .82rem; font-weight: 700; margin-bottom: 14px; }
.case dl { margin: 0 0 12px; display: grid; gap: 8px; }
.case dt { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.case dd { margin: 0; font-size: .97rem; line-height: 1.5; }
.case__art { position: absolute; right: 12px; bottom: 12px; width: 72px; opacity: .9; }
.case__stack { margin-top: auto; padding-right: 70px; }
.case--todo { background-color: var(--paper); outline: 3px dashed var(--red); outline-offset: -12px; }

/* ---------- CAST / FAMILY ---------- */
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.cast__card { background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); padding: 12px 12px 18px; box-shadow: 7px 7px 0 var(--gold); }
.cast__card:nth-child(3n+1) { transform: rotate(-1.4deg); }
.cast__card:nth-child(3n+2) { transform: rotate(1deg); }
.cast__card:nth-child(3n) { transform: rotate(-.4deg); }
.cast__role { margin: 14px 0 4px; }
.cast__name { font-family: var(--f-comic); font-size: 2rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; margin: 6px 0 8px; }

/* ---------- Generic two-up panel layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.split--wide-left { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* ---------- Blog strip ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.post-card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--line) solid var(--ink); width: 100%; background: var(--gold) var(--halftone-ink); background-size: 8px 8px; }
.post-card__body { padding: 16px 18px 20px; }
.post-card h3 { font-family: var(--f-comic); font-size: 1.6rem; letter-spacing: .02em; text-transform: uppercase; margin: 6px 0 8px; }
.post-card p { font-size: .95rem; margin: 0; }

/* ---------- To be continued ---------- */
.tbc { text-align: center; }
.tbc__title { font-family: var(--f-comic); font-size: clamp(3rem, 1.6rem + 7vw, 8rem); line-height: .9; text-transform: uppercase; color: var(--gold); text-shadow: 6px 6px 0 var(--red); margin-bottom: .2em; }
.tbc .btn-row { justify-content: center; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: var(--line) solid var(--ink); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.page-hero.on-gold { background: repeating-conic-gradient(from 0deg at 85% 40%, var(--gold-hi) 0deg 5deg, var(--gold) 5deg 10deg); }
.page-hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.page-hero__art { width: clamp(110px, 18vw, 220px); }
.page-hero .h-display { color: var(--paper); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink), 9px 9px 0 var(--red); }
@media (max-width: 640px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__art { justify-self: end; margin-top: -10px; } }

/* ---------- Prose (blog posts / about) ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-family: var(--f-comic); font-size: 2.2rem; letter-spacing: .03em; text-transform: uppercase; margin: 1.6em 0 .4em; }
.prose h3 { font-family: var(--f-comic); font-size: 1.6rem; letter-spacing: .03em; text-transform: uppercase; margin: 1.4em 0 .4em; }
.prose a { color: var(--red-deep); font-weight: 600; }
.on-ink .prose a { color: var(--gold); }
.prose img { border: var(--line) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--gold); border: var(--line-thin) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 600; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: rgba(11,11,11,.08); padding: .1em .35em; border-radius: 3px; }
.prose pre { background: var(--ink); color: var(--gold); padding: 18px; overflow-x: auto; border: var(--line-thin) solid var(--ink); box-shadow: 5px 5px 0 var(--red); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose ul li::marker { color: var(--red); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-family: var(--f-comic); font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; background: var(--white); color: var(--ink);
  border: var(--line-thin) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 0;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 4px 4px 0 var(--red); border-color: var(--red); }
.field__hint { font-size: .85rem; opacity: .8; margin-top: 4px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border: var(--line-thin) solid var(--ink); font-weight: 600; box-shadow: 4px 4px 0 var(--ink); }
.alert--ok { background: var(--gold); color: var(--ink); }
.alert--err { background: var(--red); color: var(--white); }

/* ---------- Back cover (footer) ---------- */
.back-cover { position: relative; background: var(--ink); color: var(--paper); border-top: var(--line) solid var(--gold); background-image: var(--halftone-gold); background-size: 10px 10px; }
.back-cover__inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: 48px 0 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.back-cover__brand { display: flex; align-items: center; gap: 16px; }
.back-cover__brand img { background: var(--gold); border-radius: 50%; padding: 8px; width: 72px; }
.back-cover__line { font-family: var(--f-comic); font-size: 1.7rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; margin: 0; color: var(--gold); }
.back-cover__line span { font-size: 1.1rem; color: var(--paper); }
.back-cover__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.back-cover__nav a { font-family: var(--f-comic); font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.back-cover__nav a:hover { color: var(--gold); }
.back-cover__legal { grid-column: 1 / -1; font-size: .85rem; opacity: .75; margin: 0; border-top: 1px solid var(--ink-3); padding-top: 18px; }
.barcode { position: absolute; right: var(--gutter); bottom: 18px; width: 120px; height: 46px; background: var(--paper); padding: 4px 6px 0; display: none; }
.barcode::before { content: ""; display: block; height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.barcode span { display: block; font-family: var(--f-mono); font-size: .52rem; color: var(--ink); text-align: center; letter-spacing: .04em; }
@media (min-width: 861px) { .barcode { display: block; } .back-cover__legal { padding-right: 140px; } }
@media (max-width: 860px) { .back-cover__inner { grid-template-columns: 1fr; } .back-cover__nav { justify-content: flex-start; } }

/* ---------- Chat dialog ---------- */
.chat { padding: 0; border: 0; background: transparent; width: min(100% - 24px, 560px); max-height: min(90vh, 760px); color: var(--ink); }
.chat::backdrop { background: rgba(11,11,11,.7); backdrop-filter: blur(2px); background-image: var(--halftone-gold); background-size: 10px 10px; }
.chat__frame { display: flex; flex-direction: column; max-height: min(90vh, 760px); background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 10px 10px 0 var(--gold); }
.chat__head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--gold); border-bottom: var(--line) solid var(--ink); }
.chat__head img { width: 56px; }
.chat__title { font-family: var(--f-comic); font-size: 1.8rem; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.chat__sub { font-size: .78rem; margin: 0; line-height: 1.35; }
.chat__close { width: 40px; height: 40px; border: var(--line-thin) solid var(--ink); background: var(--paper); font-size: 1.1rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.chat__log { flex: 1; overflow-y: auto; padding: 20px 18px 28px; display: flex; flex-direction: column; gap: 26px; background-image: var(--halftone-ink); background-size: 9px 9px; background-color: var(--paper-2); min-height: 260px; }
.chat__log .bubble { max-width: 88%; font-weight: 500; font-size: .97rem; }
.chat__log .bubble p { margin-bottom: .6em; }
.chat__log .bubble ul { margin: 0 0 .6em; padding-left: 1.2em; }
.bubble--bot { align-self: flex-start; }
.bubble--me { align-self: flex-end; background: var(--gold); }
.bubble--me::after { background: var(--gold); }
.bubble--me::before, .bubble--me::after { left: auto; }
.bubble--me::before { right: 36px; clip-path: polygon(0 0, 100% 0, 90% 100%); }
.bubble--me::after { right: 39px; clip-path: polygon(0 0, 100% 0, 88% 100%); }
.bubble--err { background: var(--red); color: var(--white); }
.bubble--err::after { background: var(--red); }
.bubble.is-typing p::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--red); }
@keyframes blink { 50% { opacity: 0; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat__chips button { font-size: .82rem; font-weight: 600; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 99px; background: var(--gold); cursor: pointer; text-align: left; }
.chat__chips button:hover { background: var(--gold-hi); }
.chat__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border-top: var(--line) solid var(--ink); background: var(--paper); }
.chat__form textarea { resize: none; padding: 10px 12px; border: var(--line-thin) solid var(--ink); background: var(--white); min-height: 46px; max-height: 140px; }
.chat__form textarea:focus { outline: none; border-color: var(--red); }

/* ---------- Motion ---------- */
.wiggle:hover { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print (non-resume pages) ---------- */
@media print {
  .masthead, .back-cover, .chat, .scroll-cue, .sfx { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Virus parade (easter egg) ---------- */
.parade { position: fixed; left: 0; bottom: 8px; z-index: 200; display: flex; align-items: flex-end; gap: 18px; pointer-events: none; transform: translateX(-100%); }
.parade img { height: 90px; width: auto; filter: drop-shadow(3px 3px 0 var(--ink)); animation: hop .35s ease-in-out infinite alternate; }
.parade img:nth-child(2) { animation-delay: .1s; } .parade img:nth-child(3) { animation-delay: .2s; }
.parade img.parade__pc { height: 110px; margin-left: 40px; }
@keyframes hop { to { transform: translateY(-10px); } }
.cover__geek { cursor: pointer; }
.cover__geek.is-boing { animation: boing .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes boing { 0% { transform: scale(1, 1); } 30% { transform: scale(1.08, .9) rotate(-3deg); } 60% { transform: scale(.95, 1.06) rotate(2deg); } 100% { transform: none; } }
