.footer-credit a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #8edac9;
  text-underline-offset: 3px;
}

.footer-credit a:hover {
  color: #00baf3;
}

.section-transition.is-entering {
  animation: section-fade-up 1.25s cubic-bezier(.22, 1, .36, 1) both;
}

.section-transition.is-entering:nth-of-type(even) {
  animation-name: section-fade-up-alternate;
}

@keyframes section-fade-up {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes section-fade-up-alternate {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.section-transition.is-entering .section-stagger-item {
  animation: section-item-fade-up 1s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--stagger-order, 0) * 65ms);
}

@keyframes section-item-fade-up {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.back-to-top {
  position: fixed;
  z-index: 9;
  left: 24px;
  bottom: 24px;
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #00baf3;
  border-radius: 50%;
  background: #543983;
  color: #fff;
  box-shadow: 0 6px 20px rgba(23, 33, 43, .18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: #00baf3;
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid #8edac9;
  outline-offset: 3px;
}

.back-to-top i {
  animation: back-to-top-nudge 1.8s ease-in-out infinite;
}

@keyframes back-to-top-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 650px) {
  .back-to-top {
    left: 16px;
    bottom: 16px;
    width: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-transition.is-entering {
    animation: none;
  }
  .section-transition.is-entering .section-stagger-item {
    animation: none;
  }

  .back-to-top,
  .back-to-top i {
    animation: none;
    transition-duration: .01ms !important;
  }
}
