/* Hero entrance (animation pass, fix 1): the page hero's words play the stop words' recipe once per page load.
   Each line fades in and rises 12 px on the slow token, 50 ms apart, from first paint (no scroll trigger, never
   re-fires). Hidden only for JS + motion-tolerant visitors (the head script adds html.js); with fill-mode backwards
   no state is left behind, so a failed or blocked animation shows the words where they are. Last line starts at
   100 + 4 x 50 = 300 ms and settles at 700 ms, inside the 900 ms hero budget. */
@media (prefers-reduced-motion:no-preference){
  html.js :is(.first-copy, .plate.hero .copy, .s-rest .copy) > * {
    animation:pc-hero-in var(--pc-duration-slow, 400ms) var(--pc-ease-out, cubic-bezier(0.4, 1, 0.6, 1)) backwards;
    animation-delay:calc(100ms + var(--h-i, 0) * var(--pc-duration-stagger, 50ms));
  }
  html.js :is(.first-copy, .plate.hero .copy, .s-rest .copy) > :nth-child(2) { --h-i:1; }
  html.js :is(.first-copy, .plate.hero .copy, .s-rest .copy) > :nth-child(3) { --h-i:2; }
  html.js :is(.first-copy, .plate.hero .copy, .s-rest .copy) > :nth-child(4) { --h-i:3; }
  html.js :is(.first-copy, .plate.hero .copy, .s-rest .copy) > :nth-child(n+5) { --h-i:4; }
}
@keyframes pc-hero-in { from { opacity:0; translate:0 12px; } }
