/**
 * Hero slideshow — preview-identical layout + motion.
 */

.hahxmia-hero.home-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	place-items: center start;
	text-align: left;
	color: #f5f5f5;
	overflow: hidden;
	width: 100%;
	margin: 0;
	background: #0a0a0b;
}

.hahxmia-hero .hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	isolation: isolate;
	overflow: hidden;
	background: #0a0a0b;
}

.hahxmia-hero .hero__slide {
	position: absolute;
	inset: 0;
	background: center center / cover no-repeat;
	opacity: 0;
	z-index: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.hahxmia-hero .hero__slide.is-active {
	z-index: 1;
	visibility: visible;
	opacity: 1;
}

.hahxmia-hero .hero__slides::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	background: rgba(10, 10, 11, 0.22);
	mix-blend-mode: multiply;
}

.hahxmia-hero .home-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(10, 10, 11, 0.28) 0%, rgba(10, 10, 11, 0.12) 38%, rgba(10, 10, 11, 0.72) 100%),
		linear-gradient(105deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.18) 48%, transparent 72%),
		rgba(168, 134, 42, 0.1);
}

.hahxmia-hero .home-hero__content {
	position: relative;
	z-index: 3;
	padding: 0 3.5vw 5rem;
	max-width: min(560px, 90vw);
	width: 100%;
	justify-self: start;
	align-self: end;
	margin-top: 0;
	perspective: 900px;
}

.hahxmia-hero .hero-title {
	margin: 0;
	width: 100%;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: clamp(1.15rem, 2.85vw, 2.15rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transform-style: preserve-3d;
	text-align: left;
	color: #ffffff;
}

.hahxmia-hero .hero-title__line {
	display: block;
	width: 100%;
	overflow: hidden;
	padding-bottom: 0.08em;
	white-space: nowrap;
	color: #ffffff;
}

.hahxmia-hero .hero-title__line--accent {
	color: #ffffff;
	font-weight: 700;
}

.hahxmia-hero .hero-title__word {
	display: inline-block;
	will-change: transform, opacity, filter;
	color: inherit;
}

.hahxmia-hero .hero-title__rule {
	display: block;
	width: 0;
	height: 1px;
	margin: 1.35rem 0 0;
	background: linear-gradient(90deg, #d4af37, transparent);
	opacity: 0.9;
}

.hahxmia-hero .hero-pager {
	position: absolute;
	z-index: 4;
	bottom: 2rem;
	left: 3.5vw;
	display: flex;
	gap: 0.55rem;
	align-items: center;
}

.hahxmia-hero .hero-pager button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(212, 175, 55, 0.7);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 0.45s, transform 0.45s, width 0.45s;
}

.hahxmia-hero .hero-pager button.is-active {
	background: #d4af37;
	transform: scale(1.15);
	width: 32px;
	border-radius: 999px;
	border-color: #d4af37;
}

.hahxmia-hero .scroll-hint {
	display: none !important;
}

/* Kill Elementor shortcode chrome around hero */
.elementor-widget-shortcode:has(.hahxmia-hero),
.elementor-element:has(> .elementor-widget-container > .hahxmia-hero),
.elementor-widget-container:has(> .hahxmia-hero) {
	margin: 0 !important;
	padding: 0 !important;
}

.elementor-element:has(.hahxmia-hero) {
	--padding-top: 0px !important;
	--padding-bottom: 0px !important;
	--padding-left: 0px !important;
	--padding-right: 0px !important;
	width: 100% !important;
	max-width: 100% !important;
}

.hahxmia-hero {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 981px) {
	.elementor .hahxmia-hero {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		width: 100vw;
		max-width: 100vw;
	}
}

.elementor-page .site-main,
.elementor-template-full-width .site-main,
body.hahxmia-dark-header .site-main {
	padding-block: 0;
}

body.home .site-header,
body.hahxmia-dark-header .site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
}

@media (max-width: 640px) {
	.hahxmia-hero .hero-title__line {
		white-space: normal;
	}

	.hahxmia-hero .home-hero__content {
		padding: 0 1.4rem 4.5rem;
	}
}

/* Native Elementor hero (Heading + Image widgets — no custom widget) */
.hahxmia-el-hero.hahxmia-hero {
	position: relative;
	overflow: hidden;
}

.hahxmia-el-hero > .e-con-inner {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
}

.hahxmia-el-hero .hero__slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hahxmia-el-hero .hero__slides .e-con-inner > .elementor-element,
.hahxmia-el-hero .hero__slides .elementor-widget-image,
.hahxmia-el-hero .hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	visibility: hidden;
}

.hahxmia-el-hero .hero__slides .e-con-inner > .elementor-element:first-child,
.hahxmia-el-hero .hero__slides .e-con-inner > .elementor-element.is-active,
.hahxmia-el-hero .hero__slide.is-active,
.hahxmia-el-hero .hero__slides .elementor-widget-image.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.hahxmia-el-hero .hero__slides img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hahxmia-el-hero .hero-pager {
	z-index: 6;
}

.hahxmia-el-hero .home-hero__content {
	position: relative;
	z-index: 3;
}

.hahxmia-el-hero .home-hero__content .elementor-heading-title {
	margin: 0;
	color: inherit;
}

body.elementor-editor-active .hahxmia-el-hero .hero__slides {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	min-height: 160px;
	padding: 12px;
}

body.elementor-editor-active .hahxmia-el-hero .hero__slides .e-con-inner > .elementor-element,
body.elementor-editor-active .hahxmia-el-hero .hero__slides .elementor-widget-image,
body.elementor-editor-active .hahxmia-el-hero .hero__slide {
	position: relative;
	inset: auto;
	opacity: 1 !important;
	visibility: visible !important;
	height: 140px;
}

body.elementor-editor-active .hahxmia-el-hero .hero__slides img {
	height: 140px;
}

@media (prefers-reduced-motion: reduce) {
	.hahxmia-hero .hero-title__word,
	.hahxmia-hero .scroll-hint,
	.hahxmia-hero .hero-title__rule {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		width: 100% !important;
	}
}
