@keyframes streamDrift {
  0% {
    translate: -6% 0;
    opacity: 0.48;
  }
  50% {
    translate: 6% 2%;
    opacity: 0.88;
  }
  100% {
    translate: -6% 0;
    opacity: 0.48;
  }
}

@keyframes corePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.28;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 0.54;
  }
}

@keyframes cueMove {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 1.1rem);
    opacity: 0;
  }
}

.stream {
  animation: streamDrift 8s ease-in-out infinite;
}

.stream-cyan,
.stream-yellow {
  animation-delay: -3s;
}

.stream-magenta {
  animation-delay: -5s;
}

.studio-core {
  animation: corePulse 7s ease-in-out infinite;
}

.scroll-cue::after {
  animation: cueMove 1.7s ease-out infinite;
}

.reveal {
  transform: translateY(26px) scale(0.98);
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.timeline::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12%;
  height: 3px;
  content: "";
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.72);
  transform: translateY(-50%);
  animation: timelineScan 6s ease-in-out infinite;
}

@keyframes timelineScan {
  0% {
    left: 0;
  }
  100% {
    left: 88%;
  }
}

@media (max-width: 980px) {
  .timeline::after {
    top: 0;
    left: 1.2rem;
    width: 3px;
    height: 12%;
    transform: none;
    animation-name: timelineScanVertical;
  }

  @keyframes timelineScanVertical {
    0% {
      top: 0;
    }
    100% {
      top: 88%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
