.spatial-page .scene-index {
  top: 50%;
  right: 20px;
  bottom: auto;
  display: grid;
  grid-template-rows: repeat(6, 44px);
  gap: 0;
  width: 56px;
  height: 264px;
  padding: 0;
  transform: translateY(-50%);
}

.spatial-page .scene-index::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 47px;
  width: 2px;
  background: rgba(97, 230, 255, 0.3);
  box-shadow: 0 0 8px rgba(97, 230, 255, 0.16);
}

.spatial-page .scene-index button {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  width: 56px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.spatial-page .scene-index button span {
  grid-column: 2;
  justify-self: center;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(97, 230, 255, 0.72);
  border-radius: 50%;
  background: #05070d;
  transition: width 220ms ease, height 220ms ease, border-color 220ms ease, background 220ms ease;
}

.spatial-page .scene-index button small {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: 2px;
  color: rgba(218, 230, 247, 0.58);
  font-size: 14px;
  opacity: 0.46;
  transition: opacity 220ms ease, color 220ms ease;
}

.spatial-page .scene-index button:hover small,
.spatial-page .scene-index button:focus-visible small,
.spatial-page .scene-index button.is-active small {
  color: var(--ink);
  opacity: 1;
}

.spatial-page .scene-index button:hover span,
.spatial-page .scene-index button:focus-visible span,
.spatial-page .scene-index button.is-active span {
  width: 10px;
  height: 10px;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(97, 230, 255, 0.62);
}

.spatial-page .scene-index__progress {
  position: absolute;
  z-index: 1;
  top: 22px;
  bottom: 22px;
  left: 47px;
  width: 2px;
  height: auto !important;
  background: transparent;
  pointer-events: none;
}

.spatial-page .scene-index__progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: var(--scene-position, 0%);
  background: linear-gradient(180deg, rgba(76, 125, 255, 0.88), var(--cyan));
  box-shadow: 0 0 10px rgba(97, 230, 255, 0.48);
  transition: height 720ms cubic-bezier(0.2, 0.78, 0.18, 1);
}

.spatial-page .scene-index__progress::after {
  content: "";
  position: absolute;
  top: var(--scene-position, 0%);
  left: 50%;
  width: 4px;
  height: 30px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(97, 230, 255, 0.72);
  transform: translate(-50%, -50%);
  transition: top 720ms cubic-bezier(0.2, 0.78, 0.18, 1);
}

.spatial-page .scene-navigation {
  position: fixed;
  z-index: 18;
  bottom: 18px;
  left: clamp(40px, 7.3vw, 140px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.spatial-page .scene-navigation .scene-counter {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 96px;
  height: 44px;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.spatial-page .scene-navigation .scene-counter strong,
.spatial-page .scene-navigation .scene-counter small {
  color: rgba(218, 230, 247, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.spatial-page .scene-navigation .scene-counter strong {
  color: var(--ink);
}

.spatial-page .scene-navigation .scene-counter span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(97, 230, 255, 0.76), rgba(97, 230, 255, 0.12));
}

.spatial-page .scene-navigation__arrows {
  display: flex;
  align-items: center;
}

.spatial-page .scene-navigation__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(218, 230, 247, 0.66);
  cursor: pointer;
  transition: color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.spatial-page .scene-navigation__arrow span {
  width: 10px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.spatial-page .scene-navigation__arrow--previous span {
  transform: rotate(-135deg);
}

.spatial-page .scene-navigation__arrow--next span {
  transform: rotate(45deg);
}

.spatial-page .scene-navigation__arrow:hover:not(:disabled),
.spatial-page .scene-navigation__arrow:focus-visible {
  color: var(--cyan);
  transform: translateY(-1px);
}

.spatial-page .scene-navigation__arrow:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: -5px;
}

.spatial-page .scene-navigation__arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.spatial-page .scene-navigation .scroll-cue {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(218, 230, 247, 0.72);
  backdrop-filter: none;
  transition: color 220ms ease, opacity 220ms ease;
}

.spatial-page .scene-navigation .scroll-cue > span {
  display: block;
}

.spatial-page .scene-navigation .scroll-cue strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.spatial-page .scene-navigation .scroll-cue small {
  display: none;
}

.spatial-page .scene-navigation .scroll-cue i {
  width: 15px;
  height: 24px;
}

.spatial-page .scene-navigation .scroll-cue:hover,
.spatial-page .scene-navigation .scroll-cue:focus-visible {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cyan);
}

.spatial-page.is-last .scene-navigation .scene-counter {
  opacity: 1;
}

.spatial-page.is-last .scene-navigation .scroll-cue {
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 900px) {
  .spatial-page .scene-index,
  .spatial-page .scene-navigation {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spatial-page .scene-index *,
  .spatial-page .scene-navigation * {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
