/* =========================================================
   TICKER.CSS — Logo ticker (infinite scroll + edge fades)
   ========================================================= */

.ticker {
  padding: clamp(1.5rem, 3.5vw, 2.75rem) 0;
}

.ticker-label {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}

/* Head stays aligned with the site's main content container */
.ticker-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Full-bleed viewport: spans the whole browser width and clips its
   own overflow; the animated strip moves underneath it. A very
   subtle ~20px fade sits ONLY at the actual screen edges. */
.ticker-bleed {
  overflow: hidden;
  padding: 0.5rem 0;
  margin: -0.5rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

/* The moving strip — content duplicated once for a seamless -50% loop.
   Spacing uses margin-right on items (NOT flex gap) so both halves are
   exactly equal width and the -50% translation lands perfectly on the
   seam → true infinite loop with no jump. */
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 0.25rem 0;
  animation: ticker-scroll 26s linear infinite;
}

.ticker-bleed:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* Logo item — bare image, no capsule/pill container */
.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 4rem;
  white-space: nowrap;
  user-select: none;
}

/* Logo image — uniform height, monochrome until hovered */
.ticker-item img {
  height: 32px;              /* fixed height keeps every logo equal */
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.ticker-item:hover img {
  filter: none;              /* full color on hover */
  opacity: 1;
}

.ticker-item [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--green-dark);
}

.ticker-name {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

@media (max-width: 640px) {
  .ticker-item { margin-right: 2.25rem; }
  .ticker-track { animation-duration: 20s; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
