/* =========================================================
   Hero Scroll Solofit
   Colours and fonts mirror the Elementor global kit.

   Reading order in the stage, largest visual weight last:
     1. eyebrow  what it is and where
     2. title    the rotating hook
     3. lead     the promise
     4. cta      the action

   Heights come from --sf-screen (snippet 10385): the screen
   height in pixels, fixed while the page is open. Never vh or
   svh, which move with a phone's browser bars and made the
   stage jump on iPhone.
   ========================================================= */

.sf-hero {
	--sf-bg: #0D0D0D;
	--sf-surface: #111111;
	--sf-text: #f2f0eb;
	--sf-muted: #666666;
	--sf-accent: #F2B705;
	--sf-accent-hi: #ffc81f;
	--sf-on-accent: #111111;

	--sf-display: "Chakra Petch", "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sf-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Both set by script.js when a transparent fixed header floats over the hero.
	   --sf-pull is how far the section is lifted (header box + the margin the
	   Elementor sticky spacer leaves behind + any container padding); --sf-header-h
	   is the visible header height, used to keep the copy clear of it. */
	--sf-pull: 0px;
	--sf-header-h: 0px;
	--sf-gutter: clamp(1.25rem, 5vw, 3rem);
	--sf-screen-h: var(--sf-screen, 820px);
	--sf-steps-bottom: clamp(18px, calc(var(--sf-screen-h) * .034), 38px);

	position: relative;
	width: 100%;
	max-width: none;
	flex: 0 0 auto;
	margin-top: calc(var(--sf-pull) * -1);
	background: var(--sf-bg);
	color: var(--sf-text);
	isolation: isolate;
}

/* When the hero is dropped in as an Elementor widget, its wrappers must not
   box it in. script.js handles the rest by measuring. */
.elementor-widget-solofit_hero_widget,
.elementor-widget-solofit_hero_widget > .elementor-widget-container {
	width: 100%;
	max-width: none;
}

.sf-hero *,
.sf-hero *::before,
.sf-hero *::after {
	box-sizing: border-box;
}

/* ---------- scroll track + sticky stage ----------
   The track is four screens: the stage, then three screens of scrolling
   that scrub the video and step through the headlines. */

.sf-hero__track {
	position: relative;
	width: 100%;
	height: calc(var(--sf-screen-h) * 4);
}

.sf-hero__stage {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--sf-screen-h);
	overflow: hidden;
	background: var(--sf-bg);
}

/* ---------- video ---------- */

.sf-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.sf-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity .7s ease, transform 1.2s ease;
}

.sf-hero.is-ready .sf-hero__video {
	opacity: 1;
	transform: none;
}

.sf-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(118% 88% at 50% 44%, rgba(13, 13, 13, .24) 0%, rgba(13, 13, 13, .52) 58%, rgba(13, 13, 13, .76) 100%),
		linear-gradient(180deg, rgba(13, 13, 13, .62) 0%, rgba(13, 13, 13, .2) 26%, rgba(13, 13, 13, .3) 58%, rgba(13, 13, 13, .88) 100%);
}

/* ---------- content ---------- */

/* No flex gap here on purpose: each tier sets its own spacing, so the rhythm
   between them can be uneven and deliberate. */
.sf-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1140px;
	padding: var(--sf-header-h) var(--sf-gutter) 0;
	text-align: center;
}

.sf-hero__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

/* ---------- tier 1: what it is and where ---------- */

.sf-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	margin: 0 0 clamp(.8rem, calc(var(--sf-screen-h) * .017), 1.3rem);
	font-family: var(--sf-body);
	font-size: clamp(.6875rem, .95vw, .8125rem);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(242, 240, 235, .72);
	text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
	text-wrap: balance;
}

.sf-hero__dot {
	flex: none;
	width: .45em;
	height: .45em;
	border-radius: 50%;
	background: var(--sf-accent);
}

/* ---------- tier 2: the hook ----------
   A paragraph, not a heading: the page's H1 lives in the section below. */

.sf-hero__title {
	margin: 0;
	padding: 0;
	font-family: var(--sf-display);
	font-size: clamp(2.35rem, 7vw, 5.5rem);
	font-weight: 800;
	font-style: italic;
	line-height: 1.04;
	letter-spacing: -.015em;
	text-transform: uppercase;
	color: var(--sf-text);
	text-shadow: 0 2px 34px rgba(0, 0, 0, .45);
}

.sf-hero__rotator {
	display: grid;
	align-items: center;
	justify-items: center;
}

.sf-hero__line {
	grid-area: 1 / 1;
	max-width: 18ch;
	opacity: 0;
	transform: translate3d(0, .4em, 0);
	filter: blur(7px);
	transition:
		opacity .55s cubic-bezier(.22, .61, .36, 1),
		transform .7s cubic-bezier(.22, .61, .36, 1),
		filter .55s cubic-bezier(.22, .61, .36, 1);
	will-change: opacity, transform;
	text-wrap: balance;
}

.sf-hero__line.is-active {
	opacity: 1;
	transform: none;
	filter: blur(0);
}

