/* The cut faces sit outside the reading column. Each SVG is a single unanimated margin image. */
.pi-intro,
.pi-assembly,
.pi-formats,
.pi-packs,
.pd-decor-surface {
  position: relative;
  isolation: isolate;
}

:is(.pi-intro, .pd-description-decor)::after,
:is(.pi-assembly, .pd-exploration)::after,
:is(.pi-formats, .pd-related-decor)::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(140px, 18vw, 330px);
  aspect-ratio: 320 / 450;
  background: url("./art/acrylic-edge.svg") left center / contain no-repeat;
  pointer-events: none;
}
:is(.pi-intro, .pd-description-decor)::after { left: 0; top: 8%; }
/* Let the white matte surrounding the lineup blend into its paper backdrop. */
.pi-intro .pi-lineup { mix-blend-mode: multiply; }
:is(.pi-assembly, .pd-exploration)::after {
  right: 0;
  bottom: 13%;
  width: clamp(165px, 22.5vw, 420px);
  aspect-ratio: 300 / 420;
  background-image: url("./art/acrylic-light.svg");
}
:is(.pi-formats, .pd-related-decor)::after { left: 0; top: 46%; width: clamp(115px, 13vw, 250px); }

/* Only the painted plane is angled. The diagrams, controls and rules keep their full bounds. */
:is(.pi-intro, .pd-description-decor)::before,
:is(.pi-assembly, .pd-exploration)::before,
.pi-packs::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
:is(.pi-intro, .pd-description-decor)::before {
  inset: 0 0 auto auto;
  width: min(24%, 470px);
  height: 41%;
  background: linear-gradient(130deg, #fbfafd, #efebf6);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
:is(.pi-assembly, .pd-exploration)::before {
  background: linear-gradient(105deg, #f3f0f8 0%, #fcfbfd 36%, #faf8fc 72%, #ece8f4 100%);
  clip-path: polygon(0 clamp(15px, 2.8vw, 55px), 100% 0, 100% calc(100% - clamp(15px, 2.8vw, 55px)), 0 100%);
}
.pi-packs::before {
  background: linear-gradient(110deg, #eeecf4, #faf9fc 48%, #f0edf6);
  clip-path: polygon(0 0, 100% clamp(13px, 2.1vw, 42px), 100% 100%, 0 calc(100% - clamp(13px, 2.1vw, 42px)));
}

@media (max-width: 760px) {
  :is(.pi-intro, .pd-description-decor)::after,
  :is(.pi-assembly, .pd-exploration)::after,
  :is(.pi-formats, .pd-related-decor)::after {
    width: clamp(62px, 16vw, 94px);
  }
  :is(.pi-intro, .pd-description-decor)::before { height: 26%; }
  :is(.pi-intro, .pd-description-decor)::after { top: 0; }
  :is(.pi-assembly, .pd-exploration)::after { bottom: 9%; width: clamp(68px, 18vw, 100px); }
  :is(.pi-formats, .pd-related-decor)::after { top: auto; bottom: 2%; }
}
@media (forced-colors: active), print {
  :is(.pi-intro, .pd-description-decor)::before,
  :is(.pi-intro, .pd-description-decor)::after,
  :is(.pi-assembly, .pd-exploration)::before,
  :is(.pi-assembly, .pd-exploration)::after,
  :is(.pi-formats, .pd-related-decor)::after,
  .pi-packs::before { display: none; }
}
