/* ═════════════════════════════════════════════════════════════════
   PAGE — WHO WE ARE
   "About → Who we are" leadership team page.

   Class prefix: `.wwa-*` (wwa = who we are).
   ═════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────
   PAGE BACKGROUND
   ───────────────────────────────────────────────────────────────── */
.wwa-page {
	background: var(--cream);
}


/* ─────────────────────────────────────────────────────────────────
   HEADER BANDS — eyebrow + stacked headline + lede.
   ───────────────────────────────────────────────────────────────── */
.wwa-band {
	padding-top: clamp(80px, 9vw, 124px);
	padding-bottom: clamp(40px, 5vw, 80px);
}
.wwa-band-team {
	padding-top: clamp(100px, 11vw, 144px);
	overflow-x: clip;
}

.wwa-headline {
	margin: 0 0 clamp(32px, 4vw, 50px);
}
.wwa-headline .hl-line {
	display: block;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 0.96;
}
.wwa-headline .it-tail.wwa-it-tail {
	display: block;
	text-align: left;
	white-space: normal;
	margin-top: 0;
	line-height: 1.02;
	letter-spacing: 0;
}

.wwa-lede {
	max-width: 78ch;
	font-size: var(--fs-body-sm);
	line-height: 1.54;
	color: rgba(26, 26, 26, 0.75);
	margin: 0;
}


/* ─────────────────────────────────────────────────────────────────
   GRID SECTIONS
   ───────────────────────────────────────────────────────────────── */
.wwa-grid-section {
	padding-top: 0;
	padding-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────────
   GRID — 2 columns, equal width.
   ───────────────────────────────────────────────────────────────── */
.wwa-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(20px, 2.2vw, 32px);
	row-gap: clamp(20px, 2.2vw, 32px);
	align-items: stretch;
}


/* ─────────────────────────────────────────────────────────────────
   CARD — base styles shared by all states.
   Background, shadow, and photo height all animate on toggle.
   ───────────────────────────────────────────────────────────────── */
.wwa-card {
	background: #EEEEED;
	border-radius: 14px;
	padding: clamp(20px, 2.2vw, 30px);
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 1.8vw, 24px);
	overflow: hidden;
	position: relative;
	transition:
		background 0.35s ease,
		box-shadow 0.35s ease;
}

/* Pin photo to the bottom of collapsed cards so it stays anchored
   when the card stretches to match its taller row partner. */
.wwa-card:not(.wwa-card-location):not(.is-expanded) {
	justify-content: space-between;
}

.wwa-card.is-expanded {
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 30px 90px 0px rgba(0, 0, 0, 0.05);
}


/* ─────────────────────────────────────────────────────────────────
   CARD HEADER — flex row: [thumbnail?] [meta column] [toggle btn]
   ───────────────────────────────────────────────────────────────── */
.wwa-card-head {
	display: flex;
	align-items: flex-start;
	gap: 0;
}


/* ─────────────────────────────────────────────────────────────────
   THUMBNAIL — small headshot shown only in expanded state.
   Animates from 0×0 to 82×82 so the photo appears to shrink
   into the header as the large card photo collapses.
   ───────────────────────────────────────────────────────────────── */
.wwa-card-thumb {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	overflow: hidden;
	border-radius: 6px;
	opacity: 0;
	margin-right: 0;
	position: relative;
	transition:
		width  0.42s cubic-bezier(0.16, 1, 0.3, 1),
		height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.28s ease 0.06s,
		margin-right 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.wwa-card.is-expanded .wwa-card-thumb {
	width: 82px;
	height: 82px;
	opacity: 1;
	margin-right: clamp(16px, 1.8vw, 24px);
}

/* Bokeh background + green tint — mirrors .wwa-card-photo::before/::after
   so the miniature looks identical to the large card photo, only smaller. */
.wwa-card-thumb::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('../../img/team/card-bg.jpg');
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.wwa-card-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(11, 102, 35, 0.15);
	z-index: 2;
	pointer-events: none;
}

.wwa-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 10%;
	position: relative;
	z-index: 1;
}


/* ─────────────────────────────────────────────────────────────────
   CARD META — name / title / linkedin column.
   ───────────────────────────────────────────────────────────────── */
