/* Loading screen with a 0–100 counter, shown on the first page of a visit */
.preloader { display: none; }
.is-loading .preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 3vw, 40px);
  background: #0b0b0b; color: #f0eee8;
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
  /* safety net: never block the page if the script does not run */
  animation: preloader-failsafe 0s linear 8s forwards;
}
.is-loading .preloader.is-done { transform: translateY(-100%); }
.preloader__brand { font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.preloader__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.preloader__label { font-size: 15px; color: #9b9b9b; padding-bottom: 1.2em; }
.preloader__num {
  font-size: clamp(96px, 26vw, 420px); font-weight: 800; letter-spacing: -0.06em; line-height: .8;
  font-variant-numeric: tabular-nums;
}
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #f0eee8; transform-origin: left; transform: scaleX(0); }
@keyframes preloader-failsafe { to { visibility: hidden; } }
