/* Current Home refinement only. Historical layouts and shared overlays are untouched. */
.homepage-hero {
  grid-template-rows: 1fr auto;
  box-sizing: border-box;
  padding-top: calc(var(--brand-header-initial-height) + 1rem);
}
.homepage-hero__content {
  grid-row: 1;
  align-self: end;
  min-width: 0;
  padding: 1.5rem clamp(var(--space-5), 7vw, var(--space-8)) 2rem;
  overflow-wrap: anywhere;
}
.homepage-hero__content h1 { white-space: pre-line; }
.homepage-hero__subtitle p:last-child { margin-bottom: 0; }
.homepage-hero .rotation-controls { grid-row: 2; }
.homepage-hero__media[data-rotation-stage] { position: absolute; }

.homepage-story__art {
  --homepage-story-secondary-offset: clamp(4rem, 12vw, 10rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 2rem);
  width: calc(100% - 2.5rem);
}
.homepage-story__figure--primary { width: 100%; max-width: 17rem; justify-self: end; }
.homepage-story__figure--secondary { width: 100%; max-width: 14rem; justify-self: start; }
.homepage-story__portrait--primary, .homepage-story__portrait--secondary { aspect-ratio: 2 / 3; }
/* Enlarge the existing artwork 23%; reserve its outward inset in the art rail. */
.homepage-story__ornament { width: clamp(3.075rem, 11.07vw, 6.765rem); }
.homepage-story__ornament--primary { top: -1.625rem; left: -1.75rem; }
.homepage-story__ornament--secondary { bottom: -1.625rem; left: -1.75rem; }

/* Row-major, uncropped Selected Works. Wider column counts stay in v3. */
.homepage-works__grid { align-items: start; }
.homepage-work { aspect-ratio: auto; overflow: visible; }
.homepage-work__picture, .homepage-work__image { height: auto; }
.homepage-work__image { object-fit: contain; transition: none; }
.homepage-work:hover .homepage-work__image { transform: none; }
@media (max-width: 37.5rem) {
  .homepage-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.homepage-story__copy { min-width: 0; overflow-wrap: anywhere; }
.homepage-story__copy h2 {
  font-family: var(--font-script);
  color: var(--color-ivory);
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
  line-height: 1.5;
  text-wrap: pretty;
  margin-bottom: var(--space-4);
}
.homepage-story__text p:last-child, .homepage-contact__text p:last-child { margin-bottom: 0; }
.homepage-contact h2 { color: var(--color-ivory); }
.homepage-contact__text { color: var(--color-ivory); }
.homepage-contact__inner { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 47.99rem) {
  .homepage-story__inner { gap: 2.5rem; padding-block: 3rem; }
  .homepage-story__art { margin-inline: auto; }
  .homepage-story__copy h2 { font-size: clamp(1.25rem, 5vw, 2rem); }
  .homepage-contact__inner > .brand-button { justify-self: center; width: min(14rem, 100%); }
}

.homepage-brand { --home-section-title-size: clamp(2rem, 3vw, 2.5rem); --home-section-title-leading: 1.3; }
.homepage-works h2 { color: var(--color-ivory); font-size: var(--home-section-title-size); line-height: var(--home-section-title-leading); }
.homepage-contact { min-height: clamp(36rem, 85svh, 60rem); }
@media (min-width: 48rem) {
  .homepage-contact { min-height: max(44rem, 90svh); }
  .homepage-contact__inner { padding-block: 4rem max(clamp(2rem, 4vw, 3.5rem), env(safe-area-inset-bottom)); }
}

.homepage-works { padding-block: clamp(3rem, 5vw, 4.5rem); }
