/* ============================================================
   ValuGrowthMedia — Editorial Design System
   Award-Richtung: Papier & Tinte, Klammer-Syntax, Grotesk +
   Serif-Italic, Theme-Morphing (hell ⇄ dunkel beim Scrollen),
   horizontale Scroll-Bühne, Riesen-Typografie.
   ============================================================ */

/* ---------- Selbst gehostete Fonts (keine externen Requests) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --paper: #edeae2;
  --ink: #111110;
  --acid: #c8f04c;

  /* Aktive Theme-Werte (Standard: hell) */
  --bg: var(--paper);
  --text: var(--ink);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --shell: 1280px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --section-gap: clamp(6.5rem, 12vw, 11rem);
}

body.theme-dark {
  --bg: #101010;
  --text: #edeae2;
}

/* Abgeleitete Töne — folgen currentColor, morphen also mit */
:root {
  --line: color-mix(in srgb, currentColor 14%, transparent);
  --line-strong: color-mix(in srgb, currentColor 30%, transparent);
  --mute: color-mix(in srgb, currentColor 62%, transparent);
  --dim: color-mix(in srgb, currentColor 38%, transparent);
  --card: color-mix(in srgb, currentColor 4%, transparent);
  --card-hover: color-mix(in srgb, currentColor 7%, transparent);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
}

h1, h2, h3, h4, p, dl, dd, dt, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
sup { font-size: 0.55em; }

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 500;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 14px; }

/* Feines Filmkorn */
html::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 240;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Vertikale Rasterlinien */
.gridlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-evenly;
}
.gridlines i {
  width: 1px;
  height: 100%;
  background: color-mix(in srgb, currentColor 5%, transparent);
}

/* ---------- Layout & Typo-Bausteine ---------- */

.shell {
  width: min(var(--shell), 100% - clamp(2.5rem, 7vw, 5rem));
  margin-inline: auto;
  position: relative;
}

main > section { padding-block: var(--section-gap); }
main > section.hero,
main > section.services { padding-block: 0; }

/* Klammer-Mikro-Label — die Signatur-Syntax */
.micro {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.micro-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Serif-Italic-Akzente */
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.section-title em,
.hero-tag em,
.statement em,
.footer-cta-text em,
h3 em {
  font-size: 1.06em;
  line-height: 0;
}

.section-head { max-width: 52rem; position: relative; }

.section-kicker { margin-bottom: 1.4rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  text-transform: uppercase;
}

.section-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.03rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--mute);
  max-width: 36rem;
}

/* Editorial-Regel über jedem Section-Kopf */
.section-head {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

/* Statement — großes Editorial-Set mit Inline-Video-Chips */
.statement {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: uppercase;
}
.statement .s2 { display: block; }

.statement-chip {
  display: inline-block;
  width: 2.4em;
  height: 0.82em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.08em;
  margin: 0 0.12em;
  border: 1px solid var(--line);
}
.statement-chip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.js .statement .fw {
  color: color-mix(in srgb, currentColor 16%, transparent);
  transition: color 0.35s linear;
}
html.js .statement .fw.is-on { color: var(--text); }
html.js .statement .fw.fw-dim.is-on { color: var(--dim); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.8em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-primary svg { width: 1.1em; height: 1.1em; }

.btn-ghost {
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--card-hover);
  border-color: currentColor;
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: background-color 0.6s var(--ease), color 0.9s var(--ease),
    border-color 0.6s var(--ease), transform 0.55s var(--ease);
}
.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.site-nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  width: min(var(--shell), 100% - clamp(2.5rem, 7vw, 5rem));
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-brand span { color: var(--dim); }
.nav-brand sup { color: var(--dim); }

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.2rem);
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.3s var(--ease);
}
.nav-links a sup {
  margin-right: 0.35em;
  color: var(--dim);
}
.nav-links a:hover,
.nav-links a.is-current { color: var(--text); }

.nav-side {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav-lang span { color: var(--dim); }
.nav-lang a { color: var(--dim); transition: color 0.3s var(--ease); }
.nav-lang a:hover { color: var(--text); }
.nav-lang a.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  padding: 0.5em 0.8em;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--acid);
  color: var(--ink);
}

.nav-burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.nav-burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.nav-burger span:first-child { transform: translate(-50%, calc(-50% - 3px)); }
.nav-burger span:last-child { transform: translate(-50%, calc(-50% + 3px)); }
.nav-burger.is-open span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobiles Menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: 6rem clamp(1.5rem, 6vw, 3rem) 3rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mobile-menu-links a sup {
  font-size: 0.32em;
  margin-right: 0.6em;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.mobile-menu.is-open .mobile-menu-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: 0.26s; }

.mobile-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

body.menu-open { overflow: hidden; }

