.hero-section {
	--hero-min-height: 100vh;
	--hero-slant-size: 12.4px;
	position: relative;
	display: grid;
	box-sizing: border-box;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 3.1fr) minmax(0, 1.15fr);
	gap: 1px;
	min-height: var(--hero-min-height);
	background: #ffffff;
	border-bottom: 1px solid #ffffff;
	font-family: "Charis SIL", serif;
	color: #fff;
	overflow-x: clip;
}

.hero-section__content {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: calc(var(--header-height, 92px) + 48px) clamp(24px, 5vw, 72px) 24px var(--site-gutter, 24px);
	background: #ffffff;
	color: #20406d;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - var(--hero-slant-size)),
		calc(100% - var(--hero-slant-size)) 100%,
		0 100%
	);
}

.hero-section__media {
	grid-column: 2;
	grid-row: 1;
	background-color: #1b1b1b;
	clip-path: polygon(
		0 0,
		100% 0,
		100% 100%,
		var(--hero-slant-size) 100%,
		0 calc(100% - var(--hero-slant-size))
	);
	overflow: hidden;
}

.hero-section__media-slider {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero-section__media-slide {
	position: absolute;
	inset: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	animation: hero-media-slider 18s infinite;
	transform: scale(1);
	will-change: opacity, transform;
}

.hero-section__media-slide--1 {
	animation-delay: 0s;
}

.hero-section__media-slide--2 {
	animation-delay: 6s;
}

.hero-section__media-slide--3 {
	animation-delay: 12s;
}

.hero-section__content-bottom {
	grid-column: 1;
	grid-row: 2;
	background: #FF0000;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 24px;
	padding: 24px clamp(24px, 5vw, 72px) 24px var(--site-gutter, 24px);
	text-decoration: none;
	clip-path: polygon(
		0 0,
		calc(100% - var(--hero-slant-size)) 0,
		100% var(--hero-slant-size),
		100% calc(100% - var(--hero-slant-size)),
		calc(100% - var(--hero-slant-size)) 100%,
		100% 100%,
		0 100%
	);
}

.hero-section__media-bottom {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: #f2f2f2;
	padding: 24px clamp(16px, 2.8vw, 32px) 24px;
	clip-path: polygon(
		var(--hero-slant-size) 0,
		100% 0,
		100% 100%,
		var(--hero-slant-size) 100%,
		0 calc(100% - var(--hero-slant-size)),
		0 var(--hero-slant-size)
	);
}

.hero-section__project-image {
	min-height: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: scale(1);
	transition: transform 0.35s ease;
}

.hero-section__project-copy {
	position: relative;
	align-self: start;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0;
	color: #ffffff;
}

.hero-section__content-bottom:hover .hero-section__project-image,
.hero-section__content-bottom:focus .hero-section__project-image,
.hero-section__content-bottom:focus-visible .hero-section__project-image {
	transform: scale(1.04);
}

.hero-section__project-eyebrow {
	margin: 0 0 12px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-section__project-text {
	margin: 0;
	font-family: "Manrope", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
}

.hero-section__project-arrow {
	display: inline-flex;
	position: absolute;
	top: 0;
	right: 0;
	color: #ffffff;
	transform: translate(50px, -6px);
}

.hero-section__kicker--project {
	margin: 0 0 14px;
	color: #ffffff;
}

.hero-section__project-arrow img {
	width: 20px;
	height: 20px;
	display: block;
	filter: brightness(0) invert(1);
}

.hero-section__summary {
	margin: 0;
	max-width: 70%;
	font-family: "Manrope", sans-serif;
	color: #20406d;
	font-size: 1.2768rem;
	font-weight: 600;
	line-height: 1.24;
}

.hero-section__summary-arrow {
	display: inline-flex;
	margin: 28px 0 0;
	color: #20406d;
}

.hero-section__summary-arrow img {
	width: 20px;
	height: 20px;
	display: block;
	filter: brightness(0) saturate(100%) invert(17%) sepia(31%) saturate(1447%) hue-rotate(176deg) brightness(95%) contrast(92%);
	transform: rotate(180deg);
}

@keyframes hero-media-slider {
	0% {
		opacity: 0;
		transform: scale(1);
		animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
	}

	6%,
	28% {
		opacity: 1;
		transform: scale(1.06);
		animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
	}

	33%,
	95% {
		opacity: 0;
		transform: scale(1.08);
	}

	100% {
		opacity: 0;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-section__media-slide {
		animation: none;
	}

	.hero-section__media-slide:not(.hero-section__media-slide--1) {
		display: none;
	}
}

.hero-section__eyebrow {
	margin-bottom: 18px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.hero-section__heading {
	margin: 0 0 24px;
	font-size: clamp(2.05275rem, 4.78975vw, 4.2765625rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.04em;
	max-width: 95%;
}

.hero-section__kicker {
	margin: auto 0 0;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.hero-section__body {
	margin-top: 26px;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.65;
	max-width: 42rem;
}

.hero-section__body p:last-child {
	margin-bottom: 0;
}

.hero-section__mobile-cta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.hero-section__mobile-cta,
.hero-section__mobile-cta:hover,
.hero-section__mobile-cta:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 18px;
	text-decoration: none;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hero-section__mobile-cta-label {
	display: inline-flex;
	align-items: center;
}

.hero-section__mobile-cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hero-section__mobile-cta-icon img {
	display: block;
	width: 14px;
	height: auto;
}

.hero-section__mobile-cta--primary {
	border: 1px solid #ff0000;
	background: #ff0000;
	color: #ffffff;
}

.hero-section__mobile-cta--primary:hover,
.hero-section__mobile-cta--primary:focus,
.hero-section__mobile-cta--primary:active {
	background: #ff0000;
	border-color: #ff0000;
	color: #ffffff;
}

.hero-section__mobile-cta--primary .hero-section__mobile-cta-icon img {
	filter: brightness(0) invert(1);
}

.hero-section__mobile-cta--secondary {
	border: 1px solid rgba(32, 64, 109, 0.24);
	background: transparent;
	color: #20406d;
}

.hero-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.hero-section__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 26px;
	border: 1px solid rgba(32, 64, 109, 0.26);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-section__button:hover,
.hero-section__button:focus {
	color: #20406d;
}

.hero-section__button--primary {
	background: #f3b23d;
	border-color: #f3b23d;
	color: #10202f;
}

.hero-section__button--primary:hover,
.hero-section__button--primary:focus {
	background: #ffcb6e;
	border-color: #ffcb6e;
	color: #10202f;
}

.hero-section__button--secondary {
	background: rgba(32, 64, 109, 0.06);
	backdrop-filter: blur(8px);
	color: #20406d;
}

.hero-section__button--secondary:hover,
.hero-section__button--secondary:focus {
	background: rgba(32, 64, 109, 0.12);
	border-color: rgba(32, 64, 109, 0.45);
	color: #20406d;
}

@media (max-width: 1024px) and (min-width: 901px) {
	.hero-section {
		height: 100vh;
		min-height: 0;
		grid-template-rows: calc(70% - 0.5px) calc(30% - 0.5px);
		overflow: clip;
	}

	.hero-section__content {
		min-height: 0;
		justify-content: center;
		padding: var(--header-height, 92px) clamp(20px, 2.6vw, 30px) 10px var(--site-gutter, 24px);
		overflow: hidden;
	}

	.hero-section__heading {
		margin: 0;
		font-size: clamp(3.105rem, 5.535vw, 4.6575rem);
		max-width: 92%;
	}

	.hero-section__mobile-cta-row {
		display: flex;
		gap: 10px;
		margin-top: 14px;
	}

	.hero-section__mobile-cta,
	.hero-section__mobile-cta:hover,
	.hero-section__mobile-cta:focus {
		min-height: 42px;
		padding: 0 14px;
		font-size: 0.76rem;
	}

	.hero-section__media {
		min-height: 0;
		overflow: hidden;
	}

	.hero-section__content-bottom {
		min-height: 0;
		padding: 12px clamp(20px, 2.6vw, 30px) 12px var(--site-gutter, 24px);
		overflow: hidden;
	}

	.hero-section__media-bottom {
		min-height: 0;
		padding: 12px clamp(12px, 1.8vw, 18px) 12px;
		overflow: hidden;
	}

	.hero-section__summary {
		max-width: 100%;
		line-height: 1.12;
	}
}

@media (max-width: 900px) {
	.hero-section {
		min-height: 0;
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(360px, 48vh) auto auto;
	}

	.hero-section__content {
		grid-column: 1;
		grid-row: 1;
		position: relative;
		z-index: 5;
		isolation: isolate;
		justify-content: flex-end;
		padding: calc(var(--header-height, 92px) + 50px) clamp(24px, 6vw, 56px) 40px var(--site-gutter, 24px);
		clip-path: polygon(
			0 0,
			100% 0,
			100% calc(100% - var(--hero-slant-size)),
			calc(100% - var(--hero-slant-size)) 100%,
			var(--hero-slant-size) 100%,
			0 calc(100% - var(--hero-slant-size))
		);
		overflow: visible;
		margin-bottom: -20px;
	}

	.hero-section__media {
		grid-column: 1;
		grid-row: 2;
		position: relative;
		z-index: 1;
		min-height: clamp(360px, 48vh, 560px);
		clip-path: none;
		margin-top: 0;
	}

	.hero-section__media-slider,
	.hero-section__media-slide {
		z-index: 0;
	}

	.hero-section__content-bottom {
		grid-column: 1;
		grid-row: 3;
		padding: 24px clamp(24px, 6vw, 56px) 24px var(--site-gutter, 24px);
		clip-path: none;
	}

	.hero-section__media-bottom {
		grid-column: 1;
		grid-row: 4;
		padding: 24px clamp(24px, 6vw, 56px) 28px var(--site-gutter, 24px);
		clip-path: none;
	}

	.hero-section__summary {
		max-width: 100%;
	}

	.hero-section__mobile-cta-row {
		display: flex;
	}
}

@media (max-width: 900px) and (min-width: 720px) {
	.hero-section__heading {
		max-width: clamp(14ch, calc(34ch - 2vw), 18ch);
	}

	.hero-section__media-bottom {
		min-height: 220px;
	}
}

@media (max-width: 768px) {
	.hero-section {
		min-height: 0;
		grid-template-rows: auto minmax(300px, 40vh) auto auto;
	}

	.hero-section__content {
		justify-content: flex-end;
		padding: calc(var(--header-height, 92px) + 46px) 24px 36px;
	}

	.hero-section__heading {
		max-width: 100%;
		font-size: clamp(2.668575rem, 6.226675vw, 5.55953125rem);
	}

	.hero-section__media {
		min-height: 300px;
	}

	.hero-section__content-bottom {
		grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1.22fr);
		gap: 18px;
		padding: 20px 24px 24px;
	}

	.hero-section__project-image {
		min-height: 150px;
	}

	.hero-section__media-bottom {
		padding: 20px 24px 24px;
	}

	.hero-section__project-copy {
		min-width: 0;
	}

	.hero-section__project-arrow {
		transform: translate(0, -6px);
	}

	.hero-section__project-text {
		font-size: 0.85rem;
		line-height: 1.25;
		max-width: 22ch;
	}

	.hero-section__summary {
		font-size: 1.1rem;
	}

	.hero-section__actions {
		gap: 12px;
	}

	.hero-section__mobile-cta-row {
		flex-wrap: wrap;
	}
}

@media (max-width: 768px) and (min-width: 720px) {
	.hero-section__heading {
		max-width: clamp(14ch, calc(34ch - 2vw), 18ch);
	}

	.hero-section__media-bottom {
		min-height: 220px;
	}
}

@media (max-width: 560px) {
	.hero-section__actions {
		flex-direction: column;
	}

	.hero-section__button {
		width: 100%;
	}
}
