/* ════════════════════════════════════════════════════════════════════
   ATLAS Webcraft — Hero
   Brand: #0B0D14 navy + #22D3EE cyan + #A78BFA purple + #F472B6 pink
   ════════════════════════════════════════════════════════════════════ */

/* ── DEMO-EMBED-MODE — wenn Demo im iframe / autoscroll-Modus läuft,
   topbar + sub-pills + scroll-cue ausblenden für cleaner „Video"-Look ── */
html.demo-embedded .topbar,
html.demo-embedded .sub,
html.demo-embedded .scroll-cue {
  display: none !important;
}
/* Demo-Hero ohne topbar braucht weniger top-padding */
html.demo-embedded .hero { padding-top: 0 !important; }

/* ── EMBED-PERFORMANCE — Demo läuft im iframe (zweite scroll-context auf
   schmalem viewport, parallel zur Main-Page). CPU/GPU sparen, damit der
   CTA-Experience-Wassersog flüssig läuft.
   - BG-Video komplett aus (1 großes h264-stream weniger zu decoden)
   - BG-Glows mit kleinerem Blur (von 80px → 30px = ~7× weniger GPU-Last)
   - Background bg-grid weg (subtle, im embedded nicht sichtbar genug)
   - Strudel-/Cloud-Bilder bekommen will-change für composite-layer-promotion */
html.demo-embedded .bg-video,
html.demo-embedded .bg-video-tint { display: none !important; }
html.demo-embedded .bg-glow { filter: blur(30px) !important; opacity: 0.35 !important; }
html.demo-embedded .bg-grid { display: none !important; }
html.demo-embedded .cta-img,
html.demo-embedded .book-cover,
html.demo-embedded .word__inner {
  will-change: transform;
  backface-visibility: hidden;
}
/* Reveal-/Stagger-Animationen im embedded mode: kein blur-filter (FPS-Killer) */
html.demo-embedded .reveal { filter: none !important; }

/* ── STANDALONE-MODE Back-Button — wenn User direkt auf der Demo ist
   (nicht im iframe), oben links einen klaren „← Zurück" Button. ── */
html.demo-standalone .demo-back-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 20, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F4F5FA;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
html.demo-standalone .demo-back-btn:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateX(-2px);
}
html.demo-standalone .demo-back-btn svg { width: 18px; height: 18px; }
/* Fallback: wenn JS off, immer sichtbar (kein hidden default) */
.demo-back-btn { display: none; }
html.demo-standalone .demo-back-btn { display: inline-flex; }


:root {
  /* mouse tracking (fed by script.js, normalisiert 0..1) */
  --mx: 0.5;
  --my: 0.5;
  --tilt: 0;        /* (mx - 0.5), Bereich -0.5 .. +0.5 */
  --tiltY: 0;
  --mxPx: 50vw;     /* absolute mouse X in viewport units */
  --myPx: 50vh;

  /* Atlas Webcraft Palette */
  --bg-deep: #0B0D14;
  --bg-deeper: #06070B;
  --ink: #F4F5FA;
  --ink-dim: #A3A9B8;
  --ink-mute: #6B7280;

  --cyan: #22D3EE;
  --purple: #A78BFA;
  --pink: #F472B6;
  --gold: #FBBF24;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);

  /* type system */
  --ff-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --ff-ui: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Reserviert Scrollbar-Platz auf BEIDEN Seiten symmetrisch — sonst ist Body 15px
     schmaler rechts und der zentrierte Text wirkt visuell nach links versetzt
     (= "weiter rechts als links" space). */
  scrollbar-gutter: stable both-edges;
}

html, body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--ff-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* User-Fix 2026-05: overflow-x: hidden setzt implizit overflow-y: auto
     auf body, was sticky-pinning bricht. overflow-x: clip clippt
     horizontal OHNE einen scroll-Container zu erzeugen — sticky funktioniert. */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

/* ═════════════════ HERO LAYOUT ═════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  width: 100vw;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

/* ═════════════════ BACKGROUND-LAYER ═════════════════ */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero-BG-Video — cinematic darkened coding-loop */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Cinematic: dunkler + leicht entsättigt + warmer tint */
  filter: brightness(0.42) saturate(0.85) contrast(1.05);
  z-index: 0;
}
/* Dunkler Tint-Layer ÜBER dem Video damit der Atlas-Look nicht überlagert wird */
.bg-video-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* Vignette ringsherum */
    radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(11, 13, 20, 0.85) 100%),
    /* Cyan-Purple-Tint-Multiply für Atlas-Vibe */
    linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(167, 139, 250, 0.12) 100%),
    /* Dunkler Base-Overlay */
    linear-gradient(180deg, rgba(11, 13, 20, 0.55) 0%, rgba(6, 7, 11, 0.78) 100%);
}

