.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2.2vh, 2rem);
  z-index: 6;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #ffffff;
  opacity: 1;
  outline: none;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(2px);
}

.scroll-cue:focus-visible .scroll-cue__mouse {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.scroll-cue__mouse {
  width: 2rem;
  height: 3.3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.52rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
}

.scroll-cue__wheel {
  width: 0.24rem;
  height: 0.7rem;
  border-radius: 999px;
  background: currentColor;
  animation: scrollCueWheel 1.9s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

.scroll-cue__chevrons {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
  min-height: 1rem;
}

.scroll-cue__chevrons span {
  width: 0.62rem;
  height: 0.62rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  animation: scrollCueChevron 1.9s ease-in-out infinite;
}

.scroll-cue__chevrons span:last-child {
  animation-delay: 0.18s;
}

@keyframes scrollCueWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  42% {
    transform: translateY(0.82rem);
    opacity: 0;
  }

  43% {
    transform: translateY(-0.08rem);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scrollCueChevron {
  0%,
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(-0.1rem, -0.1rem);
  }

  35%,
  55% {
    opacity: 0.9;
    transform: rotate(45deg) translate(0, 0);
  }
}

@media (max-width: 767px) {
  .scroll-cue {
    bottom: 1rem;
    gap: 0.7rem;
  }

  .scroll-cue__mouse {
    width: 1.85rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue,
  .scroll-cue__wheel,
  .scroll-cue__chevrons span {
    animation: none !important;
    transition: none !important;
  }
}
