/* Lightweight motion. Only transforms and opacity are animated. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Staggered entrance for the home actions. */
.home-actions .btn {
  animation: rise-in 480ms var(--ease-emphasized) both;
}
.home-actions .btn:nth-child(2) { animation-delay: 80ms; }
.hero { animation: rise-in 520ms var(--ease-emphasized) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.card { animation: rise-in var(--dur-med) var(--ease-emphasized) both; }

/* Attachment and file progress */
.progress-bar { transition: width 200ms linear; }
.file-card { animation: msgIn var(--dur-med) var(--ease-emphasized) both; }
