.nhas-slider {
	position: relative;
	overflow: hidden;
	background: var(--ink, #16242d);
	color: #fff;
}

.nhas-slider--hero {
	height: var(--nhas-hero-height, clamp(340px, 36vw, 480px));
}

.nhas-slider--inline {
	aspect-ratio: 16 / 10;
	max-height: 520px;
	margin: 0 0 32px;
	border-radius: var(--radius, 8px);
}

.nhas-slider__slides,
.nhas-slide {
	position: absolute;
	inset: 0;
	margin: 0;
}

.nhas-slide {
	z-index: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.nhas-slide.is-active {
	z-index: 2;
	opacity: 1;
}

.nhas-slide.is-leaving {
	z-index: 1;
	opacity: 1;
}

.nhas-slide::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(22, 36, 45, .82) 0%, rgba(22, 36, 45, .4) 55%, rgba(22, 36, 45, .05) 100%);
	content: '';
	pointer-events: none;
}

html body .nhas-slide__img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transform-origin: 50% 50%;
}

.nhas-slide:nth-child(even) .nhas-slide__img {
	transform-origin: 20% 60%;
}

.nhas-slide.is-active .nhas-slide__img,
.nhas-slide.is-leaving .nhas-slide__img {
	animation: nhas-zoom 14s linear forwards;
}

.nhas-slide.is-leaving .nhas-slide__img {
	animation-play-state: paused;
}

.nhas-slide__caption {
	position: absolute;
	z-index: 1;
	bottom: 20%;
	left: max(24px, calc((100% - var(--nhas-container, 960px)) / 2 + 12px));
	max-width: min(760px, calc(100% - 48px));
}

.nhas-slide__caption > * {
	margin: 0 0 14px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .8s ease, transform .8s ease;
}

.nhas-slide.is-active .nhas-slide__caption > * {
	opacity: 1;
	transform: none;
	transition-delay: .5s;
}

.nhas-slide.is-active .nhas-slide__caption > :nth-child(2) {
	transition-delay: .75s;
}

.nhas-slide.is-active .nhas-slide__caption > :nth-child(3) {
	transition-delay: .95s;
}

html body .nhas-slider .nhas-slide__title {
	color: #fff;
	font: 700 clamp(2rem, 4.6vw, 3.75rem) / 1.05 var(--display, var(--font, system-ui));
	letter-spacing: -.03em;
	text-shadow: 0 2px 28px rgba(0, 0, 0, .35);
}

html body .nhas-slider .nhas-slide__subtitle {
	color: rgba(255, 255, 255, .92);
	font: 500 clamp(1.1rem, 2.2vw, 1.6rem) / 1.3 var(--font, system-ui);
	text-shadow: 0 2px 28px rgba(0, 0, 0, .35);
}

.nhas-slider__arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--radius, 8px);
	background: rgba(22, 36, 45, .55);
	color: #fff;
	cursor: pointer;
	place-items: center;
	transform: translateY(-50%);
	transition: background-color .2s ease;
}

.nhas-slider__arrow:hover {
	background: var(--brand, #289dcc);
}

.nhas-slider__arrow--prev { left: 16px; }
.nhas-slider__arrow--next { right: 16px; }

.nhas-slider__dots {
	position: absolute;
	z-index: 3;
	bottom: 20px;
	left: 50%;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.nhas-slider__dots button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.nhas-slider__dots button[aria-current] {
	background: #fff;
}

@keyframes nhas-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.14); }
}

@media (max-width: 767px) {
	.nhas-slide__caption {
		bottom: 16%;
	}

	.nhas-slider__arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nhas-slide,
	.nhas-slide__caption > * {
		transition: none;
	}

	.nhas-slide.is-active .nhas-slide__img,
	.nhas-slide.is-leaving .nhas-slide__img {
		animation: none;
	}

	.nhas-slide__caption > * {
		opacity: 1;
		transform: none;
	}
}

.nhas-slide__caption .nhas-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--radius, 4px);
	background: var(--brand, #289dcc);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
