@media (prefers-reduced-motion: no-preference) {
  .project-card,
  .work-card,
  .id-card,
  .song-card,
  .feature,
  .nav-card {
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  }

  .mdym-memory-obj {
    animation: dym-float 8s ease-in-out infinite alternate;
  }

  .mdym-memory-obj:nth-child(even) {
    animation-delay: -3s;
  }

  @keyframes dym-float {
    to { transform: translateY(-10px) rotate(3deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
