/* =========================================================
   REDLINE/STUDIO — Core Stylesheet
   Aggressive black/red/neon · racing-grade · brutalist
   ========================================================= */

:root {
  --bg: #060305;
  --bg-2: #0c0608;
  --bg-3: #150a0d;
  --ink: #f4ecec;
  --ink-dim: #d8d0d0;
  --ink-mute: #ab9fa0;
  --line: rgba(255, 60, 80, 0.15);
  --line-2: rgba(255, 255, 255, 0.07);
  --red: #ff1f3d;
  --red-2: #ff003c;
  --red-deep: #b3001b;
  --red-glow: 255, 31, 61;
  --rose: #ffd2d8;
  --cream: #f4ecec;
  --grid: rgba(255, 31, 61, 0.06);

  --font-display: "Anton", "Bebas Neue", "Impact", sans-serif;
  --font-display-2: "Big Shoulders Display", "Anton", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power: cubic-bezier(0.85, 0, 0.15, 1);
}

/* SUBPAGE THEME — the neon-red accent becomes a lighter neon BLUE. Applied via
   the theme-cool class on subpage bodies only (the homepage stays red). The whole
   UI is built on the red/glow/line/grid custom properties, so overriding them
   here recolours every accent, glow, animation and the logo name at once. */
.theme-cool {
  --line: rgba(41, 192, 255, 0.16);
  --red: #29c0ff;
  --red-2: #00a6ff;
  --red-deep: #0a5e96;
  --red-glow: 41, 192, 255;
  --rose: #cfeeff;
  --grid: rgba(41, 192, 255, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--red); color: #fff; text-shadow: none; }

html { scroll-behavior: smooth; }

html {
  /* Solid fallback before the video element loads. Painted FIRST in the stacking
     order, so .bg-scroll (z-index: -3) sits between this fallback and the body. */
  background: var(--bg);
  color: var(--ink);
  /* NOTE: do not use overflow-x: hidden on html — it breaks position: sticky.
     Horizontal overflow is clipped on body instead. */
}

/* Lenis smooth scroll — recommended setup */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  /* Body MUST stay transparent — a solid bg here would cover the scroll-video. */
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { cursor: none; }
@media (hover: none) { body { cursor: auto; } .cursor { display: none; } }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* =========================================================
   BACKGROUND SCROLL VIDEO
   ========================================================= */
.bg-scroll {
  position: fixed; inset: 0;
  z-index: -3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-out);
  will-change: opacity;
}
.bg-scroll.is-active { opacity: 1; }
/* Full-page variant (team.html): the video is the page background across the
   WHOLE scroll, so it stays visible at all times (no edge fade). */
.bg-scroll--page { opacity: 1; }
/* Dark tint over the full-page background video so page text stays legible. */
.bg-scroll-tint {
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6, 3, 5, 0.80) 0%,
    rgba(6, 3, 5, 0.60) 36%,
    rgba(6, 3, 5, 0.64) 62%,
    rgba(6, 3, 5, 0.88) 100%);
}
/* Infinite background loop (about.html): a plain autoplay loop, no scrub. */
.bg-loop {
  position: fixed; inset: 0;
  z-index: -3;
  pointer-events: none;
}
.bg-loop__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.25);
  transform: scale(1.04);
}
/* Kontakt mobile: the car front sits on the left of the frame — shift the
   cover crop left so the front reads centred in the portrait slice. */
@media (max-width: 900px) {
  /* feature the front tire: pull the cover-crop left + drop the slight zoom-in. */
  .bg-loop__video--front { object-position: 12% 50%; transform: scale(1.0); }
}

/* =========================================================
   REEL-REACTIVE LIGHT (team.html). main.js sets --reel-flash
   (0..1) from the bg video's currentTime, peaking briefly when the
   black car turns white (~11s). A SHORT effect sweeps from the
   CENTRE outward (two bright bands) WITHOUT washing the video — the
   background stays transparent / fully visible. As the bands reach
   the edges they clothe the TOP nav bar and the BOTTOM footer bar in
   a light beige (text inverts to dark there), giving the page a
   light look. Removed on mobile (--reel-flash stays 0).
   ========================================================= */
@property --reel-flash {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
:root { --reel-flash: 0; }
/* bar-light amount: ramps in as the bands near the top/bottom edges */
.reel-live { --bar: clamp(0, calc((var(--reel-flash) - 0.55) / 0.4), 1); }

/* two bright bands sweep from the centre out to the top + bottom edges */
.reel-band {
  position: fixed; left: 0; right: 0;
  height: 2px;
  z-index: 26;
  pointer-events: none;
  transform: translateY(-50%);
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
  box-shadow: 0 0 30px 7px rgba(255, 255, 255, 0.9);
  opacity: clamp(0, calc(var(--reel-flash) * 8), 1);
}
.reel-band--top    { top: calc(50% - var(--reel-flash) * 50%); }  /* centre → top */
.reel-band--bottom { top: calc(50% + var(--reel-flash) * 50%); }  /* centre → bottom */

/* TOP nav bar clothes light as the upper band reaches it (bg only — content stays) */
.reel-live .nav::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #efe7d4, #e7ddc4);
  opacity: var(--bar);
}
.reel-live .nav > * { position: relative; }   /* nav content above the light overlay */
.reel-live .nav__logo-text { color: color-mix(in srgb, var(--ink), #0b0b0d calc(var(--bar) * 100%)); }
.reel-live .nav__links a,
.reel-live .nav__sep,
.reel-live .nav__cta { color: color-mix(in srgb, var(--ink-dim), #0b0b0d calc(var(--bar) * 100%)); }
.reel-live .nav__cta { border-color: color-mix(in srgb, var(--line), #0b0b0d calc(var(--bar) * 55%)); }

/* BOTTOM footer bar clothes light as the lower band reaches it */
.reel-live .footer { position: relative; }
.reel-live .footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #e7ddc4, #efe7d4);
  opacity: var(--bar);
}
.reel-live .footer > * { position: relative; }
.reel-live .footer__giant,
.reel-live .footer__col p,
.reel-live .footer__col a,
.reel-live .footer__bottom .mono { color: color-mix(in srgb, var(--ink), #0b0b0d calc(var(--bar) * 100%)); }

@media (max-width: 900px) {
  .reel-band { display: none; }   /* sweep removed on mobile */
}

/* =========================================================
   PROJEKTE — big-type project index (premium, type-driven,
   sits over the bg video; accents follow the page theme).
   ========================================================= */
.proj-list { list-style: none; border-top: 1px solid var(--line); }
.proj { border-bottom: 1px solid var(--line); }
.proj > a,
.proj > .proj__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 28px;
  padding: clamp(18px, 3.2vh, 40px) 8px;
  text-decoration: none; color: inherit;
  position: relative;
  transition: padding-left 0.45s var(--ease-out);
}
.proj__row--soon { opacity: 0.58; }
.proj__row--soon .proj__name { color: var(--ink-mute); }
.proj > a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(var(--red-glow), 0.12), transparent 72%);
  transition: width 0.45s var(--ease-out);
  z-index: -1;
}
.proj > a:hover { padding-left: 22px; }
.proj > a:hover::before { width: 100%; }
.proj__num { font-family: var(--font-mono); font-size: 12px; color: var(--red); letter-spacing: 0.1em; }
.proj__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 62px);
  line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}
.proj > a:hover .proj__name { color: var(--red); }
.proj__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.proj__year { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
@media (max-width: 760px) {
  .proj > a,
  .proj > .proj__row { grid-template-columns: auto 1fr; gap: 4px 16px; }
  .proj__cat { grid-column: 2; }
  .proj__year { grid-column: 1; grid-row: 1; justify-self: end; }
}

/* Featured case — large preview card that opens a live project */
.case-feature {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line);
  background: rgba(6, 3, 5, 0.42);
  padding: clamp(16px, 2.4vw, 28px);
  position: relative;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.case-feature + .case-feature { margin-top: clamp(20px, 3.5vh, 40px); }
.case-feature:hover { border-color: rgba(var(--red-glow), 0.55); transform: translateY(-3px); }
.case-feature__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: #0a0a0d;
}
.case-feature__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease-out);
}
.case-feature:hover .case-feature__media img { transform: scale(1.05); }
.case-feature__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 3, 5, 0.55));
  pointer-events: none;
}
.case-feature__badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  background: rgba(var(--red-glow), 0.9);
  padding: 6px 10px;
}
.case-feature__kicker { display: block; color: var(--red); font-size: 12px; letter-spacing: 0.2em; margin-bottom: 14px; }
.case-feature__name {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 70px);
  line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color 0.3s;
}
.case-feature:hover .case-feature__name { color: var(--red); }
.case-feature__desc { color: var(--ink-dim); max-width: 46ch; margin-bottom: 22px; }
.case-feature__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.case-feature__meta .mono { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.case-feature__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid rgba(var(--red-glow), 0.5);
  padding-bottom: 4px;
}
@media (max-width: 760px) {
  .case-feature { grid-template-columns: 1fr; }
}
.bg-scroll__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.15) saturate(1.4) brightness(1.0);
  transform: scale(1.05);
  will-change: transform;
}
/* Motion proxy: the canvas overlays the native video ONLY while
   scrolling (JS drives style.opacity). At rest it fades out and the
   full-resolution native video frame shows — zero quality loss. */
.bg-scroll__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.15) saturate(1.4) brightness(1.0);
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 0.22s linear;
  will-change: opacity;
}
.bg-scroll__tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(var(--red-glow), 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(var(--red-glow), 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6, 3, 5, 0.15) 0%, rgba(6, 3, 5, 0.3) 100%);
}
.bg-scroll__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--red-glow), 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--red-glow), 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  opacity: 0.5;
}

/* =========================================================
   OVERLAYS
   ========================================================= */
