.transition-stage {
  --scroll-progress: 0;
  --walk-percent: 0%;
  --nl-opacity: 1;
  --nl-scale: 1;
  --nl-x: 50%;
  --globe-opacity: 0;
  --globe-map-opacity: 0;
  --globe-detail-opacity: 0;
  --globe-scale: 0.72;
  --walker-left: 7%;
  --walker-direction: 1;
  --worker-bob: 0;
  --arm-front-angle: 0deg;
  --arm-back-angle: 0deg;
  --leg-front-angle: 0deg;
  --leg-back-angle: 0deg;
  --building-opacity: 0;
  --building-draw: 0;
}

.stage-vignette {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 13, 22, 0.58) 100%);
}

.stage-endpoint-labels {
  position: absolute;
  z-index: 18;
  top: 17px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9eb5c5;
  font-size: 11px;
  line-height: 1.35;
}

.stage-endpoint-labels span:last-child {
  max-width: 180px;
  text-align: right;
}

.stage-nl {
  position: absolute;
  z-index: 2;
  top: 68px;
  left: var(--nl-x);
  width: 176px;
  height: auto;
  opacity: var(--nl-opacity);
  filter: drop-shadow(0 0 25px rgba(74, 172, 231, 0.48));
  transform: translateX(-50%) scale(var(--nl-scale));
  transform-origin: 50% 55%;
}

.world-stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(320px, 76%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(97, 215, 255, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(45, 138, 196, 0.24), rgba(5, 24, 39, 0.94) 68%);
  opacity: var(--globe-opacity);
  box-shadow: inset -24px -14px 42px rgba(1, 10, 18, 0.6), 0 0 35px rgba(21, 151, 245, 0.12);
  transform: translate(-50%, -53%) scale(var(--globe-scale));
  transform-origin: 50% 50%;
}

.globe-map {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 152%;
  max-width: none;
  opacity: var(--globe-map-opacity);
  filter: saturate(0.86) brightness(0.94) drop-shadow(0 0 18px rgba(62, 167, 230, 0.26));
  transform: translate(-50%, -50%);
}

.globe-grid,
.globe-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: var(--globe-detail-opacity);
  pointer-events: none;
}

.globe-grid {
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(97, 215, 255, 0.13) 50%, transparent 50.4%),
    linear-gradient(transparent 49.6%, rgba(97, 215, 255, 0.13) 50%, transparent 50.4%);
}

.globe-grid::before,
.globe-grid::after {
  position: absolute;
  border: 1px solid rgba(97, 215, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.globe-grid::before {
  inset: 8% 30%;
}

.globe-grid::after {
  inset: 31% 7%;
}

.globe-shine {
  background: radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.16), transparent 31%);
}

.company-drawing {
  position: absolute;
  z-index: 11;
  right: 2.5%;
  bottom: 31px;
  width: 43%;
  aspect-ratio: 1.65;
  opacity: var(--building-opacity);
  pointer-events: none;
}

.company-line-art {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  color: #20b6f4;
  filter: drop-shadow(0 0 11px rgba(32, 182, 244, 0.2));
}

.company-strokes path,
.company-door {
  stroke-width: 3.5;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--building-draw));
}

.company-accent {
  fill: var(--gold);
  opacity: var(--building-opacity);
  filter: drop-shadow(0 0 5px rgba(198, 161, 91, 0.5));
}

.journey-route {
  position: absolute;
  z-index: 14;
  right: 28px;
  bottom: 29px;
  left: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(32, 182, 244, 0.2);
}

.route-glow,
.route-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--walk-percent);
  border-radius: inherit;
}

.route-glow {
  background: rgba(97, 215, 255, 0.24);
  filter: blur(4px);
}

.route-progress {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.worker-mover {
  position: absolute;
  z-index: 3;
  bottom: 1px;
  left: var(--walker-left);
  width: 46px;
  height: 74px;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.34));
  transform: translate(-50%, calc(var(--worker-bob) * -1px)) scaleX(var(--walker-direction));
  transform-origin: 50% 100%;
}

.worker-figure {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.worker-head,
.worker-neck,
.worker-zip,
.worker-leg path {
  fill: none;
  stroke: #f8fbff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.worker-head {
  stroke-width: 4;
}

.worker-neck,
.worker-zip {
  stroke-width: 3;
}

.worker-jacket {
  fill: #168fda;
  stroke: var(--cyan);
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.worker-arm,
.worker-leg {
  transform-box: view-box;
}

.worker-arm path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 5;
  stroke-linecap: round;
}

.worker-arm circle {
  fill: #f8fbff;
}

.worker-leg path {
  stroke-width: 4.5;
}

.worker-arm-front {
  transform: rotate(var(--arm-front-angle));
  transform-origin: 39px 33px;
}

.worker-arm-back {
  transform: rotate(var(--arm-back-angle));
  transform-origin: 21px 33px;
}

.worker-leg-front {
  transform: rotate(var(--leg-front-angle));
  transform-origin: 33px 61px;
}

.worker-leg-back {
  transform: rotate(var(--leg-back-angle));
  transform-origin: 27px 61px;
}

.reveal,
.reveal-item {
  opacity: 1;
  transform: none;
}

.js .reveal,
.js .reveal-item {
  opacity: 0;
  transform: translateY(28px);
}

.js .reveal.is-visible,
.js .is-visible .reveal-item,
.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.is-visible .reveal-item:nth-child(2) {
  transition-delay: 90ms;
}

.is-visible .reveal-item:nth-child(3) {
  transition-delay: 180ms;
}

.is-visible .reveal-item:nth-child(4) {
  transition-delay: 270ms;
}

.qualification-panel.is-entering {
  animation: panel-in 180ms ease-out both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scroll {
    min-height: auto;
  }

  .hero {
    position: relative;
    top: auto;
  }

  .js .reveal,
  .js .reveal-item {
    opacity: 1;
    transform: none;
  }
}
