.alh-image-frame,
.alh-image-frame *,
.alh-step-modal,
.alh-step-modal * {
	box-sizing: border-box;
}

.alh-image-frame {
	--alh-red: #e81820;
	position: relative;
	display: block;
	width: 100%;
	line-height: 0;
	overflow: visible;
	isolation: isolate;
}

.alh-motion-layer,
.alh-motion-layer > a {
	position: relative;
	display: block;
	width: 100%;
}

.alh-image-loaded .alh-motion-layer {
	will-change: transform;
	animation: alh-image-float 10s ease-in-out 1.2s infinite;
}

.alh-animated-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

/* Graph aligned to the original 1672 x 941 illustration. */
.alh-graph,
.alh-graph-pulse {
	position: absolute;
	left: 37.859%;
	top: 38.257%;
	width: 31.041%;
	height: 14.134%;
	z-index: 3;
	pointer-events: none;
	background: url("../images/hero-graph-red.svg") center / 100% 100% no-repeat;
}

.alh-graph {
	clip-path: inset(0 100% 0 0);
}

.alh-graph-ready .alh-graph {
	animation: alh-graph-draw 1.8s cubic-bezier(.65, 0, .35, 1) .15s forwards;
}

.alh-graph-pulse {
	filter: brightness(2.5) saturate(1.45);
	-webkit-mask-image: linear-gradient(90deg, transparent 42%, #000 50%, transparent 58%);
	mask-image: linear-gradient(90deg, transparent 42%, #000 50%, transparent 58%);
	-webkit-mask-size: 280% 100%;
	mask-size: 280% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: -180% 0;
	mask-position: -180% 0;
	opacity: 0;
}

.alh-graph-ready .alh-graph-pulse {
	animation: alh-graph-pulse 7s ease-in-out 3.2s infinite;
}

/* Image-contained beam with soft ends, used only while the graph is drawn. */
.alh-image-laser {
	position: absolute;
	top: 3%;
	bottom: 3%;
	left: 37.859%;
	z-index: 5;
	width: 2px;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		transparent 0,
		rgba(232, 24, 32, .42) 5%,
		rgba(232, 24, 32, .95) 15%,
		#e81820 50%,
		rgba(232, 24, 32, .95) 85%,
		rgba(232, 24, 32, .42) 95%,
		transparent 100%
	);
	filter: drop-shadow(0 0 6px rgba(232, 24, 32, .92)) drop-shadow(0 0 12px rgba(232, 24, 32, .55));
	opacity: 0;
	transform: translateX(-50%);
	will-change: left, opacity;
}

.alh-image-laser.is-active {
	animation: alh-screen-laser 1.8s cubic-bezier(.65, 0, .35, 1) .15s 1;
}

/* Clickable graph points. */
.alh-step-button {
	position: absolute;
	z-index: 6;
	width: clamp(30px, 3.1%, 44px);
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transform: translate(-50%, -50%);
	visibility: hidden;
	opacity: 0;
	filter: drop-shadow(0 0 5px rgba(232, 24, 32, .42));
	transition: visibility 0s linear 1.95s, opacity .25s ease 1.95s, filter .25s ease;
}

.alh-graph-ready .alh-step-button {
	visibility: visible;
	opacity: 1;
}

.alh-step-button::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--alh-red);
	box-shadow: 0 0 0 3px rgba(232, 24, 32, .14);
	transform: translate(-50%, -50%);
}

.alh-step-button:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 3px;
}

.alh-step-button:hover,
.alh-step-button:focus-visible {
	filter: drop-shadow(0 0 7px rgba(255, 255, 255, .5));
}

.alh-dot-focus {
	position: absolute;
	inset: 22%;
	border: 1px solid rgba(232, 24, 32, .95);
	border-radius: 50%;
	opacity: 1;
	transform: scale(1.28);
	transition: border-color .2s ease, transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}

.alh-step-button:hover .alh-dot-focus,
.alh-step-button:focus-visible .alh-dot-focus {
	border-color: #fff;
	transform: scale(1.4);
	box-shadow: 0 0 7px rgba(255, 255, 255, .35);
}

