/* Scroll indicator on home hero */

.intro {
  position: relative; /* so the indicator can be positioned at the bottom */
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.scroll-indicator__chevron {
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--c-text);
  border-bottom: 2px solid var(--c-text);
  transform: rotate(45deg);
  animation: scroll-indicator-pulse 1.6s ease-in-out infinite;
  opacity: 0.6;
}

body.has-scrolled .scroll-indicator {
  opacity: 0;
  transform: translate(-50%, 4px); /* slight drift down as it vanishes */
  pointer-events: none;
}

@keyframes scroll-indicator-pulse {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.35;
  }
  50% {
    transform: translateY(4px) rotate(45deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.35;
  }
}
