/* ───────────────────────────────────────────────────────── */
/* Brand tokens                                              */
/* ───────────────────────────────────────────────────────── */
.story-wrap {
  --brand-secondary: #a2f11c;
  --brand-primary: #798fb6;
  --brand-dark: #080d14;

  /* The story-stage is always rendered on a hardcoded dark gradient.
     Force the theme tokens to their dark-mode values so Tailwind utilities
     like text-foreground / border-foreground/X resolve to light surfaces
     even when the surrounding page is in light mode. */
  --foreground: #faf7f4;
  --background: #080d14;
  --card-foreground: #faf7f4;
  --muted-foreground: rgba(250, 247, 244, 0.68);
  --border: rgba(250, 247, 244, 0.1);
}

/* Outer track defines the scroll runway: 7 frames * 100vh */
.story-track {
  height: 700dvh;
}

.story-stage {
  perspective: 1400px;
  perspective-origin: 50% 50%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(121, 143, 182, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #080d14 0%, #0b121d 50%, #080d14 100%);
}

/* ───────────────────────────────────────────────────────── */
/* Background atmospherics                                    */
/* ───────────────────────────────────────────────────────── */
.story-bg-grad {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(162, 241, 28, 0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 70%, rgba(121, 143, 182, 0.1) 0%, transparent 45%);
}
.story-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
.story-orb--a {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(162, 241, 28, 0.5) 0%, transparent 70%);
  animation: orb-drift-a 26s ease-in-out infinite alternate;
}
.story-orb--b {
  width: 640px;
  height: 640px;
  right: -160px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(121, 143, 182, 0.6) 0%, transparent 70%);
  animation: orb-drift-b 32s ease-in-out infinite alternate;
}
.story-orb--c {
  width: 380px;
  height: 380px;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196, 144, 255, 0.35) 0%, transparent 70%);
  animation: orb-drift-c 22s ease-in-out infinite alternate;
}
@keyframes orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-120px, -40px) scale(0.9); }
}
@keyframes orb-drift-c {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-40%, -55%) scale(1.15); }
}

.story-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ───────────────────────────────────────────────────────── */
/* Frames container — 3D layered                              */
/* ───────────────────────────────────────────────────────── */
.story-frames {
  transform-style: preserve-3d;
}

.story-frame {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateX(60px) translateZ(-300px) rotateY(-3deg);
  /* opacity & transform are JS-driven per scroll frame; no CSS transition (would cause catch-up snap) */
  pointer-events: none;
  will-change: transform, opacity;
}
.story-frame[data-state='active'] {
  /* pre-JS fallback so first frame is visible before script runs */
  opacity: 1;
  transform: translateX(0) translateZ(0) rotateY(0deg);
  pointer-events: auto;
}

