/* Team Statistics — Frontend Styles */

.ts-section {
	padding: 88px 20px;
	box-sizing: border-box;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ts-section *,
.ts-section *::before,
.ts-section *::after {
	box-sizing: border-box;
}

.ts-container {
	max-width: 1400px;
	margin: 0 auto;
	text-align: center;
}

.ts-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	opacity: 0.65;
	margin-bottom: 14px;
}

.ts-title {
	font-size: clamp(32px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
	letter-spacing: -0.5px;
}

.ts-subtitle {
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.6;
	opacity: 0.75;
	max-width: 680px;
	margin: 0 auto 50px;
}

/* Grid: desktop shows all boxes in one row, sized dynamically */
.ts-grid {
	display: grid;
	grid-template-columns: repeat(var(--ts-box-count, 3), minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.ts-box {
	position: relative;
	border-radius: 16px;
	padding: 40px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 20px 40px -24px rgba(0, 0, 0, 0.65);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	min-width: 0;
}

.ts-box:hover {
	transform: translateY(-4px);
}

.ts-box-number {
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.5px;
	word-break: break-word;
}

.ts-box-divider {
	width: 48px;
	height: 3px;
	margin: 20px auto;
	border-radius: 2px;
	background: currentColor;
	opacity: 0.55;
}

.ts-box-title {
	font-size: 15px;
	font-weight: 500;
	opacity: 0.82;
	line-height: 1.4;
}

/* Accent colors (glow + divider), cycling every 6 boxes */
.ts-accent-1 { border-color: rgba(59, 130, 246, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px -10px rgba(59, 130, 246, 0.5); }
.ts-accent-1 .ts-box-divider { background: #3b82f6; opacity: 1; }

.ts-accent-2 { border-color: rgba(16, 185, 129, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px -10px rgba(16, 185, 129, 0.5); }
.ts-accent-2 .ts-box-divider { background: #10b981; opacity: 1; }

.ts-accent-3 { border-color: rgba(139, 92, 246, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px -10px rgba(139, 92, 246, 0.5); }
.ts-accent-3 .ts-box-divider { background: #8b5cf6; opacity: 1; }

.ts-accent-4 { border-color: rgba(249, 115, 22, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px -10px rgba(249, 115, 22, 0.5); }
.ts-accent-4 .ts-box-divider { background: #f97316; opacity: 1; }

.ts-accent-5 { border-color: rgba(34, 211, 238, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px -10px rgba(34, 211, 238, 0.5); }
.ts-accent-5 .ts-box-divider { background: #22d3ee; opacity: 1; }

.ts-accent-6 { border-color: rgba(217, 70, 239, 0.45); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 28px -10px rgba(217, 70, 239, 0.5); }
.ts-accent-6 .ts-box-divider { background: #d946ef; opacity: 1; }

/* Tablet: let boxes wrap gracefully instead of overflowing */
@media (max-width: 1199px) and (min-width: 768px) {
	.ts-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

/* Mobile: one box per row, no horizontal scroll */
@media (max-width: 767px) {
	.ts-section {
		padding: 56px 16px;
	}
	.ts-subtitle {
		margin-bottom: 36px;
	}
	.ts-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.ts-box {
		padding: 32px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ts-box {
		transition: none;
	}
}
