/*
  Component: full-bleed feature hero.
  Figma: 297:2399 — 1440×580 image, gradient bottom→black, label pill + 48pt
  Hero Headline pinned to bottom-left inside the container gutter.

  Markup:
    a.c-feature-bleed
      .c-feature-bleed__media  > img.c-feature-bleed__img
      .c-feature-bleed__inner.l-container
        .c-feature-bleed__label
        h2.c-feature-bleed__title
*/

.c-feature-bleed {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1440 / 580;
	overflow: hidden;
	color: var(--c-light);
	text-decoration: none;
	background: var(--c-dark);
	isolation: isolate;
}

.c-feature-bleed__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.c-feature-bleed__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Bottom-up gradient — Figma is opaque at ~47% upward. */
.c-feature-bleed__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0) 53%,
		rgba(0,0,0,1) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.c-feature-bleed__inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--space-8);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.c-feature-bleed__label {
	display: inline-flex;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--c-light);
	border-radius: var(--radius-md);
	color: var(--c-light);
	font-size: var(--fs-heading-14);
	line-height: var(--lh-heading-14);
	font-weight: var(--fw-semibold);
	letter-spacing: -0.42px;
	text-transform: uppercase;
	width: max-content;
}

.c-feature-bleed__title {
	margin: 0;
	font-size: var(--fs-hero);          /* 48 */
	line-height: var(--lh-hero);        /* 60 */
	font-weight: var(--fw-bold);
	letter-spacing: -1.92px;            /* Figma -4 → -1.92px @ 48pt */
	color: var(--c-light);
	max-width: 1200px;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.c-feature-bleed:hover .c-feature-bleed__title,
.c-feature-bleed:focus-visible .c-feature-bleed__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

@media (max-width: 768px) {
	.c-feature-bleed { aspect-ratio: 16 / 11; }
	.c-feature-bleed__title { font-size: 28px; line-height: 34px; letter-spacing: -1px; }
	.c-feature-bleed__inner { bottom: var(--space-4); }
}
