/**
 * Hero layout — navy split hero with animated process spine.
 * Fluid type/spacing: clamp maxes = mockup rendered sizes @ 1600px ceiling,
 * scaling continuously to mobile. The spine graphic keeps fixed geometry.
 */

/*
 * The hero must never spill into the second scroll (client feedback 2026-08-03).
 * The mockup's `min-height:680px` × 1.25 = the 850px ceiling below, which is
 * taller than the viewport on every laptop once the 135px sticky header is
 * subtracted — a 1822×852 window cut the spine card's "APPLICATION → CLOSE"
 * footer off entirely.
 *
 * `min()` caps the band at exactly one screen, so the hero ends on the fold at
 * any window height and still honours the mockup's 850px on tall monitors.
 * It stays a `min-height`, not a `height`, so on a very short window the box
 * still grows to its own content rather than clipping it.
 *
 * `svh` (not `vh`) so a mobile browser's collapsing URL bar can't make the hero
 * taller than the visible area; the `vh` line above it is the fallback for
 * engines without `svh`.
 */
.flexible-section.hero {
	display: grid;
	grid-template-columns: 52% 48%;
	min-height: min(clamp(520px, 26.6vw + 424px, 850px), calc(100vh - var(--header-h)));
	min-height: min(clamp(520px, 26.6vw + 424px, 850px), calc(100svh - var(--header-h)));
	padding-block: 0;
	/*
	 * The hero stays FULL-BLEED above the 1600 ceiling — deliberate, decided
	 * 2026-08-03 after building and reviewing the alternative.
	 *
	 * The alternative was capping the content at 1600 and centring it
	 * (`padding-inline: max(0px, calc((100% - 1600px) / 2))`, which paints
	 * full-bleed anyway since background covers the padding box). It did what it
	 * promised — the dead band between the columns froze at its 1600 value of
	 * 236px instead of growing with the monitor (405px at 1822, ~800px at 2560)
	 * — but it made the hero indent against the full-bleed sections below it,
	 * 160px at 1920 and 480px at 2560, and the developer judged that worse than
	 * the gap it fixed. **Don't re-derive it: it was measured and rejected, not
	 * overlooked.**
	 *
	 * Everything else in this file's fold-fit work is unaffected — that all
	 * lands at 1600 and below, which is where the design ceiling is.
	 */
	background: var(--gradient-navy);
	overflow: hidden;
}

.flexible-section.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at 70% 50%, rgba(196, 154, 26, 0.06) 0%, transparent 65%);
}

.hero-left {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Block padding trimmed 130 → 90 at the ceiling so the copy fills the band
	   instead of floating in it (client feedback 2026-08-03). Inline padding is
	   unchanged — the left gutter still matches the mockup. */
	padding: clamp(48px, 3.39vw + 35.81px, 90px) clamp(24px, 4.11vw + 9.2px, 75px) clamp(48px, 3.39vw + 35.81px, 90px) clamp(28px, 5.81vw + 7.1px, 100px);
}

.hero-left::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(to bottom, transparent 10%, var(--color-gold2) 50%, transparent 90%);
}

/*
 * Vertical seam between the hero halves. The v8 mockup (2026-07-26) set this to
 * `width: 0` when the hero became a gradient — the seam and the right-hand
 * overlay both fought the diagonal. Kept as a zero-width rule rather than
 * deleted, to mirror the mockup and keep the seam one value away if the client
 * wants it back.
 */
.hero-left::after {
	content: '';
	position: absolute;
	right: 0;
	top: 12%;
	bottom: 12%;
	width: 0;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.07), transparent);
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	border-left: 2px solid var(--color-gold2);
	padding: 4px 0 4px 12px;
	margin-bottom: clamp(31px, 1.532vw + 25.48px, 50px);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

/* On <h1> — heading font/weight from the global rule; white via .text-white
   utility in markup (navy hero). */
