/* ===== Brand Marquee (below KPI) ================================== */
.brand-marquee {
  --bm-bg: #0f1218;
  --bm-border: #1a1f29;
  --bm-text: #e6e6e9;
  --bm-dim: #93a1b255;
  --bm-accent: #8ab4ff;
  --bm-height: 44px;

  --px-per-sec: 70;            /* speed (pixels per second) */
  --gap: 36px;                 /* space between items */
  --edge-fade: 22px;           /* gradient fade at edges */

  background: var(--bm-bg);
  border: 1px solid var(--bm-border);
  border-radius: 10px;
  height: var(--bm-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bm-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
    transparent 0,
    black var(--edge-fade),
    black calc(100% - var(--edge-fade)),
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    black var(--edge-fade),
    black calc(100% - var(--edge-fade)),
    transparent 100%);
}

.bm-track {
  display: flex;
  will-change: transform;
  animation-name: bm-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.bm-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: var(--gap);
  padding: 0 12px;
  height: var(--bm-height);
}

/* items */
.bm-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bm-text);
  font-size: 14px;
  text-decoration: none;
  opacity: .95;
}
.bm-item:hover { text-decoration: underline; color: var(--bm-accent); }

.bm-pill {
  font-size: 12px;
  color: #b9c2cf;
  background: #11161f;
  border: 1px solid var(--bm-border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* logo separator */
.bm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  opacity: .9;
}
.bm-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* small dot if you want (unused by default) */
.bm-sep {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bm-dim);
}

/* Pause on hover */
.bm-viewport:hover .bm-track { animation-play-state: paused; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bm-track { animation: none !important; transform: translateX(0) !important; }
}

@keyframes bm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--bm-move, 1200px))); }
}
