.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
}

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

.page-loading .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.page-loader svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.page-loader text {
  font-family: "KOHIBaeum", "Segoe UI", sans-serif;
  text-transform: uppercase;
  fill: transparent;
  stroke-width: 2;
  stroke: var(--blue, #00305b);
  stroke-dashoffset: 25%;
  stroke-dasharray: 0 50%;
  font-size: 6rem;
  animation: cruxell-loader-stroke 3s infinite alternate;
}

@keyframes cruxell-loader-stroke {
  0% {
    fill: rgba(72, 138, 20, 0);
    stroke: rgba(0, 48, 91, 1);
    stroke-dashoffset: 25%;
    stroke-dasharray: 0 50%;
    stroke-width: 2;
  }

  70% {
    fill: rgba(72, 138, 20, 0);
    stroke: rgba(0, 48, 91, 1);
  }

  80% {
    fill: rgba(72, 138, 20, 0);
    stroke: rgba(0, 48, 91, 1);
    stroke-width: 3;
  }

  100% {
    fill: rgba(0, 48, 91, 1);
    stroke: rgba(54, 95, 160, 0);
    stroke-dashoffset: -25%;
    stroke-dasharray: 50% 0;
    stroke-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    transition: none;
  }

  .page-loader text {
    animation: none;
    fill: var(--blue, #00305b);
    stroke: none;
  }
}
