/* =====================================================================
   Agma Hero Slider — frontend
   ===================================================================== */

.ahs {
	--ahs-h: 100vh;
	--ahs-min: 620px;
	--ahs-h-m: 100svh;
	--ahs-top: 18%;
	--ahs-speed: 1200ms;
	--ahs-delay: 6500ms;
	--ahs-pad-x: 6.8vw;
	--ahs-pad-r: 4.6vw;
	--ahs-fg: #fff;
	--ahs-muted: rgba(255, 255, 255, .78);
	--ahs-dim: rgba(255, 255, 255, .55);
	--ahs-ease: cubic-bezier(.22, .61, .36, 1);
	--ahs-font-display: 'AHS Display', 'Michroma', 'Unbounded', 'Eurostile', 'Arial Black', sans-serif;
	--ahs-font: 'AHS Text', 'Lexend Exa', 'Unbounded', 'Montserrat', Arial, sans-serif;

	position: relative;
	display: block;
	width: 100%;
	height: var(--ahs-h);
	min-height: var(--ahs-min);
	overflow: hidden;
	background: #04060a;
	color: var(--ahs-fg);
	isolation: isolate;
	font-family: var(--ahs-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.ahs--theme-fonts {
	--ahs-font-display: inherit;
	--ahs-font: inherit;
}

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

.ahs-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.ahs-anchor { display: block; height: 0; }

/* ---------- slides & transitions ---------- */

.ahs__slides,
.ahs__slide,
.ahs__bg,
.ahs__overlay {
	position: absolute;
	inset: 0;
}

.ahs__slide {
	z-index: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity var(--ahs-speed) var(--ahs-ease), visibility 0s linear var(--ahs-speed);
}

.ahs__slide.is-leaving {
	z-index: 1;
	visibility: visible;
	opacity: 1;
	transition: none;
}

.ahs__slide.is-active {
	z-index: 2;
	visibility: visible;
	opacity: 1;
	transition: opacity var(--ahs-speed) var(--ahs-ease), visibility 0s;
}

/* Architectural wipe: new slide reveals from the right edge */
.ahs--wipe .ahs__slide { opacity: 1; clip-path: inset(0 0 0 100%); transition: clip-path var(--ahs-speed) cubic-bezier(.77, 0, .18, 1), visibility 0s linear var(--ahs-speed); }
.ahs--wipe .ahs__slide.is-leaving { clip-path: inset(0); transition: none; }
.ahs--wipe .ahs__slide.is-active { clip-path: inset(0); transition: clip-path var(--ahs-speed) cubic-bezier(.77, 0, .18, 1), visibility 0s; }
.ahs--wipe .ahs__slide.is-leaving .ahs__bg { transform: translateX(-6%); transition: transform var(--ahs-speed) cubic-bezier(.77, 0, .18, 1); }

/* ---------- background ---------- */

.ahs__bg { overflow: hidden; }

.ahs__bg picture,
.ahs__bg img,
.ahs .ahs__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0;
	object-fit: cover;
	object-position: var(--ahs-pos, center center);
	border: 0;
	border-radius: 0;
}

.ahs--kenburns .ahs__slide.is-active .ahs__img,
.ahs--kenburns .ahs__slide.is-leaving .ahs__img {
	animation: ahs-kenburns calc(var(--ahs-delay) + var(--ahs-speed) * 2) linear forwards;
}

.ahs--kenburns .ahs__slide.is-leaving .ahs__img {
	animation-play-state: paused;
}

@keyframes ahs-kenburns {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

/* Left-side shade for legibility + top shade for transparent headers + bottom shade */
.ahs__overlay {
	pointer-events: none;
	background:
		linear-gradient(90deg,
			rgba(0, 0, 0, calc(var(--ahs-ov, .65) * 1)) 0%,
			rgba(0, 0, 0, calc(var(--ahs-ov, .65) * .62)) 22%,
			rgba(0, 0, 0, calc(var(--ahs-ov, .65) * .18)) 42%,
			rgba(0, 0, 0, 0) 58%),
		linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 16%),
		linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%);
}

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

.ahs__content {
	position: absolute;
	z-index: 3;
	left: var(--ahs-pad-x);
	top: var(--ahs-top);
	width: min(44vw, 640px);
}

.ahs .ahs__eyebrow {
	list-style: none;
	margin: 0 0 clamp(26px, 3.85vw, 64px);
	padding: 0;
	font-family: var(--ahs-font);
	font-weight: 400;
	font-size: clamp(9px, .8vw, 14px);
	line-height: 1.85;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ahs-muted);
}

