/*  Rose Couture — motion utilities
    Slow, editorial timing. Reduced-motion is respected via token overrides. */

@keyframes wmlFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wmlFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wmlKenBurns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.06); }
}
@keyframes wmlReveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0.2; }
  to   { clip-path: inset(0 0 0    0); opacity: 1;   }
}
@keyframes wmlSheen {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

.wml-anim-fade-up { animation: wmlFadeUp var(--wml-dur-slow) var(--wml-ease) both; }
.wml-anim-fade-in { animation: wmlFadeIn var(--wml-dur-slow) var(--wml-ease) both; }
.wml-anim-reveal  { animation: wmlReveal var(--wml-dur-slow) var(--wml-ease) both; }

/* Staggered delays for grids and lists */
.wml-stagger > *:nth-child(1) { animation-delay:   0ms; }
.wml-stagger > *:nth-child(2) { animation-delay: 120ms; }
.wml-stagger > *:nth-child(3) { animation-delay: 240ms; }
.wml-stagger > *:nth-child(4) { animation-delay: 360ms; }
.wml-stagger > *:nth-child(5) { animation-delay: 480ms; }
.wml-stagger > *:nth-child(6) { animation-delay: 600ms; }
.wml-stagger > *:nth-child(7) { animation-delay: 720ms; }
.wml-stagger > *:nth-child(8) { animation-delay: 840ms; }

/* Hero slideshow — slow cross-fade with Ken Burns zoom */
.wml-hero-stage {
  position: relative;
  overflow: hidden;
}
.wml-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1600ms var(--wml-ease);
  overflow: hidden;
}
.wml-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.wml-hero-slide img,
.wml-hero-slide .wml-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: wmlKenBurns var(--wml-dur-hero) var(--wml-ease-soft) both;
}

/* Lazy-reveal on scroll (JS toggles .is-in-view) */
.wml-in-view {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--wml-dur-slow) var(--wml-ease),
    transform var(--wml-dur-slow) var(--wml-ease);
  will-change: opacity, transform;
}
.wml-in-view.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Image crossfade on hover (product cards) */
.wml-img-swap {
  position: relative;
  overflow: hidden;
}
.wml-img-swap > img,
.wml-img-swap > .wml-img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    opacity var(--wml-dur-slow) var(--wml-ease),
    transform var(--wml-dur-slow) var(--wml-ease);
}
.wml-img-swap > .is-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.wml-img-swap:hover > .is-primary   { opacity: 0; }
.wml-img-swap:hover > .is-secondary { opacity: 1; transform: scale(1.02); }

/* Gilt sheen (use sparingly on decorative accents) */
.wml-sheen {
  background-image: linear-gradient(
    110deg,
    transparent 0%,
    rgba(201,162,90,0.22) 45%,
    rgba(201,162,90,0.28) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: wmlSheen 4800ms var(--wml-ease) infinite;
}
