.asaptech-client-showcase {
    --asaptech-navy: #07214a;
    --asaptech-orange: #f97316;
    --asaptech-ink: #111827;
    --asaptech-muted: #667085;
    --asaptech-line: #e8edf4;
    --asaptech-surface: #f7f9fc;
    position: relative;
    overflow: hidden;
    padding: 84px 0 78px;
    background:
        radial-gradient(circle at 12% 15%, rgba(249, 115, 22, .08), transparent 27%),
        radial-gradient(circle at 88% 80%, rgba(7, 33, 74, .07), transparent 30%),
        #fff;
}

.asaptech-client-showcase__inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.asaptech-client-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--asaptech-orange);
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
}

.asaptech-client-showcase__eyebrow::before,
.asaptech-client-showcase__eyebrow::after {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.asaptech-client-showcase h2 {
    max-width: 780px;
    margin: 0 auto;
    color: var(--asaptech-navy);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.035em;
}

.asaptech-client-showcase__lead {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--asaptech-muted);
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.asaptech-client-showcase__rows {
    margin-top: 46px;
    display: grid;
    gap: 16px;
}

.asaptech-client-showcase__viewport {
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.asaptech-client-showcase__viewport::before,
.asaptech-client-showcase__viewport::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    width: 72px;
    pointer-events: none;
}

.asaptech-client-showcase__viewport::before {
    left: 0;
    background: linear-gradient(90deg, #fff 18%, rgba(255,255,255,0));
}

.asaptech-client-showcase__viewport::after {
    right: 0;
    background: linear-gradient(270deg, #fff 18%, rgba(255,255,255,0));
}

.asaptech-client-showcase__track {
    display: flex;
    width: max-content;
    animation: asaptechClientShowcaseMove 42s linear infinite;
    will-change: transform;
}

.asaptech-client-showcase__viewport--reverse .asaptech-client-showcase__track {
    animation-direction: reverse;
    animation-duration: 48s;
}

.asaptech-client-showcase__viewport:hover .asaptech-client-showcase__track,
.asaptech-client-showcase__viewport:focus-within .asaptech-client-showcase__track {
    animation-play-state: paused;
}

.asaptech-client-showcase__set {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
}

.asaptech-client-showcase__logo-card {
    width: 176px;
    height: 104px;
    padding: 18px 22px;
    border: 1px solid var(--asaptech-line);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(7, 33, 74, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.asaptech-client-showcase__logo-card img {
    display: block;
    max-width: 100%;
    max-height: 66px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transform-origin: center center;
    transition: transform .22s ease, filter .22s ease;
}

/* Ruby's source image contains a lot of transparent/white breathing room. Scale only
 * that client so the visible hospital mark has the same optical weight as the rest. */
.asaptech-client-showcase__logo-card--ruby {
    overflow: hidden;
}
.asaptech-client-showcase__logo-card--ruby img {
    max-width: none;
    max-height: none;
    width: 132px;
    height: 92px;
    object-fit: contain;
    transform: scale(1.34);
    transform-origin: center center;
}

/* S&IB is a wide horizontal mark; preserve the full logo and tagline. */
.asaptech-client-showcase__logo-card--snib img {
    width: 145px;
    max-width: 145px;
    max-height: 62px;
    object-fit: contain;
}

/* Focus the hovered client for readability while the row is paused. */
.asaptech-client-showcase__logo-card:hover {
    transform: translateY(-4px) scale(1.04);
    z-index: 5;
    border-color: rgba(249, 115, 22, .58);
    box-shadow: 0 18px 40px rgba(7, 33, 74, .16);
}

.asaptech-client-showcase__logo-card:hover img {
    transform: scale(1.28);
}
.asaptech-client-showcase__logo-card--ruby:hover img {
    transform: scale(1.48);
}
.asaptech-client-showcase__logo-card--snib:hover img {
    transform: scale(1.22);
}

.asaptech-client-showcase__footer-note {
    margin-top: 30px;
    color: var(--asaptech-muted);
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

@keyframes asaptechClientShowcaseMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .asaptech-client-showcase__track {
        animation: none;
    }
    .asaptech-client-showcase__viewport {
        overflow-x: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 767px) {
    .asaptech-client-showcase {
        padding: 58px 0 54px;
    }

    .asaptech-client-showcase__inner {
        width: min(100% - 24px, 1200px);
    }

    .asaptech-client-showcase__lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .asaptech-client-showcase__rows {
        margin-top: 34px;
        gap: 12px;
    }

    .asaptech-client-showcase__logo-card {
        width: 142px;
        height: 88px;
        padding: 14px 18px;
        border-radius: 15px;
    }

    .asaptech-client-showcase__logo-card img {
        max-height: 54px;
    }

    .asaptech-client-showcase__logo-card--ruby img {
        width: 112px;
        height: 76px;
        max-height: none;
        transform: scale(1.3);
    }
    .asaptech-client-showcase__logo-card--ruby:hover img {
        transform: scale(1.4);
    }

    .asaptech-client-showcase__logo-card--snib img {
        width: 116px;
        max-width: 116px;
        max-height: 50px;
    }
    .asaptech-client-showcase__logo-card--snib:hover img {
        transform: scale(1.14);
    }

    .asaptech-client-showcase__viewport::before,
    .asaptech-client-showcase__viewport::after {
        width: 28px;
    }
}
