/* Eqtesad Hero Studio 1.7 — "Living Deck" hero */

.ehs-hero,
.ehs-hero * {
	box-sizing: border-box;
}

.ehs-hero {
	--ehs-accent: #078457;
	--ehs-ink: #071226;
	--ehs-muted: #4d5665;
	--ehs-bg: #fff;
	--ehs-surface: #fff;
	--ehs-line: color-mix(in srgb, var(--ehs-ink) 11%, transparent);
	--ehs-stage-height: 650px;
	--ehs-content-width: 1680px;
	--ehs-breakout-extra: 0px;
	--ehs-breakout-shift: 0px;
	--ehs-viewport-width: 100vw;
	--ehs-image-focus-x: 50%;
	--ehs-image-focus-y: 50%;
	--ehs-frame-ratio: 16 / 9;
	--ehs-slide-card-bg: rgba(255, 255, 255, .78);
	--ehs-slide-card-radius: 28px;
	--ehs-ambient-opacity: .32;
	--ehs-slide-duration: 6s;
	--ehs-ease: cubic-bezier(.22, 1, .36, 1);
	--ehs-idx: 0;
	position: relative;
	width: 100%;
	background: var(--ehs-bg);
	color: var(--ehs-ink);
	font-family: inherit;
	overflow: clip;
	isolation: isolate;
}

.elementor-widget-ehs-economic-hero,
.elementor-widget-ehs-economic-hero > .elementor-widget-container {
	overflow: visible;
}

.ehs-viewport-breakout {
	right: 50%;
	left: auto;
	width: calc(var(--ehs-viewport-width) + var(--ehs-breakout-extra) + var(--ehs-breakout-extra));
	max-width: none !important;
	margin-inline: 0;
	transform: translateX(calc(50% + var(--ehs-breakout-shift)));
}

.ehs-inner {
	width: min(calc(100% - 40px), var(--ehs-content-width));
	max-width: var(--ehs-content-width);
	margin-inline: auto;
}

@media (min-width: 768px) {
	.ehs-layout-full .ehs-inner {
		width: 100%;
		max-width: none !important;
		padding-inline: clamp(24px, 3.4vw, 76px);
	}
}

.ehs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ───────────── Stage & ambient background ───────────── */

.ehs-stage {
	position: relative;
	min-height: var(--ehs-stage-height);
	display: flex;
	align-items: center;
	padding-block: clamp(26px, 3.6vw, 52px) clamp(70px, 6.4vw, 104px);
	overflow: hidden;
	isolation: isolate;
	background: var(--ehs-bg);
}

.ehs-main-inner {
	position: relative;
	z-index: 2;
}

