/* Shared decorative backgrounds, selected per section to preserve page rhythm. */
[data-section-art] {
  --section-art-color: #f3f8ff;
  --section-art-height: clamp(280px, 30vw, 440px);
  --section-art-position: center top;
  position: relative;
  isolation: isolate;
  background: var(--section-art-color);
}

[data-section-art]::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--section-art-height);
  max-height: 100%;
  pointer-events: none;
  content: "";
  background-image: var(--section-art-image);
  background-repeat: no-repeat;
  background-position: var(--section-art-position);
  background-size: cover;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 100%);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}

[data-section-art="orbits"] {
  --section-art-image: url("./assets/backgrounds/section-blue-orbits.webp");
  --section-art-height: clamp(250px, 25vw, 360px);
  --section-art-position: right top;
}

[data-section-art="planes"] {
  --section-art-image: url("./assets/backgrounds/section-blue-planes.webp");
}

[data-section-art="ribbon"] {
  --section-art-image: url("./assets/backgrounds/section-blue-ribbon.webp");
  --section-art-height: clamp(200px, 20vw, 300px);
  --section-art-position: right top;
}

[data-section-art][data-art-position="bottom"]::before {
  inset: auto 0 0;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 45%, transparent 100%);
}

.platform-overview__content[data-section-art] {
  --section-art-height: 360px;
}

@media (max-width: 767px) {
  [data-section-art]::before {
    height: 280px;
    background-position: 68% top;
    opacity: 0.72;
  }

  [data-section-art="orbits"]::before {
    background-position: right top;
  }

  [data-section-art="ribbon"]::before {
    height: 220px;
    background-position: right top;
  }
}
