@keyframes portal-page-enter {
  from { opacity: 0; filter: blur(9px); transform: translate3d(0, 14px, 0) scale(.992); }
  72% { opacity: 1; filter: blur(0); transform: translate3d(0, -1px, 0) scale(1.002); }
  to { opacity: 1; filter: none; transform: none; }
}

@keyframes portal-section-enter {
  from { opacity: 0; filter: blur(5px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}

@keyframes portal-tap {
  0% { scale: 1; }
  55% { scale: .965; }
  100% { scale: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  body > .app-shell,
  body > .testing-shell,
  body > .team-shell,
  body > .lookup-shell {
    animation: portal-page-enter .82s cubic-bezier(.16, 1, .3, 1) both;
  }

  .settings-content > article {
    animation: portal-section-enter .65s cubic-bezier(.16, 1, .3, 1) both;
  }

  .settings-content > article:nth-of-type(2) { animation-delay: 70ms; }
  .settings-content > article:nth-of-type(3) { animation-delay: 130ms; }
  .settings-content > article:nth-of-type(4) { animation-delay: 190ms; }
  .settings-content > article:nth-of-type(5) { animation-delay: 250ms; }

  button:not(:disabled):active {
    animation: portal-tap .2s cubic-bezier(.2, .8, .2, 1);
  }

  .account-card,
  .preference-card,
  .team-profile-card,
  .access-code-card,
  .security-card,
  .lookup-card {
    transition: translate .42s cubic-bezier(.16, 1, .3, 1),
      border-color .42s ease, box-shadow .42s ease;
  }

  .team-card {
    transition-duration: .48s, .72s;
    transition-timing-function: cubic-bezier(.16, 1, .3, 1), cubic-bezier(.16, 1, .3, 1);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .account-card:hover,
  .preference-card:hover,
  .team-profile-card:hover,
  .access-code-card:hover,
  .security-card:hover,
  .lookup-card:hover {
    translate: 0 -2px;
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
