/* The full cutaways face the section copy on large screens and follow it on phones. */
.page-services .r14-services-hero {
  --assembly: url("./assets/assemblies/illustration-education-1440.webp");
}
.page-index .v4-safety-home {
  --assembly: url("./assets/assemblies/illustration-civic-1440.webp");
}
.portfolio-tech { --assembly: url("./assets/assemblies/illustration-data-center-1440.webp"); }
.v7-safety-principle { --assembly: url("./assets/assemblies/illustration-healthcare-1440.webp"); }
.page-markets .v7-market-hero { --assembly: url("./assets/assemblies/illustration-aviation-1440.webp"); }
.v13-contact-hero { --assembly: url("./assets/assemblies/illustration-education-1440.webp"); }
body[class] :is(.r14-services-hero, .v7-market-hero, .v13-contact-hero, .v7-safety-principle, .portfolio-tech),
body.page-index .v4-safety-home {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  background: #1b1d20;
  color: #fff;
  padding: clamp(54px, 6.5vw, 105px) 49% clamp(54px, 6.5vw, 105px) 6%;
}
body[class] :is(.r14-services-hero, .v7-market-hero, .v13-contact-hero, .v7-safety-principle, .portfolio-tech)::before,
body.page-index .v4-safety-home::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0 6vw 0 auto;
  width: 43%;
  height: auto;
  margin: 0;
  background: var(--assembly) right center / contain no-repeat;
  opacity: 1;
  filter: none;
  mask-image: linear-gradient(to right, transparent, #000 12%);
  pointer-events: none;
  z-index: -1;
}
.page-services .r14-services-hero .r14-hero-copy,.v13-contact-hero .v13-contact-wrap {
  width: auto;
  max-width: none;
  padding: 0;
}
.page-index .v4-safety-home > div:first-child { margin-bottom: 32px; }
.page-index .v4-safety-home > div:first-child p { margin: 6px 0; }
body[class] :is(.portfolio-tech,.v7-safety-principle) :is(h2,h3,p,a) { color: #fff; }
body[class] :is(.v7-safety-principle,.portfolio-tech) :is(.r14-kicker,.v7-eyebrow) { color: #ffae83; }
body .v7-safety-principle h2 { margin-block: 18px 24px; }
body .v7-safety-principle p:last-child { max-width: 52ch; }
body[class] .r14-technical p:not(.r14-kicker) { color: #f1efe9; }
body[class] .r14-technical .r14-tags span { color: #fff; border-color: #74767a; }
.page-index .v4-markets-home::before, .r14-overview::before, .v13-contact-office::before,
.v7-safety-rhythm::before, .v7-careers-body::before, .v11-privacy-hero::before {
  content: none;
}
@media (max-width: 820px) {
  .page-services .r14-services-hero {
    --assembly: url("./assets/assemblies/illustration-education-720.webp");
  }
  .page-index .v4-safety-home { --assembly: url("./assets/assemblies/illustration-civic-720.webp"); }
  .portfolio-tech { --assembly: url("./assets/assemblies/illustration-data-center-720.webp"); }
  .v7-safety-principle { --assembly: url("./assets/assemblies/illustration-healthcare-720.webp"); }
  .page-markets .v7-market-hero { --assembly: url("./assets/assemblies/illustration-aviation-720.webp"); }
  .v13-contact-hero { --assembly: url("./assets/assemblies/illustration-education-720.webp"); }
  body[class] :is(.r14-services-hero, .v7-market-hero, .v13-contact-hero, .v7-safety-principle, .portfolio-tech),
  body.page-index .v4-safety-home {
    padding: 46px 6% 0;
  }
  body[class] :is(.r14-services-hero, .v7-market-hero, .v13-contact-hero, .v7-safety-principle, .portfolio-tech)::before,
  body.page-index .v4-safety-home::before { display: none; }
  body[class] :is(.r14-services-hero, .v7-market-hero, .v13-contact-hero, .v7-safety-principle, .portfolio-tech)::after,
  body.page-index .v4-safety-home::after {
    content: "";
    display: block;
    position: static;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 350px;
    margin: 22px auto 0;
    background: var(--assembly) center / contain no-repeat;
    border: 0;
    opacity: 1;
    pointer-events: none;
  }
}
body.page-index .v4-safety-home div > p.safety-label { color: #ffae83; }
@media (max-width: 820px) {
  body.page-index .v4-safety-home::after { height: auto; }
}

body.page-index .v4-scope-home {
  display: grid;
  grid-template-columns: minmax(110px, .45fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(56px, 7vw, 100px) 6%;
  background: #f2eee6;
  color: #222729;
}
body.page-index .v4-scope-home > div { max-width: 780px; }
body.page-index .v4-scope-home :is(h2,p,a) { color: #222729; }
body.page-index .v4-scope-home .v4-index { color: #95421d; }
body.page-index .v4-scope-home .under-link { display: inline-block; margin-right: 18px; }
body.page-index .v4-scope-home::before,
body.page-index .v4-scope-home::after { content: none; }
body.page-services .r14-technical {
  display: block;
  padding: clamp(50px, 6vw, 88px) 6%;
  background: #242a2d;
}
body.page-services .r14-technical > div { max-width: 800px; }
@media (max-width: 820px) {
  body.page-index .v4-scope-home { grid-template-columns: 1fr; gap: 16px; }
  body.page-index .v4-scope-home > .v4-index { grid-column: auto; margin: 0; }
}
