/* Só roda para quem não pediu movimento reduzido (acessibilidade) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes abre { from { opacity: 0; transform: translateY(-.5rem) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes sobe { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

  /* perguntas frequentes e outros menus de abrir/fechar */
  details > summary { transition: background-color .15s; }
  details[open] > :not(summary) { animation: abre .25s ease-out; }

  /* cards: sobem ao entrar na tela e levantam ao passar o mouse */
  .card, .big { transition: transform .2s, box-shadow .2s; }
  .card:hover, .big:hover { transform: translateY(-.35rem) rotate(-.6deg); box-shadow: 0 .6rem 0 var(--graphite); }
  .card .dot { transition: transform .4s; }
  .card:hover .dot { transform: scale(1.2); }
  @supports (animation-timeline: view()) {
    .card, .gallery li, .big { animation: sobe linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }

  /* resultados da busca entram em sequência */
  #results li { animation: sobe .35s ease-out both; }
  #results li:nth-child(2) { animation-delay: .06s; }
  #results li:nth-child(3) { animation-delay: .12s; }
  #results li:nth-child(n+4) { animation-delay: .18s; }
}
