/* Team references (markup written by tools/team-refs.js).
   .tr-strip: two rows of brand logos drifting in opposite directions at the foot of each hero (greyscale, colour on hover).
   .tr-sec:   the reference card grid further down the page; home and /enterprise get the full set with filters (js/team-refs.js). */

/* ---------- strip (under the hero CTA) ----------
   Bare logos on the hero background: no title, tile, border or shadow; two rows, the second drifting the other way. Each list carries its own trailing gap (padding-right), so the
   two identical lists make a seamless loop at translateX(-50%). --s scales the desktop logo sizes (--w/--h) per breakpoint. */
/* breaks out of the page container to the viewport width less 24px a side, wherever the hero puts it */
.tr-strip { --s: 1; --gap: 56px; width: calc(100vw - 48px); margin-left: calc(50% - 50vw + 24px); padding: 36px 0; }
.tr-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tr-track { display: flex; width: max-content; animation: tr-scroll var(--tr-dur, 36s) linear infinite; will-change: transform; }
.tr-marquee + .tr-marquee { margin-top: calc(24px * var(--s)); }
.tr-marquee--rev .tr-track { animation-direction: reverse; }
.tr-marquee:hover .tr-track, .tr-marquee:focus-within .tr-track { animation-play-state: paused; }
.tr-list { display: flex; align-items: center; gap: var(--gap); flex: none; margin: 0; padding: 0 var(--gap) 0 0; list-style: none; }
.tr-list li { display: flex; align-items: center; flex: none; height: calc(48px * var(--s)); }
.tr-list a { display: block; border-radius: 4px; }
.tr-list img { display: block; width: calc(var(--w) * var(--s)); height: calc(var(--h) * var(--s)); max-width: none; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .35s, opacity .35s; }
.tr-list li:hover img, .tr-list a:focus-visible img { filter: none; opacity: 1; }
@keyframes tr-scroll { to { transform: translateX(-50%); } }
.tr-marquee--static { -webkit-mask-image: none; mask-image: none; }
.tr-marquee--static .tr-track { width: auto; animation: none; }
.tr-marquee--static .tr-list { flex-wrap: wrap; justify-content: center; padding: 0; row-gap: 20px; }
@media (max-width: 1024px) { .tr-strip { --s: .84; --gap: 40px; padding: 28px 0; } }
@media (max-width: 640px) { .tr-strip { --s: .66; --gap: 28px; padding: 22px 0; } }
/* fades in with the hero, right after the CTA buttons (opacity only: no layout shift) */
html.ab-js .hm-hero .tr-strip, html.ab-js .pd-hero .tr-strip { opacity: 0; animation: tr-in .9s ease .6s forwards; }
@keyframes tr-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.ab-js .hm-hero .tr-strip, html.ab-js .pd-hero .tr-strip { opacity: 1; animation: none; }
  .tr-marquee { -webkit-mask-image: none; mask-image: none; }
  .tr-track { width: auto; animation: none; }
  .tr-list { flex-wrap: wrap; justify-content: center; padding: 0; row-gap: 20px; }
  .tr-list[aria-hidden] { display: none; }
}

/* card logos */
.tr-logo img { display: block; max-width: none; object-fit: contain; } /* card logos in their own colours */

/* ---------- card grid ---------- */
/* a white section sized to its content: not one of the full-screen-height sections (home-ab.css), with tight padding */
.hm.hm:not(.ct) > section.tr-sec { display: block; min-height: 0; padding: 0 0 clamp(44px, 4.5vw, 64px); background: #fff; }
.tr-sec .section-head { padding: clamp(44px, 4.5vw, 64px) 0 28px; }
.tr-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tr-filters button { min-height: 44px; padding: 10px 18px; border: 1px solid #d6d6d6; border-radius: 999px; background: #fff; color: var(--ink, #111); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tr-filters button:hover { border-color: var(--ink, #111); }
.tr-filters button.is-active { background: var(--ink, #111); border-color: var(--ink, #111); color: #fff; }
.tr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tr-card { display: flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #ececec; border-radius: 16px; background: #fff; transition: border-color .2s; }
.tr-card:hover { border-color: #cfcfcf; }
.tr-card[hidden] { display: none; }
.tr-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 140px; }
.tr-note { margin-top: 20px; font-size: 13px; color: #8a8a8a; }
.ab-dark .tr-note, .ab-ink .tr-note { color: var(--muted-d, #9f9f9f); }
@media (max-width: 1100px) { .tr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tr-card { padding: 0 12px; }
  .tr-logo { height: 100px; }
  .tr-logo img { transform: scale(.78); }
}
