/* ============================================================
   AUTISM LIBERATION FRONT — design system
   Palette: Revolutionary Red / Signal Yellow / Ledger White
   Type: Unbounded (display) · Archivo (body) · IBM Plex Mono (forms)
   ============================================================ */

:root {
  --red: #c8102e;
  --red-deep: #8e0b1f;
  --red-ink: #5a0713;
  --yellow: #f5c518;
  --yellow-pale: #ffe680;
  --white: #f7f3ea;
  --paper: #fbf8f1;
  --ink: #15100f;
  --ink-soft: #3b3230;
  --muted: #7a6f6b;
  --line: rgba(21, 16, 15, 0.12);

  --font-display: 'Unbounded', 'Archivo Black', system-ui, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin: 0 0 1.2em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Bureaucratic labels */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex; align-items: flex-start; gap: 0.7em; line-height: 1.5;
}
.kicker::before { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; margin-top: 0.55em; }
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 0.35em 0.7em;
  transform: rotate(-2deg);
  border-radius: 2px;
}
.form-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid var(--red);
}
.ticker__track { display: inline-flex; gap: 3rem; padding: 0.55em 0; animation: ticker 60s linear infinite; }
.ticker__track span::before { content: "■"; color: var(--red); margin-right: 1rem; font-size: 0.6em; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 30px rgba(21,16,15,0.08); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand__emblem { width: 44px; height: 44px; flex: none; }
.brand__text { font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; line-height: 1; letter-spacing: 0.02em; }
.brand__text small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--red); margin-top: 0.35em; }
.nav__links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 0.4em 0; position: relative; color: var(--ink);
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right 0.35s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--red); }
.nav__links a.nav__cta[aria-current="page"] { color: var(--white); background: var(--red-deep); border-color: var(--red-deep); }
.nav__links a.nav__cta::after { display: none; }
.nav__cta { display: inline-block; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 76px 0 0 0; background: var(--ink); color: var(--white);
    flex-direction: column; gap: 0; padding: 2rem var(--gutter);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--white); font-size: 1.1rem; font-family: var(--font-display); font-weight: 800; letter-spacing: 0; text-transform: none; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: block; }
  .nav__links a[aria-current="page"] { color: var(--yellow); }
  .nav__links a::after { display: none; }
  .nav__links .nav__cta { margin-top: 1.5rem; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 0.95em 1.6em; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,16,15,0.18); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--on-dark { border-color: var(--white); color: var(--white); background: transparent; }
.btn--on-dark:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: 0.7em 1.1em; font-size: 0.7rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--red);
  color: var(--white);
  min-height: min(92vh, 900px);
  display: grid; align-items: center;
  isolation: isolate;
}
.hero__rays {
  position: absolute; inset: -40%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.07) 0deg 6deg, transparent 6deg 12deg);
  animation: rays 90s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: rotate(360deg); } }
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding: 6rem var(--gutter); }
.hero .kicker { color: var(--yellow); }
.hero h1 { margin-bottom: 0.3em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__seal { display: grid; place-items: center; }
.hero__seal svg { width: min(100%, 420px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.seal-ring { animation: spin 40s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 3rem var(--gutter) 3.5rem; gap: 2rem; }
  .hero__seal { order: -1; }
  .hero__seal svg { width: min(60vw, 260px); }
}

/* Page hero (interior) */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-hero .kicker { color: var(--yellow); }
.page-hero .lead { color: rgba(255,255,255,0.78); }
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle, rgba(200,16,46,0.35), transparent 60%);
  pointer-events: none;
}
.page-hero--red { background: var(--red); }
.page-hero--red::after { background: radial-gradient(circle, rgba(245,197,24,0.25), transparent 60%); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .kicker { color: var(--yellow); }
.section--dark .lead { color: rgba(255,255,255,0.78); }
.section--red { background: var(--red); color: var(--white); }
.section--red .kicker { color: var(--yellow); }
.section--yellow { background: var(--yellow); color: var(--ink); }
.section--yellow .kicker { color: var(--red-deep); }
.section--paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }

.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(21,16,15,0.1); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card h3 { margin-top: 0.4rem; }
.card .form-no { display: block; margin-bottom: 0.6rem; }
.card--dark { background: #1d1716; border-color: rgba(255,255,255,0.08); color: var(--white); }
.card--dark .form-no { color: rgba(255,255,255,0.5); }
.card--yellow { background: var(--yellow); border-color: transparent; }
.card--yellow::before { background: var(--ink); }
.card__num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--red); margin-bottom: 0.4rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--white); padding: clamp(1.4rem, 3vw, 2.4rem); }
.section--dark .stats, .section--red .stats { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.12); }
.section--dark .stat { background: var(--ink); }
.section--red .stat { background: var(--red); }
.stat__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.stat__value sup { font-size: 0.4em; vertical-align: super; }
.stat__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.7rem; opacity: 0.75; }
.stat__src { font-size: 0.72rem; opacity: 0.55; margin-top: 0.4rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Manifesto / long-form ---------- */
.prose { max-width: 720px; }
.prose p { font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.75; }
.prose h2 { margin-top: 3.5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2.2rem; font-size: 1.2rem; }
.prose blockquote {
  margin: 2.2rem 0; padding: 1.4rem 1.8rem; border-left: 5px solid var(--red);
  background: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.3;
}
.prose blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .footnote { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.prose .dropcap::first-letter {
  font-family: var(--font-display); font-weight: 900; font-size: 4.2em; float: left; line-height: 0.8; margin: 0.08em 0.15em 0 0; color: var(--red);
}
.chapter-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.22em; color: var(--red); text-transform: uppercase; display: block; margin-bottom: 0.4rem; }

.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: 100px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.45rem 0 0.45rem 1rem; text-decoration: none; font-size: 0.82rem; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--red); border-left-color: var(--red); font-weight: 600; }
.toc__title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; margin-bottom: 2rem; } .toc ol { display: flex; flex-wrap: wrap; gap: 0.3rem; border: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; } .toc a.is-active { border-color: var(--red); } }

.progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress-rail span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width 0.1s linear; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 3rem 3rem; }
.timeline__item::before { content: ""; position: absolute; left: 4px; top: 0.45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red); }
.timeline__item--future::before { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.timeline__year { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; color: var(--red); letter-spacing: -0.02em; }
.timeline__item--future .timeline__year { color: var(--ink); }
.timeline__title { font-weight: 700; font-size: 1.15rem; margin: 0.5rem 0 0.4rem; font-family: var(--font-display); }
.timeline__body p { margin-bottom: 0.6em; color: var(--ink-soft); }
.timeline__era { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 3rem 0 1.5rem 3rem; }
.timeline__era:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .timeline::before { left: 50%; }
  .timeline__item { width: 50%; padding: 0 3rem 3.5rem 0; }
  .timeline__item::before { left: auto; right: -8px; }
  .timeline__item:nth-child(even of .timeline__item) { margin-left: 50%; padding: 0 0 3.5rem 3rem; }
  .timeline__item:nth-child(even of .timeline__item)::before { right: auto; left: -8px; }
  .timeline__item:nth-child(odd of .timeline__item) { text-align: right; }
  .timeline__era { text-align: center; margin-left: 0; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); font-size: 1.5rem; flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 0 1.6rem; max-width: 720px; color: var(--ink-soft); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Charts ---------- */
.chart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.section--dark .chart { background: #1d1716; border-color: rgba(255,255,255,0.08); }
.chart__title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 0.2rem; }
.chart__sub { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.section--dark .chart__sub { color: rgba(255,255,255,0.5); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__src { font-size: 0.72rem; color: var(--muted); margin-top: 1rem; font-family: var(--font-mono); }
.section--dark .chart__src { color: rgba(255,255,255,0.45); }
.chart .bar { transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.chart .bar-h { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.chart.is-visible .bar, .chart.is-visible .bar-h { transform: none; }
.chart .line-path { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.2s var(--ease); }
.chart.is-visible .line-path { stroke-dashoffset: 0; }
.chart .axis { stroke: var(--line); }
.section--dark .chart .axis { stroke: rgba(255,255,255,0.15); }
.chart text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.section--dark .chart text { fill: rgba(255,255,255,0.6); }
.chart .donut-seg { transition: stroke-dasharray 1.4s var(--ease); }

/* ---------- Posters ---------- */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .posters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posters { grid-template-columns: 1fr; } }
.poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius); background: var(--red-deep); transform-style: preserve-3d; transition: transform 0.4s var(--ease), box-shadow 0.4s; box-shadow: 0 10px 30px rgba(21,16,15,0.2); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.poster:hover img { transform: scale(1.04); }
.poster__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(21,16,15,0.9)); color: var(--white); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.poster__cap b { display: block; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0; text-transform: none; margin-bottom: 0.3rem; }

/* ---------- Quiz ---------- */
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quiz__bar { height: 6px; background: var(--line); }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.5s var(--ease); }
.quiz__body { padding: clamp(1.5rem, 4vw, 3rem); }
.quiz__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.quiz__q { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.25; margin-bottom: 1.8rem; min-height: 2.5em; }
.quiz__opts { display: grid; gap: 0.7rem; }
.quiz__opt {
  text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem;
  font: inherit; cursor: pointer; display: flex; gap: 1rem; align-items: center; transition: 0.2s var(--ease);
}
.quiz__opt:hover { border-color: var(--ink); transform: translateX(4px); }
.quiz__opt .key { font-family: var(--font-mono); font-size: 0.7rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.quiz__opt:hover .key { background: var(--ink); color: var(--white); border-color: var(--ink); }
.quiz__step { animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.verdict { text-align: center; padding: clamp(1.5rem, 4vw, 3rem); }
.verdict__meter { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 1.5rem auto; max-width: 520px; }
.verdict__meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--red)); transition: width 1.6s var(--ease); }
.verdict__scale { display: flex; justify-content: space-between; max-width: 520px; margin: 0 auto 2rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.verdict__label { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1; margin: 0.5rem 0; }
.verdict__label.is-1 { color: #2f7d4a; }
.verdict__label.is-2 { color: #b98a00; }
.verdict__label.is-3 { color: var(--red); }
.verdict__label.is-4 { color: var(--red-ink); }
.verdict__body { max-width: 560px; margin: 0 auto 1.6rem; color: var(--ink-soft); }
.verdict__actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.verdict__cert { display: inline-block; margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

/* ---------- Report form ---------- */
.report { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); position: relative; overflow: hidden; }
.report::before { content: "FORM 14-B"; position: absolute; right: 1.2rem; top: 1rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 6vw, 4rem); color: rgba(255,255,255,0.05); letter-spacing: -0.03em; pointer-events: none; }
.report .kicker { color: var(--yellow); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--white); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 0.8rem 0.9rem; width: 100%; outline: none; transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); background: rgba(255,255,255,0.1); }
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.field--row .field { margin: 0; }
.report__progress { display: none; margin-top: 1.5rem; }
.report__progress.is-active { display: block; }
.report__bar { height: 8px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; }
.report__bar span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width 0.4s linear; }
.report__status { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 0.7rem; min-height: 1.4em; }
.report__done { display: none; margin-top: 1.5rem; padding: 1.4rem; border: 1px solid var(--yellow); border-radius: var(--radius); background: rgba(245,197,24,0.08); animation: fadeUp 0.6s var(--ease); }
.report__done.is-active { display: block; }
.report__done b { font-family: var(--font-display); display: block; font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--yellow); }
.report__done small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-top: 0.8rem; }