.noise {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: noiseShift 0.6s steps(2) infinite;
}

@keyframes noiseShift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.scanlines {
  position: fixed; inset: 0; z-index: 9991;
  pointer-events: none; opacity: 0.25;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.25) 3px,
    transparent 4px
  );
  mix-blend-mode: multiply;
}

.vignette {
  position: fixed; inset: 0; z-index: 9989;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(var(--red-glow), 0.08) 0%, transparent 60%);
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.cursor__ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.25s, background 0.25s;
  will-change: transform;
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  background: rgba(255, 31, 61, 0.15);
  border-color: var(--red);
}
.cursor.is-hover .cursor__dot { width: 0; height: 0; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: clamp(20px, 4vw, 48px);
  transition: transform 1.2s var(--ease-power), opacity 0.6s 0.6s linear;
}
.loader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.loader__bar {
  align-self: end;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  position: relative;
}
.loader__bar span {
  display: block; width: 0%; height: 100%;
  background: var(--red);
  box-shadow: 0 0 30px rgba(var(--red-glow), 0.9);
  transition: width 0.15s linear;
}
.loader__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; color: var(--ink-dim);
  margin-top: 18px;
}
.loader__count {
  color: var(--red);
  text-shadow: 0 0 20px rgba(var(--red-glow), 0.7);
}
.loader__brand {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 180px);
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* =========================================================
   NAV — always-on subtle backdrop. Earlier versions used
   mix-blend-mode: difference, which collapsed the layout
   against the giant red "REDLINE" hero text. Removed.
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, rgba(6, 3, 5, 0.85) 0%, rgba(6, 3, 5, 0.55) 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, padding 0.35s;
}
.nav.is-scrolled {
  background: rgba(6, 3, 5, 0.88);
  border-bottom-color: var(--line);
  padding: 12px clamp(20px, 4vw, 48px);
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo-text { white-space: nowrap; }
.nav__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  transition: transform 0.4s var(--ease-out), filter 0.3s;
  /* The user's logo PNG is BLACK on TRANSPARENT.
     invert(1) flips the black pixels to white (alpha is preserved),
     giving us a clean white logo on the dark site without touching
     the original artwork. Crisp white + subtle glow so it reads clearly. */
  filter:
    invert(1)
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.28));
}
.nav__logo-mark img,
.nav__logo-mark svg {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}
.nav__logo:hover .nav__logo-mark {
  transform: translateX(2px) rotate(-3deg);
  filter:
    invert(1)
    drop-shadow(0 0 0 transparent)
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.3));
}
.nav__logo-text span { color: var(--red); }
.nav__links {
  display: flex; gap: clamp(14px, 1.6vw, 24px); justify-content: center;
  align-items: center;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  flex-wrap: nowrap;
}
.nav__links a {
  position: relative; color: var(--ink-dim);
  transition: color 0.25s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--red);
  transition: width 0.35s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }
.nav__sep {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0 4px;
  user-select: none;
}
.nav__sub { color: var(--red) !important; }
.nav__sub::after { background: var(--ink) !important; }

/* active state for current page link */
.nav__links a.is-active {
  color: var(--ink);
}
.nav__links a.is-active::after {
  width: 100%;
  background: var(--red);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__cta span { white-space: nowrap; }
.nav__cta:hover {
  background: var(--red); color: var(--ink); border-color: var(--red);
  box-shadow: 0 0 40px rgba(var(--red-glow), 0.5);
}

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  cursor: pointer;
  background: transparent; border: 0;
  padding: 0;
}
.nav__burger span {
  position: absolute; left: 8px;
  width: 28px; height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-power), opacity 0.3s, background 0.3s;
  transform-origin: center;
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 21px; width: 20px; background: var(--red); }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px; transform: rotate(45deg);
  background: var(--red);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px; transform: rotate(-45deg);
  background: var(--red);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; justify-self: end; }
  /* logo gets the 1fr; the language toggle + burger stick to the right */
  .nav { grid-template-columns: 1fr auto auto; }
}

/* ---- Language toggle (DE / EN) ---- */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em;
  overflow: hidden;
  justify-self: end;
}
.lang-toggle__opt {
  padding: 6px 9px; background: transparent; border: 0;
  color: var(--ink-dim); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle__opt + .lang-toggle__opt { border-left: 1px solid var(--line); }
.lang-toggle__opt.is-active { background: var(--red); color: #fff; }
.lang-toggle__opt:not(.is-active):hover { color: var(--ink); }
@media (hover: none) { .lang-toggle__opt { cursor: default; } }

/* =========================================================
   MOBILE NAV OVERLAY
   ========================================================= */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(6, 3, 5, 0.96);
  backdrop-filter: blur(20px);
  padding: 84px clamp(22px, 6vw, 44px) calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6%);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              visibility 0s 0.5s linear;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              visibility 0s linear;
}
.mobile-nav::before, .mobile-nav::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.mobile-nav::before {
  inset: 80px clamp(24px, 6vw, 48px) auto;
  height: 1px;
  background: var(--line);
}
.mobile-nav::after {
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--red-glow), 0.18), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(var(--red-glow), 0.12), transparent 50%);
  inset: 0;
}

.mobile-nav__brand {
  --logo-accent: var(--red);
  position: relative;
  z-index: 2;
  color: var(--ink);
  width: 50px; height: 50px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 22px rgba(var(--red-glow), 0.55)) invert(1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s var(--ease-out) 0.1s,
              transform 0.6s var(--ease-out) 0.1s;
}
.mobile-nav.is-open .mobile-nav__brand {
  opacity: 1; transform: scale(1);
}
.mobile-nav__brand img,
.mobile-nav__brand svg { width: 100%; height: 100%; display: block; object-fit: contain; }

.mobile-nav__links {
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.mobile-nav__links a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(26px, 7.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  opacity: 0;
  transform: translateX(-20px);
  transition: color 0.3s, padding-left 0.3s, opacity 0.5s, transform 0.5s;
}
.mobile-nav.is-open .mobile-nav__links a {
  opacity: 1; transform: translateX(0);
  transition-delay: calc(var(--i, 0) * 60ms + 200ms);
}
.mobile-nav__links a:hover, .mobile-nav__links a:active {
  color: var(--red);
  padding-left: 14px;
}
.mobile-nav__links a .mono {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.mobile-nav__links a em {
  font-family: var(--font-display-2);
  font-style: italic;
}
.mobile-nav__links a.mobile-nav__sub {
  margin-top: 14px;
  font-size: clamp(22px, 6vw, 36px);
  color: var(--red);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.mobile-nav__links a.mobile-nav__sub .mono { color: var(--ink-dim); }
.mobile-nav__foot {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  position: relative;
  z-index: 2;
}
.mobile-nav__foot .mono {
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.mobile-nav__foot a.mono { color: var(--red); }

/* body lock when mobile nav open */
body.nav-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* iOS Safari: account for browser chrome */
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
  padding-top: 80px;  /* reserve clear space for the fixed nav */
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.4) contrast(1.05) brightness(0.6) saturate(1.4);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(var(--red-glow), 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 90%, rgba(var(--red-glow), 0.18) 0%, transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(6,3,5,0.95) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.6;
}

.hero__corner {
  position: absolute;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-dim);
  padding: clamp(20px, 4vw, 48px);
  z-index: 2;
}
.hero__corner em { color: var(--red); font-style: normal; }
.hero__corner--tl { top: 70px; left: 0; }
.hero__corner--tr { top: 70px; right: 0; text-align: right; align-items: flex-end; }
.hero__corner--bl { bottom: 70px; left: 0; }
.hero__corner--br { bottom: 70px; right: 0; text-align: right; align-items: flex-end; }
.hero__corner--br span:last-child {
  color: var(--red);
  animation: rec 1.6s steps(2) infinite;
}
@keyframes rec { 50% { opacity: 0.2; } }

.hero__content {
  align-self: end;
  padding: clamp(60px, 8vh, 120px) clamp(20px, 4vw, 48px);
  z-index: 2;
  display: flex; flex-direction: column; gap: 28px;
  max-width: 1500px;
}
.kicker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--red);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 11.5vw, 188px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
/* Tidy the hero: DESIGN + AT APEX same SIZE (same letter height); AT APEX is
   condensed horizontally so it matches DESIGN's width — no overhang. THRUST
   MEDIA. stays the smaller tagline (.small below). */
.hero__title .line:nth-child(2) { transform: scaleX(0.81); transform-origin: left center; }  /* "BY AXION" endet bündig unter DESIGN */
.hero__title .word {
  display: inline-block;
  position: relative;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-power);
}
.is-loaded .hero__title .word { transform: translateY(0); }
.is-loaded .hero__title .line:nth-child(2) .word { transition-delay: 0.1s; }
.is-loaded .hero__title .line:nth-child(3) .word { transition-delay: 0.2s; }

.hero__title .italic { font-style: italic; font-family: var(--font-display-2); }
.hero__title .redline {
  color: var(--red);
  text-shadow:
    0 0 30px rgba(var(--red-glow), 0.5),
    0 0 60px rgba(var(--red-glow), 0.3);
}
.hero__title .small {
  font-family: var(--font-display-2);
  font-size: 0.51em;
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: 0;
}
.caret {
  display: inline-block; color: var(--red);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__sub {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.5;
  max-width: 560px;
  color: var(--ink-dim);
}
.hero__sub strong { color: var(--red); font-weight: 700; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--ink);
  position: relative; overflow: hidden;
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-power);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--red); box-shadow: 0 0 40px rgba(var(--red-glow), 0.4); }

