/* Shared centered composition on phones and desktop screens. */
body main, body main *, body .site-footer, body .site-footer *,
body .mobile-nav, body .mobile-nav *, body .privacy-dialog, body .privacy-dialog * { text-align: center !important; }
body main :is(h1,h2,h3,h4,p,blockquote,figure,ul,ol), body main img { margin-inline: auto !important; }
body main img { display: block; max-width: 100%; }
body main :is(.about-feature,.editorial-feature,.role-hero,.contact-card,.home-perspective,.home-story,.role-row,.function-row,.reference-row,.timeline-item) {
 grid-template-columns: minmax(0,1fr) !important; justify-items: center; gap: 1.5rem;
}
body main :is(.about-copy,.editorial-copy,.role-hero-copy,.hero-copy,.home-story-copy,.timeline-copy,.role-context,.contact-copy) { width: 100%; max-width: 800px; margin-inline: auto !important; }
body main :is(.about-portrait,.role-portrait,.home-story-portrait) { width: min(100%,620px); justify-self: center; }
body main :is(.hero-actions,.role-pills,.social-list,.reference-actions,.showcase-links,.section-heading,.home-cta) { justify-content: center; }
body main .section-heading, body main .home-cta { flex-wrap: wrap; }
body main .enquiry-form .button { justify-self: center; }
/* Keep every main CTA button on the page's center axis. */
body main .home-cta { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
body main .home-cta > div { width: 100%; margin-inline: auto; }
body main .home-cta > .button { align-self: center; margin-inline: auto; }
body main ul, body main ol { list-style-position: inside; padding-inline: 0; }
body .site-footer :is(.footer-social,.footer-navigation,.footer-top) { justify-content: center; }
body .mobile-nav .nav-group > summary { justify-content: center; gap: .75rem; }
body .privacy-dialog .privacy-option { justify-content: center; }
body .privacy-dialog :is(input[type=checkbox],input[type=radio]) { flex-shrink: 0; }
body main .contact-direct { margin-top: 1rem; overflow-wrap: anywhere; }

/* Center the complete homepage composition on the site axis at every width. */
body.page-home main .home-hero {
 display: grid;
 grid-template-columns: minmax(0,1fr);
 justify-items: center;
}
body.page-home main .home-hero > .hero-copy {
 display: flex;
 flex-direction: column;
 align-items: center;
 width: min(100%,900px);
 max-width: 900px;
 margin-inline: auto !important;
}
body.page-home main .home-hero #hero-title,
body.page-home main .home-hero .eyebrow,
body.page-home main .home-hero .hero-intro { width: 100%; text-align: center !important; }
body.page-home main .home-hero .hero-intro { max-width: 65ch; line-height: 1.8; }
body.page-home main .home-hero .hero-visual { width: min(100%,560px); margin: 1.5rem auto; }
body.page-home main .home-hero .hero-portrait,
body.page-home main .home-hero .hero-portrait img { width: 100%; margin-inline: auto !important; }
body.page-home main .home-hero .hero-portrait figcaption { justify-content: center; }
body.page-home main .home-hero .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; width: 100%; }

/* Keep homepage sections and their content centered, with a calm vertical list. */
body.page-home main .home-projects .section-heading,
body.page-home main .home-expertise .section-heading,
body.page-home main .home-showcase .showcase-copy,
body.page-home main .home-media .press-grid,
body.page-home main .home-cta > div,
body.page-home main .closing-quote figure { margin-inline: auto !important; }
body.page-home main .home-projects .section-heading { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
body.page-home main .section-heading { flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; text-align: center; }
body.page-home main .section-heading > div { width: 100%; max-width: 900px; margin-inline: auto; }
body.page-home main .home-projects .project-grid,
body.page-home main .home-media .press-grid { display: flex; flex-direction: column; align-items: center; width: min(100%,850px); margin-inline: auto; }
body.page-home main .home-projects .project-grid article,
body.page-home main .home-media .press-grid > * { width: 100%; margin: 0; text-align: center !important; }
body.page-home main .home-media .press-grid > * { padding: 2rem 1rem; border: 0; border-bottom: 1px solid var(--line); }
body.page-home main .home-project-button { display: flex; justify-content: center; }
body.page-home main .home-showcase .showcase-copy { width: min(100%,700px); }

/* Shared vertical rhythm for directory rows, text blocks and grouped actions. */
body main :is(.function-row,.role-row,.reference-row,.timeline-item) { padding-block: 2.35rem; }
body main :is(.page-intro-inner,.section-heading,.role-grid,.project-grid,.press-grid,.function-list,.reference-list,.timeline,.nav-cards,.faq-list,.collaboration-process) { margin-inline: auto; }
body main :is(.hero-actions,.showcase-links,.reference-actions,.role-pills,.role-related,.social-list,.footer-social) { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.2rem; }
body main :is(.section-heading,.page-intro-inner) > :is(.eyebrow,h1,h2,p) { margin-inline: auto !important; }
body main :is(.function-row,.role-row,.reference-row,.timeline-item) > * { max-width: 100%; }
body main :is(.contact-card,.contact-form-section,.faq-list,.collaboration-process) { width: min(100%,850px); }

/* Keep the homepage collaboration copy and its CTA in one centered vertical stack on desktop. */
@media (min-width: 721px) {
  body.page-home main .personal-cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
  }
  body.page-home main .personal-cta > div {
    width: 100%;
    max-width: 900px;
  }
  body.page-home main .personal-cta > .button {
    align-self: center;
    margin: 0;
  }
}
