/* Binlogic - Keyframe Animations & Micro-Interactions */

/* SVG Data Pulse Animation */
@keyframes dashPulse {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.animate-dash {
  stroke-dasharray: 20, 10;
  animation: dashPulse 4s linear infinite;
}

/* Subtle Glowing Beacon */
@keyframes beaconGlow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

.animate-glow {
  animation: beaconGlow 3s ease-in-out infinite;
}

/* Scroll Fade In Reveals - Visible by default for resilience */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

html.js-reveal-active .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

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

/* Simple Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .animate-dash,
  .animate-glow {
    animation: none !important;
  }
}