.btn--primary {
  background: #fff; color: #000;
  border-color: var(--red);
  font-weight: 700;
}
.btn--primary:hover { color: #fff; box-shadow: 0 0 46px rgba(var(--red-glow), 0.55); }
.btn--ghost { color: var(--ink); border-color: rgba(255,255,255,0.4); }
.btn--block { width: 100%; justify-content: space-between; padding: 22px 28px; }

/* MARQUEE */
.marquee {
  position: relative;
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.marquee--hero { padding: 20px 0; }
.marquee__track {
  display: inline-flex; align-items: center; gap: 40px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 36px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  animation: marquee 30s linear infinite;
}
.marquee__track .dot { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION HELPERS
   ========================================================= */
.section-head {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  text-transform: uppercase;
}
.section-num {
  color: var(--red); font-weight: 700;
  padding: 6px 10px; border: 1px solid rgba(var(--red-glow), 0.3);
  background: rgba(var(--red-glow), 0.06);
}
.section-line { flex: 1; height: 1px; background: var(--line); }
.mono { font-family: var(--font-mono); letter-spacing: 0.12em; font-size: 11px; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 48px);
  position: relative;
  background:
    linear-gradient(180deg, rgba(6, 3, 5, 0.4) 0%, rgba(6, 3, 5, 0.1) 50%, rgba(6, 3, 5, 0.25) 100%);
  border-top: 1px solid var(--line);
}
.manifesto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(var(--red-glow), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(var(--red-glow), 0.05) 0%, transparent 40%);
}
.manifesto__grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  margin-top: 40px;
  position: relative;
}

.manifesto__text h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.manifesto__text h2 span { display: block; }
.manifesto__text h2 em {
  color: var(--red); font-style: italic;
  font-family: var(--font-display-2);
}
.manifesto__text h2 s { color: var(--ink-mute); }
.reveal-text span {
  overflow: hidden;
  display: block;
}
.reveal-text span::after {
  content: ""; display: block; height: 1px; background: var(--line); margin-top: 6px;
}

.manifesto__lead {
  margin-top: 32px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-dim);
  max-width: 540px;
  line-height: 1.6;
}

.manifesto__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}
.stat {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 8px; height: 8px;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--red);
}
.stat::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 8px; height: 8px;
  border-bottom: 1px solid var(--red);
  border-right: 1px solid var(--red);
}
.stat:hover {
  border-color: rgba(var(--red-glow), 0.5);
  background: rgba(var(--red-glow), 0.04);
  transform: translateY(-3px);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 90px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-block;
}
.stat__suffix {
  font-family: var(--font-display-2);
  font-size: clamp(28px, 3vw, 42px);
  font-style: italic;
  color: var(--red);
}
.stat__label {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
}

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

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 48px);
  position: relative;
  background:
    linear-gradient(180deg, rgba(6, 3, 5, 0.3) 0%, rgba(6, 3, 5, 0.6) 30%, rgba(6, 3, 5, 0.78) 100%);
  border-top: 1px solid var(--line);
}
.services__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 24px 0 60px;
  font-weight: 400;
}
.services__title em {
  font-family: var(--font-display-2);
  font-style: italic; color: var(--red);
}

/* =========================================================
   WAS WIR ANBIETEN — Services section AS an interactive solar
   offer explorer. The 4 planets are the 4 disciplines; the HUD
   panel, hint and leader line stay viewport-fixed (see solar.js),
   only the canvas is scoped to this section.
   ========================================================= */
.services--solar {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);                 /* opaque: covers the scroll video here */
  display: flex;
  align-items: flex-start;
  padding: clamp(96px, 15vh, 168px) clamp(20px, 4vw, 48px) clamp(40px, 8vh, 90px);
}
.solar-section-canvas {                  /* fills the section, behind the content */
  position: absolute; inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  /* draggable surface: orbit the system. touch-action pan-y keeps vertical
     page-scroll working while horizontal drags rotate the system on mobile. */
  pointer-events: auto;
  touch-action: pan-y;
}
.services--solar .services__intro {
  position: relative;
  z-index: 4;
  pointer-events: none;                  /* clicks fall through to the planets */
  max-width: min(560px, 82vw);
}
.services--solar .services__intro a,
.services--solar .services__cue { pointer-events: auto; }
.services--solar .services__title { margin: 18px 0 16px; }
.services__cue {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.services__cue b { color: var(--red); }

/* Service cards are now links → angebot.html ("Was wir anbieten") */
.services__list a.service { color: inherit; text-decoration: none; }
.service__more {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  transition: padding-left 0.3s var(--ease-out);
}
.service:hover .service__more { padding-left: 8px; }

.services__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  cursor: none;
  transition: background 0.35s var(--ease);
  isolation: isolate;
}
.service:nth-child(2n) { border-right: 0; }
.service:nth-last-child(-n+2) { border-bottom: 0; }
.service__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), rgba(var(--red-glow), 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service:hover .service__glow { opacity: 1; }
.service:hover { background: rgba(var(--red-glow), 0.04); }
.service::after { content: none; }
.service:hover::after { color: var(--red); transform: rotate(0deg) translateX(4px); }

.service__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.service__num { color: var(--red); }
.service__tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
}
.service__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 16px;
}
.service__desc {
  color: var(--ink-dim);
  max-width: 480px;
  font-size: 15px; line-height: 1.6;
  margin-bottom: 28px;
}
.service__desc em { color: var(--red); font-style: italic; }
.service__items {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.service__items li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color 0.3s, color 0.3s;
}
.service:hover .service__items li {
  border-color: rgba(var(--red-glow), 0.4);
  color: var(--ink);
}

@media (max-width: 900px) {
  .services__list { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; }
  .service:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* =========================================================
   ENGINEERING — KINETIC TYPOGRAPHY + COLOR-PLAY
   3 phases pinned for 300vh, crossfading on scroll.
   Layered color treatments tint the bg-scroll video.
   ========================================================= */
.engineering {
  position: relative;
  min-height: 320vh;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.engineering__inner {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(60px, 8vh, 120px) clamp(20px, 4vw, 48px) clamp(40px, 6vh, 80px);
  overflow: hidden;
  isolation: isolate;
}

/* ---- color treatment layers (cover the section, blend with video) ---- */
.treatment {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform, filter;
}
.treatment--burn {
  background: radial-gradient(ellipse 80% 60% at 50% 60%,
                              rgba(var(--red-glow), 0.65) 0%,
                              rgba(var(--red-glow), 0.25) 40%,
                              transparent 75%);
  mix-blend-mode: overlay;
  opacity: 0.9;
}
.treatment--cool {
  background:
    linear-gradient(135deg, rgba(8, 12, 24, 0.55) 0%, rgba(0, 0, 0, 0.0) 50%, rgba(60, 6, 14, 0.5) 100%);
  mix-blend-mode: multiply;
  opacity: 0;
}
.treatment--strobe {
  background:
    repeating-linear-gradient(180deg,
      transparent 0,
      transparent 6px,
      rgba(255, 31, 61, 0.18) 6px,
      rgba(255, 31, 61, 0.18) 7px);
  mix-blend-mode: screen;
  opacity: 0;
}
.treatment--vignette {
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.8) 100%);
  mix-blend-mode: multiply;
  opacity: 0.7;
}

/* ---- HUD corners ---- */
.engineering__corner {
  position: absolute;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-dim);
  padding: clamp(20px, 4vw, 48px);
  z-index: 3;
  pointer-events: none;
}
.engineering__corner em { color: var(--red); font-style: normal; }
.engineering__corner--tl { top: 0; left: 0; }
.engineering__corner--tr { top: 0; right: 0; text-align: right; align-items: flex-end; }

.engineering__head {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.18em;
  z-index: 2;
  position: relative;
  /* clear the absolutely-positioned corner telemetry (SEQ/MODULE) above */
  margin-top: clamp(42px, 6vh, 64px);
}

/* ---- phases container — stacked, only one visible ---- */
.phases {
  position: relative;
  align-self: center;
  width: 100%;
  z-index: 2;
}
.phase {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px) scale(0.96);
  transition: opacity 0.5s var(--ease-out),
              transform 0.6s var(--ease-out),
              visibility 0s 0.5s linear;
}
.phase.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s var(--ease-out),
              transform 0.7s var(--ease-out),
              visibility 0s linear;
}
/* phase 1 stays in the flow to set the phases container height */
.phase[data-phase="1"] { position: relative; }

.phase__num {
  color: var(--red);
  text-shadow: 0 0 14px rgba(var(--red-glow), 0.6);
}

.phase__title {
  font-family: var(--font-display);
  font-size: clamp(54px, 12vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.75);
}
.phase__title .line {
  display: block;
  overflow: hidden;
  padding: 0.18em 0 0.1em;  /* room for diacritics (Ü, Ö) + descenders */
}
.phase__title .italic {
  font-family: var(--font-display-2);
  font-style: italic;
}
.phase__title .word {
  display: inline-block;
  vertical-align: bottom;
}
.phase__title .word.red {
  color: var(--red);
  text-shadow: 0 0 44px rgba(var(--red-glow), 0.7),
               0 6px 40px rgba(0, 0, 0, 0.7);
}
/* per-char span used by JS for stagger */
.phase__title .char {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.phase.is-active .phase__title .char {
  animation: charRise 0.9s var(--ease-power) forwards;
}
.phase.is-active .phase__title .line:nth-child(2) .char {
  animation-delay: calc(var(--i, 0) * 28ms + 120ms);
}
.phase.is-active .phase__title .line:nth-child(1) .char {
  animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes charRise {
  0%   { transform: translateY(110%) rotate(8deg); }
  60%  { transform: translateY(-4%) rotate(0deg); }
  100% { transform: translateY(0) rotate(0); }
}

.phase__lead {
  max-width: 580px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.phase__lead em {
  color: var(--red);
  font-style: italic;
  font-family: var(--font-display-2);
  font-size: 1.05em;
  letter-spacing: 0.005em;
}

.engineering__legend {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  z-index: 2;
  position: relative;
}
.engineering__legend .mono { color: var(--ink); }

@media (max-width: 900px) {
  .engineering { min-height: 280vh; }
  .phase__title { font-size: clamp(40px, 14vw, 100px); }
}

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(6, 3, 5, 0.25) 0%, rgba(6, 3, 5, 0.6) 35%, rgba(6, 3, 5, 0.8) 100%);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--red-glow), 0.06), transparent 45%);
  pointer-events: none;
}
.process__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 24px 0 80px;
  font-weight: 400;
}
.process__title em {
  font-family: var(--font-display-2);
  font-style: italic; color: var(--red);
}

