:root { --homepage-image-width: 100vw; }
/* Three static homepage showcases share one desktop presentation. */
.work .homepage-showcase {
  width: var(--homepage-image-width);
  max-width: none;
  margin: 0;
  margin-inline: calc((100% - var(--homepage-image-width)) / 2);
}
.homepage-showcase-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0c;
}
.homepage-showcase-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--image-y, 50%);
  transform: none;
  filter: none;
}
.homepage-showcase-caption {
  padding-inline: var(--gutter);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .homepage-showcase-frame { aspect-ratio: var(--source-ratio); }
  .homepage-showcase-frame img { object-fit: contain; object-position: center; }
}

/* Match the approved showcase bounds without cropping the contained hero. */
@media (min-width: 901px) {
  .hero {
    min-height: max(100svh, 67.910448vw);
  }
  .hero-image.static-wrenbury,
  .hero-shade {
    width: var(--homepage-image-width);
    margin-inline: auto;
  }
}

/* A local top shade improves navigation contrast without changing the hero. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.22) 45%, transparent 100%);
}
@media (min-width: 901px) {
  .hero::after { width: var(--homepage-image-width); margin-inline: auto; }
  .clients-heading h2 {
    max-width: 100%;
    font-size: clamp(2.8rem, 5vw, 5.6rem);
    white-space: nowrap;
  }
}

/* Native category links keep scrolling and keyboard navigation familiar. */
a.homepage-showcase-frame {
  display: block;
  color: inherit;
}
a.homepage-showcase-frame:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}
/* A wider text column keeps the exhibition description balanced on desktop. */
@media (min-width: 901px) {
  .portfolio-section[aria-labelledby="exhibition-title"] > .section-heading {
    grid-template-columns: max-content minmax(0, 36rem);
  }
  .portfolio-section[aria-labelledby="exhibition-title"] > .section-heading > p:last-child {
    max-width: 36rem;
    text-wrap: balance;
  }
}

/* Keep the small portfolio label with the title on phone-sized screens. */
@media (max-width: 640px) {
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy h1 { order: 0; margin-top: 0; }
  .hero-copy .eyebrow {
    order: 1;
    margin-top: 1.35rem;
    color: var(--paper);
  }
  .hero-copy .hero-disciplines { order: 2; margin-top: 1.5rem; }
}