.ehs-visual {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.ehs-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(color-mix(in srgb, var(--ehs-ink) 16%, transparent) 1px, transparent 1.3px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(60% 75% at 28% 45%, #000, transparent 72%);
	mask-image: radial-gradient(60% 75% at 28% 45%, #000, transparent 72%);
	opacity: .5;
}

.ehs-ambient {
	position: absolute;
	inset: -18% -10%;
	width: 120%;
	height: 136%;
	object-fit: cover;
	filter: blur(70px) saturate(1.5);
	opacity: var(--ehs-ambient-opacity);
	transform: scale(1.1);
	transition: opacity .5s ease;
	-webkit-mask-image: radial-gradient(55% 70% at 28% 48%, #000 0%, transparent 82%);
	mask-image: radial-gradient(55% 70% at 28% 48%, #000 0%, transparent 82%);
}

.ehs-ambient.is-swap { opacity: 0; }

.ehs-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(64px);
	opacity: .42;
	will-change: transform;
}

.ehs-orb-a {
	top: -14%;
	right: -6%;
	width: min(46vw, 640px);
	aspect-ratio: 1;
	background: radial-gradient(circle, color-mix(in srgb, var(--ehs-accent) 52%, transparent), transparent 68%);
	animation: ehs-drift-a 19s ease-in-out infinite alternate;
}

.ehs-orb-b {
	bottom: -22%;
	left: 18%;
	width: min(38vw, 520px);
	aspect-ratio: 1;
	background: radial-gradient(circle, color-mix(in srgb, var(--ehs-accent) 28%, #4d7cff), transparent 68%);
	animation: ehs-drift-b 23s ease-in-out infinite alternate;
}

.ehs-ghost {
	position: absolute;
	inset-inline-start: clamp(-30px, -1vw, 0px);
	top: clamp(-70px, -4vw, -20px);
	font-size: clamp(170px, 24vw, 400px);
	font-weight: 900;
	line-height: 1.1;
	color: transparent;
	-webkit-text-stroke: 1.5px color-mix(in srgb, var(--ehs-ink) 7%, transparent);
	user-select: none;
	direction: rtl;
}

/* ───────────── Layout ───────────── */

.ehs-grid {
	display: grid;
	grid-template-columns: minmax(0, .86fr) minmax(0, 1.3fr);
	gap: clamp(32px, 5.2vw, 104px);
	align-items: center;
}

.ehs-copy {
	position: relative;
	z-index: 2;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ehs-slide-text { width: 100%; }

/* ───────────── Copy ───────────── */

.ehs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 6px 16px 6px 14px;
	border: 1px solid var(--ehs-line);
	border-radius: 99px;
	background: var(--ehs-slide-card-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: var(--ehs-accent);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
}

.ehs-eyebrow:has(.ehs-eyebrow-label:empty) { display: none; }

.ehs-eyebrow i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ehs-accent);
	animation: ehs-pulse 2s ease-out infinite;
}

.ehs-title {
	margin: clamp(14px, 1.7vw, 24px) 0 clamp(10px, 1.2vw, 16px);
	color: var(--ehs-ink);
	font-size: clamp(26px, 2.7vw, 48px);
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: -.012em;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-block: .06em;
}

.ehs-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-block: .14em;
	margin-block: -.14em;
}

.ehs-w > span { display: inline-block; will-change: transform; }

.ehs-description {
	max-width: 48ch;
	margin: 0;
	color: var(--ehs-muted);
	font-size: clamp(14px, 1.06vw, 17px);
	line-height: 2;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ehs-description:empty { display: none; }

.ehs-actions { margin-top: clamp(18px, 2vw, 28px); }

.ehs-primary-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 56px;
	padding: 6px;
	padding-inline: 6px 26px;
	border-radius: 99px;
	background: var(--ehs-accent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
	overflow: hidden;
	isolation: isolate;
	-webkit-mask-image: -webkit-radial-gradient(#fff, #000);
	box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--ehs-accent) 85%, transparent);
	transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
	transition: transform .35s var(--ehs-ease), box-shadow .35s ease;
}

.ehs-primary-button[hidden] { display: none; }

.ehs-primary-button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .34) 50%, transparent 70%);
	transform: translateX(120%);
	visibility: hidden;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.ehs-primary-button:hover::before {
		visibility: visible;
		transform: translateX(-120%);
		transition: transform .9s var(--ehs-ease);
	}
}

.ehs-primary-button:hover { box-shadow: 0 24px 42px -16px color-mix(in srgb, var(--ehs-accent) 95%, transparent); }

.ehs-primary-label { order: 2; }

.ehs-primary-button svg {
	order: 1;
	width: 44px;
	height: 44px;
	padding: 12px;
	border-radius: 50%;
	box-sizing: border-box;
	flex: 0 0 44px;
	background: rgba(255, 255, 255, .22);
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .45s var(--ehs-ease), background .3s ease, color .3s ease;
}

.ehs-primary-button:hover svg {
	transform: translateX(-5px) rotate(-8deg);
	background: #fff;
	color: var(--ehs-accent);
}

/* ───────────── Controls ───────────── */

.ehs-controls {
	width: 100%;
	max-width: 560px;
	margin-top: clamp(26px, 3.2vw, 46px);
	display: grid;
	gap: 18px;
}

.ehs-teaser {
	margin-top: clamp(18px, 2vw, 26px);
	max-width: 540px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 8px 8px 8px 16px;
	border: 1px solid var(--ehs-line);
	border-radius: 20px;
	background: var(--ehs-slide-card-bg);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--ehs-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: transform .4s var(--ehs-ease), border-color .3s ease, box-shadow .4s ease;
}

.ehs-teaser:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--ehs-accent) 55%, transparent);
	box-shadow: 0 18px 36px -22px rgba(7, 18, 38, .45);
}

