/* PT-141 Legal — Retro Arcade Pixelado
   Palette: CRT-black ground, neon magenta/cyan/yellow/lime accents
   Fonts: Space Grotesk (headings), IBM Plex Sans (body), Press Start 2P (chrome/labels)
   ============================================================ */

/* === VARIABLES === */
:root {
  --primary:       #FF3DDD;
  --primary-50:    #2A0E27;
  --primary-900:   #FF8CEC;
  --secondary:     #33E6FF;
  --accent:        #FFE14D;
  --accent-alt:    #7CF85B;
  --neutral-50:    #1C1B2E;
  --neutral-200:   #34324A;
  --neutral-300:   #454463;
  --neutral-500:   #9A98C0;
  --neutral-900:   #0A0913;
  --bg:            #0B0A16;
  --surface:       #15142A;
  --surface-alt:   #1C1B36;
  --text:          #ECEBFF;
  --text-muted:    #A6A4D6;
  --text-on-neon:  #0A0913;
  --success:       #7CF85B;
  --warning:       #FFE14D;
  --danger:        #FF5C6E;
  --scanline:      rgba(0,0,0,0.18);

  --max-width:     74rem;
  --container-px:  clamp(1rem, 3vw, 2.25rem);

  --font-heading:  'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:     'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-pixel:    'Press Start 2P', 'Courier New', monospace;
  --font-mono:     'IBM Plex Mono', 'Courier New', monospace;

  --h1: clamp(1.875rem, 4.2vw, 3rem);
  --h2: clamp(1.5rem, 3vw, 2.125rem);
  --h3: 1.3125rem;
  --h4: 1.0625rem;
  --body: 1.0625rem;
  --small: 0.875rem;
  --micro: 0.75rem;
  --pixel-label: 0.6875rem;
  --pixel-eyebrow: 0.8125rem;

  --radius: 4px;
  --transition: 140ms ease-out;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.16;
}

h1 { font-size: var(--h1); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--h2); font-weight: 700; letter-spacing: -0.005em; }
h3 { font-size: var(--h3); font-weight: 600; }
h4 { font-size: var(--h4); font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.375rem; }

strong { font-weight: 600; }
em { font-style: italic; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--neutral-50);
  border-radius: var(--radius);
  padding: 0.125rem 0.375rem;
  color: var(--secondary);
}

sup a {
  font-size: 0.75em;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

sup a:hover { color: var(--primary); }

/* === PIXEL FONT UTILITY === */
.px-font {
  font-family: var(--font-pixel);
  font-size: var(--pixel-label);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.px-eyebrow {
  font-family: var(--font-pixel);
  font-size: var(--pixel-eyebrow);
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary);
  display: block;
  margin-bottom: 1rem;
}

.px-label {
  font-family: var(--font-pixel);
  font-size: var(--pixel-label);
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.reading-col {
  max-width: 42rem;
}

/* === SCANLINE TEXTURE === */
.scanlines {
  position: relative;
}

.scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 3px
  );
  pointer-events: none;
  z-index: 0;
}

.scanlines > * { position: relative; z-index: 1; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  height: 60px;
  display: flex;
  align-items: center;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    var(--scanline) 3px,
    var(--scanline) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}

.site-brand {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand span {
  color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary);
}

/* === NAV === */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}

.nav-toggle:hover {
  background: var(--primary-50);
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.site-nav a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.site-nav a[aria-current="page"] {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.site-nav a[aria-current="page"]::before {
  content: '▪';
  font-size: 0.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.nav-reading-link {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: background-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-reading-link:hover {
  background: var(--primary-50);
  color: var(--secondary);
  border-color: var(--secondary);
}

@media (max-width: 768px) {
  .site-header { height: 52px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--surface-alt);
    border-bottom: 2px solid var(--primary);
    padding: 1rem var(--container-px);
    z-index: 200;
  }

  .site-nav.nav-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .site-nav li { width: 100%; }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-200);
    width: 100%;
  }

  .site-nav a:last-child { border-bottom: none; }

  .nav-reading-link { display: none; }
}

/* === HERO / CABINET BEZEL === */
.hero {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--neutral-900);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 3px
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.hero-main { max-width: 52ch; }

.hero-h1 {
  font-size: var(--h1);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  margin-top: 0;
}

.hero-h1 .keyword-highlight {
  text-decoration: none;
  position: relative;
  display: inline;
  box-shadow: inset 0 -4px 0 var(--primary);
}

.hero-subhead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* === HUD STAT BLOCK === */
.hud-stat-block {
  border: 2px solid var(--secondary);
  border-radius: 0;
  background: var(--surface-alt);
  min-width: 14rem;
  flex-shrink: 0;
  position: relative;
}

.hud-stat-block::before,
.hud-stat-block::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--secondary);
}

