/* ============================================================
   VETOSEC section headers — consolidation + reveal.

   One typographic scale for every section header (homepage
   sections and the global CTA band): same size clamp, line
   height, tracking and rhythm, so all headers sit at equal
   height regardless of which fragment they come from.

   Reveal: html.sr-on (set by an inline head script only when
   the user allows motion) arms the hidden state; section-
   headers.js adds .sr-in per group when it enters the
   viewport. Without JS, with reduced motion and in perf-lite
   mode html never gets .sr-on — everything stays visible.
   ============================================================ */

/* --- One equal header scale ------------------------------------- */

body.home .svc-headline,
body.home .home-digital-header h2,
body.home .home-entry-products-intro h2,
body.home .home-why-grid h2,
body.home .help-title,
body.home .home-emergency-entry h2,
body.home .home-branches-title,
body.home .selfcheck-copy h2,
body.home .home-seo-title,
.gcta .gcta-text h2 {
	font-size: clamp(1.9rem, 3.8vw, 3.3rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-weight: 700;
	margin-bottom: 0.8rem;
}

/* unified kicker rhythm (colors stay per-section, incl. accents) */
body.home .svc-eyebrow,
body.home .home-digital-kicker,
body.home .home-entry-products-kicker,
body.home .home-why-grid > div > p:first-child,
body.home .help-eyebrow,
body.home .home-emergency-entry p:first-child,
body.home .home-branches-eyebrow,
body.home .selfcheck-eyebrow,
body.home .home-seo-eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	margin-bottom: 0.75rem;
}

/* unified subline scale */
body.home .svc-subline,
body.home .home-digital-header p,
body.home .home-entry-products-lead,
body.home .help-subline,
body.home .home-branches-subtitle,
body.home .selfcheck-lead,
body.home .home-seo-intro {
	font-size: 1.03rem;
	line-height: 1.6;
}

/* mobile keeps one scale too — overrides the old per-fragment clamps */
@media (max-width: 760px) {
	body.home .svc-headline,
	body.home .home-digital-header h2,
	body.home .home-entry-products-intro h2,
	body.home .home-why-grid h2,
	body.home .help-title,
	body.home .home-emergency-entry h2,
	body.home .home-branches-title,
	body.home .selfcheck-copy h2,
	body.home .home-seo-title,
	.gcta .gcta-text h2 {
		font-size: clamp(1.7rem, 7.2vw, 2.4rem);
	}
}

/* --- Reveal state (armed only under html.sr-on) ------------------- */

html.sr-on .sr-group > * {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 520ms cubic-bezier(0.2, 0, 0.2, 1),
		transform 520ms cubic-bezier(0.2, 0, 0.2, 1);
	transition-delay: calc(var(--sr-i, 0) * 85ms);
	will-change: opacity, transform;
}

html.sr-on .sr-group.sr-in > * {
	opacity: 1;
	transform: none;
}

/* GSAP-driven headline: section-headers.js splits the h2 into masked
   words and reveals them with a stagger, so it opts out of the group
   fade entirely. */
html.sr-on .sr-group > .sr-split {
	opacity: 1;
	transform: none;
	transition: none;
}

/* hard safety nets: any reduced-motion context shows everything */
@media (prefers-reduced-motion: reduce) {
	html.sr-on .sr-group > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

html.a11y-reduce-motion .sr-group > *,
html.perf-lite .sr-group > * {
	opacity: 1;
	transform: none;
	transition: none;
}
