/* adult-entertainment.css — bespoke hero motion layered on industry.css
   (scope .p-industry--adult-entertainment). Two moves:
     · the clapperboard slate lifts slowly, then SLAMS shut on
       incode-impact (the exits-with-weight curve) — a real clap —
       holds closed, and reopens gently
     · the flame undulates slowly from its base (skew + swell wobble,
       irregular keyframes so it reads organic, never metronomic)
   Both seam-correct: cycles start and end at the settled pose. */

.p-industry--adult-entertainment .ae-clap {
  /* hinge set inline at the slate's left end (transform-origin 0% 100%) */
  --ih-ambient: ae-clap 4.5s linear 2.4s infinite;
}
@keyframes ae-clap {
  0%, 12% {
    transform: rotate(0deg);
    animation-timing-function: ease-in-out; /* slow lift */
  }
  28% {
    transform: rotate(-3.5deg); /* raised */
    animation-timing-function: cubic-bezier(0.8, 0, 1, 0.3); /* incode-impact: the SLAM */
  }
  34%, 48% {
    transform: rotate(5.5deg); /* clapped shut, brief hold */
    animation-timing-function: ease-in-out;
  }
  62%, 100% { transform: rotate(0deg); } /* reopens, rests */
}

.p-industry--adult-entertainment .ae-flame {
  transform-origin: 50% 100%;
  --ih-ambient: ae-flame 5.2s ease-in-out 2.4s infinite;
}
@keyframes ae-flame {
  0%, 100% { transform: skewX(0deg) scale(1, 1); }
  22% { transform: skewX(-2.2deg) scale(1.015, 1.04); }
  45% { transform: skewX(1.4deg) scale(0.99, 0.97); }
  64% { transform: skewX(2.4deg) scale(1.01, 1.05); }
  82% { transform: skewX(-1.2deg) scale(0.995, 0.985); }
}

/* nested tags take the template's entrance+ambient dual declaration */
.p-industry--adult-entertainment .ih-hero__art svg .ae-clap,
.p-industry--adult-entertainment .ih-hero__art svg .ae-flame {
  transform-box: fill-box;
  animation:
    ih-el 0.55s var(--ease-out-expo, ease) var(--ih-el-delay, 0.12s) both,
    var(--ih-ambient, ih-none);
}
html[data-ih-skip] .p-industry--adult-entertainment .ih-hero__art svg .ae-clap,
html[data-ih-skip] .p-industry--adult-entertainment .ih-hero__art svg .ae-flame {
  animation: var(--ih-ambient, ih-none);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .p-industry--adult-entertainment .ae-clap,
  .p-industry--adult-entertainment .ae-flame {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
