/*
 * SECTION STYLE: TEAM (the faces you'll actually work with).
 *
 * The design of the home page (1440 frame):
 *   - the left column: the heading (16 px) and the dark pill under it
 *   - the right column: three photos (180 x 240), the names with their
 *     roles under the first photo, the handwritten note under the second
 *     one and the tilted picture under the third one.
 */

.aitio-team {
	background: var(--aitio-white);
	padding: clamp(56px, 11.46vw, 165px) 0 clamp(48px, 7.29vw, 105px);
}

/* The column left of the sticky panel (1064 px on a 1440 screen). */
.aitio-team__inner {
	display: grid;
	grid-template-columns: 485fr 579fr;
	max-width: var(--aitio-col-panel);
}

/* ---- the heading and the button on the left ------------------------- */

.aitio-team__heading {
	max-width: 189px;
	margin: 0;
	color: var(--aitio-dark);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
}

.aitio-team__lead .aitio-btn {
	margin-top: 80.44px;
}

/* ---- the faces on the right ----------------------------------------- */

.aitio-team__photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 19.58px;
}

.aitio-team__photo {
	margin: 0;
	aspect-ratio: 180 / 240;
	overflow: hidden;
	background: var(--aitio-cream-deep);
}

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

/* ---- the three blocks under the photos ------------------------------ */

.aitio-team__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 19.58px;
	align-items: start;
	margin-top: 43.25px;
}

/* The names and their roles. */
.aitio-team__person {
	display: flex;
	flex-direction: column;
	gap: 6.29px;
	margin: 0 0 16.09px;
}

.aitio-team__name {
	color: #000000;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
}

.aitio-team__role {
	color: #000000;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
}

/* The small link under the names. */
.aitio-team__more {
	position: relative;
	display: inline-block;
	color: var(--aitio-dark);
	font-size: 8px;
	font-weight: 400;
	line-height: 2.23;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
}

.aitio-team__more:hover {
	text-decoration: underline;
}

/* A bigger click area without changing the look. */
.aitio-team__more::after {
	content: "";
	position: absolute;
	inset: -14px -10px;
}

/* The handwritten note. */
.aitio-team__note {
	margin: 14.8px 0 0 -2.81px;
	color: var(--aitio-dark);
	font-family: "Cedarville Cursive", "Segoe Script", "Bradley Hand", cursive;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.29;
	transform: rotate(4.5deg);
}

/* The tilted picture. */
.aitio-team__polaroid {
	width: 166.67px;
	height: 174.33px;
	margin: 51.58px 0 0 29.08px;
}

.aitio-team__polaroid-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 4.15px 4.15px rgba(0, 0, 0, 0.1));
}

/* ------------------------------------------------------------------
 * Smaller screens
 * --------------------------------------------------------------- */

@media (max-width: 1100px) {

	.aitio-team__inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.aitio-team__heading {
		max-width: 420px;
	}

	.aitio-team__lead .aitio-btn {
		margin-top: 32px;
	}
}

@media (max-width: 700px) {

	.aitio-team__photos {
		gap: 10px;
	}

	.aitio-team__columns {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.aitio-team__note {
		margin: 0;
		transform: none;
	}

	.aitio-team__polaroid {
		margin: 0;
	}
}
