/* Internal-page typography layer. Load after site.css; the homepage does not use it. */
:root {
  --type-display: clamp(3.5rem, 6vw + .5rem, 7.5rem);
  --type-section: clamp(2.7rem, 4.25vw + .25rem, 5.25rem);
  --type-feature: clamp(2.25rem, 3.25vw + .25rem, 4.25rem);
  --type-subhead: clamp(1.55rem, 2vw + .2rem, 2.75rem);
  --type-body: 1rem;
  --type-leading-body: 1.65;
  --type-leading-dark: 1.72;
  --type-tracking-display: -.052em;
}

body {
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

p,
li,
dd {
  text-wrap: pretty;
}

.page-hero h1,
.page-hero-copy h1,
.contact-hero h1,
.journal-hero h1,
.clients-hero h1 {
  max-width: 12ch;
  font-size: var(--type-display);
  font-weight: 500;
  letter-spacing: var(--type-tracking-display);
  line-height: .89;
}

.page-statement h2,
.page-section h2,
.journal-feed-head h2,
.client-directory-head h2,
.client-rail-header h2 {
  max-width: 17ch;
  font-size: var(--type-section);
  letter-spacing: -.047em;
  line-height: .94;
}

.split-copy h2,
.image-led-break h2,
.about-principles h2,
.contact-direct h2,
.contact-form-wrap h2 {
  max-width: 15ch;
  font-size: var(--type-feature);
  letter-spacing: -.043em;
  line-height: .97;
}

.page-cta h2,
.conversion h2 {
  max-width: 13ch;
  font-size: var(--type-section);
  letter-spacing: -.048em;
  line-height: .92;
}

.editorial-list h3,
.article-teaser h3,
.article-link h3,
.service-row h3 {
  max-width: 28ch;
  font-size: var(--type-subhead);
  letter-spacing: -.035em;
  line-height: 1.04;
}

.page-hero p,
.page-hero-copy > p,
.split-copy > p,
.image-led-break > div > p,
.body-copy,
.page-cta > p,
.conversion p {
  max-width: 64ch;
  font-size: var(--type-body);
  line-height: var(--type-leading-body);
}

.page-section.navy p,
.page-section.blue p,
.image-led-break p,
.conversion p,
.clients-hero p,
.client-rail-section p,
.site-footer-main p,
.shared-footer p {
  line-height: var(--type-leading-dark);
}

.kicker,
.section-label {
  font-size: clamp(.82rem, .72rem + .16vw, .94rem);
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.35;
}

.split-copy h2,
.image-led-break h2 {
  margin-block: .9rem 1.5rem;
}

.page-statement h2,
.page-section h2,
.page-cta h2 {
  margin-block: 1rem 0;
}

.site-footer-main h2,
.shared-footer h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 3vw + .2rem, 4rem);
  letter-spacing: -.042em;
  line-height: .98;
}

.clients-page .client-directory-head {
  grid-template-columns: minmax(9rem, .2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
}

.clients-page .client-directory-head h2 {
  max-width: 16ch;
  font-size: clamp(2.75rem, 4vw, 4.75rem);
  line-height: .96;
}

.clients-page .client-logo-card-symbol {
  grid-template-rows: auto 1fr;
}

@media (max-width: 980px) {
  :root {
    --type-display: clamp(3.35rem, 9vw, 5.5rem);
    --type-section: clamp(2.65rem, 6.5vw, 4.25rem);
    --type-feature: clamp(2.35rem, 5.7vw, 3.75rem);
    --type-subhead: clamp(1.5rem, 3.2vw, 2.35rem);
  }

  .page-hero h1,
  .page-hero-copy h1,
  .contact-hero h1,
  .journal-hero h1,
  .clients-hero h1 {
    max-width: 13ch;
    line-height: .91;
  }
}

@media (max-width: 760px) {
  .clients-page .client-directory-head {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  :root {
    --type-display: clamp(3rem, 13vw, 4.25rem);
    --type-section: clamp(2.4rem, 10.5vw, 3.5rem);
    --type-feature: clamp(2.2rem, 9.5vw, 3.15rem);
    --type-subhead: clamp(1.45rem, 6.8vw, 2rem);
    --type-leading-body: 1.62;
  }

  .page-hero h1,
  .page-hero-copy h1,
  .contact-hero h1,
  .journal-hero h1,
  .clients-hero h1 {
    max-width: 11ch;
    letter-spacing: -.045em;
    line-height: .93;
  }

  .page-statement h2,
  .page-section h2,
  .journal-feed-head h2,
  .client-directory-head h2,
  .client-rail-header h2,
  .split-copy h2,
  .image-led-break h2,
  .page-cta h2,
  .conversion h2 {
    max-width: 16ch;
  }

  .site-footer-main h2,
  .shared-footer h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1;
  }
}

/* Accessibility typography pass: keep functional metadata legible at every breakpoint. */
.page-hero-media figcaption,
.editorial-list li > span,
.service-row > span,
.article-link > span:first-child,
.article-teaser > div,
.article-teaser > a,
.article-status,
.journal-index,
.contact-direct dt,
.contact-form label > span,
.form-note,
.form-status,
.footer-links strong,
.footer-bottom,
.shared-footer,
.client-logo-card h3,
.btn,
.button,
.inline-link {
  font-size: max(.75rem, 12px);
}

/* Cobalt is a light-surface accent; use the light-blue companion on navy. */
.image-led-break .section-label {
  color: #b8ceff;
}

@media (max-width: 620px) {
  .page-hero-media figcaption,
  .editorial-list li > span,
  .service-row > span,
  .article-link > span:first-child,
  .article-teaser > div,
  .article-teaser > a,
  .article-status,
  .journal-index,
  .contact-direct dt,
  .contact-form label > span,
  .form-note,
  .form-status,
  .footer-links strong,
  .footer-bottom,
  .shared-footer,
  .client-logo-card h3,
  .btn,
  .button,
  .inline-link {
    font-size: .75rem;
  }
}
