/* Keyframes & motion — physical ease-out-expo */

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes fadeUpHero {
  from {
    transform: translateY(24px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.highlight {
  position: relative;
  display: inline;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  background-size: 200% auto;
  animation: shimmer 2s linear infinite;
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge,
.hero-headline,
.hero-desc,
.hero-cta {
  opacity: 1;
}

.hero-stagger > * {
  opacity: 1;
  animation: fadeUpHero 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-stagger .hero-el:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-stagger .hero-el:nth-child(2) {
  animation-delay: 0.25s;
}
.hero-stagger .hero-el:nth-child(3) {
  animation-delay: 0.45s;
}
.hero-stagger .hero-el:nth-child(4) {
  animation-delay: 0.6s;
}
.hero-stagger .hero-el:nth-child(5) {
  animation-delay: 0.75s;
}

.noise-fixed::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

html.doc-tab-hidden .marquee-inner,
html.doc-tab-hidden .clients-track {
  animation-play-state: paused !important;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-stagger > * {
    animation: none;
    opacity: 1;
  }

  .highlight::after {
    animation: none;
  }
}
