/* Short homepage impressions and the full ensemble photograph. */
.homepage .expertise-section .expertise-intro {
  grid-template-columns: minmax(0, 1fr);
  padding-block: 22px 28px;
}
.homepage .expertise-section .expertise-intro .section-heading {
  max-width: none;
  font-size: clamp(44px, min(5.9vw, 8.5svh), 88px);
  line-height: 1.12;
  text-wrap: balance;
}
.homepage .studio-section {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'topline' 'image' 'copy' 'outro';
  gap: clamp(18px, 2.5svh, 28px);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--gutter);
  padding-block: var(--section-space, 24px);
  background: var(--paper);
  opacity: 1;
}
.homepage .studio-section .studio-topline { grid-area: topline; width: 100%; padding-bottom: 0; }
.homepage .studio-section .studio-image { grid-area: image; position: relative; margin: 0; height: auto; aspect-ratio: auto; overflow: visible; }
.homepage .studio-section .studio-image img { display: block; position: static; width: 100%; height: auto; object-fit: contain; }
.homepage .studio-section .studio-image figcaption { margin-top: 12px; font-size: 10px; line-height: 1.6; color: #595752; }
.homepage .studio-section .studio-image-title {
  position: absolute;
  z-index: 1;
  top: clamp(20px, 3vw, 44px);
  left: clamp(20px, 3vw, 44px);
  max-width: calc(100% - clamp(40px, 6vw, 88px));
  margin: 0;
  color: #fff;
  font-size: var(--type-size-chapter-title);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.065em;
  text-shadow: 0 2px 22px #0008;
}
.homepage .studio-section .studio-image-title .coral { color: var(--coral); opacity: 1; animation: none; }
.homepage .studio-section .studio-copy { grid-area: copy; width: 100%; }
.homepage .studio-section .studio-copy > p { width: 100%; max-width: none; font-size: 15px; line-height: 1.7; }
.homepage .studio-section .studio-outro { grid-area: outro; width: 100%; margin-top: 0; }
.homepage .studio-section .studio-copy,
.homepage .studio-section .studio-image-title,
.homepage .studio-section .studio-image-title span { opacity: 1; }
.homepage .work-outro-link {
  margin: 0;
  gap: 8px;
  border-bottom: 0;
  transition: none;
}
.homepage .work-outro-link:hover { gap: 8px; }
.homepage .work-outro-link .arrow { width: 16px; height: 16px; color: var(--coral); transition: none; }
.project-card .project-caption h3 { color: var(--coral); }
.project-card .project-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
@media (min-width: 768px) {
  .homepage .studio-section .studio-image { width: 100%; }
}
/* Medium-width chapters remain stacked and use their height to keep the full
   photograph, copy and invitation in one view. */
@media (min-width: 768px) and (min-height: 900px) {
  .homepage .approach-track .approach-panel { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3vw; }
  .homepage .studio-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'topline' 'image' 'copy' 'outro';
    justify-items: center;
    gap: 20px;
    --studio-non-media-space: clamp(340px, 34svh, 390px);
  }
  .homepage .studio-section .studio-image {
    width: min(
      100%,
      calc(
        (100svh - var(--header-clearance) - var(--section-space) - var(--studio-non-media-space))
        * var(--agency-image-ratio, 1.777778)
      )
    );
  }
  .homepage .studio-section .studio-copy { width: 100%; }
  .homepage .studio-section .studio-copy > p { max-width: none; }
}
/* Wide chapters pair the photograph with the introduction. The media column
   takes the larger share while its viewport cap prevents short screens from
   pushing the caption or invitation below the fold. */
@media (min-width: 1280px) {
  .homepage .studio-section {
    grid-template-columns: minmax(0, 2fr) minmax(390px, .95fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'topline topline'
      'image copy'
      'image outro';
    column-gap: clamp(36px, 3.25vw, 60px);
    row-gap: clamp(18px, 2.2svh, 24px);
    justify-items: stretch;
  }
  .homepage .studio-section .studio-image {
    align-self: center;
    justify-self: start;
    width: min(
      100%,
      calc(
        (100svh - var(--header-clearance) - var(--section-space) - 110px)
        * var(--agency-image-ratio, 1.777778)
      )
    );
  }
  .homepage .studio-section .studio-copy {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  .homepage .studio-section .studio-copy > p {
    line-height: 1.14;
    letter-spacing: -.04em;
    transform: translateY(-14px);
  }
  .homepage .studio-section .studio-copy__sentence + .studio-copy__sentence {
    margin-top: .72em;
  }
  .homepage .studio-section .studio-outro {
    align-self: end;
  }
}
@media (min-width: 1100px) and (max-height: 899px) {
  .homepage .studio-section .studio-copy > p { font-size: 14px; }
}
@media (max-width: 767px) {
  .homepage .expertise-section .expertise-intro { padding-block: 12px 18px; }
  .homepage .expertise-section .expertise-intro .section-heading { font-size: clamp(38px, 10vw, 54px); text-align: left; }
  .homepage .studio-section { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
  .homepage .studio-section .studio-image { width: 100%; height: auto; }
  .homepage .studio-section .studio-image figcaption { font-size: 9px; margin-top: 8px; }
  .homepage .studio-section .studio-image-title { top: 18px; left: 18px; max-width: calc(100% - 36px); }
  .homepage .studio-section .studio-copy { width: 100%; }
  .homepage .studio-section .studio-copy > p { font-size: 14px; line-height: 1.7; }
  .homepage .studio-section .studio-outro { margin-top: 0; }
}