.ehs-teaser-thumb {
	width: 76px;
	height: 54px;
	object-fit: cover;
	border-radius: 13px;
	transition: transform .5s var(--ehs-ease);
}

.ehs-teaser:hover .ehs-teaser-thumb { transform: scale(1.06) rotate(-1.5deg); }

.ehs-teaser-copy { display: grid; gap: 3px; min-width: 0; }

.ehs-teaser-copy small {
	color: var(--ehs-muted);
	font-size: 12px;
	font-weight: 700;
}

.ehs-teaser-cat { color: var(--ehs-accent); }

.ehs-teaser-title {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ehs-teaser > svg,
.ehs-arrow svg {
	width: 40px;
	height: 40px;
	padding: 11px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ehs-ink) 7%, transparent);
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .4s var(--ehs-ease), background .3s ease, color .3s ease;
}

.ehs-teaser:hover > svg {
	transform: translateX(-4px);
	background: var(--ehs-accent);
	color: #fff;
}

.ehs-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ehs-roll {
	display: block;
	height: 1.1em;
	overflow: hidden;
	line-height: 1.1;
}

.ehs-roll-track {
	display: block;
	transform: translateY(calc(var(--ehs-idx, 0) * -1.1em));
	transition: transform .9s var(--ehs-ease);
}

.ehs-roll-track > span {
	display: block;
	height: 1.1em;
	line-height: 1.1;
}

.ehs-counter {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.ehs-counter-total {
	color: var(--ehs-muted);
	font-size: 13px;
	font-weight: 700;
}

.ehs-segs {
	display: flex;
	flex: 1;
	gap: 7px;
	min-width: 0;
}

.ehs-seg {
	position: relative;
	flex: 1;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ehs-seg::before,
.ehs-seg b {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 4px;
	transition: height .3s ease, margin .3s ease;
}

.ehs-seg::before { background: var(--ehs-line); }

.ehs-seg b {
	background: var(--ehs-accent);
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.ehs-seg:hover::before,
.ehs-seg:hover b { height: 6px; margin-top: -3px; }

.ehs-seg.is-done b { transform: scaleX(1); }

.ehs-seg.is-active b {
	animation: ehs-fill var(--ehs-slide-duration, 6s) linear forwards;
}

.ehs-no-autoplay .ehs-seg.is-active b { animation: none; transform: scaleX(1); }
.ehs-hero.is-paused .ehs-seg.is-active b { animation-play-state: paused; }

.ehs-arrows { display: flex; gap: 8px; flex: 0 0 auto; }

.ehs-arrow {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--ehs-ink) 22%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--ehs-ink) 6%, var(--ehs-bg));
	box-shadow: none;
	line-height: 0;
	color: var(--ehs-ink);
	cursor: pointer;
	transition: transform .35s var(--ehs-ease), border-color .3s ease;
}

.ehs-arrow svg { background: none; display: block; width: 40px; height: 40px; margin: -1px; }

.ehs-arrow:hover {
	transform: scale(1.08);
	border-color: var(--ehs-accent);
	color: var(--ehs-accent);
}

.ehs-arrow:active { transform: scale(.94); }

.ehs-hero button:focus-visible,
.ehs-hero a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ehs-accent) 70%, #fff);
	outline-offset: 3px;
}

/* ───────────── Deck of image cards ───────────── */

.ehs-deck-wrap {
	position: relative;
	z-index: 1;
	min-width: 0;
	padding-top: clamp(26px, 3.6vw, 52px);
	perspective: 1600px;
}

.ehs-deck {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ehs-frame-ratio, 16 / 9);
	touch-action: pan-y;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .7s var(--ehs-ease);
}

