/* Final cross-page refinement layer: one type scale and one mobile navigation behaviour. */
:root {
  --type-display-refined: clamp(3.4rem, 5.6vw, 6.2rem);
  --type-section-refined: clamp(2.55rem, 4vw, 4.5rem);
  --type-feature-refined: clamp(2.1rem, 3.2vw, 3.55rem);
  --type-subhead-refined: clamp(1.45rem, 2vw, 2.35rem);
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 6.4vw, 7.4rem);
  line-height: .84;
}

.home-intro h2,
.home-services-head h2,
.home-about h2,
.home-journal h2,
.home-next-head h2,
.site-faq__head h2,
.home-contact h2,
.reframe-intro h2,
.journey-intro h2 {
  max-width: 16ch;
  font-size: var(--type-section-refined);
  line-height: .95;
}

.phase-copy h3 { font-size: clamp(2.75rem, 5vw, 5.25rem); line-height: .93; }
.journey-step h3 { font-size: clamp(2.35rem, 3.8vw, 4.15rem); line-height: .96; }
.home-service-row h3,
.home-articles h3,
.home-next-list h3 { font-size: var(--type-subhead-refined); line-height: 1.04; }

.page-hero h1,
.page-hero-copy h1,
.clients-page .clients-hero h1,
.site-page .contact-hero h1,
.site-page .journal-hero h1,
.legal-page h1 {
  max-width: 12ch;
  font-size: var(--type-display-refined);
  line-height: .92;
}

.page-statement h2,
.page-section h2,
.site-page .journal-feed-head h2,
.client-directory-head h2,
.client-rail-header h2,
.page-cta h2,
.conversion h2 {
  max-width: 17ch;
  font-size: var(--type-section-refined);
  line-height: .97;
}

.site-page .split-copy h2,
.site-page .image-led-break h2,
.site-page .about-principles h2,
.site-page .contact-direct h2,
.site-page .contact-form-wrap h2 {
  max-width: 16ch;
  font-size: var(--type-feature-refined);
  line-height: 1;
}

.site-page .editorial-list h3,
.site-page .article-teaser h3,
.site-page .article-link h3,
.site-page .service-row h3 {
  max-width: 28ch;
  font-size: var(--type-subhead-refined);
  line-height: 1.06;
}

.button,
.btn,
.text-link,
.inline-link,
.header-action,
.site-cta,
.shared-header-action,
.phase-cta,
.journey-cta {
  line-height: 1.25;
  text-wrap: balance;
}

@media (max-width: 760px) {
  body { font-size: 1rem; }

  .site-header,
  .site-bar,
  .shared-header {
    grid-template-columns: 3.35rem minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .site-header > .primary-nav,
  .site-bar > .site-nav,
  .shared-header > .shared-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: .12rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-inline: .1rem !important;
    scroll-behavior: smooth;
    scroll-padding-inline: .4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .site-header > .primary-nav::-webkit-scrollbar,
  .site-bar > .site-nav::-webkit-scrollbar,
  .shared-header > .shared-nav::-webkit-scrollbar { display: none; }

  .site-header > .primary-nav a,
  .site-bar > .site-nav a,
  .shared-header > .shared-nav a {
    flex: 0 0 4.65rem !important;
    min-width: 4.65rem !important;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
  }

  .hero h1 {
    max-width: 9.5ch;
    font-size: clamp(3.15rem, 14.5vw, 4.1rem);
    line-height: .88;
  }

  .hero-intro { gap: 1.25rem; }
  .hero-intro > p { font-size: 1rem; line-height: 1.58; }

  .home-intro h2,
  .home-services-head h2,
  .home-about h2,
  .home-journal h2,
  .home-next-head h2,
  .site-faq__head h2,
  .home-contact h2,
  .reframe-intro h2,
  .journey-intro h2 {
    max-width: 15ch;
    font-size: clamp(2.3rem, 10vw, 3.05rem);
    line-height: .98;
  }

  .phase-copy h3,
  .journey-step h3 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 9.6vw, 3.05rem);
    line-height: .98;
    overflow-wrap: normal;
  }

  .page-hero h1,
  .page-hero-copy h1,
  .clients-page .clients-hero h1,
  .site-page .contact-hero h1,
  .site-page .journal-hero h1,
  .legal-page h1 {
    max-width: 11ch;
    font-size: clamp(2.85rem, 12.5vw, 3.75rem);
    line-height: .96;
  }

  .page-statement h2,
  .page-section h2,
  .site-page .journal-feed-head h2,
  .client-directory-head h2,
  .client-rail-header h2,
  .page-cta h2,
  .conversion h2,
  .site-page .split-copy h2,
  .site-page .image-led-break h2,
  .site-page .about-principles h2,
  .site-page .contact-direct h2,
  .site-page .contact-form-wrap h2 {
    max-width: 16ch;
    font-size: clamp(2.15rem, 9.2vw, 2.9rem);
    line-height: 1;
  }

  .button,
  .btn {
    min-height: 3.25rem;
    padding-inline: 1.15rem;
    font-size: .75rem;
  }
}

@media (max-width: 360px) {
  .site-header > .primary-nav a,
  .site-bar > .site-nav a,
  .shared-header > .shared-nav a {
    flex-basis: 4.4rem !important;
    min-width: 4.4rem !important;
  }

  .hero h1 { font-size: clamp(2.9rem, 14.2vw, 3.55rem); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header > .primary-nav,
  .site-bar > .site-nav,
  .shared-header > .shared-nav { scroll-behavior: auto; }
}

/* Homepage phone composition: preserve the signature motion while keeping the
   full conversion path above the persistent navigation dock. */
@media (max-width: 760px) {
  .home-preview .hero h1 { width: 100%; max-width: none; }
  .home-preview .hero-intro { width: 100%; }
}

@media (max-width: 760px) and (max-height: 740px) {
  .home-preview .hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11.4vw, 3rem);
    line-height: .86;
  }
  .home-preview .hero-intro { gap: .55rem; }
  .home-preview .hero-intro > p { font-size: .78rem; line-height: 1.42; }
}

@media (max-width: 360px) and (max-height: 620px) {
  .home-preview .hero h1 { font-size: clamp(2.1rem, 10.8vw, 2.55rem); }
  .home-preview .hero-intro > p { font-size: .73rem; line-height: 1.35; }
}