.sf-hero__line.is-past {
	opacity: 0;
	transform: translate3d(0, -.4em, 0);
}

/* ---------- tier 3: the promise ----------
   Sentence case and normal tracking, so it reads as a statement rather than
   a second label competing with the eyebrow. */

.sf-hero__lead {
	margin: clamp(.9rem, calc(var(--sf-screen-h) * .019), 1.5rem) 0 0;
	font-family: var(--sf-body);
	font-size: clamp(1rem, 1.5vw, 1.375rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	color: rgba(242, 240, 235, .92);
	text-shadow: 0 1px 20px rgba(0, 0, 0, .55);
	text-wrap: balance;
}

/* ---------- tier 4: the action ----------
   Square-edged and glowing, matching the header button and the site-wide
   `btn-primary` global class. */

.sf-hero__actions {
	margin-top: clamp(1.5rem, calc(var(--sf-screen-h) * .032), 2.5rem);
}

.sf-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	padding: clamp(.9rem, calc(var(--sf-screen-h) * .016), 1.15rem) clamp(1.75rem, 3vw, 2.4rem);
	border: 0;
	border-radius: 3px;
	background: var(--sf-accent);
	color: var(--sf-on-accent);
	font-family: var(--sf-body);
	font-size: clamp(.9rem, 1.05vw, 1rem);
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow:
		0 0 22px -2px rgba(242, 183, 5, .38),
		0 10px 26px -10px rgba(242, 183, 5, .5);
	transition: transform .25s cubic-bezier(.22, .61, .36, 1), background-color .25s ease, box-shadow .25s ease;
}

.sf-hero__cta:hover,
.sf-hero__cta:focus-visible {
	background: var(--sf-accent-hi);
	color: var(--sf-on-accent);
	transform: translateY(-2px);
	box-shadow:
		0 0 30px 0 rgba(242, 183, 5, .55),
		0 16px 38px -12px rgba(242, 183, 5, .75);
}

.sf-hero__cta:focus-visible {
	outline: 2px solid var(--sf-text);
	outline-offset: 3px;
}

.sf-hero__cta:active {
	transform: translateY(0);
	box-shadow:
		0 0 18px -2px rgba(242, 183, 5, .45),
		0 8px 20px -10px rgba(242, 183, 5, .6);
}

.sf-hero__cta-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	transition: transform .25s cubic-bezier(.22, .61, .36, 1);
}

.sf-hero__cta:hover .sf-hero__cta-icon {
	transform: translateX(3px);
}

/* ---------- scroll hint ---------- */

.sf-hero__hint {
	position: absolute;
	left: 50%;
	bottom: calc(var(--sf-steps-bottom) + 26px);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transform: translateX(-50%);
	opacity: 1;
	transition: opacity .45s ease;
	pointer-events: none;
}

.sf-hero.is-scrolled .sf-hero__hint {
	opacity: 0;
}

.sf-hero__hint-text {
	font-family: var(--sf-body);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(242, 240, 235, .6);
}

.sf-hero__hint-line {
	position: relative;
	width: 1px;
	height: 26px;
	overflow: hidden;
	background: rgba(242, 240, 235, .18);
}

.sf-hero__hint-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--sf-accent);
	animation: sf-hero-hint 1.9s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes sf-hero-hint {
	0% { transform: translateY(-100%); }
	60%, 100% { transform: translateY(100%); }
}

/* ---------- 3-step progress ---------- */

.sf-hero__steps {
	position: absolute;
	left: 50%;
	bottom: var(--sf-steps-bottom);
	z-index: 2;
	display: flex;
	gap: 9px;
	transform: translateX(-50%);
	pointer-events: none;
}

.sf-hero__step {
	width: clamp(30px, 7vw, 56px);
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(242, 240, 235, .2);
}

.sf-hero__step i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--sf-accent);
	transform: scaleX(0);
	transform-origin: left center;
}

/* ---------- narrow phones ---------- */

@media (max-width: 420px) {
	.sf-hero__eyebrow {
		font-size: .6875rem;
		letter-spacing: .08em;
	}
	.sf-hero__lead {
		font-size: 1rem;
	}
}

/* ---------- short / landscape viewports ---------- */

@media (orientation: landscape) and (max-height: 560px) {
	.sf-hero__title { font-size: clamp(1.5rem, calc(var(--sf-screen-h) * .054), 2.6rem); }
	.sf-hero__eyebrow { font-size: .6875rem; letter-spacing: .1em; margin-bottom: .5rem; }
	.sf-hero__lead { font-size: .9rem; margin-top: .55rem; }
	.sf-hero__actions { margin-top: .9rem; }
	.sf-hero__cta { padding: .7rem 1.4rem; font-size: .85rem; }
	.sf-hero__hint { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.sf-hero__video { transition: opacity .2s ease; transform: none; }
	.sf-hero__line {
		transition-duration: .001ms;
		filter: none;
	}
	.sf-hero__line,
	.sf-hero__line.is-past { transform: none; }
	.sf-hero__cta { transition: none; }
	.sf-hero__hint-line::after { animation: none; }
}
