/* ============================================================
   Niyutam — Technologies marquee strip
   ============================================================ */

:root {
  --mq-bg-section: #F5F5F3;
  --mq-bg-pill:    #ffffff;
  --mq-border:     #e0e0e0;
  --mq-text:       #3D3D3D;
  --mq-label:      #999999;
  --mq-gap:        12px;
  --mq-speed:      30s;
}

/* ── Section ─────────────────────────────────────────────── */
.marquee {
  background: var(--mq-bg-section);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  overflow: hidden;
  position: relative;
}

/* ── Section label ───────────────────────────────────────── */
.marquee__label {
  text-align: center;
  font-family: 'Satoshi', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mq-label);
  margin: 0 0 1.5rem;
}

/* ── SR-only list ─────────────────────────────────────────── */
.marquee__sr-list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
}

/* ── Viewport (fade masks + overflow clip) ───────────────── */
.marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

/* ── Track ───────────────────────────────────────────────── */
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--mq-gap);
  width: max-content;
  padding: 4px 0 8px;    /* room for pill shadow */
  animation: mq-scroll var(--mq-speed) linear infinite;
  will-change: transform;
}

.marquee__viewport:hover .marquee__track {
  animation-play-state: paused;
}

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

/* ── Pill card ───────────────────────────────────────────── */
.marquee__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--mq-border);
  background: var(--mq-bg-pill);
  white-space: nowrap;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--mq-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  user-select: none;
  -webkit-user-select: none;
}

.marquee__pill svg {
  flex-shrink: 0;
  display: block;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  /* Hide duplicate items */
  .marquee__track .marquee__pill:nth-child(n+17) {
    display: none;
  }

  /* Remove fade masks — show static scrollable row */
  .marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .marquee__viewport::-webkit-scrollbar {
    display: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
