/**
 * Homepage template (page-homepage.php).
 * Desktop: Figma edu-lp-design 718:2218. Mobile: 724:2974.
 */

.homepage-page .site-main {
	margin: 0;
	padding: 0;
	max-width: none;
}

.homepage-article {
	margin: 0;
	padding: 0;
}

/* ——— Shared ——— */
.homepage-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #244fd8;
	flex-shrink: 0;
}

.homepage-dot--inverse {
	background: #244fd8;
}

.homepage-slash {
	font-family: var(--ed-font-mono, "Geist", monospace);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.2;
	color: #244fd8;
	flex-shrink: 0;
}

.homepage-heading {
	margin: 0;
	font-weight: 600;
	color: #0f172a;
}

.homepage-heading--xl {
	font-size: 64px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.homepage-heading--lg {
	font-size: 48px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.homepage-heading--md {
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.005em;
}

.homepage-body {
	margin: 0;
	font-size: 18px;
	line-height: 27px;
	font-weight: 400;
	color: #0f172a;
}

.homepage-body--muted {
	color: #475569;
}

.homepage-section {
	background: #fff;
	color: #0f172a;
	font-family: var(--ed-font-sans, "Figtree", system-ui, sans-serif);
}

.homepage-section__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: var(--ed-section-py, 80px) var(--ed-section-px, 50px);
	display: flex;
	flex-direction: column;
	gap: var(--ed-section-gap, 56px);
}

.homepage-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.homepage-section-head__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.homepage-section-head__subtitle {
	margin: 0;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: -0.005em;
	color: #475569;
}

.homepage-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 16.5px 30px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	white-space: nowrap;
}

.homepage-cta--primary {
	background: #1e40af;
	color: #fff;
}

.homepage-cta--primary:hover,
.homepage-cta--primary:focus-visible {
	background: var(--ed-color-cta-hover, #1736a0);
}

.homepage-cta--secondary {
	background: #fff;
	color: #1e40af;
}

.homepage-cta--secondary:hover,
.homepage-cta--secondary:focus-visible {
	background: #f8fafc;
}

.homepage-cta:focus-visible {
	outline: 2px solid #1e40af;
	outline-offset: 3px;
}

.homepage-cta-box {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 50px;
	width: 100%;
	padding: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.homepage-cta-box__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* ——— Hero ——— */
.homepage-hero {
	position: relative;
	color: #fff;
	font-family: var(--ed-font-sans, "Figtree", system-ui, sans-serif);
	overflow: hidden;
}

.homepage-hero__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.homepage-hero__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.homepage-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 61.89%);
}

.homepage-hero__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 50px;
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.homepage-hero__navbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.homepage-hero__logo {
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.homepage-hero__logo-img {
	display: block;
	height: 32px;
	width: auto;
}

.homepage-hero__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.homepage-hero__toggle-icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	width: 20px;
	height: 14px;
}

.homepage-hero__toggle-icon > span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.homepage-hero__nav {
	display: none;
}

.homepage-hero__nav-desktop {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-size: 18px;
	line-height: 27px;
}

.homepage-hero__nav-desktop-link {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

a.homepage-hero__nav-desktop-link:hover,
a.homepage-hero__nav-desktop-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.homepage-hero__content {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
}

.homepage-hero__main {
	flex: 1 1 480px;
	max-width: 818px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.homepage-hero__badge {
	margin: 0;
	display: inline-flex;
	align-self: flex-start;
	padding: 6px 8px;
	border: 1px solid #fff;
	border-radius: 100px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
	text-transform: uppercase;
	color: #fff;
}

.homepage-hero__title {
	margin: 0;
	font-size: 64px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
}

.homepage-hero__aside {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	gap: 40px;
	min-height: 100%;
}

.homepage-hero__subtitle {
	margin: 0;
	font-size: 22px;
	line-height: 1.1;
	font-weight: 400;
	color: #fff;
}

.homepage-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.homepage-hero__features {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 16px;
	width: 100%;
}

.homepage-hero__feature {
	display: inline-flex;
	align-items: flex-end;
	gap: 4px;
	font-size: 18px;
	line-height: 27px;
	font-weight: 600;
	color: #fff;
}

/* ——— Foundation ——— */
.homepage-foundation__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}

.homepage-foundation__figure {
	flex: 0 0 406px;
	max-width: 100%;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
}

.homepage-foundation__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 406 / 406;
	object-fit: cover;
}

