/* =========================================================
   CORBETT ULTIMUS
   STATS BAR
========================================================= */

.cu-stats-bar {
    position: relative;

    width: 100%;

    background: #003b33;
    color: #f4f0e6;

    overflow: hidden;
    margin-bottom: 50px;
}


/* =========================================================
   SUBTLE TEXTURE
========================================================= */

.cu-stats-bar::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(255, 255, 255, .035),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 50%,
            rgba(198, 169, 82, .045),
            transparent 30%
        );

    pointer-events: none;
}


/* =========================================================
   GRID
========================================================= */

.cu-stats-bar__grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    min-height: 128px;
}


/* =========================================================
   INDIVIDUAL STAT
========================================================= */

.cu-stat {
    position: relative;

    display: flex;
    align-items: center;

    gap: 20px;

    padding: 28px 32px;

    border-right: 1px solid rgba(244, 240, 230, .14);

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity .8s cubic-bezier(.16, 1, .3, 1),
        transform .8s cubic-bezier(.16, 1, .3, 1);
}

.cu-stat:last-child {
    border-right: 0;
}

.cu-stat.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   STAGGER
========================================================= */

.cu-stat:nth-child(1) {
    transition-delay: .05s;
}

.cu-stat:nth-child(2) {
    transition-delay: .15s;
}

.cu-stat:nth-child(3) {
    transition-delay: .25s;
}

.cu-stat:nth-child(4) {
    transition-delay: .35s;
}


/* =========================================================
   NUMBER
========================================================= */

.cu-stat__number {
    display: block;

    flex: 0 0 auto;

    min-width: 70px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(34px, 3vw, 48px);
    font-weight: 400;

    line-height: .9;
    letter-spacing: -.04em;

    color: #c8aa55;
}


/* =========================================================
   LABEL
========================================================= */

.cu-stat__label {
    display: block;

    font-family: "Space Grotesk", sans-serif;

    font-size: 8px;
    font-weight: 500;

    line-height: 1.55;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: rgba(244, 240, 230, .66);
}


/* =========================================================
   GOLD MICRO LINE
========================================================= */

.cu-stat::before {
    content: "";

    position: absolute;

    left: 32px;
    top: 17px;

    width: 20px;
    height: 1px;

    background: #c8aa55;

    transform: scaleX(0);
    transform-origin: left;

    transition:
        transform .6s cubic-bezier(.16, 1, .3, 1);
}

.cu-stat.is-visible::before {
    transform: scaleX(1);
}


/* =========================================================
   HOVER
========================================================= */

.cu-stat {
    transition:
        opacity .8s cubic-bezier(.16, 1, .3, 1),
        transform .8s cubic-bezier(.16, 1, .3, 1),
        background-color .35s ease;
}

.cu-stat:hover {
    background: rgba(255, 255, 255, .025);
}

.cu-stat:hover .cu-stat__number {
    transform: translateY(-2px);
}

.cu-stat__number {
    transition: transform .35s ease;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .cu-stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cu-stat:nth-child(2) {
        border-right: 0;
    }

    .cu-stat:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(244, 240, 230, .14);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .cu-stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);

        min-height: auto;
    }

    .cu-stat {
        min-height: 105px;

        gap: 12px;

        padding: 25px 16px;
    }

    .cu-stat:nth-child(odd) {
        border-right: 1px solid rgba(244, 240, 230, .14);
    }

    .cu-stat:nth-child(even) {
        border-right: 0;
    }

    .cu-stat:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(244, 240, 230, .14);
    }

    .cu-stat__number {
        min-width: 50px;

        font-size: 31px;
    }

    .cu-stat__label {
        font-size: 7px;

        letter-spacing: .1em;
    }

    .cu-stat::before {
        left: 16px;
        top: 12px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cu-stat {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;

        min-height: 115px;
    }

    .cu-stat__number {
        font-size: 29px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cu-stat {
        opacity: 1;
        transform: none;

        transition: none;
    }

    .cu-stat::before {
        transform: scaleX(1);
        transition: none;
    }

    .cu-stat__number {
        transition: none;
    }

}