/**
 * Layout: People — Leadership Grid.
 *
 * Section header: assets/css/layout.css (.gm-section-header).
 * Round headshot on a purple glow, name, role, "LinkedIn →". Two per row,
 * four from 1024px.
 *
 * @package GagaMuller
 */

.gm-people__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 1.4rem + 2vw, 3.5rem) var(--gm-space-24);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.gm-people__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gm-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.gm-person__photo {
	width: clamp(7.5rem, 5.5rem + 6vw, 10rem); /* 120 → 160 */
	aspect-ratio: 1;
	margin-bottom: var(--gm-space-20);
	overflow: hidden;
	border-radius: 50%;
	/* Brand gradient behind the cut-out headshots: black at the top to
	 * purple at the bottom (design reference). */
	background: linear-gradient(180deg, var(--gm-color-black) 0%, #1e0b4a 40%, #4a12b0 75%, var(--gm-color-purple) 100%);
	transition: box-shadow 400ms var(--gm-ease);
}

.gm-person__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--gm-ease), filter 400ms var(--gm-ease);
}

/* Black and white, colour on hover / keyboard focus. Touch screens (no
 * hover) keep the photos in colour. */
@media (hover: hover) {
	.gm-person__image {
		filter: grayscale(1) contrast(1.05);
	}

	.gm-person:hover .gm-person__image,
	.gm-person:focus-within .gm-person__image {
		filter: none;
		transform: scale(1.05);
	}

	.gm-person:hover .gm-person__photo,
	.gm-person:focus-within .gm-person__photo {
		box-shadow: 0 12px 32px rgb(114 21 244 / 0.25);
	}
}

.gm-person__name {
	margin: 0;
	color: var(--gm-text);
	font-family: var(--gm-font-heading);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: var(--gm-weight-bold);
	line-height: 1.2;
}

.gm-person__role {
	max-width: 15rem;
	margin: var(--gm-space-4) 0 0;
	color: var(--gm-text-secondary);
	font-size: var(--gm-text-body);
	line-height: 1.35;
}

.gm-person .gm-person__link,
.gm-person .gm-person__link:visited {
	display: inline-flex;
	gap: 0.35em;
	align-items: center;
	margin-top: var(--gm-space-10);
	color: var(--gm-accent);
	font-size: var(--gm-text-body);
	font-weight: var(--gm-weight-bold);
	text-decoration: none;
}

.gm-person .gm-person__link:hover,
.gm-person .gm-person__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.gm-person__link:focus-visible {
	outline: var(--gm-focus-width) solid var(--gm-focus-color);
	outline-offset: var(--gm-focus-offset);
	border-radius: 2px;
}

.gm-person__summary {
	max-width: 17rem;
	margin: var(--gm-space-10) 0 0;
	color: var(--gm-text-secondary);
	font-size: var(--gm-text-sm);
	line-height: 1.45;
}

/* Site button for light sections (gm-btn--primary gm-btn--sm). Pushed to
   the bottom of the card so buttons line up across each row. */
.gm-person__summary {
	margin-bottom: var(--gm-space-16);
}

.gm-person__cta {
	margin-top: auto;
	cursor: pointer;
}

/* ---- Profile pop-up -------------------------------------------------- */

.gm-profile {
	width: min(44rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--gm-color-white);
	color: var(--gm-color-black);
	text-align: start;
	box-shadow: 0 24px 64px rgb(16 16 16 / 0.3);
}

.gm-profile::backdrop {
	background: rgb(16 16 16 / 0.6);
	backdrop-filter: blur(4px);
}

.gm-profile[open] {
	animation: gm-profile-in 250ms var(--gm-ease);
}

@keyframes gm-profile-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.gm-profile__inner {
	position: relative;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.gm-profile__close {
	position: absolute;
	top: var(--gm-space-16);
	right: var(--gm-space-16);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f2f2f5;
	color: var(--gm-color-black);
	cursor: pointer;
}

.gm-profile__close .gm-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.gm-profile__close:hover {
	background: var(--gm-color-purple);
	color: var(--gm-color-white);
}

.gm-profile__close:focus-visible {
	outline: var(--gm-focus-width) solid var(--gm-focus-color);
	outline-offset: 2px;
}

.gm-profile__head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gm-space-20);
	align-items: center;
	margin-bottom: var(--gm-space-24);
	padding-right: 3rem;
}