/* Layer depth */
.story-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.story-layer--bg {
  transform: translateZ(-400px) scale(1.4);
}
.story-layer--mid {
  /* center horizontally with content max-width so text/mockup don't sprawl on wide screens */
  inset: auto;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 88rem;
  transform: translateZ(0) translateX(-50%);
  /* clear HUD (top) and skip button (bottom) so content centers within the safe band */
  padding-top: 5rem;
  padding-bottom: 5rem;
  /* fixed-size two-column composition for content frames (inert on flex-col intro/outro) */
  grid-template-columns: minmax(0, 32rem) minmax(0, 36rem);
  justify-content: center;
  column-gap: 3rem;
}
.story-layer--front {
  transform: translateZ(120px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6vh;
  pointer-events: none;
}
.story-frame[data-idx='0'] .story-layer--front,
.story-frame[data-idx='6'] .story-layer--front {
  pointer-events: auto;
}
/* Intro / Outro: stacked column inside layer--mid */
.story-frame[data-idx='0'] .story-layer--mid,
.story-frame[data-idx='6'] .story-layer--mid {
  pointer-events: auto;
}
.intro-copy,
.outro-copy {
  transform: translateZ(60px);
}
.story-frame[data-idx='0'][data-state='active'] .intro-copy,
.story-frame[data-idx='6'][data-state='active'] .outro-copy {
  animation: text-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* ───────────────────────────────────────────────────────── */
/* Frame text typography                                      */
/* ───────────────────────────────────────────────────────── */
.frame-text {
  transform: translateZ(80px);
  max-width: 32rem;
  display: flex;
  flex-direction: column;
}
.frame-num {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(250, 247, 244, 0.45);
  margin-bottom: 0.85rem;
}
.frame-pain {
  font-style: italic;
  color: rgba(250, 247, 244, 0.6);
  border-left: 2px solid var(--brand-secondary);
  padding-left: 0.9rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.frame-title {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #faf7f4;
  margin-bottom: 1.15rem;
}
.frame-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(250, 247, 244, 0.72);
  margin-bottom: 1.4rem;
}
.frame-bullets {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.frame-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(250, 247, 244, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}
.frame-bullets li svg {
  color: var(--brand-secondary);
  flex-shrink: 0;
}
.frame-proof {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(162, 241, 28, 0.08);
  border: 1px solid rgba(162, 241, 28, 0.3);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  /* shrink-to-content; otherwise flex-column parent stretches it to full width */
  align-self: flex-start;
  max-width: 100%;
}
.frame-proof-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-secondary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.frame-proof-label {
  font-size: 0.8rem;
  color: rgba(250, 247, 244, 0.7);
  line-height: 1.35;
  max-width: 22rem;
}

/* Frame text staggered reveal on activation */
.story-frame[data-state='active'] .frame-num,
.story-frame[data-state='active'] .frame-pain,
.story-frame[data-state='active'] .frame-title,
.story-frame[data-state='active'] .frame-body,
.story-frame[data-state='active'] .frame-bullets,
.story-frame[data-state='active'] .frame-proof {
  animation: text-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.story-frame[data-state='active'] .frame-num    { animation-delay: 0.05s; }
.story-frame[data-state='active'] .frame-pain   { animation-delay: 0.18s; }
.story-frame[data-state='active'] .frame-title  { animation-delay: 0.30s; }
.story-frame[data-state='active'] .frame-body   { animation-delay: 0.45s; }
.story-frame[data-state='active'] .frame-bullets{ animation-delay: 0.60s; }
.story-frame[data-state='active'] .frame-proof  { animation-delay: 0.75s; }

@keyframes text-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────────────────────── */
/* Frame BG glows                                             */
/* ───────────────────────────────────────────────────────── */
.frame-glow {
  position: absolute;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 1s, transform 1s;
}
.story-frame[data-state='active'] .frame-glow {
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(1);
}
.frame-glow--blue   { background: radial-gradient(circle, #4c7dff 0%, transparent 70%); }
.frame-glow--violet { background: radial-gradient(circle, #c490ff 0%, transparent 70%); }
.frame-glow--lime   { background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%); }
.frame-glow--cyan   { background: radial-gradient(circle, #4ad7ff 0%, transparent 70%); }
.frame-glow--magenta{ background: radial-gradient(circle, #ff6dc0 0%, transparent 70%); }

/* ───────────────────────────────────────────────────────── */
/* Mockup chrome — generic                                    */
/* ───────────────────────────────────────────────────────── */
.mockup {
  position: relative;
  width: 100%;
  max-width: 36rem;
  height: 70vh;
  max-height: 620px;
  transform-style: preserve-3d;
}
.mockup-frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0e1623 0%, #0a0f17 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateZ(40px) rotateY(-4deg) rotateX(2deg);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}
.story-frame[data-state='active'] .mockup-frame {
  transform: translateZ(80px) rotateY(-2deg) rotateX(1deg);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mockup-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #febc2e; }
.mockup-bar i:nth-child(3) { background: #28c840; }
.mockup-bar span {
  margin-left: 0.7rem;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.mockup-body {
  padding: 1.4rem;
  height: calc(100% - 40px);
  overflow: hidden;
}
.mockup-card {
  position: absolute;
  background: linear-gradient(160deg, #111923 0%, #0a0f17 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateZ(140px);
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.story-frame[data-state='active'] .mockup-card {
  opacity: 1;
  transform: translateZ(180px) translateY(0);
}
.mockup-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(250, 247, 244, 0.5);
  margin-bottom: 0.6rem;
}

/* ── Frame 1: Gantt ─────────────────────────────── */
.gantt {
  display: grid;
  gap: 0.65rem;
  position: relative;
}
/* "Heute"-Cursor */
.gantt::after {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 56%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--brand-secondary) 25%, var(--brand-secondary) 75%, transparent 100%);
  box-shadow: 0 0 10px var(--brand-secondary);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.story-frame[data-idx='1'][data-state='active'] .gantt::after {
  animation: today-cursor 2.8s ease-in-out 1.4s infinite;
}
@keyframes today-cursor {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
/* sanfter Sweep über das Chart */
.gantt::before {
  content: '';
  position: absolute;
  inset: -8px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(162, 241, 28, 0.07) 45%, rgba(162, 241, 28, 0.12) 50%, rgba(162, 241, 28, 0.07) 55%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}
.story-frame[data-idx='1'][data-state='active'] .gantt::before {
  animation: gantt-scan 5.5s ease-in-out 2.2s infinite;
}
@keyframes gantt-scan {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.gantt-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 0.8rem;
}
.gantt-row > span {
  font-size: 12px;
  color: rgba(250, 247, 244, 0.65);
}
.gantt-row > b {
  display: block;
  height: 14px;
  background: var(--c, #fff);
  border-radius: 6px;
  margin-left: var(--d, 0%);
  width: var(--w, 50%);
  transform-origin: left center;
  transform: scaleX(0);
  animation: gantt-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 0 14px color-mix(in srgb, var(--c, #fff) 40%, transparent);
}
.story-frame[data-state='active'] .gantt-row:nth-child(1) > b { animation-delay: 0.5s; }
.story-frame[data-state='active'] .gantt-row:nth-child(2) > b { animation-delay: 0.6s; }
.story-frame[data-state='active'] .gantt-row:nth-child(3) > b { animation-delay: 0.7s; }
.story-frame[data-state='active'] .gantt-row:nth-child(4) > b { animation-delay: 0.8s; }
.story-frame[data-state='active'] .gantt-row:nth-child(5) > b { animation-delay: 0.9s; }
@keyframes gantt-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.mockup-card--load {
  right: -2rem;
  bottom: -2rem;
  width: 220px;
}
.load-bars {
  display: grid;
  gap: 0.45rem;
}
.load-bars > div {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.7);
}
.load-bars b {
  height: 6px;
  background: var(--c, var(--brand-secondary));
  border-radius: 3px;
  width: var(--v, 50%);
  transform-origin: left center;
  transform: scaleX(0);
  animation: gantt-grow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow: 0 0 10px color-mix(in srgb, var(--c, var(--brand-secondary)) 35%, transparent);
}
.story-frame[data-idx='1'][data-state='active'] .load-bars > div:nth-child(1) b { animation-delay: 1.05s; }
.story-frame[data-idx='1'][data-state='active'] .load-bars > div:nth-child(2) b { animation-delay: 1.15s; }
.story-frame[data-idx='1'][data-state='active'] .load-bars > div:nth-child(3) b { animation-delay: 1.25s; }
.story-frame[data-idx='1'][data-state='active'] .load-bars > div:nth-child(4) b { animation-delay: 1.35s; }

/* ── Frame 2: Pipeline ──────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  height: 100%;
}
.pipe-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pipe-col h6 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(250, 247, 244, 0.45);
  margin: 0 0 0.3rem 0;
  font-weight: 600;
}
.pipe-card {
  background: linear-gradient(160deg, #142031 0%, #0d141f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.85);
  line-height: 1.4;
  cursor: grab;
}
.pipe-card em {
  font-style: normal;
  color: var(--brand-primary);
  font-size: 10px;
}
.pipe-card--hot {
  border-color: rgba(255, 109, 192, 0.4);
  box-shadow: 0 0 14px rgba(255, 109, 192, 0.2);
}
.pipe-card--won {
  border-color: rgba(162, 241, 28, 0.5);
  box-shadow: 0 0 14px rgba(162, 241, 28, 0.25);
}
.pipe-card--won em { color: var(--brand-secondary); }
.story-frame[data-idx='2'][data-state='active'] .pipe-card {
  animation: pipe-drop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.story-frame[data-idx='2'][data-state='active'] .pipe-col:nth-child(1) .pipe-card:nth-child(2) { animation-delay: 0.55s; }
.story-frame[data-idx='2'][data-state='active'] .pipe-col:nth-child(1) .pipe-card:nth-child(3) { animation-delay: 0.65s; }
.story-frame[data-idx='2'][data-state='active'] .pipe-col:nth-child(2) .pipe-card:nth-child(2) { animation-delay: 0.75s; }
.story-frame[data-idx='2'][data-state='active'] .pipe-col:nth-child(2) .pipe-card:nth-child(3) { animation-delay: 0.85s; }
.story-frame[data-idx='2'][data-state='active'] .pipe-col:nth-child(3) .pipe-card:nth-child(2) { animation-delay: 0.95s; }
.story-frame[data-idx='2'][data-state='active'] .pipe-col:nth-child(4) .pipe-card:nth-child(2) { animation-delay: 1.05s; }
@keyframes pipe-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mockup-card--mail {
  right: -2.5rem;
  top: -1.5rem;
  width: 240px;
}
.mail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
}
.mail-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 8px var(--brand-secondary);
  animation: dot-pulse 2s ease-in-out infinite;
}
.mail-row b { color: rgba(250, 247, 244, 0.92); }
.mail-row em { margin-left: auto; color: rgba(250, 247, 244, 0.4); font-style: normal; }
.mockup-card--mail p {
  margin: 0.4rem 0 0 0;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.7);
  line-height: 1.5;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

/* ── Frame 3: Time + Doc ────────────────────────── */
.timer-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(162, 241, 28, 0.06);
  border: 1px solid rgba(162, 241, 28, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.timer-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 14px var(--brand-secondary);
  animation: timer-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes timer-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}
.timer-info { flex: 1; }
.timer-info p {
  font-size: 11px;
  color: rgba(250, 247, 244, 0.6);
  margin: 0 0 0.2rem 0;
}
.timer-clock {
  font-family: ui-monospace, monospace;
  font-size: 1.3rem;
  color: var(--brand-secondary);
  letter-spacing: 1px;
}
.timer-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(250, 247, 244, 0.85);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.timer-list {
  display: grid;
  gap: 0.5rem;
}
.timer-list > div {
  display: grid;
  grid-template-columns: 30px 1fr 60px;
  align-items: center;
  gap: 0.6rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.7);
}
.timer-list b {
  height: 6px;
  background: linear-gradient(90deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 40%, transparent));
  border-radius: 3px;
  width: var(--w, 50%);
  transform-origin: left;
  transform: scaleX(0);
  animation: gantt-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.timer-list em {
  font-style: normal;
  text-align: right;
  color: rgba(250, 247, 244, 0.55);
  font-family: ui-monospace, monospace;
}
.story-frame[data-idx='3'][data-state='active'] .timer-list > div:nth-child(1) b { animation-delay: 0.6s; }
.story-frame[data-idx='3'][data-state='active'] .timer-list > div:nth-child(2) b { animation-delay: 0.7s; }
.story-frame[data-idx='3'][data-state='active'] .timer-list > div:nth-child(3) b { animation-delay: 0.8s; }
.story-frame[data-idx='3'][data-state='active'] .timer-list > div:nth-child(4) b { animation-delay: 0.9s; }

.mockup-card--doc {
  right: -2rem;
  bottom: -1.5rem;
  width: 240px;
}
.doc-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.85);
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.doc-head svg {
  color: var(--brand-secondary);
}
.doc-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin: 0.4rem 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.doc-line--w70 { width: 70%; }
.doc-line--w50 { width: 50%; }
.doc-line--filled {
  background: rgba(162, 241, 28, 0.6);
}
.doc-line--filling::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-secondary);
  transform-origin: left;
  transform: scaleX(0);
  animation: doc-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.9s infinite;
}
@keyframes doc-fill {
  0%   { transform: scaleX(0); }
  60%  { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}
.doc-badge {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-secondary);
  background: rgba(162, 241, 28, 0.1);
  border: 1px solid rgba(162, 241, 28, 0.3);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

/* ── Frame 4: Vault ─────────────────────────────── */
.mockup--vault {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vault {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(60px);
}
.vault-shield {
  position: relative;
  width: 140px;
  height: 140px;
  background: rgba(162, 241, 28, 0.08);
  border: 1px solid rgba(162, 241, 28, 0.4);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(162, 241, 28, 0.25);
  z-index: 2;
  animation: vault-breathe 4s ease-in-out infinite;
}
.vault-lock {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  background: var(--brand-secondary);
  color: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(162, 241, 28, 0.6);
}
@keyframes vault-breathe {
  0%, 100% { box-shadow: 0 0 60px rgba(162, 241, 28, 0.25); }
  50%      { box-shadow: 0 0 100px rgba(162, 241, 28, 0.5); }
}
.vault-rings {
  position: absolute;
  inset: 0;
}
.vault-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(162, 241, 28, 0.3);
  border-radius: 50%;
  animation: vault-ring 4s ease-in-out infinite;
}
.vault-ring--a { animation-delay: 0s; }
.vault-ring--b { animation-delay: 0.7s; }
.vault-ring--c { animation-delay: 1.4s; }
@keyframes vault-ring {
  0%   { opacity: 0.6; transform: scale(0.6); border-width: 2px; }
  100% { opacity: 0;   transform: scale(1.4); border-width: 1px; }
}
.mockup-card--shelf {
  left: -1rem;
  top: -1.5rem;
  width: 220px;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  align-items: end;
  height: 70px;
}
.folder {
  height: 100%;
  background: linear-gradient(180deg, #c490ff 0%, #6e4cb8 100%);
  border-radius: 3px 3px 1px 1px;
  transform-origin: bottom;
  animation: folder-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.folder--1 { background: linear-gradient(180deg, #4c7dff, #1f3a8a); }
.folder--2 { background: linear-gradient(180deg, #ff9aa6, #b34a55); }
.folder--3 { background: linear-gradient(180deg, var(--brand-secondary), #5a8a14); height: 80%; }
.folder--4 { background: linear-gradient(180deg, #4ad7ff, #1d6c8a); height: 90%; }
.folder--5 { background: linear-gradient(180deg, #c490ff, #6e4cb8); height: 75%; }
.folder--6 { background: linear-gradient(180deg, #febc2e, #8a6814); height: 95%; }
.story-frame[data-idx='4'][data-state='active'] .folder:nth-child(1) { animation-delay: 0.5s; }
.story-frame[data-idx='4'][data-state='active'] .folder:nth-child(2) { animation-delay: 0.58s; }
.story-frame[data-idx='4'][data-state='active'] .folder:nth-child(3) { animation-delay: 0.66s; }
.story-frame[data-idx='4'][data-state='active'] .folder:nth-child(4) { animation-delay: 0.74s; }
.story-frame[data-idx='4'][data-state='active'] .folder:nth-child(5) { animation-delay: 0.82s; }
.story-frame[data-idx='4'][data-state='active'] .folder:nth-child(6) { animation-delay: 0.9s; }
@keyframes folder-rise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.mockup-card--badges {
  right: 0;
  bottom: -1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.85);
  background: rgba(162, 241, 28, 0.08);
  border: 1px solid rgba(162, 241, 28, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.badge svg { color: var(--brand-secondary); }

/* ── Frame 5: AI ─────────────────────────────────── */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.bubble {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.bubble--user {
  align-self: flex-end;
  background: rgba(162, 241, 28, 0.15);
  border: 1px solid rgba(162, 241, 28, 0.3);
  color: rgba(250, 247, 244, 0.95);
  border-bottom-right-radius: 4px;
}
.bubble--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(250, 247, 244, 0.88);
  border-bottom-left-radius: 4px;
}
.bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
}
.bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 247, 244, 0.5);
  animation: typing 1.2s ease-in-out infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-4px); opacity: 1; }
}
.bubble--reveal {
  opacity: 0;
  animation: bubble-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}
@keyframes bubble-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mockup-card--module {
  right: -2rem;
  bottom: -1.5rem;
  width: 240px;
}
.module-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.85);
  margin-bottom: 0.7rem;
}
.module-head svg { color: var(--brand-secondary); }
.module-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.module-bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-secondary), #c4ff5e);
  width: 0;
  border-radius: 3px;
  animation: module-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
@keyframes module-fill {
  to { width: var(--p, 70%); }
}
.module-meta {
  font-size: 11px;
  color: rgba(250, 247, 244, 0.6);
  margin: 0;
}

/* ───────────────────────────────────────────────────────── */
/* Frame 5 — POWER STACK · Individualentwicklung              */
/* 3-Schichten-Modell mit aufbauender Animation, beam,        */
/* 70%-Power-Karte, Infinity-Karte, Lime-Sonderaura.          */
/* ───────────────────────────────────────────────────────── */

/* Sondergluth: leicht stärker als die anderen Frames, aber nicht überstrahlend */
.frame-glow--power {
  background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 65%);
}
.story-frame[data-state='active'] .frame-glow--power {
  opacity: 0.5;
}

/* zusätzliche, langsam rotierende Lime-Strahlen — nur Frame 5 */
.power-rays {
  position: absolute;
  inset: -10%;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(162, 241, 28, 0.08) 30deg,
      transparent 60deg,
      rgba(162, 241, 28, 0.05) 110deg,
      transparent 140deg,
      rgba(162, 241, 28, 0.07) 200deg,
      transparent 230deg,
      rgba(162, 241, 28, 0.04) 290deg,
      transparent 320deg,
      transparent 360deg
    );
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  animation: rays-spin 70s linear infinite;
  transition: opacity 1s ease;
}
.story-frame[data-idx='5'][data-state='active'] .power-rays {
  opacity: 0.55;
}

/* Stack-Container — eigenes Perspective-Rig */
.mockup--stack {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}
.stack {
  position: relative;
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transform-style: preserve-3d;
  transform: translateZ(20px) rotateX(8deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lime-Aura direkt hinter dem Stack — atmet kontinuierlich, dezenter für Kontrast */
.stack-aura {
  position: absolute;
  inset: -50px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(162, 241, 28, 0.28) 0%,
    rgba(162, 241, 28, 0.08) 35%,
    transparent 70%
  );
  filter: blur(80px);
  opacity: 0;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.story-frame[data-idx='5'][data-state='active'] .stack-aura {
  animation:
    stack-aura-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards,
    stack-aura-pulse 4.5s ease-in-out 1.2s infinite;
}
@keyframes stack-aura-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes stack-aura-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* einzelne Schicht-Karten — Resting state für Hover-Override */
.stack-layer {
  position: relative;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #111923 0%, #0a0f17 100%);
  backdrop-filter: blur(8px);
  transform: translateY(0) translateZ(0);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  cursor: pointer;
  will-change: transform;
}

/* Schicht 1 — Plattform: rises from below first */
.stack-layer--1 {
  background: linear-gradient(160deg, #0e1623 0%, #0a0f17 100%);
}
.story-frame[data-idx='5'][data-state='active'] .stack-layer--1 {
  animation: layer-1-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
}
@keyframes layer-1-in {
  0%   { opacity: 0; transform: translateY(50px) rotateX(-15deg); }
  60%  { opacity: 1; transform: translateY(-3px) rotateX(0); border-color: rgba(121, 143, 182, 0.5); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Schicht 2 — Erweiterungen: slides in from right */
.stack-layer--2 {
  background: linear-gradient(160deg, rgba(121, 143, 182, 0.12) 0%, #0a0f17 100%);
  border-color: rgba(121, 143, 182, 0.28);
}
.story-frame[data-idx='5'][data-state='active'] .stack-layer--2 {
  animation: layer-2-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1s backwards;
}
@keyframes layer-2-in {
  0%   { opacity: 0; transform: translateX(40px) translateY(-20px) rotateY(-12deg); }
  60%  { opacity: 1; transform: translateX(-3px) translateY(0) rotateY(2deg); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotateY(0); }
}

/* Schicht 3 — Top Layer: dunkler Hintergrund, Lime nur als Border + Glow → max. Kontrast für Text */
.stack-layer--3 {
  background: linear-gradient(160deg, rgba(162, 241, 28, 0.05) 0%, #0a0f17 80%);
  border-color: rgba(162, 241, 28, 0.65);
  box-shadow: 0 0 24px rgba(162, 241, 28, 0.2) inset;
}
.story-frame[data-idx='5'][data-state='active'] .stack-layer--3 {
  animation:
    layer-3-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 1.6s backwards,
    layer-3-pulse 3.6s ease-in-out 2.7s infinite;
}
@keyframes layer-3-in {
  0%   { opacity: 0; transform: translateY(-60px) rotateX(20deg) scale(0.92); border-color: rgba(162, 241, 28, 0); }
  55%  { opacity: 1; transform: translateY(6px) rotateX(0) scale(1.04); border-color: rgba(255, 255, 255, 0.95); }
  70%  { transform: translateY(0) scale(1); border-color: var(--brand-secondary); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); border-color: rgba(162, 241, 28, 0.5); }
}
@keyframes layer-3-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(162, 241, 28, 0.18) inset, 0 0 0 rgba(162, 241, 28, 0); }
  50%      { box-shadow: 0 0 40px rgba(162, 241, 28, 0.32) inset, 0 0 32px rgba(162, 241, 28, 0.28); }
}

/* Layer-Head: icon + label + tag — Title hell für Lesbarkeit, Icons farbcodiert */
.stack-layer-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(250, 247, 244, 0.85);
}
.stack-layer--1 .stack-layer-head svg { color: rgba(250, 247, 244, 0.7); }
.stack-layer--2 .stack-layer-head svg { color: rgba(121, 143, 182, 1); }
.stack-layer--3 .stack-layer-head svg { color: var(--brand-secondary); }
.stack-layer--3 .stack-layer-head { color: rgba(250, 247, 244, 0.98); }
.stack-layer-head svg {
  flex-shrink: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.stack-layer-title { flex: 1; }
.stack-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--brand-secondary);
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(162, 241, 28, 0.5);
}

/* Bars in Schicht 2 + 3 */
.stack-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stack-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  transform-origin: left center;
}
.stack-bar--2a { background: rgba(121, 143, 182, 0.6); width: 75%; }
.stack-bar--2b { background: rgba(121, 143, 182, 0.4); width: 50%; }
.stack-bar--3a {
  background: linear-gradient(90deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 50%, transparent));
  width: 80%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(162, 241, 28, 0.45);
}
.stack-bar--3b {
  background: linear-gradient(90deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 30%, transparent));
  width: 55%;
  box-shadow: 0 0 10px rgba(162, 241, 28, 0.28);
}
.story-frame[data-idx='5'][data-state='active'] .stack-bar--2a {
  animation: stack-bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.35s backwards;
}
.story-frame[data-idx='5'][data-state='active'] .stack-bar--2b {
  animation: stack-bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.45s backwards;
}
.story-frame[data-idx='5'][data-state='active'] .stack-bar--3a {
  animation: stack-bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.15s backwards;
}
.story-frame[data-idx='5'][data-state='active'] .stack-bar--3b {
  animation: stack-bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.3s backwards;
}
@keyframes stack-bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Schicht-3 Top-Bar Shimmer (kontinuierlich) */
.stack-bar--3a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}
.story-frame[data-idx='5'][data-state='active'] .stack-bar--3a::after {
  animation: bar-shimmer 3.2s ease-in-out 3.2s infinite;
}

/* Cells in Schicht 1 (Plattform-Module) */
.stack-cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}
.stack-cell {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 247, 244, 0.78);
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.story-frame[data-idx='5'][data-state='active'] .stack-cell {
  animation: cell-boot 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.story-frame[data-idx='5'][data-state='active'] .stack-cell[data-cell='0'] { animation-delay: 0.65s; }
.story-frame[data-idx='5'][data-state='active'] .stack-cell[data-cell='1'] { animation-delay: 0.74s; }
.story-frame[data-idx='5'][data-state='active'] .stack-cell[data-cell='2'] { animation-delay: 0.82s; }
.story-frame[data-idx='5'][data-state='active'] .stack-cell[data-cell='3'] { animation-delay: 0.88s; }
.story-frame[data-idx='5'][data-state='active'] .stack-cell[data-cell='4'] { animation-delay: 0.94s; }
.story-frame[data-idx='5'][data-state='active'] .stack-cell[data-cell='5'] { animation-delay: 1.0s; }
@keyframes cell-boot {
  0%   { opacity: 0; transform: scale(0.5) translateY(8px); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); color: rgba(250, 247, 244, 0.6); }
  60%  { opacity: 1; transform: scale(1.18); background: rgba(162, 241, 28, 0.25); border-color: rgba(162, 241, 28, 0.7); color: var(--brand-secondary); box-shadow: 0 0 16px rgba(162, 241, 28, 0.5); }
  100% { opacity: 1; transform: scale(1); background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); color: rgba(250, 247, 244, 0.6); box-shadow: none; }
}

/* Energy beam — vertikale Linie durch alle Schichten */
.stack-beam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(162, 241, 28, 0.4) 15%,
    var(--brand-secondary) 50%,
    rgba(162, 241, 28, 0.4) 85%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transform-origin: bottom center;
  filter: blur(0.5px);
}
.story-frame[data-idx='5'][data-state='active'] .stack-beam {
  animation:
    stack-beam-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.5s backwards,
    stack-beam-pulse 2.6s ease-in-out 3.3s infinite;
}
@keyframes stack-beam-in {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 0.55; transform: scaleY(1); }
}
@keyframes stack-beam-pulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 6px var(--brand-secondary); }
  50%      { opacity: 0.95; box-shadow: 0 0 18px var(--brand-secondary), 0 0 36px rgba(162, 241, 28, 0.6); }
}

/* Lichtpartikel, die periodisch den Beam von unten nach oben durchläuft */
.stack-beam-particle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-secondary) 0%, rgba(162, 241, 28, 0.6) 40%, transparent 70%);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 16px var(--brand-secondary);
}
.story-frame[data-idx='5'][data-state='active'] .stack-beam-particle {
  animation: stack-particle-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) 3.5s infinite;
}
@keyframes stack-particle-rise {
  0%   { opacity: 0; bottom: 0; transform: scale(0.5); }
  15%  { opacity: 1; transform: scale(1); }
  85%  { opacity: 1; }
  100% { opacity: 0; bottom: 100%; transform: scale(1.2); }
}

/* Hover auf einzelne Schicht */
.stack-layer:hover {
  transform: translateY(-4px) translateZ(30px);
  border-color: rgba(162, 241, 28, 0.7);
  background: linear-gradient(160deg, rgba(162, 241, 28, 0.08) 0%, rgba(162, 241, 28, 0.02) 100%);
  z-index: 6;
}
.stack-layer:hover .stack-layer-head svg {
  transform: rotate(360deg) scale(1.15);
  color: var(--brand-secondary);
}
.stack-layer:hover .stack-layer-head {
  color: var(--brand-secondary);
}

/* Hover auf einzelne Plattform-Zelle */
.stack-cell:hover {
  background: rgba(162, 241, 28, 0.22);
  border-color: rgba(162, 241, 28, 0.85);
  color: var(--brand-secondary);
  transform: scale(1.18) translateY(-3px);
  box-shadow: 0 0 22px rgba(162, 241, 28, 0.55);
  z-index: 7;
}

/* Striking Hover auf den ganzen Stack — Tilt + Lift + Aura-Boost */
.story-frame[data-state='active'] .mockup--stack:hover .stack {
  transform: translateZ(70px) rotateX(0deg);
}
.story-frame[data-state='active'] .mockup--stack:hover .stack-aura {
  filter: blur(50px);
  opacity: 1;
  transform: scale(1.2);
}

/* ── Power-Card (70%) — dunkle Karte mit Lime-Akzent für max. Kontrast ─── */
.mockup-card--power {
  right: -2.5rem;
  top: -1.5rem;
  width: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 1rem 0.95rem;
  border: 1px solid rgba(162, 241, 28, 0.55);
  background: linear-gradient(160deg, rgba(162, 241, 28, 0.08) 0%, #0a0f17 75%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 26px rgba(162, 241, 28, 0.18);
}
.story-frame[data-idx='5'][data-state='active'] .mockup-card--power {
  animation: power-card-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2.55s backwards;
}
@keyframes power-card-in {
  from { opacity: 0; transform: translateZ(140px) translateX(60px) scale(0.85); }
  to   { opacity: 1; transform: translateZ(180px) translateX(0) scale(1); }
}
.power-num {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-secondary);
  letter-spacing: -0.03em;
  text-shadow: 0 0 22px rgba(162, 241, 28, 0.55);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.4s ease;
}
.power-num em {
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 700;
}
.story-frame[data-idx='5'][data-state='active'] .power-num span {
  animation: power-num-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.7s backwards;
  display: inline-block;
}
@keyframes power-num-pop {
  0%   { opacity: 0; transform: scale(0.4) translateY(20px); }
  55%  { opacity: 1; transform: scale(1.25) translateY(0); }
  100% { opacity: 1; transform: scale(1); }
}
.power-label {
  margin: 0.5rem 0 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(250, 247, 244, 0.92);
  font-weight: 700;
}
.power-pulse {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(162, 241, 28, 0.5);
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
}
.story-frame[data-idx='5'][data-state='active'] .power-pulse {
  animation: power-pulse 2.6s ease-out 3s infinite;
}
@keyframes power-pulse {
  0%   { opacity: 0.85; transform: scale(1); }
  90%  { opacity: 0;    transform: scale(1.18); }
  100% { opacity: 0;    transform: scale(1.18); }
}
.mockup-card--power:hover .power-num {
  transform: scale(1.12);
  text-shadow: 0 0 36px rgba(162, 241, 28, 0.95);
}

/* ── Infinity-Card ───────────────────────────────────────── */
.mockup-card--infinity {
  left: -2rem;
  bottom: -2rem;
  width: 240px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(162, 241, 28, 0.3);
}
.story-frame[data-idx='5'][data-state='active'] .mockup-card--infinity {
  animation: infinity-card-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 2.85s backwards;
}
@keyframes infinity-card-in {
  from { opacity: 0; transform: translateZ(140px) translateX(-50px) rotateY(-15deg); }
  to   { opacity: 1; transform: translateZ(180px) translateX(0) rotateY(0); }
}
.infinity-icon {
  flex-shrink: 0;
  color: var(--brand-secondary);
  filter: drop-shadow(0 0 8px rgba(162, 241, 28, 0.55));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.story-frame[data-idx='5'][data-state='active'] .infinity-icon {
  animation: infinity-breath 2.8s ease-in-out 3.4s infinite;
}
@keyframes infinity-breath {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(162, 241, 28, 0.55)); }
  50%      { transform: scale(1.2); filter: drop-shadow(0 0 22px rgba(162, 241, 28, 0.95)); }
}
.infinity-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(250, 247, 244, 0.85);
}
.infinity-text b {
  font-weight: 700;
  color: rgba(250, 247, 244, 0.98);
  font-size: 13px;
  margin-bottom: 0.12rem;
}
.infinity-text em {
  font-style: normal;
  color: rgba(250, 247, 244, 0.55);
  font-size: 10px;
  letter-spacing: 0.4px;
}
.mockup-card--infinity:hover .infinity-icon {
  transform: scale(1.3) rotate(20deg);
  filter: drop-shadow(0 0 30px rgba(162, 241, 28, 1));
}

/* Frame-Proof Power-Variante — extra Glanz */
.frame-proof--power {
  background: rgba(162, 241, 28, 0.12);
  border-color: rgba(162, 241, 28, 0.5);
  box-shadow: 0 0 24px rgba(162, 241, 28, 0.18);
}
.frame-proof--power .frame-proof-num {
  text-shadow: 0 0 14px rgba(162, 241, 28, 0.6);
}

/* ───────────────────────────────────────────────────────── */
/* Intro frame                                                */
/* ───────────────────────────────────────────────────────── */
.intro-mark {
  width: 220px;
  height: 220px;
  transform: translateZ(40px);
}
.intro-ring {
  position: absolute;
  border: 1px solid rgba(162, 241, 28, 0.25);
  border-radius: 50%;
  animation: intro-ring-spin linear infinite;
}
.intro-ring--a { inset: 0; animation-duration: 30s; }
.intro-ring--b { inset: 22px; animation-duration: 22s; animation-direction: reverse; border-color: rgba(121, 143, 182, 0.3); }
.intro-ring--c { inset: 44px; animation-duration: 16s; border-color: rgba(162, 241, 28, 0.4); }
.intro-ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--brand-secondary);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--brand-secondary);
}
.intro-ring--b::before { background: var(--brand-primary); box-shadow: 0 0 14px var(--brand-primary); }
@keyframes intro-ring-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.intro-hub {
  z-index: 2;
  box-shadow: 0 0 60px rgba(162, 241, 28, 0.4);
  animation: intro-hub-pulse 3s ease-in-out infinite;
}
@keyframes intro-hub-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(162, 241, 28, 0.4); }
  50%      { box-shadow: 0 0 100px rgba(162, 241, 28, 0.7); }
}
.intro-rays {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(162, 241, 28, 0.05) 30deg,
    transparent 60deg,
    rgba(121, 143, 182, 0.06) 90deg,
    transparent 120deg,
    rgba(162, 241, 28, 0.05) 180deg,
    transparent 210deg,
    rgba(121, 143, 182, 0.06) 270deg,
    transparent 300deg
  );
  animation: rays-spin 60s linear infinite;
}
@keyframes rays-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.intro-cue {
  animation: cue-bounce 1.6s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: 0.5; }
}