.hud-stat-block::before { top: -4px; left: -4px; }
.hud-stat-block::after  { bottom: -4px; right: -4px; }

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.625rem 1rem;
  gap: 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

.hud-row:last-child { border-bottom: none; }

.hud-label {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--secondary);
  white-space: nowrap;
}

.hud-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--accent);
  text-align: right;
}

@media (max-width: 1023px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hud-stat-block {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hud-row:nth-child(2) { border-bottom: 1px solid var(--neutral-200); }
  .hud-row:nth-child(3) { border-bottom: none; }
}

@media (max-width: 480px) {
  .hud-stat-block { grid-template-columns: 1fr; }
  .hud-row:nth-child(2) { border-bottom: 1px solid var(--neutral-200); }
  .hud-row:nth-child(3) { border-bottom: 1px solid var(--neutral-200); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-neon);
  border-color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary-50);
}

.btn-primary:hover {
  box-shadow: 2px 2px 0 var(--primary-50), 0 0 12px var(--secondary);
  color: var(--text-on-neon);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 4px 4px 0 var(--primary-50);
}

.btn-secondary:hover {
  background: var(--primary-50);
  box-shadow: 2px 2px 0 var(--primary-50), 0 0 10px var(--secondary);
  color: var(--secondary);
}

/* === SECTION STRUCTURE === */
.site-main {
  padding-bottom: 4rem;
}

.section-block {
  padding-top: 3rem;
}

.section-eyebrow {
  font-family: var(--font-pixel);
  font-size: var(--pixel-eyebrow);
  letter-spacing: 0.04em;
  color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary);
  display: block;
  margin-bottom: 0.75rem;
}

.section-lede {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  max-width: 62ch;
}

.section-divider {
  border: none;
  border-top: 2px solid var(--primary);
  margin: 3rem 0;
  position: relative;
  text-align: center;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--secondary);
  display: block;
}

/* === READING CHIP === */
.reading-chips {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  line-height: 1.5;
}

.chip-cyan {
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.chip-yellow {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.chip-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  flex-shrink: 0;
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 1023px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 719px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.45), 0 0 14px var(--primary);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    var(--scanline) 3px,
    var(--scanline) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.card-header {
  background: var(--surface-alt);
  border-bottom: 2px solid var(--neutral-200);
  margin: -1.5rem -1.5rem 1.25rem;
  padding: 0.75rem 1.25rem;
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 1;
}

.card > p,
.card > ul,
.card > ol {
  position: relative;
  z-index: 1;
}

/* === EVIDENCE CARD === */
.evidence-card {
  background: var(--surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.875rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.evidence-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
}

.evidence-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    var(--scanline) 3px,
    var(--scanline) 4px
  );
  pointer-events: none;
  opacity: 0.4;
}

.evidence-card:hover {
  border-color: var(--primary);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.45), 0 0 14px var(--primary);
}

.evidence-card.accent-magenta::before { background: var(--primary); }
.evidence-card.accent-cyan::before    { background: var(--secondary); }
.evidence-card.accent-yellow::before  { background: var(--accent); }
.evidence-card.accent-red::before     { background: var(--danger); }

