/* Decorative wallpaper on exposed page backgrounds. */
body {
  background-image: url("halos-anlice.svg") !important;
  background-size: 480px 360px;
}

/* Use only the clear outer gutters of padded sections. */
body:has(#expertos) {
  background-image: none !important;
}

@media (min-width: 761px) {
  main > :is(.anlice-impulsa, .solutions, .method, .clients-showcase) {
    position: relative;
    isolation: isolate;
  }

  main > :is(.anlice-impulsa, .solutions, .method, .clients-showcase)::before,
  main > :is(.anlice-impulsa, .solutions, .method, .clients-showcase)::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: min(4%, 72px);
    z-index: -1;
    pointer-events: none;
    background: url("halos-anlice.svg") 66.5% top / 245px 184px repeat-y;
    mask-image:
      linear-gradient(to right, transparent, #000 25%, #000 70%, transparent),
      linear-gradient(to bottom, transparent, #000 min(70px, 18%), #000 calc(100% - min(70px, 18%)), transparent);
    mask-composite: intersect;
  }

  main > :is(.anlice-impulsa, .solutions, .method, .clients-showcase)::before {
    inset-inline-start: 0;
  }

  main > :is(.anlice-impulsa, .solutions, .method, .clients-showcase)::after {
    inset-inline-end: 0;
    background-position-y: 85px;
  }
}

/* Keep the blue band flush with the page edges and loop the two logo sets. */
#expertos .profile-orgs .anlice-logos-viewport {
  width: 100cqw !important;
  max-width: none !important;
  margin-inline: calc((100% - 100cqw) / 2) !important;
}

html:has(#expertos) {
  container-type: inline-size;
}

#expertos .exact-approved-band::before,
#expertos .exact-approved-band::after {
  content: none !important;
}

#expertos .exact-approved-band .anlice-band-track {
  width: 200% !important;
  animation: anlice-full-width-logo-loop 32s linear infinite !important;
}

#expertos .exact-approved-band .anlice-band-set {
  width: 50% !important;
  flex: 0 0 50% !important;
}

@keyframes anlice-full-width-logo-loop {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  #expertos .exact-approved-band .anlice-band-track {
    animation: none !important;
  }
}

#expertos .exact-approved-band .anlice-band-track .anlice-band-set img {
  width: calc(100% - var(--interbank-slot)) !important;
  flex: 0 0 calc(100% - var(--interbank-slot)) !important;
  object-fit: contain !important;
}
