/* TrustUs — /customers/ -------------------------------------------------------
   Loads after testimonials.css and reuses its head, because the two pages are
   the same kind of page: a claim, the evidence, and a way onward. Only what is
   particular to this one is here. */

/* --- The head --------------------------------------------------------------
   What the page claims on one side, and a handful of the logos on the other,
   running off the edge of the frame — so the wall below reads as the rest of
   something already begun rather than as the first sight of it. */
/* Shorter than the page's other heads. This one has a marquee beside it doing
   the work a picture would, so the copy does not need to fill the screen on its
   own — and a head that fills the screen pushes the wall, which is the point of
   the page, entirely below the fold. */
.cst-head {
  padding-top: calc(var(--hd-float-h) + clamp(var(--sp-5), 3vw, var(--sp-7)));
  padding-bottom: 0;
  overflow: hidden;
}
/* The heading keeps the size it has on every other page: one page is not the
   place to decide the site's headings are smaller. The head is shortened by
   saying less, above. */
.cst-head .tst-stat { margin-top: clamp(var(--sp-5), 2.5vw, var(--sp-6)); }
.cst-head .tst-lede { margin-top: var(--sp-4); }
.cst-head__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(var(--sp-6), 5vw, var(--sp-8));
  align-items: center;
  text-align: start;
}
/* The head's own rules centre everything; this page's does not. */
.cst-head .tst-eyebrow,
.cst-head .tst-title,
.cst-head .tst-stat { text-align: start; }
.cst-head .tst-lede { margin-inline: 0; max-width: 46ch; }
.cst-head .tst-crumb { margin-bottom: clamp(var(--sp-5), 3vw, var(--sp-6)); }

.cst-head__act {
  display: flex; align-items: center; gap: clamp(var(--sp-5), 3vw, var(--sp-6));
  flex-wrap: wrap;
  margin-top: clamp(var(--sp-5), 3vw, var(--sp-6));
  padding-bottom: clamp(var(--sp-6), 4vw, var(--sp-7));
}
.cst-head__alt { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.cst-head__alt a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.cst-head__alt a:hover { color: var(--red); border-bottom-color: currentColor; }

/* Runs past the frame to the edge of the screen: the rows are a glimpse of
   something larger, and a glimpse that stops neatly inside a margin is a panel.
   The bleed is exactly the frame it is escaping, so it lands on the edge. */
.cst-marquee {
  align-self: center;
  margin-inline-end: calc(-1 * (var(--frame-inset) + var(--frame-gutter)));
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
  /* Faded at both ends, so logos arrive and leave instead of being cut off. */
  -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);
}
/* The row is the window, and the window is what has to be laid out left to
   right — not the track inside it. A max-content box in an RTL container
   anchors its right edge and grows leftwards, so translateX(-50%) carried the
   whole track out of view rather than pulling the next copy in: measured, the
   reversed row sat at -2302..-240 against a window of 0..701 and rendered
   empty. The tiles are logos; their order carries no meaning. */
.cst-marquee__row { overflow: hidden; direction: ltr; }
.cst-marquee__track {
  display: flex;
  gap: clamp(12px, 1.4vw, 18px);
  width: max-content;
  /* Travels exactly one copy's width, so the reset is invisible. */
  animation: cst-drift 44s linear infinite;
}
/* The second row the other way and at its own pace: two rows travelling
   together are one sliding panel, two moving apart are a surface. */
.cst-marquee__row[data-row="1"] .cst-marquee__track { animation-direction: reverse; animation-duration: 36s; }
.cst-marquee:hover .cst-marquee__track { animation-play-state: paused; }

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

@media (prefers-reduced-motion: reduce) {
  .cst-marquee__track { animation: none; }
}

.cst-marquee__tile {
  flex: none;
  display: grid; place-items: center;
  width: clamp(128px, 13vw, 168px);
  min-height: clamp(84px, 7vw, 104px);
  padding: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
}
.cst-marquee__tile img {
  max-width: 100%; max-height: 42px; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1); opacity: .6;
}

/* --- The wall --------------------------------------------------------------
   A grid, not the homepage's drifting strip. There it is a glimpse on the way
   past and motion is the point; here it is the page, and someone should be able
   to look for a name rather than wait for it to come round again. */
.cst-wall__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  /* The hairline is drawn by each cell, not by the gap. Painting the grid's
     own background and letting a 1px gap show through is neater until the last
     row is short — twenty-two logos in fives leaves three empty cells, and
     they came out as a grey block. A shadow ring on each cell overlaps its
     neighbour's into one line and leaves the empty tracks white. */
  background: var(--paper);
  border-radius: var(--r-surface);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.cst-wall__grid li {
  display: grid; place-items: center;
  padding: clamp(var(--sp-5), 3vw, var(--sp-6));
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  min-height: 120px;
}
/* Held back until you look at one. Twenty-two logos at full strength are
   twenty-two competing brands; muted, they read as one wall and the eye can
   move along it. */
.cst-wall__grid img {
  max-width: 100%; max-height: 56px; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
.cst-wall__grid li:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cst-wall__grid img { transition: none; } }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .cst-wall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Stacked, and the bleed goes with the column: a mosaic that runs off one
     edge only makes sense beside something. */
  .cst-head__in { grid-template-columns: minmax(0, 1fr); }
  .cst-marquee { margin-inline-end: 0; }
  .cst-head__act { padding-bottom: clamp(var(--sp-6), 5vw, var(--sp-7)); }
}

@media (max-width: 560px) {
  .cst-wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-wall__grid li { min-height: 96px; padding: var(--sp-5) var(--sp-4); }
  .cst-wall__grid img { max-height: 42px; }
}

/* --- The services, closing the page ----------------------------------------
   The homepage's section, and on the homepage a dark band follows it so it can
   stop where it likes. Here the footer's white is next, so it walks to white
   rather than ending on a line across the page. Scoped to this page: the
   homepage's copy of the section must not change. */
.cst .hp-svc {
  background: linear-gradient(180deg, var(--wash) 0%, var(--wash) 55%, var(--paper) 100%);
}