.bg-base {
  position: absolute;
  inset: 0;
  /* Video ist jetzt der "echte" base — bg-base wird zur subtilen Färbungs-Schicht
     mit transparent center damit das Video durchblitzt */
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(167, 139, 250, 0.10), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, rgba(34, 211, 238, 0.06), transparent 70%);
  pointer-events: none;
}

/* subtile grid like Atlas Webcraft site */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, black 30%, transparent 100%);
  transform: translate3d(
    calc(var(--tilt) * -16px),
    calc(var(--tiltY) * -8px),
    0
  );
  transition: transform 0.6s cubic-bezier(.2, 1, .3, 1);
}

/* big colored glows that slowly drift with the cursor */
.bg-glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.bg-glow--cyan {
  top: -20%;
  left: -15%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 60%);
  transform: translate3d(
    calc(var(--tilt) * -40px),
    calc(var(--tiltY) * -28px),
    0
  );
  transition: transform 0.7s cubic-bezier(.2, 1, .3, 1);
}
.bg-glow--purple {
  bottom: -30%;
  right: -20%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 60%);
  opacity: 0.5;
  transform: translate3d(
    calc(var(--tilt) * 56px),
    calc(var(--tiltY) * 36px),
    0
  );
  transition: transform 0.8s cubic-bezier(.2, 1, .3, 1);
}
.bg-glow--pink {
  top: 30%;
  right: -15%;
  width: 38vmax;
  height: 38vmax;
  background: radial-gradient(circle, var(--pink) 0%, transparent 60%);
  opacity: 0.32;
  transform: translate3d(
    calc(var(--tilt) * 24px),
    calc(var(--tiltY) * 24px),
    0
  );
  transition: transform 0.9s cubic-bezier(.2, 1, .3, 1);
}

/* hot spot that follows the actual cursor */
.bg-cursor-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  transform: translate3d(
    calc(var(--mxPx, 50vw) - 300px),
    calc(var(--myPx, 50vh) - 300px),
    0
  );
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* outer vignette */
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
}

/* film grain */
.bg-grain {
  position: absolute;
  inset: -50%;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ═════════════════ TOP-BAR / PILLS ═════════════════ */

.topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 32px;
  gap: 16px;
}
.topbar > .pill--brand { justify-self: start; }
.topbar > .nav-cluster { justify-self: center; }
.topbar > .social-cluster { justify-self: end; }

/* base Liquid-Glass pill — Atlas dark style */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 38px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink);
  font-family: var(--ff-ui);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  position: relative;
  /* Magnetic-pull vars fed by JS — separate from --tilt so we don't fight */
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: background .35s ease, box-shadow .35s ease, color .25s ease;
  will-change: transform;
}

/* radial glow that follows the cursor when nearby (fed by JS) */
.pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    140px circle at var(--gx, -200px) var(--gy, -200px),
    rgba(34, 211, 238, 0.55),
    rgba(167, 139, 250, 0.3) 35%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pill.is-near::before { opacity: 1; }

.pill:hover {
  background: var(--glass-strong);
  color: var(--ink);
}
.pill:active { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(0.97); }

/* brand pill (left) */
.pill--brand {
  padding: 0 14px 0 8px;
  gap: 10px;
  font-weight: 600;
}
.brand__logo {
  width: 26px;
  height: 26px;
  display: block;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}
.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: 0.02em;
}
.brand__atlas {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 13px;
}
.brand__webcraft {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Mid nav cluster — elevated container with shared platform feel */
.nav-cluster {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: background .35s ease;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}
.nav-cluster .pill {
  height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--ink-dim);
}
/* Beide Nav-Pills (Leistungen + Cases) gleich breit, damit Logo-Pill
   geometrisch im Zentrum des Clusters sitzt (User-Spec: symmetrisch) */
.nav-cluster .pill--nav {
  min-width: 96px;
  text-align: center;
  justify-content: center;
}
.nav-cluster .pill::before { display: none; }
.nav-cluster .pill--nav:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.nav-cluster .pill--logo {
  width: 38px;
  height: 32px;
  padding: 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow:
    0 4px 18px rgba(167, 139, 250, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform .35s cubic-bezier(.2, 1, .3, 1), box-shadow .35s ease;
}
.nav-cluster .pill--logo:hover {
  box-shadow:
    0 8px 24px rgba(167, 139, 250, 0.60),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.logo-mark {
  width: 18px;
  height: 18px;
  display: block;
  /* User-Spec: Logo im Mid-Pill SCHWARZ auf Cyan-Purple-Gradient — bessere Lesbarkeit */
  filter: brightness(0);
  transform: translate3d(var(--logoLx, 0), var(--logoLy, 0), 0);
  transition: transform .15s ease-out;
}

/* social cluster (right) */
.social-cluster {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.social-cluster .pill--social {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.social-cluster .pill--social:hover { color: var(--ink); }
.pill--cta {
  background: linear-gradient(135deg, var(--purple), var(--cyan)) !important;
  /* User-Spec: Start-Text SCHWARZ für bessere Lesbarkeit auf hellem Gradient */
  color: #0B0D14 !important;
  font-weight: 700 !important;
  padding-left: 12px !important;
  box-shadow:
    0 6px 22px rgba(34, 211, 238, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.pill--cta:hover { color: #0B0D14 !important; }
.pill--cta::before { display: none; }
.cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B0D14;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  animation: cta-pulse 1.8s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ═════════════════ SUBTITLES ═════════════════ */

.sub {
  position: absolute;
  z-index: 25;
  color: var(--ink);
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
  transform: translate3d(
    calc(var(--tilt) * 6px),
    calc(var(--tiltY) * 3px),
    0
  );
  transition: transform .5s cubic-bezier(.2, 1, .3, 1);
}
.sub--tl { top: 112px; left: 48px; max-width: 240px; }
.sub--br { bottom: 56px; right: 48px; text-align: right; }
.sub__accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* ═════════════════ GIANT LETTERING + GLASS CARD ═════════════════ */

.lettering {
  position: relative;
  z-index: 10;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 clamp(12px, 2.5vw, 40px);
  pointer-events: none;
  overflow: hidden;
  gap: 0;
}
/* Beide Wörter haben sauberen Abstand zur Card — kein Overlap (User-Spec) */
.lettering .word--left  { margin-right: clamp(12px, 1.2vw, 26px); }
.lettering .word--right { margin-left:  clamp(12px, 1.2vw, 26px); }
.lettering .card { flex: 0 0 auto; }

.word {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -0.055em;
  display: inline-block;
  white-space: nowrap;
  text-shadow:
    0 4px 80px rgba(0, 0, 0, 0.55),
    0 2px 24px rgba(167, 139, 250, 0.18);
  user-select: none;
  pointer-events: auto;
  min-width: 0;
  font-variation-settings: "opsz" 96;
}
/* Atlas und Webcraft GLEICH GROSS — User-Spec.
   Damit Webcraft (8 Buchstaben) trotzdem passt, ist die Font-Size auf
   den optisch passendsten Wert geclamped + Card moderat in der Mitte. */
.word--left,
.word--right { font-size: clamp(80px, 13vw, 220px); letter-spacing: -0.05em; }

.word__inner {
  display: inline-block;
  transform-origin: var(--origin, center);
  will-change: transform;
}

/* SQUEEZE/STRETCH — INVERTED LOGIC (User-spec 2026-05-21):
   - Maus rechts (tilt +) → CARD swipt RECHTS
     → linkes Wort (ATLAS) wird STRETCHED — origin LEFT damit linker Rand bleibt
     → rechtes Wort (WEBCRAFT) wird SQUEEZED — origin RIGHT damit rechter Rand bleibt
   - Maus links (tilt -) spiegelverkehrt.
   Kein zusätzliches translate — origin hält die outer-edges fest. */
.word--left { text-align: left; }
.word--left .word__inner {
  --origin: left center;
  /* tilt = mouse-tracking-Wert (-0.5..+0.5), pull-x = unitless number aus JS-drag */
  transform: scaleX(calc(1 + var(--tilt) * 0.32 + var(--pull-x, 0) * 0.0018));
}

.word--right { text-align: right; }
.word--right .word__inner {
  --origin: right center;
  transform: scaleX(calc(1 - var(--tilt) * 0.32 - var(--pull-x, 0) * 0.0018));
}

/* ═════════════════ GLASS CARD (Center, follows Mouse) ═════════════════ */

.card {
  position: relative;
  width: clamp(240px, 22vw, 380px);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0B0D14;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    0 12px 36px -8px rgba(34, 211, 238, 0.18),
    0 0 0 1px rgba(167, 139, 250, 0.10) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  pointer-events: auto;
  cursor: grab;
  /* CARD swipes with MOUSE (tilt) + reagiert auf aktiven DRAG (pull-x/y unitless from JS).
     pull-x/y wird mit `* 1px` zu length konvertiert um in length-calc zu funktionieren.
     touch-action:none verhindert dass der Browser scrollen will beim drag. */
  touch-action: none;
  transform: translate3d(
    calc(var(--tilt) * 140px + var(--pull-x, 0) * 1px),
    calc(var(--tiltY) * 18px + var(--pull-y, 0) * 1px),
    0
  );
  will-change: transform;
}
.card:active { cursor: grabbing; }

/* Browser-Chrome (Mac-Style traffic lights + URL bar) */
.browser-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #1a1d28 0%, #14171f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 4;
}
.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.browser-dot--red    { background: #FF5F57; }
.browser-dot--yellow { background: #FEBC2E; }
.browser-dot--green  { background: #28C840; }
.browser-url {
  flex: 1;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 12px;
  max-width: 70%;
  margin-right: 27px; /* visual balance — offset for the dots */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.browser-url::before {
  content: "🔒";
  margin-right: 5px;
  font-size: 8px;
  opacity: 0.5;
}

.card__inner {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ─── Slide-Photo ─── */

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 1.2s cubic-bezier(.2, 1, .3, 1);
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Video full-cover (no scroll needed — playback handles motion) */
.slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

/* Static-Screenshot — image breiter als Card-Höhe, scrollt per translateY
   palindromic (alternate) wie bei atlas-webcraft.de hero. */
.slide__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
  /* image-height ist ratio-abhängig; wir scrollen um -50% der eigenen Höhe
     was die meisten Hero-Screenshots (16:10) komplett durchwischt. */
  animation: img-scroll 8s ease-in-out infinite alternate;
  will-change: transform;
}
.slide:not(.is-active) .slide__img {
  animation-play-state: paused;
}

@keyframes img-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(var(--scroll, -55%)); }
}

/* Tag pill — User-Spec: lesbarer (mehr Kontrast, solid background) */
.slide__tag {
  position: absolute;
  z-index: 2;
  left: 4%;
  bottom: 7%;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px 10px;
  background: rgba(11, 13, 20, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.35);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 10px;
  color: var(--ink);
  max-width: 82%;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(167, 139, 250, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.slide__tag-mono {
  font-family: var(--ff-mono);
  font-size: clamp(8px, 0.78vw, 10.5px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.slide__tag-name {
  font-family: var(--ff-ui);
  font-size: clamp(11px, 1.05vw, 14.5px);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #ffffff;
  line-height: 1.18;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.slide__corner {
  position: absolute;
  z-index: 2;
  top: 7%;
  right: 5%;
  padding: 4px 9px;
  background: rgba(11, 13, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: clamp(7px, 0.7vw, 9.5px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

/* Card pagination dots */
.card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background .3s, transform .3s;
}
.dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scale(1.3);
}

/* ═════════════════ SCROLL HINT ═════════════════ */

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}
.scroll-hint__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
.scroll-hint__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(6px); opacity: 0.3; }
}

/* ═════════════════ ENTRY ANIMATION ═════════════════ */

[data-anim="rise"] {
  animation: rise 1s cubic-bezier(.2, 1, .3, 1) both;
  animation-delay: 0.2s;
}
/* .word und .card nutzen rise-soft (kein transform) damit das Parallax-Transform
   nicht durch from{translate(0,18px,0)} überschrieben wird. */
.word { animation: rise-soft 1.1s cubic-bezier(.2, 1, .3, 1) both; }
.word--left { animation-delay: 0.4s; }
.word--right { animation-delay: 0.55s; }
.card { animation: rise-soft 1.2s cubic-bezier(.2, 1, .3, 1) both; animation-delay: 0.7s; }
.topbar .pill, .topbar .nav-cluster { animation: rise 0.9s cubic-bezier(.2, 1, .3, 1) both; }
.topbar .pill--brand { animation-delay: 0.1s; }
.nav-cluster { animation-delay: 0.18s; }
.social-cluster .pill--social:nth-child(1) { animation-delay: 0.22s; }
.social-cluster .pill--social:nth-child(2) { animation-delay: 0.26s; }
.social-cluster .pill--social:nth-child(3) { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; filter: blur(8px); transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; filter: blur(0); }
}
/* rise-soft: nur opacity + blur, kein transform (für Elemente mit eigenem parallax-transform) */
@keyframes rise-soft {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}

/* ═════════════════ MOBILE ═════════════════ */

@media (max-width: 920px) {
  .topbar { padding: 14px 12px; gap: 6px; }
  .pill--brand { height: 32px; padding: 0 10px 0 6px; gap: 6px; }
  .brand__logo { width: 20px; height: 20px; }
  .brand__atlas, .brand__webcraft { font-size: 11px; }
  .nav-cluster { padding: 3px; gap: 3px; }
  .nav-cluster .pill { padding: 0 8px; font-size: 11px; height: 26px; }
  .nav-cluster .pill--logo { width: 28px; height: 26px; }
  .nav-cluster .logo-mark { width: 14px; height: 14px; }
  .social-cluster { gap: 3px; }
  .social-cluster .pill--social { height: 28px; padding: 0 10px; font-size: 11px; }

  .sub { font-size: 12px; }
  .sub--tl { top: 80px; left: 14px; max-width: 140px; }
  .sub--br { bottom: 42px; right: 14px; }

  .word { font-size: clamp(58px, 22vw, 140px); }
  .card { width: clamp(160px, 48vw, 240px); }

  /* Stretch-Effekt auf Mobile beibehalten — nur Background-Layer + Pills entlasten */
  .bg-grid, .bg-glow, .pill, .nav-cluster { transform: none !important; }
}

@media (max-width: 600px) {
  /* HERO: Lettering vertical stack — Atlas ÜBER Card ÜBER Webcraft */
  .lettering {
    flex-direction: column !important;
    gap: 8px;
    padding: 0 12px;
    width: 100%;
  }
  .word--left,
  .word--right {
    font-size: clamp(54px, 16vw, 92px);
    text-align: center !important;
    width: auto;
    margin: 0 !important;
  }
  /* Auf Mobile: Atlas + Webcraft folgen der Card MIT REDUZIERTEM FAKTOR (0.25 statt 0.5)
     damit sie auch bei extremen Drags noch sichtbar bleiben.
     z-index: 5 stapelt sie ÜBER die Card — Card kann nie die Texte überdecken. */
  .word--left,
  .word--right {
    position: relative;
    z-index: 5;
  }
  /* Mobile: pull-y auf 0 — Text bleibt vertikal FIX, kann durch Card-Drag
     nicht mehr oben/unten geclippt werden. pull-x leicht dezenter (0.15
     statt 0.35) damit auch horizontale Verschiebung nicht zum Overflow führt.
     scaleX-Effekt bleibt voll erhalten für den charakteristischen Stretch. */
  .word--left .word__inner {
    text-align: center;
    --origin: center center;
    transform:
      translateX(calc(var(--pull-x, 0) * 0.15 * 1px))
      scaleX(calc(1 + var(--tilt) * 0.32));
  }
  .word--right .word__inner {
    text-align: center;
    --origin: center center;
    transform:
      translateX(calc(var(--pull-x, 0) * 0.15 * 1px))
      scaleX(calc(1 - var(--tilt) * 0.32));
  }
  .card {
    width: clamp(220px, 70vw, 320px);
    height: auto;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
  }
  /* Sub-Lines bei 480px schon positioniert, hier nur Font kleiner */
  .sub { font-size: 11px; }
  .sub--tl { max-width: 130px; }
  .sub--br { max-width: 130px; }
}

@media (max-width: 480px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 12px;
  }
  .topbar > .pill--brand { justify-self: start; grid-column: 1; grid-row: 1; }
  .topbar > .nav-cluster { justify-self: center; grid-column: 1; grid-row: 2; }
  .topbar > .social-cluster { justify-self: end; grid-column: 1; grid-row: 1; }
  .sub--tl { top: 108px; }
  .word { font-size: clamp(48px, 16vw, 82px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .word__inner, .card, .bg-grid, .bg-glow { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   WERKE — Bücherregal (adaptiert von ralf-timmer Pattern,
   Farben auf Atlas Webcraft Palette übertragen: cyan/purple statt gold)
   ════════════════════════════════════════════════════════════════════ */

.works-shelf {
  position: relative;
  padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 10vw, 140px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, #ffffff 0%, #f6f7fb 45%, #e7ebf3 100%);
  color: #0B0D14;
  overflow: hidden;
}
.works-shelf__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 35% at 50% 8%, rgba(255, 255, 255, 0.85), transparent 65%),
    radial-gradient(ellipse 60% 35% at 8% 70%, rgba(167, 139, 250, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 35% at 92% 30%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 50%, transparent 50%, rgba(110, 120, 145, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}
.works-shelf__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.works-shelf__header {
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.works-shelf__kicker {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5b4f8a;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.works-shelf__heading {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #0B0D14;
  margin-bottom: 24px;
}
.works-shelf__heading-grad {
  background: linear-gradient(120deg, var(--purple) 0%, var(--cyan) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.works-shelf__intro {
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--ff-mono);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.6;
  color: rgba(11, 13, 20, 0.6);
}

/* Stack der Regale */
.shelves-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.shelf {
  position: relative;
}
.shelf-row {
  display: grid;
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: flex-end;
  perspective: 1200px;
  perspective-origin: 50% 70%;
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.shelf-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .shelf-row-3 { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .shelf-row-3 .book:last-child { grid-column: span 2; max-width: 60%; margin: 0 auto; }
}

/* Plank — Shopify-Editions style */
.shelf-plank {
  position: relative;
  height: 26px;
  margin-top: -14px;
  background:
    linear-gradient(180deg,
      transparent 0,
      transparent 12px,
      #ffffff 12px,
      #ffffff 13px,
      transparent 13px),
    linear-gradient(180deg,
      #c8cad6 0,
      #d6d8e3 4px,
      #e6e8f0 9px,
      #eef0f6 12px,
      #f8f9fc 13px,
      #e7eaf2 18px,
      #cfd2dd 26px);
  border-radius: 1px 1px 2px 2px;
  box-shadow:
    0 1px 0 rgba(110, 116, 138, 0.35) inset,
    0 -1px 0 rgba(85, 92, 115, 0.35) inset,
    0 6px 8px -1px rgba(20, 24, 40, 0.25),
    0 14px 24px -4px rgba(20, 24, 40, 0.18),
    0 32px 60px -8px rgba(20, 24, 40, 0.14);
  z-index: 0;
}
.shelf-plank::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: calc(100% + 4px);
  height: 90px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%,
      rgba(20, 24, 40, 0.22) 0%,
      rgba(20, 24, 40, 0.12) 30%,
      transparent 80%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .shelf-plank { height: 12px; }
}

/* Bücher */
.shelf .book {
  z-index: 3;
}
.book {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  transform:
    translate3d(var(--bp-x, 0px), var(--bp-y, 0px), 0)
    rotateX(var(--bp-rx, 0deg))
    rotateY(var(--bp-ry, 0deg));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: pointer;
}
.book::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  bottom: -6px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 100% at 50% 0%,
    rgba(20, 24, 40, 0.42) 0%,
    rgba(20, 24, 40, 0.18) 40%,
    transparent 80%);
  filter: blur(4px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), filter 0.55s ease;
  z-index: 0;
}
/* User-Spec: Hover langsam anheben + leicht zittern */
.book:hover {
  transform: translate3d(0, -36px, 0) rotateX(7deg);
  transition: transform 1.1s cubic-bezier(0.18, 1, 0.32, 1);
  animation: book-jitter 1.4s ease-in-out 1.1s infinite;
}
.book:hover::before {
  transform: translateY(36px) scale(1.32);
  filter: blur(12px);
  transition: transform 1.1s cubic-bezier(0.18, 1, 0.32, 1), filter 1.1s ease;
}
/* Etwas stärkere Amplitude (±1.2px statt ±0.6px) + leicht erhöhter Rotation-Wackel */
@keyframes book-jitter {
  0%, 100% { transform: translate3d(0, -36px, 0) rotateX(7deg) rotateZ(0deg); }
  20%      { transform: translate3d(-1.2px, -37.2px, 0) rotateX(7deg) rotateZ(-0.7deg); }
  40%      { transform: translate3d(0.9px, -35px, 0) rotateX(7deg) rotateZ(0.5deg); }
  60%      { transform: translate3d(-0.7px, -37px, 0) rotateX(7deg) rotateZ(-0.4deg); }
  80%      { transform: translate3d(1.1px, -35.5px, 0) rotateX(7deg) rotateZ(0.6deg); }
}

/* Cover */
.book-cover {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0B0D14;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(20, 24, 40, 0.15),
    0 8px 14px -3px rgba(20, 24, 40, 0.25),
    0 18px 40px -6px rgba(20, 24, 40, 0.20);
  transition: box-shadow 0.5s ease;
}
.book:hover .book-cover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(34, 211, 238, 0.55),
    0 18px 32px -4px rgba(20, 24, 40, 0.35),
    0 36px 60px -8px rgba(20, 24, 40, 0.30),
    0 0 70px -12px rgba(167, 139, 250, 0.45);
}
.book-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 0;
}
/* sanftes dunkles Overlay für Text-Lesbarkeit am unteren Rand */
.book-cover__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 45%, rgba(11, 13, 20, 0.75) 100%);
}
.book-cover__content {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  bottom: 7%;
  color: #ffffff;
}
.cover-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  padding: 3px 8px;
  background: rgba(11, 13, 20, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 4px;
}
.cover-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0 0 6px;
}
.cover-sub {
  font-family: var(--ff-ui);
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.005em;
}
/* Glare follows cursor on hover */
.cover-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 180px at var(--glare-x, 50%) var(--glare-y, 30%),
    rgba(255, 255, 255, 0.20),
    transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: plus-lighter;
  z-index: 5;
}
.book:hover .cover-glare { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .book, .book::before, .book-cover { transition: none !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   CTA-EXPERIENCE — Pinned Scroll-Section mit Text-Choreografie
   + Schwebende Landing-Page-Bilder (COSMOS-inspiriert)
   ════════════════════════════════════════════════════════════════════ */

/* COSMOS-Style: heller cream BG, schwarz heavy sans-serif, Cloud dreht sich beim scroll */
.cta-experience {
  position: relative;
  /* 900vh: lange Section damit Text 1 WIRKLICH lange in Mitte hält + Strudel langsam */
  height: 900vh;
  /* Heller cream BG — cosmos.so-style (statt navy) */
  background: linear-gradient(180deg, #f5f2e9 0%, #efe9d8 50%, #e8e0cb 100%);
  --p: 0;
}
.cta-experience__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.cta-experience__stage {
  position: relative;
  width: 100%;
  height: 100%;
  /* Subtle radial glow für ein bisschen Tiefe */
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(255, 255, 255, 0.6), transparent 80%);
}

/* ── Text 1 + 2 ── COSMOS-STYLE: schwarz heavy sans-serif, simple swipe */
.cta-text {
  position: absolute;
  /* Robust absolute centering via inset:0 + margin:auto */
  inset: 0;
  margin: auto;
  height: max-content;
  font-family: var(--ff-display);
  font-weight: 800;
  /* KLEINERE Font-Range — Text muss in echte Viewports (1500-2000px Chrome-Fenster) passen
     ohne abzuschneiden. Vorher 8vw / max 140 war zu groß für normale Browser-Windows. */
  font-size: clamp(44px, 5.5vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: center;
  padding: 0 24px;
  z-index: 5;
  color: #0b0d14;
  will-change: transform, opacity;
}
/* Reset globale .word-Regel (Hero-Lettering) damit cosmos-text clean rendert */
.cta-text .letter,
.cta-text .word-group,
.cta-text--2 .word {
  display: inline;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  animation: none !important;
  font-family: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-shadow: none !important;
  white-space: normal !important;
  user-select: text !important;
  pointer-events: auto;
  position: static;
  transform: none !important;
}
.cta-text .letter::before { content: none !important; }

/* TEXT 1 — Fade in (0.02-0.08), HOLD (0.08-0.32), Slide out (0.32-0.40).
   Kürzer als vorher damit weniger Scroll bis Text 2 kommt. */
.cta-text--1 {
  width: max-content;
  max-width: 90vw;
  --in:  clamp(0, calc((var(--p) - 0.02) / 0.06), 1);
  --out: clamp(0, calc((var(--p) - 0.32) / 0.08), 1);
  opacity: calc(var(--in) - var(--out));
  transform: translateX(calc(var(--out) * -90vw));
  filter: blur(calc(var(--out) * 16px));
}

/* TEXT 2 — In: 0.42–0.48 (kommt früher als vorher), HOLD bis Section-Ende. 3-Zeilen-Block. */
.cta-text--2 {
  width: 1200px;
  max-width: 95vw;
  --in: clamp(0, calc((var(--p) - 0.42) / 0.06), 1);
  opacity: var(--in);
  transform: translateX(calc((1 - var(--in)) * 60vw));
  filter: blur(calc((1 - var(--in)) * 16px));

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.38em;
}
/* Word-Fill: simple color change — kein gradient pro letter */
.cta-text--2 .word {
  display: inline !important;
  color: #0b0d14 !important;
  text-shadow: none !important;
  transition: color 0.5s cubic-bezier(.18, 1, .32, 1);
}
.cta-text--2 .word.is-lit {
  color: #6d4ad9 !important;
}

/* CTA-Buttons — cosmos-style: black solid + cream ghost.
   Weiter UNTER dem Text (nicht direkt darunter) + erst nach dem Strudel sichtbar */
.cta-buttons {
  position: absolute;
  top: calc(50% + 280px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 12px;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.18, 1, .32, 1);
}
.cta-buttons.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.cta-btn--primary {
  background: #0b0d14;
  color: #f5f2e9;
  box-shadow: 0 6px 20px rgba(11, 13, 20, 0.25);
}
.cta-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11, 13, 20, 0.4); }
.cta-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: #0b0d14;
  border: 1px solid rgba(11, 13, 20, 0.12);
  backdrop-filter: blur(12px);
}
.cta-btn--ghost:hover { background: rgba(255, 255, 255, 0.85); }
.cta-btn__arrow { transition: transform .3s; }
.cta-btn:hover .cta-btn__arrow { transform: translateX(4px); }

/* ────────────── IMAGE CLOUD (cosmos-style: cards mit light shadow + scroll rotation) ────────────── */
.cta-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* Scroll-driven rotation — Cloud dreht sich beim Scrollen wie cosmos.so */
  transform: rotate(calc(var(--cloud-rot, 0) * 1deg));
  transform-origin: 50% 50%;
  will-change: transform;
}
.cta-cloud__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w, 120px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  /* Cosmos-style: leichter cream-tinted shadow + light border */
  background: #ffffff;
  box-shadow:
    0 6px 20px -4px rgba(70, 60, 40, 0.18),
    0 12px 40px -8px rgba(70, 60, 40, 0.12),
    0 0 0 1px rgba(70, 60, 40, 0.06);
  /* Composed transform: spawn (Strudel) + idle bobbing + mouse repulsion
     --tx/--ty: scroll-driven target position (from spawn through to circle)
     --bx/--by: idle bobbing offset
     --rx/--ry: mouse repulsion offset
     --scale: scroll-driven scale 0->1
     --rot: rotation idle + spawn rotation */
  transform:
    translate(-50%, -50%)
    translate(var(--tx, 0px), var(--ty, 0px))
    translate(var(--rx, 0px), var(--ry, 0px))
    translate(var(--bx, 0px), var(--by, 0px))
    rotate(var(--rot, 0deg))
    scale(var(--scale, 0));
  transition: none;  /* alle transitions JS-driven */
  opacity: var(--op, 0);
  will-change: transform, opacity;
  pointer-events: auto;
  /* Cosmos: bilder volle helligkeit (statt dimmed wie zuvor auf dark) */
  filter: saturate(1.0);
}
.cta-cloud__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
}

/* Footer-only-cols fix: kicker/heading entfernt da neue section es übernimmt */
.footer__sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.footer { padding-top: clamp(40px, 5vw, 64px); }
.footer__cols { padding-top: 0; border-top: 0; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */

.footer {
  position: relative;
  background: linear-gradient(180deg, #0B0D14 0%, #06070B 100%);
  color: var(--ink);
  padding: clamp(80px, 10vw, 140px) 0 36px;
  overflow: hidden;
  font-family: var(--ff-ui);
}
.footer__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(167, 139, 250, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 30% at 15% 100%, rgba(244, 114, 182, 0.10), transparent 70%);
  pointer-events: none;
}
.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.footer__top {
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.footer__kicker {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.footer__heading {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.footer__heading-grad {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--purple) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__intro {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}
.footer__cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.footer__btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #0B0D14;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.footer__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.footer__btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}
.footer__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}
.footer__btn-arrow { transition: transform .3s; }
.footer__btn:hover .footer__btn-arrow { transform: translateX(4px); }

.footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 820px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__brand-logo {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}
.footer__brand-name {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.footer__brand-name strong { font-weight: 800; }
.footer__brand-name span { color: var(--ink-dim); font-weight: 400; margin-left: 2px; }
.footer__brand-claim {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 320px;
}
.footer__col-title {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.footer__col-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-list a {
  font-size: 13.5px;
  color: var(--ink);
  transition: color .25s;
}
.footer__col-list a:hover { color: var(--cyan); }
.footer__col-list li {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.footer__copy { letter-spacing: -0.005em; }
.footer__legal a { color: var(--ink-dim); transition: color .25s; }
.footer__legal a:hover { color: var(--ink); }
.footer__dot { margin: 0 6px; color: var(--ink-mute); }

/* ════════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS — CTA Experience + Werke + Footer
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  /* WERKE Header smaller */
  .works-shelf__heading { font-size: clamp(32px, 9vw, 48px); }
  .works-shelf__intro { font-size: 13px; padding: 0 16px; }
  .works-shelf__container { padding: 0 16px; }
}

@media (max-width: 600px) {
  /* CTA-EXPERIENCE — kürzer + kompakter für mobile */
  .cta-experience { height: 600vh; }

  /* Text-Größen: deutlich kleiner damit alles in den Viewport passt */
  .cta-text {
    font-size: clamp(28px, 8vw, 48px);
    padding: 0 16px;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  /* Text 1 darf wrappen + Box füllt den Viewport */
  .cta-text--1 {
    width: auto !important;
    max-width: 92vw;
    white-space: normal;
  }

  /* Text 2 darf 3 Zeilen wrappen — kein fixes 1200px */
  .cta-text--2 {
    width: auto !important;
    max-width: 92vw;
    gap: 0 0.28em;
  }

  /* Buttons untereinander auf Mobile */
  .cta-buttons {
    top: calc(50% + 200px);
    flex-direction: column;
    gap: 10px;
    width: 80vw;
    align-items: stretch;
  }
  .cta-btn {
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* Werke noch kompakter — Single-column für die kleinsten Phones */
  .shelf-row-3 { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .shelf-row-3 .book:last-child { grid-column: span 1; max-width: 80%; }
  .shelf .book { max-width: 80%; margin: 0 auto; }
  .shelf-plank { display: none; }

  /* Hero Subline noch kleiner */
  .sub { font-size: 10.5px; }

  /* Footer Spalten haben schon eigene grid layout — nur padding/font etwas reduzieren */
  .footer__container { padding-left: 20px; padding-right: 20px; }
  .footer__brand-name { font-size: 22px; }
  .footer__col-title { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE BOOK-REVEAL — Jedes Buch hat ein EIGENES Reveal-Pattern via
   CSS custom properties (--rev-tx/-ty/-rot/-scale/-dur), JS-gesteuert.
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .works-shelf .book.will-reveal {
    opacity: 0;
    transform:
      translate3d(var(--rev-tx, -130vw), var(--rev-ty, 0px), 0)
      rotate(var(--rev-rot, -9deg))
      scale(var(--rev-scale, 1))
      !important;
    transition:
      opacity 0.8s cubic-bezier(.2, 1, .3, 1),
      transform var(--rev-dur, 0.95s) cubic-bezier(.16, 1, .3, 1);
    will-change: transform, opacity;
  }
  .works-shelf .book.will-reveal.is-revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
  }
}
