/* Kautz Case Studies Accordion */
.elementor-widget-kautz_case_studies_accordion {
    width: 100%;
    max-width: none;
}

.kcsa-widget {
    --kcsa-text: #fff;
    --kcsa-accent: #e6c9a4;
    --kcsa-overlay: rgba(0, 0, 0, .12);
    --kcsa-active-ratio: 2.6;
    position: relative;
    width: 100%;
    max-width: none;
    color: var(--kcsa-text);
    box-sizing: border-box;
}

.kcsa-widget *,
.kcsa-widget *::before,
.kcsa-widget *::after {
    box-sizing: border-box;
}

/* True viewport-width breakout, even inside a boxed Elementor container. */
.kcsa-widget.kcsa--full-bleed {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none !important;
    margin-left: -50vw;
    margin-right: -50vw;
}

@supports (width: 100dvw) {
    .kcsa-widget.kcsa--full-bleed {
        width: 100dvw;
        margin-left: -50dvw;
        margin-right: -50dvw;
    }
}

.kcsa-shell {
    width: 100%;
    max-width: none;
    padding-inline: 32px;
}

.kcsa-panels {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;
    height: 72vh;
    min-height: 520px;
    max-height: 860px;
    gap: 10px;
    overflow: hidden;
}

.kcsa-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    background: #111;
    border-radius: 16px;
    transition:
        flex-grow .85s cubic-bezier(.18, .78, .18, 1),
        filter .45s ease;
    outline: none;
}

.kcsa-panel.is-active {
    flex-grow: var(--kcsa-active-ratio);
}

.kcsa-panel:focus-visible {
    outline: 2px solid var(--kcsa-accent);
    outline-offset: -2px;
}

.kcsa-image,
.kcsa-overlay {
    position: absolute;
    inset: 0;
}

.kcsa-image {
    z-index: 0;
    background-image: var(--kcsa-bg-image);
    background-position: var(--kcsa-bg-position, center center);
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01);
    transition: transform 1.1s cubic-bezier(.18, .78, .18, 1);
}

.kcsa-panel.is-active .kcsa-image {
    transform: scale(1.035);
}

.kcsa-overlay {
    z-index: 1;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .28) 42%, rgba(0, 0, 0, .04) 76%),
        var(--kcsa-overlay);
    transition: background .6s ease;
}

.kcsa-panel:not(.is-active) .kcsa-overlay {
    background:
        linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .30) 50%, rgba(0, 0, 0, .08) 100%),
        var(--kcsa-overlay);
}

.kcsa-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: clamp(22px, 2.4vw, 42px);
}

.kcsa-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.kcsa-logo {
    display: block;
    width: min(150px, 42%);
    height: 64px;
    object-fit: contain;
    object-position: left top;
    filter: brightness(0) invert(1);
    opacity: .96;
    transition: width .65s cubic-bezier(.18, .78, .18, 1), opacity .35s ease;
}

.kcsa-panel:not(.is-active) .kcsa-logo {
    width: min(112px, 72%);
}

.kcsa-index {
    flex: 0 0 auto;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--kcsa-accent);
    opacity: .8;
}

.kcsa-copy {
    width: min(720px, 94%);
    min-width: 0;
}

.kcsa-kicker {
    margin-bottom: 12px;
    color: var(--kcsa-accent);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease .12s, transform .55s cubic-bezier(.18, .78, .18, 1) .12s;
}

.kcsa-title {
    margin: 0;
    max-width: 18ch;
    color: var(--kcsa-text);
    font-family: inherit;
    font-size: clamp(26px, 3.1vw, 58px);
    font-weight: 600;
    line-height: .96;
    letter-spacing: -.045em;
    text-wrap: balance;
    transition: font-size .65s cubic-bezier(.18, .78, .18, 1), max-width .65s ease;
}

.kcsa-panel:not(.is-active) .kcsa-title {
    max-width: 12ch;
    font-size: clamp(20px, 1.65vw, 31px);
}

