/* MICHAELOV content grid: the selected-work edges are the site-wide source of truth.
   See CONTENT-GRID.md. Load last; keep full-bleed heroes and next-project scenes intact. */
:root {
  --content-max: 1480px;
  --content-gutter: clamp(24px, 4.5vw, 84px);
  --gutter: var(--content-gutter);
}
@media (max-width: 760px) {
  :root { --content-gutter: 24px; }
}

/* Padded outer containers: the same 1480px content cap plus one gutter. */
.content-grid,
.work-section,
.archive-invitation,
.page-shell.archive-shell,
.story-page,
.project-story,
.project-body,
.project-materials,
.project-supplement,
.project-contact-slot {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--content-max) + var(--content-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--content-gutter);
}

/* Sections whose own border/background belongs inside the grid. */
.home-continuation,
.service-opening,
.service-siblings,
.site-footer.brand-footer {
  box-sizing: border-box;
  width: calc(100% - var(--content-gutter) * 2);
  max-width: var(--content-max);
  margin-inline: auto;
}

/* Keep all text and controls on the same rails, even over full-bleed media. */
.site-head,
.project-hero,
.next-project-link,
.next-project-runway,
.reel-section {
  padding-inline: max(var(--content-gutter), calc((100% - var(--content-max)) / 2));
}
.previous-project-link {
  inset-inline-start: max(var(--content-gutter), calc((100% - var(--content-max)) / 2));
}
