/*
 * Team section — card grid. Uses only tokens from tokens.css.
 */

.team {
	background: var(--sand);
	padding: var(--space-2xl) var(--space-xl);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2xl);
}

.team__grid {
	width: 100%;
	max-width: 1040px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--space-xl);
	justify-content: center;
}

.team-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	text-align: center;
	align-items: center;
}

.team-card__photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	overflow: hidden;
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__photo--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--midnight);
	color: var(--paper);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 44px;
}

.team-card__name {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--text-body-lg);
	color: var(--midnight);
}

.team-card__role {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 14px;
	color: var(--turquoise);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.team-card__bio {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--ink-soft);
	line-height: 1.6;
}

.team-card__bio p {
	margin: 0;
}

@media (max-width: 767px) {
	.team {
		padding: var(--space-2xl) var(--space-lg);
	}

	.team__grid {
		grid-template-columns: 1fr;
		max-width: 320px;
	}
}
