/* Decorative artwork at the edges of the landing page. */
main { isolation: isolate; }
:where(#work, #pricing, #collaboration, #contact) {
  position: relative;
}

.section-art {
  display: block;
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: 50%;
  top: calc(var(--section-space) * -.72);
  width: min(100vw, 1680px);
  height: clamp(320px, 35vw, 540px);
  transform: translateX(-50%);
  overflow-x: clip;
  overflow-y: visible;
}

.section-art img {
  position: absolute;
  display: block;
  width: var(--size);
  max-width: none;
  height: auto;
  opacity: var(--strength, .72);
  transform: rotate(var(--tilt, 0deg));
}
.section-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wash, none);
  mask-image: linear-gradient(transparent, #000 26% 71%, transparent);
}

#pricing .section-art, #contact .section-art {
  height: calc(100% + var(--section-space) * 1.3);
}

#work .section-art {
  top: clamp(120px, 9vw, 156px);
  --wash: radial-gradient(ellipse at 0 43%, #59379124, transparent 41%),
          radial-gradient(ellipse at 98% 36%, #70913c14, transparent 40%);
}
#work .art-arc {
  --size: clamp(182px, 17.7vw, 264px); --tilt: -22deg; --strength: .76;
  left: calc(var(--size) * -.37); top: 4%;
}
#work .art-bars {
  --size: clamp(103px, 9.5vw, 148px); --tilt: 24deg; --strength: .68;
  right: 1%; top: 6%;
}
#work .art-pie {
  --size: clamp(129px, 13vw, 193px); --tilt: -18deg;
  right: calc(var(--size) * -.55); top: 47%;
}

#pricing .section-art { top: calc(var(--section-space) * -.3); }
#pricing .art-pie {
  --size: clamp(165px, 16vw, 248px); --tilt: -28deg;
  left: calc(var(--size) * -.44); top: 9%;
}
#pricing .art-arc {
  --size: clamp(114px, 11vw, 166px); --tilt: 19deg; --strength: .54;
  right: calc(var(--size) * -.57); bottom: 15%;
}

#collaboration .section-art {
  top: clamp(108px, 8vw, 130px);
  --wash: radial-gradient(ellipse at 89% 38%, #628d331c, transparent 52%);
}
#collaboration .art-bars {
  --size: clamp(106px, 11vw, 161px); --tilt: -27deg;
  left: calc(var(--size) * -.32); top: 4%;
}
#collaboration .art-wedge {
  --size: clamp(152px, 15vw, 230px); --tilt: 28deg;
  right: calc(var(--size) * -.39); top: 24%;
}

#contact .section-art {
  --wash: radial-gradient(ellipse at 42% 42%, #56338436, transparent 74%);
}
#contact .art-wedge {
  --size: clamp(150px, 15.5vw, 240px); --tilt: -15deg;
  left: calc(var(--size) * -.38); top: 8%;
}
#contact .art-bars {
  --size: clamp(86px, 8.5vw, 130px); --tilt: -29deg; --strength: .67;
  right: -.75%; top: 3%;
}
#contact .art-arc {
  --size: clamp(150px, 14vw, 216px); --tilt: 32deg;
  right: calc(var(--size) * -.44); top: 50%;
}

@media (max-width: 740px) {
  .section-art {
    top: calc(var(--section-space) * -.9);
    height: 245px;
  }
  #work .art-arc { --size: 116px; top: 1%; left: -64px; }
  #work .art-bars { --size: 85px; top: 1%; right: -34px; }
  #work .art-pie { --size: 96px; top: 74%; right: -59px; }
  #collaboration .art-bars { --size: 88px; top: 6%; left: -46px; }
  #collaboration .art-wedge { --size: 116px; top: 7%; right: -65px; }
  #pricing .section-art, #contact .section-art {
    height: calc(100% + var(--section-space));
  }
  #pricing .art-pie { --size: 122px; top: 1%; left: -46px; }
  #pricing .art-arc { --size: 104px; bottom: 12%; right: -69px; }
  #contact .art-wedge { --size: 107px; top: 2%; left: -53px; }
  #contact .art-bars { --size: 76px; top: 11%; right: -46px; }
  #contact .art-arc { --size: 116px; top: 72%; right: -64px; }
}

@media (forced-colors: active), print {
  .section-art { display: none; }
}
