/* Kas'Lam Animated Scroll Hero — port of the supplied animation-only HTML. */
.kaslam-animated-scroll-hero,
.kaslam-animated-scroll-hero * { box-sizing: border-box; }

.kaslam-animated-scroll-hero {
	--kaslam-ash-scene-opacity: 1;
	--kaslam-ash-scene-y: 0px;
	position: relative;
	display: block;
	width: 100vw;
	max-width: 100vw;
	margin-inline-start: calc(50% - 50vw);
	color: #1b1b1b;
	font-family: inherit;
	isolation: isolate;
}

.kaslam-ash-runway { position: relative; overflow: visible; }
.kaslam-ash-stage { position: relative; width: 100%; overflow: visible; }

.kaslam-ash-scene {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 76vh;
	min-height: 76svh;
	width: 100%;
	padding: clamp(2.5rem, 7vh, 5.5rem) clamp(1.25rem, 7vw, 7rem);
	background: #f8f6f1;
	isolation: isolate;
	overflow: hidden;
}

.kaslam-ash-backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: #e8e3da;
}
.kaslam-ash-picture, .kaslam-ash-image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.kaslam-ash-image {
	object-fit: cover;
	object-position: var(--kaslam-ash-image-position, center center);
}
.kaslam-ash-overlay {
	position: absolute;
	inset: 0;
	background: var(--kaslam-ash-overlay-color, #000);
	opacity: var(--kaslam-ash-overlay-opacity, .28);
	pointer-events: none;
}

.kaslam-ash-copy {
	position: relative;
	z-index: 2;
	width: min(100%, var(--kaslam-ash-text-width, 760px));
	text-align: var(--kaslam-ash-text-align, left);
	margin: 0;
}
.kaslam-ash-eyebrow {
	margin: 0 0 .8rem;
	color: var(--kaslam-ash-body-color, #fff);
	font-size: clamp(.75rem, 1vw, 1rem);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.kaslam-ash-heading {
	margin: 0;
	color: var(--kaslam-ash-heading-color, #fff);
	font-family: inherit;
	font-size: clamp(2.35rem, var(--kaslam-ash-heading-size, 5.8vw), 7rem);
	font-weight: var(--kaslam-ash-heading-weight, 800);
	line-height: .98;
	letter-spacing: .012em;
	text-wrap: balance;
}
.kaslam-ash-description {
	max-width: 38rem;
	margin: 1rem 0 0;
	color: var(--kaslam-ash-body-color, #fff);
	font-size: clamp(1rem, var(--kaslam-ash-body-size, 22px), 2rem);
	line-height: 1.5;
}
.kaslam-ash-scroll-hint {
	position: absolute;
	bottom: 1.4rem;
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	margin: 0;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-align: center;
	text-shadow: 0 1px 8px rgba(0,0,0,.35);
	transform: translateX(-50%);
	white-space: nowrap;
}
.kaslam-ash-scroll-hint span { font-size: 1.3rem; line-height: 1; }

/* This is the same pinned-stage / long-runway model used in the supplied HTML.
   The runway length is calculated from the number of scenes, not hard-coded. */
.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-runway {
	height: calc(var(--kaslam-ash-scene-count, 1) * 100vh);
	height: calc(var(--kaslam-ash-scene-count, 1) * 100svh);
}
.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	min-height: 0;
	overflow: clip;
	isolation: isolate;
	z-index: 1;
}
.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-scene {
	position: absolute;
	inset: 0;
	display: flex;
	min-height: 0;
	height: 100%;
	padding-top: clamp(2rem, 5vh, 4rem);
	padding-bottom: clamp(3rem, 6vh, 5rem);
	opacity: var(--kaslam-ash-scene-opacity, 0);
	transform: translate3d(0, var(--kaslam-ash-scene-y, 0px), 0);
	will-change: opacity, transform;
	pointer-events: none;
}
.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-scene[data-kaslam-active="true"] {
	pointer-events: auto;
}

/* Position text independently inside each hero scene. */
.kaslam-ash-scene[style*="--kaslam-ash-vertical:top"] { align-items: flex-start; }
.kaslam-ash-scene[style*="--kaslam-ash-vertical:center"] { align-items: center; }
.kaslam-ash-scene[style*="--kaslam-ash-vertical:bottom"] { align-items: flex-end; }
.kaslam-ash-scene[style*="--kaslam-ash-horizontal:center"] { justify-content: center; }
.kaslam-ash-scene[style*="--kaslam-ash-horizontal:right"] { justify-content: flex-end; }
.kaslam-ash-scene[style*="--kaslam-ash-horizontal:left"] { justify-content: flex-start; }

.kaslam-ash-empty {
	padding: 1.5rem;
	border: 1px dashed #aaa;
	color: #444;
	background: #f8f6f1;
}

@media (max-width: 767px) {
	.kaslam-ash-scene {
		min-height: 72vh;
		min-height: 72svh;
		padding: 3rem 1.25rem;
	}
	.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-stage {
		height: 100vh;
		height: 100svh;
	}
	.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-scene {
		padding: 3rem 1.25rem;
	}
	.kaslam-ash-heading { font-size: clamp(2.1rem, 10vw, 3.5rem); }
	.kaslam-ash-description { font-size: clamp(1rem, 4vw, 1.25rem); }
	.kaslam-ash-scroll-hint {
		bottom: .8rem;
		width: 100%;
		font-size: .65rem;
	}
}

/* Respect reduced-motion settings: display scenes in normal document flow. */
@media (prefers-reduced-motion: reduce) {
	.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-runway { height: auto !important; }
	.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-stage {
		position: relative !important;
		top: auto !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
	}
	.kaslam-animated-scroll-hero.is-enhanced .kaslam-ash-scene {
		position: relative !important;
		inset: auto !important;
		min-height: 72vh !important;
		height: auto !important;
		opacity: 1 !important;
		transform: none !important;
		will-change: auto !important;
		pointer-events: auto !important;
	}
}