.ahs .ahs__eyebrow li { margin: 0; padding: 0; list-style: none; }
.ahs .ahs__eyebrow li::before,
.ahs .ahs__eyebrow li::marker { content: none; }

.ahs .ahs__title {
	margin: 0 0 clamp(14px, 1.9vw, 34px);
	padding: 0;
	font-family: var(--ahs-font-display);
	font-weight: 400;
	font-size: clamp(28px, 2.88vw, 56px);
	line-height: 1.05;
	letter-spacing: .015em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ahs-fg);
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
	-webkit-text-stroke: .02em currentColor; /* Michroma is slightly light vs. the logo */
}

.ahs .ahs__title.has-logo { line-height: 0; -webkit-text-stroke: 0; }

.ahs .ahs__logo {
	display: block;
	width: clamp(240px, 31vw, 600px);
	height: auto;
	max-width: 100%;
}

.ahs .ahs__subtitle {
	margin: 0 0 clamp(26px, 3.2vw, 54px);
	padding: 0;
	font-family: var(--ahs-font);
	font-weight: 300;
	font-size: clamp(15px, 1.95vw, 36px);
	line-height: 1;
	letter-spacing: .82em;
	text-transform: uppercase;
	color: var(--ahs-fg);
}

.ahs .ahs__tagline {
	margin: 0 0 clamp(24px, 2.9vw, 50px);
	padding: 0;
	font-family: var(--ahs-font);
	font-weight: 300;
	font-weight: 400;
	font-size: clamp(12px, 1.38vw, 25px);
	line-height: 1.45;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ahs-fg);
}

.ahs .ahs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.8em;
	min-width: clamp(210px, 18.8vw, 340px);
	padding: clamp(13px, 1.12vw, 19px) clamp(18px, 2.1vw, 34px);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 0;
	background: transparent;
	color: var(--ahs-fg);
	font-family: var(--ahs-font);
	font-weight: 500;
	font-size: clamp(10px, .9vw, 15px);
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .45s var(--ahs-ease), color .45s var(--ahs-ease), border-color .45s;
}

.ahs .ahs__btn:hover,
.ahs .ahs__btn:focus-visible {
	background: #fff;
	color: #000;
	border-color: #fff;
	text-decoration: none;
}

.ahs__arrow {
	display: block;
	flex: none;
	width: 3.6em;
	height: auto;
	overflow: visible;
	transition: transform .45s var(--ahs-ease);
}

.ahs__btn:hover .ahs__arrow,
.ahs__next:hover .ahs__arrow { transform: translateX(6px); }

/* staggered text reveal */
.ahs__slide .ahs-anim,
.ahs__slide .ahs__side {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition: opacity .5s ease, transform .5s ease;
}

.ahs__slide.is-active .ahs-anim,
.ahs__slide.is-active .ahs__side {
	opacity: 1;
	transform: none;
	transition: opacity 1s var(--ahs-ease), transform 1.2s var(--ahs-ease);
}

.ahs__slide.is-active .ahs-anim:nth-child(1) { transition-delay: calc(var(--ahs-speed) * .35 + 0ms); }
.ahs__slide.is-active .ahs-anim:nth-child(2) { transition-delay: calc(var(--ahs-speed) * .35 + 120ms); }
.ahs__slide.is-active .ahs-anim:nth-child(3) { transition-delay: calc(var(--ahs-speed) * .35 + 240ms); }
.ahs__slide.is-active .ahs-anim:nth-child(4) { transition-delay: calc(var(--ahs-speed) * .35 + 360ms); }
.ahs__slide.is-active .ahs-anim:nth-child(5) { transition-delay: calc(var(--ahs-speed) * .35 + 480ms); }
.ahs__slide.is-active .ahs__side            { transition-delay: calc(var(--ahs-speed) * .35 + 500ms); }

/* first paint: no delay on the initial slide's stagger beyond a short beat */
.ahs:not(.is-ready) .ahs__slide.is-active .ahs-anim,
.ahs:not(.is-ready) .ahs__slide.is-active .ahs__side { opacity: 1; transform: none; transition: none; }

/* ---------- right side text ---------- */

.ahs__side {
	position: absolute;
	z-index: 3;
	right: var(--ahs-pad-r);
	top: 61%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	font-family: var(--ahs-font);
	font-weight: 400;
	font-size: clamp(8px, .66vw, 12px);
	line-height: 1.75;
	letter-spacing: .38em;
	text-transform: uppercase;
	color: var(--ahs-muted);
}