.hero-title {
	letter-spacing: -0.02em;
	margin: 0;
}

.hero-divider {
	display: block;
	width: 48px;
	height: 2px;
	background: var(--color-gold2);
	margin: clamp(20px, 1vw + 16px, 40px) 0;
}

.hero-tagline {
	/* 550 → 620: the two columns' content left a ~460px dead band down the
	   middle of the hero at 1822px (the gap the client's arrows point at).
	   Widening the tagline and the spine card closes it from both sides. */
	max-width: 620px;
	margin: 0 0 clamp(36px, 1.9vw + 29px, 65px);
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.48);
}

.hero-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

/* Right panel */
.hero-right {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	/* Block padding trimmed 57.5 → 42 at the ceiling, same reason as .hero-left. */
	padding: clamp(26px, 1.29vw + 21.36px, 42px) clamp(25px, 2.02vw + 17.7px, 50px);
	gap: clamp(14px, 0.7vw + 11.5px, 22.5px);
	/* v8 dropped the `rgba(0,8,28,0.28)` darkening overlay that used to sit here —
	   it muddied the new hero gradient's right half. */
	overflow: visible;
}

.hero-right-accent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(196, 154, 26, 0.5), transparent);
}

/* ── Process spine card ─────────────────────────── */
.uo-jcard {
	width: 100%;
	/* 450 → 520, closing the dead middle band from the right (see .hero-tagline). */
	max-width: 520px;
	margin: 0 auto;
}

.uo-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: clamp(15.5px, 0.766vw + 12.74px, 25px);
}

.uo-eyebrow .ln {
	flex: 1;
	height: 1px;
	background: rgba(196, 154, 26, 0.25);
}

.uo-eyebrow .tx {
	white-space: nowrap;
	font-size: clamp(10.13px, 0.09vw + 9.8px, 11.25px);
	font-weight: var(--fw-700);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(196, 154, 26, 0.75);
}

/* <div> — add .font-heading + .text-white utilities in markup. */
.uo-jhead {
	letter-spacing: -0.01em;
	text-align: center;
	margin-bottom: 6px;
}

.uo-jhead em {
	font-style: normal;
	color: var(--color-gold2);
}

.uo-jsub {
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: clamp(20px, 1vw + 16px, 32.5px);
}

.uo-spine {
	position: relative;
	padding-left: 30px;
}

/* rail */
.uo-spine::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 7px;
	bottom: 46px;
	width: 2px;
	background: rgba(255, 255, 255, 0.1);
}

/* animated gold fill */
.uo-spine::after {
	content: '';
	position: absolute;
	left: 8px;
	top: 7px;
	width: 2px;
	height: calc(100% - 53px);
	background: linear-gradient(to bottom, #8a5e06, #d4a820);
	transform: scaleY(0);
	transform-origin: top;
	animation: uoFill 1.5s 0.25s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

.uo-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	margin-bottom: 17px;
	opacity: 0;
	animation: uoStep 0.5s ease forwards;
}

.uo-step:nth-child(1) { animation-delay: 0.35s; }
.uo-step:nth-child(2) { animation-delay: 0.55s; }
.uo-step:nth-child(3) { animation-delay: 0.75s; }
.uo-step:nth-child(4) { animation-delay: 0.95s; }
.uo-step:nth-child(5) { animation-delay: 1.15s; }

.uo-node {
	position: absolute;
	left: -30px;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--gradient-navy);
	border: 2px solid var(--color-gold2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.uo-node::after {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-gold2);
}

.uo-stitle {
	color: rgba(255, 255, 255, 0.92);
	transition: all 0.4s;
}

.uo-ssub {
	font-size: clamp(11.25px, 0.101vw + 10.89px, 12.5px);
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.4);
	margin-top: 2px;
}

.un-node-box{
	position: relative;
}
.un-node-box a.uo-step-link	{
	position: absolute; inset: 0;
}
.un-node-box a.uo-step-link:hover + .uo-stitle {
	color: var(--color-gold2);
}

