.agents-header {
	padding-bottom: 40px;
}

.agents-header .section__inner {
	max-width: var(--container);
}

.agents-header h1 {
	font-size: clamp(56px, 7.5vw, 96px);
	line-height: 1;
}

.agents-header p:last-child {
	max-width: 672px;
	color: var(--color-text);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.625;
}

.title-rule {
	width: 128px;
	height: 6px;
	margin: 28px 0 32px;
	background: var(--color-teal);
}

.agents-grid-section {
	padding-top: 0;
}

.agents-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 64px;
	width: min(100%, var(--container));
	margin: 0 auto;
}

.agent-card {
	position: relative;
	overflow: hidden;
	min-height: 540px;
	border: 1px solid rgba(188, 201, 200, 0.2);
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.agent-card:hover,
.agent-card:focus-within {
	border-color: rgba(0, 148, 146, 0.18);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
	transform: translateY(-6px);
}

.agent-card figure {
	height: 322px;
	overflow: hidden;
	background: var(--color-muted-card);
}

.agent-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 220ms ease, transform 320ms ease;
}

.agent-card:hover figure img,
.agent-card:focus-within figure img {
	filter: grayscale(0.72) contrast(1.03);
	transform: scale(1.035);
}

.agent-card__initials {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(0, 148, 146, 0.12), rgba(35, 37, 37, 0.08));
	color: var(--color-ink);
	font-family: Manrope, Inter, system-ui, sans-serif;
	font-size: 64px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.agent-card__body {
	padding: 32px;
}

.agent-card__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.agent-card h2 {
	font-size: 24px;
	line-height: 1.3;
}

.agent-card__heading p {
	color: var(--color-teal);
	font-family: Manrope, Inter, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.55;
	letter-spacing: 0.02em;
	text-transform: none;
}

.agent-card__badge {
	display: inline-flex;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}

.agent-card__badge img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	transition: transform 180ms ease;
}

.agent-card:hover .agent-card__badge img,
.agent-card:focus-within .agent-card__badge img {
	transform: scale(1.08) rotate(-6deg);
}

.agent-card__body > p {
	min-height: 54px;
	margin-top: 16px;
	color: rgba(61, 73, 72, 0.82);
	font-size: 14px;
	line-height: 1.625;
}

.agent-card__actions {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 24px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(188, 201, 200, 0.3);
}

.agent-card__actions span,
.agent-card__actions a {
	display: inline-flex;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
}

.agent-card__actions img {
	width: 16px;
	height: auto;
	max-height: 16px;
	object-fit: contain;
	transition: filter 160ms ease, transform 160ms ease;
}

.agent-card__actions span:hover img,
.agent-card__actions span:focus-within img,
.agent-card__actions a:hover img,
.agent-card__actions a:focus-visible img {
	filter: brightness(0) saturate(100%) invert(35%) sepia(97%) saturate(1052%) hue-rotate(143deg) brightness(91%) contrast(101%);
	transform: translateY(-2px);
}

