/**
 * Team Section – frontend styles
 */

.oc-team {
	--oc-team-accent: #6b7a67;
	--oc-team-text: #1a1a1a;
	--oc-team-muted: #3a3a3a;
	position: relative;
	isolation: isolate;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #f4f2ed;
	color: var(--oc-team-text);
}

.oc-team *,
.oc-team *::before,
.oc-team *::after {
	box-sizing: border-box;
}

.oc-team__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	pointer-events: none;
}

.oc-team__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.oc-team__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 0 auto 48px;
	max-width: 42em;
}

.oc-team__heading {
	margin: 0 0 14px;
	color: var(--oc-team-text);
	font-size: clamp(2rem, 3.4vw, 2.85rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.oc-team__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 160px;
	margin: 0 auto 16px;
}

.oc-team__divider-line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--oc-team-accent);
	opacity: 0.7;
}

.oc-team__diamond {
	display: inline-block;
	color: var(--oc-team-accent);
	font-size: 9px;
	line-height: 1;
}

.oc-team__subtitle {
	margin: 0;
	color: var(--oc-team-muted);
	font-size: 15px;
	line-height: 1.55;
}

.oc-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
	align-items: start;
	justify-items: center;
	width: 100%;
	margin: 0 0 48px;
}

.oc-team__member {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	max-width: 260px;
	text-decoration: none;
	color: inherit;
}

.oc-team__member.is-link:hover {
	text-decoration: none;
	color: inherit;
}

.oc-team__portrait {
	position: relative;
	width: 100%;
	max-width: 180px;
	aspect-ratio: 1 / 1;
	margin: 0 auto 14px;
}

.oc-team__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 50%;
}

.oc-team__name {
	margin: 0;
	color: var(--oc-team-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.oc-team__role {
	margin: 4px 0 0;
	color: var(--oc-team-muted);
	font-size: 13px;
	line-height: 1.4;
}

.oc-team__cta {
	display: flex;
	justify-content: center;
	width: 100%;
}

.oc-team__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	background-color: #c5a46e;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
	border: 0;
	border-radius: 0;
	box-shadow: 0 3px 0 #1a1a1a;
	padding: 14px 28px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.oc-team__btn:hover,
.oc-team__btn:focus {
	background-color: #b08f55;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 1024px) {
	.oc-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 24px;
	}
}

@media (max-width: 640px) {
	.oc-team__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-bottom: 36px;
	}

	.oc-team__portrait {
		max-width: 160px;
	}
}
