/**
 * Hero Drift Carousel — front-end styles
 * Visual language mirrors the AGN hero: drift (Ken Burns), dark overlays, grain.
 */

.hdc-hero {
	--hdc-ink: #07090f;
	--hdc-bone: #f3efe6;
	--hdc-signal: #e8ff47;
	--hdc-min-height: 100vh;

	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	min-height: var(--hdc-min-height);
	overflow: hidden;
	background: var(--hdc-ink);
	color: var(--hdc-bone);
	box-sizing: border-box;
}

.hdc-hero *,
.hdc-hero *::before,
.hdc-hero *::after {
	box-sizing: border-box;
}

/* Full-bleed when aligned full inside theme containers */
.hdc-hero.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.hdc-hero__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.hdc-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s ease, visibility 1.1s ease;
}

.hdc-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hdc-hero__slide--placeholder {
	background:
		radial-gradient(circle at 72% 38%, rgba(232, 255, 71, 0.1), transparent 42%),
		linear-gradient(135deg, #0e1320, #07090f 55%, #161d2e);
}

/* Drift transform is driven by view.js (shared clock across all slides). */
.hdc-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.05);
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.hdc-hero__slide {
		transition: none;
	}
}

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

.hdc-hero__overlay--diagonal {
	background: linear-gradient(
		105deg,
		rgba(7, 9, 15, 0.88) 0%,
		rgba(7, 9, 15, 0.55) 48%,
		rgba(7, 9, 15, 0.28) 100%
	);
}

.hdc-hero__overlay--glow {
	background: radial-gradient(
		circle at 72% 38%,
		rgba(232, 255, 71, 0.12),
		transparent 42%
	);
}

.hdc-hero__overlay--fade {
	background: linear-gradient(
		to top,
		var(--hdc-ink) 0%,
		transparent 45%,
		transparent 100%
	);
}

.hdc-hero__grain {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0.04;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Optional fine dots — softens compression / pixelation on photos */
.hdc-hero__dot-screen {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	opacity: var(--hdc-dot-opacity, 0.18);
	mix-blend-mode: soft-light;
	background-image:
		radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.4px, transparent 0.55px),
		radial-gradient(circle, rgba(0, 0, 0, 0.55) 0.4px, transparent 0.55px);
	background-size:
		var(--hdc-dot-size, 3px) var(--hdc-dot-size, 3px),
		var(--hdc-dot-size, 3px) var(--hdc-dot-size, 3px);
	background-position:
		0 0,
		calc(var(--hdc-dot-size, 3px) / 2) calc(var(--hdc-dot-size, 3px) / 2);
}

.hdc-hero__content {
	position: relative;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.75rem;
	min-height: var(--hdc-min-height);
	padding: 4rem 1.5rem;
	text-align: center;
}

.hdc-hero__logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 120px;
	object-fit: contain;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hdc-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.6rem;
	border-radius: 0.5rem;
	background: var(--hdc-signal);
	color: var(--hdc-ink);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hdc-hero__cta:hover,
.hdc-hero__cta:focus-visible {
	background: color-mix(in srgb, var(--hdc-signal) 90%, white);
	color: var(--hdc-ink);
	transform: translateY(-1px);
	outline: none;
}

.hdc-hero__cta--static {
	cursor: default;
	pointer-events: none;
}

.hdc-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	z-index: 5;
	display: flex;
	gap: 0.5rem;
	transform: translateX(-50%);
}

.hdc-hero__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(243, 239, 230, 0.35);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.hdc-hero__dot:hover,
.hdc-hero__dot:focus-visible {
	background: rgba(243, 239, 230, 0.7);
	outline: none;
}

.hdc-hero__dot.is-active {
	width: 1.35rem;
	background: var(--hdc-signal);
}

@media (max-width: 600px) {
	.hdc-hero__content {
		gap: 1.25rem;
		padding: 3rem 1.25rem;
	}

	.hdc-hero__logo {
		max-height: 88px;
	}

	.hdc-hero__cta {
		padding: 0.8rem 1.35rem;
		font-size: 0.8125rem;
	}
}
