/*
 * YT Funnel: Hero block — mobile-first.
 * Mobile: eyebrow → image → title → subtext → CTA (stacked).
 * Desktop (≥1024px): eyebrow on top, then a card whose left side overlays the
 * headline/subtext/CTA over a whitened gradient on the image.
 */

.yt-hero {
	padding-top: 3.6rem;
}

/* Eyebrow */
.yt-hero__eyebrow {
	max-width: 29rem;
	margin-inline: auto;
	text-align: center;
	font-weight: 500;
	font-size: 3rem;
	line-height: 3.8rem;
	letter-spacing: -0.09rem;
	color: var(--ytf-black, #141414);
}

.yt-hero__eyebrow-lead {
	display: block;
}

.yt-hero__eyebrow-accent {
	display: block;
	font-family: Merriweather, Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.03rem;
}

/* Card / media */
.yt-hero__card {
	margin-top: 3.4rem;
	position: relative;
}

.yt-hero__media {
	overflow: hidden;
	border-radius: 1.6rem;
	aspect-ratio: 346 / 280;
}

.yt-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--hero-fit-m, cover);
	object-position: var(--hero-pos-m, right);
}

/* Content */
.yt-hero__content {
	margin-top: 2.4rem;
}

.yt-hero__title {
	font-weight: 600;
	font-size: 2.4rem;
	line-height: 3rem;
	letter-spacing: -0.072rem;
	color: var(--ytf-black, #141414);
}

.yt-hero__sub {
	margin-top: 1.2rem;
	font-weight: 400;
	font-size: 1.8rem;
	line-height: 2.4rem;
	letter-spacing: -0.018rem;
	color: var(--ytf-black, #141414);
}

.yt-hero__cta {
	margin-top: 2rem;
	height: 4rem;
	font-size: 1.8rem;
}

@media screen and (max-width: 1024px) {
	.yt-hero__card::after {
		content: "";
		height: .5px;
		display: block;
		position: absolute;
		background: #0E2C47;
		bottom: -3rem;
		transform-origin: 0 0;
		transform: scale(0.5);
		width: 200%;
	}
}

/* ── Desktop overlay layout ────────────────────────────────── */
@media screen and (min-width: 1024px) {
	.yt-hero {
		padding-top: 0;
	}

	.yt-hero__eyebrow {
		font-size: 6rem;
		line-height: 6.8rem;
		letter-spacing: -0.18rem;
		max-width: 124.6rem;
		margin: 0 auto;
	}

	.yt-hero__card {
		position: relative;
		margin-top: 3.4rem;
		border-radius: 2rem;
		overflow: hidden;
		min-height: 54.3rem;
		aspect-ratio: auto;
	}

	.yt-hero__media {
		position: absolute;
		inset: 0;
		border-radius: 0;
		aspect-ratio: auto;
	}

	.yt-hero__media img {
		object-fit: var(--hero-fit-d, cover);
		object-position: var(--hero-pos-d, right center);
	}

	.yt-hero__card::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
	}

	.yt-hero__content {
		position: relative;
		z-index: 1;
		margin-top: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 54.3rem;
		max-width: 46rem;
		padding: 4rem 0 4rem 5.6rem;
	}

	.yt-hero__title {
		font-size: 5rem;
		line-height: 5.6rem;
		letter-spacing: -0.15rem;
	}

	.yt-hero__sub {
		margin-top: 2rem;
		font-weight: 500;
		font-size: 2.2rem;
		line-height: 3rem;
		letter-spacing: -0.022rem;
		max-width: 43.3rem;
	}

	.yt-hero__cta {
		margin-top: 2.6rem;
		align-self: flex-start;
		height: 5rem;
		padding: 0 2.2rem;
	}
}

/* From the rail breakpoint up: eyebrow stays full width, but the card is
   constrained to the left region and dropped below the eyebrow so the static
   promo rail sits beside it. */
@media screen and (min-width: 1200px) {
	.yt-hero {
		padding-top: 5.6rem;
	}

	.yt-hero__card {
		max-width: calc(100% - var(--ytf-rail-w, 28.4rem) - var(--ytf-rail-gap, 4rem));
		margin-top: 7rem;
	}
}