/* ---------- Hero (Poster-Komposition) ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero .shell {
  width: min(1440px, 100% - clamp(2rem, 5vw, 4rem));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(64px + clamp(1rem, 3vh, 2.2rem));
  padding-bottom: clamp(1.4rem, 4vh, 2.4rem);
}

.hero-top {
  padding-bottom: clamp(1rem, 2.6vh, 1.8rem);
  border-bottom: 1px solid var(--line);
}

/* Riesige Wortmarke — per JS exakt auf Breite gesetzt */
.giant {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 12.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-block: auto;
  padding-block: clamp(1rem, 3vh, 2rem);
}
.giant-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.giant-outline {
  color: transparent;
  -webkit-text-stroke: 0.016em;
  /* stroke folgt der Theme-Textfarbe */
  -webkit-text-stroke-color: var(--text);
}

.giant-row-media { gap: clamp(0.8rem, 2.4vw, 2.2rem); }

/* Video-Streifen füllt den Rest der MEDIA-Zeile */
.giant-strip {
  flex: 1 1 auto;
  min-width: 60px;
  height: 0.64em;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.giant-strip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buchstaben-Animation */
html.js .giant .l,
html.js .preloader-word .l,
html.js .footer-giant .l {
  display: inline-block;
}
html.js .giant .l {
  transform: translateY(118%) rotate(6deg);
  transition: transform 1s var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 34ms + 100ms);
}
html.booted .giant .l { transform: none; }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: clamp(1rem, 2.6vh, 1.8rem);
  border-top: 1px solid var(--line);
}

.hero-tag {
  max-width: 30rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--mute);
}
.hero-tag em { color: var(--text); }

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Buchstaben-Reveal der Wortmarke */
.giant-line {
  display: inline-flex;
  overflow: hidden;
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
}

/* ---------- Showreel ---------- */

.showreel { padding-block: clamp(3rem, 6vw, 5rem) var(--section-gap); }

.showreel-head {
  margin-bottom: 1.1rem;
}

.showreel-frame {
  position: relative;
  width: min(1440px, 100% - clamp(2rem, 5vw, 4rem));
  margin-inline: auto;
  aspect-ratio: 16 / 8.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.showreel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Transform steuert das Scroll-Parallax in premium.js */
  transform: scale(1.14);
  will-change: transform;
}

/* ---------- Marquee (rotiertes Statement-Band) ---------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 106vw;
  margin-left: -3vw;
  transform: rotate(-1.4deg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background-color 0.9s var(--ease);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.8rem);
  width: max-content;
  padding: clamp(1.1rem, 2.2vw, 1.7rem) 0;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span.si {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
}
.marquee-track span.ol {
  color: transparent;
  -webkit-text-stroke: 0.015em;
  -webkit-text-stroke-color: var(--text);
}
.marquee-track i {
  font-style: normal;
  background: var(--acid);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  flex: 0 0 auto;
}
.mq-chip {
  width: clamp(4.6rem, 8vw, 7.2rem);
  aspect-ratio: 16 / 9;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.mq-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zone: zwei Bänder kreuzen sich als grafischer Scroll-Stopper */