.alh-step-button[data-step="1"] { left: 38.619%; top: 44.350%; }
.alh-step-button[data-step="2"] { left: 44.079%; top: 39.670%; }
.alh-step-button[data-step="3"] { left: 49.520%; top: 47.637%; }
.alh-step-button[data-step="4"] { left: 55.701%; top: 42.573%; }
.alh-step-button[data-step="5"] { left: 61.411%; top: 50.870%; }
.alh-step-button[data-step="6"] { left: 67.972%; top: 44.208%; }

/* Brand-style invitation shown beside the first point. */
.alh-start-cue {
	position: absolute;
	left: 38.619%;
	top: 44.350%;
	z-index: 7;
	padding: 11px 17px 10px;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 999px;
	background: rgba(0, 0, 0, .82);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .09em;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	visibility: hidden;
	opacity: 0;
	transform: translate(calc(-100% - 30px), -50%);
	transition: visibility 0s linear 1.95s, opacity .2s ease 1.95s, transform .25s ease, background-color .2s ease, color .2s ease;
}

.alh-start-cue:hover,
.alh-start-cue:focus-visible {
	border-color: #000;
	background: #000;
	color: #fff;
}

.alh-start-cue:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 3px;
}

.alh-graph-ready .alh-start-cue {
	visibility: visible;
	opacity: 1;
	animation: alh-cue-breathe 2.2s ease-in-out 2.1s 3;
}

/* The entrance delay runs once; later hover exits restore the cue immediately. */
.alh-cue-ready .alh-start-cue {
	transition-delay: 0s;
}

.alh-start-cue::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	width: 11px;
	height: 1px;
	background: rgba(255, 255, 255, .65);
}

.alh-step-hovered .alh-start-cue {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translate(calc(-100% - 34px), -50%);
	transition-delay: 0s;
}

/* Compact hover label, intentionally monochrome. */
.alh-step-tag {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	min-width: 68px;
	padding: 7px 10px 6px;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 4px;
	background: rgba(5, 5, 5, .95);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .17em;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 5px) scale(.96);
	transition: opacity .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.alh-step-tag::before {
	content: "";
	position: absolute;
	top: -1px;
	bottom: -1px;
	left: 0;
	width: 1px;
	background: #fff;
	box-shadow: 0 0 7px 1px rgba(255, 255, 255, .55);
	opacity: 0;
}

.alh-step-tag::after {
	content: attr(data-label);
	position: absolute;
	inset: 7px 10px 6px;
	color: rgba(255, 255, 255, .62);
	clip-path: inset(0 0 52% 0);
	opacity: 0;
}

.alh-step-button:hover .alh-step-tag,
.alh-step-button:focus-visible .alh-step-tag {
	opacity: 1;
	transform: translate(-50%, 0) scale(1);
}

.alh-step-button:hover .alh-step-tag::before,
.alh-step-button:focus-visible .alh-step-tag::before {
	animation: alh-tag-scan .7s ease-out 1;
}

.alh-step-button:hover .alh-step-tag::after,
.alh-step-button:focus-visible .alh-step-tag::after {
	animation: alh-tag-glitch .95s steps(2, end) infinite;
}

/* Modal */
.alh-step-modal[hidden],
.alh-modal-nav-button[hidden] {
	display: none;
}

.alh-step-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	color: #fff;
}

.alh-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(12px) brightness(.52);
	backdrop-filter: blur(12px) brightness(.52);
	opacity: 0;
	transition: opacity .28s ease;
}

.alh-modal-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 620px);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 16px;
	background: #050505;
	box-shadow: 0 35px 90px rgba(0, 0, 0, .64);
	overflow: hidden;
	opacity: 0;
	transform: translateY(18px) scale(.98);
	transition: opacity .3s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
}

.alh-step-modal.is-open .alh-modal-backdrop,
.alh-step-modal.is-open .alh-modal-panel {
	opacity: 1;
}

.alh-step-modal.is-open .alh-modal-panel {
	transform: none;
}

.alh-modal-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	padding: 0 16px 0 22px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.alh-modal-step {
	padding: 7px 11px 6px;
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: .16em;
	line-height: 1;
}

.alh-modal-close {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .25s ease, background .25s ease, transform .3s ease;
}

.alh-modal-close:hover,
.alh-modal-close:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
	transform: rotate(90deg);
}

.alh-modal-close:focus-visible,
.alh-modal-nav-button:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 3px;
}