/* ───────────────────────────────────────────────────────── */
/* Outro frame                                                */
/* ───────────────────────────────────────────────────────── */
.outro-mark {
  position: relative;
  transform: translateZ(80px);
}
.outro-pulse {
  position: absolute;
  inset: -40px;
  border: 2px solid rgba(162, 241, 28, 0.3);
  border-radius: 50%;
  animation: outro-pulse 2.5s ease-out infinite;
}
@keyframes outro-pulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.outro-aura {
  position: absolute;
  width: 80vw;
  height: 80vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(162, 241, 28, 0.15) 0%, transparent 60%);
  filter: blur(60px);
  animation: aura-breathe 5s ease-in-out infinite;
}
@keyframes aura-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); }
  50%      { transform: translate(-50%, -50%) scale(1.05); }
}
.outro-cta {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 30px rgba(162, 241, 28, 0.3);
}
.outro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(162, 241, 28, 0.5);
}
.outro-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: cta-shimmer 3s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0%, 60% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

/* ───────────────────────────────────────────────────────── */
/* HUD progress + counter                                     */
/* ───────────────────────────────────────────────────────── */
.story-progress-fill {
  width: calc(var(--p, 0) * 100%);
  transition: width 0.15s linear;
  box-shadow: 0 0 12px var(--brand-secondary);
}