.marquee-zone {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}
.marquee-ink {
  position: relative;
  z-index: 2;
  transform: rotate(-1.7deg);
  background: #111110;
  color: #edeae2;
  border-color: transparent;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.marquee-acid {
  z-index: 1;
  transform: rotate(1.3deg);
  background: var(--acid);
  color: #111110;
  border-color: transparent;
  margin-top: clamp(-4.5rem, -3.5vw, -1.5rem);
}
.marquee-ink .marquee-track i { background: var(--acid); }
.marquee-acid .marquee-track i { background: #111110; }
.marquee-ink .ol,
.marquee-acid .ol { -webkit-text-stroke-color: currentColor; }
.marquee-ink .mq-chip { border-color: rgba(237, 234, 226, 0.28); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { transform: none !important; }
}

/* ---------- Manifest ---------- */

.manifest-label {
  margin-bottom: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.manifest .statement { margin-bottom: clamp(3.5rem, 8vw, 6rem); }

/* Prinzipien: geschichtetes Karten-Deck (Papier → Tinte → Acid) */
.principles-stack { position: relative; }

.principle-card { position: sticky; }
.principle-card:nth-child(1) { top: calc(64px + 1.5rem); }
.principle-card:nth-child(2) { top: calc(64px + 2.4rem); }
.principle-card:nth-child(3) { top: calc(64px + 3.3rem); }
.principle-card + .principle-card { margin-top: clamp(1.25rem, 3vh, 2rem); }

.pcard-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  min-height: clamp(320px, 46vh, 430px);
  padding: clamp(1.6rem, 3.2vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transform-origin: 50% 0;
  will-change: transform;
}

/* Opake Markenflächen — nötig fürs saubere Übereinanderschichten */
.pcard-paper { background: #e6e2d7; color: var(--ink); }
.pcard-ink {
  background: #131312;
  color: var(--paper);
  border-color: rgba(237, 234, 226, 0.16);
}
.pcard-acid { background: var(--acid); color: var(--ink); border-color: transparent; }

.pcard-num {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke-width: 1.5px;
  user-select: none;
}
.pcard-paper .pcard-num { -webkit-text-stroke-color: #111110; }
.pcard-ink .pcard-num { -webkit-text-stroke-color: #edeae2; }
.pcard-acid .pcard-num { color: #111110; -webkit-text-stroke-width: 0; }

.pcard-kicker { display: block; margin-bottom: 1rem; }

.pcard-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}
.pcard-copy p {
  margin-top: 0.9rem;
  max-width: 30rem;
  color: var(--mute);
  line-height: 1.65;
}

/* Video-Kapsel — die Signatur-Pillenform des Systems */
.pcard-media {
  width: min(100%, 270px);
  aspect-ratio: 4 / 5;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  justify-self: end;
}
.pcard-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principle-index { display: block; margin-bottom: 1.2rem; }

.principle h3,
.engine-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.principle p,
.engine-card p {
  color: var(--mute);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 24rem;
}

/* ---------- Prozess ---------- */

.process .section-head { margin-bottom: clamp(3rem, 7vw, 5rem); }

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.process-media {
  position: sticky;
  top: 100px;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.process-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}
.process-media img.is-active { opacity: 1; transform: scale(1); }

/* Live-Badge auf der Bühne: [01 / 04] — Analyse (per JS befüllt) */
.process-stage-badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.85rem;
  z-index: 2;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: rgba(17, 17, 16, 0.55);
  color: #edeae2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.process-step {
  display: flex;
  gap: 1.75rem;
  padding: clamp(1.75rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }

.process-num {
  padding-top: 0.5rem;
  min-width: 3rem;
  color: var(--dim);
  transition: color 0.5s var(--ease);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.5s var(--ease);
}
.process-step p {
  margin-top: 0.5rem;
  color: var(--dim);
  line-height: 1.65;
  max-width: 26rem;
  transition: color 0.5s var(--ease);
}

.process-step.is-active .process-num { color: var(--text); }
.process-step.is-active h3 { color: var(--text); }
.process-step.is-active p { color: var(--mute); }

.process-thumb { display: none; }

/* ---------- Leistungen: horizontale Bühne ---------- */

.hscroll { position: relative; }

.hscroll-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.8rem, 4vh, 3rem);
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vh, 6rem) clamp(2rem, 5vh, 3rem);
}

.hscroll-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.hscroll-head .section-title { max-width: 46rem; }
.hscroll-hint { flex: 0 0 auto; }

.hscroll-track {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding-left: max(calc((100vw - var(--shell)) / 2), 1.5rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  width: max-content;
  will-change: transform;
}

.hcard {
  flex: 0 0 auto;
  width: clamp(300px, 34vw, 480px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.hcard:hover { border-color: var(--line-strong); background: var(--card-hover); }

.hcard-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.hcard-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hcard:hover .hcard-media video { transform: scale(1.04); }

.hcard-body { padding: clamp(1.3rem, 2.2vw, 1.8rem); }
.hcard-body .micro { display: block; margin-bottom: 0.9rem; }
.hcard-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-transform: uppercase;
}
.hcard-body p {
  margin-top: 0.8rem;
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-tags {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.service-tags li {
  padding: 0.4em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.hcard-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
  min-height: 320px;
}
.hcard-cta .micro { color: color-mix(in srgb, #111110 60%, transparent); }
.hcard-cta strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}
.hcard-cta i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.hcard-cta:hover i { transform: translateX(10px); }

.hscroll-progress {
  width: min(var(--shell), 100% - clamp(2.5rem, 7vw, 5rem));
  margin-inline: auto;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.hscroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--acid);
}

/* ---------- Content Engine ---------- */

.engine .section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Die Maschine: dunkles Präzisions-Panel mit Modul-Tabs und Live-Werten */
.engine-machine {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #171716, #0f0f0e);
  color: var(--paper);
  border: 1px solid rgba(237, 234, 226, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(237, 234, 226, 0.07),
    0 28px 70px -24px rgba(17, 17, 16, 0.45);
}

.engine-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(237, 234, 226, 0.12);
}
.engine-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.7rem;
  padding: clamp(1.3rem, 2.4vw, 2rem);
  text-align: left;
  border-bottom: 1px solid rgba(237, 234, 226, 0.12);
  color: rgba(237, 234, 226, 0.38);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.engine-tab:last-child { border-bottom: 0; }
.engine-tab .micro { color: inherit; }
.engine-tab strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}
.engine-tab strong::after {
  content: "";
  width: 0.32em;
  height: 0.32em;
  border-radius: 999px;
  background: var(--acid);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.engine-tab:hover { color: rgba(237, 234, 226, 0.72); }
.engine-tab.is-active {
  color: #edeae2;
  background: rgba(237, 234, 226, 0.04);
  box-shadow: inset 3px 0 0 var(--acid);
}
.engine-tab.is-active strong::after {
  opacity: 1;
  transform: scale(1);
  animation: pulse 2.4s ease-in-out infinite;
}

.engine-stage {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
/* Technische Registermarke */
.engine-stage::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(237, 234, 226, 0.25);
  pointer-events: none;
}
.engine-panels { display: grid; }
.engine-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0.5s var(--ease);
}
.engine-panel.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.engine-desc {
  margin-top: 1rem;
  color: var(--mute);
  line-height: 1.65;
  max-width: 30rem;
}
.engine-panel .console-rows { margin-top: 1.4rem; }

/* Riesige Wasserzeichen-Ziffer — wechselt mit dem Modul */
.engine-panel { position: relative; }
.engine-num {
  position: absolute;
  right: -0.02em;
  top: -0.3em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 234, 226, 0.15);
  pointer-events: none;
  user-select: none;
}
/* Inhalt liegt über der Ziffer */
.engine-panel .console-head,
.engine-panel .engine-desc,
.engine-panel .console-rows {
  position: relative;
  z-index: 1;
}

/* Panel-Headline deutlich größer — das Panel ist die Bühne, nicht das Formular */
.engine-panel .console-head strong {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  margin-top: 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 22ch;
}

/* Sichtbarer Takt: Acid-Linie füllt sich unter dem aktiven Tab,
   solange die Maschine automatisch rotiert */
.engine-tab { position: relative; }
.engine-tab::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}
.engine-machine.is-auto .engine-tab.is-active::before {
  animation: tabTimer 4.2s linear forwards;
}
@keyframes tabTimer {
  to { transform: scaleX(1); }
}

.console-head .micro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.console-head .micro::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--acid);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.console-head strong {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.console-row + .console-row { margin-top: 1.2rem; }
.console-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.console-row-head span {
  font-size: 0.875rem;
  color: var(--mute);
}
.console-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--acid);
}
.console-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.console-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--acid);
  transition: width 1.4s var(--ease);
}
.engine-panel.is-active .console-track i { width: var(--fill); }

