/**
 * Variant CSS: hero--photo-fade-into-surface
 * Layer 2 — the landscape photo opens the hero and DISSOLVES into the page
 * surface: a CSS mask fades out the photo's lower ~35% (alpha fade — theme
 * agnostic, no painted color), and the centered statement rises out of the
 * transition zone, pulled up into the faded area by a negative margin.
 * Graceful degradation: without mask support the photo keeps a hard edge
 * and the statement still reads (it sits on the page surface).
 * Scope: body.aibt-universal .universal-hero--photo-fade-into-surface
 */

body.aibt-universal .universal-hero--photo-fade-into-surface {
	padding-block-end: clamp(var(--space-xl), 7vw, var(--space-3xl));
	overflow: hidden;
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__photo {
	margin: 0;
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__photo img {
	display: block;
	width: 100%;
	height: clamp(380px, 62vh, 640px);
	object-fit: cover;
	-webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}

/* The statement climbs into the faded zone — the fade guarantees the text
   sits on (mostly) plain surface, so theme ink tokens stay legible. */
body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__statement {
	position: relative;
	z-index: 2;
	margin-block-start: clamp(-9rem, -12vw, -5rem);
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__kicker {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 auto var(--space-sm) auto;
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__headline {
	font-family: var(--font-display);
	color: var(--text-primary);
	margin: 0 auto var(--space-sm) auto;
	overflow-wrap: break-word;
	/* A whisper of surface-colored halo keeps the type crisp where the last
	   of the photo still shimmers through the fade. */
	text-shadow: 0 0 18px var(--background), 0 0 36px var(--background);
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__headline em {
	font-style: italic;
	color: var(--accent);
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__deck {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-relaxed);
	color: var(--text-secondary);
	max-width: 40rem;
	margin: 0 auto var(--space-lg) auto;
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__cta .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent));
	color: var(--cta-text-primary, var(--on-accent, #FFFFFF));
	font-family: var(--font-body);
	font-weight: 600;
	padding: 1.05rem 2.4rem;
	border-radius: var(--decor-radius);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--decor-shadow-elevated);
}

body.aibt-universal .universal-hero--photo-fade-into-surface a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* ── Mobile: shorter photo, gentler climb. ───────────────────────── */
@media (max-width: 640px) {
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__photo img {
		height: clamp(260px, 44vh, 380px);
	}
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__statement {
		margin-block-start: -3rem;
	}
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__kicker {
		letter-spacing: var(--tracking-wide);
	}
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__headline {
		font-size: clamp(2rem, 8.5vw, 2.8rem) !important;
	}
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__actions,
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__cta,
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__cta .wp-block-button__link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-hero--photo-fade-into-surface .universal-hero__cta .wp-block-button__link {
		transition: none;
	}
}
