/**
 * Nexza Counters widget. 4 per row, 2 below 861px.
 * The Copper ring is a full circle revealed with clip-path (compositor-only).
 */

.nx-counters-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: clamp(56px, 7vw, 110px);
}

.nx-space-both .nx-counters-grid,
.nx-space-top .nx-counters-grid {
	margin-top: 0;
}

.nx-counter {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 12px;
	border: 1px solid var(--nx-line);
	border-radius: 50%;
	text-align: center;
}

.nx-counter-ring {
	position: absolute;
	inset: -1px;
	border: 1.5px solid var(--nx-copper);
	border-radius: 50%;
	clip-path: var(--nx-ring-to);
	pointer-events: none;
}

/* Hidden state only when motion runs; the widget script sets .is-in. */
.nx-js .nx-counter .nx-counter-ring {
	clip-path: polygon(50% 50%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%, 50% -25%);
	transition: clip-path 2s var(--nx-ease-io) var(--nx-d, 0s);
}

.nx-js .nx-counter.is-in .nx-counter-ring {
	clip-path: var(--nx-ring-to);
}

.nx-counter-value {
	font-size: clamp(36px, 4.6vw, 72px);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1;
	color: var(--nx-sand);
	font-variant-numeric: tabular-nums;
}

.nx-counter-label {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--nx-muted-dark);
}

@media (max-width: 860px) {
	.nx-counters-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.nx-counter-value {
		font-size: clamp(32px, 10vw, 56px);
	}

	.nx-counter-label {
		font-size: 13px;
	}
}
