/* Case study hero card (Figma 31:26) */

.case-hero {
	padding: 24px 24px 0;
}

.case-hero__card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 820px;
	padding: 64px 90px;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: 24px;
}

.case-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkens the lower-left corner so the text stays readable (Figma 70:2). */
.case-hero__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(59.35deg, rgba(23, 47, 59, 0.961) 19.936%, rgba(23, 47, 59, 0.502) 86.66%, rgba(23, 47, 59, 0.4) 120.32%);
}

.case-hero__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.case-hero__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.case-hero__title {
	font-size: 128px;
	line-height: 132px;
}

/* Smaller peach word after the title, e.g. "Enterprise" (Figma 114:2111) */
.case-hero__title-accent {
	font-size: 64px;
	line-height: 72px;
	color: var(--color-decoration);
}

.case-hero__subtitle {
	font-family: var(--font-body);
	font-size: 24px;
	line-height: 36px;
}

.case-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.case-hero__tags li {
	padding: 6px 14px 4px;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 28px;
	color: var(--color-decoration);
}

.case-hero__actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.case-btn--glass {
	background: rgba(40, 62, 76, 0.85);
	border-color: var(--line-soft);
}

.case-btn--glass:hover,
.case-btn--glass:focus-visible {
	background: rgba(40, 62, 76, 1);
}

@media (max-width: 1200px) {
	.case-hero__card {
		padding: 48px;
	}

	.case-hero__title {
		font-size: 96px;
		line-height: 100px;
	}

	.case-hero__title-accent {
		font-size: 52px;
		line-height: 60px;
	}

	.case-hero__subtitle br {
		display: none;
	}
}

@media (max-width: 899px) {
	.case-hero {
		padding: 12px 12px 0;
	}

	.case-hero__card {
		height: auto;
		min-height: min(640px, calc(100svh - var(--header-h) - 12px));
		gap: 40px;
		padding: 28px 20px;
		border-radius: 20px;
	}

	.case-hero__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.case-hero__text {
		gap: 16px;
	}

	.case-hero__title {
		font-size: 56px;
		line-height: 60px;
	}

	.case-hero__title-accent {
		display: block;
		font-size: 32px;
		line-height: 40px;
	}

	.case-hero__subtitle {
		font-size: 18px;
		line-height: 28px;
	}

	.case-hero__tags {
		gap: 4px;
	}

	.case-hero__tags li {
		padding-left: 0;
		padding-right: 12px;
		font-size: 16px;
	}
}
