/* ── 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-label-suffix { display: none; }
}
.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); }
}

/* ── VC Banner (placeholder) ──────────────────────────────────────────── */
.vc-scroll {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}
.vc-set {
    display: inline-flex;
    flex-shrink: 0;
}
.vc-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #9ca3af;
    padding: 3px 14px;
    margin-right: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    flex-shrink: 0;
}
@keyframes scrollLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ── Venture Cards ───────────────────────────────────────────────────────── */
.card-category {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #4A7FBA;
    margin-bottom: 4px;
}
.card-name {
    font-size: 15px;
    font-weight: 500;
    color: #0A192F;
    margin-bottom: 12px;
    line-height: 1.3;
}
.card-section-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgb(120, 120, 120);
    margin-bottom: 4px;
    font-weight: 500;
}
.card-body {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.55;
}
.card-opportunity-wrapper {
    flex: 1;
}
.card-divider {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
    margin-bottom: 12px;
}

/* ── 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: var(--accent) !important;
    box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--accent) 10%, transparent);
}
.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%; }
}