/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

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

/* Stagger children within a reveal-group */
.reveal-group .reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal-group .reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-group .reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-group .reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-group .reveal-item:nth-child(6) { transition-delay: 400ms; }
.reveal-group .reveal-item:nth-child(7) { transition-delay: 480ms; }
.reveal-group .reveal-item:nth-child(8) { transition-delay: 560ms; }

/* ============================================
   LOADING STATE
   ============================================ */
body.is-loading {
  overflow: hidden;
}

body.is-loading .hero__content,
body.is-loading .nav {
  opacity: 0;
}

/* ============================================
   PARALLAX ELEMENTS
   ============================================ */
[data-parallax] {
  will-change: transform;
}

/* ============================================
   QUOTE ANIMATION
   ============================================ */
.case-study__quote {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.case-study__quote.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   SKILL DOT ANIMATION
   ============================================ */
.skill__dot {
  transform: scale(0);
  transition: transform 0.4s var(--ease-out-expo),
              background 0.4s var(--ease-out-expo);
}

.skill.is-visible .skill__dot {
  transform: scale(1);
}

.skill.is-visible .skill__dot:nth-child(1) { transition-delay: 0ms; }
.skill.is-visible .skill__dot:nth-child(2) { transition-delay: 60ms; }
.skill.is-visible .skill__dot:nth-child(3) { transition-delay: 120ms; }
.skill.is-visible .skill__dot:nth-child(4) { transition-delay: 180ms; }
.skill.is-visible .skill__dot:nth-child(5) { transition-delay: 240ms; }

/* ============================================
   PROCESS CARD ICON DRAW ANIMATION
   ============================================ */
.process-icon-svg .icon-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.process__card.is-visible .icon-draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s var(--ease-out-expo);
}

.process__card.is-visible .icon-draw:nth-child(1) { transition-delay: 0ms; }
.process__card.is-visible .icon-draw:nth-child(2) { transition-delay: 150ms; }
.process__card.is-visible .icon-draw:nth-child(3) { transition-delay: 300ms; }
.process__card.is-visible .icon-draw:nth-child(4) { transition-delay: 450ms; }

/* ============================================
   NAV LOGO HOVER
   ============================================ */
.nav__logo:hover .nav__logo-text {
  opacity: 0.9;
}

/* ============================================
   REDUCED MOTION — accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item { opacity: 1; transform: none; }
  .hero__word { opacity: 1; transform: none; }
  .skills-ticker__track { animation: none; }
}
