/* Partner logos — thin full-width strip under the top banners.
   No background of its own: logos sit directly on the page background.
   Vertical rhythm: the banner above drops its own bottom margin when the strip
   is shown, and #products' top margin collapses into the strip's bottom one,
   so the strip's equal top/bottom margins set both gaps. */
.partner-strip {
    --partner-gap: 4rem;
    margin: 2.4rem 0.5rem;
}

.partner-strip__viewport {
    overflow: hidden;
    direction: ltr;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.6rem 0;
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.partner-strip__track {
    display: flex;
    align-items: center;
    width: max-content;
    flex-wrap: nowrap;
    opacity: 0;
    animation: partner-marquee-scroll var(--partner-duration, 32s) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.partner-strip__track[data-marquee-ready="true"] {
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Pause on hover only for a real mouse; on touch screens a tap leaves a sticky
   :hover behind and the strip would stay frozen. */
@media (hover: hover) and (pointer: fine) {
    .partner-strip__viewport:hover .partner-strip__track {
        animation-play-state: paused;
    }

    a.partner-strip__item:hover {
        transform: translateY(-2px) scale(1.04);
    }
}

.partner-strip__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Spacing lives on both sides of every item (gap/2 each), so the seam between
   the two groups gets the same gap as the logos inside a group. */
.partner-strip__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 0 calc(var(--partner-gap) / 2);
    background: transparent;
    border: none;
    padding: 0;
    text-decoration: none;
    transition: transform 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.partner-strip__item img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

@keyframes partner-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (min-width: 768px) {
    .partner-strip {
        --partner-gap: 5.6rem;
        margin: 3.2rem 1rem;
    }

    .partner-strip__item {
        height: 56px;
    }
}

/* #products drops its 10rem top margin here (mt-lg-0), so the strip owns the gap. */
@media (min-width: 992px) {
    .partner-strip {
        margin: 4rem 2.25rem;
    }
}

@media (min-width: 1200px) {
    .partner-strip {
        --partner-gap: 7.2rem;
    }

    .partner-strip__item {
        height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-strip__track {
        animation: none;
        width: 100%;
        justify-content: center;
        opacity: 1;
    }

    .partner-strip__group[aria-hidden="true"] {
        display: none;
    }

    .partner-strip__group {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.75rem;
        width: 100%;
    }

    .partner-strip__viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
}
