.stairs-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.stairs-destination {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 7vw, 120px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #151515, #020202 56%);
  background-size: 48px 48px, 48px 48px, auto;
}

.stairs-destination span,
.stairs-destination small {
  color: #646464;
  font: 600 clamp(9px, .8vw, 12px)/1.4 "JetBrains Mono", monospace;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.stairs-destination strong {
  margin: 18px 0;
  color: #ededed;
  font-size: clamp(72px, 16vw, 260px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.075em;
}

.stairs-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
  counter-reset: stair;
}

.stairs-panels i {
  position: relative;
  display: block;
  height: 100%;
  border-right: 1px solid #1a1a1a;
  background: linear-gradient(180deg, rgba(255,255,255,.024), transparent 30%), #050505;
  box-shadow: 1px 0 0 rgba(255,255,255,.018) inset;
  will-change: transform;
  counter-increment: stair;
}

.stairs-panels i:last-child { border-right: 0; }

.stairs-panels i::after {
  position: absolute;
  right: 18px;
  bottom: 20px;
  color: #383838;
  font: 600 9px/1 "JetBrains Mono", monospace;
  letter-spacing: .16em;
  content: "0" counter(stair);
}

.stairs-copy {
  position: absolute;
  left: clamp(28px, 7vw, 120px);
  bottom: clamp(34px, 9vh, 100px);
  z-index: 3;
  width: min(650px, calc(100vw - 56px));
  transition: opacity .28s ease, transform .45s cubic-bezier(.76, 0, .24, 1);
}

.stairs-kicker {
  display: block;
  margin-bottom: 18px;
  color: #666;
  font: 600 10px/1.4 "JetBrains Mono", monospace;
  letter-spacing: .28em;
}

.stairs-title {
  margin: 0;
  color: #f1f1f1;
  font-size: clamp(52px, 8vw, 124px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.065em;
}

.stairs-progress {
  width: 100%;
  height: 1px;
  margin-top: clamp(28px, 5vh, 52px);
  overflow: hidden;
  background: #242424;
}

.stairs-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #f2f2f2;
  box-shadow: 0 0 18px rgba(255,255,255,.28);
  transition: width .18s linear;
}

.stairs-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 15px;
}

.stairs-status {
  max-width: 460px;
  min-height: 22px;
  margin: 0;
  color: #737373;
  font-size: 12px;
  line-height: 1.55;
}

.stairs-status.error { color: #ff8c8c; }

.stairs-percent {
  color: #ddd;
  font: 500 13px/1.4 "JetBrains Mono", monospace;
}

body.is-complete .stairs-copy {
  transform: translateY(-18px);
  opacity: 0;
}

body.is-complete .stairs-panels i {
  transform: translateY(-102%);
  transition: transform .78s cubic-bezier(.76, 0, .24, 1);
}

body.is-complete .stairs-panels i:nth-child(5) { transition-delay: 0s; }
body.is-complete .stairs-panels i:nth-child(4) { transition-delay: .08s; }
body.is-complete .stairs-panels i:nth-child(3) { transition-delay: .16s; }
body.is-complete .stairs-panels i:nth-child(2) { transition-delay: .24s; }
body.is-complete .stairs-panels i:nth-child(1) { transition-delay: .32s; }

@media (max-width: 720px) {
  .stairs-panels { grid-template-columns: repeat(4, 1fr); }
  .stairs-panels i:nth-child(5) { display: none; }
  .stairs-title { font-size: clamp(48px, 17vw, 82px); }
  .stairs-destination strong { font-size: clamp(62px, 23vw, 130px); }
}

@media (prefers-reduced-motion: reduce) {
  body.is-complete .stairs-panels i {
    transition-duration: .12s;
    transition-delay: 0s !important;
  }
  .stairs-copy { transition-duration: .12s; }
}
