.team-page {
	position: relative;
	background: var(--color-surface-light);
	padding: calc(var(--header-height) + 40px) 0 120px;
	overflow: hidden;
}

.team-page__heading {
	position: relative;
	z-index: 1;
	margin: 0 0 40px;
	font-family: var(--font-heading);
	font-size: 44px;
	font-weight: var(--font-weight-h2);
	color: var(--color-bg-alt);
}

.team-page__filters {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 40px;
}

.team-page__filter {
	display: inline-flex;
	align-items: center;
	padding: 14px 24px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--color-bg-alt);
	background: transparent;
	color: var(--color-bg-alt);
	font-family: var(--font-heading);
	font-weight: var(--font-weight-h2);
	font-size: 14px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.team-page__filter:hover {
	background: rgba(65, 23, 20, 0.08);
}

.team-page__filter.is-active {
	background: var(--color-bg-alt);
	border-color: var(--color-bg-alt);
	color: var(--color-accent-light);
}

.team-page__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.team-page__grid .team-card.is-hidden {
	display: none;
}

/* Decorative extras */

.team-page__dot {
	position: absolute;
	z-index: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent);
	pointer-events: none;
}

.team-page__square {
	position: absolute;
	z-index: 0;
	width: 18px;
	height: 18px;
	border: 1px solid var(--color-muted-warm);
	pointer-events: none;
}

/* Breakpoints: 1440 / 1280 / 1024 / 768 / 380 */

@media (max-width: 1280px) {
	.team-page__heading {
		font-size: 36px;
	}
}

@media (max-width: 1024px) {
	.team-page {
		padding-bottom: 80px;
	}

	.team-page__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.team-page__dot,
	.team-page__square {
		display: none;
	}
}

@media (max-width: 768px) {
	.team-page__heading {
		font-size: 28px;
	}

	.team-page__grid {
		grid-template-columns: 1fr;
	}
}
