/*
  Page loading animation, following https://kononenkogroup.com/: a Dark panel with a counter and a line along the top,
  run by js/loader.js. It only shows with JavaScript and motion allowed, and hides itself if the script never runs.
*/
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: var(--color-dark);
  color: var(--color-light);
  pointer-events: none;
  animation: loader-expire 0s linear 12s forwards;
}

@keyframes loader-expire {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .loader {
    display: block;
  }
}

.loader__line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  clip-path: inset(0 100% 0 0);
}

.loader__mask {
  position: absolute;
  bottom: clamp(1.25rem, 2.5vw, 2rem);
  left: 5%;
  overflow: hidden;
}

.loader__number {
  display: block;
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-action);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
