/* SKILL2U effects: stat odometers and the custom cursor, matching skill2u.com. */

.s2u-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Stat odometer (Counter widgets with the s2u-odometer class) ---------- */

.s2u-odo {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.s2u-odo__tiles {
	display: inline-flex;
	align-items: flex-end;
	gap: 6px;
}

.s2u-odo__digits {
	display: flex;
	align-items: flex-end;
	gap: 4px;
}

.s2u-odo__digit,
.s2u-odo__suffix {
	position: relative;
	flex-shrink: 0;
	height: clamp(62px, 7.5vw, 112px);
	border-radius: 10px;
	overflow: hidden;
}

.s2u-odo__digit {
	width: clamp(44px, 5.5vw, 80px);
	background: linear-gradient(180deg, #0f2640 0%, #0a1929 50%, #0e2138 100%);
	box-shadow: 0 10px 24px rgba(10, 25, 41, .2), 0 2px 6px rgba(10, 25, 41, .1), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -2px 0 rgba(0, 0, 0, .45);
}

/* The split line across the middle of each tile. */
.s2u-odo__digit::after,
.s2u-odo__suffix::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	z-index: 1;
	height: 1px;
	pointer-events: none;
	background: rgba(0, 0, 0, .55);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.s2u-odo__reel {
	position: absolute;
	inset-inline: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 1000%;
	transform: translateY(calc(var(--d) * -10%));
	transition: transform 1.8s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * .14s);
}

.s2u-odo__reel > span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 10%;
	color: #f5f3ec;
	font-family: var(--s2u-heading);
	font-size: clamp(2.2rem, 4.6vw, 4rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
	user-select: none;
}

.s2u-odo__suffix {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: linear-gradient(180deg, #1ee4d8 0%, #14b8b0 100%);
	box-shadow: 0 10px 24px rgba(20, 184, 176, .3), 0 2px 6px rgba(10, 25, 41, .1), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .18);
	transition: opacity .5s ease, transform .5s ease;
	transition-delay: calc(var(--n) * .14s + .9s);
}

.s2u-odo__suffix::after {
	background: rgba(0, 0, 0, .28);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .22);
}

.s2u-odo__suffix span {
	position: relative;
	z-index: 2;
	color: #0a1929;
	font-family: var(--s2u-heading);
	font-size: clamp(.95rem, 1.7vw, 1.35rem);
	font-weight: 700;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
	user-select: none;
}

.s2u-odo__label {
	margin: 20px 0 0;
	color: rgba(10, 25, 41, .7);
	font-family: var(--s2u-heading);
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.s2u-odo__label { font-size: 14px; }
}

/* Supporting line under each stat. */
.elementor-widget-counter.s2u-odometer ~ .elementor-widget-text-editor,
.elementor-widget-counter.s2u-odometer ~ .elementor-widget-text-editor p {
	max-width: 280px;
	margin-inline: auto;
	color: rgba(10, 25, 41, .55);
	font-size: 14px;
	line-height: 1.6;
}

/* Before the stat scrolls into view (only when JS is running), reels sit at 0. */
.s2u-js .s2u-odo:not(.is-counted) .s2u-odo__reel {
	transform: translateY(0);
	transition: none;
}

.s2u-js .s2u-odo:not(.is-counted) .s2u-odo__suffix {
	opacity: 0;
	transform: translateY(8px);
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.s2u-odo__reel,
	.s2u-odo__suffix {
		transition: none !important;
	}
}

/* ---------- Custom cursor (desktop with a mouse only) ---------- */

.s2u-cursor-on,
.s2u-cursor-on * {
	cursor: none !important;
}

/* Text fields keep the native caret. */
.s2u-cursor-on :is(input, textarea, select, [contenteditable="true"]) {
	cursor: auto !important;
}

.s2u-cursor-dot,
.s2u-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2147483000;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	will-change: transform;
}

.s2u-cursor-dot {
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	background: #1ee4d8;
	box-shadow: 0 0 10px rgba(30, 228, 216, .7);
}

.s2u-cursor-ring {
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 1.5px solid rgba(20, 184, 176, .85);
	background: rgba(20, 184, 176, 0);
	transition: width .25s ease, height .25s ease, margin .25s ease, background-color .25s ease, border-color .25s ease, opacity .2s ease;
}

.s2u-cursor-on.s2u-cursor-visible .s2u-cursor-dot,
.s2u-cursor-on.s2u-cursor-visible .s2u-cursor-ring {
	opacity: 1;
}

/* Over links and buttons the ring grows and fills. */
.s2u-cursor-hover .s2u-cursor-ring {
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border-color: rgba(30, 228, 216, .9);
	background: rgba(20, 184, 176, .12);
}

.s2u-cursor-hover .s2u-cursor-dot {
	opacity: 0 !important;
}

.s2u-cursor-down .s2u-cursor-ring {
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
}

/* Hidden over text fields, where the native caret is used. */
.s2u-cursor-text .s2u-cursor-dot,
.s2u-cursor-text .s2u-cursor-ring {
	opacity: 0 !important;
}
