/* Slide 02 (problem) entrance motion. Runs only while #problem.is-active (set when the slide is in view,
   never during the intro). Transforms and opacity only, so nothing changes size or position.
   The wrappers keep their final visibility; the animated children use fill-mode "both". */

#problem .split-copy.reveal,
#problem .problem-market-aside.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@keyframes problem-title-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes problem-text-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes problem-card-slide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

#problem.problem-run .split-copy h2 {
  animation: problem-title-in 0.6s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

#problem.problem-run .split-copy p:not(.eyebrow) {
  animation: problem-text-in 0.6s ease-out 0.3s both;
}

/* Buyer, seller, business partner: about 130 ms apart, each a short fade with at most 8 px horizontal travel. */
#problem.problem-run .problem-market-aside .problem-triad > div {
  animation: problem-card-slide 0.45s ease-out both;
}
#problem.problem-run .problem-market-aside .problem-triad > div:nth-child(1) { animation-delay: 0.15s; }
#problem.problem-run .problem-market-aside .problem-triad > div:nth-child(2) { animation-delay: 0.28s; }
#problem.problem-run .problem-market-aside .problem-triad > div:nth-child(3) { animation-delay: 0.41s; }

/* Market gap block: a plain fade once the three categories have appeared. */
#problem.problem-run .problem-market-challenge {
  animation: problem-text-in 0.6s ease-out 0.75s both;
}

@media (prefers-reduced-motion: reduce) {
  #problem.problem-run,
  #problem.problem-run * {
    animation: none !important;
  }
}
