/* -----------------------------------------------------------
	Patrick Holcombe — front page
	The sticky-scoped hero: background carousel, bottom bar, and
	the two scrolling full-height panels. Only used on front-page.html.
----------------------------------------------------------- */
/* ---------- Hero: sticky wrap ----------
	The bg and bottom bar are sticky (not fixed), scoped to this wrapper.
	That means they stay pinned while the two full-height panels below
	scroll past them, then release and scroll away normally once the
	wrapper itself scrolls out of view — instead of floating over the
	rest of the site forever. */
.hero-sticky-wrap {
	margin: 0;
	position: relative;
	overflow: hidden;
}

.hero-carousel-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
}

.hero-carousel__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.6s ease;
}

.hero-carousel__slide.is-active {
	opacity: 1;
}

.hero-carousel__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
			rgba(20, 16, 12, 0.55) 0%,
			rgba(20, 16, 12, 0.15) 22%,
			rgba(20, 16, 12, 0.15) 78%,
			rgba(20, 16, 12, 0.6) 100%);
}

/* ---------- Hero: sticky bottom bar (links, arrows, dots) ---------- */
.hero-carousel__bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: clamp(1.5rem, 4vw, 2.75rem);
	z-index: 45;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	color: var(--wp--preset--color--cream);
	pointer-events: none;
}

.hero-carousel__bar>* {
	pointer-events: auto;
}

.hero-carousel__link {
	font-family: var(--wp--preset--font-family--label);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hero-carousel__link--left {
	display: flex;
	flex-direction: column;
}

.hero-carousel__link--right {
	text-align: right;
}

.hero-carousel__controls {
	display: flex;
	align-items: center;
	gap: 1.1rem;
}

.hero-carousel__arrow,
.work-carousel__arrow {
	background: none;
	border: none;
	color: var(--wp--preset--color--cream);
	cursor: pointer;
	line-height: 1;
	padding: 0.4rem;
	opacity: 0.8;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-carousel__arrow:hover,
.work-carousel__arrow:hover {
	opacity: 1;
	transform: translateX(2px);
}

.hero-carousel__arrow--prev:hover,
.work-carousel__arrow--prev:hover {
	transform: translateX(-2px);
}

.hero-carousel__dots,
.work-carousel__dots {
	display: flex;
	gap: 0.5rem;
}

.hero-carousel__dot,
.work-carousel__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--clay);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-carousel__dot.is-active,
.work-carousel__dot.is-active {
	background: var(--wp--preset--color--cream);
	transform: scale(1.3);
}

@media (max-width: 600px) {
	.hero-carousel__bar {
		flex-direction: column;
		gap: 1rem;
		bottom: 1.5rem;
	}

	.hero-carousel__link--right {
		text-align: center;
	}
}

/* ---------- Hero: the two scrolling full-height panels ---------- */
.hero-panel {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--wp--preset--color--cream);
	padding: 6rem 1.5rem;
	background: transparent;
}

.hero-panel__eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--label);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
	opacity: 0.85;
}

.hero-panel__title {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	margin: 0;
}

.hero-panel__statement {
	font-family: var(--wp--preset--font-family--body);
	max-width: 46rem;
	margin: 0 auto;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hero-carousel__slide {
		transition: none;
	}
}
