@charset "UTF-8";

/**
 * scrolltime.css 1.2.0
 * Author: hybrid.
 *
 * CSS scroll-timeline animations for modern browsers.
 * GSAP fallback loaded via scrolltime.js for unsupported browsers.
 *
 * Browser support
 * Chrome 115+, Edge 115+, Safari 17.5+ — full (view + scroll)
 * Firefox — partial (scroll only)
 *
 * Animation range syntax
 * entry X%   — element enters viewport at X% from bottom
 * exit X%    — element exits viewport at X% from top
 * cover X%   — element covers viewport at X%
 * contain X% — viewport contains element at X%
 *
 * Classes
 * .scrolltime-revealed  — fade + slide up on scroll into view
 * .scrolltime-parallax  — parallax on img within banners
 *
 * v1.2.0 — RGAA 2.1: prefers-reduced-motion override added (see THEME
 * ANIMATIONS below). Mirrors the equivalent check added to scrolltime.js
 * v3.7.0 for the GSAP fallback path — both paths now respect it.
 */

/**
* Browser Support:
* - Chrome 115+: Full support (view + scroll)
* - Safari 17.5+: Full support (view + scroll)
* - Firefox: Partial (scroll only, view not working yet)
* - Edge 115+: Full support (view + scroll)
*
* For unsupported browsers, scrolltime.js loads GSAP fallback
*/



/* ================================================================================================== */
/* ============================================= CONFIG ============================================= */
/* ================================================================================================== */

/* ========================= HEADER REVEAL ========================= */

:root {
	--header-reveal-offset: 0px;
	--header-reveal-start: var(--content-spacing);
	--header-reveal-end: calc(var(--wrapper-fx-top-height) * 2 / 3);
}

:root:has(section.banner + header) {
	--header-reveal-offset: var(--viewport-height);
}


/* ====================================================================================================== */
/* ============================================= ANIMATIONS ============================================= */
/* ====================================================================================================== */

@property --header-after-opacity {
	syntax: '<number>';
	inherits: true;
	initial-value: 0;
}

@property --header-after-gradient {
	syntax: '<percentage>';
	inherits: true;
	initial-value: 0%;
}

@property --nav-background-opacity {
	syntax: '<number>';
	inherits: true;
	initial-value: 0;
}


/* ============================== KEYFRAMES ============================== */

@keyframes reveal {
	from {
		opacity: .25;
		transform: translateY(25%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes banner-reveal {
	from {
		transform: translateY(0%);
	}
	to {
		transform: translateY(50%);
	}
}

@keyframes scrolltime-header-reveal {
	from {
		--header-after-opacity: 0;
		--header-after-gradient: 0%;
	}
	to {
		--header-after-opacity: 1;
		--header-after-gradient: 100%;
	}
}


/* ============================== TRANSITIONS ============================== */

.scrolltime-parallax img {
	transition:
		opacity var(--duration-fast) var(--ease);
}



/* ================================================================================================= */
/* ============================================= THEME ============================================= */
/* ================================================================================================= */


/* ============================== VIEW ============================== */

/* View-based animations — requires animation-timeline: view() */

@supports (animation-timeline: view()) {

	.scrolltime-revealed {
		animation: reveal ease-in-out both;
		animation-range: cover -25% cover 25%;
		animation-timeline: view(block);
	}
}


/* ============================== SCROLL ============================== */

/* Scroll-based animations — requires animation-timeline: scroll() */

@supports (animation-timeline: scroll(root block)) {

	.scrolltime-parallax img {
		animation: banner-reveal linear both;
		animation-range: 0vh 100vh;
		animation-timeline: scroll(root block);
	}

	:root,
	header::after {
		animation: scrolltime-header-reveal linear both;
		animation-range: calc(var(--header-reveal-offset) + var(--header-reveal-start)) calc(var(--header-reveal-offset) + var(--header-reveal-end));
		animation-timeline: scroll(root block);
	}

}


/* ============================== ACCESSIBILITY ============================== */

/* RGAA 2.1 — reduced motion overrides both the native (@supports) path
   above and the GSAP fallback (scrolltime.js checks the same media query
   and skips loading GSAP entirely). Elements land directly in their end
   state instead of staying stuck at the animation's initial (hidden)
   values — .01ms rather than 0s keeps this an actual (near-instant)
   transition for browsers/AT that treat a 0-duration animation as "no
   animation occurred" for change-detection purposes. */

@media (prefers-reduced-motion: reduce) {

	.scrolltime-revealed {
		animation-duration: .01ms !important;
		opacity: 1;
		transform: none;
	}

	.scrolltime-parallax img {
		animation-duration: .01ms !important;
	}

	:root,
	header::after {
		animation-duration: .01ms !important;
		--header-after-opacity: 1;
		--header-after-gradient: 100%;
	}
}