/* Homepage logo marquee — dark glass tiles with transparent, full-colour logos (see js/logos.js).
   Replaces the white chips; the hover glow follows the theme colour (violet, gold on Black Friday, neon on Cyber Monday). */
.brands .marquee-run { --gap: 1rem; padding-block: 8px; }
.brands .logo-chip {
  height: 68px; min-width: 120px; padding: 0 1.75rem; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, oklch(1 0 0 / .055), oklch(1 0 0 / .015));
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 oklch(1 0 0 / .07) inset, 0 10px 30px -18px oklch(0 0 0 / .8);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, background-color .4s;
}
.brands .logo-chip img {
  height: 32px; width: auto; max-width: 150px; max-height: 52px; object-fit: contain;
  opacity: .9; transition: opacity .4s, transform .4s var(--ease), filter .4s;
}
.brands .logo-chip img.boxed { border-radius: 7px; }
/* hide the original (white-box) image until it has been converted, so it never flashes */
.brands.fx .logo-chip img:not(.done):not(.raw) { opacity: 0; animation: logo-failsafe 0s 4s forwards; }
@keyframes logo-failsafe { to { opacity: .9; } } /* if the script never runs, show the originals after 4s */
.brands .logo-chip:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--violet-hi) 55%, transparent);
  background-color: color-mix(in oklab, var(--violet) 10%, transparent);
  box-shadow: 0 1px 0 oklch(1 0 0 / .09) inset, 0 16px 40px -16px color-mix(in oklab, var(--violet) 70%, transparent);
}
.brands .logo-chip:hover img { opacity: 1; transform: scale(1.05); filter: saturate(1.15); }
/* fallback when a logo can't be converted: keep it readable on a white chip */
.brands .logo-chip:has(img.raw) { background: #fff; border-color: transparent; }
.brands .logo-chip img.raw { opacity: 1; }

@media (max-width: 560px) {
  .brands .logo-chip { height: 58px; min-width: 100px; padding: 0 1.25rem; border-radius: 15px; }
  .brands .logo-chip img { max-width: 120px; }
}
