/* ==========================================================================
   Leap Dynamics: people
   Kylan Walters, 2026

   The executive cards and the profile page, shared by leadership.php, each
   executive's own page (kylan-walters.php) and the Leadership section of
   about.php. Only those pages load it, through @section('styles'). Every
   colour is a token from css/leap-core.css, so the dark theme needs nothing
   extra here: the navy portrait square and the red rule are brand colours
   that stay the same in both themes, and the card surface, lines and text
   follow the theme tokens.
   ========================================================================== */

/* ---- The cards ---------------------------------------------------------- */

/* auto-fill rather than auto-fit on purpose: with one executive on the list,
   auto-fit would stretch the lone card across the whole 1440px shell. auto-fill
   keeps the empty columns, so one card is a card and four cards are a row. */
.ld-people {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	margin-top: 40px;
}

.ld-person {
	display: flex;
	flex-direction: column;
	background: var(--surface-2);
	border: 1px solid var(--line);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.ld-person:hover {
	border-color: var(--red);
	box-shadow: 0 10px 28px var(--shadow);
}

/* The portrait square: the photo when there is one, otherwise the monogram on
   navy. The red rule along the bottom edge carries the brand into the card. */
.ld-person-portrait {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
	border-bottom: 4px solid var(--red);
	overflow: hidden;
}
.ld-person-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ld-person-mono {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
	font-size: 96px;
	font-weight: 400;
	letter-spacing: 4px;
	color: #fff;
	user-select: none;
}

.ld-person-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 22px 24px 26px;
}
.ld-person-name {
	margin: 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--heading);
}
.ld-person-name a:hover { color: var(--red); }
.ld-person-title {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--red);
}
.ld-person-summary {
	flex: 1;
	margin: 4px 0 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--ink-soft);
}
.ld-person-body .ld-arrowlink {
	margin-top: 14px;
	font-size: 13px;
}

/* The link under the cards on the about page. */
.ld-people-more { margin: 26px 0 0; }

/* ---- "How the airline is run" panels (leadership page) ------------------- */

.ld-principle h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--heading);
}
.ld-principle p {
	margin: 0;
	font-weight: 300;
	color: var(--muted);
}

/* ---- The profile page --------------------------------------------------- */

.ld-profile {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

/* The side panel stays in view while the biography scrolls past it. */
.ld-profile-aside {
	position: sticky;
	top: 24px;
}
.ld-person-portrait--large { border-bottom-width: 5px; }
.ld-profile-role {
	margin: 18px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--red);
}
.ld-profile-facts {
	margin: 18px 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
}
.ld-profile-facts > div {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 15px;
}
.ld-profile-facts dt {
	margin: 0;
	font-weight: 500;
	color: var(--muted);
}
.ld-profile-facts dd {
	margin: 0;
	font-weight: 400;
	color: var(--heading);
}
.ld-profile-aside .ld-btn {
	margin-top: 22px;
	width: 100%;
	text-align: center;
}

.ld-profile-lead {
	font-size: 21px;
	font-weight: 300;
	line-height: 1.55;
	color: var(--heading);
}
.ld-profile-quote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--red);
}
.ld-profile-quote p {
	margin: 0;
	font-size: 19px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.5;
	color: var(--heading);
}
.ld-profile-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---- Narrow screens ----------------------------------------------------- */

@media (max-width: 800px) {
	.ld-profile {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.ld-profile-aside { position: static; }
	.ld-profile-aside .ld-person-portrait { max-width: 220px; }
	.ld-person-mono { font-size: 72px; }
	.ld-profile-lead { font-size: 18px; }
	.ld-people {
		gap: 18px;
		margin-top: 28px;
	}
}
