/* Bounded reading and media widths for large desktop displays. */
:root {
  --content-rail: clamp(1450px, 86vw, 1780px);
  --gutter: clamp(22px, calc(min(100vw, var(--content-rail)) * .054), 88px);
}

.shell { width: min(100%, var(--content-rail)); }

:where(.section-heading, .about-layout, .enquiry-layout, .client-feature-layout,
  .client-hero-inner, .service-stage) > * { min-width: 0; }

.home-page .about-image { aspect-ratio: 3 / 2; }

@media (min-width: 671px) {
  .home-page .about-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

@media (min-width: 1000px) {
  .package-copy { container-type: inline-size; }
  .package-copy h3 { font-size: clamp(34px, 13cqi, 68px); }
}

/* Prevent landscape source material from becoming an ultrawide center crop. */
@media (min-width: 2200px) and (min-aspect-ratio: 2 / 1) {
  .hero { --hero-media-width: min(100%, 2240px); }
  .hero-art, .hero-shading {
    inset-inline: calc((100% - var(--hero-media-width)) / 2);
  }
  .hero-art {
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 86%, transparent);
  }
  .hero-photo { inset: -12% -3% -10% 28%; }

  .home-footer .footer-portrait {
    inset-inline: calc(50% - 400px) calc(50% - 960px);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 87%, transparent);
  }

  .feature-sticky {
    --showcase-width: min(100%, 1380px);
    --showcase-height: 100%;
  }
  .motion-depth .feature-sticky {
    --showcase-width: min(100%, calc(min(100svh, 1280px) * 1.82));
    --showcase-height: min(100%, 1280px);
  }
  .feature-mask {
    width: var(--showcase-width);
    height: var(--showcase-height);
  }
  .feature-caption {
    inset-inline: calc((100% - var(--showcase-width)) / 2 + var(--gutter));
  }
  .motion-depth .feature-caption {
    bottom: max(54px, calc((100svh - 1280px) / 2 + 54px));
  }
  .motion-depth .feature-scene:not(.scene-flodent) > img {
    inset: -56px 0;
    height: calc(100% + 112px);
  }
  .motion-depth .feature-scene > img {
    object-position: 50% 32%;
    transform: translate3d(0, calc(var(--scene-y, 0px) * .54), 0)
      scale(calc(1 + (var(--scene-zoom, 1) - 1) * .3));
  }
}
