/* Shared initial page loader: Materials 04, “Finding North”. */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(213, 173, 101, 0.08), transparent 28rem),
    #10141d;
  color: #fffdf8;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.site-loader::before,
.site-loader::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #bd1729 0 16px,
    #f8f3eb 16px 23px,
    #0f3145 23px 30px,
    #f8f3eb 30px 37px
  );
  content: "";
}

.site-loader::before {
  top: 0;
}

.site-loader::after {
  bottom: 0;
}

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

.site-loader[hidden] {
  display: none;
}

.site-loader__inner {
  display: grid;
  place-items: center;
}

.site-loader__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.finding-north-loader {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.finding-north-loader::before {
  position: absolute;
  inset: -8px;
  border: 4px dotted #df1735;
  border-radius: 50%;
  content: "";
  animation: finding-north-ring 5s linear infinite;
}

.finding-north-loader svg,
.finding-north-loader .online-icon {
  width: 43px;
  height: 43px;
  color: #d5ad65;
  animation: finding-north-needle 1.8s cubic-bezier(0.68, -0.45, 0.27, 1.45) infinite;
}

.finding-north-loader svg {
  fill: currentColor;
}

.finding-north-loader .online-icon {
  display: inline-block;
  background: currentColor;
}

@keyframes finding-north-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes finding-north-needle {
  0%,
  100% {
    transform: rotate(-26deg);
  }

  50% {
    transform: rotate(205deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader {
    transition-duration: 120ms;
  }

  .finding-north-loader::before,
  .finding-north-loader svg,
  .finding-north-loader .online-icon {
    animation: none;
  }
}