.evidence-chip {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.evidence-claim {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.625rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.evidence-outcome {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.evidence-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--neutral-200);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.evidence-dose {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.evidence-citation {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

/* === CALLOUTS === */
.callout {
  border: 2px solid var(--secondary);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.callout-eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.callout.callout-info {
  border-color: var(--secondary);
}

.callout.callout-info .callout-eyebrow { color: var(--secondary); }

.callout.callout-clinical {
  border-color: var(--primary);
}

.callout.callout-clinical .callout-eyebrow { color: var(--primary); }

.callout.callout-warning {
  border-color: var(--accent);
}

.callout.callout-warning .callout-eyebrow { color: var(--accent); }

.callout.callout-danger {
  border-color: var(--danger);
}

.callout.callout-danger .callout-eyebrow { color: var(--danger); }

/* === FAQ ACCORDION === */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color var(--transition), color var(--transition);
}

.faq-question:hover {
  background: var(--surface-alt);
  color: var(--secondary);
}

.faq-question[aria-expanded="true"] {
  color: var(--secondary);
  border-bottom: 1px solid var(--neutral-200);
}

.faq-icon {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--secondary);
  flex-shrink: 0;
  letter-spacing: 0;
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-answer.open { display: block; }

/* === REFERENCES LIST === */
.references-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: ref-counter;
}

.references-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.9375rem;
  align-items: start;
}

.references-list li:last-child { border-bottom: none; }

.ref-num {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--secondary);
  background: var(--neutral-50);
  padding: 0.25rem 0.375rem;
  border-radius: var(--radius);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.ref-citation { color: var(--text-muted); }

.ref-link {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  margin-left: 0.5rem;
}

.ref-link:hover { color: var(--primary); }

/* === TABLES === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.data-table thead tr {
  border-top: 2px solid var(--primary);
}

.data-table th {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--neutral-200);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
  color: var(--text);
}

.data-table td:last-child,
.data-table th:last-child { text-align: right; }

.data-table tr:last-child td { border-bottom: none; }

/* === TAGS === */
.tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  border: 2px solid var(--secondary);
  color: var(--secondary);
  line-height: 1.5;
  white-space: nowrap;
}

.tag-magenta {
  background: var(--primary);
  color: var(--text-on-neon);
  border-color: var(--primary);
}

.tag-yellow {
  border-color: var(--accent);
  color: var(--accent);
}

/* === CUSTOM LIST BULLETS === */
.pixel-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.pixel-list li {
  padding-left: 1.375rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.pixel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  display: block;
  flex-shrink: 0;
}

/* === HERO IMAGE === */
.hero-image-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--neutral-200);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--neutral-900);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 3px
  );
  pointer-events: none;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h1 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* === BREADCRUMBS === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--secondary);
}

.breadcrumb-sep {
  color: var(--neutral-300);
  font-size: 0.75rem;
}

/* === FIGURE === */
figure.content-figure {
  margin: 2rem 0;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  overflow: hidden;
}

figure.content-figure img {
  width: 100%;
  display: block;
}

figcaption {
  background: var(--surface-alt);
  padding: 0.625rem 1rem;
  font-size: var(--small);
  color: var(--text-muted);
  border-top: 1px solid var(--neutral-200);
}

/* === CONTENT BODY === */
.content-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--primary);
  position: relative;
}

.content-body h2::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--secondary);
}

.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  color: var(--secondary);
}

.content-body p { margin-bottom: 1.1rem; }

.content-body ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1rem;
}

.content-body ul li {
  padding-left: 1.375rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.content-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--primary);
  display: block;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 40rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(51, 230, 255, 0.15);
}

.form-textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2333E6FF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* === FOOTER === */
.site-footer {
  background: var(--surface-alt);
  border-top: 2px solid var(--primary);
  padding-top: 3rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    var(--scanline) 3px,
    var(--scanline) 4px
  );
  pointer-events: none;
  opacity: 0.5;
}

.site-footer > * { position: relative; z-index: 1; }

.footer-top {
  padding-bottom: 2.5rem;
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer-col-heading {
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  background: var(--neutral-900);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-pixels {
  display: flex;
  gap: 0.375rem;
}

.footer-pixel {
  display: inline-block;
  width: 8px;
  height: 8px;
}

.footer-pixel-magenta { background: var(--primary); }
.footer-pixel-cyan    { background: var(--secondary); }
.footer-pixel-yellow  { background: var(--accent); }

/* === 404 PAGE === */
.error-page {
  min-height: calc(100vh - 60px - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--container-px);
}

.error-code {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

.error-message {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 2rem;
}

/* === TIPPY OVERRIDE === */
.tippy-box[data-theme~="arcade"] {
  background: var(--surface-alt);
  border: 2px solid var(--secondary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: var(--radius);
}

.tippy-box[data-theme~="arcade"] .tippy-arrow::before {
  color: var(--surface-alt);
}

/* === UTILITIES === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-muted { color: var(--text-muted); }
.text-cyan   { color: var(--secondary); }
.text-yellow { color: var(--accent); }
.text-magenta { color: var(--primary); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* === RESPONSIVE MAIN LAYOUT === */
@media (max-width: 768px) {
  .hero {
    padding: 1.75rem;
  }

  .hero-subhead { font-size: 1rem; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; justify-content: center; }

  .section-block { padding-top: 2rem; }
}
