/* Front: Numbers — matched to totop-site-main final */

body.totop-front-page .totop-front .numbers.totop-section {
	padding: 96px 0 40px;
	background: transparent;
}

body.totop-front-page .totop-front .num-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: center;
}

body.totop-front-page .totop-front .num-item {
	position: relative;
	padding: 12px 8px 20px;
	border-top: none;
}

body.totop-front-page .totop-front .num-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--totop-teal);
	transition: width 0.9s var(--totop-ease);
}

body.totop-front-page .totop-front .num-grid.visible .num-item:nth-child(1)::before {
	width: 100%;
	transition-delay: 0.1s;
}

body.totop-front-page .totop-front .num-grid.visible .num-item:nth-child(2)::before {
	width: 100%;
	transition-delay: 0.25s;
}

body.totop-front-page .totop-front .num-grid.visible .num-item:nth-child(3)::before {
	width: 100%;
	transition-delay: 0.4s;
}

body.totop-front-page .totop-front .num-item::after {
	content: "";
	position: absolute;
	top: -4.5px;
	right: 0;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--totop-teal);
	transform: rotate(45deg) scale(0);
	transition: transform 0.45s var(--totop-ease);
}

body.totop-front-page .totop-front .num-grid.visible .num-item:nth-child(1)::after {
	transform: rotate(45deg) scale(1);
	transition-delay: 1s;
}

body.totop-front-page .totop-front .num-grid.visible .num-item:nth-child(2)::after {
	transform: rotate(45deg) scale(1);
	transition-delay: 1.15s;
}

body.totop-front-page .totop-front .num-grid.visible .num-item:nth-child(3)::after {
	transform: rotate(45deg) scale(1);
	transition-delay: 1.3s;
}

body.totop-front-page .totop-front .num-label {
	margin: 18px 0 4px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

body.totop-front-page .totop-front .num-value {
	font-family: "Inter", "Helvetica Neue", sans-serif;
	font-weight: 600;
	font-feature-settings: "tnum";
	font-size: clamp(44px, 6vw, 64px);
	line-height: 1.2;
	color: var(--totop-ink);
	font-variant-numeric: tabular-nums;
	margin: 0;
}

body.totop-front-page .totop-front .count {
	display: inline-flex;
	align-items: flex-start;
	overflow: hidden;
	height: 1.18em;
	vertical-align: bottom;
}

body.totop-front-page .totop-front .odo-static {
	display: inline-block;
	height: 1.18em;
	line-height: 1.18;
}

body.totop-front-page .totop-front .odo-digit {
	display: inline-block;
	height: 1.18em;
	overflow: hidden;
}

body.totop-front-page .totop-front .odo-reel {
	display: flex;
	flex-direction: column;
	will-change: transform;
}

body.totop-front-page .totop-front .odo-reel span {
	display: block;
	height: 1.18em;
	line-height: 1.18;
	text-align: center;
}

body.totop-front-page .totop-front .num-unit {
	font-size: 0.42em;
	margin-left: 4px;
	color: var(--totop-teal-ink);
	font-weight: 700;
}

body.totop-front-page .totop-front .num-note {
	margin: 6px 0 0;
	font-size: 11.5px;
	color: var(--totop-gray);
}

@media (prefers-reduced-motion: reduce) {
	body.totop-front-page .totop-front .num-item::after {
		transform: rotate(45deg) scale(1);
		transition: none;
	}
}

@media (max-width: 767px) {
	body.totop-front-page .totop-front .numbers.totop-section {
		padding: 68px 0 24px;
	}

	body.totop-front-page .totop-front .num-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	body.totop-front-page .totop-front .num-item {
		display: grid;
		grid-template-columns: 1fr;
		padding-bottom: 26px;
	}
}