/* ----------------------------------------------------------
   PROCESS — F1 STARTING GRID (staggered, like the real thing)
   A continuous dashed CENTRE line splits the track. Pole box
   sits RIGHT of the line, P2 LEFT and one row behind, then
   alternating. Each slot: grid-box marking + position number
   reveal first (on scroll), then the car drives in from below;
   the step copy fades in beside it on the opposite side.
---------------------------------------------------------- */
.grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6.5vh, 76px);
  margin-top: 60px;
  padding: 40px 0 60px;
  /* outer track edges */
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}
/* continuous centre line — starts below the start-line header (its dashes were
   painting over the "POLE POSITION · STARTLINIE" label) and runs to the cars. */
.grid::before {
  content: "";
  position: absolute;
  top: clamp(96px, 10vh, 124px); bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0 18px,
    transparent 18px 38px
  );
}

/* START LINE — full-width row at top */
.grid__startline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  position: relative;
  padding-bottom: 32px;
  border-bottom: 2px solid rgba(255,255,255,0.45);
}
.grid__startline .mono {
  text-align: center;
  color: var(--red);
  letter-spacing: 0.18em;
  font-size: 11px;
}
.grid__startline-flag {
  /* Checkered band on the left */
  width: 100%; height: 14px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}
.grid__startline-lights {
  display: flex; gap: 8px; justify-content: flex-end;
}
.grid__startline-lights span {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(var(--red-glow), 0.85),
              inset 0 0 6px rgba(255,255,255,0.4);
  animation: startLight 5s infinite;
}
.grid__startline-lights span:nth-child(2) { animation-delay: 0.4s; }
.grid__startline-lights span:nth-child(3) { animation-delay: 0.8s; }
.grid__startline-lights span:nth-child(4) { animation-delay: 1.2s; }
.grid__startline-lights span:nth-child(5) { animation-delay: 1.6s; }
@keyframes startLight {
  0%, 35% { opacity: 1; }
  40%, 100% { opacity: 0.18; }
}

/* SLOT — one row, split at the centre line */
.grid__slot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 5vw, 88px);
  align-items: center;
  position: relative;
}

/* GRID BOX — the car's slot beside the centre line */
.grid__box {
  position: relative;
  width: 156px;
  padding: 30px 14px 12px;
}
.grid__slot--right .grid__box {
  grid-column: 2;
  justify-self: start;
  margin-left: clamp(6px, 1.6vw, 22px);
}
.grid__slot--left .grid__box {
  grid-column: 1;
  justify-self: end;
  margin-right: clamp(6px, 1.6vw, 22px);
}

/* Grid-box marking: bar ahead of the car + outer side line,
   drawn in (scaleX/scaleY) when the slot arms (.is-set) */
.grid__mark {
  position: absolute;
  inset: 22px 4px 4px;
  pointer-events: none;
}
.grid__mark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  transform: scaleX(0);
  transition: transform 0.55s var(--ease-power);
}
.grid__slot--right .grid__mark::before { transform-origin: left center; }
.grid__slot--left  .grid__mark::before { transform-origin: right center; }
.grid__mark::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s var(--ease-power) 0.3s;
}
.grid__slot--right .grid__mark::after { right: 0; }
.grid__slot--left  .grid__mark::after { left: 0; }
.grid__slot.is-set .grid__mark::before { transform: scaleX(1); }
.grid__slot.is-set .grid__mark::after  { transform: scaleY(1); }

/* Position number outside the box's top outer corner */
.grid__pos {
  position: absolute;
  top: -8px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--red);
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(var(--red-glow), 0.7);
  opacity: 0;
  transition: opacity 0.45s ease 0.4s;
}
.grid__slot--right .grid__pos { right: -38px; }
.grid__slot--left  .grid__pos { left: -38px; }
.grid__slot.is-set .grid__pos { opacity: 1; }

/* The car — drives in from below once parked */
.f1-car {
  display: block;
  width: 116px;
  height: 252px;
  margin: 0 auto;
  color: var(--ink);
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.65))
          drop-shadow(0 0 18px rgba(var(--red-glow), 0.28));
  opacity: 0;
  will-change: transform, opacity;
}
/* cars pull out of the centre lane into their box */
.grid__slot--right .f1-car { --fromX: -70px; }
.grid__slot--left  .f1-car { --fromX: 70px; }
.grid__slot.is-parked .f1-car {
  animation: carDriveIn 1.1s var(--ease-power) forwards;
}
@keyframes carDriveIn {
  0%   { opacity: 0; transform: translate(var(--fromX, 0), 46vh); }
  10%  { opacity: 1; }
  70%  { transform: translate(calc(var(--fromX, 0) * 0.22), 5vh); }
  100% { opacity: 1; transform: translate(0, 0); }
}

/* Content on the opposite side of the centre line */
.grid__slot .step__content {
  position: relative;
  border: 1px solid var(--line);
  padding: 24px 28px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  max-width: 440px;
  opacity: 0;
  transition: opacity 0.6s 1.0s var(--ease-out),
              transform 0.7s 1.0s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
.grid__slot--right .step__content {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  transform: translateX(-32px);
}
.grid__slot--left .step__content {
  grid-column: 2;
  justify-self: start;
  transform: translateX(32px);
}
.grid__slot.is-parked .step__content {
  opacity: 1;
  transform: translateX(0);
}
.grid__slot .step__content:hover {
  border-color: rgba(var(--red-glow), 0.4);
  background: rgba(var(--red-glow), 0.05);
}
.grid__slot .step__content::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 14px; height: 1px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}
/* tick points toward the centre line (content sits opposite the car) */
.grid__slot--right .step__content::before { right: -14px; }
.grid__slot--left  .step__content::before { left: -14px; }
.grid__slot .step__label {
  color: var(--red);
  display: block; margin-bottom: 6px;
}
.grid__slot h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 12px;
}
.grid__slot p {
  color: var(--ink-dim);
  line-height: 1.6;
  font-size: 14.5px;
}
.grid__slot .step__time {
  display: inline-block; margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

/* FINISH LINE */
.grid__finishline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-top: 32px;
  border-top: 2px solid rgba(255,255,255,0.45);
}
.grid__finishline .mono {
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.18em;
  font-size: 11px;
}
.grid__finishline::before { content: ""; }
.grid__checker {
  width: 100%; height: 14px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
}

@media (max-width: 900px) {
  /* On phones the staggered-grid metaphor doesn't read — switch to a
     clean, CONSISTENT list: each slot is one row with the car on the
     left and its copy directly to the right, so the pairing is obvious.
     DOM order differs per slot (--right = content,box / --left = box,
     content) so we pin placement with explicit grid-column + grid-row
     and ignore source order. */
  .grid { gap: 26px; border-left: 0; border-right: 0; padding: 28px 0 40px; }
  .grid::before { display: none; }            /* drop the centre line on mobile */
  .grid__startline, .grid__finishline { grid-template-columns: 1fr; gap: 12px; }
  .grid__startline-flag, .grid__startline-lights { display: none; }
  /* keep the checkered ZIELFLAGGE visible on mobile: stack it under the label */
  .grid__finishline::before { display: none; }
  .grid__finishline .grid__checker { display: block; width: 100%; height: 16px; }

  .grid__slot {
    grid-template-columns: 84px 1fr;
    column-gap: 16px;
    align-items: center;
    row-gap: 0;
  }

  /* CAR — fixed left column, same for EVERY slot.
     Compound selectors (.grid__slot--right/--left .X) match the
     desktop rules' specificity (0,2,0) and, coming later in source,
     win — so both slot variants land car=col1, copy=col2. */
  .grid__slot--right .grid__box,
  .grid__slot--left  .grid__box {
    grid-column: 1; grid-row: 1;
    width: 84px;
    justify-self: center;
    margin: 0;
    padding: 20px 0 4px;
  }
  .f1-car { width: 72px; height: 156px; }
  /* mobile drive-in: straight up, no centre-lane lean */
  .grid__slot.is-parked .f1-car { animation-name: carDriveInM; }
  .grid__pos {
    font-size: 17px;
    left: 50% !important; right: auto !important;
    top: -2px;
    transform: translateX(-50%);
  }
  .grid__slot.is-set .grid__pos { transform: translateX(-50%); }
  /* grid-box marking simplified: just the lead bar */
  .grid__mark { inset: 16px 8px 2px; }
  .grid__mark::after { display: none; }

  /* COPY — right column, same for every slot, always left-aligned */
  .grid__slot--right .step__content,
  .grid__slot--left  .step__content {
    grid-column: 2; grid-row: 1;
    max-width: 100%;
    text-align: left;
    justify-self: stretch;
    transform: translateY(18px);
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
  }
  .grid__slot.is-parked .step__content { transform: translateY(0); }
  .grid__slot .step__content::before { display: none; }
  .grid__slot h3 { font-size: clamp(22px, 6.5vw, 30px); margin-bottom: 8px; }
  .grid__slot p { font-size: 13px; }
  .grid__slot .step__label { font-size: 9.5px; }
  .grid__slot .step__time { margin-top: 10px; }
}
@keyframes carDriveInM {
  0%   { opacity: 0; transform: translateY(16vh); }
  14%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   WORK
   ========================================================= */
.work {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(6, 3, 5, 0.3) 0%, rgba(6, 3, 5, 0.65) 40%, rgba(6, 3, 5, 0.82) 100%);
  border-top: 1px solid var(--line);
  position: relative;
}
.work__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 24px 0 60px;
  font-weight: 400;
}
.work__title em {
  font-family: var(--font-display-2);
  font-style: italic; color: var(--red);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.case {
  grid-column: span 6;
  position: relative;
  cursor: none;
}
.case--large { grid-column: span 7; }
.case--large + .case { grid-column: span 5; }
.case--large + .case + .case { grid-column: span 5; }
.case--wide  { grid-column: span 12; }

.case__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 16px;
}
.case--large .case__media { aspect-ratio: 16/11; }
.case--wide .case__media { aspect-ratio: 21/9; }

