/* ====================================
   SQUINTPRO LANDING - UTILITIES
   Accessibility, scroll reveals,
   reduced motion
   ==================================== */

/* Screen-reader-only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll reveal — hidden state only applies once JS is running
   (html.js), so content is always visible without JavaScript. */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger support for grids */
.js .reveal[data-reveal-delay='1'] { transition-delay: 0.1s; }
.js .reveal[data-reveal-delay='2'] { transition-delay: 0.2s; }
.js .reveal[data-reveal-delay='3'] { transition-delay: 0.3s; }

/* Reduced motion: no reveals, no keyframe animation, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .search-caret,
    .cam-rec::before,
    .alert-live .alert-dot {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