.ehs-deck.is-tilting { transition: transform .12s linear; }

.ehs-card {
	--p: 0;
	position: absolute;
	inset: 0;
	z-index: calc(10 - var(--p));
	border-radius: var(--ehs-slide-card-radius);
	overflow: hidden;
	background: color-mix(in srgb, var(--ehs-ink) 8%, var(--ehs-surface));
	transform-origin: 50% 100%;
	transform: translate3d(var(--dx, 0px), calc(var(--p) * -8%), 0) rotate(var(--rot, 0deg)) scale(calc(1 - var(--p) * .045));
	opacity: calc(1 - var(--p) * .16);
	filter: brightness(calc(1 - var(--p) * .1));
	box-shadow: 0 30px 70px -34px rgba(7, 18, 38, .6), 0 0 0 1px var(--ehs-line);
	transition: transform .95s var(--ehs-ease), opacity .6s ease, filter .6s ease;
	cursor: pointer;
}

.ehs-card[data-pos="0"] { --p: 0; cursor: default; }
.ehs-card[data-pos="1"] { --p: 1; }
.ehs-card[data-pos="2"] { --p: 2; }
.ehs-card[data-pos="3"] { --p: 3; }

.ehs-card.is-dragging { transition: none; }

.ehs-card.is-leaving { animation: ehs-fly 1.25s linear both; }

.ehs-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
	pointer-events: none;
}

.ehs-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .26), transparent 46%);
	mix-blend-mode: soft-light;
	opacity: 0;
	transition: opacity .5s ease;
	pointer-events: none;
}

.ehs-tilt .ehs-deck.is-tilting .ehs-card[data-pos="0"]::after { opacity: 1; }

.ehs-card-glare {
	position: absolute;
	inset: -10% -30%;
	z-index: 5;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .42) 50%, transparent 58%);
	opacity: 0;
	pointer-events: none;
}

.ehs-card.is-arriving .ehs-card-glare { animation: ehs-glare 1.2s .12s var(--ehs-ease) both; }

.ehs-card-media { position: absolute; inset: 0; }

.ehs-hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--ehs-image-focus-x) var(--ehs-image-focus-y);
	-webkit-user-drag: none;
	user-select: none;
}

.ehs-hero-image-blur { display: none; }

.ehs-deck-link {
	position: absolute;
	inset: 0;
	z-index: 30;
	border-radius: var(--ehs-slide-card-radius);
	-webkit-user-drag: none;
}

/* image fit — desktop / tablet */
@media (min-width: 768px) {
	.ehs-desktop-fit-smart .ehs-hero-image-blur {
		display: block;
		object-fit: cover;
		object-position: center;
		filter: blur(26px) saturate(1.25) brightness(.9);
		transform: scale(1.25);
	}
	.ehs-desktop-fit-smart .ehs-hero-image-main { object-fit: contain; object-position: center !important; }
	.ehs-desktop-fit-contain .ehs-hero-image-main { object-fit: contain; object-position: center !important; }
	.ehs-desktop-fit-cover .ehs-card[data-pos="0"] .ehs-hero-image-main { animation: ehs-kenburns 16s ease-in-out infinite alternate; }
}

/* image fit — mobile */
@media (max-width: 767px) {
	.ehs-mobile-fit-smart .ehs-hero-image-blur {
		display: block;
		object-fit: cover;
		object-position: center;
		filter: blur(22px) saturate(1.25) brightness(.9);
		transform: scale(1.25);
	}
	.ehs-mobile-fit-smart .ehs-hero-image-main { object-fit: contain; object-position: center !important; }
	.ehs-mobile-fit-contain .ehs-hero-image-main { object-fit: contain; object-position: center !important; }
	.ehs-mobile-fit-cover .ehs-card[data-pos="0"] .ehs-hero-image-main { animation: ehs-kenburns 16s ease-in-out infinite alternate; }
}

/* ───────────── Important headlines bar ───────────── */

