/* ------------------------------------------------------------- brand strip
   Between the tagline and "Moments from the living room.": two rows of white logos at
   the same low opacity, drifting in opposite directions. The edges fade into the page;
   hovering a row slows it to a stop. Logo heights come from --k (set per logo by
   tools/build-brand-strip.py) so every logo covers about the same area. */
.brand-strip {
  --bs-h: clamp(30px, 1.6rem + 1.5vw, 54px);
  --bs-gap: clamp(40px, 5vw, 84px);
  --bs-dim: 0.5;
  position: relative; overflow: hidden;
  display: grid; gap: clamp(6px, 1vw, 14px);
  margin: clamp(20px, 3vw, 40px) 0 clamp(4px, 1vw, 12px);
  padding: clamp(12px, 1.4vw, 20px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.brand-strip__row { overflow: hidden; }
.brand-strip__track { display: flex; width: max-content; }
.brand-strip__list {
  display: flex; align-items: center; gap: var(--bs-gap);
  margin: 0; padding: 0 calc(var(--bs-gap) / 2); list-style: none; flex: none;
}
.brand-strip__list li { flex: none; display: flex; align-items: center; height: calc(var(--bs-h) * 1.5); }
.brand-strip__list img {
  display: block; width: auto; height: calc(var(--bs-h) * var(--k, 1));
  opacity: var(--bs-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .brand-strip.is-running .brand-strip__track { animation: brand-drift var(--bs-dur, 90s) linear infinite; }
  /* The second row runs the other way. */
  .brand-strip.is-running .brand-strip__row:nth-child(even) .brand-strip__track { animation-direction: reverse; }
  .brand-strip.is-running .brand-strip__row:hover .brand-strip__track { animation-play-state: paused; }
}
@keyframes brand-drift { to { transform: translateX(-50%); } }

/* Reduced motion, or before the script runs: no drift, logos wrap into centred rows. */
.brand-strip:not(.is-running) { -webkit-mask-image: none; mask-image: none; }
.brand-strip:not(.is-running) .brand-strip__list {
  flex-wrap: wrap; justify-content: center; row-gap: 8px;
  padding: 0 max(16px, 2.4vw);
}

