/* ==========================================================================
   Technology page hero — the shared hero with a floating card stack on the
   right (template-parts/tech-hero-visual.php). Copy left, artwork right;
   below 1000px the artwork drops under the copy as a single card.
   ========================================================================== */

.eit-hero--tech { min-height: clamp(520px, 62vh, 720px); }

.eit-hero--tech .eit-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(28px, 4vw, 72px);
}
.eit-hero--tech .eit-hero__title { max-width: 16ch; }

/* The wash used to fade out to the right over the photo; keep a little more
   of it so the cards read cleanly on the busy mesh image. */
.eit-hero--tech::after {
	background: linear-gradient(90deg, rgba(8, 10, 26, .93) 0%, rgba(8, 10, 26, .78) 42%, rgba(8, 10, 26, .52) 100%);
}

.eit-hero__visual { min-width: 0; }

/* ---------- The stack ---------- */

.eit-thv {
	--h: var(--thv-h, 230);
	position: relative;
	width: 100%;
	max-width: 560px;
	min-height: 530px;
	margin-inline: auto;
	color: #fff;
}

.eit-thv__orbit,
.eit-thv__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.eit-thv__orbit {
	inset: 6% -2% 6% 4%;
	border: 1.5px dashed rgba(255, 255, 255, .16);
	animation: eit-thv-spin 80s linear infinite;
}
.eit-thv__glow {
	inset: 10% 6%;
	background: radial-gradient(closest-side, hsl(var(--h) 85% 58% / .42), transparent 72%);
	filter: blur(6px);
}

.eit-thv__main,
.eit-thv__stack,
.eit-thv__chip {
	background: rgba(14, 20, 48, .66);
	border: 1px solid rgba(255, 255, 255, .15);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* Main card */
.eit-thv__main {
	position: absolute;
	top: 22px;
	left: 6%;
	width: 80%;
	padding: 20px 20px 18px;
	border-radius: 24px;
}
.eit-thv__top { display: flex; align-items: center; gap: 14px; }
.eit-thv__logo {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(135deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 48) 78% 52%));
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 12px 26px -10px hsl(var(--h) 85% 55% / .8);
}
.eit-thv__logo.has-logo { background: #fff; }
.eit-thv__logo img { display: block; width: 34px; height: 34px; object-fit: contain; }
.eit-thv__who { display: grid; gap: 2px; min-width: 0; }
.eit-thv__who strong { font-size: 19px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.eit-thv__who small { color: rgba(255, 255, 255, .62); font-size: 12.5px; }

/* Faux code editor */
.eit-thv__editor {
	margin-top: 16px;
	padding: 12px 14px 14px;
	border-radius: 16px;
	background: rgba(4, 7, 22, .62);
	border: 1px solid rgba(255, 255, 255, .08);
}
.eit-thv__dots { display: flex; gap: 6px; margin-bottom: 10px; }
.eit-thv__dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff7a8a; }
.eit-thv__dots i:nth-child(2) { background: #ffc86b; }
.eit-thv__dots i:nth-child(3) { background: #58d68d; }
.eit-thv__line { display: flex; align-items: center; gap: 8px; height: 22px; }
.eit-thv__line b { flex: none; width: 14px; color: rgba(255, 255, 255, .28); font: 500 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.eit-thv__line span { display: block; height: 7px; border-radius: 4px; opacity: .85; }

.eit-thv__stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; }
.eit-thv__stats li { display: grid; gap: 2px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.eit-thv__stats strong { font-size: 18px; font-weight: 700; line-height: 1.1; }
.eit-thv__stats span { color: rgba(255, 255, 255, .62); font-size: 11px; line-height: 1.25; }

/* Floating chips */
.eit-thv__chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	max-width: 74%;
	padding: 10px 16px 10px 12px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}
.eit-thv__chip i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: hsl(calc(var(--h) + 120) 80% 62%); box-shadow: 0 0 12px hsl(calc(var(--h) + 120) 85% 60%); }
.eit-thv__chip--a { top: 0; right: -2%; animation: eit-thv-float 7s ease-in-out infinite; }
.eit-thv__chip--b { bottom: 36px; left: -2%; max-width: 36%; white-space: normal; border-radius: 20px; animation: eit-thv-float 8s ease-in-out -2s infinite; }

/* Related stack */
.eit-thv__stack {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 60%;
	padding: 14px 16px 14px;
	border-radius: 20px;
	animation: eit-thv-float 9s ease-in-out -4s infinite;
}
.eit-thv__stack small { display: block; margin-bottom: 9px; color: rgba(255, 255, 255, .6); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eit-thv__stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.eit-thv__stack li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.eit-thv__stack li span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 50%; font-size: 10.5px; font-weight: 800; }

@keyframes eit-thv-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@keyframes eit-thv-spin { to { transform: rotate(360deg); } }

/* ---------- Tablet / phone: copy, then one card ---------- */

@media (max-width: 999px) {
	.eit-hero--tech .eit-hero__inner { grid-template-columns: 1fr; gap: 34px; }
	.eit-hero--tech .eit-hero__title { max-width: 100%; }
	.eit-thv { min-height: 0; max-width: 520px; margin-inline: 0; }
	.eit-thv__main { position: relative; top: 0; left: 0; width: 100%; }
	.eit-thv__chip,
	.eit-thv__stack,
	.eit-thv__orbit { display: none; }
}
@media (max-width: 767px) {
	.eit-hero--tech { min-height: 0; }
	.eit-thv__main { padding: 16px 16px 14px; border-radius: 20px; }
	.eit-thv__who strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.eit-thv__orbit, .eit-thv__chip, .eit-thv__stack { animation: none; }
}
