/* ==========================================================================
   Motion, Marquee, Reveal Safeguards & Reduced-Motion Rules
   ========================================================================== */

@keyframes pk-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes pk-marquee-reverse {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pk-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 255, 50, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 255, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 50, 0);
  }
}

.pk-status-dot {
  animation: pk-pulse-ring 2.2s infinite;
}

.pk-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.pk-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.15rem 0;
  animation: pk-marquee-scroll 34s linear infinite;
  will-change: transform;
}

.pk-marquee-track.is-reverse {
  animation: pk-marquee-reverse 38s linear infinite;
}

.pk-marquee-wrap:hover .pk-marquee-track {
  animation-play-state: paused;
}

.pk-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
  color: var(--ink-alabaster);
}

.pk-marquee-sep {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent-lime);
}

/* Progressive Reveal Safeguard:
   Elements marked [data-reveal] stay visible unless GSAP actively animates them,
   and `.pk-ready-fallback` ensures no content can ever remain stuck hidden. */
.pk-ready-fallback [data-reveal],
.pk-ready-fallback [data-hero-stagger] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pk-marquee-track,
  .pk-marquee-track.is-reverse,
  .pk-status-dot {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
