/*
Theme Name: ITMAM LAB
Description: Custom child theme for ITMAM LAB.
Author: ITMAM LAB
Template: twentytwentyfive
Version: 1.0.0
*/


/* =========================================
   ITMAM LAB — Animated Logo
   ========================================= */

.itmam-animated-logo {
    width: min(100%, 420px);
    margin: 0 auto 40px;
}

.itmam-animated-logo svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Draw the continuous completion path */
.itmam-animated-logo #completion-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;

    animation: itmam-draw 1.3s
        cubic-bezier(0.45, 0, 0.2, 1)
        forwards;
}

/* Reveal the completion dot */
.itmam-animated-logo #completion-dot {
    opacity: 0;
    transform: scale(0.3);
    transform-box: fill-box;
    transform-origin: center;

    animation: itmam-dot 0.22s
        ease-out 1.28s forwards;
}

/* Fade in the original Illustrator wordmark */
.itmam-animated-logo #wordmark {
    opacity: 0;

    animation: itmam-wordmark 0.5s
        ease-out 1.48s forwards;
}

@keyframes itmam-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes itmam-dot {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes itmam-wordmark {
    to {
        opacity: 1;
    }
}

/* Accessibility: respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .itmam-animated-logo #completion-path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .itmam-animated-logo #completion-dot,
    .itmam-animated-logo #wordmark {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
