/* ==========================================================================
   Darkroom — animations
   Slow and quiet: a fade-up "develop" on load, a small lift on hover.
   Respects prefers-reduced-motion.
   ========================================================================== */

/* Entrance
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button-entrance {
  animation-name: develop;
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.2, .7, .2, 1);
  animation-fill-mode: both;
  /* staggers each button one after another */
  animation-delay: calc(var(--delay) / 10);
}

@keyframes develop {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.fadein {
  animation-name: fadein;
  animation-duration: 1.6s;
  animation-fill-mode: both;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* Hover
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button-hover, .credit-hover, .social-hover {
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.button-hover:hover, .button-hover:focus {
  transform: translateY(-2px);
}
.credit-hover:hover, .social-hover:hover {
  transform: translateY(-2px);
}

/* No bouncing icons in this theme */
.icon-hover .hvr-icon { transform: none; animation: none; }

.footer-hover {
  display: inline-block;
  transition: transform .3s ease-out;
}
.footer-hover:hover, .footer-hover:focus { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .button-entrance, .fadein { animation: none; }
  .button-hover:hover, .credit-hover:hover, .social-hover:hover, .footer-hover:hover { transform: none; }
}
