/* ITMAM LAB — animated continuous-line hero background */

.itmam-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.itmam-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;

    left: -8%;
    right: -8%;
    top: 58%;
    bottom: 4%;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 300' preserveAspectRatio='none'%3E%3Cpath d='M-30 130 C180 130 230 250 440 225 S770 55 970 130 S1190 235 1430 110' fill='none' stroke='%2300A7A5' stroke-width='1.5' opacity='.17'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    /* Reveal the line from left to right */
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 100%
    );
    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 100%
    );

    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    animation: itmam-hero-line-reveal 3s ease-in-out 2.1s forwards;
}

@keyframes itmam-hero-line-reveal {
    from {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }

    to {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

.itmam-hero > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .itmam-hero::before {
        left: -45%;
        right: -45%;
        top: 65%;
        bottom: 5%;
        opacity: 0.65;
    }
}

/* Accessibility: show the complete line without animation */
@media (prefers-reduced-motion: reduce) {
    .itmam-hero::before {
        animation: none;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}
