/* ==========================================================================
   MX1 home hero — brand-built, no background photo.
   Copy on the start side, a live board of services on the end side, and a
   client strip that hands off into the next section (#0f172a).
   Scoped to .mx1hh; motion only under .mx1hh--motion.
   ========================================================================== */
.mx1hh {
	--hh-blue: #365de3;
	--hh-blue-2: #4672f9;
	--hh-glow: #5f98fd;
	--hh-navy: #080e38;
	--hh-next: #0f172a;
	--hh-paper: #f2f4ff;
	--hh-mute: rgba(242, 244, 255, 0.68);
	--hh-line: rgba(242, 244, 255, 0.12);
	--hh-cut: 18px;
	--hh-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hh-gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);

	position: relative; isolation: isolate; overflow: hidden;
	width: 100vw; margin-inline: calc(50% - 50vw);
	min-height: 100svh;
	display: flex; flex-direction: column; justify-content: center;
	padding-block: clamp(7rem, 15vh, 9.5rem) 0;
	background: linear-gradient(180deg, var(--hh-navy) 0%, #0a1240 45%, var(--hh-next) 100%);
	color: var(--hh-paper);
	text-align: start;
}
.mx1hh *, .mx1hh *::before, .mx1hh *::after { box-sizing: border-box; }

/* ---------- background ---------- */
.mx1hh__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* fade every background layer into the next section's colour */
.mx1hh__bg::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 34%; background: linear-gradient(to bottom, rgba(15, 23, 42, 0), var(--hh-next) 92%); }
.mx1hh__aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.mx1hh__aurora--a { width: 52vw; height: 52vw; inset-block-start: -18vw; inset-inline-end: -12vw; background: radial-gradient(circle, rgba(70, 114, 249, 0.55), transparent 65%); }
.mx1hh__aurora--b { width: 46vw; height: 46vw; inset-block-end: -16vw; inset-inline-start: -10vw; background: radial-gradient(circle, rgba(54, 93, 227, 0.45), transparent 65%); }
.mx1hh__grid {
	position: absolute; inset: 0; opacity: 0.55;
	background-image: linear-gradient(var(--hh-line) 1px, transparent 1px), linear-gradient(90deg, var(--hh-line) 1px, transparent 1px);
	background-size: 72px 72px; background-position: center;
	mask-image: radial-gradient(70% 60% at 30% 45%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 60% at 30% 45%, #000 0%, transparent 75%);
}
/* chamfered outlines echoing the MX1 monogram, centred behind the board */
.mx1hh__ring {
	position: absolute; inset-block-start: 50%; left: 27%;
	width: var(--r); aspect-ratio: 1; translate: -50% -50%;
	border: 1px solid rgba(95, 152, 253, 0.22);
	clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
}
.mx1hh__ring--1 { --r: 34vw; }
.mx1hh__ring--2 { --r: 46vw; border-color: rgba(95, 152, 253, 0.14); }
.mx1hh__ring--3 { --r: 58vw; border-color: rgba(95, 152, 253, 0.08); }
.mx1hh--motion .mx1hh__aurora--a { animation: mx1hh-drift 18s ease-in-out infinite alternate; }
.mx1hh--motion .mx1hh__aurora--b { animation: mx1hh-drift 24s ease-in-out -8s infinite alternate-reverse; }
.mx1hh--motion .mx1hh__ring--1 { animation: mx1hh-spin 60s linear infinite; }
.mx1hh--motion .mx1hh__ring--2 { animation: mx1hh-spin 90s linear infinite reverse; }
.mx1hh--motion .mx1hh__ring--3 { animation: mx1hh-spin 120s linear infinite; }
@keyframes mx1hh-drift { to { transform: translate3d(-5vw, 6vh, 0) scale(1.1); } }
@keyframes mx1hh-spin { to { rotate: 360deg; } }

/* ---------- layout ---------- */
.mx1hh__inner {
	width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--hh-gutter);
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem); align-items: center;
}

