/* =========================================================================
   Anchor v2 — Hero (full-bleed image, text overlay)
   ========================================================================= */

.hero {
	position: relative;
	height: 100vh;
	height: 100dvh;
	min-height: 560px;
	max-height: 820px;
	overflow: hidden;
	background: var(--brand-primary);
	color: #fff;
	isolation: isolate;
	user-select: none;
}

@media (max-width: 768px) {
	.hero { height: auto; min-height: 88vh; min-height: 88dvh; max-height: none; }
}

@media (max-width: 480px) {
	.hero { min-height: 80vh; min-height: 80dvh; }
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms var(--ease), visibility 0s linear 900ms;
	pointer-events: none;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 900ms var(--ease), visibility 0s linear 0s;
}

/* Background image with slow zoom */

.hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero__media-img,
.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	transform: scale(1.04);
	will-change: transform;
}

.hero__slide.is-active .hero__media-img,
.hero__slide.is-active .hero__media img {
	animation: heroZoom 12s var(--ease) forwards;
}

@keyframes heroZoom {
	from { transform: scale(1.04); }
	to   { transform: scale(1.12); }
}

/* Overlay for legibility.
   Two layers stacked:
   - A subtle vertical darken (helps the top eyebrow and bottom controls).
   - A strong left-side purple wash that fades to clear by ~55% — the text
     panel lives in the left half, so this gives the copy a readable brand
     backdrop without hiding the photo. */

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.45) 100%),
		linear-gradient(105deg, rgba(40, 14, 48, 0.85) 0%, rgba(66, 27, 73, 0.70) 30%, rgba(66, 27, 73, 0.25) 55%, rgba(66, 27, 73, 0) 75%);
	pointer-events: none;
}

@media (max-width: 860px) {
	/* On mobile/portrait, the photo and panel stack vertically — switch the
	   purple gradient to a top-down wash so the full copy block stays readable. */
	.hero__media::after {
		background:
			linear-gradient(180deg, rgba(40, 14, 48, 0.78) 0%, rgba(66, 27, 73, 0.55) 40%, rgba(0,0,0,0.35) 75%, rgba(0,0,0,0.55) 100%);
	}
}

/* Content */

.hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	z-index: var(--z-content);
}

.hero__content-inner {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
	max-width: 640px;
	padding-top: clamp(80px, 12vh, 130px);
	padding-bottom: clamp(110px, 14vh, 160px);
}

/* Panel mode — same alignment, used by new markup */
.hero__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: var(--z-content);
	width: min(100% - 2 * var(--gutter), var(--container));
	max-width: none;
	margin-inline: auto;
	left: 0; right: 0;
	padding: clamp(90px, 11vh, 110px) var(--gutter) clamp(90px, 11vh, 120px);
	pointer-events: none;
}

.hero__panel > * { pointer-events: auto; max-width: 560px; }

.hero__panel::before { display: none; }


/* Eyebrow */

.hero__eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 20px;
	padding: 0;
	background: none;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	padding-bottom: 8px;
	opacity: 0;
	transform: translateY(12px);
}

/* Title — Jost, simple, with italic-rust accent */

.hero__title,
.hero__headline {
	font-family: var(--font-display);
	font-size: clamp(40px, 6.2vw, 78px);
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 14px;
	text-wrap: balance;
	opacity: 0;
	transform: translateY(16px);
}

.hero__title em,
.hero__headline em {
	font-style: italic;
	color: var(--brand-secondary);
	font-weight: 400;
}

/* Script tagline (the move you wanted) */

.hero__script {
	font-family: var(--font-script);
	font-size: clamp(40px, 5vw, 64px);
	color: var(--brand-secondary);
	line-height: 1.1;
	margin: 0 0 22px;
	font-weight: 400;
	letter-spacing: 0;
	opacity: 0;
	transform: translateY(12px);
}

/* Body */

.hero__body,
.hero__lede {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	max-width: 500px;
	margin: 0 0 28px;
	opacity: 0;
	transform: translateY(12px);
	font-weight: 300;
}

/* CTAs */

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	opacity: 0;
	transform: translateY(12px);
}

