/* ==========================================================================
   Scroll Split Card — vanilla recreation of Componentry's scroll-split-card
   Scoped under .techsplit- to avoid any collision with existing site styles.
   ========================================================================== */

.techsplit-section {
    position: relative;
    background: #0b0a09;
}

.techsplit-scroll-track {
    position: relative;
    height: 260vh; /* scroll distance that drives the animation */
}

.techsplit-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, #14110f 0%, #0b0a09 60%, #050404 100%);
}

.techsplit-eyebrow-row {
    text-align: center;
    margin-bottom: 40px;
}

.techsplit-eyebrow-row span {
    color: #ff6a5c;
}

.techsplit-eyebrow-row h2 {
    color: #ffffff;
    margin-top: 14px;
}

.techsplit-stage {
    position: relative;
    width: min(1040px, 90vw);
    height: min(560px, 62vh);
    display: flex;
    gap: 3px;
    perspective: 2200px;
}

.techsplit-panel {
    position: relative;
    flex: 1 1 0;
    height: 100%;
}

.techsplit-panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.techsplit-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
}

.techsplit-face--front {
    background-color: #050404;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.techsplit-panel[data-panel="0"] .techsplit-face--front { background-position: 0% 50%; }
.techsplit-panel[data-panel="1"] .techsplit-face--front { background-position: 100% 50%; }

.techsplit-face--back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 42px;
    color: #ffffff;
}

.techsplit-panel[data-panel="0"] .techsplit-face--back {
    background: linear-gradient(155deg, #171310 0%, #0b0a09 100%);
}

.techsplit-panel[data-panel="1"] .techsplit-face--back {
    background: linear-gradient(155deg, #ff4d3d 0%, #bb0011 55%, #7a000b 100%);
}

.techsplit-back-eyebrow {
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 16px;
    display: block;
}

.techsplit-back-title {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
}

.techsplit-back-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 4px;
}

.techsplit-back-list strong {
    display: block;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.techsplit-back-list span {
    display: block;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
}

.techsplit-back-subtext {
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 24px;
}

.techsplit-back-stats {
    display: flex;
    gap: 32px;
}

.techsplit-back-stats > div {
    border-left: 2px solid rgba(255,255,255,0.5);
    padding-left: 16px;
}

.techsplit-back-stats .value {
    display: block;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.techsplit-back-stats .label {
    display: block;
    font-family: Inter, Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
}

.techsplit-progress-track {
    width: min(1040px, 90vw);
    height: 2px;
    background: rgba(255,255,255,0.12);
    margin-top: 40px;
    border-radius: 2px;
    overflow: hidden;
}

.techsplit-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4d3d, #bb0011);
    border-radius: 2px;
}

/* Mobile uses a compact stacked presentation instead of the pinned scroll sequence. */
@media (max-width: 767px) {
    .techsplit-scroll-track {
        height: auto;
    }
    .techsplit-sticky {
        position: relative;
        height: auto;
        padding: 48px 14px;
    }
    .techsplit-stage {
        width: 100%;
        max-width: 440px;
        height: auto;
        flex-direction: column;
        gap: 18px;
        perspective: none;
    }
    .techsplit-panel {
        height: auto;
        min-width: 0;
    }
    .techsplit-panel-inner {
        display: flex;
        flex-direction: column;
        transform: none !important;
        opacity: 1 !important;
    }
    .techsplit-face {
        position: relative;
        inset: auto;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
    }
    .techsplit-face--front {
        display: none;
    }
    .techsplit-face--back {
        transform: none;
        padding: 18px 16px;
        border-radius: 8px;
    }
    .techsplit-back-eyebrow {
        font-size: 9px;
        letter-spacing: 0.14em;
        margin-bottom: 10px;
    }
    .techsplit-back-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .techsplit-back-list {
        gap: 8px;
    }
    .techsplit-back-list strong {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    .techsplit-back-list span,
    .techsplit-back-subtext {
        font-size: 0.67rem;
        line-height: 1.45;
    }
    .techsplit-back-stats {
        gap: 12px;
    }
    .techsplit-back-stats > div {
        padding-left: 10px;
    }
    .techsplit-back-stats .value {
        font-size: 1.2rem;
    }
    .techsplit-back-stats .label {
        font-size: 7px;
        letter-spacing: 0.12em;
    }
    .techsplit-progress-track {
        display: none;
    }
}

/* Respect reduced-motion preference: show content statically, no pinning/animation */
@media (prefers-reduced-motion: reduce) {
    .techsplit-scroll-track {
        height: auto;
    }
    .techsplit-sticky {
        position: relative;
        height: auto;
        padding: 64px 20px;
    }
    .techsplit-panel-inner {
        transform: none !important;
    }
    .techsplit-face--front {
        display: none;
    }
    .techsplit-face--back {
        position: relative;
        transform: none;
    }
    .techsplit-progress-track {
        display: none;
    }
}
