/* Load keyframes — hero + nav use GSAP; keep utilities below */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy .char — unused on new hero; harmless if present */
.char {
    display: inline-block;
    animation: charIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: bottom center;
}

@keyframes charIn {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-40deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Node graph dots scale in then pulse */
.node-graph__dot {
    animation: dotIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both,
        dotPulse 2s ease-in-out infinite alternate;
}

.node-graph__dot:nth-child(2) {
    animation-delay: 1.2s, 1.6s;
}

.node-graph__dot:nth-child(3) {
    animation-delay: 1.3s, 1.7s;
}

.node-graph__dot:nth-child(4) {
    animation-delay: 1.4s, 1.8s;
}

.node-graph__dot:nth-child(5) {
    animation-delay: 1.5s, 1.9s;
}

.node-graph__dot:nth-child(6) {
    animation-delay: 1.6s, 2.0s;
}

@keyframes dotIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes dotPulse {
    from {
        transform: scale(0.8);
        opacity: 0.4;
    }

    to {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Standard project card — accordion reveal stagger */
@keyframes projectStdBlockIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLL REVEAL BASE STATES */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.from-left {
    transform: translateX(-16px);
}

.reveal.scale-in {
    transform: scale(0.97);
}

.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* NUMBER COUNTER */
.count-up {
    color: var(--gold-mid);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 1ch;
}

/* REDUCED MOTION — kill decorative animations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    main {
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .char {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* SECTION FADE BOUNDARY */
main {
    -webkit-mask-image: none;
    mask-image: none;
}

section[id] {
    opacity: 1 !important;
    transition: none !important;
}

@media (max-width: 768px) {
    main {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
}
