/*
 * Rodrigo Native Heading Scroll Fill
 *
 * Animation mechanics only. This file deliberately does not set the Heading's
 * colour, font, size, weight, line-height, letter spacing, alignment, spacing,
 * width or responsive design. Every generated token inherits Elementor's native
 * Heading and Atomic class styling.
 */

:is(.scroll-fill, .rodrigo-scroll-fill-enabled) {
	--rsf-dim-opacity: 0.2;
	--rsf-start: 85;
	--rsf-end: 25;
	--rsf-softness: 1.2;
	--rsf-smoothing: 0.28;
}

:is(.scroll-fill, .rodrigo-scroll-fill-enabled) .rsf-token,
:is(.scroll-fill, .rodrigo-scroll-fill-enabled).rsf-heading .rsf-token {
	display: inline;
	opacity: var(--rsf-token-opacity, var(--rsf-dim-opacity));
	will-change: opacity;
}

:is(.scroll-fill, .rodrigo-scroll-fill-enabled).rsf-static .rsf-token,
:is(.scroll-fill, .rodrigo-scroll-fill-enabled):is(.scroll-fill-mobile-off, .rodrigo-scroll-fill-mobile-off) .rsf-token {
	--rsf-token-opacity: 1;
}

@media (min-width: 768px) {
	:is(.scroll-fill, .rodrigo-scroll-fill-enabled):is(.scroll-fill-mobile-off, .rodrigo-scroll-fill-mobile-off) .rsf-token {
		--rsf-token-opacity: var(--rsf-runtime-opacity, var(--rsf-dim-opacity));
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.scroll-fill, .rodrigo-scroll-fill-enabled) .rsf-token {
		opacity: 1 !important;
		will-change: auto !important;
	}
}