/* ---------- copy ---------- */
.mx1hh__eyebrow {
	display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1.25rem;
	padding: 0.45rem 1rem; font-size: 0.95rem; color: var(--hh-paper);
	background: rgba(70, 114, 249, 0.12); box-shadow: inset 0 0 0 1px rgba(95, 152, 253, 0.35);
	border-radius: 999px;
}
.mx1hh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hh-glow); box-shadow: 0 0 0 0 rgba(95, 152, 253, 0.6); }
.mx1hh--motion .mx1hh__dot { animation: mx1hh-ping 1.8s ease-out infinite; }
@keyframes mx1hh-ping { to { box-shadow: 0 0 0 10px rgba(95, 152, 253, 0); } }

.mx1hh .mx1hh__title { margin: 0; font-size: clamp(2.6rem, 1.4rem + 4vw, 5.6rem); font-weight: 800; line-height: 1.12; letter-spacing: 0; color: var(--hh-paper); }
.mx1hh__line { display: block; }
.mx1hh__line--grad {
	background: linear-gradient(100deg, var(--hh-glow) 0%, var(--hh-blue-2) 45%, #b9ccff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent; padding-block-end: 0.1em;
}

.mx1hh__rotate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; margin: clamp(1rem, 2.4vh, 1.5rem) 0 0; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.9rem); font-weight: 700; }
.mx1hh__rotate-label { color: var(--hh-mute); font-weight: 500; }
.mx1hh__words { display: inline-grid; overflow: hidden; padding-block: 0.1em; }
.mx1hh__word { grid-area: 1 / 1; white-space: nowrap; color: #fff; opacity: 0; transform: translateY(100%); transition: transform 0.6s var(--hh-ease), opacity 0.6s var(--hh-ease); }
.mx1hh__word.is-on { opacity: 1; transform: none; }
.mx1hh__word.is-out { opacity: 0; transform: translateY(-100%); }
.mx1hh__words::after { content: ""; grid-area: 1 / 1; align-self: end; height: 3px; background: linear-gradient(90deg, transparent, var(--hh-blue-2)); border-radius: 3px; }

.mx1hh__sub { max-width: 36rem; margin: clamp(1rem, 2.4vh, 1.5rem) 0 clamp(1.5rem, 3.6vh, 2.25rem); color: var(--hh-mute); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.85; }

.mx1hh__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mx1hh .mx1hh__btn {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-height: 56px; padding: 0 1.75rem; font-size: 1.05rem; font-weight: 700; text-decoration: none;
	clip-path: polygon(var(--hh-cut) 0, 100% 0, 100% calc(100% - var(--hh-cut)), calc(100% - var(--hh-cut)) 100%, 0 100%, 0 var(--hh-cut));
	transition: background 0.3s, color 0.3s, filter 0.3s;
}
.mx1hh .mx1hh__btn--primary { background: linear-gradient(120deg, var(--hh-blue-2), var(--hh-blue)); color: #fff; }
.mx1hh .mx1hh__btn--primary:hover, .mx1hh .mx1hh__btn--primary:focus-visible { background: linear-gradient(120deg, var(--hh-glow), var(--hh-blue-2)); color: #fff; filter: drop-shadow(0 8px 24px rgba(70, 114, 249, 0.5)); }
.mx1hh .mx1hh__btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(120%); }
.mx1hh--motion .mx1hh__btn--primary::after { animation: mx1hh-sweep 3s var(--hh-ease) infinite; }
@keyframes mx1hh-sweep { 0%, 10% { transform: translateX(120%); } 40%, 100% { transform: translateX(-120%); } }
.mx1hh .mx1hh__btn--primary span { transition: transform 0.3s var(--hh-ease); }
.mx1hh .mx1hh__btn--primary:hover span { transform: translateX(-4px); }
.mx1hh .mx1hh__btn--ghost { background: rgba(242, 244, 255, 0.06); color: var(--hh-paper); box-shadow: inset 0 0 0 1px var(--hh-line); }
.mx1hh .mx1hh__btn--ghost:hover, .mx1hh .mx1hh__btn--ghost:focus-visible { background: rgba(242, 244, 255, 0.14); color: #fff; }
.mx1hh .mx1hh__btn:focus-visible { outline: 2px solid var(--hh-glow); outline-offset: -4px; }

/* ---------- services board ---------- */
.mx1hh__board { position: relative; padding-block: 1rem 3rem; }
.mx1hh__mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0.06; }
.mx1hh__mark img { width: 92%; height: auto; }
.mx1hh__tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.mx1hh__tile:nth-child(even) { translate: 0 2.25rem; }
.mx1hh__tile:last-child { grid-column: 1 / -1; width: 62%; justify-self: center; }
.mx1hh__tile:last-child:nth-child(even) { translate: none; }
.mx1hh__tile {
	position: relative; display: grid; gap: 0.35rem; align-content: start;
	min-height: 132px; padding: 1.1rem 1.2rem 1.2rem;
	background: rgba(242, 244, 255, 0.045);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px var(--hh-line);
	clip-path: polygon(var(--hh-cut) 0, 100% 0, 100% calc(100% - var(--hh-cut)), calc(100% - var(--hh-cut)) 100%, 0 100%, 0 var(--hh-cut));
	transition: background 0.6s var(--hh-ease), box-shadow 0.6s var(--hh-ease), transform 0.6s var(--hh-ease);
}
.mx1hh__tile strong { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.5; }
.mx1hh__tile small { font-size: 0.86rem; color: var(--hh-mute); line-height: 1.7; transition: color 0.6s; }
.mx1hh__ico { display: grid; place-items: center; width: 44px; height: 44px; margin-block-end: 0.35rem; color: var(--hh-glow); background: rgba(70, 114, 249, 0.12); transition: background 0.6s, color 0.6s; }
.mx1hh .mx1hh__ico svg { width: 26px !important; height: 26px !important; max-width: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mx1hh__tile.is-on { background: linear-gradient(140deg, var(--hh-blue-2), var(--hh-blue) 60%, #2445b8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transform: scale(1.03); }
.mx1hh__tile.is-on small { color: rgba(255, 255, 255, 0.85); }
.mx1hh__tile.is-on .mx1hh__ico { background: rgba(255, 255, 255, 0.18); color: #fff; }

.mx1hh__stat {
	position: absolute; z-index: 2; inset-block-end: 0; left: -0.5rem; /* physical: away from the copy */
	display: grid; place-items: center; gap: 0.1rem; min-width: 128px; padding: 1rem 1.2rem;
	background: #fff; color: var(--hh-navy);
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	box-shadow: 0 20px 50px rgba(4, 6, 26, 0.4);
}
.mx1hh__stat strong { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--hh-blue); }
.mx1hh__stat span { font-size: 0.85rem; font-weight: 600; }
.mx1hh--motion .mx1hh__stat { animation: mx1hh-float 7s ease-in-out infinite; }
@keyframes mx1hh-float { 50% { translate: 0 -10px; } }

/* ---------- client strip: the bridge into the next section ---------- */
.mx1hh__logos {
	position: relative; display: flex; align-items: center; gap: 1.5rem;
	width: 100%; max-width: 1440px; margin: clamp(3rem, 7vh, 5rem) auto 0; padding: 1.5rem var(--hh-gutter) 2rem;
	border-block-start: 1px solid var(--hh-line);
}
.mx1hh__logos-label { flex: none; margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--hh-mute); white-space: nowrap; }
.mx1hh__marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
.mx1hh__track { display: flex; align-items: center; gap: 3rem; width: max-content; margin: 0; padding: 0; list-style: none; }
.mx1hh__track li { flex: none; display: grid; place-items: center; height: 56px; }
.mx1hh__track img { width: calc(var(--lw, 140px) * 0.8); height: calc(var(--lh, 40px) * 0.8); max-width: none; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.mx1hh__track li:hover img { filter: none; opacity: 1; }
.mx1hh--motion .mx1hh__track { animation: mx1hh-marquee 50s linear infinite; }
.mx1hh--motion .mx1hh__marquee:hover .mx1hh__track { animation-play-state: paused; }
@keyframes mx1hh-marquee { to { transform: translateX(50%); } }
.mx1hh:not(.mx1hh--motion) .mx1hh__track { flex-wrap: wrap; width: auto; justify-content: center; }
.mx1hh:not(.mx1hh--motion) .mx1hh__track li[aria-hidden] { display: none; }
@media (hover: none), (max-width: 1023px) { .mx1hh__track img { filter: none; opacity: 1; } }

/* ---------- entrance ---------- */
.mx1hh--motion .mx1hh__copy > *, .mx1hh--motion .mx1hh__tile, .mx1hh--motion .mx1hh__stat { opacity: 0; translate: 0 24px; transition: opacity 0.9s var(--hh-ease), translate 0.9s var(--hh-ease), background 0.6s var(--hh-ease), box-shadow 0.6s var(--hh-ease), transform 0.6s var(--hh-ease); }
.mx1hh--motion .mx1hh__copy > :nth-child(2) { transition-delay: 0.08s; }
.mx1hh--motion .mx1hh__copy > :nth-child(3) { transition-delay: 0.16s; }
.mx1hh--motion .mx1hh__copy > :nth-child(4) { transition-delay: 0.24s; }
.mx1hh--motion .mx1hh__copy > :nth-child(5) { transition-delay: 0.32s; }
.mx1hh--motion .mx1hh__tile { transition-delay: calc(0.3s + var(--i) * 0.08s), calc(0.3s + var(--i) * 0.08s), 0s, 0s, 0s; }
.mx1hh--motion.is-ready .mx1hh__copy > *, .mx1hh--motion.is-ready .mx1hh__tile, .mx1hh--motion.is-ready .mx1hh__stat { opacity: 1; translate: none; }
.mx1hh--motion.is-ready .mx1hh__tile:nth-child(even):not(:last-child) { translate: 0 2.25rem; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
	.mx1hh { min-height: 0; padding-block-start: 7rem; }
	.mx1hh__inner { grid-template-columns: 1fr; gap: 3rem; }
	.mx1hh__board { max-width: 640px; width: 100%; margin-inline: auto; }
	.mx1hh__ring { left: 50%; inset-block-start: 72%; }
}
@media (max-width: 600px) {
	.mx1hh { padding-block-start: 6rem; }
	.mx1hh .mx1hh__title { font-size: clamp(2.3rem, 1.6rem + 4vw, 3rem); }
	.mx1hh__actions .mx1hh__btn { flex: 1 1 100%; }
	.mx1hh__tiles { gap: 0.6rem; }
	.mx1hh__tile { min-height: 0; padding: 0.9rem; }
	.mx1hh__tile small { display: none; }
	.mx1hh__tile strong { font-size: 0.92rem; }
	.mx1hh__ico { width: 38px; height: 38px; }
	.mx1hh__tile:nth-child(even), .mx1hh--motion.is-ready .mx1hh__tile:nth-child(even):not(:last-child) { translate: 0 1.25rem; }
	.mx1hh__tile:last-child { width: 100%; }
	.mx1hh__board { padding-block-end: 4.5rem; }
	.mx1hh__stat { min-width: 104px; padding: 0.75rem 0.9rem; }
	.mx1hh__stat strong { font-size: 1.5rem; }
	.mx1hh__logos { flex-direction: column; align-items: stretch; gap: 1rem; text-align: center; }
	.mx1hh__track { gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
	.mx1hh *, .mx1hh *::before, .mx1hh *::after { animation: none !important; transition: none !important; }
}