.ehs-news-wrap {
	position: relative;
	z-index: 6;
	margin-top: calc(-1 * clamp(34px, 3.4vw, 54px));
	padding-bottom: clamp(20px, 2.6vw, 34px);
}

.ehs-news-row-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--ehs-line);
	border-radius: 20px;
	background: var(--ehs-slide-card-bg);
	-webkit-backdrop-filter: blur(22px) saturate(1.5);
	backdrop-filter: blur(22px) saturate(1.5);
	box-shadow: 0 30px 60px -34px rgba(7, 18, 38, .55);
}

.ehs-news-heading {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;
	padding-inline: 12px 22px;
	border-inline-end: 1px solid var(--ehs-line);
}

.ehs-news-heading i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ehs-accent);
	animation: ehs-pulse 2s ease-out infinite;
}

.ehs-news-heading h3 {
	margin: 0;
	color: var(--ehs-ink);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.4;
	white-space: nowrap;
}

.ehs-news-scroller {
	display: flex;
	flex: 1;
	gap: 12px;
	min-width: 0;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.ehs-news-scroller::-webkit-scrollbar { display: none; }

.ehs-news-card {
	display: flex;
	align-items: center;
	flex: 0 0 clamp(250px, 22vw, 330px);
	gap: 12px;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: color-mix(in srgb, var(--ehs-surface) 72%, transparent);
	color: var(--ehs-ink) !important;
	text-decoration: none !important;
	scroll-snap-align: start;
	transition: transform .45s var(--ehs-ease), border-color .3s ease, box-shadow .45s ease, background .3s ease;
}

.ehs-news-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--ehs-accent) 50%, transparent);
	background: var(--ehs-surface);
	box-shadow: 0 18px 30px -20px rgba(7, 18, 38, .5);
}

.ehs-news-image,
.ehs-news-placeholder {
	flex: 0 0 84px;
	width: 84px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	background: color-mix(in srgb, var(--ehs-ink) 8%, var(--ehs-surface));
	transition: transform .6s var(--ehs-ease);
}

.ehs-news-card:hover .ehs-news-image { transform: scale(1.07) rotate(-1deg); }

.ehs-news-placeholder { display: grid; place-items: center; color: var(--ehs-muted); }
.ehs-news-placeholder svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.ehs-news-copy { display: grid; gap: 4px; min-width: 0; }

.ehs-news-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
}

.ehs-news-meta small { color: var(--ehs-accent); font-size: inherit; }
.ehs-news-meta time { color: var(--ehs-muted); }

