/**
 * EULAI Hero
 *
 * Shared Hero foundation and layout variants.
 */


/* --------------------------------------------------------------
   Hero foundation
-------------------------------------------------------------- */

.eulai-hero {
	position: relative;
	display: flow-root;
	overflow: hidden;
	background-color: var(--eulai-color-surface-dark);
}

.eulai-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(
			rgba(23, 26, 30, 0.16),
			rgba(23, 26, 30, 0.16)
		),
		url("http://eulai.local/wp-content/uploads/2026/09/eulai-homepage-hero-agv-industrial-logistics.avif");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	transform: scale(1.2);
	transform-origin: center center;
	animation: eulai-hero-camera-settle 15s linear forwards;
	will-change: transform;
}

@keyframes eulai-hero-camera-settle {
	from {
		transform: scale(1.2);
	}

	to {
		transform: scale(1);
	}
}


/* --------------------------------------------------------------
   Fullscreen Hero
-------------------------------------------------------------- */

.eulai-hero--fullscreen {
	min-height: 100vh;
	min-height: 100svh;
}

.eulai-hero--fullscreen .eulai-hero__inner {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-top: clamp(4rem, 8vh, 6rem);
}

/* --------------------------------------------------------------
   Technology Hero
-------------------------------------------------------------- */

.eulai-hero--technology::before {
	background-image:
		linear-gradient(
			rgba(23, 26, 30, 0.16),
			rgba(23, 26, 30, 0.16)
		),
		url("http://eulai.local/wp-content/uploads/2026/10/eulai-core-technology-hero-rd-manufacturing-campus.avif");
	background-position: center center;
	transform: none;
	animation: none;
	will-change: auto;
}

.eulai-hero--technology .eulai-hero__inner {
	position: relative;
	z-index: 1;
	min-height: 28.75rem; /* 460px */
	display: flex;
	align-items: center;
	padding-top: var(--eulai-header-height, 5rem);
}

.eulai-hero--technology .eulai-hero__content {
	width: 100%;
	transform: none;
}

/* ==========================================================
   About Hero Variant
   ========================================================== */

.eulai-hero--about::before {
	background-image:
		linear-gradient(
			90deg,
			rgba(10, 13, 16, 0.18) 0%,
			rgba(10, 13, 16, 0.06) 38%,
			rgba(10, 13, 16, 0) 62%
		),
		url("http://eulai.local/wp-content/uploads/2026/10/eulai-yunlai-intelligent-rd-manufacturing-headquarters.avif");

	background-position: center center;

	animation: none;
	transform: none;
}

.eulai-hero--about .eulai-hero__inner,
.eulai-hero--service .eulai-hero__inner {
	min-height: 460px;
	padding-top: 0;
	padding-bottom: 0;

	display: flex;
	align-items: center;
}

.eulai-hero--about .eulai-hero__content,
.eulai-hero--service .eulai-hero__content {
	width: 100%;
	transform: none;
}

/* ==========================================================
   Service Hero Variant
   ========================================================== */

.eulai-hero--service::before {
    background-image:
        linear-gradient(
            90deg,
            rgba(10, 13, 16, 0.18) 0%,
            rgba(10, 13, 16, 0.06) 38%,
            rgba(10, 13, 16, 0) 62%
        ),
        url("http://eulai.local/wp-content/uploads/2026/10/eulai-service-support-hero.avif");

    background-position: center center;

    animation: none;
    transform: none;
}

/* --------------------------------------------------------------
   Hero content
-------------------------------------------------------------- */

.eulai-hero__content {
	width: min(100%, 64rem);
	transform: translateY(5rem);
}

.eulai-hero__reveal + .eulai-hero__reveal {
	margin-top: 1.25rem;
}

.eulai-hero__eyebrow {
	margin: 0;
	font-size: clamp(1rem, 1.15vw, 1.25rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--eulai-color-text-inverse-muted);
}

.eulai-hero__title {
	margin: 0;
	font-size: clamp(2.5rem, 3.25vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--eulai-color-text-inverse);
}

.eulai-hero__intro {
	margin: 0;
	font-size: clamp(1.125rem, 1.25vw, 1.25rem);
	font-weight: 400;
	line-height: 1.75;
	color: var(--eulai-color-text-inverse-muted);
}

.eulai-hero--technology .eulai-hero__intro {
	color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------
   Hero content entrance
-------------------------------------------------------------- */

.eulai-hero__reveal {
	overflow: hidden;
}

.eulai-hero__eyebrow,
.eulai-hero__title,
.eulai-hero__intro {
	transform: translateY(115%);
	will-change: transform;
}

.eulai-hero__eyebrow {
	animation: eulai-hero-line-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.eulai-hero__title {
	animation: eulai-hero-line-reveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.eulai-hero__intro {
	animation: eulai-hero-line-reveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

@keyframes eulai-hero-line-reveal {
	from {
		transform: translateY(115%);
	}

	to {
		transform: translateY(0);
	}
}

.eulai-hero__scroll-indicator {
	position: absolute;
	right: clamp(8rem, 10vw, 11rem);
	bottom: clamp(5rem, 10vh, 7rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.125rem;
	color: var(--eulai-color-text-inverse-muted);
}

.eulai-hero__scroll-indicator:focus-visible {
	outline: 2px solid var(--eulai-color-text-inverse);
	outline-offset: 0.5rem;
}

.eulai-hero__scroll-indicator:hover {
	color: var(--eulai-color-text-inverse);
}

.eulai-hero__scroll-chevron {
	width: 0.875rem;
	height: 0.875rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: 0.45;
	transform: rotate(45deg);
	animation: eulai-hero-scroll-cue 2.4s ease-in-out infinite;
}

.eulai-hero__scroll-chevron:nth-child(2) {
	animation-delay: 0.18s;
}

.eulai-hero__scroll-chevron:nth-child(3) {
	animation-delay: 0.36s;
}

@keyframes eulai-hero-scroll-cue {
	0%,
	55%,
	100% {
		opacity: 0.42;
		transform: translateY(0) rotate(45deg);
	}

	18% {
		opacity: 1;
		transform: translateY(0.2rem) rotate(45deg);
	}

	32% {
		opacity: 0.65;
		transform: translateY(0.1rem) rotate(45deg);
	}
}

/* --------------------------------------------------------------
   Responsive
-------------------------------------------------------------- */

@media (max-width: 999px) {
	.eulai-hero__content {
		transform: translateY(3.5rem);
	}
}

@media (max-width: 767px) {
	.eulai-hero__title {
		font-size: clamp(2.125rem, 5.5vw, 2.375rem);
	}
}

@media (max-width: 540px) {
	.eulai-hero__title {
		font-size: clamp(1.875rem, 6.4vw, 2rem);
		text-wrap: balance;
	}
}

/* --------------------------------------------------------------
   Reduced motion
-------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.eulai-hero::before {
		animation: none;
		transform: scale(1);
		will-change: auto;
	}

	.eulai-hero__eyebrow,
	.eulai-hero__title {
		animation: none;
		transform: none;
		will-change: auto;
	}

	.eulai-hero__scroll-chevron {
		animation: none;
		opacity: 0.65;
		transform: rotate(45deg);
	}
}