.console-note {
  margin-top: 0;
  font-size: 0.85rem;
  color: var(--dim);
}

/* Schnellbrief */
.brief {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  padding: clamp(1.5rem, 2.6vw, 2rem) clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.brief-intro .micro { margin-bottom: 0.5rem; display: block; }
.brief-intro strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brief-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brief-options button {
  padding: 0.6em 1.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.brief-options button:hover { color: var(--text); border-color: var(--line-strong); }
.brief-options button.is-active {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  font-weight: 600;
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.portfolio-meta {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.portfolio-count { font-variant-numeric: tabular-nums; }
.portfolio-meta strong {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.portfolio-meta p {
  margin-top: 0.6rem;
  color: var(--mute);
  line-height: 1.65;
  max-width: 26rem;
  min-height: 3.3em;
}

.portfolio-nav {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.portfolio-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.portfolio-arrow:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}
.portfolio-arrow svg { width: 19px; height: 19px; }
.portfolio-hint { margin-left: 0.6rem; }

.portfolio-stage {
  position: relative;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: stretch;
}

.portfolio-glow {
  position: absolute;
  inset: -12% -20%;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 42% 40%, color-mix(in srgb, var(--acid) 14%, transparent), transparent 70%),
    radial-gradient(40% 44% at 62% 66%, color-mix(in srgb, var(--acid) 7%, transparent), transparent 70%);
  pointer-events: none;
}

.portfolio-player {
  flex: 0 1 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.portfolio-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.portfolio-player.is-switching video {
  opacity: 0;
  transform: scale(1.05);
}

.portfolio-thumbs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}
.portfolio-thumbs button {
  position: relative;
  width: 64px;
  aspect-ratio: 9 / 14;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0.45;
  transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease);
}
.portfolio-thumbs button:hover { opacity: 0.8; }
.portfolio-thumbs button.is-active {
  opacity: 1;
  border-color: var(--acid);
}
.portfolio-thumbs video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-thumbs span {
  position: absolute;
  left: 6px;
  bottom: 5px;
  color: rgba(237, 234, 226, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Stats ---------- */

.stats .section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Messuhren im Instrumenten-Chassis: gerahmte Zeile mit Hairline-Trennern,
   270°-Tachoskalen, Zahlen zählen hoch und „stempeln" mit einem Pop ein */
.stats-dials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* solide Gerätefläche — Seitenraster scheint nicht mehr durch */
  background: var(--bg);
}

.dial {
  position: relative;
  text-align: center;
  padding: clamp(1.7rem, 2.8vw, 2.6rem) clamp(1rem, 2vw, 1.5rem);
  transition: background 0.4s var(--ease);
}
.dial:hover { background: var(--card); }
.dial + .dial { border-left: 1px solid var(--line); }

/* Technische Marken in den Zellen */
.dial-index {
  position: absolute;
  top: 0.95rem;
  left: 1.1rem;
  color: var(--dim);
}
.dial::after {
  content: "+";
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--dim);
  pointer-events: none;
}

.dial-face {
  position: relative;
  width: clamp(122px, 11.5vw, 168px);
  aspect-ratio: 1;
  margin-inline: auto;
}
/* 270°-Skala: Lücke unten wie beim Tacho */
.dial-face svg {
  width: 100%;
  height: 100%;
  transform: rotate(135deg);
}
.dial-ticks {
  fill: none;
  stroke: currentColor;
  opacity: 0.16;
  stroke-width: 3;
  stroke-dasharray: 1 5.9;
}
.dial-track {
  fill: none;
  stroke: color-mix(in srgb, currentColor 13%, transparent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 212.06 282.74;
}
.dial-arc {
  fill: none;
  stroke: var(--acid);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 212.06 282.74;
  stroke-dashoffset: 212.06;
  transition: stroke-dashoffset 1.7s var(--ease) 0.25s;
}
html.js .dial.is-in .dial-arc {
  stroke-dashoffset: calc(212.06 - 212.06 * var(--sweep, 100) / 100);
}

/* Markierungspunkt: fährt auf der Bogenspitze mit (unsichtbarer Dreharm,
   Punkt an der Spitze — exakt auf dem Skalenradius, kollidiert nie mit der Zahl) */
.dial-needle {
  position: absolute;
  left: calc(50% - 5px);
  bottom: 50%;
  width: 10px;
  height: 37.5%;
  transform-origin: 50% 100%;
  transform: rotate(-135deg);
  transition: transform 1.7s var(--ease) 0.25s;
  pointer-events: none;
}
.dial-needle::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
}
html.js .dial.is-in .dial-needle {
  transform: rotate(calc(-135deg + 2.7deg * var(--sweep, 100)));
}
.dial:hover .dial-arc {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--acid) 75%, transparent));
}

