/* ============================================================
   OpsTree Capabilities — Horizontal Scroll Section
   ------------------------------------------------------------
   Changes from original:
   • will-change moved off images by default (JS toggles per-active)
   • bounce animations pause when section is off-screen
   • content-visibility: auto on the outer wrap (skips paint when not visible)
   • Respects prefers-reduced-motion
   ============================================================ */
.ult-master-wrap {
    position: relative;
    width: 100%;
    height: 750vh;
    background: #fff;
    overflow: clip;
    font-family: 'Poppins', sans-serif;
}

/* Modern sharp chevron bullets */
.ult-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.ult-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #556070;
    line-height: 1.5;
}

.ult-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B399A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease-out;
}

.ult-slide:hover .ult-content ul li::before { transform: translateX(3px); }

/* Locked UI overlay */
.ult-ui-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ult-ui-layer.is-visible { opacity: 1; }

.hz-scroll-rail {
    position: absolute;
    bottom: 3vh;
    left: 10vw;
    width: 80vw;
    height: 2px;
    background: rgba(0,0,0,0.06);
}

.hz-scroll-line {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #A033FF 0%, #2BD4FF 100%);
    position: relative;
}

.hz-marble {
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #1B399A;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(27,57,154,0.4);
}

.ult-nav-hub {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.ult-nav-btn {
    background: linear-gradient(135deg, #A033FF 0%, #2BD4FF 100%);
    color: #fff;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(27,57,154,0.3);
    transition: transform 0.3s ease;
}
.ult-nav-btn:hover { background: #0A1628; }

/* Bounce animations — only run while section is in view */
.btn-down { animation: bounceDown 2s infinite ease-in-out; animation-play-state: paused; }
.btn-up   { animation: bounceUp   2s infinite ease-in-out; animation-play-state: paused; }

.ult-ui-layer.is-visible .btn-down,
.ult-ui-layer.is-visible .btn-up { animation-play-state: running; }

@keyframes bounceDown {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(10px); }
}

@keyframes bounceUp {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

/* Sticky horizontal scroller */
.ult-sticky-area {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
}

.ult-track {
    display: flex;
    padding-left: 10vw;
    /* will-change applied by JS only during the scroll-driven animation */
}

.ult-slide {
    width: 90vw;
    height: 70vh;
    flex-shrink: 0;
    margin-right: 15vw;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    position: relative;
}

.ult-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 4px;
    background: #f8f9fa;
}

.ult-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0% 0% 0% 0%);
    transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.ult-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    /* will-change applied by JS only on the active slide */
}

.ult-content {
    padding-left: 5vw;
    position: relative;
    z-index: 2;
}

.ult-bg-num {
    position: absolute;
    top: -5%;
    left: -5%;
    font-size: 25vh;
    color: rgba(27,57,154,0.03);
    z-index: 0;
    pointer-events: none;
}

.ult-title {
    font-style: italic;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    margin-bottom: 20px;
    color: #0A1628;
    font-weight: 800;
}

.ult-title span { color: #1B399A; }

.ult-desc {
    font-size: 17px;
    color: #556070;
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Button */
.qodef-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .3s ease;
}
.qodef-button:hover { background-color: #0A1628 !important; }

.qodef-m-arrow { margin-left: 10px; display: flex; align-items: center; }
.qodef-svg--button-arrow { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Intro slide */
.ult-intro-slide {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-bottom: 0;
}

.ult-eyebrow {
    font-size: 14px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #A033FF;
    font-weight: 800;
    display: block;
    margin-bottom: 20px;
}

.ult-huge-title {
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.85;
    margin: 0;
    letter-spacing: -0.05em;
    color: #3D3C3C;
}

.ult-intro-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 5vw;
    border-left: 1px solid rgba(27,57,154,0.12);
}

.ult-stat-number {
    font-size: clamp(52px, 7vw, 108px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: flex-start;
}

.ult-stat-counter { color: #1B399A; }

.ult-stat-plus {
    color: #A033FF;
    font-size: 0.48em;
    vertical-align: super;
    margin-top: 6px;
}

.ult-stat-label {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid rgba(27,57,154,0.13);
}

.ult-stat-word {
    font-size: clamp(12px, 1.1vw, 17px);
    font-weight: 300;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #8896aa;
    line-height: 1.6;
}

.ult-stat-accent {
    font-weight: 700;
    color: #0A1628;
    letter-spacing: 0.2em;
}

/* Mobile */
@media (max-width: 900px) {
    .ult-master-wrap {
        height: auto !important;
        overflow: visible !important;
    }
    .ult-sticky-area {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }
    .ult-track {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 5vw !important;
        transform: none !important;
    }
    .ult-ui-layer { display: none !important; }
    .ult-slide {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 60px !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
    }
    .ult-image-wrapper { aspect-ratio: 3 / 2; height: auto; }
    .ult-image-container { clip-path: none !important; }
    .ult-parallax-img {
        transform: none !important;
        height: auto;
        aspect-ratio: 3 / 2;
    }
    .ult-content { padding-left: 0 !important; padding-top: 24px !important; }
    .ult-intro-slide {
        grid-template-columns: 1fr !important;
        gap: 32px;
        padding: 40px 0 !important;
    }
    .ult-intro-stat {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(27,57,154,0.12);
        padding-top: 24px;
    }
    .ult-huge-title { font-size: clamp(38px, 9vw, 64px) !important; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-down, .btn-up { animation: none !important; }
    .ult-parallax-img { transform: none !important; }
}