/* ───────────────────────────────────────────────────────── */
/* Skip button — animated, prominent                          */
/* ───────────────────────────────────────────────────────── */
.story-skip {
  box-shadow:
    0 0 0 0 rgba(162, 241, 28, 0.6),
    0 12px 30px rgba(162, 241, 28, 0.15);
  animation: skip-pulse 2.4s ease-out infinite;
}
@keyframes skip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(162, 241, 28, 0.5), 0 12px 30px rgba(162, 241, 28, 0.15); }
  70%  { box-shadow: 0 0 0 16px rgba(162, 241, 28, 0), 0 12px 30px rgba(162, 241, 28, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(162, 241, 28, 0), 0 12px 30px rgba(162, 241, 28, 0.15); }
}
.story-skip-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid var(--brand-secondary);
  opacity: 0;
  animation: skip-ping 2.4s ease-out infinite;
  pointer-events: none;
}
.story-skip-ping--delay {
  animation-delay: 1.2s;
}
@keyframes skip-ping {
  0%   { transform: scale(1);    opacity: 0.8; }
  80%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.story-skip-arrow {
  box-shadow: 0 0 14px rgba(162, 241, 28, 0.6);
  transition: transform 0.3s;
  animation: arrow-bob 2s ease-in-out infinite;
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
.story-skip:hover .story-skip-arrow {
  transform: translateY(2px) scale(1.08);
  box-shadow: 0 0 22px rgba(162, 241, 28, 0.9);
}
.story-skip-bolt {
  animation: bolt-spark 2.2s ease-in-out infinite;
}
@keyframes bolt-spark {
  0%, 92%, 100% { transform: rotate(0); filter: drop-shadow(0 0 0 transparent); }
  94%           { transform: rotate(-12deg); filter: drop-shadow(0 0 6px var(--brand-secondary)); }
  96%           { transform: rotate(8deg); }
  98%           { transform: rotate(-4deg); }
}
.story-skip:hover {
  transform: scale(1.04);
}

/* ───────────────────────────────────────────────────────── */
/* Mobile fallback                                            */
/* ───────────────────────────────────────────────────────── */
.story-mobile-card {
  background: rgba(250, 247, 244, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: rgba(250, 247, 244, 0.8);
  line-height: 1.6;
  list-style: none;
}
.story-mobile-card b {
  color: var(--brand-secondary);
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────── */
/* Hover micro-interactions — Hauptgrafiken aller 7 Frames    */
/* ───────────────────────────────────────────────────────── */

/* Mockup-Frame: dramatischer Lift + Lime-Glow, Perspektive richtet sich auf */
.mockup-frame {
  cursor: default;
}
.story-frame[data-state='active'] .mockup-frame:hover {
  transform: translateZ(140px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(162, 241, 28, 0.25) inset,
    0 0 90px rgba(162, 241, 28, 0.3);
}

/* Floating Cards */
.story-frame[data-state='active'] .mockup-card {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.story-frame[data-state='active'] .mockup-card:hover {
  transform: translateZ(230px) translateY(-8px) scale(1.04);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(162, 241, 28, 0.32);
  border-color: rgba(162, 241, 28, 0.55);
}

/* ── Frame 0 — Intro: Mark + Hub ─────────────────────────── */
.intro-mark {
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.intro-mark:hover {
  transform: translateZ(40px) scale(1.06);
}
.intro-hub {
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.intro-mark:hover .intro-hub {
  transform: scale(1.12);
  box-shadow: 0 0 140px rgba(162, 241, 28, 0.9), 0 0 60px rgba(162, 241, 28, 0.6);
}
.intro-mark:hover .intro-hub svg {
  animation: hub-spin 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hub-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.intro-mark:hover .intro-ring {
  animation-duration: 6s;
  border-color: rgba(162, 241, 28, 0.55);
}

/* ── Frame 1 — Gantt rows ────────────────────────────────── */
.gantt-row {
  position: relative;
  padding: 3px 6px;
  border-radius: 8px;
  transition:
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gantt-row > span {
  transition: color 0.25s ease, transform 0.25s ease;
}
.gantt-row > b {
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gantt-row:hover {
  background: rgba(162, 241, 28, 0.1);
  transform: translateX(8px) scale(1.02);
}
.gantt-row:hover > span {
  color: var(--brand-secondary);
  transform: translateX(2px);
}
.gantt-row:hover > b {
  filter: brightness(1.3) saturate(1.3);
  box-shadow: 0 0 32px color-mix(in srgb, var(--c, #fff) 80%, transparent);
}

/* ── Frame 1 — Load bars (Auslastung) ────────────────────── */
.load-bars > div {
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 6px;
  transition:
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.load-bars > div b {
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease;
  transform-origin: left center;
}
.load-bars > div i,
.load-bars > div span {
  transition: color 0.25s ease;
}
.load-bars > div:hover {
  background: rgba(162, 241, 28, 0.12);
  transform: translateX(6px);
}
.load-bars > div:hover b {
  filter: brightness(1.4) saturate(1.3);
  box-shadow: 0 0 20px color-mix(in srgb, var(--c, var(--brand-secondary)) 80%, transparent);
}
.load-bars > div:hover i {
  color: var(--brand-secondary);
}
.load-bars > div:hover span {
  color: rgba(250, 247, 244, 0.95);
}

/* ── Frame 2 — Pipeline cards ────────────────────────────── */
.pipe-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}
.pipe-card:hover {
  transform: translateY(-8px) scale(1.06) rotate(-1deg);
  border-color: rgba(162, 241, 28, 0.7);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(162, 241, 28, 0.4);
  z-index: 5;
}
.pipe-card--hot:hover {
  border-color: rgba(255, 109, 192, 0.8);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.6),
    0 0 36px rgba(255, 109, 192, 0.55);
}
.pipe-col {
  transition: background 0.3s ease, border-color 0.3s ease;
}
.pipe-col:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(162, 241, 28, 0.3);
}
.pipe-col:hover h6 {
  color: var(--brand-secondary);
}
.pipe-col h6 { transition: color 0.25s ease; }

/* ── Frame 3 — Timer + Wochenliste ───────────────────────── */
.timer-row {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.timer-row:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(162, 241, 28, 0.7);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(162, 241, 28, 0.35);
}
.timer-btn {
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.timer-btn:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--brand-dark);
  transform: scale(1.06);
}
.timer-list > div {
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 6px;
  transition:
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.timer-list > div b,
.timer-list > div em,
.timer-list > div span {
  transition: filter 0.25s ease, color 0.25s ease;
}
.timer-list > div:hover {
  background: rgba(162, 241, 28, 0.12);
  transform: translateX(6px);
}
.timer-list > div:hover b {
  filter: brightness(1.4) saturate(1.3);
  box-shadow: 0 0 16px rgba(162, 241, 28, 0.6);
}
.timer-list > div:hover em,
.timer-list > div:hover span {
  color: var(--brand-secondary);
}

/* ── Frame 4 — Vault + Folders + Badges ──────────────────── */
.vault {
  cursor: default;
}
.vault-shield {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.vault:hover .vault-shield {
  transform: scale(1.15);
  box-shadow: 0 0 140px rgba(162, 241, 28, 0.9), 0 0 60px rgba(162, 241, 28, 0.6);
}
.vault:hover .vault-shield svg {
  animation: hub-spin 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.folder {
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}
.folder:hover {
  transform: scaleY(1.18) translateY(-10px) scale(1.08);
  filter: brightness(1.4) saturate(1.3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(162, 241, 28, 0.4);
  z-index: 5;
}
.badge {
  cursor: default;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.badge:hover {
  transform: translateY(-4px) scale(1.06);
  background: rgba(162, 241, 28, 0.28);
  border-color: rgba(162, 241, 28, 0.85);
  box-shadow: 0 10px 22px rgba(162, 241, 28, 0.32);
}

/* ── Frame 5 — Chat-Bubbles + Modul-Bar ──────────────────── */
.bubble {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}
.bubble--user:hover {
  transform: translateY(-4px) translateX(-4px) scale(1.03);
  border-color: rgba(162, 241, 28, 0.85);
  background: rgba(162, 241, 28, 0.22);
  box-shadow: 0 16px 36px rgba(162, 241, 28, 0.32);
}
.bubble--ai:not(.bubble--typing):hover {
  transform: translateY(-4px) translateX(4px) scale(1.03);
  border-color: rgba(162, 241, 28, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 22px rgba(162, 241, 28, 0.18);
}
.module-bar {
  transition: box-shadow 0.3s ease;
}
.module-bar b {
  transition: filter 0.3s ease;
}
.mockup-card--module:hover .module-bar {
  box-shadow: 0 0 22px rgba(162, 241, 28, 0.55);
}
.mockup-card--module:hover .module-bar b {
  filter: brightness(1.35) saturate(1.2);
}

/* ── Frame 6 — Outro: Mark + CTA ─────────────────────────── */
.outro-mark {
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.outro-mark:hover {
  transform: translateZ(80px) scale(1.12);
}
.outro-mark:hover svg {
  animation: hub-spin 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 20px rgba(162, 241, 28, 0.8));
}
.outro-mark svg {
  transition: filter 0.4s ease;
}
.outro-mark:hover .outro-pulse {
  border-color: rgba(162, 241, 28, 0.7);
  border-width: 3px;
}
.outro-pulse {
  transition: border-color 0.4s ease, border-width 0.4s ease;
}

/* ───────────────────────────────────────────────────────── */
/* Idle Ambience — kontinuierliche Mikro-Animationen          */
/* auf den Hauptgrafiken aller Frames                         */
/* ───────────────────────────────────────────────────────── */

/* Frame 1 — Gantt: aktiver Balken (Bauausführung) shimmert periodisch */
.gantt-row > b {
  position: relative;
  overflow: hidden;
}
.gantt-row > b::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: translateX(-150%);
  pointer-events: none;
}
.story-frame[data-idx='1'][data-state='active'] .gantt-row:nth-child(1) > b::after,
.story-frame[data-idx='1'][data-state='active'] .gantt-row:nth-child(5) > b::after {
  animation: bar-shimmer 4.5s ease-in-out infinite;
}
.story-frame[data-idx='1'][data-state='active'] .gantt-row:nth-child(5) > b::after {
  animation-delay: 2.2s;
}
@keyframes bar-shimmer {
  0%   { transform: translateX(-150%); }
  60%  { transform: translateX(150%); }
  100% { transform: translateX(150%); }
}

/* Frame 2 — Pipeline: Won-Karten pulsieren */
.pipe-card--won {
  position: relative;
}
.pipe-card--won::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(162, 241, 28, 0.7);
  border-radius: 9px;
  pointer-events: none;
  opacity: 0;
}
.story-frame[data-idx='2'][data-state='active'] .pipe-card--won::before {
  animation: won-ring 2.6s ease-out 1.4s infinite;
}
@keyframes won-ring {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.08); }
}

/* Frame 3 — Time: Sekunden blinken, Clock atmet, Doc-Glow */
.timer-sec {
  animation: sec-blink 1s steps(2, end) infinite;
}
@keyframes sec-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0.45; }
}
.timer-clock {
  animation: clock-breathe 2.6s ease-in-out infinite;
}
@keyframes clock-breathe {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 14px rgba(162, 241, 28, 0.55); }
}

/* Frame 5 — AI: Modul-Bar Shimmer + User-Bubble glüht periodisch */
.module-bar {
  position: relative;
}
.module-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}
.story-frame[data-idx='5'][data-state='active'] .module-bar::after {
  animation: module-shimmer 3.6s ease-in-out 2.2s infinite;
}
@keyframes module-shimmer {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.bubble--user {
  animation: user-bubble-glow 3.6s ease-in-out 1.5s infinite;
}
@keyframes user-bubble-glow {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50%      { box-shadow: 0 0 22px rgba(162, 241, 28, 0.32); }
}

/* ───────────────────────────────────────────────────────── */
/* Striking Container Hover — Lime-Aura + dramatic lift       */
/* trifft die Hauptgrafik jedes Frames als Ganzes             */
/* ───────────────────────────────────────────────────────── */

.mockup,
.intro-mark,
.outro-mark {
  position: relative;
}

/* Lime-Aura hinter der Hauptgrafik — fadet auf Hover ein */
.mockup::before,
.intro-mark::before,
.outro-mark::before {
  content: '';
  position: absolute;
  inset: -90px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(162, 241, 28, 0.55) 0%,
    rgba(162, 241, 28, 0.18) 35%,
    transparent 70%
  );
  filter: blur(70px);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}
.mockup:hover::before,
.intro-mark:hover::before,
.outro-mark:hover::before {
  opacity: 1;
}

/* Mockup (Frames 1–5): scale + leichter Lift, parallel zum mockup-frame:hover */
.story-frame[data-state='active'] .mockup {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-frame[data-state='active'] .mockup:hover {
  transform: scale(1.05);
}

/* Beim Mockup-Hover: alle Floating-Cards ziehen mit nach vorn */
.story-frame[data-state='active'] .mockup:hover .mockup-card {
  transform: translateZ(220px) translateY(-4px);
  border-color: rgba(162, 241, 28, 0.5);
  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(162, 241, 28, 0.28);
}
/* Direkter Card-Hover bekommt extra Pop */
.story-frame[data-state='active'] .mockup:hover .mockup-card:hover {
  transform: translateZ(250px) translateY(-10px) scale(1.06);
  border-color: rgba(162, 241, 28, 0.85);
  box-shadow:
    0 45px 100px rgba(0, 0, 0, 0.7),
    0 0 65px rgba(162, 241, 28, 0.5);
}

/* Mockup-Frame mit auffälligem Lime-Border-Inset wenn .mockup gehovered ist */
.story-frame[data-state='active'] .mockup:hover .mockup-frame {
  transform: translateZ(150px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 70px 140px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(162, 241, 28, 0.35) inset,
    0 0 110px rgba(162, 241, 28, 0.4);
}

/* ───────────────────────────────────────────────────────── */
/* Reduced motion                                             */
/* ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .story-track { height: auto; }
  .story-stage {
    position: relative;
    height: auto;
    perspective: none;
  }
  .story-frames {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding: 6rem 0;
  }
  .story-frame {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
  .story-skip { display: none; }
  .story-hud { position: relative; top: 0; }
  .story-orb,
  .intro-rays,
  .vault-ring,
  .outro-pulse,
  .frame-glow,
  .timer-pulse,
  .vault-shield,
  .intro-hub,
  .story-skip-ping,
  .story-skip-arrow,
  .story-skip-bolt,
  .intro-cue,
  .outro-cta::after,
  .gantt::before,
  .gantt::after,
  .gantt-row > b::after,
  .pipe-card--won::before,
  .timer-sec,
  .timer-clock,
  .module-bar::after,
  .bubble--user,
  .load-bars b,
  .power-rays,
  .stack-aura,
  .stack-layer--1,
  .stack-layer--2,
  .stack-layer--3,
  .stack-bar,
  .stack-bar--3a::after,
  .stack-cell,
  .stack-beam,
  .stack-beam-particle,
  .power-num span,
  .power-pulse,
  .infinity-icon,
  .mockup-card--power,
  .mockup-card--infinity {
    animation: none !important;
  }
  .load-bars b,
  .stack-bar {
    transform: none !important;
  }
  .stack-cell,
  .stack-layer {
    opacity: 1 !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   KI-MODULE STORY · Frame-spezifische Mockups
   Frames: 1 Voice · 2 Bild · 3 Chat · 4 Video · 5 Unified
   ═════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────── */
/* Frame 1 — Voice KI                                         */
/* ───────────────────────────────────────────────────────── */
.mockup--voice .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.voice-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.voice-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ad7ff 0%, #2a7eb8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(74, 215, 255, 0.4);
}
.voice-meta p {
  margin: 0;
  font-size: 12px;
  color: rgba(250, 247, 244, 0.85);
  font-weight: 600;
}
.voice-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.55);
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}
.voice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 8px var(--brand-secondary);
  animation: dot-pulse 2s ease-in-out infinite;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 90px;
  padding: 0 0.4rem;
}
.voice-wave i {
  flex: 1;
  background: linear-gradient(180deg, #4ad7ff 0%, var(--brand-secondary) 100%);
  border-radius: 2px;
  height: var(--h, 50%);
  transform-origin: center;
  box-shadow: 0 0 8px rgba(74, 215, 255, 0.4);
}
.story-frame[data-idx='1'][data-state='active'] .voice-wave i {
  animation: voice-bar-dance 1.2s ease-in-out infinite;
}
.story-frame[data-idx='1'][data-state='active'] .voice-wave i:nth-child(2n) {
  animation-delay: 0.1s;
  animation-duration: 1.4s;
}
.story-frame[data-idx='1'][data-state='active'] .voice-wave i:nth-child(3n) {
  animation-delay: 0.25s;
  animation-duration: 1.05s;
}
.story-frame[data-idx='1'][data-state='active'] .voice-wave i:nth-child(5n) {
  animation-delay: 0.4s;
  animation-duration: 1.6s;
}
@keyframes voice-bar-dance {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1.1); }
}
.voice-transcript {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(250, 247, 244, 0.7);
  padding: 0.7rem 0.85rem;
  background: rgba(74, 215, 255, 0.06);
  border: 1px solid rgba(74, 215, 255, 0.18);
  border-radius: 10px;
  margin: 0;
  font-style: italic;
}
.mockup-card--langs {
  right: -2.2rem;
  top: -1.2rem;
  width: 220px;
}
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.lang-pills span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(74, 215, 255, 0.12);
  border: 1px solid rgba(74, 215, 255, 0.3);
  color: rgba(250, 247, 244, 0.92);
}
.lang-pills span:last-child {
  background: rgba(162, 241, 28, 0.14);
  border-color: rgba(162, 241, 28, 0.4);
  color: var(--brand-secondary);
}
.mockup-card--audio {
  right: -1.5rem;
  bottom: -1.5rem;
  width: 240px;
  display: grid;
  gap: 0.5rem;
}
.audio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.78);
}
.audio-row svg {
  color: var(--brand-secondary);
  flex-shrink: 0;
}
.audio-row b {
  font-weight: 600;
  color: rgba(250, 247, 244, 0.92);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-row em {
  font-style: normal;
  color: rgba(250, 247, 244, 0.45);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

/* ───────────────────────────────────────────────────────── */
/* Frame 2 — Bild KI                                          */
/* ───────────────────────────────────────────────────────── */
.mockup--imagegrid {
  max-height: 700px;
}
.mockup--imagegrid .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.img-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 109, 192, 0.05);
  border: 1px solid rgba(255, 109, 192, 0.18);
  border-radius: 10px;
}
.img-prompt-label {
  position: relative;
  display: block;
  height: 16px;
  font-size: 9px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.img-prompt-text {
  position: relative;
  display: block;
  height: 20px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(250, 247, 244, 0.82);
  font-style: italic;
}
.img-prompt-cat,
.img-prompt-line {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}
.img-prompt-cat--ad   { color: rgba(255, 109, 192, 0.95); }
.img-prompt-cat--team { color: rgba(74, 215, 255, 0.95); }
.img-prompt-cat--biz  { color: var(--brand-secondary); }
.story-frame[data-idx='2'][data-state='active'] .img-prompt-cat--ad,
.story-frame[data-idx='2'][data-state='active'] .img-prompt-line--ad   { animation: layer-show-ad   15s ease-in-out infinite both; }
.story-frame[data-idx='2'][data-state='active'] .img-prompt-cat--team,
.story-frame[data-idx='2'][data-state='active'] .img-prompt-line--team { animation: layer-show-team 15s ease-in-out infinite both; }
.story-frame[data-idx='2'][data-state='active'] .img-prompt-cat--biz,
.story-frame[data-idx='2'][data-state='active'] .img-prompt-line--biz  { animation: layer-show-biz  15s ease-in-out infinite both; }
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  flex: 1;
  max-width: 460px;
  margin-inline: auto;
  align-self: center;
}
.img-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.img-tile {
  background-color: #080d14;
}
.img-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  will-change: opacity;
}
.img-tile--1 .img-layer--ad   { background-image: url('/images/ki-story/ad-1.png');   }
.img-tile--1 .img-layer--team { background-image: url('/images/ki-story/team-1.png'); }
.img-tile--1 .img-layer--biz  { background-image: url('/images/ki-story/biz-1.png');  }
.img-tile--2 .img-layer--ad   { background-image: url('/images/ki-story/ad-2.png');   }
.img-tile--2 .img-layer--team { background-image: url('/images/ki-story/team-2.png'); }
.img-tile--2 .img-layer--biz  { background-image: url('/images/ki-story/biz-2.png');  }
.img-tile--3 .img-layer--ad   { background-image: url('/images/ki-story/ad-3.png');   }
.img-tile--3 .img-layer--team { background-image: url('/images/ki-story/team-3.png'); }
.img-tile--3 .img-layer--biz  { background-image: url('/images/ki-story/biz-3.png');  }
.img-tile--4 .img-layer--ad   { background-image: url('/images/ki-story/ad-4.png');   }
.img-tile--4 .img-layer--team { background-image: url('/images/ki-story/team-4.png'); }
.img-tile--4 .img-layer--biz  { background-image: url('/images/ki-story/biz-4.png');  }
.img-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 13, 20, 0.55) 100%);
  pointer-events: none;
}