.case__visual {
  position: absolute; inset: 0;
  transition: transform 0.8s var(--ease-out), filter 0.6s;
  filter: saturate(1.1);
}
.case:hover .case__visual { transform: scale(1.05); filter: saturate(1.3) brightness(1.1); }

.case__visual--01 {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(var(--red-glow), 0.7) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(var(--red-glow), 0.55) 0%, transparent 35%),
    linear-gradient(135deg, #2a0610 0%, #1a0408 40%, #0a0203 100%);
}
.case__visual--01::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,0.05) 6px 7px),
    radial-gradient(circle at 30% 80%, rgba(255, 80, 100, 0.7), transparent 35%);
  mix-blend-mode: screen;
}
.case__visual--02 {
  background:
    linear-gradient(180deg, #1a0408 0%, #2a0610 50%, #1a0408 100%),
    repeating-linear-gradient(0deg, rgba(var(--red-glow), 0.18) 0 1px, transparent 1px 22px);
}
.case__visual--02::after {
  content: "01010111 01001000 \A 01000001 01010100 \A 01001100 01001001 \A 01010110 01000101"; white-space: pre;
  position: absolute; top: 24px; left: 24px;
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255, 100, 120, 0.85); letter-spacing: 0.1em;
  line-height: 1.6;
  text-shadow: 0 0 12px rgba(var(--red-glow), 0.6);
}
.case__visual--03 {
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--red-glow), 0.8) 0%, transparent 35%),
    conic-gradient(from 180deg at 50% 50%, #1a0408, #3a0612, #1a0408, #3a0612, #1a0408);
}
.case__visual--03::after {
  content: ""; position: absolute; inset: 30% 35%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(var(--red-glow), 0.6), inset 0 0 30px rgba(var(--red-glow), 0.4);
}
.case__visual--04 {
  background:
    linear-gradient(135deg, #0a0203 0%, #1a0408 50%, #0a0203 100%),
    radial-gradient(ellipse at 80% 50%, rgba(var(--red-glow), 0.5), transparent 45%),
    radial-gradient(ellipse at 20% 50%, rgba(var(--red-glow), 0.35), transparent 40%);
}
.case__visual--04::before {
  content: ""; position: absolute; inset: 25% 30%;
  border: 1.5px solid rgba(255, 60, 80, 0.6);
  transform: skewX(-18deg);
  box-shadow: inset 0 0 80px rgba(var(--red-glow), 0.5), 0 0 40px rgba(var(--red-glow), 0.3);
}
.case__visual--04::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.03) 14px 16px);
}

.case__corners span {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--red);
}
.case__corners span:nth-child(1) { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.case__corners span:nth-child(2) { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; }
.case__corners span:nth-child(3) { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; }
.case__corners span:nth-child(4) { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; }

.case__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-dim); letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.case__meta .mono:first-child { color: var(--red); }

.case__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 6px;
}
.case__cat {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 16px;
}
.case__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
  transition: gap 0.3s var(--ease-out);
}
.case__cta em { font-style: italic; }
.case:hover .case__cta { gap: 18px; }

@media (max-width: 900px) {
  .work__grid { grid-template-columns: 1fr; }
  .case, .case--large, .case--wide { grid-column: span 1; grid-row: span 1; }
}

/* =========================================================
   BIG MARQUEE
   ========================================================= */
.big-marquee {
  padding: 40px 0;
  background: var(--red);
  color: var(--bg);
  overflow: hidden;
  position: relative;
}
.big-marquee::before, .big-marquee::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--bg);
}
.big-marquee::before { top: 0; }
.big-marquee::after { bottom: 0; }
.marquee__track--xl {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  letter-spacing: -0.02em;
  font-weight: 400;
  animation-duration: 35s;
}
.marquee__track--xl .outline {
  -webkit-text-stroke: 2px var(--bg);
  color: transparent;
}
.marquee__track--xl .circle {
  font-size: 0.6em;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-0.15em);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(6, 3, 5, 0.4) 0%, rgba(6, 3, 5, 0.85) 60%, rgba(6, 3, 5, 0.95) 100%);
  position: relative;
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(var(--red-glow), 0.18), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(var(--red-glow), 0.12), transparent 45%);
  pointer-events: none;
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  margin-top: 40px;
  position: relative;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(54px, 9vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.contact__title em {
  font-family: var(--font-display-2);
  font-style: italic;
  color: var(--ink-dim);
}
.contact__title .redline {
  color: var(--red);
  text-shadow: 0 0 32px rgba(var(--red-glow), 0.6);
}
.contact__lead {
  color: var(--ink-dim); max-width: 460px;
  margin-top: 24px; line-height: 1.6;
}

.contact__details {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.contact__line {
  display: flex; align-items: center; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  transition: padding-left 0.4s var(--ease-out), color 0.3s;
  position: relative;
}
.contact__line .mono { color: var(--red); min-width: 80px; }
.contact__line:hover { padding-left: 20px; color: var(--ink); }
.contact__line::after {
  content: "→"; position: absolute; right: 10px;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  color: var(--red);
}
.contact__line:hover::after { opacity: 1; transform: translateX(0); }

/* FORM */
.contact__form {
  display: flex; flex-direction: column; gap: 22px;
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  position: relative;
}
.contact__form::before, .contact__form::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border-color: var(--red);
}
.contact__form::before {
  top: -1px; left: -1px;
  border-top: 1px solid; border-left: 1px solid;
}
.contact__form::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid; border-right: 1px solid;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: flex; flex-direction: column; position: relative; }
.field__label {
  color: var(--red);
  margin-bottom: 8px;
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  resize: vertical;
}
.field textarea { line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.field__bar {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(var(--red-glow), 0.7);
  transition: width 0.5s var(--ease-out);
}
.field input:focus ~ .field__bar,
.field textarea:focus ~ .field__bar { width: 100%; }
.field input:focus, .field textarea:focus { border-bottom-color: transparent; }

.field--chips { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  cursor: none;
}
.chip input {
  position: absolute; opacity: 0;
}
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.chip:hover span { border-color: var(--ink-dim); color: var(--ink); }
.chip input:checked ~ span {
  border-color: var(--red);
  color: var(--ink);
  background: rgba(var(--red-glow), 0.15);
  box-shadow: 0 0 18px rgba(var(--red-glow), 0.3);
}

.consent {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px;
  align-items: start;
  font-size: 13px;
  color: var(--ink-dim);
  cursor: none;
}
.consent input { accent-color: var(--red); margin-top: 2px; }
.consent a { color: var(--red); border-bottom: 1px dashed currentColor; }

.form-status {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; min-height: 18px;
  color: var(--ink-dim);
}
.form-status.is-ok { color: #6dffa8; }
.form-status.is-err { color: var(--red); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vh, 100px) clamp(20px, 4vw, 48px) 30px;
  position: relative;
  overflow: hidden;
}
.footer__top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px; margin-bottom: 40px;
}
.footer__giant {
  font-family: var(--font-display);
  /* Brand is longer than 'APEX/STUDIO' — cap font lower so the
     wordmark fits as a single nowrap line, but stays huge. */
  font-size: clamp(40px, 10.5vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}
.footer__giant .dot { color: var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col .mono { color: var(--red); margin-bottom: 8px; }
.footer__col a {
  color: var(--ink-dim);
  transition: color 0.3s, padding-left 0.3s;
  width: max-content;
}
.footer__col a:hover { color: var(--red); padding-left: 6px; }
.footer__col p { color: var(--ink-dim); line-height: 1.6; }

.footer__bottom {
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__bottom .mono { color: var(--ink-mute); }
.footer__top-btn {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink); border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  transition: color 0.3s;
}
.footer__top-btn:hover { color: var(--red); }

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

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* SCROLL APPEAR FOR STAT CARDS */
[data-service], [data-case] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-service].is-in, [data-case].is-in { opacity: 1; transform: translateY(0); }

/* =========================================================
   GLITCH FOR TITLES
   ========================================================= */
.word[data-text]:hover {
  position: relative;
  animation: glitchOnce 0.6s steps(2) 1;
}
@keyframes glitchOnce {
  0% { text-shadow: 2px 0 var(--red), -2px 0 #00fff7; }
  50% { text-shadow: -2px 0 var(--red), 2px 0 #00fff7; }
  100% { text-shadow: none; }
}

/* =========================================================
   IMPRESSUM PAGE
   ========================================================= */
.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: calc(100px + clamp(40px, 8vh, 100px)) clamp(20px, 4vw, 48px) clamp(80px, 12vh, 160px);
}
.legal__hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  margin-bottom: 60px;
}
.legal__hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 10vw, 140px);
  line-height: 0.9; letter-spacing: -0.02em;
  text-transform: uppercase; font-weight: 400;
  margin: 12px 0;
}
.legal__hero h1 em {
  font-family: var(--font-display-2);
  font-style: italic; color: var(--red);
}
.legal__hero p { color: var(--ink-dim); max-width: 580px; }