.dial dt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.85vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  transition: color 0.5s var(--ease);
}
.dial.is-stamped dt {
  color: var(--text);
  animation: dialPop 0.5s var(--ease);
}
@keyframes dialPop {
  40% { transform: scale(1.14); }
}

.dial dd {
  margin: 1rem auto 0;
  max-width: 15rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--mute);
}
.dial dd em { color: var(--text); font-size: 1.1em; }
.dial dd .micro {
  display: block;
  margin-top: 0.5rem;
  color: var(--dim);
}

/* Typenschild am Chassis-Boden — mit live tickender Uhrzeit */
.dials-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--line);
}
.dials-foot .micro { color: var(--dim); }
.dials-foot [data-local-time] {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: start;
}

.contact-perks {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.3rem;
}
.contact-perks > div {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.contact-perks dt {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 3.8rem;
  text-transform: uppercase;
}
.contact-perks dd { margin: 0; color: var(--mute); }

.contact-card {
  padding: clamp(1.75rem, 3.2vw, 2.6rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.5rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, currentColor 3%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acid) 45%, transparent);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23888888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field select:invalid { color: var(--dim); }
.field select option { background: var(--bg); color: var(--text); }

.field textarea { min-height: 132px; resize: vertical; }

.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #d64545;
}
.field.is-invalid .field-error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d64545; }

.form-hidden { display: none; }

