.team-card {
	transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-card:active {
	transform: scale(0.98);
	transition-duration: 0.1s;
}

.team-card--cta:active,
.team-card--cta:hover {
	transform: none;
}

@media (min-width: 768px) {
	.team-card--cta:hover {
		z-index: 10;
		box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.65), 0 15px 30px -8px rgba(0, 0, 0, 0.45);
	}
}

.team-card__overlay {
	inset: 190px 0 0 0;
	background: linear-gradient(to bottom, rgba(18, 16, 26, 0) 0%, rgba(18, 16, 26, 0.7) 60.87%, rgba(18, 16, 26, 0.95) 100%);
}

.team-card:hover .team-card__overlay {
	inset: 0;
}

.team-card__tag {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: -16px;
	opacity: 0;
}

.team-card:hover .team-card__tag {
	max-height: 24px;
	padding-top: 4px;
	padding-bottom: 4px;
	margin-top: 0;
	opacity: 1;
}

.team-card__content {
	bottom: 20px;
}

.team-card__name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 768px) {
	.team-card__name {
		font-size: 28px;
		line-height: 32px;
	}
}

.team-card__bio {
	opacity: 0;
}

@media (min-width: 768px) {
	.team-card__bio {
		/* At rest: 2 lines reserved so names stay aligned. */
		height: 3rem;
		min-height: 3rem;
		max-height: 3rem;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		transition: opacity 0.5s, height 0.5s, max-height 0.5s;
	}

	.team-card:hover .team-card__bio {
		opacity: 1;
		height: auto;
		min-height: 3rem;
		max-height: 7.5rem; /* ~5 lines × leading-6 */
		-webkit-line-clamp: 5;
		line-clamp: 5;
	}

	.team-card__content {
		transform: translateY(3rem);
	}

	.team-card:hover .team-card__content {
		bottom: 32px;
		transform: translateY(0);
	}
}

.team-card:hover .team-card__bio {
	opacity: 1;
}

.team-modal__bio p {
	margin-bottom: 12px;
}

.team-modal__bio p:last-child {
	margin-bottom: 0;
}

.team-modal__bio strong {
	color: #fff;
	font-weight: 700;
}

.team-modal__flag {
	display: block;
	width: 28px;
	height: 21px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
