/* ============================================================
   BRAND COLLABORATORS — "Atelier Partner Wall" (.bcx-*)
   Fresh namespace (ZERO overlap with the dead .logo-card / .slider-* /
   .brand-stat-* / .stat-number / .bc-logo-* tokens that linger across the
   old stylesheet + variables.css + home.css). A pure-CSS CONTINUOUS marquee
   (no JS) of brand logos riding the homepage's signature 18px hairline
   media-plinth tile, closed by light bordered stat cards — the deliberate
   inverse of the dark "Our Promise" band. Honours the calm, colour-only
   hover policy (no card lift/zoom). This file REPLACES the entire old
   brand-collaborate stylesheet; the old .slider-* / .logo-card / .brand-stat-*
   rules are gone (their markup was rewritten to .bcx-*).
   ============================================================ */

/* ── Section shell — match the homepage section rhythm. The compound
   .site-section.bcx-section (0,2,0) beats the global
   .site-section{padding:20px!important} at every width. ── */
.bcx-section { background-color: var(--white); }
.site-section.bcx-section { padding-top: 54px !important; padding-bottom: 62px !important; }
.bcx-section .section-header { margin-bottom: 40px; }

/* eyebrow now sits ABOVE the title; the base .section-eyebrow isn't centred */
.bcx-eyebrow { text-align: center; margin-bottom: 10px; }

/* one-word ghost ("Collaborators") centred on the title midpoint — the same
   override shopcat / prodsec / crafted use so a short ghost stays symmetric */
.bcx-section .title-center .title { text-transform: capitalize; }
.bcx-section .title-center .title::before {
    left: 50%; right: auto; width: max-content;
    transform: translate(-50%, -50%); text-align: center;
}

/* ── Marquee viewport — edge fade via mask (modern) + a white-gradient overlay
   fallback (older Safari). overflow:hidden clips the off-stage tiles; generous
   track padding keeps the soft card shadow from being clipped top/bottom. ── */
.bcx-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    --bcx-speed: 38s;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bcx-marquee::before,
.bcx-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0;
    width: 8%; min-width: 48px; z-index: 2; pointer-events: none;
}
.bcx-marquee::before { left: 0;  background: linear-gradient(to right, var(--white), transparent); }
.bcx-marquee::after  { right: 0; background: linear-gradient(to left,  var(--white), transparent); }

/* track = two byte-identical halves. Spacing is per-tile MARGIN, not flex gap:
   with `gap` the loop would be short by half a gap and visibly jump at -50%.
   Each tile is a self-contained margin-box unit, so translateX(-50%) lands
   clone #1 exactly on original #1 → mathematically seamless. */
.bcx-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 20px 0;
    animation: bcx-scroll var(--bcx-speed) linear infinite;
    will-change: transform;
}
.bcx-marquee:hover .bcx-marquee__track,
.bcx-marquee:focus-within .bcx-marquee__track { animation-play-state: paused; }
@keyframes bcx-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Logo tile — the established brand card surface ── */
.bcx-tile {
    flex: 0 0 auto;
    width: 168px; height: 108px;
    margin: 0 10px;                       /* 20px between tiles; self-contained unit keeps the loop seamless */
    background: var(--white);
    border: 1px solid #f0f1f3;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(44,62,80,0.04), 0 10px 26px -10px rgba(44,62,80,0.12);
}
.bcx-tile__media {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 18px; border-radius: 18px;
    background: linear-gradient(160deg, #fafbfc, #f4f6f8);
    box-shadow: inset 0 0 0 1px #f0f1f4;
}
.bcx-tile__media img {
    max-width: 100%; max-height: 40px; width: auto;
    object-fit: contain; display: block;
    filter: grayscale(1); opacity: 0.62;   /* uniform soft-charcoal wall — normalises the varied multi-colour PNGs */
    transition: filter 0.25s ease, opacity 0.25s ease;
}
/* calm COLOUR-ONLY hover (no lift / no scale) — the logo wakes to full colour */
.bcx-tile:hover .bcx-tile__media img { filter: grayscale(0); opacity: 1; }
/* accent cadence — an amber-tinted plinth instead of the old amber coin ring */
.bcx-tile--accent .bcx-tile__media {
    background: linear-gradient(160deg, #fffdf8, #fbf4e6);
    box-shadow: inset 0 0 0 1px rgba(232, 14, 14, 0.22);
}

/* ── Stats — light bordered card tiles = the inverse of the dark Promise band ── */
.bcx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.bcx-stat {
    background: var(--white);
    border: 1px solid #f0f1f3;
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(44,62,80,0.04), 0 10px 26px -10px rgba(44,62,80,0.12);
    transition: border-color 0.25s ease;
}
.bcx-stat:hover { border-color: rgba(232, 14, 14, 0.3); }   /* calm colour-only hover */
.bcx-stat__num {
    font-size: 28px; font-weight: 800; line-height: 1;
    color: var(--steel-blue); letter-spacing: -0.02em;
}
.bcx-stat__num span { color: var(--secondary); }
.bcx-stat__label {
    margin-top: 7px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--Dgray);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .site-section.bcx-section { padding-top: 40px !important; padding-bottom: 44px !important; }
    .bcx-section .section-header { margin-bottom: 30px; }
    .bcx-tile { width: 148px; height: 96px; margin: 0 8px; }
    .bcx-tile__media { padding: 16px; }
    .bcx-tile__media img { max-height: 36px; }
}
@media (max-width: 767px) {
    .site-section.bcx-section { padding-top: 34px !important; padding-bottom: 38px !important; }
    .bcx-marquee { --bcx-speed: 28s; }
    .bcx-tile { width: 120px; height: 78px; margin: 0 6px; }
    .bcx-tile__media { padding: 13px; }
    .bcx-tile__media img { max-height: 30px; }
    .bcx-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
    .bcx-stat { padding: 18px 14px; }
    .bcx-stat__num { font-size: 25px; }
}
@media (max-width: 480px) {
    .bcx-tile { width: 104px; height: 68px; margin: 0 5px; }
    .bcx-tile__media { padding: 11px; }
    .bcx-tile__media img { max-height: 26px; }
}

/* ── Reduced motion — stop the autoplay and collapse to a tidy static centred
   grid of just the 6 REAL tiles (the loop clones are hidden). ── */
@media (prefers-reduced-motion: reduce) {
    .bcx-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .bcx-marquee::before, .bcx-marquee::after { display: none; }
    .bcx-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
    .bcx-marquee__track .bcx-tile[aria-hidden="true"] { display: none; }
    .bcx-tile { margin: 8px; }   /* even spacing once the row wraps */
}