/* ══════════════════════════════════════════════════════════════════
   Phase 1A · Alumni Logo Marquee                      S.MONK  2026-04
   ══════════════════════════════════════════════════════════════════
   Three continuous rows, alternating direction, different speeds.
   Pure CSS — no JS. Each row outputs its logo set twice in sequence
   so translating the track by -50% produces a seamless loop.
   ══════════════════════════════════════════════════════════════════ */

.logo-marquee {
  position: relative;
  background: linear-gradient(180deg, #17315E 0%, #0F2347 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}

.logo-marquee__head {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 clamp(20px, 4vw, 32px);
  text-align: center;
}
.logo-marquee__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3BC0D0;
  margin-bottom: 10px;
}
.logo-marquee__title {
  font-family: var(--f-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Viewport with edge mask ────────────────────────────────────── */
.logo-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}

/* ── Rows ───────────────────────────────────────────────────────── */
.logo-marquee__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.logo-marquee__row:hover { animation-play-state: paused; }

.logo-marquee__row--a { animation: scroll-left  45s linear infinite; }
.logo-marquee__row--b { animation: scroll-right 50s linear infinite; }
.logo-marquee__row--c { animation: scroll-left  55s linear infinite; }

@keyframes scroll-left  { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

/* ── Tile ───────────────────────────────────────────────────────── */
.logo-tile {
  flex-shrink: 0;
  width: 180px;
  height: 88px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.logo-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Original brand colours — never filter/invert. */
}

/* ── Reduced motion: park the track, centred ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__row {
    animation: none !important;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    flex-wrap: wrap;
  }
  .logo-marquee__row > *:nth-child(n + 14) { display: none; }  /* hide the duplicate copy */
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .logo-marquee { padding: 40px 0 48px; }
  .logo-marquee__head { margin-bottom: 24px; }
  .logo-tile {
    width: 140px;
    height: 64px;
    padding: 8px;
    border-radius: 10px;
  }
  .logo-marquee__viewport { gap: 12px; }
  .logo-marquee__row      { gap: 12px; }
  /* Slightly faster on mobile so less pixels per second */
  .logo-marquee__row--a { animation-duration: 35s; }
  .logo-marquee__row--b { animation-duration: 40s; }
  .logo-marquee__row--c { animation-duration: 45s; }
}
