/* ================= INTRO ================= */
.intro {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(55% 60% at 38% 42%, rgba(113, 191, 68, .10), transparent 70%),
    radial-gradient(50% 55% at 68% 40%, rgba(227, 6, 19, .07), transparent 70%),
    var(--bg-deep);
  clip-path: circle(75% at 50% 50%);
}
.intro-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
.intro-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.intro-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .06em;
  color: var(--cream);
  opacity: .85;
}
.intro-counter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(84px, 17vw, 190px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-counter span { font-size: .45em; }
.intro-label {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .6;
}
.intro-bar {
  width: min(260px, 60vw);
  height: 2px;
  margin-top: 8px;
  background: rgba(244, 247, 255, .12);
  border-radius: 2px;
  overflow: hidden;
}
.intro-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(92deg, var(--bif-green), var(--bif-green-light));
  transform: scaleX(0);
  transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ================= HERO (Zwei-Akt) =================
   --hero-acts wird von hero-director.js gesetzt, BEVOR der
   ScrollTrigger entsteht: 3.5 ohne Video-Akt, 6.5 mit. */
:root { --hero-acts: 3.5; }

#hero { height: calc(var(--hero-acts) * 100vh); position: relative; }

.hero-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ---- Hintergrund ---- */
.bg-layer {
  position: absolute; inset: -10%;
  pointer-events: none;
}
.bg-night {
  background:
    radial-gradient(55% 65% at 28% 20%, rgba(113, 191, 68, .17), transparent 68%),
    radial-gradient(50% 60% at 80% 16%, rgba(227, 6, 19, .11), transparent 66%),
    radial-gradient(62% 72% at 70% 85%, rgba(90, 163, 50, .10), transparent 70%),
    var(--bg-deep);
}
.bg-stage {
  background:
    radial-gradient(58% 62% at 50% 30%, rgba(255, 214, 0, .12), transparent 68%),
    radial-gradient(52% 60% at 20% 78%, rgba(113, 191, 68, .22), transparent 68%),
    radial-gradient(52% 60% at 82% 78%, rgba(227, 6, 19, .13), transparent 68%),
    #0B1020;
  opacity: 0;
}
/* Bühnen-Spot hinter der Hero-Dose */
.bg-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(34% 42% at 50% 52%, rgba(255, 214, 0, .15), rgba(113, 191, 68, .06) 55%, transparent 72%);
  opacity: .8;
}
.bg-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ---- Akt 1: Canvas ---- */
.act-video { position: absolute; inset: 0; z-index: 3; }
#scrub {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.scrub-loader {
  position: absolute; left: 50%; bottom: 18%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream); opacity: .8;
}

/* ---- Akt 2: Waren-Bühne ---- */
.act-stage { position: absolute; inset: 0; z-index: 4; }

.stage-shadows { position: absolute; inset: 0; pointer-events: none; }
.stage-shadow {
  position: absolute;
  width: 220px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 72%);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.stage-packs { position: absolute; inset: 0; }
/* Zentrierung übernimmt GSAP (xPercent/yPercent -50) — CSS-translate würde
   vom ersten GSAP-Tween überschrieben und die Packs springen lassen. */
.pack {
  position: absolute;
  will-change: transform;
  pointer-events: auto;
}
.pack-par { will-change: transform; }
.pack img {
  width: 100%;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55));
  will-change: transform;
}
a.pack:hover img { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(113, 191, 68, .45)); }

/* ---- Copy ---- */
/* z-index über den Packs (Reihen z 10–13): Text liegt VOR den Produkten,
   sonst verschluckt die große Hero-Dose die Headline (Lasse-Feedback 12.08.) */
.hero-copy {
  position: absolute; inset: 0;
  z-index: 20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}
.hero-copy .headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 9.5vw, 128px);
  line-height: .96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, .6));
}
/* padding-top hält Diakritika/Apostrophe innerhalb der Reveal-Clip-Box */
.hl-line { display: block; overflow: hidden; padding-top: .25em; margin-top: -.25em; }
.hl-line > .hl-word { display: inline-block; }
/* Gradient liegt auf den Wort-Spans selbst — background-clip:text auf einem
   Container bricht in Chromium, sobald Kinder eigene Transforms bekommen. */
.hl-grad,
.hl-grad .hl-word {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subline {
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .02em;
  color: var(--cream);
  opacity: .85;
  max-width: 560px;
}
.copy-open { justify-content: flex-start; padding-top: 9vh; }
@media (max-height: 700px) { .copy-open { padding-top: 5vh; } }

.copy-stage { opacity: 0; visibility: hidden; justify-content: flex-start; padding-top: 7vh; }
.copy-stage .headline-stage { font-size: clamp(34px, 5.6vw, 84px); }
.copy-stage .subline {
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  opacity: 1;
  margin-top: 14px;
}
.copy-stage .cta {
  pointer-events: auto;
  margin-top: 20px;
  padding: 15px 36px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--bif-ink);
  background: linear-gradient(92deg, var(--bif-green), var(--bif-green-light));
  box-shadow: 0 12px 40px rgba(113, 191, 68, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.copy-stage .cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 54px rgba(113, 191, 68, .5); }

.cat-chips {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.cat-chips a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 247, 255, .28);
  background: rgba(7, 11, 22, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.cat-chips a:hover {
  border-color: var(--bif-green);
  background: rgba(113, 191, 68, .14);
  transform: translateY(-2px);
}

/* ---- Scroll-Hint ---- */
.scroll-hint {
  position: absolute; left: 50%; bottom: 74px;
  transform: translateX(-50%);
  z-index: 7;
  width: 26px; height: 42px;
  border: 2px solid rgba(244, 247, 255, .5);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--bif-green-light);
  animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---- Ticker ---- */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 7;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: rgba(7, 11, 22, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}
.ticker-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: lowercase;
  padding: 0 18px;
  color: var(--cream);
  opacity: .8;
}
.ticker-item b { color: var(--star-red-bright); font-weight: 500; padding-right: 36px; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .scroll-hint { bottom: 64px; }
  .copy-stage { padding-top: 10vh; }
  .cat-chips a { padding: 8px 13px; font-size: 11px; }
}

/* ---- Reduced motion: statische Bühne ---- */
@media (prefers-reduced-motion: reduce) {
  #hero { height: auto; }
  .hero-stage { height: 100vh; }
  .scroll-hint { display: none; }
}
