/**
 * Our Team — DR-158.
 *
 * Values from Doral Renewables Design V1, node 1465:1203. The base token block is repeated for
 * the reason careers.css gives; this page adds the deep primary the comp uses for its ground,
 * which is a step darker than the --doral-primary-800 the other pages open on.
 */

.doral-team {
	--doral-primary: #005050;
	--doral-primary-light: #007373;
	--doral-primary-800: #002828;
	--doral-primary-deep: #003838;
	--doral-primary-200: #9bb7b7;
	--doral-ink: #0e1a1a;
	--doral-paper: #fff;

	--doral-s1: 8px;
	--doral-s2: 16px;
	--doral-s3: 24px;
	--doral-s4: 32px;
	--doral-s8: 64px;
	--doral-s10: 80px;
	--doral-s21: 148px;

	--doral-radius-card-2: 16px;
	--doral-gutter: 80px;
	--doral-maxw: 1440px;
	--doral-card-h: 520px;

	--doral-font: "proxima-nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;

	font-family: var(--doral-font);
	background: var(--doral-primary-deep);
	color: var(--doral-paper);
}

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

.doral-team__inner {
	max-width: var(--doral-maxw);
	margin-inline: auto;
	padding-inline: var(--doral-gutter);
	padding-block: var(--doral-s21);
	display: flex;
	flex-direction: column;
	gap: var(--doral-s10);
}

/* ------------------------------------------------------------------ head */

.doral-team__head {
	display: flex;
	flex-direction: column;
	gap: var(--doral-s2);
}

.doral-team .doral-eyebrow {
	display: flex;
	align-items: center;
	gap: var(--doral-s2);
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--doral-paper);
}

.doral-team .doral-eyebrow__mark {
	display: inline-flex;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.doral-team .doral-eyebrow__mark svg {
	width: 100%;
	height: 100%;
	display: block;
}

/*
 * DR-222 was filed against the careers hero, but this heading had the same fault and fixing
 * one without the other would only have produced the next ticket: it was set in the body face
 * at weight 500 in title case, where every other page heading on the site resolves to
 * proxima-nova-extra-condensed, 700, uppercase, line-height 1. Matched to that.
 *
 * The size is the careers hero's too (DR-223). It was first held at 48px because this heading
 * sits over the introduction rather than in a tall hero panel, but next to every other page it
 * read as small.
 */
.doral-team__title {
	margin: 0;
	font-family: "proxima-nova-extra-condensed", "proxima-nova", -apple-system,
		BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	color: var(--doral-paper);
}

.doral-team__intro {
	max-width: 70ch;
	font-size: 18px;
	line-height: 1.6;
	color: var(--doral-primary-200);
}

.doral-team__intro > *:first-child { margin-block-start: 0; }
.doral-team__intro > *:last-child { margin-block-end: 0; }

.doral-team__empty {
	margin: 0;
	font-size: 18px;
	color: var(--doral-primary-200);
}

/* ------------------------------------------------------------------ groups */

.doral-team__group {
	display: flex;
	flex-direction: column;
	gap: var(--doral-s4);
}

/*
 * The comp shows a single group under the 48px page title, so it has no heading at this level.
 * Set smaller than the title and lighter than the names, it reads as a divider between grids
 * rather than competing with either.
 */
.doral-team__group-title {
	margin: 0;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--doral-paper);
}

/* ------------------------------------------------------------------ the bento grid */

.doral-bento {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: var(--doral-s4);
	row-gap: var(--doral-s3);
}

.doral-person {
	position: relative;
	height: var(--doral-card-h);
	border-radius: var(--doral-radius-card-2);
	overflow: hidden;
	background: var(--doral-primary-800);
}

.doral-person__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * The name sits on the photograph, so it carries its own darkness rather than trusting the
 * image behind it — these are 112 photographs nobody vetted for contrast, and several are
 * bright outdoor shots.
 */
.doral-person::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 0.8) 91.5%);
	pointer-events: none;
}

.doral-person__info {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--doral-s2);
	padding: var(--doral-s2) var(--doral-s3) var(--doral-s4);
}

.doral-person__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.doral-person__name {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--doral-paper);
}

.doral-person__role {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--doral-primary-200);
}

.doral-person__social {
	display: inline-flex;
	flex: 0 0 auto;
	padding-block-start: var(--doral-s1);
	color: var(--doral-paper);
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.doral-person__icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
}

.doral-person__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.doral-person__social:hover,
.doral-person__social:focus-visible {
	color: var(--doral-primary-200);
	transform: translateY(-2px);
}

.doral-person__social:focus-visible {
	outline: 2px solid var(--doral-paper);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.doral-person__social {
		transition: none;
	}

	.doral-person__social:hover,
	.doral-person__social:focus-visible {
		transform: none;
	}
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1200px) {
	.doral-team {
		--doral-gutter: 40px;
		--doral-s21: 96px;
		--doral-card-h: 460px;
	}

	.doral-bento {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.doral-team {
		--doral-gutter: 20px;
		--doral-s21: 64px;
		--doral-card-h: 420px;
	}

	.doral-team__inner {
		gap: var(--doral-s8);
	}

	.doral-team__group-title {
		font-size: 22px;
	}

	.doral-bento {
		grid-template-columns: 1fr;
	}

	.doral-person__name {
		font-size: 21px;
	}
}
