/* Desktop wheel navigation is handled by homepage-scroll.js. */
.site-main--home {
	/* Unlike overflow: hidden, clip does not create a nested scroll container. */
	overflow: clip;
}

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
	html:has(.site-main--home) {
		scroll-snap-type: none;
		scroll-padding-top: 92px;
	}

	html:has(body.admin-bar .site-main--home) {
		scroll-padding-top: 124px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
	html:has(.site-main--home) {
		scroll-snap-type: y proximity;
		scroll-padding-top: 92px;
	}

	/* Leave the densest tablet sections free of snap destinations. */
	.site-main--home > :is(.hero, .categories-section, .industries-section, .process-section, .faq-section, .cta-section) {
		scroll-snap-align: start;
	}

	html:has(body.admin-bar .site-main--home) {
		scroll-padding-top: 124px;
	}
}

@media (min-width: 768px) and (max-width: 980px) and (prefers-reduced-motion: no-preference) {
	html:has(.site-main--home) { scroll-padding-top: 78px; }
	html:has(body.admin-bar .site-main--home) { scroll-padding-top: 110px; }
}

@media (min-width: 768px) and (max-width: 782px) and (prefers-reduced-motion: no-preference) {
	html:has(body.admin-bar .site-main--home) { scroll-padding-top: 124px; }
}
