/* Consult Spaces V46 — unified premium heading system */
:root{
  --cs-heading-size:clamp(40px,3.6vw,54px);
  --cs-heading-line:1.16;
  --cs-heading-track:-0.045em;
}

/* Major page and section headings only — card titles and article subheads stay compact. */
:is(
  .home3-section-head h2,
  .home3-center-head h2,
  .home3-section > .home3-container > h2,
  .home3-cta h2,
  .why-modern-head h2,
  .section-head h2,
  .center-head h2,
  .compact-head h2,
  .page-hero h1,
  .inner-hero h1,
  .hero-copy h1,
  .listing-hero h1,
  .developer-hero h1,
  .blog-hero h1,
  .service-hero h1,
  .contact-hero h1,
  .project-hero h1,
  .premium-cta h2,
  .bottom-cta-inner h2,
  .faq-copy h2,
  .contact-copy h2,
  .about-copy h2,
  .article-related > h2,
  .related-posts > h2,
  main > section > .container > h2,
  main > section > .container > .section-head h2
){
  font-size:var(--cs-heading-size)!important;
  line-height:var(--cs-heading-line)!important;
  letter-spacing:var(--cs-heading-track)!important;
  font-weight:800!important;
  margin-top:0;
  padding-bottom:.12em!important;
  overflow:visible!important;
  text-wrap:balance;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}

/* Preserve the premium sitewide gradient while protecting descenders from clipping. */
:is(
  .home3-section-head h2,
  .home3-center-head h2,
  .home3-section > .home3-container > h2,
  .home3-cta h2,
  .why-modern-head h2,
  .section-head h2,
  .center-head h2,
  .compact-head h2,
  .page-hero h1,
  .inner-hero h1,
  .listing-hero h1,
  .developer-hero h1,
  .blog-hero h1,
  .service-hero h1,
  .contact-hero h1,
  .premium-cta h2,
  .faq-copy h2,
  .contact-copy h2,
  .about-copy h2,
  .article-related > h2,
  .related-posts > h2
){
  background:linear-gradient(100deg,#064762 0%,#087b8b 48%,#12a45f 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:#064762;
}

/* Never clip headings inside reveal/animation wrappers. */
:is(.section-reveal,.reveal,.home3-section-head,.home3-center-head,.section-head,.center-head,.compact-head){
  overflow:visible!important;
}

@media (max-width:900px){
  :root{--cs-heading-size:clamp(36px,7vw,48px);--cs-heading-line:1.18;}
}
@media (max-width:600px){
  :root{--cs-heading-size:clamp(32px,9.5vw,42px);--cs-heading-line:1.2;--cs-heading-track:-0.035em;}
  :is(
    .home3-section-head h2,.home3-center-head h2,.section-head h2,.center-head h2,
    .compact-head h2,.page-hero h1,.inner-hero h1,.listing-hero h1,.developer-hero h1,
    .blog-hero h1,.service-hero h1,.contact-hero h1,.premium-cta h2,.faq-copy h2,
    .contact-copy h2,.about-copy h2
  ){padding-bottom:.16em!important;}
}
