/**
 * Horizon Core: the PORTRAIT home hero (hero mode 'portrait', HORIZON-20261008-034).
 *
 * Loaded ONLY on a home whose hero mode is 'portrait' (Render/hero-cutout.php, hp_hero_portrait_enqueue), in the head,
 * after the theme and the phone header, so plain source order wins. Signed design: a creator site home v1
 * (HORIZON-20261008-034), measured at 1440 and 390.
 *
 *   WIDE (900px up)  her transparent cutout on the page's own ground, right-aligned and faded at the foot; the words in
 *                    a left column that stops short of her face; one solid button, a quiet play link, a trust line.
 *   PHONE            the photo FIRST (head and shoulders, 330px), the words UNDER it. Nothing is ever printed over her
 *                    face, at any width (the fault this design exists to fix).
 *
 * ⛔ !important only where the theme prints an INLINE style (the hero inner's text-align and max-width, the title's
 * max-width:none, the tagline's margin-bottom) or where Core's phone header pulls the hero up with !important.
 */

/* ── Every width ─────────────────────────────────────────────────────────────────────────────────────────────── */

.hp-hero.hp-hero--portrait { background: var(--hp-bg); }
.hp-hero--portrait .hp-hero__overlay { display: none; }
.hp-hero--portrait .hp-hero__bg img {
	object-fit: cover;
	object-position: center top;
	-webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 94%);
	mask-image: linear-gradient(to bottom, #000 58%, transparent 94%);
}
.hp-hero--portrait .hp-hero__eyebrow {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap; /* a one-line label, never prose (the design sets it on one line at every width) */
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	color: var(--hp-gold);
	margin: 0;
}
.hp-hero--portrait .hp-hero__title {
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 0.95;
	margin: 0;
	color: var(--hp-text);
}
.hp-hero--portrait .hp-hero__tagline {
	font-family: var(--hp-font-display);
	font-style: italic;
	color: color-mix(in srgb, var(--hp-text) 88%, var(--hp-gold));
	margin: 0 !important;
}
.hp-hero--portrait .hp-hero__intro {
	margin: 0;
	max-width: 460px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--hp-text-muted);
}
.hp-hero--portrait .hp-hero__cta {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: 10px;
}
.hp-hero--portrait .hp-hero__cta .hp-btn--primary {
	min-height: 58px;
	padding: 0 30px;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}
/* The second button is a quiet play link: a ringed play mark before its words, no box. */
.hp-hero--portrait .hp-hero__cta .hp-btn--secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: color-mix(in srgb, var(--hp-text) 88%, var(--hp-gold)) !important;
}
.hp-hero--portrait .hp-hero__cta .hp-btn--secondary { position: relative; }
.hp-hero--portrait .hp-hero__cta .hp-btn--secondary::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--hp-text) 30%, transparent);
}
.hp-hero--portrait .hp-hero__cta .hp-btn--secondary::after {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 10px;
	height: 12px;
	margin-top: -6px;
	background: currentColor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hp-hero--portrait .hp-hero__cta .hp-btn--secondary:hover { color: var(--hp-text) !important; }
.hp-hero--portrait .hp-hero__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin: 14px 0 0;
	white-space: nowrap;
	font-size: 13px;
	color: var(--hp-text-subtle, var(--hp-text-muted));
}

/* ── Wide: words left, her cutout right ─────────────────────────────────────────────────────────────────────── */

@media (min-width: 900px) {
	.hp-hero.hp-hero--portrait {
		min-height: 0;
		height: clamp(620px, 60vw, 860px);
		justify-content: flex-start;
	}
	.hp-hero--portrait .hp-hero__bg {
		inset: 0 auto auto auto;
		right: max(70px, calc((100vw - 1440px) / 2 + 70px));
		width: min(741px, 52vw);
		height: calc(100% + 40px);
	}
	.hp-hero--portrait .hp-hero__inner {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
		max-width: 1440px !important;
		padding: clamp(150px, 14.6vw, 210px) calc(min(741px, 52vw) - 40px) 0 clamp(40px, 8.33vw, 120px);
	}
	.hp-hero--portrait .hp-hero__title {
		font-size: clamp(64px, 7.2vw, 104px);
		max-width: 3.6em !important;
	}
	.hp-hero--portrait .hp-hero__tagline { font-size: clamp(20px, 1.8vw, 26px); }
}

/* ── Phone: the photo first, the words under it ─────────────────────────────────────────────────────────────── */

@media (max-width: 899.98px) {
	.hp-hero.hp-hero--portrait {
		min-height: 0 !important;
		height: auto;
		justify-content: flex-start;
		margin-top: 0 !important;
		padding-top: 56px;
	}
	.hp-hero--portrait .hp-hero__bg {
		position: relative;
		inset: auto;
		width: 100%;
		height: 330px;
	}
	.hp-hero--portrait .hp-hero__bg img {
		-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
		mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
	}
	.hp-hero--portrait .hp-hero__inner {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 4px var(--le-gutter, 20px) 0 !important;
		transform: none !important;
	}
	.hp-hero--portrait .hp-hero__eyebrow { font-size: 12px; letter-spacing: 0.03em; } /* the platform's 12px floor */
	.hp-hero--portrait .hp-hero__title { font-size: 48px; line-height: 1; white-space: nowrap; }
	.hp-hero--portrait .hp-hero__tagline { font-size: 19px; }
	.hp-hero--portrait .hp-hero__intro,
	.hp-hero--portrait .hp-hero__trust { display: none; }
	.hp-hero--portrait .hp-hero__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin-top: 8px;
	}
	.hp-hero--portrait .hp-hero__cta .hp-btn--primary {
		min-height: 54px;
		width: 100%;
		justify-content: center;
		font-size: 16px;
	}
	.hp-hero--portrait .hp-hero__cta .hp-btn--secondary {
		justify-content: center;
		align-self: center;
		gap: 8px;
		font-size: 14px;
	}
	.hp-hero--portrait .hp-hero__cta .hp-btn--secondary::before { display: none; }
	.hp-hero--portrait .hp-hero__cta .hp-btn--secondary::after {
		position: static;
		order: -1;
		width: 9px;
		height: 11px;
		margin: 0;
	}
}
@media (max-width: 385px) {
	.hp-hero--portrait .hp-hero__eyebrow { letter-spacing: 0; }
}
/* Tablets held upright and large phones (481-899px): the phone's 330px full-width strip would show only her hair, so
   the whole cutout is shown instead, contained (no crop), up to 460px tall. */
@media (min-width: 481px) and (max-width: 899.98px) {
	.hp-hero--portrait .hp-hero__bg { height: min(56vw, 460px); }
	.hp-hero--portrait .hp-hero__bg img { object-fit: contain; object-position: center top; }
}
