/* Shared opening for About Us, Expertise and Projects: full-screen photography,
   a left-aligned headline and the page introduction on the right. */
main.page-shell > .page-splash {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: var(--header-clearance) var(--gutter) clamp(24px, 4svh, 46px);
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: #fff;
}

main.page-shell > .page-splash .page-media {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

main.page-shell > .page-splash .page-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--splash-image-position, center);
}

main.page-shell > .page-splash .page-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgb(0 0 0 / .3), transparent 35%, rgb(0 0 0 / .3) 60%, rgb(0 0 0 / .85));
}

/* The shared scroll timeline moves the copy upward and gently fades the photo.
   Natural scrolling and reduced-motion layouts keep the image fully visible. */
html[data-scroll-timeline] main.page-shell > .page-splash .page-media {
  opacity: var(--splash-media-opacity, 1);
  will-change: opacity;
}

/* Prevent a first-paint flash before the photo-first arrival is staged.
   Reuse the existing delayed fallback if browser modules cannot start. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .page-splash[data-intro-pending] :is(.page-media > img, .page-splash__statement, .page-splash__body) {
    visibility: hidden;
    animation: page-intro-pending-release 0s 4s forwards;
  }
}

.page-splash__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: clamp(32px, 5vw, 90px);
  width: 100%;
}

main.page-shell > .page-splash .page-splash__statement {
  width: min(14ch, 100%);
  max-width: none;
  margin: 0;
  color: #fff;
  text-align: left;
  text-wrap: balance;
  font-size: var(--type-size-chapter-title);
  font-weight: var(--type-weight-display, 500);
  line-height: 1.06;
  letter-spacing: -.065em;
  text-shadow: 0 2px 16px #0005;
}

main.page-shell > .page-splash .page-splash__statement .coral {
  color: var(--coral);
}

main.page-shell > .page-splash .page-splash__body {
  justify-self: end;
  width: 100%;
  max-width: 38ch;
  margin: 0;
  color: #fff;
  text-align: left;
  font-size: var(--type-size-body-large);
  line-height: 1.55;
  text-shadow: 0 2px 16px #0008;
}

.page-splash__body .sentence-text__sentence { text-wrap: pretty; }

/* Keep the banner carriers central as the behind-the-scenes image narrows. */
.page-splash--expertise { --splash-image-position: 56% center; }

@media (max-width: 767px) {
  .page-splash__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  main.page-shell > .page-splash .page-splash__body { justify-self: start; max-width: 40ch; }
  .page-splash--expertise { --splash-image-position: 70% center; }
}

@media (max-height: 600px), (prefers-reduced-motion: reduce) {
  main.page-shell > .page-splash { min-height: max(650px, 100svh); }
}
