/* H&CO Team — inherits the theme's fonts so it always matches the site. */

.hco-team {
	--hco-gap: clamp(28px, 4vw, 56px);
	display: grid;
	grid-template-columns: repeat(var(--hco-cols, 3), minmax(0, 1fr));
	gap: calc(var(--hco-gap) * 1.2) var(--hco-gap);
	margin: 0 auto;
	padding: 0;
	font-family: inherit;
	color: var(--hco-text, inherit);
}

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

.hco-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

/* ---------- Photo / monogram ---------- */

.hco-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--hco-ph, #f2efeb);
	margin: 0 0 22px;
}

.hco-team--square .hco-card__media { aspect-ratio: 1 / 1; }

.hco-team--circle .hco-card__media {
	aspect-ratio: 1 / 1;
	width: 72%;
	border-radius: 50%;
}
.hco-team--center.hco-team--circle .hco-card__media { margin-left: auto; margin-right: auto; }

.hco-card__media img.hco-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center 25%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}

.hco-card:hover .hco-card__img {
	transform: scale(1.04);
}

.hco-card__monogram {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hco-card__monogram::after {
	/* thin inset frame so the empty tile reads as intentional */
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid var(--hco-accent, #1a1a1a);
	opacity: .14;
	pointer-events: none;
}
.hco-team--circle .hco-card__monogram::after { border-radius: 50%; }

.hco-card__monogram span {
	font-family: inherit;
	font-size: clamp(34px, 4.6vw, 58px);
	font-weight: 300;
	letter-spacing: .14em;
	line-height: 1;
	padding-left: .14em; /* optical centre with letter-spacing */
	color: var(--hco-accent, #1a1a1a);
	opacity: .55;
}

/* ---------- Text ---------- */

.hco-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.hco-team--center .hco-card__body { text-align: center; align-items: center; }
.hco-team--left .hco-card__body { text-align: left; align-items: flex-start; }

.hco-team .hco-card__name {
	font-family: inherit;
	font-size: clamp(17px, 1.5vw, 20px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .02em;
	color: var(--hco-text, inherit);
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	text-transform: none;
}

.hco-team--caps .hco-card__name {
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: clamp(15px, 1.3vw, 17px);
}

.hco-team .hco-card__title {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hco-muted, #8a8580);
	margin: 0;
	padding: 0;
}

/* ---------- Fun facts ---------- */

.hco-card__facts {
	width: 100%;
	margin: 20px 0 0;
	padding: 18px 0 0;
	position: relative;
}

.hco-card__facts::before {
	content: "";
	position: absolute;
	top: 0;
	width: 32px;
	height: 1px;
	background: var(--hco-accent, #1a1a1a);
	opacity: .5;
}
.hco-team--center .hco-card__facts::before { left: 50%; transform: translateX(-50%); }
.hco-team--left .hco-card__facts::before { left: 0; }

.hco-team .hco-card__facts-label {
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hco-muted, #8a8580);
	margin: 0 0 10px;
	padding: 0;
}

.hco-team .hco-card__facts ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hco-team .hco-card__facts li {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 6px;
	padding: 0;
	color: var(--hco-text, inherit);
	opacity: .85;
	background: none;
}
.hco-team .hco-card__facts li::before,
.hco-team .hco-card__facts li::marker { content: none; }

.hco-team--left .hco-card__facts li {
	padding-left: 14px;
	position: relative;
}
.hco-team--left .hco-card__facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .78em;
	width: 5px;
	height: 1px;
	background: var(--hco-accent, #1a1a1a);
}

/* ---------- Actions ---------- */

.hco-card__actions {
	margin-top: auto;
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
}
.hco-team--center .hco-card__actions { justify-content: center; }

.hco-team .hco-card__insta {
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--hco-muted, #8a8580);
	text-decoration: none;
	border: 0;
	box-shadow: none;
	transition: color .2s ease;
}
.hco-team .hco-card__insta:hover { color: var(--hco-text, #1a1a1a); }

.hco-team .hco-card__btn {
	display: inline-block;
	padding: 11px 26px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.4;
	color: var(--hco-accent, #1a1a1a);
	background: transparent;
	border: 1px solid var(--hco-accent, #1a1a1a);
	border-radius: 0;
	box-shadow: none;
	transition: background-color .25s ease, color .25s ease;
}
.hco-team .hco-card__btn:hover,
.hco-team .hco-card__btn:focus-visible {
	background: var(--hco-accent, #1a1a1a);
	color: #fff;
}

.hco-team-empty {
	padding: 20px;
	border: 1px dashed #ccc;
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.hco-team--cols-3,
	.hco-team--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.hco-team { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
	.hco-card__img { transition: none !important; }
	.hco-card:hover .hco-card__img { transform: none; }
}
