/* crimipc.de – Version 7 */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #14171c;
  --muted: #59626e;
  --line: #e1e4ea;
  --line-strong: #cdd2da;
  --accent: #1d5fd6;
  --accent-soft: rgba(29, 95, 214, 0.09);
  --accent-ink: #ffffff;
  --header-bg: rgba(246, 247, 249, 0.82);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
  --shadow-hover: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 32px -16px rgba(16, 24, 40, 0.22);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --surface: #12151a;
    --surface-2: #181c22;
    --text: #e8ebf0;
    --muted: #9aa3ae;
    --line: #20252d;
    --line-strong: #2d343e;
    --accent: #6aa3ff;
    --accent-soft: rgba(106, 163, 255, 0.12);
    --accent-ink: #0b0d10;
    --header-bg: rgba(11, 13, 16, 0.78);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 32px -16px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 650;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
}
.brand-crimi { font-weight: 300; }
.brand-pc { font-weight: 750; color: var(--accent); letter-spacing: 0.01em; }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.site-nav a[aria-current] { color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--text); background: var(--surface-2); }
}

.menu-button {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.menu-button:active { transform: scale(0.94); }

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px; height: 1.5px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(6px); }

.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .js .menu-button { display: grid; place-items: center; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .js .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .site-nav li:last-child a { border-bottom: 0; }

  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
  .btn-secondary:hover { background: var(--surface-2); }
}

.btn svg { width: 16px; height: 16px; flex: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 .accent { color: var(--accent); }

.hero-lead {
  max-width: 34rem;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow);
}
.hero-art svg { width: 100%; height: 100%; padding: 40px 0 0; }
.hero-art .edge { stroke: var(--line-strong); stroke-width: 1; }
.hero-art .node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.hero-art .node-key { fill: var(--accent); }
.hero-art .wave rect { fill: var(--accent); opacity: 0.35; }
.hero-art-caption {
  position: absolute;
  left: 20px; top: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(48px, 8vw, 80px) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  list-style: none;
}
.stats li { padding: 20px 22px; background: var(--surface); }
.stats strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.section-head .eyebrow { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
}

/* About */
.about-text p { color: var(--muted); }
.about-text p:first-child { color: var(--text); font-size: 1.2rem; line-height: 1.55; }

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4.5rem; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 24px;
  padding-block: 10px;
}
.timeline time {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.timeline div { position: relative; }
.timeline div::before {
  content: "";
  position: absolute;
  left: -28.5px; top: 9px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.section-alt .timeline div::before { background: var(--surface); }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: 0.95rem; }

/* Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }

.card h3 { font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .chips { margin-top: auto; padding-top: 8px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }

.card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms ease;
}
.card-link:active { transform: scale(0.985); }
.card-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}
.card-more svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
  .card-link:hover .card-more svg { transform: translateX(3px); }
}

.card-thumb {
  margin: -24px -24px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #000;
}
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.card-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .card-featured { flex-direction: row; align-items: center; gap: 40px; padding: 32px; }
  .card-featured .card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .card-featured h3 { font-size: 1.6rem; }
  .card-featured .card-visual { flex: 0 0 280px; }
}
.card-visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
}
.card-visual svg { width: 100%; height: 100%; }
.card-visual .edge { stroke: var(--line-strong); stroke-width: 1; }
.card-visual .node { fill: var(--accent); }

/* Lists */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list .title { font-weight: 550; }
.list .title em { color: var(--muted); font-style: normal; font-weight: 400; }
.list .meta {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.list-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 56px);
}
.list-columns h3 {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.waveform { height: 56px; margin-bottom: clamp(32px, 5vw, 48px); color: var(--accent); }
.waveform svg { width: 100%; height: 100%; }
.waveform rect { fill: currentColor; opacity: 0.5; }

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  list-style: none;
}
.logos li { padding: 22px 24px; background: var(--surface); }
.section-alt .logos li { background: var(--bg); }
.logos strong { display: block; font-weight: 600; }
.logos span { color: var(--muted); font-size: 0.92rem; }

/* CTA */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  background: var(--text);
  color: var(--bg);
}
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta p { margin: 8px 0 0; opacity: 0.7; }
.cta .btn-primary { background: var(--bg); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .cta .btn-primary:hover { background: color-mix(in srgb, var(--bg) 88%, var(--text)); }
}

/* ---------- Article pages ---------- */
.page-head { padding-block: clamp(48px, 8vw, 88px) clamp(32px, 5vw, 48px); }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}
.breadcrumb svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .breadcrumb:hover { color: var(--text); }
  .breadcrumb:hover svg { transform: translateX(-3px); }
}
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.03em; }
.page-head .lead {
  max-width: 44rem;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  padding-bottom: clamp(64px, 10vw, 112px);
}

.prose { max-width: 42rem; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }

.facts {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts dl { display: grid; gap: 16px; margin: 0; }
.facts dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts dd { margin: 0; font-size: 0.95rem; }
.facts .btn { width: 100%; justify-content: center; margin-top: 20px; }

.note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}
.note p:last-child { margin-bottom: 0; }

.video-frame {
  max-width: 760px;
  margin: 0 0 clamp(40px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame video { width: 100%; height: auto; background: #000; }
.video-frame figcaption {
  padding: 12px 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Downloads */
.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: start;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.download + .download { margin-top: 20px; }
.download h2 { font-size: 1.5rem; }
.download > div > p { margin: 10px 0 0; color: var(--muted); }
.download .file-meta {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
}
.download-details { grid-column: 1 / -1; display: grid; gap: 4px; }

details {
  border-top: 1px solid var(--line);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 200ms var(--ease-out);
}
details[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.details-body { padding-bottom: 16px; color: var(--muted); font-size: 0.95rem; }
.details-body h4 { margin: 14px 0 6px; color: var(--text); font-size: 0.95rem; font-weight: 600; }
.details-body h4:first-child { margin-top: 0; }
.details-body ul { margin: 0; padding-left: 1.2em; }
.details-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.details-body dt { color: var(--text); }
.details-body dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  color: var(--muted);
  font-size: 0.93rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand .brand-mark { font-size: 1.1rem; color: var(--text); }
.footer-brand p { margin: 8px 0 0; }
.footer-label {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-copy { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; }

@media (hover: hover) and (pointer: fine) {
  .footer-contact a:hover, .footer-nav a:hover { color: var(--accent); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; }
  .facts { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .download { grid-template-columns: minmax(0, 1fr); }
  .download .file-meta { text-align: left; }
  .list li { flex-direction: column; gap: 2px; }
  .footer-inner { grid-template-columns: 1fr; }
  .timeline::before { left: 3.6rem; }
  .timeline li { grid-template-columns: 3.6rem 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .card-link, .btn, .menu-button, .js .site-nav { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .hero-art, .waveform { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
