/**
 * ETCS (Excess Technologies & Consultant Services)
 * Animations & Micro-Interactions
 * Subtle, calm, engineering-grade transitions with full accessibility.
 */

/* Gentle Fade Up */
@keyframes subtleFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Image Reveal */
@keyframes imageSoftReveal {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Stagger */
.hero-inner > *,
.hero-content > * {
  animation: subtleFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-inner .hero-badge-wrap,
.hero-content .hero-badge-wrap { animation-delay: 0.05s; }
.hero-inner .hero-headline,
.hero-content .hero-headline { animation-delay: 0.15s; }
.hero-inner .hero-subhead,
.hero-content .hero-subhead { animation-delay: 0.25s; }
.hero-inner .hero-actions,
.hero-content .hero-actions { animation-delay: 0.35s; }
.hero-inner .hero-trust-indicators,
.hero-content .hero-trust-indicators { animation-delay: 0.45s; }

.hero-image-frame {
  animation: imageSoftReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Scroll-Triggered Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover transitions */
.service-card,
.industry-card,
.case-card,
.pillar-item,
.process-step-node {
  will-change: transform, box-shadow;
}

/* Respect Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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