/* ---------- Ministries list ---------- */
.ministries { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); }
.ministry { background: var(--ink); padding: 1.6rem; }
.ministry__code { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--yellow); }
.ministry h3 { font-size: 1.05rem; margin: 0.5rem 0 0.5rem; }
.ministry p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0; }

/* ---------- Table (platform / budget) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.ledger th, .ledger td { text-align: left; padding: 0.9rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ledger td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.ledger th.num { text-align: right; }
.ledger tr:hover td { background: rgba(200,16,46,0.04); }
.section--dark .ledger th, .section--dark .ledger td { border-color: rgba(255,255,255,0.1); }
.section--dark .ledger th { color: rgba(255,255,255,0.5); }

/* ---------- Plank list ---------- */
.planks { counter-reset: plank; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plank { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); counter-increment: plank; }
.plank::before { content: counter(plank, decimal-leading-zero); font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--red); line-height: 1; }
.plank h3 { margin: 0 0 0.5rem; }
.plank p { color: var(--ink-soft); margin-bottom: 0.6em; }
.plank .plank__ref { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .plank { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- Slogan block ---------- */
.slogan { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.slogan em { font-style: normal; color: var(--yellow); }
.section--yellow .slogan em { color: var(--red); }

/* ---------- Flag ---------- */
.flag { aspect-ratio: 3 / 2; background: var(--red); position: relative; border-radius: 2px; overflow: hidden; }
.flag::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 12%; background: var(--yellow); transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: clamp(3rem, 7vw, 5rem) 0 2rem; border-top: 6px solid var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__grid h4 { color: var(--white); font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { color: var(--yellow); }
.footer__flag { width: 120px; margin: 1.2rem 0; }
.footer__legal { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 3rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
