/* Decorative layers stay behind content and never intercept links or controls.
   Desktop has room for the larger motifs; phones retain the simpler surfaces. */
@media (min-width: 960px) {
  :is(.hero-with-people, .product-hero, .audience-hero, .page-hero,
      .product-showcase, .product-warm, .feature-section, .story-section,
      .process-section, .closing, .audience-next) {
    position: relative;
    isolation: isolate;
    overflow: clip;
  }

  :is(.hero-with-people, .product-hero, .audience-hero, .page-hero,
      .product-showcase, .product-warm, .feature-section, .story-section,
      .process-section, .closing, .audience-next)::before,
  :is(.hero-with-people, .product-hero, .audience-hero, .page-hero,
      .product-showcase, .product-warm, .closing, .audience-next)::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  /* An architectural outline echoes the curved corner of the photo frames. */
  :is(.hero-with-people, .product-hero, .audience-hero) {
    background-image:
      radial-gradient(ellipse at 92% 35%, #9e765023, transparent 48%),
      radial-gradient(ellipse at 50% 100%, #5b85921a, transparent 55%);
  }

  :is(.hero-with-people, .product-hero, .audience-hero)::before {
    width: 740px;
    height: 820px;
    top: -210px;
    right: max(-220px, calc((100vw - 1480px) / 2));
    background: url("/decorations/contours.svg?v=519038d9cf5665f0") center / contain no-repeat;
    transform: rotate(-25deg);
    opacity: .28;
    mask-image: linear-gradient(#000 45%, transparent 95%);
  }

  :is(.hero-with-people, .product-hero, .audience-hero)::after {
    width: 160px;
    height: 120px;
    top: 380px;
    right: max(24px, calc((100vw - 1260px) / 2));
    background: radial-gradient(circle, #b9cbb360 1px, transparent 1.5px) 0 0 / 12px 12px;
    mask-image: linear-gradient(120deg, transparent, #000);
  }

  :is(.hero-photo, .product-hero-photo, .audience-hero .practice-photo) {
    box-shadow: 0 24px 56px -28px #0009;
  }

  /* Centered introductions get quiet edge details, clear of the reading column. */
  .page-hero {
    background: radial-gradient(ellipse at 50% 0, #70929216, transparent 65%);
  }
  .page-hero::before {
    inset: -220px auto auto -250px;
    width: 540px;
    height: 600px;
    background: url("/decorations/contours.svg?v=519038d9cf5665f0") center / contain no-repeat;
    transform: rotate(40deg);
    opacity: .22;
  }
  .page-hero::after {
    right: 4%;
    bottom: 48px;
    width: 120px;
    height: 144px;
    background: radial-gradient(circle, #b9cbb34d 1px, transparent 1.5px) 0 0 / 12px 12px;
    mask-image: linear-gradient(130deg, transparent, #000);
  }

  /* Preview sections use a broad circular field and a small technical texture. */
  .product-showcase::before {
    width: 820px;
    height: 820px;
    left: -360px;
    bottom: -440px;
    border: 1px solid #80988b40;
    border-radius: 50%;
    background: #a7bdb018;
    box-shadow: 0 0 0 48px #a7bdb012, 0 0 0 96px #a7bdb00c;
  }
  .product-showcase::after {
    top: 56px;
    right: max(48px, calc((100vw - 1160px) / 2));
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #6a857d70 1px, transparent 1.5px) 0 0 / 16px 16px;
    mask-image: linear-gradient(145deg, transparent 5%, #000);
  }

  /* Warm editorial sections use a soft clay plane instead of another green wash. */
  .product-warm::before {
    top: -80px;
    bottom: -180px;
    right: -100px;
    width: 54%;
    border-radius: 300px 0 0 100px;
    background: #c8aa8624;
    transform: rotate(12deg);
  }
  .product-warm::after {
    left: -80px;
    bottom: -80px;
    width: 380px;
    height: 300px;
    border: 1px solid #a48c6c38;
    border-radius: 50%;
    box-shadow: 0 0 0 28px #a48c6c0a, 0 0 0 56px #a48c6c08;
  }

  /* Linework sits in the margins of text-led sections. */
  .feature-section::before {
    inset: 0;
    background:
      linear-gradient(90deg, #91b6b512 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(#91b6b512 1px, transparent 1px) 0 0 / 64px 64px;
    mask-image: linear-gradient(115deg, transparent 40%, #000);
  }
  .process-section::before {
    left: -300px;
    top: 40px;
    width: 500px;
    height: 560px;
    background: url("/decorations/contours.svg?v=519038d9cf5665f0") center / contain no-repeat;
    transform: rotate(32deg);
    opacity: .17;
    mask-image: linear-gradient(90deg, #000, transparent);
  }
  .story-section::before {
    right: -180px;
    top: -240px;
    width: 640px;
    height: 720px;
    background: url("/decorations/contours.svg?v=519038d9cf5665f0") center / contain no-repeat;
    transform: rotate(70deg);
    opacity: .18;
  }

  /* Closing actions have their own inset surface to mark the end of the page. */
  .closing {
    margin-block: 32px 72px;
    padding: 80px 80px;
    border: 1px solid #456058;
    border-radius: 20px 96px 20px 20px;
    background: linear-gradient(115deg, #1b342e, #172a2d);
  }
  .closing h2 { max-width: 820px; margin-inline: auto; }
  :is(.closing, .audience-next)::before {
    right: -180px;
    top: -100px;
    width: 540px;
    height: 600px;
    background: url("/decorations/contours.svg?v=519038d9cf5665f0") center / contain no-repeat;
    transform: rotate(-35deg);
    opacity: .24;
    mask-image: linear-gradient(90deg, transparent, #000);
  }
  :is(.closing, .audience-next)::after {
    left: 24px;
    bottom: 24px;
    width: 160px;
    height: 120px;
    background: radial-gradient(circle, #b9cbb34d 1px, transparent 1.5px) 0 0 / 12px 12px;
    mask-image: linear-gradient(45deg, #000, transparent);
  }
}