.legal article {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  text-transform: uppercase; letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 16px;
}
.legal h2::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.14em;
}
.legal h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 28px 0 10px;
}
.legal p, .legal li {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--red); border-bottom: 1px dashed currentColor; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal__back {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 14px 20px;
  transition: background 0.3s, color 0.3s;
}
.legal__back:hover { background: var(--red); color: var(--ink); border-color: var(--red); }

/* =========================================================
   MOBILE — global responsive tuning
   Philosophy: cut secondary HUD/decoration, keep typography +
   the bg video. Less is more on a 6-inch screen.
   ========================================================= */
@media (max-width: 900px) {
  /* HIDE non-essential decoration on phones */
  .scanlines { opacity: 0.12; }            /* keep but quieter */
  .hero__grid { display: none; }           /* gridlines feel busy here */
  .hero__corner--tl,
  .hero__corner--tr,
  .hero__corner--bl { display: none; }     /* keep only BR (scroll + rec) */
  .hero__corner--br { bottom: 84px; right: 16px; }
  .hero__corner--br .mono { font-size: 9.5px; letter-spacing: 0.16em; }

  /* Engineering: hide HUD corners on mobile — text is the star */
  .engineering__corner { display: none; }

  /* HERO — tighter typography */
  .hero { min-height: 92vh; }
  .hero__content {
    padding: clamp(48px, 6vh, 72px) 20px clamp(28px, 4vh, 48px);
    gap: 20px;
  }
  .hero__title { font-size: clamp(56px, 17vw, 110px); }
  .hero__sub { font-size: 14px; max-width: none; }
  .hero__sub strong { display: inline; }
  .hero__cta { gap: 10px; }
  .btn { padding: 14px 18px; font-size: 11px; }
  .kicker { font-size: 10px; letter-spacing: 0.16em; }

  /* MARQUEES — smaller, fewer items via .hide-mobile */
  .marquee__track { font-size: 20px; gap: 24px; }
  .marquee__track--xl { font-size: clamp(48px, 16vw, 90px); }
  .big-marquee { padding: 22px 0; }

  /* SECTION HEADS — wrap properly */
  .section-head { padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .section-line { display: none; }         /* drop the divider line on mobile */

  /* SECTION CHROME */
  .manifesto, .services, .process, .work, .contact {
    padding: clamp(56px, 9vh, 96px) 20px;
  }

  /* MANIFESTO — single column, simpler stats */
  .manifesto__grid { gap: 32px; }
  .manifesto__text h2 { font-size: clamp(34px, 10vw, 60px); }
  .manifesto__lead { font-size: 14px; margin-top: 18px; }
  .manifesto__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px 14px; }
  .stat::before, .stat::after { width: 6px; height: 6px; }
  .stat__num { font-size: clamp(34px, 11vw, 58px); }
  .stat__suffix { font-size: clamp(18px, 5.5vw, 28px); }
  .stat__label { font-size: 9.5px; letter-spacing: 0.12em; }

  /* SERVICES — compact cards, items pills hidden */
  .services__title { font-size: clamp(32px, 9vw, 56px); margin: 14px 0 24px; }
  .service { padding: 22px 20px; }
  .service__title { font-size: clamp(30px, 9vw, 52px); }
  .service__desc { font-size: 13.5px; margin-bottom: 0; }
  .service__items { display: none; }       /* hide tag pills — too dense */
  .service::after { top: 18px; right: 18px; font-size: 22px; }

  /* ENGINEERING — phases */
  .engineering { min-height: 220vh; }
  .engineering__inner { padding: 72px 20px 48px; }
  .engineering__head { font-size: 10px; gap: 10px; }
  .phase { gap: 12px; }
  .phase__num { font-size: 10px; }
  .phase__title { font-size: clamp(40px, 13vw, 88px); line-height: 0.9; }
  .phase__lead { font-size: 14px; max-width: none; }
  .engineering__legend { font-size: 10px; gap: 14px; padding-top: 10px; }

  /* PROCESS — tighter, fewer details */
  .process__title { font-size: clamp(32px, 9vw, 56px); margin: 14px 0 40px; }
  .process__track { padding-left: 50px; gap: 28px; }
  .process__line { left: 20px; }
  .step__index {
    width: 40px; height: 40px;
    font-size: 14px;
    transform: translateX(-20px);
  }
  .step__content { padding: 16px; }
  .step__content::before { left: -6px; width: 6px; height: 6px; top: 22px; }
  .step__label { font-size: 9.5px; }
  .step h3 { font-size: clamp(22px, 7vw, 32px); margin-bottom: 8px; }
  .step p { font-size: 13.5px; }
  .step__time { font-size: 10px; margin-top: 10px; }

  /* WORK */
  .work__title { font-size: clamp(32px, 9vw, 56px); margin: 14px 0 24px; }
  .work__grid { gap: 14px; }
  .case__media { aspect-ratio: 16/10 !important; margin-bottom: 12px; }
  .case__corners span { width: 14px; height: 14px; }
  .case__name { font-size: clamp(24px, 8vw, 38px); }
  .case__cat { font-size: 13px; }

  /* CONTACT — drop secondary contact lines on small phones,
     keep just MAIL */
  .contact__title { font-size: clamp(40px, 13vw, 80px); }
  .contact__lead { font-size: 14px; margin-top: 16px; }
  .contact__details { margin-top: 24px; }
  .contact__line { padding: 14px 0; gap: 12px; }
  .contact__line .mono { font-size: 10px; min-width: 50px; }
  .contact__form { padding: 22px 16px; gap: 18px; }
  .field input, .field textarea { font-size: 14px; padding: 12px 0; }
  .chip span { font-size: 10px; padding: 7px 10px; letter-spacing: 0.1em; }
  .consent { font-size: 12px; gap: 10px; }
  .form-status { font-size: 11px; }

  /* FOOTER */
  .footer { padding: 56px 20px 24px; }
  .footer__top { padding-bottom: 28px; margin-bottom: 28px; }
  .footer__giant { font-size: clamp(28px, 10vw, 90px); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__col { font-size: 13px; }
  .footer__bottom {
    flex-direction: column; align-items: flex-start;
    gap: 10px; margin-top: 32px;
  }
  .footer__bottom .mono { font-size: 10px; }

  /* IMPRESSUM */
  .legal { padding-top: 110px; }
  .legal__hero h1 { font-size: clamp(40px, 12vw, 84px); }
  .legal h2 { font-size: clamp(22px, 5.5vw, 32px); flex-wrap: wrap; gap: 10px; }
  .legal p, .legal li { font-size: 14px; }
  .legal article { margin-bottom: 44px; }
}

/* small phones — drop one more layer */
@media (max-width: 480px) {
  .manifesto__stats { grid-template-columns: 1fr; }   /* 1 col stat */
  .contact__line:nth-child(3),                        /* hide CALL line */
  .contact__line:nth-child(4) { display: none; }      /* hide STUDIO line */
  .nav__logo-text span { display: none; }             /* drop /STUDIO suffix */
  .hero__title { font-size: clamp(48px, 18vw, 84px); }
  .hero__sub { font-size: 13px; }
  .nav { padding: 12px 18px; }
  .nav__logo { font-size: 17px; gap: 10px; }
  .nav__logo-mark { width: 38px; height: 38px; }
  .footer__grid { grid-template-columns: 1fr; }       /* 1 col footer */
  .marquee__track { font-size: 17px; gap: 18px; }
  .marquee__track--xl { font-size: clamp(40px, 17vw, 78px); }
  .phase__lead em { font-size: 1em; }                 /* italic doesn't blow up */
}

/* =========================================================
   SOLAR SYSTEM BACKGROUND — subpages (team/partner/kontakt)
   Fixed canvas behind everything; a tint layer keeps the
   text column readable while planets shine on the right.
   ========================================================= */
.solar-bg {
  position: fixed; inset: 0;
  z-index: -2;
  display: block;
  width: 100%; height: 100%;
  pointer-events: none;
}
.solar-tint {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Lighter than before so the system reads more in the foreground;
     left stays dim enough for the text column, right is near-clear. */
  background: linear-gradient(90deg,
    rgba(6, 3, 5, 0.80) 0%,
    rgba(6, 3, 5, 0.40) 44%,
    rgba(6, 3, 5, 0.06) 100%);
}
@media (max-width: 900px) {
  .solar-tint {
    background: linear-gradient(180deg,
      rgba(6, 3, 5, 0.80) 0%,
      rgba(6, 3, 5, 0.46) 58%,
      rgba(6, 3, 5, 0.66) 100%);
  }
}

/* JARVIS leader line: SVG overlay from selected planet → panel */
.solar-link {
  position: fixed; inset: 0;
  z-index: 58;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.solar-link.is-on { opacity: 1; }
.solar-link line {
  stroke: var(--red);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  filter: drop-shadow(0 0 4px rgba(var(--red-glow), 0.8));
  animation: solarDash 0.6s linear infinite;
}
@keyframes solarDash { to { stroke-dashoffset: -10; } }
.solar-link circle { fill: none; stroke: var(--red); }
#solarLinkDot  { stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(var(--red-glow), 0.9)); }
#solarLinkDot2 { stroke-width: 1; opacity: 0.6; transform-box: fill-box; transform-origin: center;
                 animation: solarReticle 2s ease-out infinite; }
@keyframes solarReticle {
  0%   { r: 6;  opacity: 0.7; }
  100% { r: 26; opacity: 0; }
}

/* ---------- JARVIS / Star-Trek HUD panel (top-right) ---------- */
.solar-panel {
  position: fixed;
  top: clamp(76px, 9vh, 104px);
  right: clamp(14px, 2.6vw, 40px);
  z-index: 60;
  width: min(384px, calc(100vw - 28px));
  padding: 22px 24px 24px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(10, 4, 7, 0.92), rgba(8, 3, 6, 0.96));
  border: 1px solid rgba(var(--red-glow), 0.45);
  border-left: 2px solid var(--red);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(var(--red-glow), 0.18) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateX(26px) skewX(-0.5deg);
  transition: opacity 0.4s var(--ease-out),
              transform 0.5s var(--ease-power),
              visibility 0s 0.4s linear;
  overflow: hidden;
}
.solar-panel.is-open {
  opacity: 1; visibility: visible;
  transform: translateX(0) skewX(0);
  transition: opacity 0.4s var(--ease-out),
              transform 0.55s var(--ease-power),
              visibility 0s linear;
}
/* scanline texture sweeping the panel */
.solar-panel::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg, transparent 0 3px, rgba(255, 31, 61, 0.04) 3px 4px);
  mix-blend-mode: screen;
}
/* corner ticks (top-right + bottom-left) */
.solar-panel::after {
  content: "";
  position: absolute; top: 6px; right: 6px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--red);
  border-right: 1px solid var(--red);
  pointer-events: none;
}
.solar-panel__close {
  position: absolute; top: 6px; right: 24px;
  width: 30px; height: 30px;
  font-size: 19px; line-height: 1;
  color: var(--ink-dim);
  cursor: none; z-index: 2;
  transition: color 0.25s, transform 0.3s;
}
.solar-panel__close:hover { color: var(--red); transform: rotate(90deg); }
.solar-panel__back {        /* desktop: hidden (× + click-away handle it). mobile: shown */
  display: none;
  position: absolute; top: 12px; left: 18px; z-index: 3;
  background: none; border: 0;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); cursor: none;
}
.solar-panel__lockbar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  padding-right: 40px;   /* keep "ATM-SYS" clear of the × close button */
}
.solar-panel__lockbar b {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); display: inline-block;
  box-shadow: 0 0 8px var(--red);
  animation: rec 1.4s steps(2) infinite;
}
.solar-panel__lockbar i { flex: 1; height: 1px; background: rgba(var(--red-glow), 0.4); }
.solar-panel__kicker {
  display: block;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.solar-panel__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 14px;
}
.solar-panel__meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 14px;
}
.solar-panel__meta div { display: flex; flex-direction: column; gap: 3px; }
.solar-panel__meta dt {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
}
.solar-panel__meta dd {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink);
}
.solar-panel__text {
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.62;
  margin-bottom: 16px;
}
.solar-panel__cta {
  display: inline-block;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s, padding-left 0.3s;
}
.solar-panel__cta:hover { color: var(--ink); border-color: var(--ink); padding-left: 6px; }

