/* =====================================================================
   RV Estética Automotiva · ANIMAÇÕES
   MAX Studio · v6 (15/10/2026)

   SÓ DUAS, E COM MOTIVO:
   1. ABERTURA DO TOPO (CSS puro, roda até sem JavaScript): a foto do Nissan acende do
      escuro, o título sobe linha por linha, o texto e o botão aparecem. Pronto em ~1,6 s e PARA.
   2. TRABALHOS: os vídeos do mosaico tocam sozinhos, sem som (site.js); no mouse a foto
      aproxima um pouco (design.css); a foto ampliada abre com um leve zoom.
   Nada mais se mexe sozinho: os títulos das seções NÃO sobem ao rolar (na V4 subiam; é o
   "fade-and-slide em tudo" típico de site gerado). O resto só responde ao visitante.

   - "Reduzir movimento": nada se mexe (seção 4).
   - Só transform, opacity e clip-path.
   ===================================================================== */


/* =========================================================
   1. MOVIMENTOS
   ========================================================= */

@keyframes linha {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}
@keyframes sobe {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes foto-acende {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lb-abre {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   2. BASE (estado final = visível)
   ========================================================= */

.ln {
  display: block;
  overflow: hidden;
  padding: .04em .06em .12em;
  margin: -.04em -.06em -.12em;
}
.ln > span { display: inline-block; }
.ln:nth-child(2) { --i: 1; }


/* =========================================================
   3. ABERTURA DO TOPO (por tempo; não depende de JavaScript)
   ========================================================= */

.hero-foto img  { animation: foto-acende .5s var(--ease) both; } /* curto: é a maior imagem da tela (LCP) */
.hero .ln > span { animation: linha .9s var(--ease) calc(.15s + var(--i, 0) * .1s) both; }
.hero-p.he      { --d: .5s; }
.hero-acoes.he  { --d: .6s; }
.hero-placa.he  { --d: .7s; }
.he { animation: sobe .7s var(--ease) var(--d, 0s) both; }

.lb[open] .lb-box { animation: lb-abre .35s var(--ease) both; }


/* =========================================================
   4. "REDUZIR MOVIMENTO": tudo parado e completo
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
