:root {
    --navy: #0e2a4d;
    --navy-d: #091b33;
    --red: #b4232f;
    --red-d: #951b26;
    --gold: #ffd700;
    --ink: #1d2733;
    --muted: #66758a;
    --line: #e3e8ef;
    --soft: #f6f8fb;
    --font: 'Sora', system-ui, sans-serif;
    --serif: 'Sora', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }

body { font-family: 'Sora', system-ui, sans-serif; background: var(--soft); color: var(--ink); }

/* ---------- Slider wrapper ---------- */
.logo-slider {
    position: relative;
    padding: 40px 0;
    background: var(--soft);
    overflow: hidden;
}

.rows { position: relative; display: grid; gap: 20px; }
.rows::before, .rows::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 3; pointer-events: none;
}
.rows::before { left: 0;  background: linear-gradient(90deg, var(--soft), rgba(246,248,251,0)); }
.rows::after  { right: 0; background: linear-gradient(270deg, var(--soft), rgba(246,248,251,0)); }

.marquee { overflow: hidden; padding: 12px 0 14px; }
.track {
    display: flex; width: max-content; gap: 20px;
    animation: scroll 38s linear infinite;
}
.marquee--rev .track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .track { animation-play-state: paused; }

@keyframes scroll { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Logo card ---------- */
.logo {
    position: relative;
    flex: 0 0 auto;
    width: 180px; height: 90px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    
    box-shadow: 8px 8px 0 var(--navy);
    color: var(--red);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, color .3s ease, opacity .3s ease, filter .3s ease;
    
}
.logo::before {
    content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
   
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s ease;
}

.logo svg { width: 36px; height: 36px; flex: none; fill: currentColor; }
.logo img { height: 60px; width: 160px; object-fit: contain; display: block; }
.logo span { font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1.1; }
.logo small { display: block; font-weight: 600; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }


.logo:hover::before { transform: scaleX(1); }
.logo:hover::after  { border-color: transparent transparent var(--red) transparent; }

@media (max-width: 720px) {
    .rows::before, .rows::after { width: 50px; }
    .logo { width: 190px; height: 100px; }
    .logo img { height: 50px; width: 140px; }
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }