/*!
 * Smooth Animate — front-end styles.
 * Every rule is scoped to sa-* classes that the engine adds at runtime, so
 * nothing changes on the page unless a module actively runs.
 * Animated states use the individual transform properties (translate / scale /
 * rotate) so they compose with — and never overwrite — an element's own transform.
 */

/* ======================================================================
   Page load: anti-flicker + fade-in
   ====================================================================== */
html.sa-loading body {
	opacity: 0;
	/* Failsafe: if JavaScript never boots, show the page anyway. */
	animation: sa-failsafe 0.01s linear 3.5s forwards;
}
html.sa-fadein body {
	transition: opacity var(--sa-fade-dur, 500ms) cubic-bezier(0.33, 1, 0.68, 1);
}
@keyframes sa-failsafe {
	to { opacity: 1; }
}

/* ======================================================================
   Block reveal
   ====================================================================== */
.sa-r:not(.sa-in) {
	opacity: 0;
}
.sa-r.sa-t {
	transition-property: opacity, translate, scale, rotate, filter, clip-path;
	transition-duration: var(--sa-d, 900ms);
	transition-delay: var(--sa-dl, 0ms);
	transition-timing-function: var(--sa-e, cubic-bezier(0.16, 1, 0.3, 1));
}
.sa-r[data-sa-p="fade-up"]:not(.sa-in)    { translate: 0 var(--sa-dist, 40px); }
.sa-r[data-sa-p="fade-down"]:not(.sa-in)  { translate: 0 calc(var(--sa-dist, 40px) * -1); }
.sa-r[data-sa-p="fade-left"]:not(.sa-in)  { translate: var(--sa-dist, 40px) 0; }
.sa-r[data-sa-p="fade-right"]:not(.sa-in) { translate: calc(var(--sa-dist, 40px) * -1) 0; }
.sa-r[data-sa-p="zoom-in"]:not(.sa-in)    { scale: 0.88; }
.sa-r[data-sa-p="zoom-out"]:not(.sa-in)   { scale: 1.12; }
.sa-r[data-sa-p="blur-in"]:not(.sa-in)    { filter: blur(14px); translate: 0 calc(var(--sa-dist, 40px) * 0.5); }
.sa-r[data-sa-p="rise"]:not(.sa-in)       { translate: 0 var(--sa-dist, 40px); rotate: 3deg; transform-origin: 0 100%; }
.sa-r[data-sa-p="clip-up"]:not(.sa-in)    { opacity: 1; clip-path: inset(100% 0 0 0); }
.sa-r[data-sa-p="clip-down"]:not(.sa-in)  { opacity: 1; clip-path: inset(0 0 100% 0); }
.sa-r[data-sa-p="clip-left"]:not(.sa-in)  { opacity: 1; clip-path: inset(0 100% 0 0); }
.sa-r[data-sa-p^="clip"].sa-in            { clip-path: inset(0 0 0 0); }

/* ======================================================================
   Split text
   ====================================================================== */
.sa-split .sa-w,
.sa-split .sa-wm,
.sa-split .sa-c {
	display: inline-block;
}
.sa-split .sa-w {
	white-space: nowrap;
}
.sa-split .sa-wm {
	overflow: hidden;
	vertical-align: top;
	padding: 0.12em 0.04em;
	margin: -0.12em -0.04em;
}
.sa-split.sa-t .sa-u {
	transition-property: opacity, translate, scale, rotate, filter;
	transition-duration: var(--sa-d, 900ms);
	transition-timing-function: var(--sa-e, cubic-bezier(0.16, 1, 0.3, 1));
	transition-delay: calc(var(--sa-dl, 0ms) + var(--sa-i, 0) * var(--sa-st, 45ms));
}
.sa-split[data-sa-sp="rise"]:not(.sa-in) .sa-u    { translate: 0 115%; }
.sa-split[data-sa-sp="fade-up"]:not(.sa-in) .sa-u { opacity: 0; translate: 0 0.45em; }
.sa-split[data-sa-sp="fade"]:not(.sa-in) .sa-u    { opacity: 0; }
.sa-split[data-sa-sp="blur"]:not(.sa-in) .sa-u    { opacity: 0; filter: blur(10px); }
.sa-split[data-sa-sp="rotate"]:not(.sa-in) .sa-u  { opacity: 0; translate: 0 0.6em; rotate: 10deg; transform-origin: 0 100%; }
.sa-split[data-sa-sp="scale"]:not(.sa-in) .sa-u   { opacity: 0; scale: 0.3; }

/* ======================================================================
   Scroll highlight
   ====================================================================== */
.sa-hl .sa-w {
	opacity: var(--sa-hl-dim, 0.18);
	transition: opacity 0.35s ease, color 0.35s ease;
}
.sa-hl .sa-w.sa-lit {
	opacity: 1;
	color: var(--sa-hl-color, currentColor);
}

/* ======================================================================
   Counter
   ====================================================================== */
.sa-counting {
	font-variant-numeric: tabular-nums;
}

/* ======================================================================
   Smooth scroll (Lenis essentials)
   ====================================================================== */
html.lenis,
html.lenis body {
	height: auto;
}
html.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}
html.lenis [data-lenis-prevent],
html.lenis [data-sa-native-scroll],
html.lenis .sa-native-scroll {
	overscroll-behavior: contain;
}
html.lenis.lenis-smooth iframe {
	pointer-events: none;
}
html.sa-scroll-locked,
html.sa-pl-on:not(.sa-pl-done) {
	overflow: hidden;
}

/* ======================================================================
   Custom cursor
   ====================================================================== */
.sa-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2147483000;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.sa-cursor.is-visible {
	opacity: 1;
}
.sa-cursor.is-hidden {
	opacity: 0 !important;
}
.sa-cursor__dot,
.sa-cursor__ring {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	will-change: transform;
	pointer-events: none;
}
.sa-cursor__dot {
	width: var(--sa-cursor-dot, 8px);
	height: var(--sa-cursor-dot, 8px);
	margin: calc(var(--sa-cursor-dot, 8px) / -2) 0 0 calc(var(--sa-cursor-dot, 8px) / -2);
	background: var(--sa-cursor-color, #111);
	transition: scale 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
}
.sa-cursor__ring {
	width: var(--sa-cursor-ring, 38px);
	height: var(--sa-cursor-ring, 38px);
	margin: calc(var(--sa-cursor-ring, 38px) / -2) 0 0 calc(var(--sa-cursor-ring, 38px) / -2);
}
.sa-cursor__ring-inner {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: var(--sa-cursor-border, 1.5px) solid var(--sa-cursor-ring-c, #111);
	background: var(--sa-cursor-fill, transparent);
	transition: scale 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.sa-cursor__label {
	font: 600 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sa-cursor-label-c, #fff);
	opacity: 0;
	scale: 0.6;
	transition: opacity 0.25s ease, scale 0.25s ease;
	white-space: nowrap;
}
.sa-cursor--dot .sa-cursor__ring,
.sa-cursor--ring .sa-cursor__dot,
.sa-cursor--blend .sa-cursor__dot,
.sa-cursor--glow .sa-cursor__dot {
	display: none;
}
.sa-cursor--blend {
	mix-blend-mode: difference;
}
.sa-cursor--blend .sa-cursor__ring-inner {
	background: var(--sa-cursor-ring-c, #fff);
	border-color: transparent;
}
.sa-cursor--glow .sa-cursor__ring-inner {
	border: 0;
	background: radial-gradient(circle, var(--sa-cursor-ring-c, #6366f1) 0%, transparent 70%);
	opacity: 0.55;
	filter: blur(6px);
}
.sa-cursor.is-hover .sa-cursor__ring-inner {
	scale: var(--sa-cursor-scale, 1.8);
	border-color: var(--sa-cursor-hover-c, #111);
}
.sa-cursor--blend.is-hover .sa-cursor__ring-inner {
	background: var(--sa-cursor-hover-c, #fff);
}
.sa-cursor.is-hover .sa-cursor__dot {
	scale: 0.5;
	background: var(--sa-cursor-hover-c, #111);
}
.sa-cursor--dot.is-hover .sa-cursor__dot {
	scale: var(--sa-cursor-scale, 1.8);
}
.sa-cursor.is-down .sa-cursor__ring-inner {
	scale: 0.8;
}
.sa-cursor.is-hover.is-down .sa-cursor__ring-inner {
	scale: calc(var(--sa-cursor-scale, 1.8) * 0.85);
}
.sa-cursor.has-label .sa-cursor__ring-inner {
	scale: 2.4;
	background: var(--sa-cursor-label-bg, #111);
	border-color: var(--sa-cursor-label-bg, #111);
	opacity: 1;
	filter: none;
}
.sa-cursor.has-label .sa-cursor__label {
	opacity: 1;
	scale: calc(1 / 2.4);
}
.sa-cursor.has-label .sa-cursor__dot {
	opacity: 0;
}
html.sa-cursor-native-off,
html.sa-cursor-native-off * {
	cursor: none !important;
}
html.sa-cursor-native-off input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html.sa-cursor-native-off textarea,
html.sa-cursor-native-off [contenteditable="true"],
html.sa-cursor-native-off [contenteditable=""] {
	cursor: text !important;
}
html.sa-cursor-native-off iframe {
	cursor: auto !important;
}

/* ======================================================================
   Progress bar
   ====================================================================== */
.sa-progress {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	height: var(--sa-progress-h, 3px);
	z-index: 2147482000;
	pointer-events: none;
}
.sa-progress--bottom {
	top: auto;
	bottom: 0;
}
.admin-bar .sa-progress--top {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.sa-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--sa-progress-bg, #6366f1);
	transform-origin: 0 50%;
	transform: scaleX(0);
	will-change: transform;
}
[dir="rtl"] .sa-progress__bar {
	transform-origin: 100% 50%;
}

/* ======================================================================
   Tilt
   ====================================================================== */
.sa-tilt-glare {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(circle at var(--sa-gx, 50%) var(--sa-gy, 50%), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 2;
	mix-blend-mode: soft-light;
}
.sa-tilting > .sa-tilt-glare {
	opacity: 1;
}

/* ======================================================================
   Marquee
   ====================================================================== */
.sa-mq {
	overflow: hidden;
	display: block !important;
}
.sa-mq-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: sa-marquee var(--sa-mq-dur, 20s) linear infinite;
}
.sa-mq-group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: var(--sa-mq-gap, 40px);
	padding-inline-end: var(--sa-mq-gap, 40px);
}
.sa-mq-group > * {
	flex-shrink: 0;
}
.sa-mq--right .sa-mq-track {
	animation-direction: reverse;
}
.sa-mq--paused .sa-mq-track,
.sa-mq--hover:hover .sa-mq-track {
	animation-play-state: paused;
}
@keyframes sa-marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(calc(var(--sa-mq-w, 50%) * -1), 0, 0); }
}
[dir="rtl"] .sa-mq-track {
	animation-name: sa-marquee-rtl;
}
@keyframes sa-marquee-rtl {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(var(--sa-mq-w, 50%), 0, 0); }
}

/* ======================================================================
   Back to top
   ====================================================================== */
.sa-backtop {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 2147481000;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sa-bt-bg, #111);
	color: var(--sa-bt-color, #fff);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	translate: 0 16px;
	transition: opacity 0.35s ease, translate 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}
.sa-backtop--left {
	right: auto;
	left: 24px;
}
.sa-backtop.is-visible {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
}
.sa-backtop:hover {
	translate: 0 -3px;
}
.sa-backtop:focus-visible {
	outline: 2px solid var(--sa-bt-bg, #111);
	outline-offset: 3px;
}
.sa-backtop svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	rotate: -90deg;
}
.sa-backtop__ring {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	opacity: 0.9;
}
.sa-backtop__arrow {
	position: relative;
	width: 18px;
	height: 18px;
}

/* ======================================================================
   Preloader
   ====================================================================== */
#sa-preloader {
	display: none;
}
html.sa-pl-on #sa-preloader {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sa-pl-bg, #0b0b0f);
	color: var(--sa-pl-color, #fff);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	/* Failsafe: disappears on its own even if JavaScript never runs. */
	animation: sa-pl-failsafe 0.5s ease calc(var(--sa-pl-max, 5000ms) + 600ms) forwards;
}
html.sa-pl-done #sa-preloader {
	display: none;
}
.sa-pl-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
	padding: 24px;
}
.sa-pl-text {
	font-size: clamp(18px, 3vw, 28px);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.sa-pl-text .sa-pl-ch {
	display: inline-block;
	animation: sa-pl-wave 1.4s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 60ms);
}
.sa-pl-logo {
	max-width: min(180px, 50vw);
	max-height: 90px;
	height: auto;
	width: auto;
}
.sa-pls-text .sa-pl-text,
.sa-pls-text .sa-pl-logo {
	animation: sa-pl-pulse 1.6s ease-in-out infinite;
}
.sa-pl-count {
	font-size: clamp(48px, 10vw, 120px);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}
.sa-pl-pct {
	font-size: 0.4em;
	opacity: 0.6;
	margin-left: 0.1em;
	vertical-align: top;
}
.sa-pl-bar {
	width: min(260px, 60vw);
	height: 2px;
	background: rgba(127, 127, 127, 0.25);
	overflow: hidden;
	border-radius: 2px;
}
.sa-pl-fill {
	display: block;
	height: 100%;
	background: currentColor;
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.sa-pl-spinner {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid rgba(127, 127, 127, 0.25);
	border-top-color: currentColor;
	animation: sa-spin 0.8s linear infinite;
}
#sa-preloader.sa-pl-leave {
	pointer-events: none;
	animation: none;
}
.sa-pl-exit-fade.sa-pl-leave {
	animation: sa-pl-fade 0.7s ease forwards !important;
}
.sa-pl-exit-slide-up.sa-pl-leave {
	animation: sa-pl-slide 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards !important;
}
.sa-pl-exit-scale.sa-pl-leave {
	animation: sa-pl-scale 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards !important;
}
.sa-pl-leave .sa-pl-inner {
	transition: opacity 0.3s ease, translate 0.5s ease;
	opacity: 0;
	translate: 0 -20px;
}
@keyframes sa-spin { to { rotate: 360deg; } }
@keyframes sa-pl-pulse { 50% { opacity: 0.35; } }
@keyframes sa-pl-wave { 0%, 100% { translate: 0 0; } 30% { translate: 0 -6px; } }
@keyframes sa-pl-fade { to { opacity: 0; visibility: hidden; } }
@keyframes sa-pl-slide { to { translate: 0 -100%; visibility: hidden; } }
@keyframes sa-pl-scale { to { opacity: 0; scale: 1.08; visibility: hidden; } }
@keyframes sa-pl-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ======================================================================
   Page transitions
   ====================================================================== */
html.sa-pt-in::before,
.sa-pt-overlay {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147483500;
	background: var(--sa-pt-bg, #0b0b0f);
}
html.sa-pt-in::before {
	pointer-events: auto;
}
/* Entrance (curtain leaves) */
html.sa-pt-in.sa-pt-out.sa-pt-fade::before  { animation: sa-pt-fade-out var(--sa-pt-dur, 600ms) ease forwards; }
html.sa-pt-in.sa-pt-out.sa-pt-slide::before { animation: sa-pt-slide-out var(--sa-pt-dur, 600ms) cubic-bezier(0.76, 0, 0.24, 1) forwards; }
html.sa-pt-in.sa-pt-out.sa-pt-wipe::before  { animation: sa-pt-wipe-out var(--sa-pt-dur, 600ms) cubic-bezier(0.76, 0, 0.24, 1) forwards; }
html.sa-pt-in.sa-pt-out::before { pointer-events: none; }
/* Exit (curtain arrives) */
.sa-pt-overlay { pointer-events: auto; }
.sa-pt-overlay.sa-pt-fade  { animation: sa-pt-fade-in var(--sa-pt-dur, 600ms) ease forwards; }
.sa-pt-overlay.sa-pt-slide { animation: sa-pt-slide-in var(--sa-pt-dur, 600ms) cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.sa-pt-overlay.sa-pt-wipe  { animation: sa-pt-wipe-in var(--sa-pt-dur, 600ms) cubic-bezier(0.76, 0, 0.24, 1) forwards; }
@keyframes sa-pt-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes sa-pt-fade-out  { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes sa-pt-slide-in  { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes sa-pt-slide-out { from { translate: 0 0; } to { translate: 0 -100%; visibility: hidden; } }
@keyframes sa-pt-wipe-in   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sa-pt-wipe-out  { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); visibility: hidden; } }

/* ======================================================================
   Accessibility & print safety
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
	html.sa-reduced .sa-r,
	html.sa-reduced .sa-split .sa-u {
		opacity: 1 !important;
		translate: none !important;
		scale: none !important;
		rotate: none !important;
		filter: none !important;
		clip-path: none !important;
		transition: none !important;
	}
}
@media print {
	html.sa-loading body { opacity: 1 !important; animation: none !important; }
	.sa-r,
	.sa-split .sa-u {
		opacity: 1 !important;
		translate: none !important;
		scale: none !important;
		rotate: none !important;
		filter: none !important;
		clip-path: none !important;
	}
	.sa-cursor, .sa-progress, .sa-backtop, #sa-preloader, .sa-pt-overlay { display: none !important; }
	html.sa-pt-in::before { display: none !important; }
}
