/* ============================================================
   KI-STORY CINEMA SECTION (Mo Live #26)
   52-Sekunden Story: Live-Action + Motion-Graphics + Text-Catches
   Auto-Play wenn 50% sichtbar. Skip-Button. Progress-Bar.
   ============================================================ */

.ki-story {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #0a0e1a;
  overflow: hidden;
  color: #FAFAF8;
}
.ki-story__player {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.ki-story__stage {
  position: absolute;
  inset: 0;
}

/* === LAYER BASE === */
.ki-story__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: opacity;
}
.ki-story__layer.is-active {
  opacity: 1;
}

/* === VIDEO LAYER === */
.ki-story__layer--video {
  background: #000;
}
.ki-story__layer--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Mo Live #28 Hollywood Einsaug: Shot 7 (Inner-AI Datenstrom) startet mit scale 1.4
   und fährt während des Cross-Fade auf 1.0 → fühlt sich an als wäre Camera reingezoomt */
.ki-story__layer--zoomin video {
  transform: scale(1.4);
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ki-story__layer--zoomin.is-active video {
  transform: scale(1);
}
/* Mo Live #28 Hollywood Rauszoom: Shot 10 (Befreiung) startet mit scale 0.85 und
   geht auf 1.0 → Pull-Back-Effekt aus der AI-Welt zurück in Realität */
.ki-story__layer--zoomout video {
  transform: scale(0.85);
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ki-story__layer--zoomout.is-active video {
  transform: scale(1);
}
/* Vignette over live action for caption legibility */
.ki-story__layer--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
/* Loading skeleton when video src not yet swapped in */
.ki-story__layer--video[data-loading="true"] {
  background: linear-gradient(135deg, #1a1f2e 0%, #0a0e1a 100%);
}
.ki-story__layer--video[data-loading="true"]::before {
  content: "Generiere Sequenz…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.4);
  z-index: 1;
}

/* === CATCH LAYER (Text-only Frames) === */
.ki-story__layer--catch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  background: radial-gradient(circle at 50% 50%,
    #1a1f2e 0%,
    #0a0e1a 100%);
}
.ki-story__layer--catch[data-shot="5"] {
  background: radial-gradient(circle at 50% 50%,
    rgba(201, 155, 92, 0.18) 0%,
    #0a0e1a 70%);
}
.ki-story__layer--catch[data-shot="11"] {
  background: linear-gradient(180deg,
    #0a0e1a 0%,
    #1a1f2e 100%);
}
.ki-story__catch-text {
  font-family: var(--font-display, "Space Grotesk", system-ui);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #FAFAF8;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) 250ms,
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
}
.ki-story__layer.is-active .ki-story__catch-text {
  opacity: 1;
  transform: none;
}
.ki-story__layer.is-active .ki-story__catch-text:nth-child(2) {
  transition-delay: 700ms;
}
.ki-story__catch-text--gold {
  color: #C99B5C;
}
.ki-story__catch-text--sub {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
  margin-top: 14px;
  letter-spacing: -0.02em;
}
.ki-story__catch-text--brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #FAFAF8;
}

/* === CAPTION (Mo Live #29: Editorial Lower-Third, kein Pille mehr) ===
   Großer Display-Font, links positioniert, Slide-In von links.
   Statt mittig-rundlich → cinematic editorial look. */
.ki-story__caption {
  position: absolute;
  bottom: 18%;
  left: 6%;
  max-width: 50%;
  font-family: var(--font-display, "Space Grotesk", system-ui);
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FAFAF8;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.7),
    0 0 2px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms,
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms;
  z-index: 10;
  pointer-events: none;
  white-space: normal;
}
.ki-story__caption.is-active {
  opacity: 1;
  transform: translateX(0);
}
/* Akzent-Strich links neben dem Caption-Text (editorial detail) */
.ki-story__caption::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #C99B5C;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(201, 155, 92, 0.6);
}
@media (max-width: 768px) {
  .ki-story__caption {
    bottom: 14%;
    left: 5%;
    right: 5%;
    max-width: 90%;
  }
  .ki-story__caption::before {
    width: 36px;
    height: 2px;
    margin-bottom: 10px;
  }
}

/* === MOTION GRAPHICS LAYERS (Mo Live #27: viel reicher) === */
.ki-story__layer--motion {
  background: radial-gradient(ellipse at center, #131826 0%, #0a0e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ki-story__motion-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Animated Background Layers (Grid + Pulse-Wellen) === */
.kis-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 155, 92, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 155, 92, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  animation: kisGridDrift 18s linear infinite;
}
@keyframes kisGridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}
.kis-bg-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  border: 2px solid rgba(201, 155, 92, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.ki-story__layer.is-active .kis-bg-pulse {
  animation: kisPulseExpand 3.4s ease-out infinite;
}
.ki-story__layer.is-active .kis-bg-pulse--2 {
  animation-delay: 1.1s;
}
.ki-story__layer.is-active .kis-bg-pulse--3 {
  animation-delay: 2.2s;
}
@keyframes kisPulseExpand {
  0%   { width: 80px;  height: 80px;  opacity: 0.6; border-color: rgba(201, 155, 92, 0.6); }
  100% { width: 1200px; height: 1200px; opacity: 0; border-color: rgba(201, 155, 92, 0); }
}

/* === KI-NODE (mit Glow + Aura) === */
.kis-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 155, 92, 0.45) 0%, rgba(201, 155, 92, 0.08) 65%, transparent 100%);
  border: 2px solid rgba(201, 155, 92, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAFAF8;
  font-family: var(--font-display, "Space Grotesk", system-ui);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.15em;
  opacity: 0;
  z-index: 5;
}
.kis-node--glow {
  box-shadow: 0 0 60px rgba(201, 155, 92, 0.4), 0 0 120px rgba(201, 155, 92, 0.15);
}
.kis-node-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 155, 92, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: kisNodeGlow 2.4s ease-in-out infinite;
}
.kis-node-text {
  position: relative;
  z-index: 2;
}
.ki-story__layer.is-active .kis-node {
  animation: kisNodeFadeIn 600ms ease 200ms forwards, kisNodeBreath 3.2s ease-in-out infinite 800ms;
}
@keyframes kisNodeFadeIn { to { opacity: 1; } }
@keyframes kisNodeBreath {
  0%, 100% { box-shadow: 0 0 60px rgba(201, 155, 92, 0.35), 0 0 120px rgba(201, 155, 92, 0.12); }
  50%      { box-shadow: 0 0 80px rgba(201, 155, 92, 0.65), 0 0 160px rgba(201, 155, 92, 0.25); }
}
@keyframes kisNodeGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 0.9; }
}