.gm-profile__photo {
	flex: 0 0 auto;
	width: 7rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--gm-color-black) 0%, #1e0b4a 40%, #4a12b0 75%, var(--gm-color-purple) 100%);
}

.gm-profile__photo .gm-person__image {
	filter: none;
	transform: none;
}

.gm-profile__name {
	margin: 0;
	font-family: var(--gm-font-heading);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: var(--gm-weight-bold);
	line-height: 1.15;
}

.gm-profile__role {
	margin: var(--gm-space-4) 0 0;
	color: var(--gm-color-purple);
	font-weight: 600;
}

.gm-profile__linkedin {
	display: inline-block;
	margin-top: var(--gm-space-8);
	color: var(--gm-color-purple);
	font-weight: var(--gm-weight-bold);
	text-decoration: none;
}

.gm-profile__linkedin:hover {
	text-decoration: underline;
}

.gm-profile__body p {
	margin: 0 0 var(--gm-space-16);
	line-height: 1.6;
}

.gm-profile__label {
	margin: var(--gm-space-24) 0 var(--gm-space-12);
	font-family: var(--gm-font-heading);
	font-size: 1.125rem;
	font-weight: var(--gm-weight-bold);
}

.gm-profile__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gm-space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-profile__tags li {
	padding: 0.35rem 0.85rem;
	border-radius: var(--gm-radius-pill);
	background: #f1e9ff;
	color: #3b0a85;
	font-size: var(--gm-text-sm);
	font-weight: 500;
}

.gm-profile__list {
	margin: 0;
	padding-left: 1.2rem;
}

.gm-profile__list li {
	margin-bottom: var(--gm-space-6);
	line-height: 1.5;
}

/* Quote: plain pull quote, purple rule, purple phrase. */
.gm-profile__quote {
	margin: var(--gm-space-24) 0;
	padding: var(--gm-space-4) 0 var(--gm-space-4) var(--gm-space-20);
	border-left: 3px solid var(--gm-color-purple);
}

.gm-profile__body .gm-profile__quote p {
	margin: 0;
	font-size: var(--gm-text-body-lg);
	font-style: italic;
	line-height: 1.5;
}

.gm-profile__quote .gm-highlight {
	background: none !important;
	color: var(--gm-color-purple) !important;
	-webkit-text-fill-color: currentColor !important;
}

/* Career highlights: big purple year, text below. */
.gm-profile__timeline {
	margin: 0;
	padding: 0 0 0 var(--gm-space-20);
	border-left: 2px solid #e6dcff;
	list-style: none;
}

.gm-profile__timeline li {
	position: relative;
	margin-bottom: var(--gm-space-20);
}

.gm-profile__timeline li::before {
	position: absolute;
	top: 0.75rem;
	left: calc(-1 * var(--gm-space-20) - 6px);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gm-color-purple);
	content: "";
}

.gm-profile__year {
	display: block;
	color: var(--gm-color-purple);
	font-family: var(--gm-font-heading);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: var(--gm-weight-bold);
	line-height: 1.1;
}

.gm-profile__event {
	display: block;
	margin-top: var(--gm-space-4);
	line-height: 1.45;
}

html.gm-profile-open {
	overflow: hidden;
}

/* ---- Logo pattern band (between sections) ---------------------------- */

.gm-shape-band {
	display: grid;
	gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
	padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0;
	overflow: hidden;
	background: var(--gm-color-surface-subtle); /* Same as the people sections around it. */
	color: var(--gm-color-purple);
}

.gm-shape-band__defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.gm-shape-band__row {
	display: flex;
	gap: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
	justify-content: center;
}

.gm-shape-band__icon {
	flex: 0 0 auto;
	width: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
	height: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
	opacity: 0.12;
	animation: gm-shape-wave 4.2s ease-in-out infinite;
	animation-delay: var(--gm-d, 0ms);
}

@keyframes gm-shape-wave {
	0%,
	100% {
		opacity: 0.12;
	}

	45% {
		opacity: 0.95;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-shape-band__icon {
		opacity: 0.35;
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-profile[open] {
		animation: none;
	}

	.gm-person__image,
	.gm-person__photo {
		transition: none;
	}

	.gm-person:hover .gm-person__image,
	.gm-person:focus-within .gm-person__image {
		transform: none;
	}
}