.homepage-foundation__copy {
	flex: 1 1 400px;
	max-width: 650px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.homepage-foundation__grid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.homepage-foundation__grid--cols .homepage-foundation__cell {
	flex: 1 1 50%;
	min-width: 280px;
}

.homepage-foundation__cell {
	box-sizing: border-box;
	flex: 1 1 50%;
	min-width: 280px;
	padding: 20px;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.homepage-foundation__cell--border-r {
	border-right: 1px solid #e2e8f0;
}

.homepage-foundation__phase-label {
	margin: 0;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 400;
	text-transform: uppercase;
	color: #244fd8;
}

.homepage-foundation__phase-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #0f172a;
}

.homepage-foundation__list {
	margin: 0;
	padding-left: 27px;
	font-size: 18px;
	line-height: 27px;
	color: #475569;
}

.homepage-foundation__list li + li {
	margin-top: 0;
}

/* ——— Community ——— */
.homepage-community__layout {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
	width: 100%;
}

.homepage-community__intro {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.homepage-community__list {
	flex: 1 1 320px;
	min-width: 0;
}

.homepage-community__item {
	padding: 24px 0;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.homepage-community__item:last-child {
	border-bottom: 1px solid #e2e8f0;
}

.homepage-community__item-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.1;
	font-weight: 600;
	color: #0f172a;
}

/* ——— Director ——— */
.homepage-director__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}

.homepage-director__figure {
	flex: 0 0 406px;
	max-width: 100%;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
}

.homepage-director__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.homepage-director__content {
	flex: 1 1 400px;
	max-width: 645px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.homepage-director__badge {
	margin: 0;
	align-self: flex-start;
	padding: 6px 8px;
	border: 1px solid #244fd8;
	border-radius: 100px;
	font-size: 14px;
	line-height: 1.4;
	text-transform: uppercase;
	color: #244fd8;
}

.homepage-director__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

/* ——— Mobile menu overlay ——— */
@media (max-width: 900px) {
	.homepage-hero__toggle {
		display: inline-flex;
	}

	.homepage-hero__nav-desktop {
		display: none;
	}

	.homepage-hero__nav {
		position: fixed;
		inset: 0;
		z-index: 200;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		padding: 24px 16px 40px;
		background: rgba(0, 0, 0, 0.85);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s;
		overflow-y: auto;
	}

	.homepage-hero.is-menu-open .homepage-hero__nav {
		opacity: 1;
		visibility: visible;
	}

	.homepage-hero__nav-inner {
		display: flex;
		flex-direction: column;
		gap: 32px;
		width: 100%;
		max-width: 1440px;
		margin: 0 auto;
	}

	.homepage-hero__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	.homepage-hero__menu {
		margin: 0;
		padding: 0;
		list-style: none;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 12px;
		font-size: 20px;
		line-height: 1.1;
	}

	.homepage-hero__menu-link {
		color: #fff;
		text-decoration: none;
	}

	a.homepage-hero__menu-link:hover,
	a.homepage-hero__menu-link:focus-visible {
		text-decoration: underline;
	}
}

@media (max-width: 600px) {
	.homepage-hero__inner {
		padding: 24px 16px 40px;
		gap: 80px;
		min-height: auto;
	}

	.homepage-hero__content {
		flex-direction: column;
		align-items: stretch;
	}

	.homepage-hero__main {
		flex: 1 1 auto;
		max-width: none;
		gap: 32px;
	}

	.homepage-hero__title {
		font-size: 40px;
		letter-spacing: -0.025em;
	}

	.homepage-hero__subtitle {
		font-size: 20px;
	}

	.homepage-hero__aside {
		gap: 24px;
		min-height: 0;
	}

	.homepage-hero__ctas {
		flex-direction: column;
		width: 100%;
	}

	.homepage-hero__ctas .homepage-cta {
		width: 100%;
	}

	.homepage-hero__features {
		justify-content: flex-start;
		gap: 8px;
	}

	.homepage-hero__feature {
		font-size: 16px;
		line-height: 1.3;
	}

	.homepage-heading--xl {
		font-size: 40px;
		letter-spacing: -0.025em;
	}

	.homepage-heading--lg {
		font-size: 32px;
		letter-spacing: 0;
	}

	.homepage-heading--md {
		font-size: 26px;
		letter-spacing: -0.01em;
	}

	.homepage-section-head__subtitle {
		font-size: 22px;
		letter-spacing: -0.01em;
	}

	.homepage-body {
		font-size: 16px;
		line-height: 1.3;
	}

	.homepage-foundation__figure,
	.homepage-director__figure {
		flex: 1 1 100%;
		width: 100%;
	}

	.homepage-foundation__image {
		aspect-ratio: auto;
		height: 213px;
	}

	.homepage-foundation__cell,
	.homepage-foundation__grid--cols .homepage-foundation__cell {
		flex: 1 1 100%;
		min-width: 0;
	}

	.homepage-foundation__cell--border-r {
		border-right: 0;
	}

	.homepage-foundation__phase-title {
		font-size: 26px;
		letter-spacing: -0.005em;
		white-space: normal;
	}

	.homepage-cta-box {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px;
	}

	.homepage-cta-box .homepage-cta {
		width: 100%;
	}

	.homepage-community__layout {
		flex-direction: column;
		gap: 40px;
	}

	.homepage-community__intro .homepage-cta {
		width: 100%;
	}

	.homepage-director__layout {
		flex-direction: column-reverse;
	}

	.homepage-director__title-row {
		flex-wrap: wrap;
	}
}

body.homepage-page-menu-open {
	overflow: hidden;
}