.wwa-card-meta {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wwa-card-meta-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.wwa-card-name {
	margin: 0;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.1;
	color: var(--orange);
	letter-spacing: -0.01em;
}

.wwa-card-title {
	margin: 0;
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: clamp(14px, 1.3vw, 18px);
	line-height: 1.54;
	color: rgba(26, 26, 26, 0.75);
}

@media (min-width: 901px) {
	.wwa-card-title { white-space: nowrap; }
}

.wwa-card-linkedin {
	display: inline-flex;
	color: var(--ink);
	text-decoration: none;
	transition: color .15s ease;
	width: 23px;
	height: 23px;
}
.wwa-card-linkedin:hover { color: var(--orange); }
.wwa-card-linkedin svg { display: block; width: 100%; height: 100%; }
.wwa-card-linkedin.is-disabled {
	cursor: default;
	color: rgba(26, 26, 26, 0.35);
	pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────
   TOGGLE BUTTON — "More info +" (collapsed) / "— Close" (expanded).
   ───────────────────────────────────────────────────────────────── */
.wwa-card-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	padding: 0;
	font-family: var(--f-sans);
	font-weight: 500;
	font-size: clamp(14px, 1.4vw, 20px);
	line-height: 1;
	color: var(--ink);
	cursor: pointer;
	white-space: nowrap;
	transition: color .15s ease;
}
.wwa-card-toggle:hover { color: var(--orange); }

.wwa-toggle-open,
.wwa-toggle-close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Show "More info +" by default, "Close —" when expanded. */
.wwa-toggle-close { display: none; }
.wwa-card.is-expanded .wwa-toggle-open  { display: none; }
.wwa-card.is-expanded .wwa-toggle-close { display: inline-flex; }

.wwa-toggle-icon {
	display: block;
	flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────
   PHOTO — large image that fills the card bottom when collapsed.
   Animates height from 480px → 0 when the card expands.
   ───────────────────────────────────────────────────────────────── */


.wwa-card:not(.wwa-card-location) .wwa-card-photo img {
	z-index: 2;
}

.wwa-card-photo {
	height: clamp(260px, 33vw, 480px);
	overflow: hidden;
	border-radius: 10px;
	position: relative;
	width: 100%;
	flex-shrink: 0;
	transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.wwa-card.is-expanded .wwa-card-photo {
	height: 0;
}

.wwa-card-photo img {
	

	max-width: none;
	display: block;
	pointer-events: none;
	object-fit: cover;
	border-radius: 10px;
	width: 100%;
}

/* object-fit variant — used when a card opts in via photo_class="wwa-photo-cover".
   Replicates the insights-featured-img crop: fill container, anchor top-centre. */
.wwa-photo-cover img {
	inset: 0;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	transform: none;
	object-fit: cover;
	object-position: top center;
}


/* ─────────────────────────────────────────────────────────────────
   BIO — paragraphs with hairline dividers.
   CSS drawer animation: max-height 0 → large ceiling.
   ───────────────────────────────────────────────────────────────── */
.wwa-card-bio {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: -24px;
	transition:
		max-height 480ms cubic-bezier(0.16, 1, 0.3, 1),
		opacity 260ms ease 60ms,
		margin-top 320ms cubic-bezier(0.16, 1, 0.3, 1);
	will-change: max-height, opacity;
}

.wwa-card.is-expanded .wwa-card-bio {
	max-height: 1400px;
	opacity: 1;
	margin-top: 0;
}

/* `hidden` is the no-JS fallback — JS strips it on boot so the
   CSS transition can run. Override display:none after class fires. */
.wwa-card.is-expanded .wwa-card-bio[hidden] { display: flex; }

.wwa-card-bio-item {
	margin: 0;
	font-family: var(--f-sans);
	font-weight: 400;
	font-size: clamp(14px, 1.5vw, 22px);
	line-height: 1.55;
	color: rgba(26, 26, 26, 0.75);
}

.wwa-card-bio-rule {
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--rule);
}


/* ─────────────────────────────────────────────────────────────────
   MIAMI LOCATION CARD — circular photo + city name, centred.
   ───────────────────────────────────────────────────────────────── */
.wwa-card-location {
	background: linear-gradient(
		111.34deg,
		#f5f3ef                       19.1%,
		rgba(250, 249, 247, 0.83)     23.84%,
		rgba(255, 255, 255, 0.80)     29.53%,
		rgba(251, 250, 249, 0.80)     33.8%,
		#f5f3ef                       45.52%
	);
	border: 1px solid #d7d5d0;
	justify-content: center;
}

.wwa-location-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	width: 100%;
}

.wwa-location-circle {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.wwa-location-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.wwa-location-name {
	margin: 0;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.1;
	color: var(--green);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-align: center;
}


/* ─────────────────────────────────────────────────────────────────
   FINAL CTA — GREEN band + ORANGE button.
   ───────────────────────────────────────────────────────────────── */
.wwa-finalcta {
	background: var(--green);
}
.wwa-finalcta h2 {
	display: flex;
	flex-direction: column;
	letter-spacing: -0.02em;
	line-height: 0.96;
}
.wwa-finalcta h2 .hl-line { line-height: 0.96; }
.wwa-finalcta h2 .it-tail.cream {
	color: var(--cream);
	display: inline-block;
}
.wwa-finalcta p {
	font-size: var(--fs-body-sm);
	line-height: 1.54;
}
.wwa-finalcta .btn,
.wwa-finalcta .btn-orange {
	background: var(--orange);
	color: var(--cream);
	border: 1px solid rgba(26, 26, 26, 0.15);
	border-radius: 12px;
	padding: 22px 32px;
	font-weight: 600;
	width: auto;
}
.wwa-finalcta .btn:hover,
.wwa-finalcta .btn-orange:hover {
	background: #d94300;
	box-shadow: 0 10px 30px rgba(255, 79, 0, .35);
	transform: translateY(-1px);
}


/* ─────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.wwa-card,
	.wwa-card-photo,
	.wwa-card-thumb,
	.wwa-card-bio {
		transition: none !important;
	}
}


.wwa-headline .wwa-headline-mobile { display: none; }
.wwa-ittail-mobile { display: none; }


/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE — single column under 900px.
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.wwa-headline .wwa-headline-desktop { display: none; }
	.wwa-headline .wwa-headline-mobile { display: block; }
	.wwa-ittail-desktop { display: none; }
	.wwa-ittail-mobile { display: block; }

	.wwa-grid {
		grid-template-columns: 1fr;
	}
	.wwa-card-photo {
		height: 280px;
	}
	.wwa-card-location .wwa-card-photo {
		height: 280px;
	}

	.wwa-it-tail { line-height: clamp(30px, 6.94vw, 90px) !important }
	.wwa-ittail-industry {
		margin-bottom: 14px;
	}
}
