/* Brief, optional motion: navigation and dialogs; never delay a form or filter. */
:root { --atlas-ease: cubic-bezier(.23,1,.32,1); }
@keyframes atlas-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes atlas-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  main > .hero, main > .page-intro { animation: atlas-enter 260ms var(--atlas-ease) both; }
  dialog[open]:not(.help-dialog) { animation: atlas-enter 220ms var(--atlas-ease) both; }
  dialog[open]::backdrop { animation: atlas-backdrop 180ms ease-out both; }
  .help-dialog[open] .help-card { animation: atlas-enter 220ms var(--atlas-ease) both; }
  #toast:not(:empty) { animation: atlas-enter 160ms var(--atlas-ease) both; }
  .country-card, .program-card, .start-card { transition: transform 180ms var(--atlas-ease); }
  .primary, .outline, .icon-button { transition: transform 140ms var(--atlas-ease), background-color 140ms ease-out; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .country-card:hover, .program-card:hover, .start-card:hover { transform: translateY(-3px); }
  .primary:active, .outline:active, .icon-button:active { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main > .hero, main > .page-intro, dialog[open], dialog[open]::backdrop,
  .help-dialog[open] .help-card, #toast { animation: none !important; }
}
