.hps-slider {
	--hps-height: 100vh;
	--hps-min-height: 620px;
	--hps-content-width: 1440px;
	--hps-overlay: 0.42;
	position: relative;
	height: var(--hps-height);
	min-height: var(--hps-min-height);
	overflow: hidden;
	background: #080a0a;
	color: #fff;
	font-family: inherit;
	isolation: isolate;
}
.hps-stage,
.hps-slide,
.hps-bg,
.hps-image,
.hps-video-fallback {
	position: absolute;
	inset: 0;
}
.hps-slide {
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition:
		opacity var(--transition-ms, 900ms) ease,
		transform var(--transition-ms, 900ms) cubic-bezier(0.2, 0.7, 0.2, 1);
	transform: scale(1.015);
}
.hps-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transform: none;
}
.hps-slide.is-leaving {
	visibility: visible;
	z-index: 1;
}
.hps-slide[data-transition="slide-left"] {
	transform: translateX(5%);
}
.hps-slide[data-transition="slide-left"].is-active {
	transform: none;
}
.hps-slide[data-transition="slide-up"] {
	transform: translateY(5%);
}
.hps-slide[data-transition="slide-up"].is-active {
	transform: none;
}
.hps-slide[data-transition="reveal"] {
	clip-path: inset(0 0 0 100%);
	opacity: 1;
}
.hps-slide[data-transition="reveal"].is-active {
	clip-path: inset(0);
	transition: clip-path var(--transition-ms) cubic-bezier(0.7, 0, 0.2, 1);
}
.hps-bg {
	overflow: hidden;
}
.hps-bg video,
.hps-image,
.hps-video-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-size: cover;
	background-position: var(--bg-position, center center);
}
.hps-bg video {
	position: absolute;
	inset: 0;
}
.hps-video-fallback {
	z-index: -1;
}
.hps-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, calc(var(--slide-overlay) * 1.3)) 0%,
		rgba(0, 0, 0, var(--slide-overlay)) 45%,
		rgba(0, 0, 0, calc(var(--slide-overlay) * 0.55)) 100%
	);
}
.has-kenburns .hps-image,
.has-kenburns video {
	transform: scale(1.03);
}
.is-active .has-kenburns .hps-image,
.is-active .has-kenburns video {
	animation: hpsKen 10s ease-out forwards;
}
.hps-content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	padding: clamp(28px, 6vw, 100px);
}
.hps-content-inner {
	width: min(100%, var(--hps-content-width));
	margin: auto;
}
.hps-content h1 {
	font-size: clamp(3rem, 7vw, 7.5rem);
	line-height: 0.93;
	letter-spacing: -0.045em;
	margin: 0 0 1.8rem;
	max-width: 11ch;
}
.hps-content p {
	font-size: clamp(1rem, 1.35vw, 1.35rem);
	line-height: 1.55;
	max-width: 620px;
}
.hps-content a {
	display: inline-flex;
	margin-top: 1rem;
	padding: 15px 24px;
	text-decoration: none;
	background: #8fd132;
	color: #101410;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.hps-arrow {
	position: absolute;
	z-index: 8;
	top: 46%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 54px;
	line-height: 1;
	cursor: pointer;
	padding: 20px;
}
.hps-prev {
	left: 10px;
}
.hps-next {
	right: 10px;
}
.hps-ui {
	position: absolute;
	z-index: 8;
	left: 0;
	right: 0;
	bottom: 0;
}
.hps-thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(180px, 1fr);
	overflow: auto;
	background: #080a0a;
}
.hps-thumb {
	height: clamp(105px, 14vw, 220px);
	position: relative;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	background: #151818 center/cover no-repeat;
	color: #fff;
	text-align: left;
	padding: 18px;
	cursor: pointer;
	overflow: hidden;
}
.hps-thumb:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.05));
}
.hps-thumb > * {
	position: relative;
}
.hps-thumb-no {
	display: block;
	font-size: 12px;
	margin-bottom: 8px;
}
.hps-thumb-label {
	font-size: clamp(14px, 1.2vw, 20px);
	font-weight: 600;
}
.hps-thumb.is-active:after {
	content: "";
	position: absolute;
	left: 18px;
	bottom: 12px;
	width: 54px;
	height: 3px;
	background: #8fd132;
}
.hps-controls {
	height: 34px;
	background: #070808;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 0 5.5%;
}
.hps-progress {
	height: 3px;
	background: rgba(255, 255, 255, 0.18);
	flex: 1;
	overflow: hidden;
}
.hps-progress i {
	display: block;
	width: 100%;
	height: 100%;
	background: #8fd132;
	transform-origin: left;
}
.hps-dots {
	display: flex;
	gap: 9px;
}
.hps-dots button {
	width: 7px;
	height: 7px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: #fff;
	opacity: 0.45;
}
.hps-dots button.is-active {
	opacity: 1;
	background: #8fd132;
}
@keyframes hpsProgress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}
@keyframes hpsKen {
	from {
		transform: scale(1.03);
	}
	to {
		transform: scale(1.1);
	}
}
@media (max-width: 760px) {
	.hps-slider {
		min-height: 560px;
	}
	.hps-content {
		align-items: flex-end;
		padding: 30px 24px 180px;
	}
	.hps-content h1 {
		font-size: clamp(2.8rem, 14vw, 5rem);
	}
	.hps-thumbs {
		grid-auto-columns: 42vw;
	}
	.hps-thumb {
		height: 120px;
	}
	.hps-arrow {
		font-size: 42px;
	}
	.hps-controls {
		padding: 0 20px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hps-slide,
	.hps-bg * {
		transition: none !important;
		animation: none !important;
	}
}

/* Keyboard focus ring (the slider is focusable for arrow-key navigation). */
.hps-slider:focus {
	outline: none;
}
.hps-slider:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

/* Visual builder: vertical content position. */
.hps-valign-top .hps-content {
	align-items: flex-start;
}
.hps-valign-top .hps-content-inner {
	margin-top: 0;
}
.hps-valign-bottom .hps-content {
	align-items: flex-end;
}
.hps-valign-bottom .hps-content-inner {
	margin-bottom: 0;
}
/* Keep bottom-aligned content clear of the thumbnail strip. */
.hps-slider:has(.hps-thumbs) .hps-valign-bottom .hps-content {
	padding-bottom: calc(clamp(105px, 14vw, 220px) + clamp(28px, 4vw, 64px));
}

/* Builder text sizes scale with the slider width (container query units). */
.hps-slider {
	container-type: inline-size;
}
