.home-projects {
	position: relative;
	overflow: hidden;
	color: var(--th-white);
}

.home-projects__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
	align-items: end;
	gap: clamp(36px, 6vw, 88px);
	margin-bottom: clamp(42px, 6vw, 76px);
}

.home-projects__title {
	max-width: 850px;
	margin-top: 28px;
	color: var(--th-white);
	font-size: clamp(2.7rem, 4.8vw, 5.4rem);
	font-weight: 300;
	letter-spacing: -0.06em;
	line-height: 0.96;
}

.home-projects__text {
	max-width: 480px;
	color: rgb(var(--th-white-rgb) / 0.7);
	font-size: clamp(1rem, 1.15vw, 1.1rem);
	line-height: 1.8;
}

.th-page-home .home-projects__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(16px, 1.7vw, 24px);
}

.th-page-home .home-projects__item {
	position: relative;
	min-height: 700px !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid rgb(var(--th-white-rgb) / 0.12);
	border-radius: var(--radius-lg);
	background: rgb(var(--th-black-rgb) / 0.48);
	box-shadow:
		0 28px 80px rgb(var(--th-black-rgb) / 0.3),
		inset 0 1px 0 rgb(var(--th-white-rgb) / 0.1);
	-webkit-backdrop-filter: blur(24px) saturate(120%);
	backdrop-filter: blur(24px) saturate(120%);
	transition:
		transform var(--transition-base),
		border-color var(--transition-base),
		box-shadow var(--transition-base);
}

.th-page-home .home-projects__item::before,
.th-page-home .home-projects__item::after {
	display: none;
}

.th-page-home .home-projects__item:hover {
	transform: translateY(-6px);
	border-color: rgb(var(--th-white-rgb) / 0.22);
	box-shadow:
		0 38px 110px rgb(var(--th-black-rgb) / 0.38),
		inset 0 1px 0 rgb(var(--th-white-rgb) / 0.14);
}

.th-page-home .home-projects__link {
	position: relative;
	display: flex !important;
	width: 100%;
	min-height: 700px !important;
	padding: 0;
	color: var(--th-white);
	flex-direction: column;
}

.th-page-home .home-projects__link:focus-visible {
	border-radius: inherit;
	outline: 2px solid var(--th-red);
	outline-offset: -3px;
}

.th-page-home .home-projects__media {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	z-index: 1;
	width: 100% !important;
	height: 440px !important;
	margin: 0 !important;
	overflow: hidden;
	transform: none;
	border: 0;
	border-bottom: 1px solid rgb(var(--th-white-rgb) / 0.1);
	border-radius: 0;
	background: rgb(var(--th-black-rgb) / 0.3);
	box-shadow: none;
}

.th-page-home .home-projects__photo,
.th-page-home .home-projects__photo-fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.001);
	transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.th-page-home .home-projects__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.th-page-home .home-projects__photo-fallback {
	background:
		radial-gradient(circle at 72% 28%, rgb(var(--th-red-rgb) / 0.2), transparent 34%),
		linear-gradient(135deg, #2a1015 0%, #5b0712 45%, #111111 100%);
}

.th-page-home .home-projects__media::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, transparent 45%, rgb(var(--th-black-rgb) / 0.58) 100%),
		linear-gradient(135deg, rgb(var(--th-wine-rgb) / 0.1), transparent 52%);
	content: "";
	pointer-events: none;
}

.th-page-home .home-projects__link:hover .home-projects__photo {
	transform: scale(1.045);
}

.th-page-home .home-projects__number {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 3;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgb(var(--th-white-rgb) / 0.18);
	border-radius: 50%;
	background: rgb(var(--th-black-rgb) / 0.28);
	color: var(--th-white);
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.th-page-home .home-projects__content {
	position: relative !important;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 2;
	display: flex;
	width: 100% !important;
	min-height: 260px;
	margin: 0 !important;
	padding: clamp(28px, 2.4vw, 36px);
	border: 0;
	border-radius: 0;
	background: linear-gradient(145deg, rgb(var(--th-white-rgb) / 0.075), rgb(var(--th-white-rgb) / 0.018));
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	flex: 1;
	flex-direction: column;
}

.home-projects__info {
	min-width: 0;
}

.th-page-home .home-projects__meta {
	display: block;
	min-height: 1.2em;
	margin-bottom: 16px;
	color: rgb(var(--th-white-rgb) / 0.48);
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
}

.th-page-home .home-projects__name {
	max-width: 330px;
	min-height: 1.88em;
	color: var(--th-white);
	font-size: clamp(2.15rem, 2.65vw, 3.15rem);
	font-weight: 300;
	letter-spacing: -0.055em;
	line-height: 0.94;
	text-wrap: balance;
}

.th-page-home .home-projects__type {
	margin-top: 18px;
	color: rgb(var(--th-white-rgb) / 0.56);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.th-page-home .home-projects__scope {
	display: none;
}

.th-page-home .home-projects__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid rgb(var(--th-white-rgb) / 0.1);
	color: rgb(var(--th-white-rgb) / 0.64);
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.th-page-home .home-projects__cta::after {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid rgb(var(--th-white-rgb) / 0.16);
	border-radius: 50%;
	color: var(--th-red);
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0;
	content: "↗";
	transition: transform var(--transition-base);
}

.th-page-home .home-projects__link:hover .home-projects__cta::after {
	transform: translate(3px, -3px);
}

.home-projects__footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(46px, 6vw, 78px);
}

@media (max-width: 1050px) {
	.home-projects__header {
		grid-template-columns: 1fr;
	}

	.th-page-home .home-projects__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.th-page-home .home-projects__item,
	.th-page-home .home-projects__link {
		min-height: 680px !important;
	}

	.th-page-home .home-projects__media {
		height: 410px !important;
	}
}

@media (max-width: 680px) {
	.th-page-home .home-projects__list {
		grid-template-columns: 1fr;
	}

	.th-page-home .home-projects__item,
	.th-page-home .home-projects__link {
		min-height: 650px !important;
	}

	.th-page-home .home-projects__media {
		height: 390px !important;
	}

	.th-page-home .home-projects__content {
		min-height: 260px;
		padding: 28px 24px 24px;
	}

	.home-projects__title {
		font-size: clamp(2.45rem, 11vw, 4rem);
	}
}
