/* ==========================================================================
   NK DAIRY — MOTION & CINEMATIC TRANSITIONS
   Editorial Precision, Fluid Masking, and Reduced-Motion Support
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. EDITORIAL TEXT MASK REVEALS
   -------------------------------------------------------------------------- */
.editorial-mask-wrap {
  overflow: hidden;
  display: block;
}

.editorial-mask-line {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}

.editorial-mask-line.is-revealed {
  transform: translateY(0%);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   02. CLIP-PATH IMAGE REVEALS
   -------------------------------------------------------------------------- */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: clip-path;
}

.clip-reveal.is-revealed {
  clip-path: inset(0% 0 0 0);
}

/* --------------------------------------------------------------------------
   03. FADE & DRIFT REVEALS
   -------------------------------------------------------------------------- */
.drift-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.drift-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* --------------------------------------------------------------------------
   04. FINE-LINE DRAW REVEAL
   -------------------------------------------------------------------------- */
.line-draw {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.line-draw.is-revealed {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   05. REDUCED MOTION SUPPORT (ACCESSIBILITY MANDATE)
   -------------------------------------------------------------------------- */
@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;
  }

  .editorial-mask-line {
    transform: none !important;
    opacity: 1 !important;
  }

  .clip-reveal {
    clip-path: none !important;
  }

  .drift-fade {
    opacity: 1 !important;
    transform: none !important;
  }

  .line-draw {
    transform: none !important;
  }

  .hero-canvas-container {
    opacity: 1 !important;
    transform: none !important;
  }
}