.alh-modal-content {
	padding: clamp(32px, 5vw, 50px);
}

.alh-modal-content.is-changing {
	animation: alh-content-change .35s cubic-bezier(.16, 1, .3, 1);
}

.alh-modal-kicker {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, .48);
	font-size: 10px;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.alh-modal-title {
	margin: 0 0 20px;
	color: #fff;
	font: inherit;
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 400;
	letter-spacing: -.02em;
	line-height: 1.12;
}

.alh-modal-copy {
	margin: 0;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	line-height: 1.75;
}

.alh-modal-progress {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 7px;
	margin-top: 32px;
}

.alh-modal-progress span {
	height: 2px;
	background: rgba(255, 255, 255, .13);
}

.alh-modal-progress span.is-active {
	background: rgba(255, 255, 255, .72);
}

.alh-modal-navigation {
	display: flex;
	align-items: center;
	min-height: 76px;
	padding: 14px 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.alh-modal-nav-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, .38);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 11px;
	letter-spacing: .11em;
	line-height: 1;
	cursor: pointer;
	transition: border-color .25s ease, background .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.alh-modal-next,
.alh-modal-book {
	margin-left: auto;
}

.alh-modal-book {
	text-decoration: none;
	border-color: var(--alh-red, #e81820);
	background: var(--alh-red, #e81820);
}

.alh-modal-nav-button:hover,
.alh-modal-nav-button:focus-visible {
	border-color: var(--alh-red, #e81820);
	background: var(--alh-red, #e81820);
}

.alh-modal-prev:hover,
.alh-modal-prev:focus-visible {
	transform: translateX(-3px);
}

.alh-modal-next:hover,
.alh-modal-next:focus-visible,
.alh-modal-book:hover,
.alh-modal-book:focus-visible {
	transform: translateX(3px);
}

body.alh-modal-open {
	overflow: hidden;
}

@keyframes alh-image-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -6px, 0); }
}

@keyframes alh-graph-draw {
	to { clip-path: inset(0 0 0 0); }
}

@keyframes alh-screen-laser {
	0% { opacity: 1; left: 37.859%; }
	92% { opacity: 1; }
	100% { opacity: 0; left: 68.900%; }
}

@keyframes alh-graph-pulse {
	0% { opacity: 0; -webkit-mask-position: -180% 0; mask-position: -180% 0; }
	6% { opacity: 1; }
	26% { opacity: 1; -webkit-mask-position: 180% 0; mask-position: 180% 0; }
	32%, 100% { opacity: 0; -webkit-mask-position: 180% 0; mask-position: 180% 0; }
}

@keyframes alh-cue-breathe {
	0%, 100% { border-color: rgba(255, 255, 255, .45); transform: translate(calc(-100% - 30px), -50%); }
	50% { border-color: #fff; transform: translate(calc(-100% - 32px), -50%); }
}

@keyframes alh-tag-scan {
	0% { left: 0; opacity: 1; }
	85% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}

@keyframes alh-tag-glitch {
	0%, 82%, 100% { opacity: 0; transform: translate(0); }
	84% { opacity: .55; transform: translate(-1px, 0); }
	88% { opacity: .3; transform: translate(2px, 0); }
	92% { opacity: .48; transform: translate(0, 1px); }
}

@keyframes alh-content-change {
	0% { opacity: .25; transform: translateY(7px); }
	100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.alh-motion-layer,
	.alh-graph,
	.alh-graph-pulse,
	.alh-step-button,
	.alh-start-cue,
	.alh-step-modal * {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		filter: none !important;
	}

	.alh-step-button {
		visibility: visible;
		opacity: 1;
		transform: translate(-50%, -50%) !important;
	}

	.alh-start-cue {
		transform: translate(calc(-100% - 30px), -50%) !important;
	}

	.alh-graph {
		clip-path: none;
	}

	.alh-graph-pulse,
	.alh-image-laser {
		display: none;
	}
}

@media (max-width: 700px) {
	.alh-step-modal {
		padding: 14px;
	}

	.alh-modal-content {
		padding: 30px 24px 34px;
	}

	.alh-modal-copy {
		font-size: 14px;
	}

	.alh-modal-navigation {
		padding: 12px 16px;
	}
}