.hero__cta-primary,
.hero__cta-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	min-height: 44px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
	font-family: inherit;
	border: 1.5px solid;
	touch-action: manipulation;
}

.hero__cta-primary {
	background: var(--brand-secondary);
	color: #fff;
	border-color: var(--brand-secondary);
}
.hero__cta-primary:hover {
	background: #fff;
	color: var(--brand-primary);
	border-color: #fff;
}

.hero__cta-secondary {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}
.hero__cta-secondary:hover {
	background: rgba(255, 255, 255, 0.10);
	border-color: #fff;
}


/* Entrance animation cascade */

.hero__slide.is-active .hero__eyebrow {
	animation: heroRise 600ms var(--ease) 200ms forwards;
}
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__headline {
	animation: heroRise 700ms var(--ease) 280ms forwards;
}
.hero__slide.is-active .hero__script {
	animation: heroRise 700ms var(--ease) 380ms forwards;
}
.hero__slide.is-active .hero__body,
.hero__slide.is-active .hero__lede {
	animation: heroRise 700ms var(--ease) 460ms forwards;
}
.hero__slide.is-active .hero__ctas {
	animation: heroRise 700ms var(--ease) 540ms forwards;
}

@keyframes heroRise {
	to { opacity: 1; transform: translateY(0); }
}


/* Controls */

.hero__controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: var(--z-content);
	padding: 0 0 28px;
}

.hero__controls-inner {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* If JS or markup doesn't wrap with .hero__controls-inner, the direct children should still flex */
.hero__controls > .hero__indicators,
.hero__controls > .hero__count,
.hero__controls > .hero__arrows {
	width: 100%;
	max-width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.hero__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.hero__indicators {
	display: flex;
	gap: 8px;
	align-items: center;
}

.hero__indicator {
	width: 28px;
	height: 2px;
	background: rgba(255, 255, 255, 0.32);
	cursor: pointer;
	border: 0;
	padding: 0;
	transition: background-color 200ms var(--ease), width 200ms var(--ease);
	touch-action: manipulation;
}

.hero__indicator.is-active {
	background: var(--brand-secondary);
	width: 56px;
}

.hero__count {
	font-family: var(--font-display);
	font-size: 11px;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.18em;
	min-width: 64px;
	text-align: center;
}

.hero__count strong { color: #fff; font-weight: 500; }

.hero__arrows {
	display: flex;
	gap: 4px;
}

.hero__arrow {
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.32);
	color: rgba(255, 255, 255, 0.92);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
	border-radius: 0;
	touch-action: manipulation;
}

.hero__arrow:hover {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.6);
}

.hero__arrow svg { width: 14px; height: 14px; }


/* Mobile */

@media (max-width: 860px) {
	.hero__panel {
		padding-top: clamp(100px, 14vh, 130px);
		padding-bottom: 140px;
	}
	.hero__panel > * { max-width: none; }
	.hero__controls { padding-bottom: 80px; }
	.hero__body, .hero__lede { font-size: 14px; }
	.hero__title, .hero__headline { font-size: clamp(36px, 9vw, 56px); }
}

@media (max-width: 480px) {
	.hero__panel {
		padding-top: 90px;
		padding-bottom: 120px;
	}
	.hero__controls { padding-bottom: 60px; }
	.hero__arrow { width: 38px; height: 38px; }
	.hero__indicator.is-active { width: 44px; }
	.hero__title, .hero__headline { font-size: clamp(32px, 10vw, 44px); }
	.hero__script { font-size: clamp(22px, 7vw, 32px); }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.hero__media-img, .hero__media img,
	.hero__slide.is-active .hero__media-img,
	.hero__slide.is-active .hero__media img {
		animation: none !important; transform: none !important;
	}
	.hero__slide .hero__eyebrow,
	.hero__slide .hero__title,
	.hero__slide .hero__headline,
	.hero__slide .hero__script,
	.hero__slide .hero__body,
	.hero__slide .hero__lede,
	.hero__slide .hero__ctas {
		opacity: 1 !important; transform: none !important; animation: none !important;
	}
}