.agent-card__social {
	border: 1px solid rgba(0, 148, 146, 0.28);
	border-radius: 999px;
	color: #006766;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.agent-card__social:hover,
.agent-card__social:focus-visible {
	background: rgba(0, 148, 146, 0.08);
	transform: translateY(-2px);
}

.agent-card__profile-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.agent-card__profile-link:focus-visible {
	outline: 2px solid var(--color-teal);
	outline-offset: -4px;
}

.agents-empty {
	display: flex;
	min-height: 320px;
	flex-direction: column;
	justify-content: center;
	padding: 48px;
	border: 1px solid rgba(188, 201, 200, 0.28);
	background: #fff;
}

.agents-empty h2 {
	max-width: 420px;
	font-size: 30px;
	line-height: 1.2;
}

.agents-empty p {
	max-width: 460px;
	margin-top: 16px;
	color: rgba(61, 73, 72, 0.82);
	font-size: 14px;
	line-height: 1.625;
}

.join-card {
	display: flex;
	min-height: 540px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px;
	border: 1px dashed rgba(0, 148, 146, 0.35);
	background: rgba(247, 243, 240, 0.3);
	text-align: center;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.join-card:hover,
.join-card:focus-within {
	border-color: rgba(0, 148, 146, 0.7);
	background: rgba(247, 243, 240, 0.62);
	box-shadow: var(--shadow-teal);
	transform: translateY(-6px);
}

.join-card__icon {
	display: flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	margin-bottom: 32px;
	border-radius: var(--radius);
	background: rgba(0, 148, 146, 0.1);
}

.join-card__icon img {
	width: 36px;
	height: auto;
	max-height: 36px;
	object-fit: contain;
	transition: transform 180ms ease;
}

.join-card:hover .join-card__icon img,
.join-card:focus-within .join-card__icon img {
	transform: scale(1.08);
}

.join-card h2 {
	max-width: 220px;
	font-size: 30px;
	line-height: 1.2;
}

.join-card p {
	max-width: 240px;
	margin: 16px 0 28px;
	color: var(--color-text);
	font-size: 14px;
	line-height: 1.625;
}

.join-card .btn {
	min-height: 48px;
	padding: 16px 40px;
	font-family: Manrope, Inter, system-ui, sans-serif;
	font-size: 10px;
	text-transform: uppercase;
}

.team-values__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
	gap: 96px;
	width: min(100%, var(--container));
	margin: 0 auto;
	align-items: center;
}

.team-values__content h2 {
	font-size: clamp(36px, 4.5vw, 48px);
	line-height: 1;
}

.team-values__content > p:not(.eyebrow) {
	margin: 24px 0 32px;
	color: rgba(61, 73, 72, 0.85);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.625;
}

.value-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.value-list img {
	width: 28px;
	height: auto;
	max-height: 28px;
	object-fit: contain;
	transition: transform 180ms ease;
}

.value-list > div:hover img,
.value-list > div:focus-within img {
	transform: translateY(-2px) scale(1.06);
}

.value-list h3 {
	margin: 12px 0 6px;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	text-transform: uppercase;
}

.value-list p {
	font-size: 12px;
	line-height: 1.625;
}

.team-values__image {
	overflow: hidden;
	aspect-ratio: 4 / 5;
}

.team-values__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 240ms ease, transform 320ms ease;
}

.team-values__image:hover img {
	filter: grayscale(0.72) contrast(1.03);
	transform: scale(1.025);
}

.consultation-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	width: 100%;
	padding: 96px max(var(--page-gutter), calc((100vw - var(--container)) / 2));
	overflow: hidden;
	background: var(--color-ink);
}

.consultation-cta::after {
	position: absolute;
	inset: -40% -12% 20% 60%;
	background: url('/assets/img/layout/bg-agents-consultation-watermark.png') center / contain no-repeat;
	opacity: 0.03;
	content: "";
}

.consultation-cta > div,
.consultation-cta form {
	position: relative;
	z-index: 1;
}

.consultation-cta h2 {
	color: var(--color-bg);
	font-size: clamp(32px, 4vw, 48px);
}

.consultation-cta p {
	max-width: 580px;
	margin-top: 24px;
	color: rgba(230, 226, 223, 0.64);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.55;
}

.inline-form {
	display: flex;
	min-width: 480px;
}

.inline-form input {
	min-width: 320px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	padding: 22px 32px;
	outline: 0;
}

.inline-form button {
	border: 0;
	background: var(--color-teal);
	color: #fff;
	padding: 0 40px;
	font-family: Manrope, Inter, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	transition: background-color 160ms ease, transform 160ms ease;
}

.inline-form button:hover,
.inline-form button:focus-visible {
	background: var(--color-teal-dark);
	transform: translateY(-1px);
}

@media (max-width: 1100px) {
	.agents-grid,
	.team-values__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.consultation-cta {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 80px;
		padding-bottom: 80px;
	}
}

@media (max-width: 760px) {
	.agents-grid,
	.team-values__inner,
	.value-list {
		grid-template-columns: 1fr;
	}

	.agents-header p:last-child {
		font-size: 17px;
	}

	.agent-card,
	.join-card {
		min-height: 0;
	}

	.agent-card figure {
		height: 280px;
	}

	.agent-card__body,
	.join-card {
		padding: 28px;
	}

	.consultation-cta {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.inline-form {
		width: 100%;
		min-width: 0;
		flex-direction: column;
		gap: 12px;
	}

	.inline-form input,
	.inline-form button {
		width: 100%;
		min-width: 0;
		min-height: 56px;
	}
}