.ehs-news-copy strong {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ehs-news-nav {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--ehs-line);
	border-radius: 50%;
	background: var(--ehs-surface);
	color: var(--ehs-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform .35s var(--ehs-ease), background .3s ease, color .3s ease;
}

.ehs-news-nav svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ehs-news-nav:hover { background: var(--ehs-accent); color: #fff; transform: scale(1.08); }

/* ───────────── Motion: entrance & slide change ───────────── */

.ehs-has-motion:not(.ehs-ready) .ehs-deck-wrap,
.ehs-has-motion:not(.ehs-ready) .ehs-controls,
.ehs-has-motion:not(.ehs-ready) .ehs-news-wrap,
.ehs-has-motion .ehs-slide-text[data-state="pre"] {
	opacity: 0;
	animation: ehs-failsafe .01s linear 3s forwards;
}

.ehs-has-motion .ehs-slide-text[data-state="pre"] .ehs-w > span { transform: translateY(118%); }

/* cards start collapsed in one stack, then fan out */
.ehs-has-motion:not(.ehs-ready) .ehs-card { --p: 0 !important; }

.ehs-has-motion.ehs-ready .ehs-deck-wrap { animation: ehs-deck-in 1.1s var(--ehs-ease) both; }
.ehs-has-motion.ehs-ready .ehs-controls { animation: ehs-fx-in 1s .75s var(--ehs-ease) both; }
.ehs-has-motion.ehs-ready .ehs-news-wrap { animation: ehs-fx-in 1.1s .9s var(--ehs-ease) both; }

.ehs-has-motion.ehs-ready .ehs-news-card { animation: ehs-card-in .9s var(--ehs-ease) both; }
.ehs-has-motion.ehs-ready .ehs-news-card:nth-child(1) { animation-delay: 1.05s; }
.ehs-has-motion.ehs-ready .ehs-news-card:nth-child(2) { animation-delay: 1.15s; }
.ehs-has-motion.ehs-ready .ehs-news-card:nth-child(3) { animation-delay: 1.25s; }
.ehs-has-motion.ehs-ready .ehs-news-card:nth-child(4) { animation-delay: 1.35s; }
.ehs-has-motion.ehs-ready .ehs-news-card:nth-child(n+5) { animation-delay: 1.45s; }

.ehs-has-motion .ehs-slide-text[data-state="in"] .ehs-w > span {
	animation: ehs-word-in .95s var(--ehs-ease) both;
	animation-delay: calc(var(--i, 0) * 62ms + 140ms);
}

.ehs-has-motion .ehs-slide-text[data-state="in"] .ehs-fx {
	animation: ehs-fx-in .95s var(--ehs-ease) both;
	animation-delay: calc(var(--d, 0) * 100ms + 260ms);
}

.ehs-has-motion .ehs-slide-text[data-state="out"] .ehs-w > span {
	animation: ehs-word-out .4s cubic-bezier(.55, .05, .85, .35) both;
	animation-delay: calc(var(--i, 0) * 16ms);
}

.ehs-has-motion .ehs-slide-text[data-state="out"] .ehs-fx { animation: ehs-fx-out .32s ease-in both; }

/* ───────────── Keyframes ───────────── */

@keyframes ehs-word-in {
	from { transform: translateY(118%) rotate(5deg); opacity: 0; }
	to { transform: none; opacity: 1; }
}

@keyframes ehs-word-out {
	from { transform: none; opacity: 1; }
	to { transform: translateY(-118%) rotate(-4deg); opacity: 0; }
}

@keyframes ehs-fx-in {
	from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
	to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes ehs-fx-out {
	to { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
}

@keyframes ehs-card-in {
	from { opacity: 0; transform: translateY(18px) scale(.96); }
	to { opacity: 1; transform: none; }
}

@keyframes ehs-deck-in {
	from { opacity: 0; transform: translateY(46px) scale(.95); }
	to { opacity: 1; transform: none; }
}

@keyframes ehs-failsafe { to { opacity: 1; } }

@keyframes ehs-fill {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes ehs-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ehs-accent) 55%, transparent); }
	100% { box-shadow: 0 0 0 10px transparent; }
}

@keyframes ehs-drift-a { to { transform: translate3d(-9vw, 7vh, 0) scale(1.18); } }
@keyframes ehs-drift-b { to { transform: translate3d(8vw, -6vh, 0) scale(.88); } }

@keyframes ehs-kenburns {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); }
}