/* Keyboard focus rings on the panel controls (design-system red) */
.solar-panel__cta:focus-visible,
.solar-panel__close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Bottom-left hint chip */
.solar-hint {
  position: fixed;
  left: clamp(16px, 3vw, 48px);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 55;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s;
}
.solar-hint b { color: var(--red); animation: rec 1.6s steps(2) infinite; }
.solar-hint.is-dim { opacity: 0.35; }

@media (max-width: 900px) {
  /* On phones the HUD becomes a BOTTOM SHEET so the tapped planet stays visible
     above it (camera lifts it into the upper area); a clear "← Zurück" returns. */
  .solar-panel {
    left: 0; right: 0; bottom: 0; top: auto;
    width: auto;
    max-height: 56vh; overflow-y: auto;
    border-radius: 18px 18px 0 0;
    border-left: 1px solid rgba(var(--red-glow), 0.45);
    border-bottom: 0;
    padding: 40px 18px 24px;
    transform: translateY(110%);            /* slide up from the bottom edge */
  }
  .solar-panel.is-open { transform: translateY(0); }
  .solar-panel__back { display: inline-flex; align-items: center; gap: 6px; }
  .solar-panel__close { top: 12px; right: 18px; }
  .solar-panel__title { font-size: clamp(24px, 7vw, 32px); }
  .solar-hint { font-size: 10px; bottom: 14px; }
  /* leader line is noisy on small screens — hide it */
  .solar-link { display: none; }
}

/* Solar zoom controls (+/−) — replaces wheel-zoom so the page still scrolls.
   Section-absolute (scrolls away with the section), stacked above the WA FAB. */
.solar-zoom {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(92px, 14vh, 128px);
  z-index: 40;
  display: flex; flex-direction: column; gap: 8px;
}
.solar-zoom__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 24px; line-height: 1;
  color: var(--ink);
  background: rgba(6, 3, 5, 0.5);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.1s;
}
.solar-zoom__btn:hover { border-color: var(--red); color: var(--red); background: rgba(6, 3, 5, 0.72); }
.solar-zoom__btn:active { transform: scale(0.92); }
.solar-zoom__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 900px) {
  .solar-zoom { bottom: clamp(84px, 12vh, 110px); }
  .solar-zoom__btn { width: 42px; height: 42px; font-size: 22px; }
}

/* =========================================================
   3D MODEL STAGE — Three.js canvas on the About page
   ========================================================= */
.model-stage {
  position: relative;
  margin: clamp(40px, 6vh, 80px) 0 clamp(60px, 9vh, 120px);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(var(--red-glow), 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(var(--red-glow), 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(6, 3, 5, 0.85) 0%, rgba(12, 6, 8, 0.95) 100%);
  overflow: hidden;
  isolation: isolate;
  cursor: grab;
}
.model-stage:active { cursor: grabbing; }
.model-stage__inner {
  position: relative;
  height: clamp(420px, 70vh, 700px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 36px);
}
.model-stage__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}
.model-stage__hud {
  position: absolute;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-dim);
  padding: clamp(16px, 2.5vw, 28px);
  z-index: 2;
  pointer-events: none;
  text-transform: uppercase;
}
.model-stage__hud em { color: var(--red); font-style: normal; }
.model-stage__hud--tl { top: 0; left: 0; }
.model-stage__hud--tr { top: 0; right: 0; text-align: right; align-items: flex-end; }

.model-stage__head {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  text-transform: uppercase;
  z-index: 2; position: relative;
}
.model-stage__head .num { color: var(--red); }

.model-stage__loader {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(6, 3, 5, 0.85);
  backdrop-filter: blur(6px);
  z-index: 3;
  opacity: 1;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
}
.model-stage.is-loaded .model-stage__loader { opacity: 0; }
.model-stage__loader > * { display: block; text-align: center; }
.model-stage__loader .mono {
  color: var(--red);
  letter-spacing: 0.22em;
  font-size: 11px;
  margin-bottom: 14px;
}
.model-stage__loader-bar {
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  margin: 0 auto;
}
.model-stage__loader-bar span {
  display: block;
  width: 0%; height: 100%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(var(--red-glow), 0.8);
  transition: width 0.2s linear;
}

.model-stage__legend {
  display: flex; gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  z-index: 2; position: relative;
}

@media (max-width: 900px) {
  .model-stage__hud--tl, .model-stage__hud--tr { font-size: 10px; }
  .model-stage__legend { font-size: 10px; gap: 12px; }
}

/* =========================================================
   SUBPAGES — shared layout for about / team / partner / kontakt
   ========================================================= */
.page {
  padding: calc(80px + clamp(40px, 8vh, 100px)) clamp(20px, 4vw, 48px) clamp(60px, 10vh, 140px);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  /* Stop wide grids/maps from creating horizontal scrollbars */
  overflow: hidden;
}
.page-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(40px, 6vh, 80px);
  margin-bottom: clamp(40px, 6vh, 80px);
  position: relative;
}
.page-hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8.5vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 8px 0 16px;
  /* Long German words like ÜBERSCHRIFT shouldn't burst the page */
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-hero__title em {
  font-family: var(--font-display-2);
  font-style: italic;
  color: var(--red);
  text-shadow: 0 0 36px rgba(var(--red-glow), 0.6);
}
.page-hero__lead {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 600px;
}
/* Defensive legibility: the solar background is now brighter/foreground,
   so bare text over the canvas gets a soft dark halo to guarantee contrast
   even when a glowing planet drifts directly behind it. */
.page-hero__lead,
.page-section > p,
.page-section > h2,
.page-section__head,
.page-grid__meta dd {
  text-shadow: 0 1px 12px rgba(6, 3, 5, 0.7);
}
.page-hero__lead em { color: var(--red); font-style: italic; }

/* Article block: one column of content with optional sidebar */
.page-section {
  margin-bottom: clamp(60px, 9vh, 120px);
}
.page-section__head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-dim);
  text-transform: uppercase;
}
.page-section__head .num { color: var(--red); }
.page-section__head .line {
  flex: 1; height: 1px; background: var(--line);
}
.page-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 18px;
}
.page-section h2 em {
  font-family: var(--font-display-2);
  font-style: italic;
  color: var(--red);
}

/* ---------------------------------------------------------------
   Akzentwörter (Big Shoulders Italic) optisch auf Anton-Höhe bringen.
   Big Shoulders rendert bei gleicher font-size kleiner als Anton →
   leicht hochskalieren, Grundlinie halten, Slant rechts ausgleichen,
   damit "EIN", "VIER", "wirken", "DEINS", "ARBEITEN" etc. genauso groß
   wirken wie der Rest der Headline und nicht ins Folgewort kleben.
   (Hero-Titel bewusst ausgenommen — der ist millimetergenau gesetzt.)
   --------------------------------------------------------------- */
.manifesto__text h2 em,
.services__title em,
.process__title em,
.contact__title em,
.page-section h2 em,
.page-hero__title em,
.work__title em {
  font-size: 1.12em;
  line-height: 1;
  padding-right: 0.06em;
}
/* Umlaut-Punkte (Ä/Ö/Ü) in mehrzeiligen Display-Headlines brauchen Luft
   nach oben, sonst schneiden sie in die Zeile darüber (VERLÄSSLICH,
   UNÜBERSEHBAR). Etwas mehr Zeilenhöhe gibt gleichmäßige Abstände. */
