/* Custom Scroll Indicator Animation */
.scroll-cue {
    position: absolute;
    bottom: calc(var(--space-xl) + 100px); /* Move 100px higher */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-cue.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.scroll-square {
    width: 10.4px;
    height: 10.4px;
    background-color: var(--color-dark-grey);
    border-radius: 30%;
    opacity: 0.1;
    animation: scrollFlash 2.4s ease-in-out infinite;
}

.scroll-square:nth-child(1) {
    animation-delay: 0s;
}

.scroll-square:nth-child(2) {
    animation-delay: 0.3s;
}

.scroll-square:nth-child(3) {
    animation-delay: 0.6s;
}

.scroll-square:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes scrollFlash {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    15% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    25% {
        opacity: 0.1;
        transform: scale(1);
    }
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

/* Mobile devices should never show scroll indicator - handled by JavaScript */
@media (max-width: 768px) {
    .scroll-cue {
        display: none;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-square {
        animation: none;
        opacity: 0.5;
    }
    
    .scroll-cue.hidden {
        transition: none;
    }
}


/* --- PR: improve legibility of scroll cue --- */
.scroll-cue {
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  backdrop-filter: saturate(140%) blur(2px);
}
