/* "Worked with" logo banner, shared by /corporate and /hospitality (Mark, 2026-11-13).
   Every logo is shown in one ink colour so the row reads as one band, not a collage of brand colours.
   The row scrolls sideways forever: the list is in the page twice and the track moves by exactly one copy.
   Each logo's --h is its height in px, set by eye so wide wordmarks and square marks weigh about the same. */
.logos {
  position: relative;
  padding: clamp(40px, 7vh, 72px) 0 clamp(36px, 6vh, 64px);
  overflow: hidden;
}
/* Soft edges: two cream panels that sit still over the row. (A mask-image on the moving track made iPhone Safari
   draw nothing at all, 2026-11-14.) */
.logos-fade {
  position: relative;
}
.logos-fade::before, .logos-fade::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 10%;
  z-index: 1;
  pointer-events: none;
}
.logos-fade::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(240, 238, 233, 0)); }
.logos-fade::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(240, 238, 233, 0)); }
.logos-head {
  text-align: center;
  margin: 0 var(--gutter) clamp(22px, 4vh, 36px);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logos-slide 48s linear infinite;
}
/* Pause on hover only where there is a real pointer: on a touch screen a tap left the row frozen */
@media (hover: hover) {
  .logos:hover .logos-track { animation-play-state: paused; }
}
.logos-row {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding-right: clamp(48px, 6vw, 96px);
  margin: 0;
  list-style: none;
}
.logos-row li { flex: none; display: flex; align-items: center; }
/* The logos are vector shapes in the page, not images (2026-11-16): on Mark's iPhone the logo images in the moving row
   kept vanishing while the typeset Strive logo stayed, even after the filter and opacity were baked out (2026-11-14).
   Shapes are drawn like text, so nothing in the row is an image. tools/build-logo-sprite.cjs traces them from logos/
   in their final solid colour and writes them into each page; --r is each logo's width over its height.
   No filter, opacity or mask on anything in the row. */
.logo-shapes { position: absolute; width: 0; height: 0; overflow: hidden; }
.logos-row .logo {
  display: block;
  height: calc(var(--h, 34px) * var(--logo-scale, 1));
  width: calc(var(--h, 34px) * var(--logo-scale, 1) * var(--r, 3));
}
.logo-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: #5b5a59; /* the same ink as the traced logos, so the word logo is not paler than the rest */
  font-family: var(--serif);
  font-size: calc(30px * var(--logo-scale, 1));
  white-space: nowrap;
}
.logo-word small {
  font-family: var(--sans);
  font-size: calc(9px * var(--logo-scale, 1));
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 6px;
}
@keyframes logos-slide { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .logos { --logo-scale: .78; }
  .logos-track { animation-duration: 36s; }
}
/* Reduce motion: the logos sit still, centred, in lines of about even length (text-wrap: balance) no wider than about
   980 px, so no logo is ever left on a line of its own (a flex wrap left Freehouse alone on desktops, 2026-11-17).
   Each logo carries half the gap on either side and the row's padding gives the same amount back, so the outer logos
   still line up with the gutter; the 16 px above and below each logo makes the 32 px between lines, and the row's
   negative margin takes the outer 16 px back */
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; width: auto; display: block; }
  .logos-fade::before, .logos-fade::after { display: none; }
  .logos-row {
    --logo-gap: clamp(40px, 4.5vw, 64px);
    display: block; max-width: 980px; margin: -16px auto;
    padding: 0 max(0px, calc(var(--gutter) - var(--logo-gap) / 2));
    text-align: center; text-wrap: balance; font-size: 0; line-height: 0;
  }
  .logos-row li { display: inline-flex; vertical-align: middle; margin: 16px calc(var(--logo-gap) / 2); }
  .logos-row[aria-hidden] { display: none; }
  .logos-row .dup { display: none; } /* repeats inside the first row (pages with a short list) */
}
/* Phones: a tighter gap, so the wider logos can share a line */
@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .logos-row { --logo-gap: 24px; }
}
