/* Decorative layers are confined to content sections, never the hero or header. */
.content-pattern-section {
  position: relative;
  isolation: isolate;
}
.content-pattern-section > :not(.content-pattern) {
  position: relative;
  z-index: 1;
}
.content-pattern {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgb(255 75 35 / .10) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 75 35 / .10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent);
  background-position: 0 var(--pattern-shift, 0px);
}
.content-pattern-section:nth-of-type(even) > .content-pattern {
  left: 0;
  right: auto;
  top: 0;
  background-size: 32px 32px;
}
.content-pattern-section > .content-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 380px 320px at 38% 240px, rgb(255 110 45 / .34), rgb(255 135 65 / .16) 42%, transparent 78%),
    radial-gradient(ellipse 260px 240px at 85% 520px, rgb(255 95 35 / .22), transparent 78%);
}
.content-pattern-section:nth-of-type(even) > .content-pattern::after {
  background:
    radial-gradient(ellipse 380px 320px at 62% 240px, rgb(255 110 45 / .34), rgb(255 135 65 / .16) 42%, transparent 78%),
    radial-gradient(ellipse 260px 240px at 15% 520px, rgb(255 95 35 / .22), transparent 78%);
}
.content-parallax-frame {
  overflow: hidden;
  border-radius: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .content-parallax-image {
    scale: 1.32;
    translate: 0 var(--image-shift, 0px);
  }
}
@media (max-width: 760px) {
  .content-pattern { opacity: .85; }
  .content-parallax-image { scale: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  .content-pattern { background-position: 0 0; }
  .content-parallax-image { scale: none; translate: none; }
}
