﻿/* --- Full-width stats marquee slider --- */
.scm-stats-section {
    --scm-stats-accent: var(--primary-colors-orange);
    --scm-stats-bg: #080808;
    --scm-stats-gap: clamp(14px, 1.6vw, 20px);
    --scm-stats-card-size: clamp(220px, 22vw, 300px);
    position: relative;
    padding: clamp(48px, 5vw, 72px) 0;
    background: var(--scm-stats-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: clip;
    overflow-y: visible;
}

.scm-stats-marquee-wrap {
    width: 100%;
    overflow: hidden;
    padding: 8px 0 12px;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.scm-stats-track {
    display: flex;
    align-items: stretch;
    gap: var(--scm-stats-gap);
    width: max-content;
    will-change: transform;
    animation: scmStatsMarquee 78s linear infinite;
}

.scm-stats-num--word {
    font-size: clamp(28px, 2.8vw, 38px);
    line-height: 1.1;
    max-width: 100%;
}

.scm-stats-marquee-wrap:hover .scm-stats-track {
    animation-play-state: paused;
}

.scm-stats-group {
    display: flex;
    align-items: stretch;
    gap: var(--scm-stats-gap);
    flex-shrink: 0;
}

.scm-stats-card {
    position: relative;
    flex: 0 0 var(--scm-stats-card-size);
    width: var(--scm-stats-card-size);
    height: var(--scm-stats-card-size);
    border-radius: clamp(18px, 2vw, 26px);
    overflow: hidden;
    isolation: isolate;
}

.scm-stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.scm-stats-card--gradient::before,
.scm-stats-card--photo::before,
.scm-stats-card--mesh::before,
.scm-stats-card--ocean::before,
.scm-stats-card--pattern::before {
    animation: scmStatsGradientFlow 7s ease-in-out infinite;
}

.scm-stats-card--photo::before {
    animation-duration: 8s;
}

.scm-stats-card--pattern::before {
    animation-duration: 9s;
}

.scm-stats-card--mesh::before {
    animation-duration: 7.5s;
}

.scm-stats-card--ocean::before {
    animation-duration: 8.5s;
}

.scm-stats-card--gradient::after {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 62%);
    opacity: 0;
    pointer-events: none;
    animation: scmStatsGradientGlow 5s ease-in-out infinite;
}

.scm-stats-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(20px, 2.2vw, 28px);
    width: 100%;
    height: 100%;
}

.scm-stats-card--align-top .scm-stats-card-content {
    align-items: flex-start;
    justify-content: flex-start;
}

.scm-stats-card--align-center .scm-stats-card-content {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.scm-stats-card--align-bottom .scm-stats-card-content {
    align-items: flex-start;
    justify-content: flex-end;
}

.scm-stats-num {
    font-family: var(--bold);
    font-size: clamp(40px, 4.2vw, 56px);
    font-weight: normal;
    line-height: 1;
    letter-spacing: -0.03em;
}

.scm-stats-label {
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.45;
    max-width: 16ch;
}

.scm-stats-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.scm-stats-deco--arrow {
    top: 12%;
    right: 8%;
    width: 58%;
    height: 58%;
    background:
        linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.35) 42%, rgba(255, 255, 255, 0.12) 100%);
    clip-path: polygon(50% 0%, 100% 55%, 72% 55%, 72% 100%, 28% 100%, 28% 55%, 0% 55%);
    opacity: 0.55;
    animation: scmStatsArrowPulse 4.5s ease-in-out infinite;
}

.scm-stats-deco--blob {
    bottom: -12%;
    right: -8%;
    width: 52%;
    height: 52%;
    border-radius: 42% 58% 40% 60% / 55% 45% 55% 45%;
    background: color-mix(in oklab, #4da3ff 55%, #ffffff);
    opacity: 0.45;
    animation: scmStatsBlobMorph 8s ease-in-out infinite;
}

.scm-stats-deco--grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}

.scm-stats-deco--boxes {
    top: clamp(18px, 2vw, 24px);
    right: clamp(18px, 2vw, 24px);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--scm-stats-accent);
    background: color-mix(in oklab, var(--scm-stats-accent) 12%, #ffffff);
    border: 1px solid color-mix(in oklab, var(--scm-stats-accent) 28%, transparent);
}

.scm-stats-card--gradient {
    background: #ffb347;
}

.scm-stats-card--gradient::before {
    background: linear-gradient(135deg,
            #ffe566 0%,
            #ffb347 25%,
            #7dd87d 50%,
            #4ecdc4 75%,
            #ffe566 100%);
    background-size: 300% 300%;
}

.scm-stats-card--gradient .scm-stats-num,
.scm-stats-card--gradient .scm-stats-label {
    color: #141212;
}

.scm-stats-card--photo {
    background: #1a2744;
}

.scm-stats-card--photo::before {
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.05) 0%, rgba(8, 8, 8, 0.72) 100%),
        radial-gradient(circle at 72% 28%, rgba(255, 159, 10, 0.45) 0%, transparent 52%),
        linear-gradient(135deg, #1a2744 0%, #2d3f6b 35%, #3d5a9a 55%, #0f1728 100%);
    background-size: 100% 100%, 200% 200%, 300% 300%;
}

