/* Animações ligadas à rolagem. Fica em public/ de propósito: o minificador do build junta animation + animation-timeline
   num atalho que o Safari descarta. Só transform: roda fora da thread principal, liso no iPhone.
   Sem suporte, tudo fica parado e continua legível: nada depende destas regras para aparecer. */
@keyframes zs-flores-sobem { to { transform: translateY(-11vh); } }
@keyframes zs-texto-sobe { to { transform: translateY(-7vh); } }
@keyframes zs-letreiro { to { transform: translateX(-24%); } }
@keyframes zs-caule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes zs-gira { from { transform: rotate(-16deg); } to { transform: rotate(18deg); } }
@keyframes zs-notas-andam { from { transform: translateX(-8vw); } to { transform: translateX(46vw); } }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__flores-movem {
      animation-name: zs-flores-sobem;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .hero__texto {
      animation-name: zs-texto-sobe;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .letreiro__trilho {
      animation-name: zs-letreiro;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
    }
    .caminho__caule {
      animation-name: zs-caule;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 20% cover 55%;
    }
    .manifesto__flor {
      animation-name: zs-gira;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
    }
    .fim__notas {
      animation-name: zs-notas-andam;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