/* end cap */
.uo-end {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 3px;
	padding-top: 3px;
	opacity: 0;
	animation: uoStep 0.55s 1.4s ease forwards;
}

.uo-endnode {
	position: absolute;
	left: -32px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--color-gold2);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px rgba(196, 154, 26, 0.16);
}

.uo-endnode svg {
	width: 11px;
	height: 11px;
}

.uo-endlabel {
	font-size: clamp(11.25px, 0.101vw + 10.89px, 12.5px);
	font-weight: var(--fw-700);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.uo-endlabel b {
	display: block;
	margin-top: 1px;
	font-size: clamp(13.81px, 0.197vw + 13.1px, 16.25px);
	font-weight: var(--fw-700);
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--color-white);
}

.uo-clear {
	display: flex;
	justify-content: center;
	margin-top: clamp(17px, 0.9vw + 13.8px, 27.5px);
	opacity: 0;
	animation: uoStep 0.55s 1.6s ease forwards;
}

.uo-clear span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(196, 154, 26, 0.1);
	border: 1px solid rgba(196, 154, 26, 0.3);
	border-radius: 2px;
	padding: 8px 16px;
	font-size: clamp(11.82px, 0.106vw + 11.44px, 13.13px);
	font-weight: var(--fw-700);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-gold2);
}

.uo-foot {
	text-align: center;
	margin-top: 16px;
	font-size: clamp(11.25px, 0.101vw + 10.89px, 12.5px);
	font-weight: var(--fw-600);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
}

@keyframes uoFill { to { transform: scaleY(1); } }
@keyframes uoStep { to { opacity: 1; } }

/*
 * ── Short-window compaction ─────────────────────
 * The `min()` cap above stops the hero BAND from exceeding one screen, but the
 * spine card has an intrinsic height the band cannot shrink below — on a short
 * desktop window (1440×900 and 1280×800 laptops leave ~772px and ~700px of
 * viewport once browser chrome is gone) the card alone was still 18–65px taller
 * than the space available, so the last row kept landing under the fold.
 *
 * This tightens only the card's internal rhythm — no type sizes change, so the
 * calibration is untouched — and is keyed on VIEWPORT HEIGHT, which is what the
 * problem actually depends on. It deliberately does NOT fire at the 852px-tall
 * window the client reported from: that one already fits with room to spare, and
 * compacting it would re-open the empty space they asked us to close.
 *
 * Desktop only (min-width 1025px); below that the hero stacks and is meant to
 * scroll.
 */
@media (min-width: 1025px) and (max-height: 800px) {
	.uo-eyebrow { margin-bottom: 14px; }
	.uo-jsub { margin-bottom: 16px; }
	.uo-step { margin-bottom: 9px; }
	.uo-clear { margin-top: 14px; }
	.hero-left,
	.hero-right { padding-block: 36px; }
}

/* ── Responsive layout reflow ───────────────────── */
/* Stack the split hero once the 52% column gets too tight (<= 1024px). Type and
   spacing keep scaling fluidly via the clamp()s above — no size jump here. */
@media (max-width: 1024px) {
	.flexible-section.hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hero-left {
		padding: clamp(48px, 7vw, 76px) var(--section-pad-x) clamp(40px, 6vw, 56px);
	}

	.hero-left::after {
		display: none;
	}

	.hero-right {
		padding: 42px var(--section-pad-x) clamp(48px, 7vw, 72px);
	}
}

@media (max-width: 600px) {
	/* Stack the two hero CTAs full-width for easy tapping */
	.hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn,
	.hero-actions .btn-outline { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.uo-spine::after {
		animation: none;
		transform: scaleY(1);
	}

	.uo-step,
	.uo-end,
	.uo-clear {
		animation: none;
		opacity: 1;
	}
}
