/**
 * Staff / founder profile: cover photo, overlapping round portrait, name
 * with one-line meta, biography, previous/next, tabbed sections, colleagues.
 */

.wt-profile {
	--wt-portrait: 220px;
}

/* Cover ---------------------------------------------------------------------- */

.wt-profile-cover {
	position: relative;
	height: clamp(220px, 21vw, 260px); /* Half the original; 220px floor keeps the portrait clear of the floating header on phones. */
	overflow: hidden;
	background-color: var(--wt-navy);
	background-image: repeating-radial-gradient(circle at 80% 120%, rgba(255, 255, 255, 0.05) 0 1.5px, transparent 1.5px 42px);
}

/* The coloured rule along the foot of the cover. */
.wt-profile-cover::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	height: 5px;
	background: linear-gradient(90deg, var(--wt-navy) 0 34%, var(--wt-white) 34% 36%, var(--wt-yellow) 36% 100%);
}

.wt-profile-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, color-mix(in srgb, var(--wt-navy-dark) 75%, transparent) 0%, color-mix(in srgb, var(--wt-navy-dark) 25%, transparent) 45%, color-mix(in srgb, var(--wt-navy) 55%, transparent) 100%);
}

.wt-profile-cover img.wt-profile-cover__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Header ------------------------------------------------------------------- */

.wt-profile-wrap {
	position: relative;
	z-index: 3;
}

.wt-profile-head {
	display: grid;
	grid-template-columns: var(--wt-portrait) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-top: calc(var(--wt-portrait) / -2);
}

.wt-profile-head__portrait {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--wt-portrait);
	height: var(--wt-portrait);
	overflow: hidden;
	border: 6px solid var(--wt-white);
	border-radius: 50%;
	background-color: var(--wt-navy);
	background-image: repeating-radial-gradient(circle at 30% 120%, rgba(255, 255, 255, 0.07) 0 1.5px, transparent 1.5px 22px);
	box-shadow: 0 0 0 1.5px var(--wt-navy), 0 22px 44px -20px rgba(10, 26, 74, 0.55);
}

.wt-profile-head__portrait img.wt-profile-head__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 12%; /* Faces sit in the upper part of portraits. */
}

.wt-profile-head__monogram {
	color: var(--wt-yellow);
	font-size: 4.25rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.wt-profile-head__text {
	/* Start below the cover's lower edge, beside the overlapping portrait. */
	padding-top: calc(var(--wt-portrait) / 2 + 28px);
}

.wt-profile-head .wt-breadcrumbs {
	margin-bottom: 14px;
	border-color: var(--wt-line);
	background: var(--wt-white);
	backdrop-filter: none;
}

.wt-profile-head .wt-breadcrumbs a {
	color: var(--wt-ink);
}

.wt-profile-head .wt-breadcrumbs a:hover,
.wt-profile-head .wt-breadcrumbs [aria-current] {
	color: var(--wt-navy);
}

.wt-profile-head .wt-breadcrumbs li:not(:last-child)::after {
	color: var(--wt-line-strong);
}

.wt-profile-head__name {
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 1.5px solid var(--wt-navy);
	color: var(--wt-navy);
	font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.625rem);
	line-height: 1.12;
}

.wt-profile-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 0;
	margin-top: 14px;
	list-style: none;
	font-size: 1rem;
}

.wt-profile-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wt-ink);
}

.wt-profile-meta li:not(:last-child)::after {
	content: "";
	width: 1px;
	height: 16px;
	margin-inline: 14px;
	background: var(--wt-line-strong);
}

.wt-profile-meta .wt-icon {
	color: var(--wt-navy);
}

.wt-profile-meta a {
	color: var(--wt-navy);
	text-decoration: none;
}

.wt-profile-meta a:hover {
	text-decoration: underline;
}

/* Biography ---------------------------------------------------------------- */

.wt-profile-bio {
	margin: 36px 0 0;
	padding-inline-start: calc(var(--wt-portrait) + 40px);
}

.wt-profile-bio .wt-prose {
	max-width: 78ch;
	font-size: 1.0625rem;
}

.wt-profile-quote {
	max-width: 70ch;
	margin: 32px 0 0;
	padding: 24px 28px;
	border-radius: var(--wt-r-lg) var(--wt-r-lg) var(--wt-r-lg) 0;
	background: var(--wt-sky);
	color: var(--wt-ink);
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.5;
}

.wt-profile-quote p {
	margin: 0;
}

/* Previous / next ---------------------------------------------------------- */

.wt-profile-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 48px 0 0;
	margin-inline-start: calc(var(--wt-portrait) + 40px);
	border-block: 1px solid var(--wt-line);
}

.wt-profile-pager__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 8px;
	color: var(--wt-ink);
	text-decoration: none;
}

.wt-profile-pager__link--next {
	justify-content: flex-end;
	border-inline-start: 1px solid var(--wt-line);
	text-align: end;
}

.wt-profile-pager__link > span {
	display: grid;
	gap: 2px;
}

