/* =========================================================
   BRANDS SECTION — auto-scrolling logo wall
   Palette from the PX logo (electric blue -> violet)
========================================================= */

:root {
    --br-blue: #2e5af8;
    --br-violet: #7b2ff7;
    --br-grad: linear-gradient(135deg, var(--br-blue), var(--br-violet));
    --br-ink: #0b1130;
    --br-muted: #5b6178;
    --br-bg: #ffffff;
    --br-card: #ffffff;
    --br-line: #e4e1fa;
}

.fifth {
    position: relative;
    padding: 100px 5% 110px;
    background: var(--br-bg);
    text-align: center;
    font-family: var(--primary-font, sans-serif);
    overflow: hidden;
}

/* ---------- heading ---------- */
.br-head {
    max-width: 600px;
    margin: 0 auto 50px;
}

.br-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--br-violet);
    margin-bottom: 14px;
}

.br-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--br-grad);
}

.fifth h3 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--br-ink);
    margin: 0 0 12px;
}

.br-sub {
    color: var(--br-muted);
    font-size: 16.5px;
    margin: 0;
}

/* ---------- carousel shell ---------- */
.brands-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brands-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brands-container {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
}

.brand-tile {
    flex-shrink: 0;
    width: 190px;
    height: 110px;
    background: var(--br-card);
    border: 1px solid var(--br-line);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 12px 28px -18px rgba(11, 17, 48, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -18px rgba(90, 31, 214, 0.28);
    border-color: transparent;
}

.brand-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.35s ease;
}

.brand-tile:hover img {
    filter: grayscale(0) opacity(1);
}

/* ---------- arrows ---------- */
.arrow-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--br-line);
    background: #fff;
    color: var(--br-ink);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    z-index: 2;
}

.arrow-btn:hover {
    background: var(--br-grad);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ---------- scroll reveal ---------- */
.fifth [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.fifth [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   BRANDS SECTION 
========================= */
@media (prefers-reduced-motion: reduce) {
    .fifth [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
    .fifth { padding: 80px 5% 90px; }
    .fifth h3 { font-size: 2rem; }
    .brands-wrapper { gap: 12px; }
    .arrow-btn { width: 42px; height: 42px; font-size: 14px; }
    .brand-tile { width: 150px; height: 90px; padding: 14px; }
}