.cf-brands { --br-bg: #F8FAFC; --br-card: #FFFFFF; --br-text: #0F172A; --br-muted: #64748B; --br-border: rgba(15,23,42,.08); --br-accent: #06938B; padding: 56px 0 8px; background: var(--br-bg) !important; overflow: hidden; font-family: 'Poppins', sans-serif; }
html:not(.cf-light) .cf-brands { --br-bg: #000000; --br-card: #0b0c0e; --br-text: #F1F5F9; --br-muted: #8A94A6; --br-border: rgba(255,255,255,.08); --br-accent: #2DD4BF; }

.cf-brands-head { max-width: 1240px; margin: 0 auto 24px; padding: 0 24px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.cf-brands-eyebrow { order: 2; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--br-muted); }
.cf-brands-title { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; color: var(--br-text); }
.cf-brands-title em { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400; color: var(--br-accent); }

.cf-brands-marquee { position: relative; overflow: hidden; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cf-brands-track { display: flex; gap: 14px; width: max-content; animation: cfBrands 40s linear infinite; will-change: transform; }
.cf-brands-marquee:hover .cf-brands-track { animation-play-state: paused; }
@keyframes cfBrands { to { transform: translateX(calc(-50% - 7px)); } }

.cf-brand { flex: 0 0 auto; width: 190px; height: 76px; display: flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 16px; background: var(--br-card); border: 1px solid var(--br-border); transition: border-color .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.cf-brand img { max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s, transform .4s; }
.cf-brand-dark { display: none; }
html:not(.cf-light) .cf-brand-light { display: none; }
html:not(.cf-light) .cf-brand-dark { display: block; }
html:not(.cf-light) .cf-brand img { opacity: .7; }
.cf-brand:hover { border-color: var(--br-accent); transform: translateY(-3px); }
.cf-brand:hover img { filter: none; opacity: 1; transform: scale(1.04); }

@media (max-width: 640px) {
    .cf-brands { padding: 40px 0 4px; }
    .cf-brands-head { padding: 0 16px; flex-direction: column; }
    .cf-brands-eyebrow { order: 0; }
    .cf-brand { width: 150px; height: 62px; padding: 10px 16px; }
    .cf-brand img { max-height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .cf-brands-track { animation: none; }
    .cf-brands-marquee { overflow-x: auto; }
}