/* Shared on satellite pages (Creations, Philosophy): scroll affordance + stacks with audio corner */

.alma-scroll-hint {
  position: fixed;
  left: 50%;
  bottom: calc(max(0.55rem, env(safe-area-inset-bottom)) + 6.25rem);
  transform: translateX(-50%) translateZ(0);
  z-index: 1192;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.45, 0, 0.55, 1), visibility 0.65s step-end;
}

.alma-scroll-hint.alma-scroll-hint--gone {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.45, 0, 0.55, 1), visibility 0s linear 0.65s;
}

.alma-scroll-hint__label {
  font-size: clamp(0.58rem, 1.15vw, 0.68rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.alma-scroll-hint__chev {
  display: block;
  width: 20px;
  height: 20px;
  margin-top: -0.15rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.42);
  transform: rotate(45deg);
  animation: alma-scroll-hint-bob 1.75s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.alma-scroll-hint--up .alma-scroll-hint__chev {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
  animation: alma-scroll-hint-bob-up 1.75s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes alma-scroll-hint-bob {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: rotate(45deg) translateY(9px);
    opacity: 1;
  }
}

@keyframes alma-scroll-hint-bob-up {
  0%,
  100% {
    transform: rotate(-135deg) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: rotate(-135deg) translateY(-9px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alma-scroll-hint__chev {
    animation: none;
    opacity: 0.75;
  }
}
