/* Home ecosystem marquee — loaded only on /. Logo-only, mixed, auto-scroll.
   Quiet trust signal between gallery and footer: off-white ground, sage
   hairline, no title, no names. Pure CSS motion, zero dependencies. */
.eco-marquee {
  background: var(--color-bg);
  border-top: 1px solid color-mix(in srgb, var(--tmj-sage) 45%, var(--tmj-off-white));
  padding: var(--space-6) 0;
  overflow: clip;
}

.mq-viewport {
  overflow: hidden;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.mq-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: mq-scroll 48s linear infinite;
}

.mq-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-7);
  padding-right: var(--space-7);
}

.mq-viewport:hover .mq-track { animation-play-state: paused; }

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

.mq-frame {
  flex: 0 0 auto;
  width: 170px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mq-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .eco-marquee { padding: var(--space-5) 0; }
  .mq-set { gap: var(--space-5); padding-right: var(--space-5); }
  .mq-frame { width: 120px; height: 64px; }
  .mq-track { animation-duration: 36s; }
}

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .mq-set[aria-hidden="true"] { display: none; }
}
