/* Team */

/* ---------- Cards with availability (the home page layout) ---------- */
.hs-w--team.hs-team--line { border-top: 1px solid var(--h-line); }
.hs-team__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .hs-team__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hs-w .hs-team__member { display: flex; align-items: flex-start; gap: 24px; padding: 32px; min-width: 0; }
.hs-team__photo {
	flex: none; width: 176px; height: 224px; overflow: hidden;
	border-radius: calc(var(--h-r-xl) * .7); background: var(--h-ph);
}
.hs-team__photo .h-img, .hs-team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hs-team__info { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.hs-team__member .hs-team__actions { margin-top: auto; }
.hs-team__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.hs-w .hs-team__job {
	margin: 0; font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .18em; text-transform: uppercase;
	color: color-mix(in srgb, var(--h-ink) 60%, transparent);
}
.hs-w .hs-team__title { margin-bottom: 8px; font-size: 24px; line-height: 1.33; }
.hs-w .hs-team__about { margin: 0 0 16px; font-size: 14px; line-height: 1.625; color: var(--h-muted); }
.hs-team__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.hs-team__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hs-w .hs-team__member .h-btn { white-space: normal; text-align: center; }
.hs-w .hs-team__member .h-btn--outline { padding-inline: 16px; font-weight: 500; }
@media (max-width: 639px) {
	.hs-w .hs-team__member { flex-direction: column; padding: 24px; }
	.hs-team__photo { width: 100%; }
	.hs-w .hs-team__member .h-btn { font-size: 12px; }
}

/* ---------- Portrait grid ---------- */
.hs-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.hs-w .hs-team__card { display: flex; flex-direction: column; gap: 16px; border-radius: var(--h-r-xl); color: var(--h-ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.hs-w a.hs-team__card:hover { color: var(--h-ink); }
}
.hs-team__portrait { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--h-r-xl) * .7); background: var(--h-ph); }
.hs-team__meta { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 8px; }
.hs-team__name {
	font-family: var(--h-font-head); font-weight: var(--h-head-weight);
	text-transform: var(--h-sub-case, var(--h-head-case)); letter-spacing: var(--h-head-track);
	font-size: 24px; line-height: 1.33;
}
.hs-team__role { font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--h-ink) 60%, transparent); }

.hs-team__list { display: flex; flex-direction: column; gap: 32px; }
.hs-team__person {
	display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 32px;
	background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-r-xl);
}
.hs-team__portrait--lg { flex: 0 1 340px; min-width: min(240px, 100%); }
.hs-team__body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 12px; }
.hs-w .hs-team__heading { font-size: clamp(28px, 3vw, 36px); line-height: 1.11; }
.hs-team__bio { max-width: 620px; font-size: 16px; line-height: 1.625; color: var(--h-muted); }
.hs-team__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hs-team__person .hs-team__actions { margin-top: 8px; }
.hs-team__person .hs-team__actions .h-btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
@media (max-width: 640px) {
	.hs-team__person { gap: 20px; padding: 16px; }
	.hs-team__portrait--lg { flex-basis: 100%; }
	.hs-team__body { padding: 4px; }
}

/* No portrait (visitors): initials in the look's tint instead of an empty box. */
.hs-w .hs-team__portrait .h-mono, .hs-w .hs-team__photo .h-mono {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: var(--h-tint);
	background-image: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--h-surface) 55%, transparent), transparent 60%);
}
.hs-w .hs-team__portrait .h-mono__letters, .hs-w .hs-team__photo .h-mono__letters {
	font-family: var(--h-font-head); font-weight: var(--h-head-weight, 600); text-transform: var(--h-head-case, none);
	font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: .02em;
	color: color-mix(in srgb, var(--h-accent) 72%, var(--h-ink));
}
