/* Movimento. Tudo que esconde ou anima fica dentro do @media abaixo. */
.progresso { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--cor-principal); transform: scaleX(0); transform-origin: 0 50%; }
.topo #menu a[aria-current] { color: var(--cor-principal); }
h1 span { display: inline-block; }
.letreiro { background: var(--cor-principal); color: var(--fundo); display: flex; align-items: center; overflow: hidden; }
.letreiro-janela { flex: 1; min-width: 0; overflow: hidden; }
.letreiro ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.letreiro li { display: flex; align-items: center; padding: 14px 0; font-weight: 700; font-size: 1.125rem; text-transform: uppercase; white-space: nowrap; }
.letreiro li::after { content: ""; width: 10px; height: 22px; margin: 0 26px; background: var(--fundo); transform: skewX(-20deg); }
.anima .letreiro-trilho { display: flex; width: max-content; }
.anima .letreiro ul { flex-wrap: nowrap; }
.faixa-pausa { min-height: 44px; margin: 0 12px; padding: 8px 16px; font: 600 1rem Barlow, Arial, sans-serif; color: var(--texto); background: var(--fundo); border: 0; cursor: pointer; }
.letreiro :focus-visible { outline-color: var(--fundo); outline-offset: 2px; }
.cards li { position: relative; overflow: hidden; }
.card-corpo { position: relative; z-index: 1; }
.linhas li { overflow: clip; }
.cards li::before { pointer-events: none; }

@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes palavra { from { transform: translateY(45%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(-10%); } }
  @keyframes selo { from { transform: translateX(-60px); opacity: 0; } }
  @keyframes letreiro { to { transform: translateX(-50%); } }
  h1 span { animation: palavra .6s cubic-bezier(.2, .8, .2, 1) both; }
  h1 span:nth-child(2) { animation-delay: .08s; }
  h1 span:nth-child(3) { animation-delay: .16s; }
  h1 span:nth-child(4) { animation-delay: .24s; }
  h1 span:nth-child(5) { animation-delay: .32s; }
  .selo { animation: selo .5s cubic-bezier(.2, .8, .2, 1) .5s both; }

  .anima .letreiro-trilho { animation: letreiro 40s linear infinite; }
  .letreiro.parado .letreiro-trilho, .letreiro:hover .letreiro-trilho { animation-play-state: paused; }

  .cards li, .foto, .contato { transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1), clip-path .9s cubic-bezier(.2, .8, .2, 1); }
  .cards li.espera, .foto.espera { opacity: 0; transform: translateY(36px); }
  .cards li::before { content: ""; position: absolute; inset: 0 auto 0 -90%; width: 30%; background: var(--cor-principal); opacity: .22; transform: skewX(-20deg); z-index: 0; transition: left .7s cubic-bezier(.2, .8, .2, 1); }
  .cards li:hover::before { left: 160%; }
  .card-midia img { transition: transform .5s; }
  .cards li:hover .card-midia img { transform: scale(1.04); }
  .linhas img { transition: transform 1.3s cubic-bezier(.15, .75, .2, 1); }
  .linhas strong { transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s; }
  .linhas li.espera img { transform: translateX(115vw); }
  .linhas li.espera strong { transform: translateX(-30px); opacity: 0; }
  .contato.espera { clip-path: polygon(0 300px, 100% 100px, 100% 100%, 0 100%); }
}
