/* ---------- Full hero mode ([foundation_animated_hero]) ---------- */

.fah-hero {
	position: relative;
	width: 100%;
	min-height: 420px;
	overflow: hidden;
	background: #0b0f14;
}

.fah-photo {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.fah-content {
	position: relative;
	z-index: 3;
	width: 100%;
	height: 100%;
}

/* ---------- Overlay-only mode ([foundation_animated_clouds]) ---------- */

.fah-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* Add this class (in Breakdance: Advanced > Custom Class) to whatever
   existing section already has your background image, so the overlay
   above lines up correctly on top of it. */
.fah-cloud-host {
	position: relative !important;
	overflow: hidden !important;
}

/* ---------- Shared cloud-layer engine ---------- */

.fah-cloud-mask {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.fah-cloud-layer {
	position: absolute;
	top: -20%;
	left: -30%;
	width: 160%;
	height: 160%;
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
	filter: blur(1.5px);
	pointer-events: none;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.fah-cloud-fast {
	animation-direction: reverse;
}

.fah-darken {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

/* If your OS/browser has "Reduce Motion" turned on, this intentionally
   stops the drift for accessibility — turn that setting off to test. */
@media (prefers-reduced-motion: reduce) {
	.fah-cloud-layer {
		animation: none;
	}
}
