/* credibility */
.cred { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 12px; }
.cred-lab { font-family: var(--sans); font-weight: 600; font-size: 12px; color: var(--ink-3); }
.credmq { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.mq {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  /* logos scroll in and out under a soft fade, so the ones at the edges never look cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent);
}
.mq-track { display: flex; width: max-content; animation: mqrun 38s linear infinite; animation-play-state: paused; }
.mq.live .mq-track { animation-play-state: running; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-set { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.mq-set img { height: 30px; width: auto; flex: none; opacity: 1; }
.mq-set img.lg-s { height: 34px; }
.mq-set img.lg-m { height: 26px; }
@keyframes mqrun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* no motion: show every logo once, wrapped, with nothing cropped */
@media (prefers-reduced-motion: reduce) {
  .mq { -webkit-mask-image: none !important; mask-image: none !important; }
  .mq-track { animation: none; width: auto; }
  .mq-set { flex-wrap: wrap; row-gap: 18px; padding-right: 0; }
  .mq-set[aria-hidden="true"] { display: none; }
  .mq-set img.mq-dup { display: none; }   /* each loop repeats its logos to fill wide screens; once is enough here */
}
@container pg (max-width: 560px) {
  .credmq { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mq { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  .mq-set { gap: 40px; padding-right: 40px; }
  .mq-set img { height: 24px; }
  .mq-set img.lg-s { height: 27px; }
  .mq-set img.lg-m { height: 21px; }
}
/* Credibility strip: one label column, so both rows of logos start on the same line; and each
   logo sized for equal visual weight (height ~ sqrt(area / aspect ratio)) instead of one shared height. */
.cred { padding-block: 18px; }
.credmq { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; column-gap: 20px; }
.credmq { margin-top: 0; }
.cred .vlogos { gap: 40px; }
.cred .vlogos img, .cred .mq-set img { height: var(--h, 30px); }
.cred .vlogos img, .cred .mq-set img { filter: grayscale(1) brightness(0.82) contrast(1.15); opacity: 0.6; }   /* muted gray like the roofing one-pager */
.cred img[src$="dnv.svg"] { --h: 36px; }
.cred img[src$="doe.png"] { --h: 33px; }
.cred img[src$="nlr.svg"] { --h: 29px; }
.cred img[src$="mission-2.png"] { --h: 29px; }
.cred img[src$="indaspec.png"] { --h: 33px; }
.cred img[src$="semper.svg"] { --h: 33px; }
.cred img[src$="roofmark.png"] { --h: 28px; }
.cred img[src$="proterra.png"] { --h: 38px; }
.cred img[src$="empower.svg"] { --h: 30px; }
.cred img[src$="roofrabbit.svg"] { --h: 40px; opacity: .45; }   /* two-line lockup ("Built by Sales Rabbit") needs the height; solid black, so a bit lighter to match the row */
@container pg (max-width: 560px) {
  .credmq { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .cred .vlogos { gap: 24px; }
  .cred .vlogos img, .cred .mq-set img { height: calc(var(--h, 30px) * 0.78); }
}