@keyframes ehs-fly {
	0% { transform: translate3d(0, 0, 0) rotate(0) scale(1); z-index: 20; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
	40% { transform: translate3d(-42%, -2%, 0) rotate(calc(var(--ehs-dir, 1) * -9deg)) scale(1.03); z-index: 20; animation-timing-function: step-end; }
	41% { z-index: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
	100% { transform: translate3d(0, calc(var(--p) * -8%), 0) rotate(0) scale(calc(1 - var(--p) * .045)); z-index: 0; }
}

@keyframes ehs-glare {
	0% { opacity: 0; transform: translateX(60%); }
	25% { opacity: 1; }
	100% { opacity: 0; transform: translateX(-60%); }
}

/* ───────────── Tablet ───────────── */

@media (max-width: 1100px) {
	.ehs-grid { gap: clamp(28px, 4vw, 52px); }
}

@media (max-width: 1023px) {
	.ehs-grid { grid-template-columns: minmax(0, 1fr); }
	.ehs-deck-wrap { order: -1; width: min(100%, 820px); margin-inline: auto; }
	.ehs-controls { max-width: none; }
	.ehs-ghost { font-size: clamp(140px, 30vw, 260px); }
}

/* ───────────── Mobile ───────────── */

@media (max-width: 767px) {
	.ehs-stage {
		min-height: 0 !important;
		padding-block: 18px 30px;
		display: block;
	}
	.ehs-deck-wrap { padding-top: 22px; }
	.ehs-card { transform: translate3d(var(--dx, 0px), calc(var(--p) * -10%), 0) rotate(var(--rot, 0deg)) scale(calc(1 - var(--p) * .05)); }
	.ehs-grid { gap: 22px; }
	.ehs-copy { align-items: stretch; }
	.ehs-eyebrow { min-height: 32px; padding: 4px 13px 4px 11px; font-size: 12px; }
	.ehs-title { font-size: clamp(23px, 6.6vw, 31px); line-height: 1.55; margin-top: 12px; -webkit-line-clamp: 4; }
	.ehs-description { font-size: 13.5px; line-height: 1.9; -webkit-line-clamp: 2; }
	.ehs-actions { margin-top: 16px; }
	.ehs-primary-button { width: 100%; justify-content: space-between; min-height: 54px; padding-inline: 6px 22px; }
	.ehs-controls { margin-top: 22px; gap: 12px; }
	.ehs-teaser { display: none; }
	.ehs-counter { font-size: 18px; }
	.ehs-arrow { width: 40px; height: 40px; }
	.ehs-arrow svg { width: 38px; height: 38px; padding: 10px; }
	.ehs-ghost { font-size: 150px; bottom: auto; top: 6px; inset-inline-start: 4px; opacity: .8; }
	.ehs-orb { opacity: .34; }

	.ehs-news-wrap { margin-top: 0; padding-top: 0; padding-bottom: 20px; }
	.ehs-news-row-wrap { flex-wrap: wrap; gap: 4px; padding: 12px 0 12px 12px; border-radius: 18px; }
	.ehs-news-heading { flex: 0 0 100%; padding: 2px 14px 8px; border-inline-end: 0; }
	.ehs-news-scroller { padding-inline: 12px; -webkit-mask-image: none; mask-image: none; }
	.ehs-news-card { flex-basis: min(78vw, 300px); }
	.ehs-news-nav { display: none; }
}

@media (max-width: 400px) {
	.ehs-ghost { display: none; }
}

/* ───────────── Dark theme ───────────── */

.ehs-hero.ehs-theme-dark {
	--ehs-bg: #05080c !important;
	--ehs-ink: #f5f7fa !important;
	--ehs-muted: #aab4c2 !important;
	--ehs-surface: #0c1118;
	--ehs-slide-card-bg: rgba(14, 19, 27, .78) !important;
	--ehs-ambient-opacity: .46;
	background: #05080c !important;
	color: #f5f7fa !important;
}

@media (prefers-color-scheme: dark) {
	.ehs-hero:not(.ehs-theme-light) {
		--ehs-bg: #05080c !important;
		--ehs-ink: #f5f7fa !important;
		--ehs-muted: #aab4c2 !important;
		--ehs-surface: #0c1118;
		--ehs-slide-card-bg: rgba(14, 19, 27, .78) !important;
		--ehs-ambient-opacity: .46;
		background: #05080c !important;
		color: #f5f7fa !important;
	}
}

.ehs-theme-dark .ehs-card { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.ehs-theme-dark .ehs-news-row-wrap { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* Dark theme: no colored glow behind the cards */
.ehs-theme-dark .ehs-ambient,
.ehs-theme-dark .ehs-orb { display: none !important; }

@media (prefers-color-scheme: dark) {
	.ehs-hero:not(.ehs-theme-light) .ehs-ambient,
	.ehs-hero:not(.ehs-theme-light) .ehs-orb { display: none !important; }
}

/* ───────────── Reduced motion ───────────── */

@media (prefers-reduced-motion: reduce) {
	.ehs-hero *,
	.ehs-hero *::before,
	.ehs-hero *::after {
		animation-duration: .001ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		transition-delay: 0s !important;
	}
	.ehs-orb, .ehs-ambient { animation: none !important; }
}
