/* Home page: client logos + names, two marquee rows scrolling in opposite directions */
.ssv-clients {
    padding: 56px 0 60px;
    background: #f5f6fa;
    overflow: hidden;
}

.cl-head {
    max-width: 680px;
    margin: 0 auto 34px;
    padding: 0 16px;
    text-align: center;
}

.cl-eyebrow {
    color: #ed1b24;
    font: 700 13px/1 'Montserrat', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cl-head h2 {
    margin: 12px 0 10px;
    color: #020e2a;
    font: 800 34px/1.2 'Montserrat', sans-serif;
}

.cl-head h2 span { color: #ed1b24; }

.cl-head p {
    margin: 0;
    color: #6b7385;
    font-size: 15.5px;
    line-height: 1.6;
}

.cl-marquee {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cl-marquee + .cl-marquee { margin-top: 10px; }

.cl-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: cl-scroll var(--cl-duration, 240s) linear infinite;
}

/* row 1 moves left-to-right, row 2 right-to-left */
.cl-marquee.cl-ltr .cl-track { animation-direction: reverse; }

.cl-marquee:hover .cl-track,
.cl-marquee:focus-within .cl-track { animation-play-state: paused; }

@keyframes cl-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 9px)); }   /* half the track = one full copy (+ half a gap) */
}

.cl-tile {
    flex: none;
    width: 190px;
    height: 104px;
    display: grid;
    place-items: center;
    padding: 12px 16px;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px -16px rgba(2, 14, 42, .45);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.cl-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 27, 36, .35);
    box-shadow: 0 16px 28px -16px rgba(2, 14, 42, .5);
}

.cl-tile img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

/* clients without a logo: name card */
.cl-name {
    text-align: center;
    min-width: 0;
}

.cl-name strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #020e2a;
    font: 700 14px/1.3 'Montserrat', sans-serif;
}

.cl-name small {
    display: block;
    margin-top: 6px;
    color: #8a91a1;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-name small i { margin-right: 4px; color: #ed1b24; }

@media (max-width: 575px) {
    .ssv-clients { padding: 40px 0 44px; }
    .cl-head h2 { font-size: 26px; }
    .cl-head p { font-size: 14.5px; }
    .cl-tile { width: 150px; height: 88px; padding: 10px 12px; }
    .cl-tile img { max-height: 60px; }
    .cl-name strong { font-size: 12.5px; }
    .cl-name small { font-size: 11px; }
}

/* visitors who ask for less motion get a swipeable strip instead */
@media (prefers-reduced-motion: reduce) {
    .cl-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .cl-track { animation: none; }
    .cl-track [aria-hidden="true"] { display: none; }
}