/* === ORBITAL RINGS === */
.kis-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(201, 155, 92, 0.25);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0);
}
.kis-orbit--1 { width: 280px; height: 280px; }
.kis-orbit--2 { width: 440px; height: 440px; border-color: rgba(201, 155, 92, 0.15); border-style: dashed; }
.ki-story__layer.is-active .kis-orbit--1 { animation: kisOrbitSpin 8s linear infinite; }
.ki-story__layer.is-active .kis-orbit--2 { animation: kisOrbitSpin 14s linear infinite reverse; }
@keyframes kisOrbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.kis-orbit-dot {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  background: #C99B5C;
  border-radius: 50%;
  box-shadow: 0 0 16px #C99B5C, 0 0 32px rgba(201, 155, 92, 0.5);
  transform: translateX(-50%);
}

/* === PARTICLES === */
.kis-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: #C99B5C;
  border-radius: 50%;
  box-shadow: 0 0 10px #C99B5C, 0 0 20px rgba(201, 155, 92, 0.6);
  opacity: 0;
  pointer-events: none;
}
.ki-story__layer.is-active .kis-particle {
  animation: kisParticleFloat 4s ease-in-out infinite;
}
@keyframes kisParticleFloat {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20%      { opacity: 1; }
  50%      { opacity: 1; transform: translate(15px, -15px) scale(1.4); }
  80%      { opacity: 1; }
}

