/* Codiji Site — infinite marquee strip. Pure CSS animation; the track holds
   the item list duplicated 2x (in PHP) so the -50% loop is seamless. */

.marquee-band {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
}
.marquee-band--dim {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0.5;
}
.marquee-band--card {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}
.marquee-band--pad { padding: 4rem 0; }
.marquee-band__label {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted-fg);
}

.marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  padding: 1rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee[data-speed="slow"] .marquee__track {
  animation-duration: 50s;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3rem;
  padding: 0 1.5rem;
}

.marquee__item {
  font-size: 2.25rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--color-muted-fg) 30%, transparent);
  transition: color var(--dur-slow) var(--ease);
}
@media (min-width: 768px) {
  .marquee__item { font-size: 3.75rem; }
}
.marquee__item:hover { color: var(--color-primary); }

/* Pause on hover/focus so the strip is readable and screen-reader/keyboard
   users are not chasing endlessly scrolling text. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
