/* Homepage photography spans the scene; copy and controls sit above it. */
@media (min-height: 601px) and (prefers-reduced-motion: no-preference) {
  html.homepage-scroll .homepage .home-expertise__stage {
    padding: 0;
    display: block;
    height: 100svh;
    overflow: clip;
    color: #fff;
  }
  html.homepage-scroll .homepage .home-expertise__viewport,
  html.homepage-scroll .homepage .home-expertise__strip { position: absolute; inset: 0; width: 100%; height: 100%; }
  html.homepage-scroll .homepage .home-expertise__slide { position: relative; height: 100%; padding: 0; isolation: isolate; }
  html.homepage-scroll .homepage .home-expertise__slide figure { position: absolute; inset: 0; height: 100%; width: 100%; margin: 0; z-index: -1; }
  html.homepage-scroll .homepage .home-expertise__slide img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
  html.homepage-scroll .homepage .home-expertise__slide figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .27), transparent 45%, rgb(0 0 0 / .45)); pointer-events: none; }
  html.homepage-scroll .homepage .home-expertise__topline { position: absolute; top: var(--header-clearance); left: var(--gutter); right: var(--gutter); z-index: 2; color: #fff; }
  html.homepage-scroll .homepage .home-expertise__footer { position: absolute; bottom: var(--section-space); left: var(--gutter); right: var(--gutter); z-index: 2; color: #fff; }
  html.homepage-scroll .homepage .home-expertise .text-link { color: #fff; }
  html.homepage-scroll .homepage .home-expertise__navigation button { color: var(--coral); }
}
.homepage > .studio-section.container {
  position: relative;
  display: block;
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  margin: 0;
  color: #fff;
  isolation: isolate;
}
.homepage .studio-section .studio-image {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  aspect-ratio: auto; overflow: hidden; z-index: -1;
}
.homepage .studio-section .studio-image img { width: 100%; height: 100%; object-fit: cover; }
.homepage .studio-section .studio-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .3), transparent 40%, rgb(0 0 0 / .7)); pointer-events: none; }
.homepage .studio-section .studio-image-title { top: calc(var(--header-clearance) + 60px); left: var(--gutter); right: var(--gutter); z-index: 1; max-width: 18ch; text-shadow: 0 2px 16px #0005; }
.homepage .studio-section .studio-image figcaption { position: absolute; bottom: 16px; left: var(--gutter); color: #fff; z-index: 1; }
@media (min-width: 768px) {
  .homepage .studio-section .studio-image figcaption { bottom: calc(var(--section-space) + 15px); }
}
.homepage .studio-section .studio-topline { position: absolute; top: var(--header-clearance); left: var(--gutter); right: var(--gutter); }
.homepage .studio-section .studio-copy { position: absolute; bottom: calc(var(--section-space) + 72px); left: var(--gutter); width: min(650px, calc(100% - 2 * var(--gutter))); display: block; }
.homepage .studio-section .studio-copy > p { transform: none; text-shadow: 0 2px 16px #0006; }
.homepage .studio-section .studio-outro.hero-bottom-band { position: absolute; bottom: var(--section-space); left: var(--gutter); right: var(--gutter); width: auto; padding: 0; }
.homepage .studio-section .studio-outro .text-link { color: #fff; }
@media (max-width: 767px) {
  .homepage .studio-section .studio-copy > p { font-size: clamp(18px, 4.8vw, 24px); line-height: 1.35; }
  .homepage .studio-section .studio-copy__sentence + .studio-copy__sentence { margin-top: 12px; }
}
/* Natural-flow readers retain separate, full-viewport expertise photographs. */
@media (max-height: 600px), (prefers-reduced-motion: reduce) {
  .homepage .home-expertise__stage { padding-inline: 0; }
  .homepage .home-expertise__slide { position: relative; min-height: 100svh; padding: var(--header-clearance) var(--gutter) 80px; isolation: isolate; }
  .homepage .home-expertise__slide figure { position: absolute; inset: 0; z-index: -1; }
  .homepage .home-expertise__slide img { width: 100%; height: 100%; object-fit: cover; }
  .homepage .home-expertise__slide figcaption { position: absolute; bottom: 20px; right: var(--gutter); }
  .homepage .home-expertise__slide figcaption .text-link { color: #fff; text-shadow: 0 2px 8px #000; }
  .homepage > .studio-section.container { height: max(650px, 100svh); }
}
/* Two balanced copy blocks share the lower edge of the agency photograph. */
.homepage .studio-section .studio-copy {
  right: var(--gutter);
  width: auto;
}
.homepage .studio-section .studio-copy > p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.homepage .studio-section .studio-copy__sentence + .studio-copy__sentence {
  margin-top: 0;
  text-align: right;
}
.homepage .studio-section .studio-copy__line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .homepage .studio-section .studio-copy > p { display: block; }
  .homepage .studio-section .studio-copy > p .studio-copy__sentence { display: inline; text-align: left; }
  .homepage .studio-section .studio-copy__line { display: inline; white-space: normal; }
  .homepage .studio-section .studio-copy__line + .studio-copy__line::before { content: ' '; }
  .homepage .studio-section .studio-copy__sentence + .studio-copy__sentence::before { content: ' '; }
}
/* Agency copy and its third-line link share the expertise grid's bottom inset. */
.homepage .studio-section .studio-copy { bottom: var(--section-space); }
.homepage .studio-section .studio-copy > p { margin: 0; }
.homepage .studio-section .studio-copy .studio-copy__link {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 0; margin: 0; padding: 0; border: 0;
  color: #fff; font: inherit; letter-spacing: inherit; line-height: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.homepage .studio-section .studio-copy .studio-copy__link .arrow { width: .8em; height: .8em; color: var(--coral); flex-shrink: 0; }
@media (max-width: 900px) {
  .homepage .studio-section .studio-copy .studio-copy__link { display: flex; width: fit-content; margin-top: 12px; }
}
/* Match Selected Work's lower text edge, including its link's 12px inset. */
.homepage { --homepage-section-bottom: clamp(26px, 4svh, 48px); --homepage-copy-bottom: calc(var(--homepage-section-bottom) + 12px); }
.homepage > .selected-work { padding-bottom: var(--homepage-section-bottom); }
.homepage .studio-section .studio-copy { bottom: var(--homepage-copy-bottom); }
@media (max-width: 767px), (max-height: 800px) {
  .homepage { --homepage-section-bottom: 26px; }
}

/* Agency photography lands during the background phase before its copy enters. */
.scroll-scene-background__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scroll-scene-background__photo-scrim { position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .3), transparent 40%, rgb(0 0 0 / .7)); }
