/* Ladder rail: draw line + arrow on scroll (no React build). */

.site-premium .ladder-rail {
  position: relative;
}

.site-premium .ladder-rail__line {
  transform-origin: top;
  /* Combine with base centering transform from cinematic styles */
  transform: translateX(-50%) scaleY(var(--rail-progress, 0));
  transition: transform 120ms linear;
  will-change: transform;
}

.site-premium .ladder-rail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  border-right: 3px solid var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  transform: translateX(-50%) translateY(var(--rail-arrow-y, 0px)) rotate(45deg);
  filter: drop-shadow(0 6px 10px rgba(45, 128, 194, 0.18));
  transition: transform 120ms linear;
  will-change: transform;
  z-index: 3;
  pointer-events: none;
}

.site-premium .ladder-rail__dot {
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
  opacity: 0.55;
  filter: saturate(0.9);
}

.site-premium .ladder-rail__dot.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  filter: saturate(1.1) drop-shadow(0 10px 16px rgba(45, 128, 194, 0.22));
}

/* Keep line behind dots/arrow */
.site-premium .ladder-rail__line {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-premium .ladder-rail__line {
    transform: translateX(-50%) scaleY(1);
    transition: none;
  }
}

