/* =============================================================
   JT Designs — Clients Ticker
   Animated scrolling logo strip.
   To add a logo: drop an image into assets/clients/ and add
   an <img> tag inside .ticker (duplicate the set for seamless loop).
   ============================================================= */

.clients {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.clients .label {
  margin-bottom: 36px;
  display: block;
}

.ticker-wrap {
  overflow: hidden;
  position: relative;
}

/* Fade edges so logos appear to scroll in/out */
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

/* The ticker is duplicated in HTML so it scrolls seamlessly.
   Speed: 14 logos × ~220px each = ~3080px per set.
   At 42s the scroll feels deliberate — not rushed, not sluggish. */
.ticker {
  display: flex;
  animation: ticker 42s linear infinite;
  width: max-content;
}

/* Pause on hover */
.ticker:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual logo slot */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  height: 90px;
}

.logo-item img {
  max-height: 54px;   /* enough to read clearly, not overwhelming */
  max-width: 160px;   /* wide enough for horizontal logos */
  width: auto;
  height: auto;
  object-fit: contain; /* never crop — show the full logo */
  filter: grayscale(25%) opacity(0.75);
  transition: filter var(--transition);
}

.logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Placeholder text shown until logos are added */
.ticker-empty {
  padding: 24px 0;
  text-align: center;
  width: 100%;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed rgba(26, 21, 18, 0.2);
  border-radius: 4px;
}
