/* Scroll-reveal & motion polish
   ------------------------------------------------------------
   The hidden initial state is scoped to `html.reveal-ready`,
   which reveal.js only adds when JS runs and motion is allowed.
   So if JS is off or the user prefers reduced motion, all
   content stays fully visible (fails open). */

.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

/* While reveal-init is on, suppress transitions so the initial hide is
   instant (no 1 -> 0 flash before the scroll-in animation). */
.reveal-init [data-reveal] {
    transition: none !important;
}

.reveal-ready [data-reveal="left"]  { transform: translateX(-32px); filter: blur(4px); }
.reveal-ready [data-reveal="right"] { transform: translateX(32px);  filter: blur(4px); }
.reveal-ready [data-reveal="scale"] { transform: scale(0.94);       filter: blur(4px); }

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-ready [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ---------- Hero scroll cue ---------- */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    animation: cueFadeIn 0.8s ease 1.4s both;
    transition: opacity 0.4s ease;
}
.scroll-cue.is-hidden { opacity: 0; }
.scroll-cue i {
    font-size: 1rem;
    color: var(--fintech-primary-light);
    animation: cueBounce 1.8s ease-in-out infinite;
}

@keyframes cueBounce {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50%      { transform: translateY(6px); opacity: 1; }
}
@keyframes cueFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue i { animation: none; }
}

/* Hide the cue on short/landscape mobile where it would crowd content */
@media (max-height: 560px) {
    .scroll-cue { display: none; }
}

/* On desktop the 100vh hero is packed (stats fill the lower-left), leaving no
   clear room for a centered bottom cue — show it only on tablet/mobile. */
@media (min-width: 769px) {
    .scroll-cue { display: none; }
}