.wt-profile-pager__label {
	color: var(--wt-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wt-profile-pager__name {
	font-weight: 600;
}

.wt-profile-pager__link .wt-icon {
	color: var(--wt-navy);
	transition: transform 220ms var(--wt-ease);
}

.wt-flip {
	transform: scaleX(-1);
}

.wt-profile-pager__link:hover .wt-icon {
	transform: translateX(3px);
}

.wt-profile-pager__link:hover .wt-flip {
	transform: scaleX(-1) translateX(3px);
}

/* Tabs --------------------------------------------------------------------- */

.wt-profile-tabs {
	margin: 56px auto var(--wt-section-y);
	max-width: 1000px;
}

.wt-profile-tabs__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.wt-profile-tabs__tab {
	min-height: 44px;
	padding: 10px 18px;
	border: 1.5px solid var(--wt-navy);
	border-radius: var(--wt-r-sm);
	background: var(--wt-navy);
	color: var(--wt-white);
	font-size: 0.96875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

.wt-profile-tabs__tab:hover {
	background: var(--wt-navy-dark);
}

.wt-profile-tabs__tab[aria-selected="true"] {
	background: var(--wt-white);
	color: var(--wt-navy);
}

.wt-profile-panel {
	padding: clamp(24px, 3vw, 36px);
	border: 1.5px solid var(--wt-navy);
	border-radius: 24px;
	background: var(--wt-white);
}

.wt-profile-panel + .wt-profile-panel {
	margin-top: 20px;
}

/* With JavaScript, only the selected panel shows. */
.wt-profile-tabs.is-ready .wt-profile-panel[data-wt-hidden] {
	display: none;
}

.wt-profile-tabs.is-ready .wt-profile-panel + .wt-profile-panel {
	margin-top: 0;
}

.wt-profile-panel:focus-visible {
	outline-offset: 4px;
}

.wt-profile-panel__title {
	margin: 0 0 22px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid var(--wt-navy);
	color: var(--wt-navy);
	font-size: 1.375rem;
}

.wt-profile-panel__sub {
	margin: 26px 0 12px;
	color: var(--wt-ink);
	font-size: 1.0625rem;
}

.wt-profile-panel__sub:first-of-type {
	margin-top: 0;
}

.wt-profile-list {
	display: grid;
	gap: 10px;
	padding-inline-start: 1.25em;
}

.wt-profile-list li::marker {
	color: var(--wt-navy);
}

.wt-profile-list--rich li {
	padding-inline-start: 4px;
}

.wt-profile-list__meta {
	display: block;
	color: var(--wt-muted);
	font-size: 0.9375rem;
}

.wt-profile-numbered {
	display: grid;
	gap: 10px;
	padding-inline-start: 1.5em;
}

.wt-profile-numbered li::marker {
	color: var(--wt-navy);
	font-weight: 600;
}

.wt-profile-timeline {
	display: grid;
	gap: 0;
	list-style: none;
}

.wt-profile-timeline li {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	padding-block: 16px;
	border-top: 1px solid var(--wt-line);
}

.wt-profile-timeline li:first-child {
	padding-top: 0;
	border-top: 0;
}

.wt-profile-timeline__when {
	color: var(--wt-navy);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.wt-profile-timeline p {
	margin: 0;
}

.wt-profile-timeline p + p {
	margin-top: 6px;
	color: var(--wt-muted);
}

/* Colleagues --------------------------------------------------------------- */

.wt-profile-team {
	padding-block: 0 var(--wt-section-y);
}

.wt-profile-team__title {
	margin-bottom: 32px;
	font-size: 1.5rem;
	text-align: center;
	text-transform: uppercase;
}

.wt-profile-team__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
	list-style: none;
}

.wt-colleague {
	display: grid;
	justify-items: center;
	gap: 4px;
	width: 180px;
	text-align: center;
	text-decoration: none;
}

.wt-colleague__portrait {
	position: relative;
	display: grid;
	place-items: center;
	width: 168px;
	height: 168px;
	margin-bottom: 12px;
	overflow: hidden;
	border: 1.5px solid var(--wt-navy);
	border-radius: 50%;
	background: var(--wt-navy);
	transition: transform 260ms var(--wt-ease), box-shadow 260ms ease;
}

.wt-colleague__portrait img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.wt-colleague:hover .wt-colleague__portrait {
	box-shadow: var(--wt-shadow);
	transform: translateY(-4px);
}

.wt-colleague__monogram {
	color: var(--wt-yellow);
	font-size: 2.75rem;
	font-weight: 600;
}

.wt-colleague__name {
	color: var(--wt-navy);
	font-weight: 600;
	line-height: 1.3;
}

.wt-colleague__role {
	color: var(--wt-muted);
	font-size: 0.875rem;
}

/* Small screens ------------------------------------------------------------ */

@media (max-width: 860px) {
	.wt-profile {
		--wt-portrait: 180px;
	}

	.wt-profile-head__text {
		padding-top: 0;
	}

	.wt-profile-head {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		justify-items: center;
		text-align: center;
	}

	.wt-profile-head .wt-breadcrumbs {
		justify-content: center;
	}

	.wt-profile-meta {
		justify-content: center;
	}

	.wt-profile-bio,
	.wt-profile-pager {
		margin-inline-start: 0;
		padding-inline-start: 0;
	}
}

@media (max-width: 560px) {
	.wt-profile-meta {
		flex-direction: column;
		align-items: center;
	}

	.wt-profile-meta li:not(:last-child)::after {
		display: none;
	}

	.wt-profile-timeline li {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.wt-profile-tabs__bar {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.wt-profile-tabs__tab {
		flex: none;
	}
}
