/**
 * Team archive + single member profiles.
 * Matches Studio Mo: Montserrat headings, Nunito Sans body, #263729 accent.
 */

 body.studio-team-page .nk-main {
	background-color: #f6f6f6;
}

.studio-team {
	padding: 48px 0 80px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #5f5f5f;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.studio-team__container {
	max-width: 1100px;
}

.studio-team__header {
	margin-bottom: 48px;
	text-align: center;
}

.studio-team__title {
	margin: 0 0 0.75rem;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 500;
	line-height: 1.2;
	color: #171717;
}

.studio-team__lead {
	margin: 0 auto;
	max-width: 32rem;
	font-size: 1.05rem;
	color: #5f5f5f;
}

.studio-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.studio-team__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.studio-team__card-link:hover,
.studio-team__card-link:focus {
	color: inherit;
	opacity: 0.88;
	outline: none;
}

.studio-team__photo {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background-color: #e8ebe8;
}

.studio-team__photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.studio-team__photo-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #dfe4df 0%, #c5cdc6 100%);
}

.studio-team__card-body {
	display: block;
	padding-top: 1rem;
}

.studio-team__name {
	display: block;
	margin-bottom: 0.35rem;
	font-family: "Montserrat", sans-serif;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.3;
	color: #171717;
}

.studio-team__role {
	display: block;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a7a7a;
}

.studio-team__empty {
	margin: 0;
	text-align: center;
	color: #5f5f5f;
}

.studio-team .navigation.pagination {
	margin-top: 48px;
}

/* Single profile */
.studio-team__back {
	margin: 0 0 32px;
}

.studio-team__back a {
	font-size: 0.9rem;
	font-weight: 500;
	color: #5f5f5f;
	text-decoration: none;
	transition: color 0.2s ease;
}

.studio-team__back a:hover,
.studio-team__back a:focus {
	color: #263729;
}

.studio-team-profile {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 40px 48px;
	align-items: start;
	margin-bottom: 64px;
}

.studio-team-profile__photo {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background-color: #e8ebe8;
}

.studio-team-profile__photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.studio-team-profile__photo-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #dfe4df 0%, #c5cdc6 100%);
}

.studio-team-profile__role {
	margin: 0 0 0.5rem;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a7a7a;
}

.studio-team-profile__name {
	margin: 0 0 1.25rem;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 500;
	line-height: 1.2;
	color: #171717;
}

.studio-team-profile__bio {
	margin-bottom: 1.5rem;
}

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

.studio-team-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.studio-team-profile__links a {
	font-weight: 500;
	color: #263729;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.studio-team-profile__links a:hover,
.studio-team-profile__links a:focus {
	border-bottom-color: currentColor;
}

/* Selected work */
.studio-team-work__title {
	margin: 0 0 1.75rem;
	font-family: "Montserrat", sans-serif;
	font-size: 1.35rem;
	font-weight: 500;
	color: #171717;
}

.studio-team-work__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.studio-team-work__link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.studio-team-work__link:hover,
.studio-team-work__link:focus {
	color: inherit;
	opacity: 0.9;
	outline: none;
}

.studio-team-work__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background-color: #e8ebe8;
}

.studio-team-work__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.studio-team-work__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #dfe4df 0%, #c5cdc6 100%);
}

.studio-team-work__meta {
	display: block;
	padding-top: 0.85rem;
}

.studio-team-work__project-title {
	display: block;
	margin-bottom: 0.25rem;
	font-family: "Montserrat", sans-serif;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.3;
	color: #171717;
}

.studio-team-work__project-cat {
	display: block;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a7a7a;
}

.studio-team-work__empty {
	margin: 0;
	color: #5f5f5f;
}

@media (max-width: 900px) {
	.studio-team__grid,
	.studio-team-work__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.studio-team-profile {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.studio-team-profile__photo {
		max-width: 360px;
	}
}

@media (max-width: 560px) {
	.studio-team {
		padding: 36px 0 64px;
	}

	.studio-team__grid,
	.studio-team-work__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.studio-team-profile__photo {
		max-width: none;
	}
}
