.hero.customer-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(50vw, 820px));
  min-height: 0;
  background: linear-gradient(90deg, var(--paper) 50%, #e9dfd4 50%);
}

.customer-hero .hero-copy {
  padding-block: clamp(52px, 8vw, 128px);
  background: var(--paper);
}

.customer-hero .hero-copy h1 {
  font-size: clamp(48px, 6.25vw, 110px);
}

.customer-hero-subtitle {
  margin: 12px 0 0;
  color: var(--brown);
  font-size: clamp(16px, 1.5vw, 20px);
}

.customer-hero .hero-media {
  min-height: 0;
  background: #e9dfd4;
}

.customer-hero .hero-media img {
  width: 100%;
  height: auto;
}

.customer-welcome,
.customer-projects {
  background: var(--paper);
}

.customer-about {
  background: var(--sand);
}

.customer-heading {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 6vw, 90px);
  max-width: 1030px;
}

.customer-heading .display-heading {
  font-size: clamp(40px, 5.3vw, 88px);
  line-height: 1.04;
  text-wrap: balance;
}

.customer-heading em {
  color: #745a49;
}

.customer-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(28px, 7vw, 110px);
}

.customer-split + .customer-split {
  margin-top: clamp(48px, 8vw, 120px);
}

.welcome-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-areas:
    "heading artwork"
    "lead artwork"
    "details artwork";
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 20px clamp(28px, 7vw, 110px);
  margin-bottom: clamp(48px, 8vw, 120px);
}

.welcome-opening .customer-heading {
  grid-area: heading;
  margin-bottom: clamp(7px, 1vw, 20px);
}

.welcome-lead { grid-area: lead; }
.welcome-details { grid-area: details; }

.welcome-opening > .welcome-artwork {
  grid-area: artwork;
  justify-self: end;
}

.customer-split-reverse > .customer-photo {
  grid-column: 1;
  grid-row: 1;
}

.customer-split-reverse > .customer-prose {
  grid-column: 2;
  grid-row: 1;
}

.customer-prose {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  max-width: 64ch;
}

.customer-prose p,
.customer-prose ul {
  margin: 0 0 1em;
}

.customer-prose ul {
  padding-inline-start: 1.25em;
}

.customer-prose li + li {
  margin-top: .3em;
}

.customer-prose > :last-child {
  margin-bottom: 0;
}

.customer-prose .customer-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.45vw, 39px);
  line-height: 1.23;
  text-wrap: pretty;
}

.customer-photo {
  overflow: hidden;
  margin: 0;
  background: var(--sand-deep);
}

.customer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-artwork {
  width: min(100%, 540px);
}

.welcome-artwork img,
.portrait-photo img,
.visit-photo img { height: auto; }
.portrait-photo { max-width: 495px; width: 100%; }
.visit-photo { width: min(100%, 520px); justify-self: center; }

.customer-invitation {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 84px);
  padding-top: clamp(20px, 3vw, 36px);
}

.customer-invitation p {
  margin: 10px 0 0;
  color: var(--brown);
}

.customer-examples,
.customer-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.customer-examples {
  margin: clamp(50px, 8vw, 120px) 0;
  /* Match the images' width-to-height ratios for an even row without cropping. */
  grid-template-columns: minmax(0, .563125fr) minmax(0, .758333fr) minmax(0, .800285fr);
}

.customer-examples > figure,
.customer-gallery > figure {
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.customer-examples > figure {
  grid-template-rows: subgrid;
  grid-row: span 2;
}

.customer-examples figcaption {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}

.customer-examples .customer-photo {
  align-self: start;
}

.customer-examples .customer-photo img { height: auto; }

.customer-visit {
  align-items: start;
}

.customer-services {
  background: var(--cream);
}

.customer-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
}

.customer-offer {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
}

.customer-offer-main {
  background: #e8ddcf;
}

.customer-offer > .customer-photo {
  aspect-ratio: 4 / 5;
}

.customer-offer > .customer-photo img {
  object-fit: contain;
}

.customer-offer-heading,
.customer-offer-copy {
  padding: clamp(22px, 4vw, 54px);
}

.customer-offer-heading {
  align-content: end;
}

.customer-offer-copy { max-width: none; }

.customer-offer-heading h3,
.customer-more h3 {
  font: 400 clamp(29px, 3.25vw, 53px) / 1.08 var(--serif);
  margin: 0 0 16px;
}

.customer-offer-heading .section-label {
  color: var(--brown);
  margin-bottom: 10px;
}

.customer-offer-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  align-items: baseline;
  color: var(--brown);
  margin: 0;
}

.customer-offer-meta strong {
  color: var(--ink);
  font: 400 clamp(30px, 3vw, 44px) / 1.1 var(--serif);
}

.customer-prose .customer-list-label {
  font-weight: 700;
  margin-bottom: .35em;
}

.customer-prose .customer-offer-goal {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.customer-more {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px clamp(36px, 8vw, 110px);
  margin-top: clamp(40px, 7vw, 90px);
}

.customer-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.customer-gallery .customer-photo { aspect-ratio: 4 / 5; }
.customer-gallery .customer-photo img { object-position: center 62%; }
.customer-gallery .project-artwork {
  display: grid;
  justify-items: center;
  background: var(--sand);
}
.customer-gallery .project-artwork img { object-fit: contain; }

@media (max-width: 800px) {
  .customer-hero .hero-copy { min-height: 0; padding-block: 48px; }
  .customer-hero .hero-media { height: auto; max-height: none; }
  .customer-hero .hero-media img { width: min(100%, 550px); margin-inline: auto; }
  .customer-split, .customer-more { grid-template-columns: minmax(0, 1fr); }
  .welcome-opening {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "lead" "artwork" "details";
    grid-template-rows: auto;
  }
  .welcome-opening > .welcome-artwork { justify-self: start; }
  .customer-split-reverse > .customer-photo,
  .customer-split-reverse > .customer-prose { grid-area: auto; }
  .customer-split-reverse > .portrait-photo { grid-row: 1; }
  .customer-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-gallery, .customer-examples { gap: 20px; }
}

@media (max-width: 600px) {
  .customer-heading .display-heading { font-size: clamp(32px, 8.6vw, 46px); }
  .customer-hero .hero-copy h1 { font-size: clamp(40px, 11vw, 64px); }
  .customer-offers, .customer-examples, .customer-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .customer-examples > figure, .customer-offer { grid-template-rows: auto; grid-row: auto; }
  .customer-gallery .customer-photo:not(.project-artwork) { aspect-ratio: 5 / 4; }
  .customer-invitation .text-link { letter-spacing: .08em; }
}
