/* LightRays — Collaboration section background, both breakpoints */
#collaborations {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#collaborations .collab-light-rays {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  flex: none;
  opacity: 0.72;
  visibility: visible;
}

#collaborations .collab-light-rays canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  opacity: 1;
  /* Avoid screen blend — it flashes against scrolling logo cards */
  mix-blend-mode: normal;
}

#collaborations > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  #collaborations .collab-light-rays {
    opacity: 0.65;
    z-index: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #collaborations .collab-light-rays {
    display: none;
  }
}

/* Continuous heading light (no opacity pulse / flash) */
@keyframes collab-heading-light-sweep {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: -100% 50%;
  }
}

#collaborations .section-eyebrow::after {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 3.5rem;
  height: 2px;
  border-radius: 2px;
  opacity: 1;
  transform: none;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.12) 0%,
    rgba(125, 211, 252, 0.95) 42%,
    rgba(255, 255, 255, 1) 50%,
    rgba(125, 211, 252, 0.95) 58%,
    rgba(56, 189, 248, 0.12) 100%
  );
  background-size: 220% 100%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  animation: collab-heading-light-sweep 2.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  #collaborations .section-eyebrow::after {
    animation: none;
    background-position: 50% 50%;
    opacity: 0.85;
  }
}