.scm-stats-card--photo .scm-stats-num,
.scm-stats-card--photo .scm-stats-label {
    color: #ffffff;
}

.scm-stats-card--clean {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.scm-stats-card--clean .scm-stats-num,
.scm-stats-card--clean .scm-stats-label {
    color: #141212;
}

.scm-stats-card--clean.scm-stats-card--accent {
    background: linear-gradient(165deg, #ffffff 0%, #f8f8f8 100%);
}

.scm-stats-card--pattern {
    background: #12101f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scm-stats-card--pattern::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 78% 68%, rgba(255, 159, 10, 0.22) 0%, transparent 48%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 18px),
        linear-gradient(155deg, #1a1630 0%, #2a1f4e 40%, #12101f 70%, #0c0a14 100%);
    background-size: 200% 200%, 220% 220%, 100% 100%, 300% 300%;
}

.scm-stats-card--pattern .scm-stats-num,
.scm-stats-card--pattern .scm-stats-label {
    color: #ffffff;
}

.scm-stats-card--mesh {
    background: #1c1538;
}

.scm-stats-card--mesh::before {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.28) 0%, transparent 40%),
        linear-gradient(135deg, #2a1f4e 0%, #6b4fa8 30%, #4a3078 55%, #1c1538 100%);
    background-size: 220% 220%, 300% 300%;
}

.scm-stats-card--mesh .scm-stats-num,
.scm-stats-card--mesh .scm-stats-label {
    color: #ffffff;
}

.scm-stats-card--ocean {
    background: #0a3d5c;
}

.scm-stats-card--ocean::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(77, 196, 255, 0.45) 0%, transparent 50%),
        linear-gradient(145deg, #0d4f7c 0%, #1a9fd4 35%, #1a7aa8 65%, #0a3d5c 100%);
    background-size: 220% 220%, 300% 300%;
}

.scm-stats-card--ocean .scm-stats-num,
.scm-stats-card--ocean .scm-stats-label {
    color: #ffffff;
}

.scm-stats-card--compliance.scm-stats-card--clean {
    background: linear-gradient(165deg, #ffffff 0%, #f8f8f8 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.scm-stats-card--compliance .scm-stats-card-content {
    gap: 10px;
    padding: clamp(14px, 1.6vw, 20px);
}

.scm-stats-expertise-title {
    margin: 0;
    font-family: var(--bold);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.25;
    color: #141212;
}

.scm-stats-expertise-title--light {
    color: #ffffff;
}

.scm-stats-expertise-desc {
    margin: 0;
    font-size: clamp(12px, 0.9vw, 13.5px);
    line-height: 1.5;
    color: #555260;
}

.scm-stats-expertise-desc--light {
    color: rgba(255, 255, 255, 0.78);
}

.scm-stats-compliance-kicker {
    display: block;
    font-family: var(--bold);
    font-size: clamp(12px, 0.95vw, 14px);
    line-height: 1.3;
    color: #141212;
    text-align: center;
}

.scm-stats-compliance-grid--quad {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
    width: 100%;
    flex: 1;
    align-content: center;
    margin-top: auto;
}

.scm-stats-compliance-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.scm-stats-compliance-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(72px, 7.5vw, 96px);
    height: clamp(72px, 7.5vw, 96px);
    flex-shrink: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.scm-stats-compliance-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.scm-stats-compliance-logo img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

@keyframes scmStatsGradientFlow {
    0% {
        background-position: 0% 50%, 0% 50%, 0% 50%, 0% 50%;
    }

    50% {
        background-position: 100% 50%, 100% 50%, 50% 50%, 100% 50%;
    }

    100% {
        background-position: 0% 50%, 0% 50%, 0% 50%, 0% 50%;
    }
}

@keyframes scmStatsGradientGlow {

    0%,
    100% {
        opacity: 0;
        transform: translate3d(-8%, -6%, 0) scale(0.9);
    }

    50% {
        opacity: 0.45;
        transform: translate3d(12%, 10%, 0) scale(1.08);
    }
}

@keyframes scmStatsBlobMorph {

    0%,
    100% {
        border-radius: 42% 58% 40% 60% / 55% 45% 55% 45%;
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.45;
    }

    33% {
        border-radius: 58% 42% 55% 45% / 40% 60% 42% 58%;
        transform: translate3d(-6%, -4%, 0) scale(1.06);
        opacity: 0.55;
    }

    66% {
        border-radius: 45% 55% 62% 38% / 48% 52% 58% 42%;
        transform: translate3d(4%, 6%, 0) scale(0.96);
        opacity: 0.4;
    }
}

@keyframes scmStatsArrowPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translate3d(-4px, -6px, 0) scale(1.04);
    }
}

@keyframes scmStatsMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-50% - (var(--scm-stats-gap) / 2)), 0, 0);
    }
}
