/* ==========================================================================
   Traders Bridge (TXB) — Motion System & Reduced-Motion Fallbacks
   ========================================================================== */

/* Animated SVG Connection Pulses in Hero */
.txb-line-pulse {
  stroke-dasharray: 8 10;
  animation: txbDashFlow 2.6s linear infinite;
}

.txb-line-pulse-reverse {
  stroke-dasharray: 6 12;
  animation: txbDashFlowReverse 3.2s linear infinite;
}

@keyframes txbDashFlow {
  from {
    stroke-dashoffset: 36;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes txbDashFlowReverse {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 36;
  }
}

/* Subtle Core Ring Breathing */
.txb-orbit-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: txbSlowSpin 38s linear infinite;
}

.txb-orbit-ring-reverse {
  transform-box: fill-box;
  transform-origin: center;
  animation: txbSlowSpinReverse 48s linear infinite;
}

@keyframes txbSlowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes txbSlowSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

/* Smooth Floating Micro-Cards (Transform-only) */
.txb-float-slow {
  animation: txbFloatY 5.5s ease-in-out infinite;
}

.txb-float-delay {
  animation: txbFloatY 6.2s ease-in-out 1.4s infinite;
}

@keyframes txbFloatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Hero Eyebrow Status Dot */
.hero-eyebrow-pulse {
  animation: txbPulseGlow 2.4s ease-in-out infinite;
}

@keyframes txbPulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.78;
  }
}

/* Respect Reduced Motion Strictly */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .txb-line-pulse,
  .txb-line-pulse-reverse,
  .txb-orbit-ring,
  .txb-orbit-ring-reverse,
  .txb-float-slow,
  .txb-float-delay,
  .hero-eyebrow-pulse {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