/* === SOURCE-ICONS (Brand-Logos in Ecken) === */
.kis-source {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(250, 250, 248, 0.06);
  border: 1px solid rgba(201, 155, 92, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  z-index: 4;
}
.kis-source svg { width: 100%; height: 100%; }
.kis-source--gmail    { color: #EA4335; }
.kis-source--outlook  { color: #0078D4; }
.kis-source--whatsapp { color: #25D366; }
.kis-source--calendar { color: #FBBC05; }
.ki-story__layer.is-active .kis-source {
  animation: kisSourceIn 700ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             kisSourceFloat 3.2s ease-in-out infinite 1.2s;
}
.ki-story__layer.is-active .kis-source--gmail    { animation-delay: 200ms, 1.2s; }
.ki-story__layer.is-active .kis-source--outlook  { animation-delay: 400ms, 1.5s; }
.ki-story__layer.is-active .kis-source--whatsapp { animation-delay: 600ms, 1.8s; }
.ki-story__layer.is-active .kis-source--calendar { animation-delay: 800ms, 2.1s; }
@keyframes kisSourceIn {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes kisSourceFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* === CONNECTIONS (animated dashed lines) === */
.kis-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.ki-story__layer.is-active .kis-connections {
  animation: kisFadeIn 600ms ease 1000ms forwards;
}
.kis-line {
  stroke: #C99B5C;
  stroke-width: 0.25;
  stroke-dasharray: 1.5 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}
.ki-story__layer.is-active .kis-line {
  animation: kisLineFlow 2s linear infinite;
}
.ki-story__layer.is-active .kis-line--d2 { animation-delay: -0.5s; }
.ki-story__layer.is-active .kis-line--d3 { animation-delay: -1s;   }
.ki-story__layer.is-active .kis-line--d4 { animation-delay: -1.5s; }
@keyframes kisLineFlow {
  to { stroke-dashoffset: -12; }
}
@keyframes kisFadeIn { to { opacity: 1; } }

/* Shot 6 alte Email-Fly bleibt nicht aktiv, ist überdeckt */
.kis-shot-6 .kis-email { display: none; }

/* === Mo Live #29 v2: Shot 6 COLLAPSE — Sources werden zur KI-Node-Mitte gesaugt ===
   FIX: statt transition (die mit den laufenden Float-Animations kollidiert) nutzen
   wir jeweils eine eigene Keyframe-Animation pro Icon. Diese überschreibt
   `kisSourceIn` und `kisSourceFloat` komplett. */
@keyframes kisCollapseGmail {
  0%   { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  40%  { transform: translate(15vw, 12vh) scale(0.85) rotate(8deg); opacity: 1; }
  100% { transform: translate(38vw, 30vh) scale(0.1) rotate(35deg); opacity: 0; }
}
@keyframes kisCollapseOutlook {
  0%   { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  40%  { transform: translate(-15vw, 12vh) scale(0.85) rotate(-8deg); opacity: 1; }
  100% { transform: translate(-38vw, 30vh) scale(0.1) rotate(-35deg); opacity: 0; }
}
@keyframes kisCollapseWhatsapp {
  0%   { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  40%  { transform: translate(15vw, -12vh) scale(0.85) rotate(-8deg); opacity: 1; }
  100% { transform: translate(38vw, -30vh) scale(0.1) rotate(-35deg); opacity: 0; }
}
@keyframes kisCollapseCalendar {
  0%   { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  40%  { transform: translate(-15vw, -12vh) scale(0.85) rotate(8deg); opacity: 1; }
  100% { transform: translate(-38vw, -30vh) scale(0.1) rotate(35deg); opacity: 0; }
}
.ki-story__layer[data-shot="6"].is-collapsing .kis-source--gmail {
  animation: kisCollapseGmail 1.4s cubic-bezier(0.6, 0, 0.35, 1) forwards !important;
}
.ki-story__layer[data-shot="6"].is-collapsing .kis-source--outlook {
  animation: kisCollapseOutlook 1.4s cubic-bezier(0.6, 0, 0.35, 1) forwards !important;
}
.ki-story__layer[data-shot="6"].is-collapsing .kis-source--whatsapp {
  animation: kisCollapseWhatsapp 1.4s cubic-bezier(0.6, 0, 0.35, 1) forwards !important;
}
.ki-story__layer[data-shot="6"].is-collapsing .kis-source--calendar {
  animation: kisCollapseCalendar 1.4s cubic-bezier(0.6, 0, 0.35, 1) forwards !important;
}
/* Connection-Lines werden gleichzeitig schwächer */
.ki-story__layer[data-shot="6"].is-collapsing .kis-connections {
  transition: opacity 800ms ease 200ms !important;
  opacity: 0 !important;
}
/* KI-Node pulsiert kraftvoll auf (saugt alles auf) */
.ki-story__layer[data-shot="6"].is-collapsing .kis-node {
  animation: kisNodeAbsorb 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
@keyframes kisNodeAbsorb {
  0%   { transform: scale(1); box-shadow: 0 0 60px rgba(201, 155, 92, 0.4); }
  60%  { transform: scale(1.35); box-shadow: 0 0 140px rgba(201, 155, 92, 0.9), 0 0 220px rgba(201, 155, 92, 0.4); }
  100% { transform: scale(1.6); box-shadow: 0 0 180px rgba(201, 155, 92, 0.95), 0 0 280px rgba(201, 155, 92, 0.6); opacity: 0.4; }
}
/* Orbital + Particles gleichzeitig fade-out */
.ki-story__layer[data-shot="6"].is-collapsing .kis-orbit,
.ki-story__layer[data-shot="6"].is-collapsing .kis-particle {
  transition: opacity 600ms ease !important;
  opacity: 0 !important;
}

/* Shot 6: KI empfängt — Email fliegt zu KI-Node */
.kis-shot-6 .kis-email {
  position: absolute;
  left: -10%;
  top: 50%;
  width: 64px;
  height: 48px;
  margin-top: -24px;
  color: #C99B5C;
}
.ki-story__layer[data-shot="6"].is-active .kis-shot-6 .kis-email {
  animation: kisEmailFlyIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}
@keyframes kisEmailFlyIn {
  0%   { left: -10%;  opacity: 0; transform: scale(0.7); }
  20%  { opacity: 1; }
  60%  { left: 50%; transform: translateX(-50%) scale(1); }
  100% { left: 50%; opacity: 0; transform: translateX(-50%) scale(0.4); }
}
.kis-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 155, 92, 0.4) 0%, rgba(201, 155, 92, 0.05) 70%);
  border: 2px solid rgba(201, 155, 92, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C99B5C;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2em;
  opacity: 0;
}
.ki-story__layer[data-shot="6"].is-active .kis-node,
.ki-story__layer[data-shot="7"].is-active .kis-node,
.ki-story__layer[data-shot="8"].is-active .kis-node {
  animation: kisNodePulse 2.4s ease-in-out infinite, kisNodeFadeIn 600ms ease 400ms forwards;
}
@keyframes kisNodeFadeIn { to { opacity: 1; } }
@keyframes kisNodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 155, 92, 0.45), 0 0 40px rgba(201, 155, 92, 0.2); }
  50%      { box-shadow: 0 0 0 24px rgba(201, 155, 92, 0), 0 0 60px rgba(201, 155, 92, 0.4); }
}

/* Shot 7: KI sortiert — 4 Streams aus Node */
.kis-shot-7 .kis-stream {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C99B5C 50%, transparent);
  transform-origin: left center;
  opacity: 0;
}
.kis-shot-7 .kis-stream--1 { transform: translate(0, 0) rotate(-60deg); }
.kis-shot-7 .kis-stream--2 { transform: translate(0, 0) rotate(-20deg); }
.kis-shot-7 .kis-stream--3 { transform: translate(0, 0) rotate(20deg); }
.kis-shot-7 .kis-stream--4 { transform: translate(0, 0) rotate(60deg); }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-stream {
  animation: kisStreamGrow 1.2s ease-out forwards;
}
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-stream--1 { animation-delay: 600ms; }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-stream--2 { animation-delay: 800ms; }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-stream--3 { animation-delay: 1000ms; }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-stream--4 { animation-delay: 1200ms; }
@keyframes kisStreamGrow {
  0%   { transform-origin: left center; transform: scaleX(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform-origin: left center; transform: scaleX(1); opacity: 1; }
}
.kis-shot-7 .kis-stream {
  /* fix: re-merge transforms so rotation + scale don't fight */
}
.kis-shot-7 .kis-label {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 8px 16px;
  background: rgba(250, 250, 248, 0.08);
  border: 1px solid rgba(201, 155, 92, 0.4);
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FAFAF8;
  white-space: nowrap;
  opacity: 0;
  transform-origin: center;
}
.kis-shot-7 .kis-label--1 { transform: translate(140px, -240px); }
.kis-shot-7 .kis-label--2 { transform: translate(280px, -100px); }
.kis-shot-7 .kis-label--3 { transform: translate(280px, 80px); }
.kis-shot-7 .kis-label--4 { transform: translate(140px, 220px); }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-label {
  animation: kisLabelPop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-label--1 { animation-delay: 1400ms; }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-label--2 { animation-delay: 1700ms; }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-label--3 { animation-delay: 2000ms; }
.ki-story__layer[data-shot="7"].is-active .kis-shot-7 .kis-label--4 { animation-delay: 2300ms; }
@keyframes kisLabelPop {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Shot 8: Email-Schwarm */
.kis-shot-8 .kis-swarm-mail {
  position: absolute;
  width: 30px;
  height: 24px;
  color: #C99B5C;
  opacity: 0;
  z-index: 6;
}
.ki-story__layer[data-shot="8"].is-active .kis-shot-8 .kis-swarm-mail {
  animation: kisSwarmIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes kisSwarmIn {
  0%   { opacity: 0; transform: translate(var(--from-x, -200px), var(--from-y, -150px)) scale(0.5) rotate(-15deg); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0); }
}
.kis-shot-8 .kis-counter-wrap {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 8;
  opacity: 0;
}
.ki-story__layer[data-shot="8"].is-active .kis-shot-8 .kis-counter-wrap {
  animation: kisFadeIn 600ms ease 800ms forwards;
}
.kis-shot-8 .kis-counter-num {
  font-family: var(--font-display, "Space Grotesk", system-ui);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #C99B5C;
  line-height: 1;
  text-shadow: 0 0 30px rgba(201, 155, 92, 0.5);
}
.kis-shot-8 .kis-counter-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.7);
}

/* Shot 9: Auto-Reply Flow — Kalender + Typewriter */
.kis-shot-9 .kis-calendar {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(250, 250, 248, 0.04);
  border: 1px solid rgba(201, 155, 92, 0.3);
  border-radius: 12px;
  padding: 20px;
  opacity: 0;
}
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-calendar {
  animation: kisFadeUp 700ms ease-out 300ms forwards;
}
.kis-shot-9 .kis-cal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(250, 250, 248, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: rgba(250, 250, 248, 0.5);
  letter-spacing: 0.05em;
}
.kis-shot-9 .kis-cal-row.is-filled {
  background: rgba(201, 155, 92, 0.12);
  color: #FAFAF8;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 -10px;
}
.kis-shot-9 .kis-cal-row .kis-cal-time { color: rgba(250, 250, 248, 0.7); min-width: 64px; }
.kis-shot-9 .kis-cal-row.is-filled .kis-cal-time { color: #C99B5C; }
.kis-shot-9 .kis-cal-row.is-filled::before {
  content: "✓";
  color: #C99B5C;
}
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-cal-row {
  transition: background 400ms ease, color 400ms ease;
}
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-cal-row:nth-child(1) { animation: kisFillRow 0ms 1200ms forwards; }
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-cal-row:nth-child(2) { animation: kisFillRow 0ms 1800ms forwards; }
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-cal-row:nth-child(4) { animation: kisFillRow 0ms 2400ms forwards; }
@keyframes kisFillRow {
  to {
    background: rgba(201, 155, 92, 0.12);
    color: #FAFAF8;
  }
}

.kis-shot-9 .kis-reply {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background: rgba(250, 250, 248, 0.04);
  border: 1px solid rgba(201, 155, 92, 0.3);
  border-radius: 12px;
  padding: 20px;
  font-family: var(--font-body, system-ui);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(250, 250, 248, 0.85);
  opacity: 0;
}
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-reply {
  animation: kisFadeUp 700ms ease-out 500ms forwards;
}
.kis-shot-9 .kis-reply-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C99B5C;
  margin-bottom: 10px;
}
.kis-shot-9 .kis-reply-typed {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-reply-typed {
  animation: kisTypewriter 2.4s steps(40, end) 1200ms forwards;
}
@keyframes kisTypewriter {
  from { width: 0; }
  to   { width: 100%; }
}
.kis-shot-9 .kis-reply-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-reply-line:nth-of-type(1) { animation: kisTypewriter 1.4s steps(30, end) 1000ms forwards; }
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-reply-line:nth-of-type(2) { animation: kisTypewriter 1.4s steps(30, end) 2400ms forwards; }
.ki-story__layer[data-shot="9"].is-active .kis-shot-9 .kis-reply-line:nth-of-type(3) { animation: kisTypewriter 1.4s steps(28, end) 3800ms forwards; }

@keyframes kisFadeUp {
  0%   { opacity: 0; transform: translateY(-40%); }
  100% { opacity: 1; transform: translateY(-50%); }
}

/* === CONTROLS === */
.ki-story__controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 20;
}
.ki-story__progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 1px;
  overflow: hidden;
}
.ki-story__progress-fill {
  height: 100%;
  width: 0%;
  background: #C99B5C;
  transition: width 80ms linear;
}
.ki-story__skip {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FAFAF8;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.ki-story__skip:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.4);
}

/* === MOBILE === */
@media (max-width: 768px) {
  .ki-story__catch-text { font-size: clamp(36px, 11vw, 80px); }
  .ki-story__catch-text--sub { font-size: clamp(22px, 6vw, 36px); }
  .ki-story__caption { font-size: 11px; padding: 10px 18px; bottom: 90px; }
  .kis-node { width: 120px; height: 120px; margin: -60px 0 0 -60px; font-size: 14px; }
  .kis-shot-7 .kis-label--1 { transform: translate(80px, -160px); font-size: 10px; }
  .kis-shot-7 .kis-label--2 { transform: translate(160px, -60px); font-size: 10px; }
  .kis-shot-7 .kis-label--3 { transform: translate(160px, 40px); font-size: 10px; }
  .kis-shot-7 .kis-label--4 { transform: translate(80px, 140px); font-size: 10px; }
  .kis-shot-9 .kis-calendar { left: 4%; width: 42vw; padding: 14px; }
  .kis-shot-9 .kis-reply { right: 4%; width: 42vw; padding: 14px; font-size: 11px; }
}

/* === BIG-NUMBER-OVERLAY (Mo Live #27) — Lesbare Anzeige über Higgsfield-Video === */
.kis-bignumber {
  position: absolute;
  top: 14%;
  right: 6%;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(201, 155, 92, 0.32);
  border-radius: 18px;
  padding: 24px 32px;
  color: #FAFAF8;
  z-index: 15;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 400ms,
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 400ms;
  pointer-events: none;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  min-width: 200px;
}
.kis-bignumber.is-active {
  opacity: 1;
  transform: none;
}
.kis-bignumber__count {
  font-family: var(--font-display, "Space Grotesk", system-ui);
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 700;
  color: #C99B5C;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(201, 155, 92, 0.4);
}
.kis-bignumber__label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.85;
  color: #FAFAF8;
}
.kis-bignumber__sub {
  margin-top: 8px;
  font-family: var(--font-body, system-ui);
  font-style: italic;
  font-size: 13px;
  color: rgba(250, 250, 248, 0.7);
}
@media (max-width: 768px) {
  .kis-bignumber {
    top: 8%;
    right: 4%;
    padding: 14px 18px;
    min-width: 140px;
  }
  .kis-bignumber__count { font-size: 44px; }
  .kis-bignumber__label { font-size: 9.5px; }
  .kis-bignumber__sub   { font-size: 11px; }
}

/* === REPLAY-BUTTON (Mo Live #27) — erscheint nach Story-Ende === */
.ki-story__replay {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(201, 155, 92, 0.95);
  color: #0a0e1a;
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease, background 200ms ease;
  z-index: 25;
  box-shadow: 0 18px 40px rgba(201, 155, 92, 0.35), 0 0 0 0 rgba(201, 155, 92, 0.5);
}
.ki-story__replay.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  animation: kisReplayPulse 2s ease-out infinite 600ms;
}
.ki-story__replay:hover {
  background: #D4A769;
}
@keyframes kisReplayPulse {
  0%   { box-shadow: 0 18px 40px rgba(201, 155, 92, 0.35), 0 0 0 0 rgba(201, 155, 92, 0.6); }
  100% { box-shadow: 0 18px 40px rgba(201, 155, 92, 0.35), 0 0 0 24px rgba(201, 155, 92, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ki-story__layer { transition: none !important; }
  .ki-story__catch-text { transition: none !important; }
  .ki-story__caption { transition: none !important; }
  .kis-node { animation: kisNodeFadeIn 1ms forwards !important; }
  .kis-shot-6 .kis-email,
  .kis-shot-7 .kis-stream,
  .kis-shot-7 .kis-label,
  .kis-shot-8 .kis-swarm-mail,
  .kis-shot-8 .kis-counter,
  .kis-shot-9 .kis-calendar,
  .kis-shot-9 .kis-reply,
  .kis-shot-9 .kis-reply-line { animation: none !important; opacity: 1 !important; }
}
