/* Shared full-section decoration. Content layouts and their widths stay independent. */
body:is(.home-page, .inner-page-site) #main > section {
  --section-start: #fff;
  --section-end: #f8fcff;
  --section-left: #16aada0b;
  --section-outline: #13a9d91c;
  --section-right: #29b8e80d;
  --section-edge: #26b6e812;
  background-color: var(--section-start);
  background-image:
    radial-gradient(ellipse at -6% 78%, transparent 55%, var(--section-outline) 55.15% 55.45%, transparent 55.6%),
    linear-gradient(135deg, transparent 38%, var(--section-left) 38.1% 45%, transparent 45.1%),
    linear-gradient(135deg, transparent 34%, var(--section-right) 34.1% 53%, transparent 53.1% 68%, var(--section-edge) 68.1% 84%, transparent 84.1%),
    linear-gradient(112deg, var(--section-start), var(--section-end));
  background-size: clamp(180px, 26vw, 430px) 100%, 31% 100%, 58% 100%, 100% 100%;
  background-position: left bottom, left center, right center, center;
  background-repeat: no-repeat;
}

/* Preserve the alternating white and ice-blue sections. */
body.home-page #main > :is(.services, .process, .testimonials),
body.inner-page-site #main > :is(.studio-principles, .webstudio-value, .webstudio-work, .identity-intro, .identity-system, .identity-process, .pulse-benefits, .pulse-formats, .pulse-process, .discovery-foundations, .discovery-local, .discovery-process, .amplify-foundations, .amplify-journey, .amplify-process) {
  --section-start: #f3f8fc;
  --section-end: #edf7fd;
}

body.inner-page-site #main > :is(.work-web-section, .work-branding-section, .work-seo-section) {
  --section-end: #eff9ff;
}

/* Cyan accents stay subtle on navy banners and process panels. */
body.home-page #main > .contact,
body.inner-page-site #main > :is(.service-cta, .studio-cta, .webstudio-process, .webstudio-cta) {
  --section-start: #10234d;
  --section-end: #1a3974;
  --section-left: #7ce4ef08;
  --section-outline: #7ce4ef26;
  --section-right: #7ce4ef06;
  --section-edge: #7ce4ef0b;
}

/* Portfolio artwork follows the whole section, including both rows of cards. */
body.work-page-site .work-page > section > :is(.brand-gallery-art, .work-showcase-art, .work-seo-art) {
  top: 0;
  bottom: 0;
  height: 100%;
  opacity: .65;
}

body.work-page-site .brand-gallery-square--one { top: 8%; }
body.work-page-site .brand-gallery-square--two { top: 25%; }
body.work-page-site .brand-gallery-square--three { top: 73%; }
body.work-page-site .work-showcase-square--one { top: 8%; }
body.work-page-site .work-showcase-square--two { top: 27%; }
body.work-page-site .work-showcase-square--three { top: 54%; }
body.work-page-site .work-showcase-square--four { top: 81%; }
body.work-page-site .work-seo-square--one { top: 10%; }
body.work-page-site .work-seo-square--two { top: 64%; }

@media (max-width: 760px) {
  body:is(.home-page, .inner-page-site) #main > section {
    --section-left: #16aada07;
    --section-outline: #13a9d912;
    --section-right: #29b8e809;
    --section-edge: #26b6e80c;
    background-size: 150px 100%, 26% 100%, 100% 100%, 100% 100%;
  }

  body.home-page #main > .contact,
  body.inner-page-site #main > :is(.service-cta, .studio-cta, .webstudio-process, .webstudio-cta) {
    --section-left: #7ce4ef06;
    --section-outline: #7ce4ef1c;
    --section-right: #7ce4ef04;
    --section-edge: #7ce4ef08;
  }

  body.work-page-site .work-page > section > :is(.brand-gallery-art, .work-showcase-art, .work-seo-art) {
    opacity: .3;
  }
}

@media print {
  body:is(.home-page, .inner-page-site) #main > section { background-image: none; }
}
