/* Home 02: client strip, mission line, credentials. */

/* Client strip: dark band that continues the hero photo. */
.th-clients-strip {
  background: var(--tm-ink);
  color: #fff;
  padding-block: 40px 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.th-clients-label {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .55);
  font: 500 .68rem/1.6 var(--tm-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
/* One row that scrolls; the second, aria-hidden copy makes the loop seamless. */
.th-clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.th-clients-track {
  display: flex;
  width: max-content;
  animation: th-clients-scroll 48s linear infinite;
}
.th-clients-marquee:hover .th-clients-track,
.th-clients-marquee:focus-within .th-clients-track {
  animation-play-state: paused;
}
.th-clients-list {
  list-style: none;
  margin: 0;
  padding: 0 28px 0 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 56px;
}
.th-clients-list + .th-clients-list {
  padding-left: 28px;
}
@keyframes th-clients-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .th-clients-track { animation: none; }
  .th-clients-marquee { overflow-x: auto; }
  .th-clients-list[aria-hidden="true"] { display: none; }
}
.th-clients-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 4px;
  color: #fff;
  text-decoration: none;
}
/* Opacity sits on the marks, not the link, so the Airtasker blend is not isolated. */
.th-clients-item > * {
  opacity: .62;
  transition: opacity .25s ease;
}
.th-clients-item:hover > *,
.th-clients-item:focus-visible > * { opacity: 1; }
.th-clients-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}
/* Every logo is rendered as a flat white silhouette so the row reads evenly. */
.th-clients-logo {
  display: block;
  width: auto;
  height: 22px;
  filter: brightness(0) invert(1);
}
.th-clients-logo--automatum { height: 28px; }
.th-clients-logo--csiro {
  height: 40px;
  /* The disc logo has knocked-out text: show a light disc with ink letters. */
  filter: grayscale(1) invert(1) brightness(2.2);
}
.th-clients-logo--energy { height: 50px; }
.th-clients-logo--induction { height: 34px; }
.th-clients-logo--kinastic { height: 26px; }
.th-clients-logo--evidently { height: 26px; }
.th-clients-logo--ingenious { height: 20px; }
.th-clients-logo--square { height: 38px; }
/* The Airtasker file is white type on a blue panel: crop to the type and
   turn the panel black so it sinks into the ink band. */
.th-clients-crop {
  display: block;
  width: 86px;
  height: 22px;
  overflow: hidden;
  position: relative;
}
.th-clients-logo--airtasker {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 68px;
  max-width: none;
  transform: translate(-50%, -48%);
  filter: grayscale(1) contrast(6);
  mix-blend-mode: screen;
}
.th-clients-word {
  font: 500 1.12rem/1 Gellix, Arial, sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.th-clients-word em {
  font-style: normal;
  opacity: .6;
}

/* Mission and credentials */
.th-clients {
  padding-block: clamp(80px, 11vw, 160px) clamp(80px, 9vw, 130px);
  background: #fff;
}
.th-clients-mission {
  max-width: 1060px;
  margin: 0 auto;
  color: var(--tm-ink);
  font: 500 clamp(1.75rem, 4.4vw, 3.25rem)/1.14 Gellix, Arial, sans-serif;
  letter-spacing: -.035em;
  text-align: center;
  text-transform: none;
  text-wrap: balance;
}
/* Without JavaScript or with reduced motion, the whole line stays ink. */
.th-clients-mission.is-scrubbing .th-clients-w {
  color: #c3c8d2;
  transition: color .35s ease;
}
.th-clients-mission.is-scrubbing .th-clients-w.is-on { color: var(--tm-ink); }

.th-clients-creds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: clamp(64px, 8vw, 110px) auto 0;
  border-top: 1px solid var(--tm-line);
}
.th-clients-cred {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 40px 0;
}
.th-clients-cred + .th-clients-cred { border-left: 1px solid var(--tm-line); }
.th-clients-cred-title {
  margin: 0;
  color: var(--tm-ink);
  font: 500 clamp(1.3rem, 1.9vw, 1.65rem)/1.2 Gellix, Arial, sans-serif;
  letter-spacing: -.025em;
  text-wrap: balance;
  text-transform: none;
}
.th-clients-cred-title span { color: var(--tm-blue); }
.th-clients-cred-text {
  max-width: 360px;
  margin: 12px 0 28px;
  color: var(--tm-text);
  font-size: .95rem;
  line-height: 1.6;
}
.th-clients-badge {
  display: block;
  width: 200px;
  height: auto;
  margin-top: auto;
}
.th-clients-mark {
  margin: auto 0 0;
  color: var(--tm-ink);
  font: 600 2.4rem/1 Gellix, Arial, sans-serif;
  letter-spacing: -.04em;
}
.th-clients-mark--num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--tm-blue);
  font-size: 3rem;
}
.th-clients-mark--num small {
  color: var(--tm-text);
  font: 500 .68rem/1.4 var(--tm-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .th-clients-strip { padding-block: 32px 36px; }
  .th-clients-list { gap: 40px; }
  .th-clients-item { height: 44px; padding: 0; }
  .th-clients-logo { height: 18px; }
  .th-clients-logo--automatum { height: 18px; }
  .th-clients-logo--csiro { height: 34px; }
  .th-clients-logo--energy { height: 40px; }
  .th-clients-logo--induction { height: 26px; }
  .th-clients-crop { width: 70px; height: 18px; }
  .th-clients-logo--airtasker { height: 56px; max-width: none; }
  .th-clients-word { font-size: 1rem; }
  .th-clients-mission { text-align: left; }
  .th-clients-creds { grid-template-columns: 1fr; }
  .th-clients-cred { padding: 40px 0 0; align-items: flex-start; text-align: left; }
  .th-clients-cred + .th-clients-cred {
    border-left: 0;
    border-top: 1px solid var(--tm-line);
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .th-clients-item > * { transition: none; }
}
/* The crop box must stay fully opaque, or it would isolate the blend. */
.th-clients-item > .th-clients-crop { opacity: 1; }
.th-clients-logo--airtasker { opacity: .62; transition: opacity .25s ease; }
.th-clients-item:hover .th-clients-logo--airtasker,
.th-clients-item:focus-visible .th-clients-logo--airtasker { opacity: 1; }