/* 15s-Cycle: Ad → Team → Biz, jeweils ~4.5s sichtbar, ~0.5s Crossfade */
.story-frame[data-idx='2'][data-state='active'] .img-layer--ad,
.story-frame[data-idx='2'][data-state='active'] .img-layer--team,
.story-frame[data-idx='2'][data-state='active'] .img-layer--biz {
  animation: 15s ease-in-out infinite;
  animation-fill-mode: both;
}
.story-frame[data-idx='2'][data-state='active'] .img-layer--ad   { animation-name: layer-show-ad; }
.story-frame[data-idx='2'][data-state='active'] .img-layer--team { animation-name: layer-show-team; }
.story-frame[data-idx='2'][data-state='active'] .img-layer--biz  { animation-name: layer-show-biz; }

@keyframes layer-show-ad {
  0%, 30%   { opacity: 1; }
  33%, 95%  { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes layer-show-team {
  0%, 30%   { opacity: 0; }
  33%, 63%  { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes layer-show-biz {
  0%, 63%   { opacity: 0; }
  66%, 95%  { opacity: 1; }
  98%, 100% { opacity: 0; }
}
.img-shimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.story-frame[data-idx='2'][data-state='active'] .img-tile {
  animation: img-tile-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.story-frame[data-idx='2'][data-state='active'] .img-tile--1 { animation-delay: 0.45s; }
.story-frame[data-idx='2'][data-state='active'] .img-tile--2 { animation-delay: 0.55s; }
.story-frame[data-idx='2'][data-state='active'] .img-tile--3 { animation-delay: 0.65s; }
.story-frame[data-idx='2'][data-state='active'] .img-tile--4 { animation-delay: 0.75s; }
@keyframes img-tile-in {
  from { opacity: 0; transform: scale(0.85) translateY(12px); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
.story-frame[data-idx='2'][data-state='active'] .img-tile .img-shimmer {
  animation: img-shimmer-sweep 2.2s ease-in-out infinite;
}
.story-frame[data-idx='2'][data-state='active'] .img-tile--2 .img-shimmer { animation-delay: 0.4s; }
.story-frame[data-idx='2'][data-state='active'] .img-tile--3 .img-shimmer { animation-delay: 0.8s; }
.story-frame[data-idx='2'][data-state='active'] .img-tile--4 .img-shimmer { animation-delay: 1.2s; }
@keyframes img-shimmer-sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.img-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(8, 13, 20, 0.65);
  color: var(--brand-secondary);
  backdrop-filter: blur(6px);
}
.img-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.img-progress b {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff6dc0, var(--brand-secondary));
  border-radius: 2px;
}
.story-frame[data-idx='2'][data-state='active'] .img-progress b {
  animation: img-progress-fill 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
@keyframes img-progress-fill {
  to { width: 100%; }
}
.mockup-card--ab {
  right: -4rem;
  top: 35%;
  width: 180px;
}
.ab-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.ab-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ab-thumb--1 { background: linear-gradient(135deg, #ff6dc0, #c490ff); }
.ab-thumb--2 { background: linear-gradient(135deg, var(--brand-secondary), #4ad7ff); }
.ab-thumb--3 { background: linear-gradient(135deg, #c490ff, #4c7dff); }
.mockup-card--formats {
  right: -1rem;
  bottom: -3rem;
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
}
.format-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 109, 192, 0.1);
  border: 1px solid rgba(255, 109, 192, 0.3);
  color: rgba(250, 247, 244, 0.92);
  font-family: ui-monospace, monospace;
}
.mockup-card--vidformats .format-chip {
  background: rgba(196, 144, 255, 0.1);
  border-color: rgba(196, 144, 255, 0.3);
}

/* ── Frame 2: "Generated by Flow Office" Badge ───────────── */
.mockup-card--genbadge {
  left: -2.5rem;
  top: -1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(162, 241, 28, 0.18) 0%, rgba(162, 241, 28, 0.04) 60%, rgba(17, 25, 35, 0.92) 100%),
    linear-gradient(160deg, #111923 0%, #0a0f17 100%);
  border: 1px solid rgba(162, 241, 28, 0.45);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(162, 241, 28, 0.08),
    0 0 24px rgba(162, 241, 28, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.genbadge-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 10px rgba(162, 241, 28, 0.9);
  flex-shrink: 0;
}
.genbadge-pulse::before,
.genbadge-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-secondary);
  opacity: 0.55;
}
.story-frame[data-idx='2'][data-state='active'] .genbadge-pulse::before {
  animation: genbadge-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.story-frame[data-idx='2'][data-state='active'] .genbadge-pulse::after {
  animation: genbadge-ping 1.8s cubic-bezier(0, 0, 0.2, 1) 0.9s infinite;
}
@keyframes genbadge-ping {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%  { transform: scale(2.6); opacity: 0;    }
  100% { transform: scale(2.6); opacity: 0;    }
}
.genbadge-icon {
  color: var(--brand-secondary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(162, 241, 28, 0.55));
}
.story-frame[data-idx='2'][data-state='active'] .genbadge-icon {
  animation: genbadge-spark 3.2s ease-in-out infinite;
}
@keyframes genbadge-spark {
  0%, 100% { transform: rotate(0deg)   scale(1);    opacity: 1;   }
  35%      { transform: rotate(18deg)  scale(1.18); opacity: 1;   }
  60%      { transform: rotate(-10deg) scale(0.95); opacity: 0.85;}
}
.genbadge-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.genbadge-label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(250, 247, 244, 0.55);
}
.genbadge-brand {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(250, 247, 244, 0.96);
}
.genbadge-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(162, 241, 28, 0.25) 45%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(162, 241, 28, 0.25) 55%,
    transparent 80%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
.story-frame[data-idx='2'][data-state='active'] .genbadge-shimmer {
  animation: genbadge-shimmer 3.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s infinite;
}
@keyframes genbadge-shimmer {
  0%   { background-position: 200% 0; }
  60%  { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}
.story-frame[data-idx='2'][data-state='active'] .mockup-card--genbadge {
  animation: genbadge-glow 4s ease-in-out infinite;
}
@keyframes genbadge-glow {
  0%, 100% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(162, 241, 28, 0.08),
      0 0 24px rgba(162, 241, 28, 0.18);
  }
  50% {
    box-shadow:
      0 12px 34px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(162, 241, 28, 0.14),
      0 0 38px rgba(162, 241, 28, 0.42);
  }
}

/* ───────────────────────────────────────────────────────── */
/* Frame 3 — Chatbot                                          */
/* ───────────────────────────────────────────────────────── */
.mockup--chatbot .mockup-body {
  padding: 1.2rem;
}
.mockup--chatbot .chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.mockup-card--models {
  right: -2rem;
  top: -1.2rem;
  width: 200px;
}
.model-chips {
  display: flex;
  gap: 0.35rem;
}
.model-chips span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(250, 247, 244, 0.6);
  text-transform: uppercase;
}
.model-chips span.active {
  background: rgba(162, 241, 28, 0.18);
  border-color: rgba(162, 241, 28, 0.65);
  color: var(--brand-secondary);
  box-shadow: 0 0 12px rgba(162, 241, 28, 0.3);
}
.mockup-card--filedoc {
  right: -1.5rem;
  bottom: -1.5rem;
  width: 220px;
}
.filedoc-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.85);
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.filedoc-head svg { color: var(--brand-secondary); }
.filedoc-line {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin: 0.35rem 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.filedoc-line--w70 { width: 70%; }
.filedoc-line--filled { background: rgba(162, 241, 28, 0.55); }
.filedoc-line--filling::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-secondary);
  transform-origin: left;
  transform: scaleX(0);
  animation: doc-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.9s infinite;
}
.filedoc-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-secondary);
  background: rgba(162, 241, 28, 0.1);
  border: 1px solid rgba(162, 241, 28, 0.3);
  border-radius: 6px;
  padding: 0.18rem 0.45rem;
}

/* Chat-Frame: Bubbles staggered einblenden */
.story-frame[data-idx='3'][data-state='active'] .bubble:not(.bubble--reveal):not(.bubble--typing) {
  animation: text-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.story-frame[data-idx='3'][data-state='active'] .bubble:nth-child(1) { animation-delay: 0.5s; }
.story-frame[data-idx='3'][data-state='active'] .bubble:nth-child(2) { animation-delay: 0.85s; }
.story-frame[data-idx='3'][data-state='active'] .bubble--reveal { animation-delay: 1.4s; }

/* Bubble--user idle glow nur in Frame 3 (überschreibt globale Regel sauber) */
.bubble--user { animation: none; }
.story-frame[data-idx='3'][data-state='active'] .bubble--user {
  animation:
    text-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards,
    user-bubble-glow 3.6s ease-in-out 2.5s infinite;
}

/* ───────────────────────────────────────────────────────── */
/* Frame 4 — Video KI                                         */
/* ───────────────────────────────────────────────────────── */
.mockup--video .mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
}
.vid-stage {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(196, 144, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(76, 125, 255, 0.3) 0%, transparent 50%),
    linear-gradient(160deg, #1a1430 0%, #0a0a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 1px solid rgba(196, 144, 255, 0.18);
}
.vid-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.vid-play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 0 rgba(196, 144, 255, 0.6),
    0 12px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transform: translateX(2px);
}
.story-frame[data-idx='4'][data-state='active'] .vid-play {
  animation: vid-play-pulse 2.4s ease-out 0.6s infinite;
}
@keyframes vid-play-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 144, 255, 0.55), 0 12px 32px rgba(0, 0, 0, 0.5); }
  70%  { box-shadow: 0 0 0 22px rgba(196, 144, 255, 0), 0 12px 32px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(196, 144, 255, 0), 0 12px 32px rgba(0, 0, 0, 0.5); }
}
.vid-cameo {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(8, 13, 20, 0.7);
  border: 1px solid rgba(196, 144, 255, 0.4);
  color: #c490ff;
  backdrop-filter: blur(6px);
}
.vid-cameo svg { color: #c490ff; }
.vid-time {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: rgba(250, 247, 244, 0.85);
  background: rgba(8, 13, 20, 0.65);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.vid-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vid-keyframes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}
.vid-key {
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.vid-key--1 { background: linear-gradient(135deg, #1a1430 0%, #2a2050 100%); }
.vid-key--2 { background: linear-gradient(135deg, #c490ff 0%, #6e4cb8 100%); }
.vid-key--3 { background: linear-gradient(135deg, #4c7dff 0%, #2540a8 100%); }
.vid-key--4 { background: linear-gradient(135deg, #c490ff 0%, #ff6dc0 100%); }
.vid-key--5 { background: linear-gradient(135deg, var(--brand-secondary) 0%, #4ad7ff 100%); opacity: 0.85; }
.vid-key--6 { background: linear-gradient(135deg, #2a2050 0%, #1a1430 100%); }
.vid-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.vid-progress {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #c490ff, var(--brand-secondary));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(196, 144, 255, 0.6);
}
.story-frame[data-idx='4'][data-state='active'] .vid-progress {
  animation: vid-scrub 6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s infinite;
}
@keyframes vid-scrub {
  0%   { width: 0%; }
  85%  { width: 60%; }
  100% { width: 60%; }
}
.mockup-card--prompt {
  left: -2rem;
  top: -1.5rem;
  width: 240px;
}
.mockup-card--prompt .prompt-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 247, 244, 0.82);
  font-style: italic;
}
.mockup-card--vidformats {
  right: -1.2rem;
  bottom: -1.5rem;
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
}

/* ───────────────────────────────────────────────────────── */
/* Frame 5 — Unified · Hub mit 4 Modulen                      */
/* ───────────────────────────────────────────────────────── */
.mockup--unified {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-stage {
  position: relative;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translateZ(20px);
}
.hub-aura {
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(162, 241, 28, 0.35) 0%, rgba(162, 241, 28, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}
.story-frame[data-idx='5'][data-state='active'] .hub-aura {
  animation: hub-aura-pulse 4.5s ease-in-out infinite;
}
@keyframes hub-aura-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}
.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hub-line {
  stroke: rgba(162, 241, 28, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  fill: none;
}
.story-frame[data-idx='5'][data-state='active'] .hub-line {
  animation: hub-line-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) backwards, hub-line-flow 4s linear 1.4s infinite;
  stroke-dashoffset: 0;
}
.hub-line--1 { animation-delay: 0.7s, 1.4s; }
.hub-line--2 { animation-delay: 0.85s, 1.55s; }
.hub-line--3 { animation-delay: 1.0s, 1.7s; }
.hub-line--4 { animation-delay: 1.15s, 1.85s; }
@keyframes hub-line-draw {
  from { opacity: 0; stroke-dashoffset: 200; }
  to   { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes hub-line-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -40; }
}
.hub-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(160deg, rgba(162, 241, 28, 0.18) 0%, rgba(8, 13, 20, 0.95) 80%);
  border: 1px solid rgba(162, 241, 28, 0.55);
  color: var(--brand-secondary);
  box-shadow:
    0 0 0 1px rgba(162, 241, 28, 0.15) inset,
    0 0 50px rgba(162, 241, 28, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.hub-center em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250, 247, 244, 0.92);
  max-width: 90px;
  line-height: 1.3;
}
.story-frame[data-idx='5'][data-state='active'] .hub-center {
  animation:
    hub-center-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards,
    hub-center-pulse 3.6s ease-in-out 1.4s infinite;
}
@keyframes hub-center-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes hub-center-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(162, 241, 28, 0.15) inset, 0 0 40px rgba(162, 241, 28, 0.3),  0 20px 50px rgba(0, 0, 0, 0.5); }
  50%      { box-shadow: 0 0 0 1px rgba(162, 241, 28, 0.3)  inset, 0 0 80px rgba(162, 241, 28, 0.55), 0 20px 50px rgba(0, 0, 0, 0.5); }
}
.hub-node {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: linear-gradient(160deg, #111923 0%, #0a0f17 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 247, 244, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.hub-node em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(250, 247, 244, 0.88);
}
.hub-node--voice  { left: 6%;  top: 6%;  }
.hub-node--image  { right: 6%; top: 6%;  }
.hub-node--chat   { left: 6%;  bottom: 6%; }
.hub-node--video  { right: 6%; bottom: 6%; }
.hub-node--voice  { border-color: rgba(74, 215, 255, 0.35); }
.hub-node--voice  svg { color: #4ad7ff; }
.hub-node--image  { border-color: rgba(255, 109, 192, 0.35); }
.hub-node--image  svg { color: #ff6dc0; }
.hub-node--chat   { border-color: rgba(162, 241, 28, 0.45); }
.hub-node--chat   svg { color: var(--brand-secondary); }
.hub-node--video  { border-color: rgba(196, 144, 255, 0.4); }
.hub-node--video  svg { color: #c490ff; }
.story-frame[data-idx='5'][data-state='active'] .hub-node {
  animation: hub-node-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.story-frame[data-idx='5'][data-state='active'] .hub-node--voice  { animation-delay: 1.4s; }
.story-frame[data-idx='5'][data-state='active'] .hub-node--image  { animation-delay: 1.55s; }
.story-frame[data-idx='5'][data-state='active'] .hub-node--chat   { animation-delay: 1.7s; }
.story-frame[data-idx='5'][data-state='active'] .hub-node--video  { animation-delay: 1.85s; }
@keyframes hub-node-in {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.hub-node:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(162, 241, 28, 0.3);
}
.hub-node--voice:hover  { border-color: rgba(74, 215, 255, 0.85);  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(74, 215, 255, 0.5); }
.hub-node--image:hover  { border-color: rgba(255, 109, 192, 0.85); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 109, 192, 0.5); }
.hub-node--chat:hover   { border-color: rgba(162, 241, 28, 0.9);   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(162, 241, 28, 0.55); }
.hub-node--video:hover  { border-color: rgba(196, 144, 255, 0.9);  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 144, 255, 0.55); }

.mockup-card--unilogin,
.mockup-card--unidsgvo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  width: 220px;
  border-color: rgba(162, 241, 28, 0.3);
}
.mockup-card--unilogin { left: -2rem; top: -1rem; }
.mockup-card--unidsgvo { right: -2rem; bottom: -1rem; }
.mockup-card--unilogin svg,
.mockup-card--unidsgvo svg {
  color: var(--brand-secondary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(162, 241, 28, 0.5));
}
.uni-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
}
.uni-text b {
  color: rgba(250, 247, 244, 0.98);
  font-size: 14px;
  font-weight: 700;
}
.uni-text em {
  font-style: normal;
  color: rgba(250, 247, 244, 0.55);
  font-size: 10px;
}
.story-frame[data-idx='5'][data-state='active'] .mockup-card--unilogin {
  animation: uni-card-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 2.1s backwards;
}
.story-frame[data-idx='5'][data-state='active'] .mockup-card--unidsgvo {
  animation: uni-card-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 2.3s backwards;
}
@keyframes uni-card-in {
  from { opacity: 0; transform: translateZ(140px) scale(0.85); }
  to   { opacity: 1; transform: translateZ(180px) scale(1); }
}

/* ───────────────────────────────────────────────────────── */
/* Reduced motion — KI-Frames                                 */
/* ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .voice-wave i,
  .voice-dot,
  .img-tile,
  .img-shimmer,
  .img-layer,
  .img-prompt-cat,
  .img-prompt-line,
  .img-progress b,
  .vid-play,
  .vid-progress,
  .hub-aura,
  .hub-line,
  .hub-center,
  .hub-node,
  .mockup-card--unilogin,
  .mockup-card--unidsgvo,
  .mockup-card--genbadge,
  .genbadge-pulse::before,
  .genbadge-pulse::after,
  .genbadge-icon,
  .genbadge-shimmer {
    animation: none !important;
    transform: none !important;
  }
  .img-tile { opacity: 1 !important; }
  .hub-node { opacity: 1 !important; }
  /* Reduced motion: nur Ad-Set sichtbar */
  .img-layer--ad,
  .img-prompt-cat--ad,
  .img-prompt-line--ad { opacity: 1 !important; }
}


  /* ─────────────────────────────────────────────────────────────────
     HomeStory · Mobile tour carousel
     ───────────────────────────────────────────────────────────────── */
  .story-m {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    isolation: isolate;
  }

  /* Background atmosphere */
  .story-m-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
  }
  .story-m-orb {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 480px;
    max-height: 480px;
    border-radius: 9999px;
    filter: blur(70px);
    opacity: 0.35;
  }
  .story-m-orb--a {
    top: -14%;
    left: -22%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.45), transparent 70%);
  }
  .story-m-orb--b {
    bottom: -18%;
    right: -22%;
    background: radial-gradient(circle, rgba(121, 143, 182, 0.40), transparent 70%);
  }
  .story-m-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(var(--brand-rgb), 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(var(--brand-rgb), 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse 70% 60% at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, #000 30%, transparent 80%);
    opacity: 0.7;
  }

  /* Header */
  .story-m-head {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    text-align: center;
  }
  .story-m-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
  }
  .story-m-title {
    margin: 0;
    font-size: 1.875rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--foreground);
  }
  .story-m-sub {
    margin: 1rem auto 0;
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
  }

  .story-m-hud {
    margin: 1.25rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 22rem;
  }
  .story-m-counter {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
    color: color-mix(in srgb, var(--foreground) 60%, transparent);
  }
  .story-m-counter-slash {
    padding: 0 4px;
    color: color-mix(in srgb, var(--foreground) 30%, transparent);
  }
  .story-m-counter-now {
    color: var(--secondary-emphasis);
    font-weight: 600;
  }
  .story-m-progress {
    flex: 1;
    height: 2px;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--foreground) 10%, transparent);
    overflow: hidden;
  }
  .story-m-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--secondary);
    box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.7);
    transition: width 380ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Scroller */
  .story-m-scroller {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .story-m-scroller::-webkit-scrollbar { display: none; }

  .m-frame {
    flex: 0 0 calc(100vw - 2rem);
    max-width: 26rem;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .m-frame-inner {
    position: relative;
    height: 100%;
    min-height: 36rem;
    padding: 1.5rem;
    border-radius: 22px;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.18) 60%, rgba(255, 255, 255, 0.32)),
      color-mix(in srgb, #ffffff 36%, transparent);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
      0 20px 50px -20px rgba(49, 60, 79, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: hidden;
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
  }
  .dark .m-frame-inner {
    background: rgba(250, 247, 244, 0.045);
    border-color: rgba(250, 247, 244, 0.10);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    box-shadow:
      0 26px 60px -28px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .m-frame[data-state='past'] .m-frame-inner,
  .m-frame[data-state='future'] .m-frame-inner {
    transform: scale(0.96);
    opacity: 0.55;
  }
  .m-frame[data-state='active'] .m-frame-inner {
    transform: scale(1);
    opacity: 1;
  }

  /* Frame text */
  .m-frame-num {
    margin: 0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: color-mix(in srgb, var(--foreground) 45%, transparent);
  }
  .m-frame-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary-emphasis);
  }
  .m-frame-pain {
    margin: 0.4rem 0 0.8rem;
    font-size: 0.78rem;
    line-height: 1.4;
    font-style: italic;
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
  }
  .m-frame-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--foreground);
    text-wrap: balance;
  }
  .m-frame-body {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--foreground) 72%, transparent);
  }
  .m-proof {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px dashed color-mix(in srgb, var(--foreground) 18%, transparent);
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
  }
  .m-proof b {
    color: var(--secondary-emphasis);
    font-weight: 700;
    margin-right: 0.4rem;
  }

  /* Intro frame */
  .m-frame--intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
  }
  .m-intro-hub-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
  }
  .m-intro-hub {
    position: relative;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background: rgba(var(--brand-rgb), 0.15);
    color: var(--secondary-emphasis);
    box-shadow: 0 0 30px rgba(var(--brand-rgb), 0.35), inset 0 0 0 1px rgba(var(--brand-rgb), 0.30);
  }
  .m-intro-ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1.5px solid rgba(var(--brand-rgb), 0.45);
    opacity: 0;
  }
  .m-frame[data-state='active'] .m-intro-ring--1 { animation: m-intro-ring 2.6s ease-out 0.10s infinite; }
  .m-frame[data-state='active'] .m-intro-ring--2 { animation: m-intro-ring 2.6s ease-out 0.85s infinite; }
  .m-frame[data-state='active'] .m-intro-ring--3 { animation: m-intro-ring 2.6s ease-out 1.60s infinite; }
  @keyframes m-intro-ring {
    0%   { opacity: 0; transform: scale(0.6); }
    25%  { opacity: 0.8; }
    100% { opacity: 0; transform: scale(1.9); }
  }
  .m-frame--intro .m-frame-title { font-size: 1.7rem; }

  /* ── Mockup shell (used by frames 1-3) ─────────────────────────── */
  .m-mockup {
    margin-top: 1rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--foreground) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
    overflow: hidden;
  }
  .dark .m-mockup {
    background: rgba(8, 13, 20, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .m-mockup-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--foreground) 6%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
  }
  .dark .m-mockup-bar { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.06); }
  .m-mockup-bar i {
    width: 7px; height: 7px; border-radius: 9999px;
    background: color-mix(in srgb, var(--foreground) 25%, transparent);
  }
  .m-mockup-bar i:nth-child(1) { background: rgba(255, 89, 94, 0.5); }
  .m-mockup-bar i:nth-child(2) { background: rgba(255, 202, 58, 0.5); }
  .m-mockup-bar i:nth-child(3) { background: rgba(138, 201, 38, 0.5); }
  .m-mockup-bar span {
    margin-left: 6px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 9px;
    color: color-mix(in srgb, var(--foreground) 45%, transparent);
  }
  .m-mockup-body { padding: 12px; }

  /* Gantt */
  .m-gantt { display: grid; gap: 8px; }
  .m-gantt-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 8px;
    font-size: 10px;
  }
  .m-gantt-row > span {
    color: color-mix(in srgb, var(--foreground) 60%, transparent);
    font-weight: 500;
  }
  .m-gantt-row b {
    display: block;
    height: 8px;
    border-radius: 4px;
    margin-left: var(--d, 0%);
    width: 0%;
    background: var(--c, var(--brand-secondary));
    box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--brand-secondary)) 50%, transparent);
    transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .m-frame[data-state='active'] .m-gantt-row:nth-child(1) b { width: var(--w); transition-delay: 0.10s; }
  .m-frame[data-state='active'] .m-gantt-row:nth-child(2) b { width: var(--w); transition-delay: 0.22s; }
  .m-frame[data-state='active'] .m-gantt-row:nth-child(3) b { width: var(--w); transition-delay: 0.34s; }
  .m-frame[data-state='active'] .m-gantt-row:nth-child(4) b { width: var(--w); transition-delay: 0.46s; }
  .m-frame[data-state='active'] .m-gantt-row:nth-child(5) b { width: var(--w); transition-delay: 0.58s; }

  /* Load bars */
  .m-load {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
  }
  .dark .m-load { background: rgba(8, 13, 20, 0.5); border-color: rgba(255, 255, 255, 0.07); }
  .m-load > div { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .m-load span {
    font-size: 9px;
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .m-load b {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.85), rgba(122, 169, 255, 0.85));
    width: 0%;
    transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
  }
  .m-load i {
    font-size: 10px;
    font-weight: 700;
    color: var(--foreground);
    font-style: normal;
  }
  .m-frame[data-state='active'] .m-load b { width: var(--v); }

  /* Pipeline */
  .m-pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .m-pipe-col h6 {
    margin: 0 0 6px;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
    text-align: center;
  }
  .m-pipe-card {
    margin-bottom: 5px;
    padding: 6px 5px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--foreground) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
    font-size: 9.5px;
    line-height: 1.3;
    color: var(--foreground);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms ease;
  }
  .dark .m-pipe-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.07); }
  .m-pipe-card em {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: var(--secondary-emphasis);
    font-style: normal;
    font-weight: 700;
  }
  .m-pipe-card--hot {
    border-color: rgba(var(--brand-rgb), 0.55);
    box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.30);
  }
  .m-pipe-card--won {
    background: rgba(var(--brand-rgb), 0.12);
    border-color: rgba(var(--brand-rgb), 0.50);
  }
  .m-frame[data-state='active'] .m-pipe-card { opacity: 1; transform: translateY(0); }
  .m-frame[data-state='active'] .m-pipe-col:nth-child(1) .m-pipe-card:nth-child(2) { transition-delay: 0.10s; }
  .m-frame[data-state='active'] .m-pipe-col:nth-child(1) .m-pipe-card:nth-child(3) { transition-delay: 0.22s; }
  .m-frame[data-state='active'] .m-pipe-col:nth-child(2) .m-pipe-card:nth-child(2) { transition-delay: 0.34s; }
  .m-frame[data-state='active'] .m-pipe-col:nth-child(3) .m-pipe-card:nth-child(2) { transition-delay: 0.46s; }
  .m-frame[data-state='active'] .m-pipe-col:nth-child(4) .m-pipe-card:nth-child(2) { transition-delay: 0.58s; }

  /* Mail card */
  .m-mail {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
  }
  .dark .m-mail { background: rgba(8, 13, 20, 0.50); border-color: rgba(255, 255, 255, 0.07); }
  .m-mail-dot {
    margin-top: 5px;
    width: 8px; height: 8px;
    border-radius: 9999px;
    background: var(--secondary);
    box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.8);
    animation: m-mail-pulse 1.6s ease-in-out infinite;
  }
  @keyframes m-mail-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.7); opacity: 0.6; }
  }
  .m-mail p { margin: 0; font-size: 11px; display: flex; align-items: baseline; gap: 6px; }
  .m-mail p b { color: var(--foreground); font-weight: 600; }
  .m-mail p em {
    font-style: normal;
    font-size: 9px;
    color: color-mix(in srgb, var(--foreground) 50%, transparent);
  }
  .m-mail-body { margin-top: 3px !important; color: color-mix(in srgb, var(--foreground) 65%, transparent); }

  /* Chat */
  .m-chat { display: flex; flex-direction: column; gap: 6px; }
  .m-bubble {
    max-width: 86%;
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 10.5px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 360ms ease, transform 360ms ease;
  }
  .m-bubble--user {
    align-self: flex-end;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-bottom-right-radius: 4px;
  }
  .m-bubble--ai {
    align-self: flex-start;
    background: color-mix(in srgb, var(--foreground) 7%, transparent);
    color: var(--foreground);
    border-bottom-left-radius: 4px;
  }
  .dark .m-bubble--ai { background: rgba(255, 255, 255, 0.07); }
  .m-frame[data-state='active'] .m-bubble { opacity: 1; transform: translateY(0); }
  .m-frame[data-state='active'] .m-bubble:nth-child(1) { transition-delay: 0.10s; }
  .m-frame[data-state='active'] .m-bubble:nth-child(2) { transition-delay: 0.55s; }
  .m-frame[data-state='active'] .m-bubble:nth-child(3) { transition-delay: 1.05s; }
  .m-frame[data-state='active'] .m-bubble:nth-child(4) { transition-delay: 1.55s; }
  .m-bubble--typing { display: inline-flex; gap: 3px; padding: 9px 11px; }
  .m-bubble--typing span {
    width: 5px; height: 5px;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--foreground) 45%, transparent);
    animation: m-typing 1.1s ease-in-out infinite;
  }
  .m-bubble--typing span:nth-child(2) { animation-delay: 0.16s; }
  .m-bubble--typing span:nth-child(3) { animation-delay: 0.32s; }
  @keyframes m-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
    30%           { transform: translateY(-3px); opacity: 1; }
  }

  .m-ai-card {
    margin-top: 0.85rem;
    display: grid;
    gap: 6px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
  }
  .dark .m-ai-card { background: rgba(8, 13, 20, 0.50); border-color: rgba(255, 255, 255, 0.07); }
  .m-ai-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--secondary-emphasis);
  }
  .m-ai-bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--foreground) 10%, transparent);
    overflow: hidden;
  }
  .m-ai-bar b {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), color-mix(in srgb, var(--secondary) 60%, white));
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
  }
  .m-frame[data-state='active'] .m-ai-bar b { width: 82%; }
  .m-ai-meta { font-size: 9.5px; color: color-mix(in srgb, var(--foreground) 55%, transparent); }

  /* Vault */
  .m-vault {
    position: relative;
    margin: 1.25rem auto 0;
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
  }
  .m-vault-shield {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 9999px;
    background: rgba(var(--brand-rgb), 0.15);
    color: var(--secondary-emphasis);
    box-shadow: 0 0 36px rgba(var(--brand-rgb), 0.45), inset 0 0 0 1px rgba(var(--brand-rgb), 0.30);
  }
  .m-vault-ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    border: 1.5px solid rgba(var(--brand-rgb), 0.40);
    opacity: 0;
  }
  .m-frame[data-state='active'] .m-vault-ring--1 { animation: m-vault-ring 2.4s ease-out 0.20s infinite; }
  .m-frame[data-state='active'] .m-vault-ring--2 { animation: m-vault-ring 2.4s ease-out 0.90s infinite; }
  .m-frame[data-state='active'] .m-vault-ring--3 { animation: m-vault-ring 2.4s ease-out 1.60s infinite; }
  @keyframes m-vault-ring {
    0%   { opacity: 0; transform: scale(0.55); }
    30%  { opacity: 0.7; }
    100% { opacity: 0; transform: scale(1.6); }
  }

  .m-badges {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .m-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    color: var(--foreground);
    border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
    background: color-mix(in srgb, var(--foreground) 4%, transparent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 360ms ease, transform 360ms ease;
  }
  .dark .m-badge { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.10); }
  .m-frame[data-state='active'] .m-badge { opacity: 1; transform: translateY(0); }
  .m-frame[data-state='active'] .m-badge:nth-child(1) { transition-delay: 0.20s; }
  .m-frame[data-state='active'] .m-badge:nth-child(2) { transition-delay: 0.35s; }
  .m-frame[data-state='active'] .m-badge:nth-child(3) { transition-delay: 0.50s; }

  .m-shelf {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .m-folder {
    height: 26px;
    border-radius: 4px 4px 6px 6px;
    background: linear-gradient(160deg, rgba(var(--brand-rgb), 0.30), rgba(var(--brand-rgb), 0.12));
    border: 1px solid rgba(var(--brand-rgb), 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 350ms ease, transform 350ms ease;
  }
  .m-frame[data-state='active'] .m-folder { opacity: 1; transform: translateY(0); }
  .m-frame[data-state='active'] .m-folder--1 { transition-delay: 0.55s; }
  .m-frame[data-state='active'] .m-folder--2 { transition-delay: 0.65s; }
  .m-frame[data-state='active'] .m-folder--3 { transition-delay: 0.75s; }
  .m-frame[data-state='active'] .m-folder--4 { transition-delay: 0.85s; }
  .m-frame[data-state='active'] .m-folder--5 { transition-delay: 0.95s; }

  /* Stack (frame 5) */
  .m-stack {
    margin-top: 1rem;
    position: relative;
    display: grid;
    gap: 8px;
  }
  .m-stack-layer {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
    background: color-mix(in srgb, var(--foreground) 4%, transparent);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 450ms ease, transform 450ms ease;
  }
  .dark .m-stack-layer { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.10); }
  .m-stack-layer--3 {
    border-color: rgba(var(--brand-rgb), 0.50);
    background:
      linear-gradient(135deg, rgba(var(--brand-rgb), 0.20), rgba(var(--brand-rgb), 0.05));
  }
  .m-frame[data-state='active'] .m-stack-layer { opacity: 1; transform: translateY(0); }
  .m-frame[data-state='active'] .m-stack-layer--1 { transition-delay: 0.10s; }
  .m-frame[data-state='active'] .m-stack-layer--2 { transition-delay: 0.35s; }
  .m-frame[data-state='active'] .m-stack-layer--3 { transition-delay: 0.60s; }
  .m-stack-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--foreground);
  }
  .m-stack-head em {
    margin-left: auto;
    font-style: normal;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 9999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
  }
  .m-stack-bars { display: flex; gap: 6px; margin-top: 6px; }
  .m-stack-bars b {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--foreground) 15%, transparent);
  }
  .m-stack-layer--3 .m-stack-bars b {
    background: linear-gradient(90deg, var(--secondary), rgba(var(--brand-rgb), 0.5));
  }
  .m-stack-cells {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin-top: 8px;
  }
  .m-stack-cells > span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(var(--brand-rgb), 0.12);
    color: var(--secondary-emphasis);
    border: 1px solid rgba(var(--brand-rgb), 0.25);
  }

  .m-power {
    margin-top: 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background:
      radial-gradient(circle at 20% 30%, rgba(var(--brand-rgb), 0.25), transparent 70%),
      color-mix(in srgb, var(--foreground) 4%, transparent);
    border: 1px solid rgba(var(--brand-rgb), 0.30);
  }
  .m-power-num {
    font-size: 14px;
    color: var(--foreground);
    font-weight: 600;
  }
  .m-power-num b {
    font-size: 28px;
    color: var(--secondary-emphasis);
    margin: 0 4px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .m-power-label { font-size: 11px; color: color-mix(in srgb, var(--foreground) 65%, transparent); }

  /* Outro */
  .m-frame--outro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }
  .m-outro-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    background: rgba(var(--brand-rgb), 0.15);
    color: var(--secondary-emphasis);
    box-shadow: 0 0 30px rgba(var(--brand-rgb), 0.40);
  }
  .m-outro-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 9999px;
    border: 2px solid rgba(var(--brand-rgb), 0.45);
    opacity: 0;
  }
  .m-frame[data-state='active'] .m-outro-pulse {
    animation: m-outro-pulse 2s ease-out infinite;
  }
  @keyframes m-outro-pulse {
    0%   { opacity: 0.8; transform: scale(0.85); }
    100% { opacity: 0; transform: scale(1.4); }
  }
  .m-outro-ctas {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }
  .m-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  }
  .m-cta--primary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    box-shadow: 0 12px 28px -10px rgba(var(--brand-rgb), 0.55);
  }
  .m-cta--primary:active { transform: translateY(1px); }
  .m-cta--ghost {
    border: 1px solid color-mix(in srgb, var(--foreground) 22%, transparent);
    color: var(--foreground);
    background: transparent;
  }

  /* Dots */
  .story-m-dots {
    margin: 0.5rem auto 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 1rem;
  }
  .story-m-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 0;
    padding: 0;
    background: color-mix(in srgb, var(--foreground) 20%, transparent);
    cursor: pointer;
    transition: width 280ms ease, background 280ms ease;
  }
  .story-m-dot.is-active {
    width: 24px;
    background: var(--secondary);
    box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.6);
  }

  .story-m-hint {
    margin: 1rem auto 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--foreground) 45%, transparent);
  }
  .story-m-hint span {
    display: inline-block;
    margin: 0 6px;
    color: var(--secondary-emphasis);
    animation: m-hint-bob 1.8s ease-in-out infinite;
  }
  .story-m-hint span:last-child { animation-delay: 0.4s; }
  @keyframes m-hint-bob {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .m-frame-inner,
    .m-gantt-row b,
    .m-load b,
    .m-pipe-card,
    .m-bubble,
    .m-badge,
    .m-folder,
    .m-stack-layer,
    .m-ai-bar b {
      transition: none !important;
    }
    .m-intro-ring,
    .m-vault-ring,
    .m-outro-pulse,
    .m-mail-dot,
    .m-bubble--typing span,
    .story-m-hint span {
      animation: none !important;
    }
  }