.manifesto__text h2 { line-height: 1.16; }   /* room so Ä/Ö dots clear the line above (VERLÄSSLICH) */
.page-section h2 { line-height: 1.14; }   /* room so Ü/Ä dots clear the line above (UNÜBERSEHBAR) */
/* Akzent auf der rot getönten Manifesto-Bühne sichtbar machen (Rot auf Rot). */
.manifesto__text h2 em {
  text-shadow: 0 0 26px rgba(var(--red-glow), 0.95), 0 2px 22px rgba(0, 0, 0, 0.55);
}
.page-section p {
  color: var(--ink-dim);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 14px;
}
.page-section p em { color: var(--red); font-style: italic; }
.page-section p strong { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------
   Typografischer Feinschliff — saubere Umbrüche site-weit.
   `pretty` verhindert einzelne Wort-Reste auf der letzten Zeile
   (Schusterjunge); `balance` verteilt mehrzeilige Überschriften
   gleichmäßig. Bewusst NICHT auf die animierten Homepage-Headlines
   (.hero__title / .reveal-text / .phase__title) — die haben fixe
   Zeilen-Spans/Glitch-Spiegel und dürfen nicht umbrochen werden.
   --------------------------------------------------------------- */
p { text-wrap: pretty; }
.page-hero__title,
.member__name,
.case-feature__name,
.legal__hero h1 { text-wrap: balance; }

/* =========================================================
   TEAM SHOWREEL — full-bleed sticky scroll-scrub video.
   Driven by the SAME proxyScrub() engine as the homepage bg
   (main.js). Native <video> is always visible (full quality
   at rest); the <canvas> proxy shows only during scroll.
   ========================================================= */
.team-reel {
  position: relative;
  height: 300vh;                 /* scroll distance that drives the scrub */
  margin: clamp(48px, 9vh, 120px) 0;
}
.team-reel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;                /* iOS: account for browser chrome */
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
}
.team-reel__media { position: absolute; inset: 0; }
/* CRITICAL: filter + transform MUST be byte-identical on video and
   canvas, or the proxy↔native handoff visibly pops (CLAUDE.md §13.3). */
.team-reel__video,
.team-reel__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.12) saturate(1.32) brightness(1.0);
  transform: scale(1.05);
}
.team-reel__video { will-change: transform; }
.team-reel__canvas {
  opacity: 0;
  transition: opacity 0.22s linear;
  will-change: opacity;
}
.team-reel__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,3,5,0.5) 0%, transparent 24%, transparent 54%, rgba(6,3,5,0.85) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(255,31,61,0.15), transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.team-reel__corner {
  position: absolute;
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: clamp(18px, 3vw, 44px);
  z-index: 3; pointer-events: none;
}
.team-reel__corner em { color: var(--red); font-style: normal; }
.team-reel__corner--tl { top: 0; left: 0; }
.team-reel__corner--br { bottom: 0; right: 0; text-align: right; align-items: flex-end; }
.team-reel__content {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(40px, 8vh, 96px);
  z-index: 3;
  max-width: min(760px, 86vw);
  pointer-events: none;
}
.team-reel__kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red);
  display: inline-block; margin-bottom: 14px;
}
.team-reel__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  text-shadow: 0 4px 44px rgba(6, 3, 5, 0.55);
}
.team-reel__title em {
  font-family: var(--font-display-2);
  font-style: italic;
  color: var(--red);
  text-shadow: 0 0 42px rgba(var(--red-glow), 0.55);
}
.team-reel__cap {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 18px;
}
/* Mobile (CLAUDE.md §5.6): no scrub — a plain looping banner, no tall
   sticky scroll region (the JS plays team-reel-mobile.mp4 on loop). */
@media (max-width: 900px) {
  .team-reel { height: auto; margin: 48px 0; }
  .team-reel__sticky { position: relative; height: 78vh; min-height: 420px; }
  .team-reel__title { font-size: clamp(34px, 11vw, 62px); }
  .team-reel__content { left: 20px; right: 20px; bottom: 30px; }
  .team-reel__corner { font-size: 9.5px; padding: 16px; }
}
/* Reduced motion: collapse the tall scrub region into a static frame */
@media (prefers-reduced-motion: reduce) {
  .team-reel { height: auto; }
  .team-reel__sticky { position: relative; height: 80vh; }
}

/* Two-column layout */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
}
.page-grid__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.page-grid__meta dt {
  color: var(--red);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.page-grid__meta dd { margin-bottom: 18px; }

/* TEAM cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.team-card {
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out);
}
.team-card::before, .team-card::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  border-color: var(--red);
}
.team-card::before {
  top: 0; left: 0;
  border-top: 1px solid; border-left: 1px solid;
}
.team-card::after {
  bottom: 0; right: 0;
  border-bottom: 1px solid; border-right: 1px solid;
}
.team-card:hover {
  border-color: rgba(var(--red-glow), 0.5);
  background: rgba(var(--red-glow), 0.05);
  transform: translateY(-4px);
}
.team-card__role {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}
.team-card__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 12px;
}
.team-card__bio {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.team-card__skills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.team-card__skills span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.team-card--open {
  border-style: dashed;
  border-color: rgba(var(--red-glow), 0.35);
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  min-height: 220px;
}
.team-card--open .team-card__name { color: var(--ink-dim); }

/* PARTNER list */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.partner-card {
  display: flex; flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 22px 20px;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.partner-card:hover {
  border-color: rgba(var(--red-glow), 0.5);
  background: rgba(var(--red-glow), 0.04);
}
.partner-card__cat {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.partner-card__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 400;
}
.partner-card__desc {
  color: var(--ink-dim);
  font-size: 13px; line-height: 1.5;
  margin-top: 8px;
}

/* KONTAKT page map */
.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 380px;
  background: var(--bg-2);
}
.map-wrap::before, .map-wrap::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border-color: var(--red);
  z-index: 2;
  pointer-events: none;
}
.map-wrap::before {
  top: -1px; left: -1px;
  border-top: 1px solid; border-left: 1px solid;
}
.map-wrap::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid; border-right: 1px solid;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  /* Recolor Google's bright map to fit the dark site without
     needing a paid API key */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.9) contrast(1.05);
}
.map-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
}
.map-meta dt {
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.map-meta dd {
  color: var(--ink);
  line-height: 1.5;
}

/* Remote-first telemetry grid (replaces the kontakt map — no address shown) */
.ops-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px 24px; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
}
.ops-grid dt { color: var(--red); text-transform: uppercase; margin-bottom: 6px; }
.ops-grid dd { color: var(--ink); line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .ops-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ops-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .map-meta { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
}

/* =========================================================
   COOKIE CONSENT BAR (JS-injected on first visit, all pages)
   ========================================================= */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(8, 5, 7, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 16px clamp(16px, 4vw, 40px);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}
.cookie-bar.is-in { transform: translateY(0); }
.cookie-bar__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-bar__text {
  font-family: var(--font-body);
  font-size: 13px; line-height: 1.5; color: var(--ink-dim);
  max-width: 72ch; margin: 0;
}
.cookie-bar__text a { color: var(--red); border-bottom: 1px solid rgba(var(--red-glow), 0.5); }
.cookie-bar__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-bar__btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 20px; cursor: pointer;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  transition: border-color 0.3s, background 0.3s, color 0.3s, filter 0.3s;
}
.cookie-bar__btn--ghost:hover { border-color: var(--ink-dim); }
.cookie-bar__btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.cookie-bar__btn--solid:hover { filter: brightness(1.12); }
@media (max-width: 600px) {
  .cookie-bar__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__btn { flex: 1; }
}

/* Consent placeholder over a gated embed (Google Maps on kontakt) */
.map-consent {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 28px;
  background: rgba(8, 5, 7, 0.92);
}
.map-consent p {
  font-family: var(--font-body);
  font-size: 13px; line-height: 1.5; color: var(--ink-dim); max-width: 38ch; margin: 0;
}

/* =========================================================
   TEAM MEMBER INTRO — photo left, text right (stacks on mobile)
   ========================================================= */
.member {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 56% at 50% 32%, rgba(var(--red-glow), 0.16), transparent 70%),
    linear-gradient(160deg, var(--bg-2), var(--bg));
  display: flex; align-items: center; justify-content: center;
}
.member__photo img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.member__photo-ph {
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 116px); letter-spacing: 0.04em;
  color: rgba(var(--red-glow), 0.45);
}
.member__role {
  display: block; color: var(--red);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.member__name {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 22px;
}
.member__bio p { color: var(--ink-dim); max-width: 60ch; margin-bottom: 14px; }
.member__skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.member__skills span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); padding: 7px 12px;
}
@media (max-width: 760px) {
  .member { grid-template-columns: 1fr; gap: 22px; }
  .member__photo { max-width: 300px; }
}

/* =========================================================
   WHATSAPP FLOATING BUTTON (JS-injected, all pages) + mobile-nav social
   ========================================================= */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 1150;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.3s, visibility 0.3s;
}
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5); }
.wa-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.cookie-open .wa-fab,
body.nav-open .wa-fab { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(120%); }
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

.mobile-nav__social { display: flex; gap: 14px; margin-top: 16px; }
.mobile-nav__social a {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.mobile-nav__social a svg { width: 22px; height: 22px; fill: currentColor; }
.mobile-nav__social a:hover { border-color: var(--red); color: var(--red); }
.mobile-nav__social a.is-wa:hover { border-color: #25d366; color: #25d366; }
.mobile-nav__social a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mobile-nav__social a.is-wa:focus-visible { outline-color: #25d366; }
