/* V18 — calmer editorial type scale across the site.
   Keeps the hero name dominant while reducing oversized section headings. */

/* Homepage chapter headings */
.route-home .profile-heading h2,
.route-home .expertise-intro h2,
.route-home .recognition h2,
.route-home .training-story h2,
.route-home .ctc-heading h2,
.route-home .final-cta h2{
  font-size: clamp(2.75rem, 3.7vw, 4.05rem) !important;
  line-height: 1 !important;
}

/* The CTC statement can remain marginally more expressive, but no longer oversized. */
.route-home .ctc-heading h2{
  font-size: clamp(2.85rem, 3.8vw, 4.2rem) !important;
  line-height: .98 !important;
}

/* Publications heading already has its own compact layout; scale it down in proportion. */
.route-home .author-heading h2{
  font-size: clamp(2.55rem, 3.45vw, 3.75rem) !important;
  line-height: 1 !important;
}

/* Secondary-page hero headings: slightly calmer, without changing the main Kamran Iqbal hero. */
.route-training .portfolio-title h1,
.route-contact .contact-title h1{
  font-size: clamp(4.15rem, 6.2vw, 6.45rem) !important;
  line-height: .84 !important;
}

/* Supporting headings on inner pages */
.route-training .empty-copy h2,
.route-contact .form-intro h2{
  font-size: clamp(2.65rem, 3.8vw, 4.05rem) !important;
  line-height: 1 !important;
}

@media (max-width: 1024px){
  .route-home .profile-heading h2,
  .route-home .expertise-intro h2,
  .route-home .recognition h2,
  .route-home .training-story h2,
  .route-home .ctc-heading h2,
  .route-home .final-cta h2{
    font-size: clamp(2.6rem, 5.1vw, 3.65rem) !important;
  }
  .route-home .author-heading h2{
    font-size: clamp(2.45rem, 4.8vw, 3.45rem) !important;
  }
}

@media (max-width: 860px){
  .route-home .profile-heading h2,
  .route-home .expertise-intro h2,
  .route-home .recognition h2,
  .route-home .training-story h2,
  .route-home .ctc-heading h2,
  .route-home .final-cta h2{
    font-size: clamp(2.4rem, 9.6vw, 3.25rem) !important;
    line-height: 1.04 !important;
  }

  .route-home .author-heading h2{
    font-size: clamp(2.35rem, 9vw, 3.15rem) !important;
  }

  .route-training .portfolio-title h1,
  .route-contact .contact-title h1{
    font-size: clamp(3.65rem, 15vw, 5.15rem) !important;
  }

  .route-training .empty-copy h2,
  .route-contact .form-intro h2{
    font-size: clamp(2.35rem, 9.5vw, 3.25rem) !important;
  }
}

@media (max-width: 520px){
  .route-home .profile-heading h2,
  .route-home .expertise-intro h2,
  .route-home .recognition h2,
  .route-home .training-story h2,
  .route-home .ctc-heading h2,
  .route-home .final-cta h2{
    font-size: clamp(2.25rem, 10.5vw, 2.95rem) !important;
  }

  .route-home .author-heading h2{
    font-size: clamp(2.2rem, 10vw, 2.85rem) !important;
  }
}
