.page-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  background: #fff;
  color: #034c84;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}

.page-loader::before {
  content: "";
  position: absolute;
  width: min(52vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 110, 184, .08);
  animation: loader-pulse 1.6s ease-in-out infinite;
}

.page-loader img,
.page-loader span {
  position: relative;
  z-index: 1;
}

.page-loader img {
  width: min(290px, 72vw);
  animation: loader-logo 1.1s ease-in-out infinite alternate;
}

.page-loader span {
  justify-self: center;
  color: #697886;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  z-index: 35;
  right: 22px;
  bottom: 92px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: #034c84;
  box-shadow: 0 10px 24px rgba(3, 76, 132, .26);
  color: #fff;
  cursor: pointer;
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.back-to-top span:first-child {
  font-size: 17px;
  line-height: .7;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #006eb8;
  outline: 3px solid rgba(0, 110, 184, .28);
  outline-offset: 2px;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(.86); opacity: .45; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes loader-logo {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader::before,
  .page-loader img {
    animation: none;
    transition-duration: .01ms;
  }
}

@media (max-width: 780px) {
  .back-to-top {
    right: 14px;
    bottom: 76px;
    padding: 11px;
  }

  .back-to-top span:last-child { display: none; }
}
