
/* =====================================
   KW — ADVANCED ANIMATION SYSTEM
===================================== */


/* =====================================
   01 — TEXT REVEAL / SLIDE UP
===================================== */

.kw-reveal-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.kw-reveal-text {
    display: block;

    opacity: 1;
    transform: translateY(0);

    will-change: transform, opacity;
}


/* WAITING FOR PRELOADER */

.kw-text-preparing .kw-reveal-text {
    opacity: 0;
    transform: translateY(115%);
}


/* START REVEAL */

.kw-text-playing .kw-reveal-text {

    animation: kwTextSlideUp
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

    animation-delay:
        var(--kw-reveal-delay, 0ms);

}


/* TEXT ANIMATION */

@keyframes kwTextSlideUp {

    from {
        opacity: 0;
        transform: translateY(115%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* BUTTON REVEAL */

.kw-text-preparing .hero-buttons {
    opacity: 0;
    translate: 0 25px;
}

.kw-text-playing .hero-buttons {

    animation: kwButtonReveal
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.7s
        both;

}

@keyframes kwButtonReveal {

    from {
        opacity: 0;
        translate: 0 25px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }

}


/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .kw-text-playing .kw-reveal-text {
        animation-duration: 0.75s;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .kw-reveal-text,
    .kw-text-preparing .kw-reveal-text,
    .kw-text-playing .kw-reveal-text {

        opacity: 1 !important;
        transform: none !important;
        animation: none !important;

    }

    .kw-text-preparing .hero-buttons,
    .kw-text-playing .hero-buttons {

        opacity: 1 !important;
        translate: none !important;
        animation: none !important;

    }

}
/* PREVENT OVERLAPPING HERO ANIMATIONS */

.hero-content.kw-text-preparing,
.hero-content.kw-text-playing {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.hero-content .kw-reveal-text {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

/* =====================================
   02 — MAGNETIC BUTTONS
===================================== */

.kw-magnetic-button {
    translate:
        var(--magnetic-x, 0px)
        var(--magnetic-y, 0px);

    transition:
        translate 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* SMOOTH MOVEMENT */

.kw-magnetic-button.kw-magnetic-active {
    transition:
        translate 0.15s ease-out,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* DISABLE ON TOUCH DEVICES */

@media (hover: none), (pointer: coarse) {

    .kw-magnetic-button {
        translate: none !important;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .kw-magnetic-button {
        translate: none !important;
        transition: none !important;
    }

}

/* =====================================
   03 — CINEMATIC DEPTH TUNNEL
===================================== */

.kw-statistics {
    width: 100%;
    box-sizing: border-box;
    padding: 45px 8%;
    background: #090909;
}

.kw-statistics-header {
    color: #df1238;
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.kw-statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
}

.kw-statistic {
    min-width: 0;
    text-align: center;
    overflow: hidden;
    padding: 15px 0 25px;
}


/* NUMBER TUNNEL */

.kw-number-tunnel {
    position: relative;

    height: 230px;

    display: grid;
    place-items: center;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(45px, 7vw, 100px);
    font-weight: 800;

    font-variant-numeric: tabular-nums;
    letter-spacing: -0.07em;

    user-select: none;
}


/* SHADOW NUMBERS */

.kw-tunnel-ghost {
    position: absolute;

    color: transparent;

    -webkit-text-stroke: 1px #b82d4d;

    font-size: 0.77em;
    opacity: 0.3;

    pointer-events: none;
}


/* TOP SHADOWS */

.kw-tunnel-upper-one {
    transform: translateY(-52px) scaleX(0.84);
}

.kw-tunnel-upper-two {
    transform: translateY(-90px) scale(0.65);
    opacity: 0.12;
}


/* BOTTOM SHADOWS */

.kw-tunnel-lower-one {
    transform: translateY(52px) scaleX(0.84);
}

.kw-tunnel-lower-two {
    transform: translateY(90px) scale(0.65);
    opacity: 0.12;
}


/* MAIN NUMBER */

.kw-statistic-number {
    position: relative;
    z-index: 2;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: inherit;
    font-weight: 800;
    line-height: 1;

    font-variant-numeric: tabular-nums;

    text-shadow: 0 0 30px #df123855;
}


/* CATEGORY LABEL */

.kw-statistic-label {
    margin-top: 20px;

    color: #a1a1aa;

    font-size: 13px;
    letter-spacing: 2px;
}


/* CRIMSON PROGRESS LINE */

.kw-statistic-track {
    height: 1px;
    margin-top: 25px;

    background: #35212b;
}

.kw-statistic-fill {
    width: 0%;
    height: 100%;

    background: #df1238;

    box-shadow: 0 0 12px #df1238;
}


/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

    .kw-statistics {
        padding: 30px 18px;
    }

    .kw-statistics-grid {
        gap: 12px;
    }

    .kw-number-tunnel {
        height: 150px;
        font-size: clamp(30px, 9vw, 60px);
    }

    .kw-tunnel-upper-one {
        transform: translateY(-32px) scaleX(0.84);
    }

    .kw-tunnel-upper-two {
        transform: translateY(-57px) scale(0.65);
    }

    .kw-tunnel-lower-one {
        transform: translateY(32px) scaleX(0.84);
    }

    .kw-tunnel-lower-two {
        transform: translateY(57px) scale(0.65);
    }

    .kw-statistic-label {
        font-size: 10px;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .kw-statistics-header {
        font-size: 9px;
        letter-spacing: 2px;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .kw-statistic-number {
        filter: none !important;
        opacity: 1 !important;
    }

}
