/* Reset, Fonts, Grundtypografie, Hintergrund-Ebenen, Bewegungs-Reduktion. */

/* Selbst gehostete Fonts (DSGVO, kein Google-Fonts-CDN).
   Bricolage Grotesque als variabler Font mit opsz/wght/wdth-Achsen — die
   optische Größe (opsz) passt die Buchstabenformen je nach Schriftgröße an
   (font-optical-sizing: auto ist Browser-Default). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/chakra-petch-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-mono-700.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}

/* atmosphärischer Hintergrund */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -5%, rgba(238, 51, 124, 0.22), transparent 60%),
    radial-gradient(700px 500px at 12% 110%, rgba(120, 60, 200, 0.14), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* Scroll-Fortschritt oben */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--magenta), var(--magenta-soft));
  box-shadow: 0 0 12px var(--magenta);
}

.wrap {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
}

/* sichtbarer Fokus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--magenta-soft); outline-offset: 3px; border-radius: 6px;
}

img { max-width: 100%; }
a { color: inherit; }

/* Abschnitte & Überschriften */
section { padding: 96px 0; position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 18px;
}
/* „Mission-Control"-Headline-Schrift (Chakra Petch) — Hero/Sektions-Titel +
   Statistik-Zahlen. Karten-/Work-Titel (h3) und Namen bleiben im Grotesk.
   Chakra Petch gibt es nur in 700 → Headings auf 700 statt 800. */
h1, h2, .page-title, .metric .num, .tile .v { font-family: var(--heading); }
h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.02; }
.sec-intro { max-width: 60ch; color: var(--muted); margin-top: 18px; font-size: 18px; }
blockquote { font-size: 20px; line-height: 1.5; color: var(--ink); margin-top: 24px; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
}
