.brand-marquee .brand-card,
.brand-marquee .brand-card:hover {
    opacity: 1;
    transform: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Keep the brand rail in one row when the device requests less motion.
   Native horizontal scrolling works without JavaScript. */
@media (prefers-reduced-motion: reduce) {
    .brand-marquee > .brand-marquee-window {
        overflow-x: auto;
        overflow-y: hidden;
        mask-image: none;
        -webkit-mask-image: none;
        touch-action: auto;
        scroll-behavior: auto;
        scrollbar-width: auto;
    }
    .brand-marquee .brand-marquee-track {
        animation: none;
        transform: none;
        width: max-content;
        min-width: 100%;
    }
    .brand-marquee .brand-marquee-group {
        flex-wrap: nowrap;
        flex: 0 0 auto;
        width: max-content;
        min-width: 100%;
        padding: 0;
        justify-content: flex-start;
    }
    .brand-marquee .brand-marquee-group[aria-hidden="true"] { display: none; }
    .brand-marquee > .brand-marquee-window:focus-visible {
        outline: 2px solid var(--theme-accent, #2563a6);
        outline-offset: 2px;
    }
}