/* ───────────────────────────────────────────────────────── */
/* Mobile ZEIT = GELD frame (timer + auto-fill doc)          */
/* ───────────────────────────────────────────────────────── */
.m-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
}
.dark .m-timer-row { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.07); }
.m-timer-pulse {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: var(--secondary);
  box-shadow: 0 0 12px rgba(var(--brand-rgb), 0.85);
  flex: 0 0 auto;
  animation: m-timer-pulse 1.4s ease-in-out infinite;
}
@keyframes m-timer-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.6); opacity: 0.45; }
}
.m-timer-info { flex: 1; min-width: 0; }
.m-timer-info p {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-timer-clock {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--secondary-emphasis);
  display: block;
}
.m-timer-sec {
  display: inline-block;
  min-width: 1.8ch;
  color: var(--secondary-emphasis);
}
.m-timer-stop {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 6px 16px -6px rgba(var(--brand-rgb), 0.6);
}

.m-timer-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.m-timer-list > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  text-align: center;
}
.dark .m-timer-list > div { background: rgba(255, 255, 255, 0.03); }
.m-timer-list span {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--foreground) 55%, transparent);
  font-weight: 600;
}
.m-timer-list b {
  display: block;
  height: 4px;
  border-radius: 2px;
  margin: 2px 4px;
  width: 0%;
  background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.85), rgba(122, 169, 255, 0.85));
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.m-timer-list em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--foreground);
}
.m-frame[data-state='active'] .m-timer-list > div:nth-child(1) b { width: var(--w); transition-delay: 0.20s; }
.m-frame[data-state='active'] .m-timer-list > div:nth-child(2) b { width: var(--w); transition-delay: 0.32s; }
.m-frame[data-state='active'] .m-timer-list > div:nth-child(3) b { width: var(--w); transition-delay: 0.44s; }
.m-frame[data-state='active'] .m-timer-list > div:nth-child(4) b { width: var(--w); transition-delay: 0.56s; }

.m-doc {
  position: relative;
  margin-top: 1rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.dark .m-doc { background: rgba(8, 13, 20, 0.55); border-color: rgba(255, 255, 255, 0.08); }
.m-doc-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}
.m-doc-line {
  height: 5px;
  border-radius: 2px;
  margin: 5px 0;
  background: color-mix(in srgb, var(--foreground) 10%, transparent);
  width: 100%;
}
.m-doc-line--filled { background: linear-gradient(90deg, var(--secondary), rgba(var(--brand-rgb), 0.5)); width: 100%; }
.m-doc-line--w70    { width: 70%; }
.m-doc-line--w50    { width: 50%; }
.m-doc-line--filling {
  background: linear-gradient(90deg, var(--secondary), rgba(var(--brand-rgb), 0.5));
  width: 0%;
}
.m-frame[data-state='active'] .m-doc-line--filling {
  animation: m-doc-fill 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
@keyframes m-doc-fill {
  0%   { width: 0%; }
  100% { width: 85%; }
}
.m-doc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--secondary-emphasis);
  border: 1px solid rgba(var(--brand-rgb), 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .m-timer-pulse,
  .m-doc-line--filling { animation: none !important; }
  .m-timer-list b { transition: none !important; }
}
