/* ── Framework progress bars ─────────────────────────────────────────────── */
.fw-bar {
    position: absolute;
    top: 0;
    left: var(--fw-start, 0%);
    height: 20px;
    width: 0;
    transition: width 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}
.fw-bar.loaded {
    width: var(--fw-width, 25%);
}
.fw-connector {
    position: absolute;
    top: 20px;
    width: 1px;
    height: var(--conn-height, 0px);
    background: repeating-linear-gradient(
        to bottom,
        #94a3b8 0px, #94a3b8 5px,
        transparent 5px, transparent 10px
    );
    clip-path: inset(0% 0px 100% 0px);
    z-index: 1;
}
.fw-connector.loaded {
    animation: caterpillar 1s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
@keyframes caterpillar {
    0%   { clip-path: inset(0% 0px 100% 0px); }
    38%  { clip-path: inset(0% 0px 12% 0px); }
    62%  { clip-path: inset(88% 0px 0% 0px); }
    100% { clip-path: inset(100% 0px 0% 0px); }
}

/* Framework bar counters */
@media (max-width: 767px) {
    .fw-counter { display: none !important; }
}
.fw-counter {
    position: absolute;
    top: -18px;
    display: flex;
    align-items: baseline;
    gap: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.fw-counter.visible { opacity: 1; }
.fw-counter-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.fw-counter-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0A192F;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.fw-counter-pct {
    font-size: 8px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Framework bar explosion */
.fw-explosion {
    position: absolute;
    right: 0;
    top: 10px;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
}
.fw-explosion span {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    top: -3px;
    left: -3px;
}
.fw-explosion.fire span:nth-child(1) { width: 7px; height: 7px; background: #4A7FBA; animation: explode 0.65s ease-out 0ms   forwards; --dx:  0px; --dy: -24px; }
.fw-explosion.fire span:nth-child(2) { width: 5px; height: 5px; background: #93C5FD; animation: explode 0.65s ease-out 60ms  forwards; --dx:  21px; --dy: -12px; }
.fw-explosion.fire span:nth-child(3) { width: 6px; height: 6px; background: #0A192F; animation: explode 0.65s ease-out 20ms  forwards; --dx:  21px; --dy:  12px; }
.fw-explosion.fire span:nth-child(4) { width: 5px; height: 5px; background: #4A7FBA; animation: explode 0.65s ease-out 80ms  forwards; --dx:  0px;  --dy:  24px; }
.fw-explosion.fire span:nth-child(5) { width: 7px; height: 7px; background: #93C5FD; animation: explode 0.65s ease-out 40ms  forwards; --dx: -21px; --dy:  12px; }
.fw-explosion.fire span:nth-child(6) { width: 5px; height: 5px; background: #0A192F; animation: explode 0.65s ease-out 10ms  forwards; --dx: -21px; --dy: -12px; }
@keyframes explode {
    0%   { opacity: 1; transform: translate(0, 0) scale(1.3); }
    60%  { opacity: 0.8; }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

/* ── Carousel ────────────────────────────────────────────────────────────── */
#case-study-carousel {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#case-study-carousel::-webkit-scrollbar {
    display: none;
}
.carousel-dot {
    position: relative;
    overflow: hidden;
}
.carousel-dot.active {
    background-color: #4A7FBA;
    width: 24px;
}
.case-card.active {
    border-color: #4A7FBA !important;
    box-shadow: 0 20px 25px -5px rgba(74, 127, 186, 0.1);
}
.dot-timer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
}
.carousel-dot.active .dot-timer {
    animation: dotTimer 5s linear forwards;
}
@keyframes dotTimer {
    from { width: 0%; }
    to { width: 100%; }
}