/* Studio scroll companion: fixed to viewport, progress ends at footer. */
.studio-scroll-guide {
  --studio-progress: 0;
  position: fixed;
  z-index: 140;
  inset-inline-end: clamp(12px, 2.2vw, 34px);
  top: 50%;
  width: 38px;
  height: min(46vh, 340px);
  transform: translateY(-50%);
  pointer-events: none;
  display: grid;
  justify-items: center;
  color: var(--ui-gold, #d5ae62);
}
.studio-scroll-guide__rail,
.studio-scroll-guide__filled {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-radius: 2px;
}
.studio-scroll-guide__rail { background: color-mix(in srgb, currentColor 24%, transparent); }
.studio-scroll-guide__filled {
  background: currentColor;
  transform: scaleY(var(--studio-progress));
  transform-origin: center top;
}
.studio-scroll-guide__orb {
  position: absolute;
  top: calc(var(--studio-progress) * (100% - 21px));
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--color-bg, #111);
  box-shadow: 0 0 18px color-mix(in srgb, currentColor 26%, transparent);
}
.studio-scroll-guide__orb span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.studio-scroll-guide__caption {
  position: absolute;
  bottom: -46px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  white-space: nowrap;
  opacity: .65;
}
.studio-scroll-guide.is-finished .studio-scroll-guide__orb {
  box-shadow: 0 0 22px color-mix(in srgb, currentColor 40%, transparent);
}
@media (max-width: 960px), (prefers-reduced-motion: reduce) {
  .studio-scroll-guide { display: none !important; }
}