.kcsa-reveal {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(16px);
    transition:
        max-height .65s cubic-bezier(.18, .78, .18, 1),
        margin-top .55s ease,
        opacity .36s ease,
        transform .55s cubic-bezier(.18, .78, .18, 1);
}

.kcsa-panel.is-active .kcsa-kicker {
    opacity: 1;
    transform: translateY(0);
}

.kcsa-panel.is-active .kcsa-reveal {
    max-height: 240px;
    margin-top: 18px;
    opacity: 1;
    transform: translateY(0);
    transition-delay: .12s;
}

.kcsa-supporting {
    margin: 0;
    max-width: 52ch;
    color: var(--kcsa-text);
    font-family: inherit;
    font-size: clamp(14px, 1.05vw, 18px);
    font-weight: 350;
    line-height: 1.42;
    opacity: .86;
}

.kcsa-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    color: var(--kcsa-accent);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
}

.kcsa-link span:last-child {
    font-size: 17px;
    transition: transform .25s ease;
}

.kcsa-link:hover span:last-child {
    transform: translate(3px, -3px);
}

.kcsa-progress {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 28px;
    z-index: 5;
    height: 3px;
    margin: 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .30);
    opacity: 0;
    transition: opacity .3s ease;
}

.kcsa-panel.is-active .kcsa-progress {
    opacity: 1;
}

.kcsa-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--kcsa-accent);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.kcsa-mobile-controls {
    display: none;
}

@media (max-width: 1024px) {
    .kcsa-panels {
        min-height: 500px;
    }

    .kcsa-panel.is-active {
        flex-grow: 2.25;
    }

    .kcsa-content {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .kcsa-shell {
        padding-inline: 10px;
    }

    .kcsa-panels {
        display: flex;
        width: 100%;
        height: min(68vh, 620px) !important;
        min-height: 440px;
        max-height: none;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .kcsa-panels::-webkit-scrollbar {
        display: none;
    }

    .kcsa-panel,
    .kcsa-panel.is-active {
        flex: 0 0 min(88vw, 520px);
        width: min(88vw, 520px);
        scroll-snap-align: center;
    }

    .kcsa-panel:first-child {
        scroll-margin-left: 10px;
    }

    .kcsa-image,
    .kcsa-panel.is-active .kcsa-image {
        transform: scale(1.02);
    }

    .kcsa-logo,
    .kcsa-panel:not(.is-active) .kcsa-logo {
        width: min(120px, 45%);
    }

    .kcsa-kicker,
    .kcsa-panel.is-active .kcsa-kicker {
        opacity: 1;
        transform: none;
    }

    .kcsa-title,
    .kcsa-panel:not(.is-active) .kcsa-title {
        max-width: 16ch;
        font-size: clamp(28px, 8vw, 45px);
    }

    .kcsa-reveal,
    .kcsa-panel.is-active .kcsa-reveal {
        max-height: 240px;
        margin-top: 16px;
        opacity: 1;
        overflow: visible;
        transform: none;
    }

    .kcsa-progress {
        display: none;
    }

    .kcsa-mobile-controls {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        margin-top: 14px;
    }

    .kcsa-arrow {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(230, 201, 164, .55);
        border-radius: 999px;
        background: transparent;
        color: var(--kcsa-accent);
        font: inherit;
        font-size: 17px;
        line-height: 1;
        cursor: pointer;
    }

    .kcsa-arrow--next {
        justify-self: end;
    }

    .kcsa-mobile-count {
        justify-self: center;
        display: flex;
        gap: 7px;
        color: var(--kcsa-accent);
        font-size: 10px;
        letter-spacing: .14em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kcsa-panel,
    .kcsa-image,
    .kcsa-logo,
    .kcsa-kicker,
    .kcsa-reveal {
        transition-duration: .01ms !important;
    }
}
