/* motion.css - smooth opening on every portal page (features_css.php loads
   it with motion.js). Pop-up windows fade in and rise, and fade out when
   closed (motion.js adds .vh-closing for that); tabs, sign-in steps and
   <details> slide in. Anything else that appears is animated by motion.js.
   Nothing moves for people whose device asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .modal-bg.open { animation: vhmFade .2s ease-out; }
  .modal-bg.open > * { animation: vhmPop .3s cubic-bezier(.2, .8, .2, 1); }
  .modal-bg.vh-closing { display: flex !important; pointer-events: none; animation: vhmFadeOut .18s ease-in forwards; }
  .modal-bg.vh-closing > * { animation: vhmPopOut .18s ease-in forwards; }

  .tab-panel.active, .panel.active { animation: vhmRise .32s cubic-bezier(.2, .8, .2, 1); }
  details[open] > :not(summary) { animation: vhmRise .25s cubic-bezier(.2, .8, .2, 1); }

  /* Buttons and tabs answer the finger and the mouse softly. */
  .btn, .tab-btn, button { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s; }
  .btn:active, .tab-btn:active { transform: scale(.97); }
}
@keyframes vhmFade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes vhmFadeOut  { from { opacity: 1; } to { opacity: 0; } }
@keyframes vhmPop      { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes vhmPopOut   { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes vhmRise     { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
