/* ShipPress sp-scroll v1 — hidden state only when html.sp-js is set and motion allowed. */
:root { --sp-dist: 24px; --sp-dur: .8s; --sp-ease: cubic-bezier(.23, 1, .32, 1); }
html, body { overflow-x: clip; }
.sp-parallax { overflow: clip; }

@media (prefers-reduced-motion: no-preference) {
	/* hidden (initial) states */
	html.sp-js:not(.sp-no-motion) .sp-reveal:not(.sp-in) { opacity: 0; }
	html.sp-js:not(.sp-no-motion) .sp-reveal--up:not(.sp-in) { transform: translate3d(0, var(--sp-dist), 0); }
	html.sp-js:not(.sp-no-motion) .sp-reveal--down:not(.sp-in) { transform: translate3d(0, calc(var(--sp-dist) * -1), 0); }
	html.sp-js:not(.sp-no-motion) .sp-reveal--left:not(.sp-in) { transform: translate3d(calc(var(--sp-dist) * -1), 0, 0); }
	html.sp-js:not(.sp-no-motion) .sp-reveal--right:not(.sp-in) { transform: translate3d(var(--sp-dist), 0, 0); }
	html.sp-js:not(.sp-no-motion) .sp-reveal--zoom:not(.sp-in) { transform: scale(1.06); }
	html.sp-js:not(.sp-no-motion) .sp-reveal--wipe:not(.sp-in) { opacity: 1; }
	html.sp-js:not(.sp-no-motion) .sp-reveal--wipe:not(.sp-in) > * { clip-path: inset(0 0 100% 0); }
	/* clip-path on the observed element itself makes IntersectionObserver see 0 area, so the wipe clips its children */
	html.sp-js:not(.sp-no-motion) .sp-reveal--wipe > * { transition: clip-path 1.1s cubic-bezier(.77, 0, .175, 1) var(--sp-delay, 0s); }
	html.sp-js:not(.sp-no-motion) .sp-reveal--mask:not(.sp-in) { mask-position: 0 100%; -webkit-mask-position: 0 100%; }
	/* transitions */
	html.sp-js:not(.sp-no-motion) .sp-reveal {
		transition: opacity var(--sp-dur) var(--sp-ease) var(--sp-delay, 0s),
			transform var(--sp-dur) var(--sp-ease) var(--sp-delay, 0s),
			clip-path 1.1s cubic-bezier(.77, 0, .175, 1) var(--sp-delay, 0s),
			mask-position 1.2s ease-out var(--sp-delay, 0s);
	}
	html.sp-js:not(.sp-no-motion) .sp-reveal:not(.sp-in) { will-change: opacity, transform; }
	html.sp-js:not(.sp-no-motion) .sp-reveal--zoom { --sp-dur: 1.6s; }
	html.sp-js:not(.sp-no-motion) .sp-reveal--mask {
		mask-image: linear-gradient(to bottom, #fff, #fff 33%, transparent 66%);
		-webkit-mask-image: linear-gradient(to bottom, #fff, #fff 33%, transparent 66%);
		mask-size: 100% 300%; -webkit-mask-size: 100% 300%;
	}
	html.sp-js:not(.sp-no-motion) .sp-reveal--mask.sp-in { mask-position: 0 0; -webkit-mask-position: 0 0; }
	/* stagger (children of .sp-stagger) */
	.sp-stagger > .sp-reveal:nth-child(2) { --sp-delay: .12s; }
	.sp-stagger > .sp-reveal:nth-child(3) { --sp-delay: .24s; }
	.sp-stagger > .sp-reveal:nth-child(4) { --sp-delay: .36s; }
	.sp-stagger > .sp-reveal:nth-child(5) { --sp-delay: .48s; }
	.sp-stagger > .sp-reveal:nth-child(n+6) { --sp-delay: .6s; }
}

/* parallax (v2): layer = .sp-parallax__layer / direct img / figure>img / cover background; speed --sp-par (default 8%).
   CSS scroll-driven where supported; otherwise sp-scroll.js moves the layer with translate3d (IO-gated rAF, no scroll listener). */
.sp-parallax { --sp-par: 8%; overflow: clip; position: relative; }
@media (prefers-reduced-motion: no-preference) {
	html.sp-js:not(.sp-no-motion) .sp-parallax .sp-parallax__layer, html.sp-js:not(.sp-no-motion) .sp-parallax > img, html.sp-js:not(.sp-no-motion) .sp-parallax > figure > img, html.sp-js:not(.sp-no-motion) .sp-parallax > .wp-block-cover__image-background { scale: 1.18; will-change: transform; }
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		html.sp-js:not(.sp-no-motion) .sp-parallax .sp-parallax__layer, html.sp-js:not(.sp-no-motion) .sp-parallax > img, html.sp-js:not(.sp-no-motion) .sp-parallax > figure > img, html.sp-js:not(.sp-no-motion) .sp-parallax > .wp-block-cover__image-background { animation: sp-par linear both; animation-timeline: view(); }
		@keyframes sp-par { from { translate: 0 calc(var(--sp-par) * -1); } to { translate: 0 var(--sp-par); } }
	}
}

/* marquee: duplicate the inner group (aria-hidden) in the pattern */
@media (prefers-reduced-motion: no-preference) {
	html:not(.sp-no-motion) .sp-marquee { display: flex; overflow: clip; }
	html:not(.sp-no-motion) .sp-marquee > * { flex: none; min-width: 100%; animation: sp-marq 30s linear infinite; }
	@keyframes sp-marq { to { transform: translateX(-100%); } }
}

/* always-final states: static mode, reduced motion, editor, print */
html.sp-no-motion .sp-reveal, html.sp-no-motion .sp-reveal--wipe > *, .editor-styles-wrapper .sp-reveal, .editor-styles-wrapper .sp-reveal--wipe > * {
	opacity: 1 !important; transform: none !important; clip-path: none !important;
	transition: none !important; -webkit-mask-image: none !important; mask-image: none !important;
}
html.sp-no-motion .sp-parallax :is(.sp-parallax__layer, img), .editor-styles-wrapper .sp-parallax :is(.sp-parallax__layer, img) { animation: none !important; scale: 1 !important; translate: none !important; transform: none !important; will-change: auto !important; }
@media print { .sp-reveal, .sp-reveal--wipe > * { opacity: 1 !important; transform: none !important; clip-path: none !important; mask-image: none !important; } }
