:root {
  --labs-trust-surface: #fff;
  --labs-trust-text: #202124;
  --labs-trust-muted: #656970;
  --labs-trust-logo-filter: grayscale(1);
  --labs-trust-logo-opacity: .64;
}
@media (prefers-color-scheme: dark) {
  :root {
    --labs-trust-surface: #121212;
    --labs-trust-text: #f1f3f4;
    --labs-trust-muted: #a8abb2;
    /* Preserve internal contrast: boosting brightness clips light logo colors
       to white (for example Cloudflare's orange disk and white cloud). */
    --labs-trust-logo-filter: grayscale(1);
    --labs-trust-logo-opacity: .86;
  }
  .labs-trust { color-scheme: dark; }
}
/* The curved edge masks only the bottom of the hero; the artwork and calls to
   action above it retain their original layout. No image or JS is required. */
.streaming-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: -15%;
  width: 130%;
  bottom: -134px;
  height: 204px;
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--labs-trust-surface), var(--labs-trust-surface)) padding-box,
    linear-gradient(90deg, transparent 12%, #542142 25%, #e7438b 43%, #fb7660 50%, #e7438b 57%, #542142 75%, transparent 88%) border-box;
}

.labs-trust {
  position: relative;
  background: var(--labs-trust-surface);
  color: var(--labs-trust-text);
  color-scheme: light dark;
  padding: 26px 40px 68px;
  text-align: center;
  isolation: isolate;
}
.labs-trust-inner { position: relative; max-width: 1160px; margin: 0 auto; }
.labs-trust-viewport { overflow: hidden; }
.labs-trust-duplicate { display: none !important; }
.labs-trust h2 {
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.3px;
  margin: 0;
}
.labs-trust-context {
  margin: 7px 0 34px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--labs-trust-muted);
}
.labs-trust-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.labs-trust-logo {
  position: relative;
  height: 88px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}
.labs-trust-art {
  display: block;
  position: relative;
  width: var(--art-width);
  height: var(--art-height);
  flex: 0 0 auto;
  margin-top: calc((78px - var(--art-height)) / 2);
  overflow: hidden;
}
.labs-trust-art img {
  display: block;
  position: absolute;
  max-width: none;
  object-fit: fill;
  filter: var(--labs-trust-logo-filter);
  opacity: var(--labs-trust-logo-opacity);
}
/* Two equally sized groups travel by exactly one group width. The mask fades
   artwork into the white page at both edges, without a visible loop reset. */
@media (prefers-reduced-motion: no-preference) {
  .labs-trust.is-animated .labs-trust-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .labs-trust.is-animated .labs-trust-track {
    display: flex;
    width: max(2160px, 200%);
    animation: labs-trust-scroll 56s linear infinite;
    animation-play-state: paused;
  }
  .labs-trust.is-animated .labs-trust-logos {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex: 0 0 50%;
    gap: 0;
  }
  .labs-trust.is-animated.is-visible .labs-trust-track {
    animation-play-state: running;
  }
  .labs-trust.is-animated .labs-trust-viewport:hover .labs-trust-track,
  .labs-trust.is-animated .labs-trust-viewport:focus-within .labs-trust-track {
    animation-play-state: paused;
  }
}
@keyframes labs-trust-scroll {
  to { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .labs-trust { padding-inline: 28px; }
  .labs-trust-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
}
@media (max-width: 480px) {
  .streaming-hero::after { left: -30%; width: 160%; bottom: -134px; height: 174px; border-top-width: 2px; border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
  .labs-trust { padding: 24px 20px 44px; }
  .labs-trust-context { max-width: 250px; margin: 7px auto 28px; }
  .labs-trust-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
