/*
 * SECTION STYLE: PEOPLE LIST.
 */

.aitio-people__head {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: end;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.aitio-people__heading {
	margin: 0;
	font-size: var(--aitio-h2);
	max-width: 12ch;
}

.aitio-people__intro {
	max-width: 56ch;
	color: var(--aitio-ink-soft);
}

.aitio-people__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: start;
}

.aitio-people__entry {
	display: flex;
	flex-direction: column;
}

.aitio-people__stage {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--aitio-radius);
	overflow: hidden;
	background: var(--aitio-cream-deep);
}

.aitio-people__portrait {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--base) var(--ease);
}

.aitio-people__portrait.is-active {
	opacity: 1;
	visibility: visible;
}

.aitio-people__portrait-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aitio-people__portrait-placeholder,
.aitio-people__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 20%, var(--aitio-yellow-soft), transparent 55%),
		var(--aitio-cream-deep);
}

.aitio-people__expanded-image {
	display: none;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 370 / 261;
}

.aitio-people__expanded-image-picture,
.aitio-people__expanded-image-picture img {
	display: block;
	width: 100%;
	height: 100%;
}

.aitio-people__expanded-image-picture img {
	object-fit: cover;
}

.aitio-people__list {
	display: flex;
	flex-direction: column;
}

.aitio-people__row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name mark"
		"thumb role mark";
	column-gap: 16px;
	align-items: center;
	width: 100%;
	padding: 20px 0;
	border: 0;
	border-top: 1px solid var(--aitio-line);
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.aitio-people__entry:last-child .aitio-people__row {
	border-bottom: 1px solid var(--aitio-line);
}

.aitio-people__row.is-active {
	color: var(--aitio-black);
}

.aitio-people__thumb {
	grid-area: thumb;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border-radius: 50%;
	display: none;
	background: var(--aitio-cream-deep);
}

.aitio-people__thumb-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aitio-people__name {
	grid-area: name;
	font-size: var(--aitio-h5);
	font-weight: 600;
	line-height: 1.15;
}

.aitio-people__role {
	grid-area: role;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--aitio-ink-faint);
	margin-top: 6px;
}

.aitio-people__mark {
	grid-area: mark;
	font-size: 24px;
	line-height: 1;
	color: var(--aitio-ink-faint);
	transition: transform var(--fast) var(--ease), color var(--fast) ease;
}

.aitio-people__row.is-active .aitio-people__mark {
	transform: rotate(45deg);
	color: var(--aitio-black);
}

.aitio-people__link {
	display: inline-block;
	margin-top: 26px;
}

@media (max-width: 900px) {

	.aitio-people__head,
	.aitio-people__layout {
		grid-template-columns: 1fr;
	}

	.aitio-people__stage {
		display: none;
	}

	.aitio-people__thumb {
		display: block;
	}
}
