/** Hero is a normal-flow component. Header owns all fixed positioning and scroll state. */
.ba-hero {
	--ba-hero-height: clamp(640px, 96svh, 1120px);
	--ba-hero-height-tablet: clamp(580px, 88svh, 1000px);
	--ba-hero-height-mobile: clamp(520px, 82svh, 860px);
	--ba-hero-header-clearance: 156px;
	--ba-hero-header-clearance-tablet: 136px;
	--ba-hero-header-clearance-mobile: 120px;
	--ba-hero-content-width: 900px;
	--ba-hero-button-gap: 16px;
	--ba-hero-content-gap: 28px;
	--ba-hero-duration: 600ms;
	--ba-hero-overlay: 18 18 18;
	--ba-hero-opacity: .78;
	--ba-hero-headline: var(--ba-color-white, #fff);
	--ba-hero-paragraph: var(--ba-color-neutral, #f8f7f5);
	--ba-hero-primary-bg: var(--ba-color-primary, #e84a10);
	--ba-hero-primary-text: var(--ba-color-secondary, #121212);
	--ba-hero-primary-hover: var(--ba-color-primary-hover, #d6400a);
	--ba-hero-primary-hover-text: var(--ba-color-secondary, #121212);
	--ba-hero-secondary-bg: transparent;
	--ba-hero-secondary-text: var(--ba-color-white, #fff);
	--ba-hero-secondary-hover: var(--ba-color-white, #fff);
	--ba-hero-secondary-hover-text: var(--ba-color-secondary, #121212);
	--ba-hero-align: center;
	position: relative;
	isolation: isolate;
	width: 100%;
	background: var(--ba-color-secondary, #121212);
	color: var(--ba-hero-headline);
	font-family: var(--ba-font-body, "Plus Jakarta Sans", Arial, sans-serif);
}
.ba-hero, .ba-hero * { box-sizing: border-box; }
/* All slides contribute to track height; even longer later content cannot be clipped. */
.ba-hero .ba-hero-slides { display: grid; touch-action: pan-y pinch-zoom; }
.ba-hero .ba-hero-slide {
	position: relative;
	grid-area: 1 / 1;
	display: grid;
	min-width: 0;
	min-height: var(--ba-hero-height);
	padding-block: calc(var(--ba-hero-header-clearance) + clamp(24px, 4vw, 56px)) clamp(88px, 7vw, 120px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--ba-hero-duration) ease, visibility var(--ba-hero-duration);
}
.ba-hero .ba-hero-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 1; transition-property: opacity; }
.ba-hero .ba-hero-media, .ba-hero .ba-hero-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ba-hero .ba-hero-image { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ba-hero-focal-x, 50%) var(--ba-hero-focal-y, 50%); }
.ba-hero .ba-hero-overlay {
	background: linear-gradient(90deg, rgb(var(--ba-hero-overlay) / var(--ba-hero-opacity)) 0%, rgb(var(--ba-hero-overlay) / calc(var(--ba-hero-opacity) * .86)) 48%, rgb(var(--ba-hero-overlay) / calc(var(--ba-hero-opacity) * .45)) 100%), linear-gradient(180deg, rgb(var(--ba-hero-overlay) / calc(var(--ba-hero-opacity) * .8)), transparent 38%);
}
.ba-hero .ba-hero-container {
	position: relative;
	width: min(calc(100% - var(--ba-gutter, 48px) * 2), var(--ba-container-max, 1280px));
	margin-inline: auto;
	display: grid;
	align-items: var(--ba-hero-align);
	min-width: 0;
}
.ba-hero .ba-hero-content { display: grid; gap: var(--ba-hero-content-gap); max-width: var(--ba-hero-content-width); min-width: 0; }
.ba-hero .ba-hero-eyebrow { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; color: var(--ba-hero-headline); }
.ba-hero .ba-hero-headline {
	margin: 0;
	font-family: var(--ba-font-heading, "Space Grotesk", Arial, sans-serif);
	font-size: clamp(40px, 4.8vw, 76px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.035em;
	color: var(--ba-hero-headline);
	overflow-wrap: anywhere;
	text-wrap: balance;
}
.ba-hero .ba-hero-paragraph { margin: 0; max-width: 560px; color: var(--ba-hero-paragraph); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; overflow-wrap: anywhere; }
.ba-hero .ba-hero-ctas { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--ba-hero-button-gap); margin-top: 8px; min-width: 0; }
/* Both CTAs share the widget's validated font-weight select. */
.ba-hero .ba-hero-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; max-width: 100%; padding: 16px 24px; border: 1px solid transparent; border-radius: 0; font: var(--ba-hero-cta-weight, 500) 19px/1.4 var(--ba-font-body, "Plus Jakarta Sans", Arial, sans-serif); text-align: center; text-decoration: none; overflow-wrap: anywhere; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.ba-hero .ba-hero-button-primary { background: var(--ba-hero-primary-bg); color: var(--ba-hero-primary-text); }
.ba-hero .ba-hero-button-primary:hover { background: var(--ba-hero-primary-hover); color: var(--ba-hero-primary-hover-text); }
.ba-hero .ba-hero-button-secondary { background: var(--ba-hero-secondary-bg); color: var(--ba-hero-secondary-text); border-color: currentColor; }
.ba-hero .ba-hero-button-secondary:hover { background: var(--ba-hero-secondary-hover); color: var(--ba-hero-secondary-hover-text); border-color: var(--ba-hero-secondary-hover); }
.ba-hero a:focus-visible, .ba-hero button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 6px #121212; }
.ba-hero .ba-hero-controls, .ba-hero .ba-hero-dots { position: absolute; z-index: 3; bottom: 24px; display: flex; gap: 8px; }
.ba-hero .ba-hero-controls { left: max(var(--ba-gutter, 48px), calc((100% - var(--ba-container-max, 1280px)) / 2)); }
.ba-hero .ba-hero-dots { left: calc(var(--ba-gutter, 48px) + 112px); right: calc(var(--ba-gutter, 48px) + 56px); justify-content: center; overflow-x: auto; }
.ba-hero .ba-hero-arrow, .ba-hero .ba-hero-dot, .ba-hero .ba-hero-rotation { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / .7); border-radius: 0; background: #121212; color: #fff; cursor: pointer; font: 600 22px/1 var(--ba-font-body, Arial, sans-serif); }
.ba-hero .ba-hero-dot { border: 0; background: transparent; }
.ba-hero .ba-hero-dot span { display: block; width: 7px; height: 7px; background: #fff; opacity: .45; }
.ba-hero .ba-hero-dot[aria-current] span { opacity: 1; outline: 1px solid #fff; outline-offset: 4px; }
.ba-hero .ba-hero-rotation { position: absolute; z-index: 3; right: var(--ba-gutter, 48px); bottom: 24px; }
.ba-hero .ba-hero-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ba-hero:not(.is-ready) .ba-hero-controls, .ba-hero:not(.is-ready) .ba-hero-dots, .ba-hero:not(.is-ready) .ba-hero-rotation { display: none; }
@media (max-width: 1024px) {
	.ba-hero .ba-hero-slide { min-height: var(--ba-hero-height-tablet); padding-top: calc(var(--ba-hero-header-clearance-tablet) + 32px); }
	.ba-hero .ba-hero-headline { font-size: clamp(38px, 5.4vw, 58px); }
	.ba-hero .ba-hero-image { object-position: var(--ba-hero-focal-x-tablet, var(--ba-hero-focal-x, 50%)) var(--ba-hero-focal-y-tablet, var(--ba-hero-focal-y, 50%)); }
}
@media (max-width: 767px) {
	.ba-hero .ba-hero-slide { min-height: var(--ba-hero-height-mobile); padding-block: calc(var(--ba-hero-header-clearance-mobile) + 24px) 88px; }
	.ba-hero .ba-hero-container { width: calc(100% - clamp(24px, 6vw, 36px) * 2); }
	.ba-hero .ba-hero-content { gap: min(var(--ba-hero-content-gap), 24px); }
	.ba-hero .ba-hero-headline { font-size: clamp(30px, 7.7vw, 42px); line-height: 1.08; }
	.ba-hero .ba-hero-ctas { flex-direction: column; }
	.ba-hero .ba-hero-button { width: 100%; padding-inline: 16px; }
	.ba-hero .ba-hero-paragraph { font-size: 16px; line-height: 1.65; }
	.ba-hero .ba-hero-image { object-position: var(--ba-hero-focal-x-mobile, var(--ba-hero-focal-x-tablet, var(--ba-hero-focal-x, 50%))) var(--ba-hero-focal-y-mobile, var(--ba-hero-focal-y-tablet, var(--ba-hero-focal-y, 50%))); }
	.ba-hero .ba-hero-controls { left: 24px; }
	.ba-hero .ba-hero-rotation { right: 24px; }
	.ba-hero .ba-hero-dots { left: 136px; right: 80px; }
}
@media (prefers-reduced-motion: reduce) { .ba-hero, .ba-hero * { transition: none; animation: none; } }
