.t-home-page {
	--t-home-page-shell-height: 100vh;
	background: var(--color-bg-page);
	color: var(--color-text-on-light);
}

body.admin-bar .t-home-page {
	--t-home-page-shell-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@supports (height: 100dvh) {
	.t-home-page {
		--t-home-page-shell-height: 100dvh;
	}

	body.admin-bar .t-home-page {
		--t-home-page-shell-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
	}
}

.t-home-page__layout {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	column-gap: 16px;
	padding: 0 0 80px 24px;
	row-gap: 56px;
	width: 100%;
	max-width: 100vw;
	box-sizing: border-box;
}

.t-home-page__sidebar {
	grid-column: 1 / 4;
	position: sticky;
	top: 0;
	height: 100vh;
	padding: 0;
	display: block;
}

.t-home-page__sidebar-inner {
	min-height: 100%;
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.t-home-page__main {
	grid-column: 4 / 17;
	min-width: 0;
}

.t-home-page__brand-name {
	font-size: clamp(1.25rem, 1.8vw, 1.75rem);
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: normal;
}

.t-home-page__tagline {
	margin-top: 16px;
	font-size: 0.95rem;
	line-height: 1.7;
	max-width: 24ch;
}

.t-home-page__hero {
	position: relative;
	min-height: 100vh;
	display: grid;
	overflow: hidden;
	background: var(--color-bg-header);
}

@media (min-width: 1280px) {
	body {
		overflow: hidden;
	}

	.t-home-page {
		min-height: var(--t-home-page-shell-height);
	}

	.t-home-page__layout {
		height: var(--t-home-page-shell-height);
		padding-bottom: 0;
		overflow: hidden;
	}

	.t-home-page__sidebar {
		height: var(--t-home-page-shell-height);
	}

	.t-home-page__main {
		height: var(--t-home-page-shell-height);
		overflow-y: auto;
		overscroll-behavior-y: contain;
	}

	.t-home-page__hero {
		min-height: var(--t-home-page-shell-height);
	}
}

.t-home-page__hero-media,
.t-home-page__hero-track,
.t-home-page__hero-slide {
	grid-area: 1 / 1;
}

.t-home-page__hero-media {
	position: relative;
}

.t-home-page__hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.42));
	z-index: 1;
	pointer-events: none;
}

.t-home-page__hero-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.t-home-page__hero-slide {
	margin: 0;
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.1s ease;
	pointer-events: none;
}

.t-home-page__hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.t-home-page__hero-image {
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.t-home-page__hero-content {
	grid-area: 1 / 1;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 48px;
	gap: 16px;
	color: var(--color-text-on-dark);
	background: linear-gradient(to bottom, rgba(29, 29, 31, 0.1), rgba(29, 29, 31, 0.24));
}

.t-home-page__hero-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4rem);
	letter-spacing: 0.04em;
	color: var(--color-text-on-dark);
}

.t-home-page__hero-subtitle {
	margin: 0;
	max-width: 48ch;
	line-height: 1.8;
}

.t-home-page__intro {
	padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
}

.t-home-page__intro-copy {
	max-width: 720px;
	margin: 0;
	font-size: var(--thinking-type-body-large-size);
	font-weight: var(--thinking-type-body-large-weight);
	line-height: var(--thinking-line-height-body);
	overflow-wrap: anywhere;
}

.t-home-page__featured-actions {
	grid-column: 1 / 14;
	margin-top: 8px;
}

.t-home-page__featured-all-projects {
	grid-column: 1 / 14;
	margin-top: 8px;
}

.t-home-page__featured-all-projects-link {
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	color: var(--color-text-on-light);
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-decoration: none;
}

.t-home-page__featured-all-projects-link:hover,
.t-home-page__featured-all-projects-link:focus-visible {
	color: var(--color-text-on-light);
	border-bottom-color: transparent;
}

.t-home-page__featured-all-projects-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.t-home-page__featured-about-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 1px solid currentColor;
	text-decoration: none;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-on-light);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.t-home-page__featured-about-button:hover,
.t-home-page__featured-about-button:focus-visible {
	background-color: var(--color-text-on-light);
	color: var(--color-bg-page);
}

.t-home-page__featured {
	display: grid;
	grid-template-columns: repeat(13, minmax(0, 1fr));
	column-gap: 16px;
	row-gap: 24px;
	padding: 56px 0 80px;
}

.t-home-page__featured-heading {
	grid-column: 1 / 13;
	margin: 0;
	font-size: clamp(1.1rem, 1.7vw, 1.5rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.t-home-page__featured-list {
	grid-column: 1 / 14;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2vw, 32px);
}

@media (max-width: 1279px) {
	.t-home-page__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 20px;
		row-gap: 40px;
	}

	.t-home-page__sidebar,
	.t-home-page__main,
	.t-home-page__hero,
	.t-home-page__featured {
		grid-column: 1 / -1;
	}

	.t-home-page__main {
		min-width: 0;
		overflow: visible;
	}

	.t-home-page__sidebar {
		display: none;
	}

	.t-home-page__sidebar-inner {
		box-sizing: border-box;
		min-height: 128px;
		padding: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		text-align: left;
	}

	.t-home-page__tagline {
		max-width: 100%;
	}

	.t-home-page__hero {
		min-height: min(86vh, 780px);
		width: 100vw;
		margin-right: calc(50% - 50vw);
		margin-left: calc(50% - 50vw);
	}

	.t-home-page__hero-content {
		padding: 36px 24px;
	}

	.t-home-page__intro {
		padding: 72px 0 56px;
	}

	.t-home-page__featured {
		display: block;
		padding: 24px 0 32px;
	}

	.t-home-page__featured-heading {
		margin: 0 0 20px;
	}

	.t-home-page__featured-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 16px;
	}

	.t-home-page__featured-actions {
		margin-top: 24px;
	}

	.t-home-page__featured-all-projects {
		margin-top: 20px;
	}

}

@media (max-width: 640px) {
	.t-home-page__layout {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 16px;
		row-gap: 28px;
	}

	.t-home-page__hero {
		min-height: 72vh;
	}

	.t-home-page__hero-content {
		align-items: flex-start;
		text-align: left;
		padding: 24px 20px;
	}

	.t-home-page__hero-title {
		font-size: clamp(1.5rem, 9vw, 2.4rem);
	}

	.t-home-page__intro {
		padding: 56px 0 40px;
	}

	.t-home-page__featured-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
