/* Content sections below the catalogue: customer logos, TikTok video strip
   and the "more departments" tiles. */

.customers, .videos, .more { padding-block: clamp(3rem, 6vw, 4.5rem); }

.customers h2, .videos h2, .more h2 { font-size: var(--text-h2); }

.section-lead { margin-top: 0.5rem; color: var(--ink-soft); max-width: 42rem; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }

.button-icon { width: 1.1rem; height: 1.1rem; }

/* Customer logos: one row sliding sideways forever. Pauses on hover; with
   reduced motion it stops and becomes a normal sideways-scrolling row. */
.customers { background: var(--white); border-top: 1px solid var(--stainless); }

.logo-marquee {
  margin-top: 2rem;
  overflow: hidden;
  border-block: 1px solid var(--stainless);
  /* Soft fade at both edges so logos slide in and out instead of being cut. */
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.logo-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: max-content;
  animation: logo-slide 60s linear infinite;
}

/* Spacing lives inside each item (not `gap`) so one copy is exactly half the track. */
.logo-track li { flex: none; width: 10rem; padding: 0.9rem 1.25rem; }

.logo-track img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }

.logo-marquee:hover .logo-track { animation-play-state: paused; }

/* RTL: the track starts at the right, so sliding right by half reveals the copy. */
@keyframes logo-slide { to { transform: translateX(50%); } }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; mask-image: none; }
  .logo-track { animation: none; }
  .logo-track li[aria-hidden='true'] { display: none; }
}

/* Video strip: portrait frames that scroll sideways on phones. */
.video-strip {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.video { display: grid; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--text-small); line-height: 1.35; }

.video-frame { position: relative; display: block; border-radius: var(--radius-small); overflow: hidden; background: var(--ink); }

.video-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Play mark: a dark disc with a white triangle, centred on the frame. */
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgb(21 33 45 / 0.75);
}
.video-play::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-block: 0.6rem solid transparent;
  border-left: 0.95rem solid var(--white);
  translate: 0.15rem 0;
}

.video:hover .video-caption { color: var(--steel-blue); text-decoration: underline; }

/* More departments */
.more { background: var(--frost); }

.departments {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem 1.25rem;
}

.department { display: grid; gap: 0.5rem; text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; }

.department img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-small);
  background: var(--white);
  padding: 0.5rem;
}

.department:hover span { color: var(--steel-blue); text-decoration: underline; }

@media (max-width: 52rem) {
  .logo-track li { width: 7.5rem; padding: 0.6rem 0.8rem; }

  .video-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .video-strip li { flex: 0 0 9.5rem; scroll-snap-align: start; }
}
