/* Base transition version (no keyframes) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Make everything visible inside Bricks builder */
.bricks-builder .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Delay ladder (keep your existing delay-* classes, expand as needed) */
.delay-0 {
    transition-delay: 0s;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1s;
}

.delay-6 {
    transition-delay: 1.2s;
}

.delay-7 {
    transition-delay: 1.4s;
}

.delay-8 {
    transition-delay: 1.6s;
}

.delay-9 {
    transition-delay: 1.8s;
}

/* (Optional) Mobile tweaks — mirror your working setup */
@media (max-width: 766px) {
    .delay-6 {
        transition-delay: 0.2s;
    }

    /* same as delay-1 */
    .delay-7 {
        transition-delay: 0.4s;
    }

    /* same as delay-2 */
    .delay-8 {
        transition-delay: 0.6s;
    }

    /* same as delay-3 */
    .delay-9 {
        transition-delay: 0.8s;
    }

    /* same as delay-4 */
}

/* Or, if you prefer to flatten all delays on mobile (overrides the block above) */
@media (max-width: 766px) {
    .animate-on-scroll[class*="delay-"] {
        transition-delay: 0.1s !important;
    }
}

/* (Optional) Back-compat: if some elements still get old .in-view-N classes */
.in-view-0,
.in-view-1,
.in-view-2,
.in-view-3,
.in-view-4 {
    opacity: 1;
    transform: translateY(0);
}