/* The clinics and pharmacies we work with, shared. 15 October, the owner: the
   logos sit directly under the figures on every page that carries them, then
   the page goes on. Markup in lab/shared/ui/logos.html, entrance in logos.js.

   Second pass, the same evening, the owner: it "lands a bit weird": the strip
   was narrower than everything around it, it was "so white", the heading did
   not stand out, and it "just appears and drops there". So it takes exactly
   the figures' column (--maxw and --pad-x, as proof.css), and it arrives by a
   WIPE (TX-04), scroll-linked and reversible (logos.js).

   17 October, the owner chose Option D of lab/opt-trusted, "A violet ribbon":
   "for the trusted by strip, I really like D". Reproduced from that board
   (lab/studies/options-1016-gen/trusted/page.css), with the fixes it carried
   for every option:
   - the figures' rule moves down: it no longer sits over the figures but
     between them and the logos, fine, drawing across the column as the
     figures arrive (and again each time they replay);
   - "Trusted by" is a caption to the strip, 17px in the figures' violet, so
     there are three figures and one strip and nothing else asking to be read
     first;
   - the strip is a low ribbon in the figures' violet, #b9bbdb;
   - each mark is sized for its own lettering (--L is the height the
     lettering stands at), so the six read at one even weight; the supplied
     files carry different amounts of empty margin, so two take negative
     margins to keep the ribbon's height honest;
   - the moving track wears the ribbon's colour itself: the track's movement
     isolates the blend, and without this Medicann's white box showed;
   - 18 October: no wipe. The heading and the ribbon are simply there, and
     arrive with the figures, in one fade, when the figures do.
   The loop's extra sets are its mechanism: they carry .dup, an empty alt and
   aria-hidden, so the accessible tree names each partner once. One pass holds
   about eighty pixels a second (sixty on a phone); logos.js measures the
   duration from one set of marks. */
.trusted { max-width: var(--maxw, 1240px); margin: 0 auto; padding: clamp(34px, 5.4vh, 54px) var(--pad-x, 26px) clamp(64px, 11vh, 128px); }
/* the rule between the figures and the logos replaces the figures' own */
:root:has(.trusted) .proof { padding-bottom: 0; }
:root:has(.trusted) .proof::before { display: none; }
.trusted::before { content: ""; display: block; height: 1px; margin: 0 0 clamp(26px, 4vh, 40px); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet-soft, #aaadd1), rgb(170 173 209 / .35)); }
/* 14 November, the owner: the strip still "flashes" on his iPhone just past
   Lyphe. The strip's arrival was keyed to the figures through :root:has(...),
   so every class the figures took (in, done, still) restyled the whole page
   while the strip moved, and the first of those lands about a second and a
   half in, when Lyphe is passing. The figures' classes are now copied onto
   the strip's own section by logos.js, and only those it needs (enh, in,
   still), so nothing outside the strip restyles it */
.trusted.enh::before { transform: scaleX(0); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) .25s; }
.trusted.enh.in::before { transform: none; }
.trusted h2.trusted-h { margin: 0 0 12px; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; font-weight: 800; color: var(--violet-soft, #aaadd1); }
.trusted.enh .trusted-h, .trusted.enh .loopwrap { opacity: 0; transition: opacity .6s ease .2s; }
.trusted.enh.in .trusted-h, .trusted.enh.in .loopwrap { opacity: 1; }
.trusted.still .trusted-h, .trusted.still .loopwrap, .trusted.still::before { transition: none !important; }
.loopwrap { --L: 23px; --band: #b9bbdb; position: relative; background: var(--band); border-radius: 8px; padding: 14px 0; overflow: hidden; }
.looptrack { display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-start; width: max-content;
             background: var(--band); gap: calc(var(--L) * 2.6); padding-right: calc(var(--L) * 2.6);
             animation: loop var(--loop-d, 16s) linear var(--loop-o, -5s) infinite; }
/* 13 November, the owner, on his iPhone: the strip "has a one second flash
   ... when it gets past Lyphe". Each mark was blended onto the violet as it
   moved (mix-blend-mode), which iPhones can drop for a moment. The violet is
   now baked into each file (assets/derived/partners/band/), so nothing blends
   while the strip moves and it looks exactly as before */
.looptrack img { width: auto; height: 46px; max-width: none; }
/* 14 November: the strip is moved by logos.js frame by frame (the owner's test, option 6); the CSS loop below runs only without script */
.looptrack img.m-medicann { height: calc(var(--L) * 1.37); }
.looptrack img.m-wellford { height: calc(var(--L) * 1.8); margin-block: calc(var(--L) * -0.38); }
.looptrack img.m-lyphe    { height: calc(var(--L) * 1.3); }
.looptrack img.m-getkong  { height: calc(var(--L) * 1.1); }
.looptrack img.m-newgrove { height: calc(var(--L) * 2.75); margin-block: calc(var(--L) * -0.88); }
.looptrack img.m-xen      { height: calc(var(--L) * 1.12); }
@keyframes loop { to { transform: translateX(-33.3333%); } }
@media (max-width: 860px) {
  .trusted { padding-bottom: clamp(48px, 9vh, 80px); }
}
@media (max-width: 760px) {
  .trusted { padding-top: 30px; }
  .trusted::before { margin-bottom: 22px; }
  .loopwrap { --L: 21px; padding: 13px 0; }
  .looptrack { gap: calc(var(--L) * 2.2); padding-right: calc(var(--L) * 2.2); }
}
@media (prefers-reduced-motion: reduce) {
  .trusted::before { transform: none !important; transition: none !important; }
  .looptrack { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-right: 0; row-gap: 20px; }
  .looptrack .dup { display: none; }
  .trusted .trusted-h, .trusted .loopwrap { opacity: 1 !important; transition: none !important; }
}