.ahs__side-text { margin-right: -.38em; }

.ahs__side-line {
	display: block;
	width: 1px;
	height: clamp(26px, 5vh, 52px);
	margin-top: 1.6em;
	background: rgba(255, 255, 255, .7);
}

/* ---------- pagination ---------- */

.ahs__nav {
	position: absolute;
	z-index: 5;
	left: var(--ahs-pad-x);
	bottom: clamp(26px, 6.7%, 68px);
	display: flex;
	align-items: center;
	gap: clamp(22px, 2.5vw, 44px);
}

.ahs .ahs__dot,
.ahs .ahs__next {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 6px 0;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: rgba(255, 255, 255, .78);
	font-family: var(--ahs-font);
	font-weight: 400;
	font-size: clamp(10px, .92vw, 15px);
	line-height: 1;
	letter-spacing: .1em;
	cursor: pointer;
	transition: color .35s;
}

.ahs .ahs__dot { position: relative; }

.ahs .ahs__dot::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--ahs-ease);
}

.ahs .ahs__dot:hover,
.ahs .ahs__dot.is-active,
.ahs .ahs__next:hover { color: var(--ahs-fg); background: none; }

.ahs--underline .ahs__dot.is-active::after { transform: scaleX(1); }

.ahs .ahs__next { color: var(--ahs-muted); font-size: clamp(11px, 1vw, 16px); }
.ahs .ahs__next .ahs__arrow { width: clamp(46px, 5.2vw, 90px); }

.ahs .ahs__dot:focus-visible,
.ahs .ahs__next:focus-visible,
.ahs .ahs__btn:focus-visible,
.ahs .ahs__scroll:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* ---------- scroll indicator ---------- */

.ahs .ahs__scroll {
	position: absolute;
	z-index: 5;
	right: clamp(12px, 1.2vw, 30px);
	bottom: clamp(24px, 6.4%, 64px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--ahs-fg);
	text-decoration: none;
	font-family: var(--ahs-font);
	text-transform: uppercase;
}

.ahs__scroll-label {
	writing-mode: vertical-rl;
	font-size: clamp(7px, .52vw, 9px);
	font-weight: 300;
	letter-spacing: .35em;
	color: var(--ahs-dim);
}

.ahs__scroll-text {
	font-size: clamp(9px, .9vw, 15px);
	font-weight: 500;
	letter-spacing: .06em;
	white-space: nowrap;
}

.ahs__arrow-down {
	display: block;
	width: 11px;
	height: auto;
	animation: ahs-bob 2.4s var(--ahs-ease) infinite;
}

@keyframes ahs-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(5px); }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.ahs { --ahs-pad-x: 6vw; }
	.ahs__content { width: min(60vw, 560px); }
}

@media (max-width: 767px) {
	.ahs {
		height: var(--ahs-h-m);
		min-height: 560px;
		--ahs-pad-x: 24px;
	}

	.ahs__bg img,
	.ahs .ahs__img { object-position: var(--ahs-pos-m, center center); }

	.ahs__overlay {
		background:
			linear-gradient(0deg,
				rgba(0, 0, 0, calc(.35 + var(--ahs-ov, .65) * .55)) 0%,
				rgba(0, 0, 0, calc(var(--ahs-ov, .65) * .55)) 38%,
				rgba(0, 0, 0, 0) 64%),
			linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 18%);
	}

	.ahs__content {
		top: auto;
		bottom: 92px;
		right: 24px;
		width: auto;
	}

	.ahs .ahs__eyebrow { margin-bottom: 20px; letter-spacing: .26em; }
	.ahs .ahs__title { font-size: clamp(24px, 7.6vw, 40px); white-space: normal; }
	.ahs .ahs__logo { width: min(80vw, 340px); }
	.ahs .ahs__subtitle { font-size: 13px; letter-spacing: .8em; margin-bottom: 22px; }
	.ahs .ahs__tagline { font-size: 12px; margin-bottom: 24px; }
	.ahs .ahs__btn { min-width: 0; width: 100%; max-width: 300px; }

	.ahs__side { display: none; }

	.ahs__nav { bottom: 30px; }
	.ahs .ahs__scroll { bottom: 26px; right: 20px; }
	.ahs__scroll-text, .ahs__scroll-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ahs *, .ahs *::before, .ahs *::after {
		animation: none !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}

/* intro: first slide text animates in once JS is ready */
.ahs__slide.is-active.is-pre .ahs-anim,
.ahs__slide.is-active.is-pre .ahs__side {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition: none;
}