.form-submit {
  width: 100%;
  margin-top: 0.4rem;
  padding-block: 1.1em;
}
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--dim);
}
.form-note a {
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.form-note a:hover { color: var(--text); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.1rem;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.form-alt a {
  padding: 0.85em 1em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.form-alt a:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(4rem, 9vw, 7rem) 0 2rem;
}

.footer-cta {
  display: block;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.footer-cta .micro { display: block; margin-bottom: 1rem; }
.footer-cta-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.footer-cta-text i {
  font-style: normal;
  display: inline-block;
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}
.footer-cta:hover .footer-cta-text i {
  transform: translateX(0.18em);
  color: var(--acid);
}
.footer-cta:hover .footer-cta-text em { color: var(--acid); }
.footer-cta-text em { transition: color 0.5s var(--ease); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer-col-label { display: block; margin-bottom: 1rem; }
.footer-col p {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 20rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  font-size: 0.95rem;
  color: var(--mute);
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-links a i {
  font-style: normal;
  font-size: 0.8em;
  color: var(--dim);
}

.footer-time {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mute);
}
.footer-time span { color: var(--text); font-variant-numeric: tabular-nums; }

.footer-giant {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8.6vw, 8.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, currentColor 22%, transparent);
  user-select: none;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom em { color: var(--text); }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.85s var(--ease-expo);
}
.preloader.is-done { transform: translateY(-101%); }

.preloader-word {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}
html.js .preloader-word .l {
  transform: translateY(110%);
  animation: plIn 0.9s var(--ease-expo) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}
@keyframes plIn { to { transform: none; } }

.preloader-foot {
  position: absolute;
  left: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem);
  bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: color-mix(in srgb, #111110 62%, transparent);
}
.preloader-foot .micro { color: inherit; }

.preloader.is-done .preloader-word,
.preloader.is-done .preloader-foot {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

body.is-loading { overflow: hidden; }

/* ---------- Rechtsseiten ---------- */

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(7rem, 14vh, 9rem) clamp(1.5rem, 5vw, 3rem) clamp(5rem, 10vh, 7rem);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 2.5rem 0 0.9rem;
}
.legal p {
  color: var(--mute);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.3s var(--ease);
}
.legal .back-link:hover { color: var(--text); }

/* ---------- Custom Cursor ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 320;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--acid);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  mix-blend-mode: difference;
  color: #fff;
  display: grid;
  place-items: center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease),
    background 0.3s var(--ease);
}
.cursor-ring .cursor-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.cursor-ring.is-hover { width: 64px; height: 64px; }
.cursor-ring.has-label {
  width: 84px;
  height: 84px;
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  color: #000;
}
.cursor-ring.has-label .cursor-label { opacity: 1; }
.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Reveal Motion ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .giant .l { transform: none; }
  html.js .footer-giant .l { transform: none; }
  html.js .section-title.is-split .wi { transform: none; }
}

/* ---------- Responsive ---------- */

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

  /* Prozess: Bild-Bühne bleibt oben kleben und crossfadet pro Schritt —
     die Desktop-Signatur, übersetzt auf Touch */
  .process-media {
    display: block;
    position: sticky;
    top: calc(64px + 0.75rem);
    z-index: 5;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
  }
  .process-step { position: relative; padding-right: 0; }
  .process-thumb { display: none; }

  /* Schritt-Nummern als Chips; der aktive springt auf Acid */
  .process-num {
    min-width: 0;
    height: fit-content;
    padding: 0.45em 0.8em;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color 0.4s var(--ease), background 0.4s var(--ease),
      border-color 0.4s var(--ease);
  }
  .process-step.is-active .process-num {
    background: var(--acid);
    border-color: var(--acid);
    color: #111110;
  }

  /* Horizontale Bühne → natives Swipe-Karussell (Touch-Signatur) */
  .hscroll-sticky {
    position: static;
    min-height: 0;
    overflow: visible;
    padding-block: var(--section-gap);
  }
  .hscroll-track {
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 1rem;
    /* So viel Rand, dass jede Karte — auch die erste und letzte —
       exakt mittig einrasten kann */
    padding-inline: calc((100vw - min(80vw, 380px)) / 2);
    transform: none !important;
  }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hcard {
    width: min(80vw, 380px);
    max-width: none;
    flex: 0 0 auto;
    margin-inline: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always; /* genau eine Karte pro Wisch */
  }
  .hcard-cta { min-height: 0; align-self: stretch; }

  /* Aktive Karte im Fokus (per JS gesetzt) — nur wenn bereit, sonst 1:1 */
  .hscroll-track.is-ready .hcard {
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease),
      border-color 0.4s var(--ease), background 0.4s var(--ease);
    transform: scale(0.95);
    opacity: 0.6;
  }
  .hscroll-track.is-ready .hcard.is-focus {
    transform: scale(1);
    opacity: 1;
  }

  /* Fortschrittsbalken + Hinweis auf Mobile zeigen */
  .hscroll-progress { display: block; margin-top: 1.6rem; }
  .hscroll-hint { display: inline-block; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portfolio-stage { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-side > .nav-lang { display: none; }
  .nav-burger { display: block; }

  /* Engine-Maschine: Tabs als Reihe oben, Panel darunter */
  .engine-machine { grid-template-columns: 1fr; }
  .engine-tabs {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(237, 234, 226, 0.12);
  }
  .engine-tab {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.95rem 0.6rem;
    border-bottom: 0;
    border-right: 1px solid rgba(237, 234, 226, 0.12);
  }
  .engine-tab:last-child { border-right: 0; }
  .engine-tab strong { font-size: clamp(0.95rem, 3.4vw, 1.25rem); }

  /* Aktiver Tab mobil: Acid-Marker an der Oberkante (unten läuft der Timer) */
  .engine-tab.is-active { box-shadow: inset 0 3px 0 var(--acid); }
  .engine-num { font-size: 3.6rem; top: -0.22em; }

  /* Ergebnisse: Chassis als 2×2 */
  .stats-dials { grid-template-columns: repeat(2, 1fr); }
  .dial + .dial { border-left: 0; }
  .dial:nth-child(even) { border-left: 1px solid var(--line); }
  .dial:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dial-face { width: clamp(118px, 32vw, 145px); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

@media (max-width: 768px) {
  /* Karten-Deck: einspaltig, Video als breites Band unten */
  .pcard-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 1.1rem;
    align-items: start;
    padding: 1.4rem;
  }
  .pcard-num { font-size: clamp(3rem, 15vw, 4.5rem); }
  .pcard-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    justify-self: stretch;
  }
  .principle-card:nth-child(1) { top: calc(56px + 0.9rem); }
  .principle-card:nth-child(2) { top: calc(56px + 1.7rem); }
  .principle-card:nth-child(3) { top: calc(56px + 2.5rem); }

  .brief { flex-direction: column; align-items: stretch; }
  .brief .brief-cta { width: 100%; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .hero-top .micro:nth-child(3) { display: none; }
  .giant-row-media { gap: 0.7rem; }

  .showreel-frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 520px) {
  .section-title br { display: none; }

  /* Portfolio: Player mittig, Thumbnails als Reihe darunter — Daumen-Zone */
  .portfolio-stage { flex-direction: column; align-items: center; gap: 1rem; }
  .portfolio-player { flex: 0 0 auto; width: min(76vw, 320px); max-width: none; }
  .portfolio-thumbs {
    flex-direction: row;
    justify-content: center;
    gap: 0.7rem;
  }
  .portfolio-thumbs button { width: 56px; }

  .hero-ctas .btn { flex: 1 1 100%; }
  .form-alt { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   POLISH-LAYER — Preisreife Details
   ============================================================ */

/* Dünne Scrollbar in Markenfarben */
html {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, #808080 55%, transparent) transparent;
}
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, #808080 55%, transparent);
  border-radius: 999px;
}

/* Scroll-Fortschritt ganz oben */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 160;
  height: 2px;
  width: 0;
  background: var(--acid);
  pointer-events: none;
}

/* Masthead-Feinschliff */
.giant-row[data-fit] { white-space: nowrap; }

/* Nav-Links: Underline-Sweep */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons: Acid füllt von unten */
.btn-primary {
  background-color: var(--text);
  background-image: linear-gradient(var(--acid), var(--acid));
  background-repeat: no-repeat;
  background-size: 100% 0%;
  background-position: 0% 100%;
  transition: background-size 0.5s var(--ease-expo), color 0.35s var(--ease),
    transform 0.4s var(--ease);
}
.btn-primary:hover {
  background-color: var(--text);
  background-size: 100% 100%;
  color: var(--ink);
  transform: translateY(-2px);
}

/* Medien-Reveal: Vorhang von unten nach oben */
html.js .reveal-clip {
  clip-path: inset(100% 0 0 0 round var(--radius-lg));
  transition: clip-path 1.15s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal-clip.is-in {
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}

/* Editorial-Formularfelder: nur Grundlinie */
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.75rem 0;
  font-size: 1.05rem;
}
.field select {
  background-position: right 0.2rem center;
  padding-right: 2rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: currentColor;
  box-shadow: 0 1px 0 0 currentColor;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #d64545;
  box-shadow: 0 1px 0 0 #d64545;
}
.field textarea { min-height: 110px; }

/* Showreel: Timecode + sanfte Skalierung */
.showreel-frame { position: relative; transform-origin: center; }
.showreel-timecode {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  color: rgba(237, 234, 226, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.showreel-timecode b {
  color: #ff5b4a;
  font-weight: 400;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Footer-Wortmarke: steigt beim ersten Sichtkontakt, reagiert danach auf Hover */
.footer-giant { overflow: hidden; }
html.js .footer-giant .l {
  transform: translateY(112%);
  transition: transform 0.9s var(--ease-expo) calc(var(--i, 0) * 22ms),
    color 0.3s var(--ease);
}
html.js .footer-giant.is-in .l { transform: none; }
html.js .footer-giant.is-done .l {
  transition: transform 0.45s var(--ease), color 0.3s var(--ease);
}
.footer-giant .l:hover {
  transform: translateY(-9%) !important;
  color: var(--acid);
  -webkit-text-stroke-color: var(--acid);
}

/* Section-Titles: Wörter steigen aus einer Maske */
html.js .section-title.is-split .w {
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
/* Serif-Italic-Akzente: line-height 0 des em würde die Maske kollabieren;
   seitliche Luft fängt den Kursiv-Überhang ab */
html.js .section-title.is-split em .w {
  line-height: 0.96;
  padding-inline: 0.06em;
  margin-inline: -0.06em;
}
html.js .section-title.is-split .wi {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 0.95s var(--ease-expo) calc(var(--wi, 0) * 45ms);
}
html.js .section-title.is-in .wi { transform: none; }

/* Seiten-Übergang (Wipe beim Verlassen) */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 390;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-expo);
  pointer-events: none;
}
.page-wipe.is-active { transform: translateY(0); }

/* Kleinere Verfeinerungen */
.hero-badge svg { transition: opacity 0.3s var(--ease); }
.marquee-track { transform-origin: center; }
.statement em { text-transform: none; }
.hcard-media { position: relative; }

@media (max-width: 768px) {
  .showreel-timecode { display: none; }
}

/* ============================================================
   HANDY-FEINSCHLIFF — Mobile als Hauptfokus
   ============================================================ */

/* Kein Seitwärts-Scrollen; Anker springen nicht unter die Nav; ruhiges Touch */
html {
  overflow-x: clip;
  scroll-padding-top: 76px;
}
body { -webkit-tap-highlight-color: transparent; }

/* Tablet/Phone-Bereich: kompaktere Rhythmik + größere Tap-Ziele */
@media (max-width: 768px) {
  :root { --section-gap: clamp(4.25rem, 13vw, 6.5rem); }

  /* Fingerfreundliche Flächen (Apple/Material: ≥ 44–48px) */
  .btn { min-height: 52px; padding-block: 1.1em; }
  .form-alt a,
  .brief-options button,
  .service-tags li { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-links a { padding-block: 0.25rem; }
}

/* Echtes Handy (≤ 600px) */
@media (max-width: 600px) {
  /* Safe-Area für die fixe Navigation (Notch) */
  .site-nav { padding-top: env(safe-area-inset-top, 0px); }
  .nav-inner { height: 56px; }
  .nav-brand { font-size: 0.9rem; }
  .nav-burger { width: 46px; height: 46px; }

  /* Hero: Nav + Safe-Area einrechnen, Höhe fürs Mobil-Gefühl */
  .hero .shell {
    padding-top: calc(56px + env(safe-area-inset-top, 0px) + 0.75rem);
    min-height: 90svh;
  }
  .hero-top { gap: 0.6rem 1.2rem; }
  .hero-foot { gap: 1.4rem; padding-top: 1.4rem; }
  .hero-ctas { width: 100%; }
  .hero-tag { max-width: none; }

  /* Showreel: höheres Format, ausgewogener auf dem Handy */
  .showreel-frame { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }

  /* Statement: kleinere Video-Chips, damit der Satz ruhiger liest */
  .statement-chip { width: 1.9em; height: 0.72em; margin: 0 0.1em; }

  /* Marquee kompakter, Kreuzung enger */
  .marquee-ink { transform: rotate(-2.2deg); }
  .marquee-acid { transform: rotate(1.8deg); margin-top: -2rem; }
  .marquee-track { gap: 1.4rem; padding-block: 0.9rem; }

  /* Section-Köpfe: etwas Luft nach unten reduzieren */
  .section-head { padding-top: 1.1rem; }
  .process .section-head,
  .stats .section-head,
  .engine .section-head { margin-bottom: clamp(2rem, 8vw, 3rem); }

  /* Prozess-Bühne: unter der kompakten Mobil-Nav andocken */
  .process-media {
    top: calc(56px + env(safe-area-inset-top, 0px) + 0.6rem);
    margin-bottom: 1.1rem;
  }

  /* Karten-Innenabstand ruhiger */
  .contact-card { padding: 1.5rem 1.3rem; }

  /* Content-Engine: Panel-Headline mobil kompakter */
  .engine-panel .console-head strong { font-size: 1.4rem; }

  /* Mobile-Menü: Safe-Area oben und unten */
  .mobile-menu {
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Footer: Home-Indicator-Abstand + volle Breite der Wortmarke */
  .site-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
  .footer-cta-text { font-size: clamp(2.6rem, 15vw, 4rem); }
  .footer-giant { font-size: clamp(2rem, 11vw, 3rem); }
}

/* Sehr schmale Geräte (≤ 380px): Typo-Feinschliff */
@media (max-width: 380px) {
  .dial dt { font-size: 1.35rem; }
  .contact-perks dt { min-width: 3.2rem; }
}
