/* ==========================================================================
   Magixs Agency — design system
   1. Tokens & base        6. Sections & components
   2. Layout & type        7. Page-specific blocks
   3. Buttons              8. Forms
   4. Header & navigation  9. Footer
   5. Heroes              10. Motion & utilities
   ========================================================================== */

/* 1. Tokens & base -------------------------------------------------------- */
:root {
	--red: #d50000;
	--red-dark: #a30000;
	--red-light: #ff2e2e;
	--red-soft: #fff1f1;
	--ink: #0c0c11;
	--ink-2: #15151c;
	--ink-3: #1f1f29;
	--text: #1b1b23;
	--muted: #5e6271;
	--muted-light: #a3a6b4;
	--line: #e8e8ef;
	--soft: #f6f6f9;
	--white: #fff;

	--font-head: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 32px);
	--section: clamp(76px, 9vw, 136px);
	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow-sm: 0 2px 10px rgba(12, 12, 17, .06);
	--shadow: 0 18px 50px -18px rgba(12, 12, 17, .22);
	--shadow-lg: 0 40px 90px -30px rgba(12, 12, 17, .35);
	--shadow-red: 0 18px 40px -14px rgba(213, 0, 0, .55);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--red); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
.mx-main { outline: none; overflow-x: clip; }
html, body { overflow-x: clip; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mx-skip {
	position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 18px;
	background: var(--red); color: #fff; border-radius: 8px; transform: translateY(-160%);
	transition: transform .2s;
}
.mx-skip:focus { transform: none; color: #fff; }

.mx-icon { width: 1.25em; height: 1.25em; flex: none; }

/* 2. Layout & type -------------------------------------------------------- */
.mx-container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mx-section { padding-block: var(--section); position: relative; }
.mx-section--soft { background: var(--soft); }
.mx-section--dark { background: var(--ink); color: #d9dae2; }
.mx-section--tight { padding-block: clamp(56px, 6vw, 88px); }
.mx-section--flush-top { padding-top: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -.025em;
	margin: 0 0 .6em;
	font-weight: 600;
}
.mx-section--dark :is(h1, h2, h3, h4), .mx-cta :is(h2, h3) { color: #fff; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

.mx-title {
	font-size: clamp(2rem, 3.7vw, 3.15rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.035em;
	margin-bottom: .55em;
	text-wrap: balance;
}
/* Accent words: solid brand red, no gradient text. */
.mx-title span, .mx-hero__title span, .mx-footer__big span, .mx-cta h2 span { color: var(--red); }
.mx-section--dark .mx-title span, .mx-hero__title span, .mx-footer__big span { color: #ff3b3b; }

.mx-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-head);
	font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--red);
	margin: 0 0 16px;
}
.mx-eyebrow::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.mx-eyebrow--light { color: #ff5a5a; }
.mx-section--dark .mx-eyebrow { color: #ff5a5a; }

.mx-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 680px; }
.mx-section--dark .mx-lead { color: #a9abb8; }
.mx-text { color: var(--muted); }
.mx-section--dark .mx-text { color: #a9abb8; }

.mx-head { margin-bottom: clamp(40px, 5vw, 64px); }
.mx-head--center { text-align: center; }
.mx-head--center .mx-lead { margin-inline: auto; }
.mx-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.mx-head--split > :first-child { flex: 1 1 520px; }
.mx-head--split .mx-title { margin-bottom: 0; }
.mx-head--split .mx-lead { flex: 1 1 340px; margin: 0; }

.mx-split {
	display: grid; grid-template-columns: 1fr 1fr; align-items: center;
	gap: clamp(40px, 6vw, 96px);
}
.mx-split--reverse > .mx-split__media { order: 2; }
.mx-split--top { align-items: start; }
.mx-split__body > :last-child { margin-bottom: 0; }

.mx-grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.mx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mx-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.mx-center { text-align: center; }
.mx-center .mx-actions { justify-content: center; }

/* 3. Buttons -------------------------------------------------------------- */
.mx-btn {
	--btn-bg: var(--red); --btn-fg: #fff; --btn-icon-bg: rgba(255, 255, 255, .18);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; gap: 14px;
	padding: 6px 6px 6px 22px; min-height: 50px;
	font-family: var(--font-head); font-size: .92rem; font-weight: 600; letter-spacing: 0;
	color: var(--btn-fg); background: var(--btn-bg);
	border: 1.5px solid transparent; border-radius: 100px;
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s, border-color .35s, background .35s;
	white-space: nowrap;
}
.mx-btn::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: var(--ink); border-radius: inherit;
	transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
.mx-btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 12px 30px -14px rgba(213, 0, 0, .55); }
.mx-btn:hover::before { transform: none; }
.mx-btn__icon {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: var(--btn-icon-bg); font-style: normal;
	transition: transform .45s var(--ease-out), background .35s;
}
.mx-btn__icon .mx-icon { width: 18px; height: 18px; }
.mx-btn:hover .mx-btn__icon { transform: rotate(-45deg); }
.mx-btn--ghost { --btn-bg: transparent; --btn-icon-bg: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.mx-btn--ghost::before { background: #fff; }
.mx-btn--ghost:hover { --btn-fg: var(--ink); --btn-icon-bg: var(--red); box-shadow: none; }
.mx-btn--ghost:hover .mx-btn__icon { color: #fff; }
.mx-btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-icon-bg: var(--red); }
.mx-btn--light .mx-btn__icon { color: #fff; }
.mx-btn--light::before { background: var(--ink); }
.mx-btn--light:hover { --btn-fg: #fff; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); }
.mx-btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-icon-bg: var(--red); border-color: var(--line); }
.mx-btn--outline .mx-btn__icon { color: #fff; }
.mx-btn--outline:hover { --btn-fg: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.mx-btn--dark { --btn-bg: var(--ink); --btn-icon-bg: var(--red); }
.mx-btn--dark::before { background: var(--red); }
.mx-btn--sm { min-height: 46px; padding: 5px 5px 5px 20px; font-size: .88rem; gap: 10px; }
.mx-btn--sm .mx-btn__icon { width: 34px; height: 34px; }
.mx-btn--block { width: 100%; justify-content: space-between; }

.mx-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--red);
}
.mx-link .mx-icon { width: 18px; transition: transform .3s var(--ease-out); }
.mx-link:hover .mx-icon { transform: translateX(5px); }

/* 4. Header & navigation -------------------------------------------------- */
.mx-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	color: var(--ink); background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 rgba(12, 12, 17, .06);
	transition: background .4s, box-shadow .4s, transform .45s var(--ease-out), height .35s var(--ease-out), color .4s;
}
body.has-hero .mx-header:not(.is-scrolled) {
	background: transparent; box-shadow: none; color: #fff;
	backdrop-filter: none; -webkit-backdrop-filter: none;
}
.mx-header.is-scrolled { --header-h: 72px; box-shadow: 0 10px 40px -20px rgba(12, 12, 17, .3); }
.mx-header.is-hidden { transform: translateY(-100%); }
body:not(.has-hero) .mx-main { padding-top: var(--header-h); }
.admin-bar .mx-header { top: 32px; }

.mx-header__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.mx-header__brand { position: relative; display: block; flex: none; margin-right: auto; }
.mx-header__brand .mx-logo { height: 44px; width: auto; transition: opacity .35s, height .35s; }
.mx-header.is-scrolled .mx-header__brand .mx-logo { height: 38px; }
.mx-header__logo-dark { position: absolute; inset: 0; }
.mx-header .mx-header__logo-light { opacity: 0; }
body.has-hero .mx-header:not(.is-scrolled) .mx-header__logo-light { opacity: 1; }
body.has-hero .mx-header:not(.is-scrolled) .mx-header__logo-dark { opacity: 0; }

.mx-header__actions { display: flex; align-items: center; gap: 12px; }

.mx-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.mx-nav__item { position: relative; display: flex; align-items: center; }
.mx-nav__link {
	position: relative; display: block; padding: 10px 14px;
	font-family: var(--font-head); font-size: .93rem; font-weight: 500;
}
.mx-nav__link::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: right;
	transition: transform .4s var(--ease-out);
}
.mx-nav__item:hover > .mx-nav__link::after, .mx-nav__item.is-current > .mx-nav__link::after { transform: scaleX(1); transform-origin: left; }
.mx-nav__link:hover, .mx-nav__item.is-current > .mx-nav__link { color: inherit; }
.mx-nav__item.has-mega > .mx-nav__link { padding-right: 4px; }
.mx-nav__toggle {
	display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
	background: none; border: 0; border-radius: 6px;
}
.mx-nav__toggle .mx-icon { width: 16px; height: 16px; transition: transform .3s; }
.mx-nav__item.is-open .mx-nav__toggle .mx-icon { transform: rotate(180deg); }
.mx-nav__panel-foot { display: none; }

/* Mega panel (desktop) */
@media (min-width: 1101px) {
	.mx-nav { position: static; }
	.mx-header__bar { position: relative; }
	.mx-nav__item.has-mega { position: static; }
	.mx-mega {
		position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 6px);
		padding-top: 14px;
		opacity: 0; visibility: hidden; transform: translateY(12px);
		transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility .3s;
		color: var(--text);
	}
	.mx-nav__item.has-mega:hover .mx-mega,
	.mx-nav__item.has-mega:focus-within .mx-mega,
	.mx-nav__item.has-mega.is-open .mx-mega { opacity: 1; visibility: visible; transform: none; }
	.mx-nav__item.has-mega:hover .mx-nav__toggle .mx-icon { transform: rotate(180deg); }
	.mx-mega__inner {
		display: grid; grid-template-columns: 1fr 320px; gap: 8px;
		background: #fff; border-radius: var(--radius-lg); padding: 14px;
		box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	}
	.mx-mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; list-style: none; padding: 10px; }
}
.mx-mega__link {
	display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 14px;
	transition: background .25s;
}
.mx-mega__link:hover, .mx-mega__item.is-current .mx-mega__link { background: var(--soft); color: inherit; }
.mx-mega__icon {
	display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px;
	background: var(--red-soft); color: var(--red); transition: background .3s, color .3s, transform .4s var(--ease-out);
}
.mx-mega__link:hover .mx-mega__icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.mx-mega__label { display: flex; flex-direction: column; gap: 2px; }
.mx-mega__label strong { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.mx-mega__label small { font-size: .82rem; line-height: 1.45; color: var(--muted); }
.mx-mega__promo {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
	padding: 28px; border-radius: 20px; color: #fff;
	background: radial-gradient(120% 90% at 100% 0%, #ff3434 0%, var(--red) 40%, #7a0000 100%);
}
.mx-mega__promo::after {
	content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px;
	border: 32px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.mx-mega__promo-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-bottom: 10px; font-weight: 600; }
.mx-mega__promo-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.mx-mega__promo-text { font-size: .9rem; opacity: .85; line-height: 1.55; margin-bottom: 22px; }
.mx-mega__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .88rem; font-weight: 600; color: #fff; opacity: .9; }
.mx-mega__all:hover { color: #fff; opacity: 1; }
.mx-mega__all .mx-icon { width: 16px; }

/* Burger */
.mx-burger {
	display: none; position: relative; width: 48px; height: 48px; padding: 0;
	border: 1.5px solid currentColor; border-radius: 50%; background: transparent; opacity: .95;
}
.mx-burger i {
	position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .35s var(--ease-out), opacity .2s, top .35s var(--ease-out);
}
.mx-burger i:nth-of-type(1) { top: 16px; }
.mx-burger i:nth-of-type(2) { top: 22.5px; right: 20px; }
.mx-burger i:nth-of-type(3) { top: 29px; }
.mx-burger[aria-expanded="true"] i:nth-of-type(1) { top: 22.5px; transform: rotate(45deg); }
.mx-burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.mx-burger[aria-expanded="true"] i:nth-of-type(3) { top: 22.5px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
	:root { --header-h: 74px; }
	.mx-burger { display: block; position: relative; z-index: 2; }
	.mx-header__cta { display: none; }
	body.nav-open .mx-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
	body.nav-open .mx-header__logo-light { opacity: 1 !important; }
	body.nav-open .mx-header__logo-dark { opacity: 0 !important; }
	.mx-header__brand { z-index: 2; }
	.mx-nav {
		position: fixed; inset: 0; z-index: 1;
		display: flex; flex-direction: column;
		padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
		background: radial-gradient(90% 60% at 100% 0%, rgba(213, 0, 0, .35), transparent 60%), var(--ink);
		color: #fff; overflow-y: auto;
		clip-path: circle(0 at calc(100% - 44px) 37px);
		visibility: hidden;
		transition: clip-path .7s var(--ease-out), visibility 0s .7s;
	}
	body.nav-open .mx-nav { clip-path: circle(150% at calc(100% - 44px) 37px); visibility: visible; transition: clip-path .8s var(--ease-out); }
	.mx-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.mx-nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.mx-nav__link { flex: 1; padding: 16px 0; font-size: clamp(1.35rem, 5vw, 1.8rem); font-weight: 600; }
	.mx-nav__link::after { display: none; }
	.mx-nav__item.is-current > .mx-nav__link { color: #ff4d4d; }
	.mx-nav__toggle { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
	.mx-mega { flex-basis: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
	.mx-nav__item.is-open .mx-mega { grid-template-rows: 1fr; }
	.mx-mega__inner { overflow: hidden; }
	.mx-mega__grid { list-style: none; padding-bottom: 14px; }
	.mx-mega__link { padding: 10px 0; }
	.mx-mega__link:hover { background: none; }
	.mx-mega__icon { width: 40px; height: 40px; background: rgba(255, 255, 255, .06); color: #ff5a5a; }
	.mx-mega__label strong { color: #fff; }
	.mx-mega__label small { display: none; }
	.mx-mega__promo { display: none; }
	.mx-nav__panel-foot { display: block; margin-top: auto; padding-top: 36px; }
	.mx-nav__panel-foot p { margin: 18px 0 0; color: #a9abb8; }
	.mx-nav__panel-foot a:not(.mx-btn) { color: #fff; }
	.mx-nav__item, .mx-nav__panel-foot { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease-out); }
	body.nav-open .mx-nav__item, body.nav-open .mx-nav__panel-foot { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .05s); }
}

/* 5. Heroes --------------------------------------------------------------- */
.mx-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: flex-end;
	min-height: clamp(520px, 78vh, 760px);
	padding: calc(var(--header-h) + 60px) 0 clamp(64px, 8vw, 110px);
	background: var(--ink); color: #e3e4ea;
}
.mx-hero__media { position: absolute; inset: 0; z-index: -3; }
.mx-hero__img, .mx-hero__video { width: 100%; height: 100%; object-fit: cover; }
.mx-hero__img { animation: mx-kenburns 18s var(--ease) both; }
.mx-hero__video { position: absolute; inset: 0; }
@keyframes mx-kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.mx-hero__shade {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(70% 90% at 0% 100%, rgba(213, 0, 0, .38), transparent 60%),
		linear-gradient(180deg, rgba(12, 12, 17, .7) 0%, rgba(12, 12, 17, .55) 40%, rgba(12, 12, 17, .92) 100%),
		linear-gradient(90deg, rgba(12, 12, 17, .85) 0%, rgba(12, 12, 17, .25) 75%);
}
.mx-hero__lines { display: none; position: absolute; inset: 0; z-index: -1; justify-content: space-evenly; pointer-events: none; }
.mx-hero__lines i { width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .07) 30%, rgba(255, 255, 255, .07) 70%, transparent); position: relative; overflow: hidden; }
.mx-hero__lines i::after {
	content: ''; position: absolute; left: 0; top: -30%; width: 1px; height: 30%;
	background: linear-gradient(180deg, transparent, rgba(255, 60, 60, .8), transparent);
	animation: mx-drip 7s linear infinite;
}
.mx-hero__lines i:nth-child(2)::after { animation-delay: 2.2s; }
.mx-hero__lines i:nth-child(3)::after { animation-delay: 4.1s; }
.mx-hero__lines i:nth-child(4)::after { animation-delay: 1.3s; }
@keyframes mx-drip { to { top: 130%; } }
.mx-hero__inner { position: relative; }
.mx-hero__title {
	font-size: clamp(2.2rem, 4.8vw, 4rem); font-weight: 600; color: #fff;
	line-height: 1.06; letter-spacing: -.04em; max-width: 960px; margin-bottom: 22px; text-wrap: balance;
}
.mx-hero__text { font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 680px; color: #c9cad4; margin: 0; }
.mx-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.mx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; margin-bottom: 28px; font-size: .84rem; color: #a9abb8; }
.mx-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.mx-crumbs li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.mx-crumbs a { color: #e3e4ea; }
.mx-crumbs a:hover { color: #ff5a5a; }
.mx-crumbs [aria-current] { color: #a9abb8; }

.mx-hero__scroll {
	position: absolute; right: var(--gutter); bottom: 34px; z-index: 2;
	width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 20px;
}
.mx-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: #fff; animation: mx-scroll 1.8s var(--ease) infinite; }
@keyframes mx-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Home hero */
.mx-hero--home { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(36px, 4vw, 56px); }
.mx-hero--home .mx-hero__shade {
	background:
		radial-gradient(60% 70% at 85% 20%, rgba(213, 0, 0, .35), transparent 60%),
		linear-gradient(180deg, rgba(12, 12, 17, .55) 0%, rgba(12, 12, 17, .45) 45%, rgba(12, 12, 17, .95) 100%),
		linear-gradient(90deg, rgba(12, 12, 17, .8) 0%, rgba(12, 12, 17, .15) 80%);
}
.mx-hero__title--xl { font-size: clamp(2.8rem, 6.6vw, 6.1rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; margin-bottom: 26px; max-width: none; }
.mx-hero__badge {
	display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
	padding: 8px 18px 8px 12px; border-radius: 100px;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: #fff;
}
.mx-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.mx-pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--red); animation: mx-ping 2s var(--ease) infinite; }
@keyframes mx-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.mx-hero__bottom { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.mx-hero__lead { font-family: var(--font-head); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -.015em; color: #fff; line-height: 1.35; margin-bottom: 14px; max-width: 560px; }
.mx-hero--home .mx-hero__text { font-size: 1.02rem; max-width: 560px; }
.mx-hero__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.mx-hero__orb--a { width: 420px; height: 420px; right: -120px; top: 10%; background: var(--red); animation: mx-float 14s ease-in-out infinite alternate; }
.mx-hero__orb--b { width: 300px; height: 300px; left: 30%; bottom: -160px; background: #ff4d4d; opacity: .3; animation: mx-float 18s ease-in-out infinite alternate-reverse; }
@keyframes mx-float { to { transform: translate3d(-60px, 50px, 0) scale(1.15); } }
.mx-hero__side {
	position: absolute; left: 22px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
	display: flex; align-items: center; gap: 14px; margin: 0;
	font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.mx-hero__side i { width: 1px; height: 26px; background: rgba(255, 255, 255, .3); }

/* Stats */
.mx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.mx-stat__value {
	display: flex; align-items: baseline; margin: 0;
	font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -.04em; color: var(--ink);
}
.mx-stat__suffix { color: var(--red); margin-left: 2px; }
.mx-stat__label { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.mx-stats--glass {
	grid-template-columns: repeat(2, 1fr); border-radius: var(--radius); overflow: hidden;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mx-stats--glass .mx-stat { padding: 24px 26px; background: rgba(12, 12, 17, .4); }
.mx-stats--glass .mx-stat__value { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.mx-stats--glass .mx-stat__label { color: #b9bbc7; font-size: .85rem; }
.mx-stats--band { background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mx-stats--band .mx-stat { background: #fff; padding: clamp(28px, 3vw, 44px); text-align: center; }
.mx-stats--band .mx-stat__value { justify-content: center; }
.mx-stats--dark { background: rgba(255, 255, 255, .08); border-radius: var(--radius-lg); overflow: hidden; }
.mx-stats--dark .mx-stat { background: var(--ink-2); padding: clamp(28px, 3vw, 44px); text-align: center; }
.mx-stats--dark .mx-stat__value { color: #fff; justify-content: center; }
.mx-stats--dark .mx-stat__label { color: #a9abb8; }
.mx-stats--plain { gap: 24px; }
.mx-stats--plain .mx-stat { padding-left: 18px; border-left: 2px solid var(--red); }
.mx-stats--plain .mx-stat__value { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }

/* 6. Sections & components ------------------------------------------------ */

/* Client logo marquee */
.mx-clients { padding-block: clamp(44px, 5vw, 64px); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.mx-clients__label { text-align: center; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.mx-marquee { position: relative; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mx-marquee__track { display: flex; align-items: center; flex: none; gap: clamp(36px, 5vw, 72px); padding-right: clamp(36px, 5vw, 72px); animation: mx-marquee var(--speed, 50s) linear infinite; }
.mx-marquee--reverse .mx-marquee__track { animation-direction: reverse; }
.mx-marquee:hover .mx-marquee__track { animation-play-state: paused; }
@keyframes mx-marquee { to { transform: translateX(-100%); } }
.mx-clients img { height: 58px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s, transform .4s var(--ease-out); }
.mx-clients img:hover { filter: none; opacity: 1; transform: scale(1.06); }
.mx-clients .mx-marquee + .mx-marquee { margin-top: 26px; }

/* Media frames */
.mx-media { position: relative; }
.mx-media__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.mx-media__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; transition: transform 1.2s var(--ease-out); }
.mx-media:hover .mx-media__frame img { transform: scale(1.04); }
.mx-media--tall .mx-media__frame img { aspect-ratio: 4 / 5; }
.mx-media--wide .mx-media__frame img { aspect-ratio: 16 / 11; }
.mx-media__accent { position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; right: -24px; bottom: -24px; border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, var(--red) 0 2px, transparent 2px 12px); opacity: .35; }
.mx-media--left .mx-media__accent { right: auto; left: -24px; }
.mx-media__small { position: absolute; left: -34px; bottom: -40px; width: 46%; border-radius: var(--radius); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.mx-media__small img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.mx-badge {
	position: absolute; right: 28px; top: 28px; z-index: 2;
	display: flex; align-items: center; gap: 14px; padding: 18px 22px;
	background: var(--red); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-red);
	animation: mx-bob 5s ease-in-out infinite;
}
.mx-badge--bottom { top: auto; bottom: 28px; }
.mx-badge--left { right: auto; left: 28px; }
.mx-badge--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.mx-badge__num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.mx-badge--light .mx-badge__num { color: var(--red); }
.mx-badge__text { font-size: .82rem; font-weight: 500; line-height: 1.3; }
@keyframes mx-bob { 50% { transform: translateY(-10px); } }
.mx-ring {
	position: absolute; left: -46px; top: 40px; z-index: 2; width: 132px; height: 132px; border-radius: 50%;
	background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.mx-ring svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: mx-spin 22s linear infinite; }
.mx-ring text { font-family: var(--font-head); font-size: 10.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; fill: var(--ink); }
.mx-ring__core { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--red); letter-spacing: -.04em; }
@keyframes mx-spin { to { transform: rotate(360deg); } }

/* Feature list (icon + title + text) */
.mx-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 30px; margin: 34px 0 6px; }
.mx-features--one { grid-template-columns: 1fr; gap: 14px; }
.mx-feature { display: flex; gap: 16px; align-items: flex-start; }
.mx-feature__icon {
	display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px;
	background: var(--red-soft); color: var(--red); transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.mx-feature:hover .mx-feature__icon { background: var(--red); color: #fff; transform: rotate(-8deg); }
.mx-feature h3 { font-size: 1.02rem; margin: 2px 0 6px; }
.mx-feature p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.6; }
.mx-features--cards .mx-feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.mx-features--cards .mx-feature:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }

.mx-features--3 { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.mx-features--cards .mx-feature--cta {
	position: relative; overflow: hidden; color: #fff; border-color: transparent;
	background: radial-gradient(120% 120% at 100% 0, #ff3434, var(--red) 45%, #7a0000);
}
.mx-feature--cta h3 { color: #fff; }
.mx-feature--cta p { color: rgba(255, 255, 255, .85); margin-bottom: 20px; }
.mx-feature--cta::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .08); pointer-events: none; }
.mx-ring__mark { width: 46px; height: auto; }
.mx-process-head { align-items: end; margin-bottom: clamp(48px, 6vw, 76px); }
.mx-process-head .mx-title { margin-bottom: 0; }
.mx-mt { margin-top: 20px; }
.mx-checklist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; margin: 26px 0 0; }
.mx-checklist li { position: relative; padding-left: 32px; font-size: .97rem; font-weight: 500; color: var(--text); }
.mx-checklist li::before {
	content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Service cards (home) */
.mx-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mx-svc-card {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; padding: 34px 28px 30px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s, color .4s;
}
.mx-svc-card::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(120% 80% at 100% 0%, #ff3b3b, var(--red) 45%, #8c0000);
	clip-path: circle(0 at 100% 0); transition: clip-path .7s var(--ease-out);
}
.mx-svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-red); border-color: transparent; color: #fff; }
.mx-svc-card:hover::before { clip-path: circle(150% at 100% 0); }
.mx-svc-card__num { position: absolute; right: 26px; top: 24px; font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--muted-light); letter-spacing: .05em; transition: color .4s; }
.mx-svc-card__icon {
	display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border-radius: 18px;
	background: var(--red-soft); color: var(--red); transition: background .4s, color .4s, transform .5s var(--ease-out);
}
.mx-svc-card__icon .mx-icon { width: 28px; height: 28px; }
.mx-svc-card h3 { font-size: 1.22rem; margin-bottom: 12px; transition: color .4s; }
.mx-svc-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.mx-svc-card h3 a:hover { color: inherit; }
.mx-svc-card p { font-size: .94rem; color: var(--muted); margin-bottom: 20px; transition: color .4s; }
.mx-svc-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.mx-svc-card li { position: relative; padding-left: 18px; font-size: .88rem; color: var(--text); transition: color .4s; }
.mx-svc-card li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 2px; background: var(--red); transition: background .4s; }
.mx-svc-card .mx-link { margin-top: auto; transition: color .4s; }
.mx-svc-card:hover :is(h3, p, li, .mx-link, .mx-svc-card__num) { color: #fff; }
.mx-svc-card:hover li::before { background: #fff; }
.mx-svc-card:hover .mx-svc-card__icon { background: rgba(255, 255, 255, .16); color: #fff; transform: rotate(-8deg) scale(1.05); }
.mx-svc-card:hover .mx-link .mx-icon { transform: translateX(5px); }

/* Big red ticker */
.mx-ticker { background: var(--red); color: #fff; padding-block: clamp(22px, 3vw, 34px); overflow: hidden; transform: rotate(-1.5deg); margin-block: -18px; position: relative; z-index: 3; box-shadow: 0 20px 60px -25px rgba(213, 0, 0, .7); }
.mx-ticker .mx-marquee { -webkit-mask-image: none; mask-image: none; }
.mx-ticker .mx-marquee__track { gap: 0; padding: 0; --speed: 38s; }
.mx-ticker__item { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 40px); padding-right: clamp(22px, 3vw, 40px); font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -.03em; white-space: nowrap; }
.mx-ticker__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.mx-ticker__item::after { content: ''; width: .5em; height: .5em; background: currentColor; -webkit-text-stroke: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); background-color: #fff; }

/* Why-us numbered list */
.mx-why { counter-reset: why; display: flex; flex-direction: column; margin-top: 30px; }
.mx-why__item { counter-increment: why; position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.mx-why__item:last-child { border-bottom: 1px solid var(--line); }
.mx-why__item::before { content: counter(why, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--red); padding-top: 4px; }
.mx-why__item::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); transition: width .6s var(--ease-out); }
.mx-why__item:hover::after { width: 100%; }
.mx-why__item h3 { font-size: 1.1rem; margin: 0 0 4px; grid-column: 2; }
.mx-why__item p { grid-column: 2; margin: 0; color: var(--muted); font-size: .95rem; }
.mx-sticky { position: sticky; top: 110px; }

/* Industries */
.mx-industries-wrap { position: relative; isolation: isolate; overflow: hidden; }
.mx-bg { position: absolute; inset: 0; z-index: -2; }
.mx-bg img { width: 100%; height: 115%; object-fit: cover; opacity: .38; }
.mx-industries-wrap::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 100% 100%, rgba(213, 0, 0, .3), transparent 60%), linear-gradient(180deg, var(--ink) 0%, rgba(12, 12, 17, .7) 50%, var(--ink) 100%); }
.mx-industries { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-lg); overflow: hidden; }
.mx-industry {
	position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 24px;
	background: rgba(12, 12, 17, .72); color: #e3e4ea; font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin: 0;
	transition: background .4s, color .4s;
}
.mx-industry .mx-icon { width: 26px; height: 26px; color: #ff4d4d; transition: transform .5s var(--ease-out), color .4s; }
.mx-industry:hover { background: var(--red); color: #fff; }
.mx-industry:hover .mx-icon { color: #fff; transform: scale(1.15) rotate(-8deg); }

/* Work cards */
.mx-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.mx-work-card { position: relative; display: flex; flex-direction: column; }
.mx-work-card__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; margin-bottom: 22px; }
.mx-work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.mx-work-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12, 12, 17, .55)); opacity: 0; transition: opacity .5s; }
.mx-work-card:hover .mx-work-card__media img { transform: scale(1.07); }
.mx-work-card:hover .mx-work-card__media::after { opacity: 1; }
.mx-work-card__tag {
	position: absolute; left: 18px; top: 18px; z-index: 1; padding: 6px 14px; border-radius: 100px;
	background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
	backdrop-filter: blur(6px);
}
.mx-work-card__go {
	position: absolute; right: 18px; bottom: 18px; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--red); color: #fff; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-out);
}
.mx-work-card:hover .mx-work-card__go { transform: none; }
.mx-work-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.mx-work-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.mx-work-card a.mx-stretch::after { content: ''; position: absolute; inset: 0; z-index: 2; }

/* Tech stack */
.mx-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mx-tech-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .4s var(--ease-out), box-shadow .4s; }
.mx-tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mx-tech-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mx-tech-card__head span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; }
.mx-tech-card h3 { margin: 0; font-size: 1.12rem; }
.mx-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.mx-pill { padding: 7px 14px; border-radius: 100px; background: var(--soft); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--text); transition: background .3s, color .3s, border-color .3s; }
.mx-pill:hover { background: var(--red); border-color: var(--red); color: #fff; }
.mx-section--dark .mx-pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #e3e4ea; }

/* Testimonials */
.mx-testimonials { position: relative; }
.mx-tslider { position: relative; display: grid; }
.mx-tslide {
	grid-area: 1 / 1; display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
	opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility .6s;
}
.mx-tslide.is-active { opacity: 1; visibility: visible; transform: none; }
.mx-tslide__author { text-align: center; }
.mx-avatar {
	display: grid; place-items: center; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%;
	font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: -.03em;
	background: radial-gradient(120% 120% at 0 0, #ff4040, var(--red) 50%, #6e0000);
	box-shadow: 0 0 0 10px #fff, 0 0 0 11px var(--line), var(--shadow);
}
.mx-avatar--dark { background: radial-gradient(120% 120% at 0 0, #4a4a58, var(--ink)); }
.mx-tslide__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0; }
.mx-tslide__role { font-size: .86rem; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }
.mx-tslide blockquote { position: relative; margin: 0; }
.mx-tslide blockquote::before { content: '\201C'; position: absolute; left: -10px; top: -70px; font-family: Georgia, serif; font-size: 10rem; line-height: 1; color: var(--red); opacity: .14; }
.mx-tslide blockquote p { font-family: var(--font-head); font-size: clamp(1.02rem, 1.35vw, 1.2rem); font-weight: 500; line-height: 1.7; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.mx-stars { display: flex; gap: 4px; margin-bottom: 18px; color: #ffb400; }
.mx-stars .mx-icon { width: 20px; height: 20px; fill: currentColor; }
.mx-tnav { display: flex; align-items: center; gap: 12px; margin-top: 46px; justify-content: flex-end; }
.mx-tnav button { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; transition: background .3s, border-color .3s, color .3s; }
.mx-tnav button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.mx-tdots { display: flex; gap: 8px; margin-right: auto; }
.mx-tdots button { width: 10px; height: 10px; padding: 0; border-radius: 10px; border: 0; background: var(--line); transition: width .4s var(--ease-out), background .3s; }
.mx-tdots button[aria-current="true"] { width: 34px; background: var(--red); }

/* CTA block */
.mx-cta-wrap { padding-block: var(--section); }
.mx-cta {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 90px);
	border-radius: clamp(24px, 3vw, 40px); color: #fff;
	background: radial-gradient(90% 120% at 100% 0%, #ff3030 0%, var(--red) 45%, #730000 100%);
	display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px 60px; align-items: center;
}
.mx-cta__bg { position: absolute; inset: 0; z-index: -1; }
.mx-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .14; mix-blend-mode: luminosity; }
.mx-cta::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .07); }
.mx-cta::after { content: ''; position: absolute; z-index: -1; width: 260px; height: 260px; left: 38%; bottom: -170px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.mx-cta h2 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -.04em; margin-bottom: 18px; }
.mx-cta h2 span { background: none; -webkit-text-fill-color: currentColor; color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.mx-cta p { font-size: 1.1rem; color: rgba(255, 255, 255, .86); margin: 0; max-width: 620px; }
.mx-cta .mx-actions { margin: 0; flex-direction: column; align-items: flex-end; }
.mx-cta .mx-btn--light:hover { --btn-fg: #fff; }

/* Mini strip */
.mx-strip { background: var(--ink); color: #fff; }
.mx-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-block: clamp(36px, 4vw, 52px); }
.mx-strip h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 6px; }
.mx-strip p { color: #a9abb8; margin: 0; }

/* Process steps */
.mx-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; list-style: none; position: relative; }
.mx-steps::before { content: ''; position: absolute; left: 0; right: 0; top: 33px; height: 1px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px); }
.mx-step { position: relative; }
.mx-step__num {
	position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 24px; border-radius: 50%;
	background: var(--ink-3); border: 1px solid rgba(255, 255, 255, .14);
	font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff;
	transition: background .4s, transform .5s var(--ease-out), box-shadow .4s;
}
.mx-step:hover .mx-step__num { background: var(--red); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(213, 0, 0, .18); }
.mx-step h3 { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.mx-step p { font-size: .92rem; color: #a9abb8; margin: 0; }
.mx-section:not(.mx-section--dark) .mx-steps::before { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.mx-section:not(.mx-section--dark) .mx-step__num { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.mx-section:not(.mx-section--dark) .mx-step:hover .mx-step__num { color: #fff; }
.mx-section:not(.mx-section--dark) .mx-step h3 { color: var(--ink); }
.mx-section:not(.mx-section--dark) .mx-step p { color: var(--muted); }
.mx-steps--4 { grid-template-columns: repeat(4, 1fr); }

.mx-quote {
	position: relative; margin: 28px 0 0; padding: 26px 30px 26px 34px;
	border-left: 3px solid var(--red); background: rgba(213, 0, 0, .05); border-radius: 0 var(--radius) var(--radius) 0;
}
.mx-quote p { margin: 0; font-family: var(--font-head); font-size: 1.08rem; font-weight: 500; font-style: italic; line-height: 1.6; color: var(--ink); }
.mx-section--dark .mx-quote { background: rgba(255, 255, 255, .04); }
.mx-section--dark .mx-quote p { color: #fff; }

/* Results */
.mx-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.mx-result { padding: 22px 20px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.mx-result__value { margin: 0; font-family: var(--font-head); font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--red); }
.mx-result__label { margin: 8px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* Related services */
.mx-related { background: var(--soft); }
.mx-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mx-related__card {
	position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.mx-related__card:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mx-related__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; background: var(--red-soft); color: var(--red); transition: background .3s, color .3s; }
.mx-related__card:hover .mx-related__icon { background: var(--red); color: #fff; }
.mx-related__card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.mx-related__card p { font-size: .9rem; color: var(--muted); margin: 0; }
.mx-related__arrow { position: absolute; right: 24px; top: 28px; color: var(--muted-light); transition: color .3s, transform .4s var(--ease-out); }
.mx-related__card:hover .mx-related__arrow { color: var(--red); transform: translate(3px, -3px); }

/* FAQ accordion (native <details>) */
.mx-faq .mx-split { grid-template-columns: .8fr 1.2fr; }
.mx-faq__head { position: sticky; top: 110px; }
.mx-faq__head .mx-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.mx-faq__list { display: flex; flex-direction: column; gap: 12px; }
.mx-faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s, box-shadow .3s; }
.mx-faq__item[open] { border-color: transparent; box-shadow: var(--shadow); }
.mx-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.mx-faq__item summary::-webkit-details-marker { display: none; }
.mx-faq__item summary h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; transition: color .3s; }
.mx-faq__item summary:hover h3, .mx-faq__item[open] summary h3 { color: var(--red); }
.mx-faq__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red-soft); color: var(--red); transition: transform .4s var(--ease-out), background .3s, color .3s; }
.mx-faq__icon .mx-icon { width: 18px; height: 18px; }
.mx-faq__item[open] .mx-faq__icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.mx-faq__answer { padding: 0 26px 24px; }
.mx-faq__answer p { margin: 0; color: var(--muted); font-size: .98rem; }
.mx-section--soft .mx-faq__item, .mx-faq.mx-section--soft .mx-faq__item { background: #fff; }

/* 7. Page-specific blocks ------------------------------------------------- */

/* Services overview blocks */
.mx-svc-block { padding-block: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.mx-svc-block:nth-of-type(even) { background: var(--soft); }
.mx-svc-block__num { font-family: var(--font-head); font-size: clamp(4rem, 8vw, 7rem); font-weight: 700; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line); margin-bottom: 16px; display: block; }
.mx-svc-block:nth-of-type(even) .mx-svc-block__num { -webkit-text-stroke-color: #dcdce5; }
.mx-svc-block .mx-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.mx-svc-block .mx-actions { margin-top: 30px; }

/* About: mission & values */
.mx-mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 22px; }
.mx-mission {
	position: relative; overflow: hidden; padding: clamp(32px, 4vw, 52px); border-radius: var(--radius-lg);
	background: var(--ink); color: #c9cad4;
}
.mx-mission:nth-child(2) { background: radial-gradient(120% 120% at 100% 0, #ff3030, var(--red) 45%, #7a0000); color: rgba(255, 255, 255, .88); }
.mx-mission h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.mx-mission p { margin: 0; font-size: 1.02rem; }
.mx-mission__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 26px; background: rgba(255, 255, 255, .1); color: #fff; }
.mx-mission__icon .mx-icon { width: 28px; height: 28px; }
.mx-mission::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .05); }
.mx-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mx-value { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s; }
.mx-value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mx-value__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; background: var(--red-soft); color: var(--red); }
.mx-value h3 { font-size: 1.12rem; margin-bottom: 8px; }
.mx-value p { margin: 0; font-size: .94rem; color: var(--muted); }

/* About: team */
.mx-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mx-member { text-align: center; padding: 38px 24px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s; }
.mx-member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mx-member .mx-avatar { width: 120px; height: 120px; font-size: 2.1rem; }
.mx-member h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.mx-member p { margin: 0; font-size: .9rem; color: var(--red); font-weight: 500; }

/* Products */
.mx-product { padding-block: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.mx-product:last-of-type { border-bottom: 0; }
.mx-product__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.mx-product--alt .mx-product__brand { order: 2; }
.mx-product--alt .mx-product__grid { grid-template-columns: 1.15fr .85fr; }
.mx-product__brand {
	position: sticky; top: 110px; overflow: hidden; isolation: isolate;
	padding: clamp(30px, 4vw, 48px); border-radius: var(--radius-lg); color: #fff;
	background: var(--ink);
}
.mx-product__brand-bg { position: absolute; inset: 0; z-index: -1; }
.mx-product__brand-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.mx-product__brand::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(12, 12, 17, .3), rgba(12, 12, 17, .95) 70%), radial-gradient(80% 60% at 100% 0, rgba(213, 0, 0, .5), transparent 70%); }
.mx-product__logo { display: flex; align-items: center; width: fit-content; height: 48px; margin-bottom: 70px; }
.mx-product__logo img { height: 42px; width: auto; max-width: 240px; object-fit: contain; }
.mx-product__brandmark { margin: 4px 0 24px; }
.mx-product__brandmark img { height: 52px; width: auto; max-width: 300px; object-fit: contain; }
.mx-product__type { display: inline-block; padding: 6px 14px; border-radius: 100px; background: var(--red); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.mx-product__brand h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; margin-bottom: 12px; }
.mx-product__tagline { font-size: 1.08rem; color: #d1d2da; }
.mx-product__brand .mx-actions { margin-top: 28px; }
.mx-product__desc { font-size: 1.04rem; color: var(--muted); margin-bottom: 34px; }
.mx-product .mx-features { margin-top: 0; }

/* Portfolio gallery */
.mx-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(36px, 4vw, 54px); }
.mx-filter button {
	padding: 11px 22px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff;
	font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--text);
	transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.mx-filter button:hover { border-color: var(--red); color: var(--red); }
.mx-filter button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.mx-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mx-gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; margin: 0; background: var(--soft); transition: opacity .4s, transform .5s var(--ease-out); }
.mx-gallery__item[hidden] { display: none; }
.mx-gallery__item.is-entering { animation: mx-pop .6s var(--ease-out) both; }
@keyframes mx-pop { from { opacity: 0; transform: scale(.94); } }
.mx-gallery__item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.mx-gallery__item button:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.mx-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mx-gallery__item figcaption {
	position: absolute; inset: auto 0 0; padding: 50px 20px 18px; color: #fff; pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(12, 12, 17, .88));
	transform: translateY(30%); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
}
.mx-gallery__item figcaption span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #ff6b6b; font-weight: 600; margin-bottom: 4px; }
.mx-gallery__item figcaption h3 { color: #fff; font-size: 1.05rem; margin: 0; }
.mx-gallery__item:hover img, .mx-gallery__item:focus-within img { transform: scale(1.08); }
.mx-gallery__item:hover figcaption, .mx-gallery__item:focus-within figcaption { transform: none; opacity: 1; }
.mx-gallery__empty { text-align: center; color: var(--muted); }

.mx-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(12, 12, 17, .94); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.mx-lightbox.is-open { opacity: 1; visibility: visible; }
.mx-lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .5s var(--ease-out); }
.mx-lightbox.is-open img { transform: none; }
.mx-lightbox p { color: #fff; text-align: center; margin: 16px 0 0; font-family: var(--font-head); font-weight: 600; }
.mx-lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; }
.mx-lightbox button:hover { background: var(--red); border-color: var(--red); }
.mx-lightbox [data-lb-close] { top: 22px; right: 22px; }
.mx-lightbox [data-lb-prev] { left: 22px; top: 50%; margin-top: -26px; }
.mx-lightbox [data-lb-next] { right: 22px; top: 50%; margin-top: -26px; }

/* Case studies */
.mx-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px) clamp(18px, 2vw, 28px); }
.mx-cases .mx-work-card[hidden] { display: none; }

/* Contact */
.mx-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mx-office {
	position: relative; overflow: hidden; padding: 36px 32px; border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s;
}
.mx-office:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mx-office::before { content: attr(data-code); position: absolute; right: 18px; top: 4px; font-family: var(--font-head); font-size: 5.5rem; font-weight: 700; letter-spacing: -.05em; color: var(--soft); line-height: 1; z-index: 0; }
.mx-office > * { position: relative; }
.mx-office__label { display: inline-block; padding: 5px 12px; border-radius: 100px; background: var(--red-soft); color: var(--red); font-size: .76rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.mx-office h3 { font-size: 1.35rem; margin-bottom: 14px; }
.mx-office address { font-style: normal; color: var(--muted); margin-bottom: 20px; font-size: .96rem; }
.mx-office__links { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.mx-office__links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; }
.mx-office__links .mx-icon { width: 17px; height: 17px; color: var(--red); }

.mx-contact { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.mx-contact__form { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mx-contact__aside { position: sticky; top: 110px; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: #c9cad4; overflow: hidden; isolation: isolate; }
.mx-contact__aside::after { content: ''; position: absolute; z-index: -1; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--red); filter: blur(80px); opacity: .5; }
.mx-contact__aside h3 { color: #fff; font-size: 1.35rem; margin-bottom: 24px; }
.mx-contact__row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mx-contact__row > span { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #ff5a5a; }
.mx-contact__row p { margin: 0 0 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8d8f9c; }
.mx-contact__row a { display: block; color: #fff; font-weight: 500; font-size: .96rem; line-height: 1.6; }
.mx-contact__row a:hover { color: #ff5a5a; }

.mx-contact__follow { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.mx-contact__follow > p { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8d8f9c; }
.mx-contact__follow .mx-social { margin-top: 14px; }

/* 8. Forms ---------------------------------------------------------------- */
.mx-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mx-field { display: flex; flex-direction: column; gap: 8px; }
.mx-field--full { grid-column: 1 / -1; }
.mx-field label { font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--ink); }
.mx-field label span { color: var(--red); }
.mx-field :is(input, select, textarea) {
	width: 100%; padding: 15px 18px; font: inherit; font-size: .98rem; color: var(--text);
	background: var(--soft); border: 1.5px solid transparent; border-radius: 14px;
	transition: border-color .25s, background .25s, box-shadow .25s; appearance: none;
}
.mx-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6271' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 46px; }
.mx-field textarea { resize: vertical; min-height: 150px; }
.mx-field :is(input, select, textarea):hover { border-color: var(--line); }
.mx-field :is(input, select, textarea):focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(213, 0, 0, .1); }
.mx-form.was-validated :is(input, select, textarea):invalid { border-color: var(--red); background: #fff6f6; }
.mx-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mx-form__foot { margin-top: 26px; }
.mx-form__note { margin: 14px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.mx-form__status p { margin: 18px 0 0; padding: 16px 20px; border-radius: 14px; font-weight: 500; }
.mx-form__status .is-success { background: #ecfbf1; color: #11683a; }
.mx-form__status .is-error { background: #fff1f1; color: var(--red-dark); }
.mx-form.is-sending .mx-btn { opacity: .7; pointer-events: none; }

/* 9. Footer --------------------------------------------------------------- */
.mx-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #a9abb8; padding-top: clamp(70px, 8vw, 120px); font-size: .95rem; }
.mx-footer__glow { position: absolute; z-index: -1; left: 50%; top: -340px; width: 900px; height: 500px; margin-left: -450px; border-radius: 50%; background: var(--red); filter: blur(140px); opacity: .25; }
.mx-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px 60px; padding-bottom: clamp(50px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mx-footer__big { flex: 1 1 560px; margin: 0; font-family: var(--font-head); font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; color: #fff; }
.mx-footer__top-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mx-footer__mail { font-family: var(--font-head); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.mx-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.1fr; gap: 40px; padding-block: clamp(50px, 6vw, 76px); }
.mx-footer__brand .mx-logo { height: 46px; width: auto; margin-bottom: 22px; }
.mx-footer__brand p { max-width: 380px; line-height: 1.75; }
.mx-footer__heading { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 22px; }
.mx-footer__links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.mx-footer__links a { position: relative; display: inline-block; transition: color .3s, transform .3s var(--ease-out); }
.mx-footer__links a:hover { color: #fff; transform: translateX(5px); }
.mx-footer__office { margin-bottom: 16px; }
.mx-footer__city { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; color: #fff; font-weight: 500; }
.mx-footer__office a, .mx-footer__email { color: #a9abb8; }
.mx-footer__office a:hover, .mx-footer__email:hover { color: #fff; }
.mx-flag { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.mx-social { display: flex; gap: 10px; list-style: none; margin-top: 24px; }
.mx-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.mx-social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.mx-social .mx-icon { width: 18px; height: 18px; }
.mx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.mx-footer__bottom p { margin: 0; }
.mx-footer__bottom a { color: #fff; }
.mx-footer__meta { display: flex; gap: 24px; }

.mx-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
	background: var(--ink); color: #fff; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .4s, transform .4s var(--ease-out), visibility .4s, background .3s;
}
.mx-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.mx-top:hover { background: var(--red); }
.mx-top svg:not(.mx-icon) { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mx-top circle { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.mx-top:hover circle { stroke: #fff; }
.mx-top__icon { position: relative; margin: auto; width: 20px; height: 20px; transform: rotate(-45deg); }

/* Posts & 404 */
.mx-hero--compact { min-height: 0; padding-top: calc(var(--header-h) + 70px); padding-bottom: 70px; }
.mx-hero--404 { min-height: 100vh; align-items: center; }
.mx-404__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(7rem, 22vw, 16rem); line-height: .85; letter-spacing: -.07em; margin: 0 0 10px; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .25); }
.mx-prose { max-width: 780px; margin-inline: auto; font-size: 1.08rem; }
.mx-prose :is(h2, h3) { margin-top: 1.8em; }
.mx-prose img { border-radius: var(--radius); }
.mx-prose__media { margin: 0 0 40px; }
.mx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mx-post-card__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--soft); margin-bottom: 18px; }
.mx-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mx-post-card:hover .mx-post-card__media img { transform: scale(1.05); }
.mx-post-card__meta { font-size: .85rem; color: var(--red); margin-bottom: 6px; }
.mx-post-card__title { font-size: 1.25rem; }
.mx-pagination { margin-top: 50px; display: flex; justify-content: center; }
.mx-pagination .nav-links { display: flex; gap: 8px; }
.mx-pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); }
.mx-pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* 10. Motion & utilities -------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * .1s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-50px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(50px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.4s var(--ease-out); }
.js [data-reveal="lines"] { transform: translate3d(0, 50px, 0); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
[data-delay="1"] { --d: 1; } [data-delay="2"] { --d: 2; } [data-delay="3"] { --d: 3; } [data-delay="4"] { --d: 4; } [data-delay="5"] { --d: 5; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1200px) {
	.mx-services-grid { grid-template-columns: repeat(2, 1fr); }
	.mx-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
	.mx-steps::before { display: none; }
	.mx-footer__grid { grid-template-columns: 1fr 1fr; }
	.mx-hero__side { display: none; }
}
@media (max-width: 992px) {
	.mx-split, .mx-hero__bottom, .mx-product__grid, .mx-contact, .mx-cta { grid-template-columns: 1fr; }
	.mx-split--reverse > .mx-split__media { order: 0; }
	.mx-product--alt .mx-product__brand { order: 0; }
	.mx-product--alt .mx-product__grid { grid-template-columns: 1fr; }
	.mx-product__brand, .mx-contact__aside, .mx-sticky, .mx-faq__head { position: relative; top: 0; }
	.mx-faq .mx-split { grid-template-columns: 1fr; }
	.mx-grid--4, .mx-team, .mx-industries, .mx-gallery { grid-template-columns: repeat(2, 1fr); }
	.mx-grid--3, .mx-work-grid, .mx-tech-grid, .mx-values, .mx-offices, .mx-cases, .mx-posts, .mx-features--3 { grid-template-columns: repeat(2, 1fr); }
	.mx-tslide { grid-template-columns: 1fr; text-align: left; }
	.mx-tslide__author { display: flex; align-items: center; gap: 18px; text-align: left; order: 2; }
	.mx-avatar { width: 72px; height: 72px; font-size: 1.4rem; margin: 0; box-shadow: none; }
	.mx-cta .mx-actions { align-items: flex-start; flex-direction: row; }
	.mx-media__small { left: auto; right: -10px; }
	.mx-ring { left: -10px; }
	.mx-stats { grid-template-columns: repeat(2, 1fr); }
	.mx-hero__stats { max-width: 520px; }
}
@media (max-width: 680px) {
	body { font-size: 1rem; }
	.mx-services-grid, .mx-grid--2, .mx-grid--3, .mx-grid--4, .mx-work-grid, .mx-tech-grid, .mx-values, .mx-offices, .mx-cases, .mx-posts,
	.mx-mission-grid, .mx-team, .mx-industries, .mx-features, .mx-checklist, .mx-form__grid, .mx-results, .mx-steps, .mx-steps--4, .mx-footer__grid { grid-template-columns: 1fr; }
	.mx-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.mx-gallery__item figcaption { opacity: 1; transform: none; padding: 30px 12px 10px; }
	.mx-gallery__item figcaption h3 { font-size: .88rem; }
	.mx-hero { min-height: 0; padding-top: calc(var(--header-h) + 50px); }
	.mx-hero--home { min-height: 100svh; }
	.mx-hero__scroll { display: none; }
	.mx-hero__btns .mx-btn { flex: 1 1 100%; justify-content: space-between; }
	.mx-stats--glass .mx-stat { padding: 18px; }
	.mx-badge { right: 14px; top: 14px; padding: 12px 16px; }
	.mx-badge__num { font-size: 1.7rem; }
	.mx-ring { width: 100px; height: 100px; top: auto; bottom: -20px; left: 10px; }
	.mx-ring text { font-size: 9px; letter-spacing: 2px; }
	.mx-media__small { display: none; }
	.mx-industry { padding: 20px; }
	.mx-tnav { justify-content: flex-start; }
	.mx-footer__bottom, .mx-footer__meta { flex-direction: column; gap: 6px; }
	.mx-lightbox [data-lb-prev], .mx-lightbox [data-lb-next] { top: auto; bottom: 22px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
	.mx-marquee__track { animation: none; }
}

/* ==========================================================================
   11. v2 components: capsule nav, home showcase sections, technologies page
   ========================================================================== */

/* Glass capsule navigation (desktop) */
@media (min-width: 1101px) {
	.mx-nav__list {
		padding: 5px; border-radius: 100px;
		background: rgba(12, 12, 17, .04); border: 1px solid var(--line);
		transition: background .4s, border-color .4s;
	}
	body.has-hero .mx-header:not(.is-scrolled) .mx-nav__list {
		/* No backdrop-filter here: it would make the list the containing block and trap the mega menu inside it. */
		background: rgba(12, 12, 17, .38); border-color: rgba(255, 255, 255, .14);
	}
	.mx-nav__link { padding: 8px 16px; border-radius: 100px; font-size: .9rem; transition: background .25s, color .25s; }
	.mx-nav__link::after { display: none; }
	.mx-nav__item:hover > .mx-nav__link { background: rgba(12, 12, 17, .06); }
	body.has-hero .mx-header:not(.is-scrolled) .mx-nav__item:hover > .mx-nav__link { background: rgba(255, 255, 255, .1); }
	.mx-nav__item.is-current > .mx-nav__link { color: var(--red); }
	body.has-hero .mx-header:not(.is-scrolled) .mx-nav__item.is-current > .mx-nav__link { color: #fff; background: rgba(255, 255, 255, .12); }
	.mx-nav__item.has-mega > .mx-nav__link { padding-right: 6px; }
	.mx-nav__toggle { margin-right: 6px; }
	.mx-header__bar { justify-content: space-between; }
	.mx-header__brand { margin-right: 0; }
}

/* Home hero */
.mx-hero__copy { max-width: 660px; }
.mx-hero__copy .mx-hero__text { color: #c4c5cf; }
.mx-hero__tabs {
	display: flex; gap: 6px 30px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px);
	padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.mx-hero__tabs a { position: relative; padding: 8px 0; font-size: .88rem; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.mx-hero__tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.mx-hero__tabs a:hover { color: #fff; }
.mx-hero__tabs a:hover::after { transform: scaleX(1); }
.mx-hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.mx-hero__card {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 52px 20px 22px;
	border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(12, 12, 17, .45);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff;
	transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.mx-hero__card:hover { color: #fff; border-color: rgba(255, 59, 59, .6); background: rgba(213, 0, 0, .14); transform: translateY(-3px); }
.mx-hero__card-kicker { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #ff6b6b; font-weight: 600; }
.mx-hero__card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.mx-hero__card-text { font-size: .84rem; line-height: 1.5; color: #b9bbc7; }
.mx-hero__card-arrow { position: absolute; right: 20px; top: 22px; width: 18px; height: 18px; color: #ff6b6b; transition: transform .35s var(--ease-out); }
.mx-hero__card:hover .mx-hero__card-arrow { transform: translateX(4px); }

/* Intro + stat tiles */
.mx-intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.mx-ticks { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; margin: 34px 0 0; }
.mx-ticks li { position: relative; padding-left: 30px; }
.mx-ticks li::before {
	content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d50000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.mx-ticks strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.mx-ticks span { display: block; font-size: .93rem; color: var(--muted); line-height: 1.6; }
.mx-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mx-tile { padding: 26px 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.mx-tile:hover { border-color: transparent; box-shadow: var(--shadow); }
.mx-tile__value { margin: 0; font-family: var(--font-head); font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.mx-tile__value span:last-child { color: var(--red); }
.mx-tile__label { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.mx-intro__photo { margin: 14px 0 0; border-radius: 18px; overflow: hidden; }
.mx-intro__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mx-intro__photo:hover img { transform: scale(1.04); }

/* Client logo wall */
.mx-logos-wrap { padding-block: clamp(48px, 6vw, 80px); border-block: 1px solid var(--line); }
.mx-logos__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; margin-bottom: 30px; }
.mx-logos__head h2 { margin: 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.mx-logos { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mx-logos li { display: grid; place-items: center; height: 116px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.mx-logos li:hover { background: var(--soft); }
.mx-logos img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s; }
.mx-logos li:hover img { filter: none; opacity: 1; }

/* Ambient red glow for dark sections */
.mx-glow { position: absolute; z-index: 0; right: -10%; top: -20%; width: 60%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 0, 0, .35), transparent); filter: blur(30px); pointer-events: none; }
.mx-glow--center { right: auto; left: 20%; top: auto; bottom: -30%; width: 60%; }
.mx-showcase, .mx-products-show, .mx-global { overflow: hidden; isolation: isolate; }
.mx-showcase > .mx-container, .mx-products-show > .mx-container { position: relative; z-index: 1; }

/* Services showcase tabs */
.mx-tabs { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.mx-tabs__list { display: flex; flex-direction: column; gap: 4px; }
.mx-tabs__tab {
	display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; width: 100%;
	padding: 16px 18px; border: 0; border-radius: 14px; background: transparent; text-align: left; color: #a9abb8;
	transition: background .3s, color .3s;
}
.mx-tabs__tab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.mx-tabs__tab.is-active { color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 2px 0 0 var(--red); }
.mx-tabs__num { font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: #ff5a5a; }
.mx-tabs__label { font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.mx-tabs__tab .mx-icon { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease-out); color: #ff5a5a; }
.mx-tabs__tab.is-active .mx-icon { opacity: 1; transform: none; }
.js .mx-tabs__panel:not(.is-active) { display: none; }
.mx-tabs__panel { animation: mx-fade-up .6s var(--ease-out) both; }
@keyframes mx-fade-up { from { opacity: 0; transform: translateY(14px); } }
.mx-tabs__media { position: relative; border-radius: 22px; overflow: hidden; }
.mx-tabs__media img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }
.mx-tabs__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12, 12, 17, .6)); }
.mx-tabs__icon { position: absolute; left: 22px; bottom: 22px; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--red); color: #fff; }
.mx-tabs__body { padding-top: 28px; }
.mx-tabs__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; margin-bottom: 10px; }
.mx-tabs__body p { color: #b9bbc7; font-size: 1.04rem; max-width: 620px; }
.mx-showcase__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* Chips */
.mx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.mx-chips li {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 100px;
	border: 1px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500; color: var(--text);
	transition: border-color .3s, color .3s, background .3s;
}
.mx-chips li .mx-icon { width: 18px; height: 18px; color: var(--red); }
.mx-chips li:hover { border-color: var(--red); color: var(--red); }
.mx-chips--dark li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: #e3e4ea; padding: 8px 16px; font-size: .88rem; }
.mx-chips--dark li:hover { border-color: rgba(255, 90, 90, .6); color: #fff; }
.mx-link--light { color: #fff; }
.mx-link--light .mx-icon { color: #ff5a5a; }
.mx-link--light:hover { color: #ff6b6b; }

/* Why mosaic */
.mx-mosaic { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.mx-mosaic__intro { position: sticky; top: 120px; }
.mx-callout { display: flex; gap: 16px; margin-top: 30px; padding: 22px 24px; border-radius: 0 16px 16px 0; border-left: 2px solid var(--red); background: var(--soft); }
.mx-callout > span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--red); }
.mx-callout h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.mx-callout p { margin: 0; font-size: .94rem; color: var(--muted); }
.mx-mosaic__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mx-mosaic__grid > :nth-child(even) { transform: translateY(48px); }
.mx-mosaic__grid > :nth-child(even).is-in { transform: translateY(48px); }
.mx-mosaic__tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.mx-mosaic__tile img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1.2s var(--ease-out); }
.mx-mosaic__tile:hover img { transform: scale(1.06); }
.mx-mosaic__tile figcaption { position: absolute; inset: auto 0 0; padding: 70px 24px 24px; background: linear-gradient(180deg, transparent, rgba(12, 12, 17, .92) 55%); color: #d9dae2; }
.mx-mosaic__tile h3 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.mx-mosaic__tile p { margin: 0; font-size: .88rem; line-height: 1.55; color: #c4c5cf; }

/* Product cards */
.mx-pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mx-pcard {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 540px;
	padding: 30px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: var(--ink-2); color: #c4c5cf;
	transition: border-color .4s, transform .5s var(--ease-out);
}
.mx-pcard:hover { border-color: rgba(255, 59, 59, .55); transform: translateY(-6px); }
.mx-pcard__bg { position: absolute; inset: 0; z-index: -1; }
.mx-pcard__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; transition: opacity .5s, transform 1.2s var(--ease-out); }
.mx-pcard:hover .mx-pcard__bg img { opacity: .3; transform: scale(1.05); }
.mx-pcard__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 21, 28, .6), rgba(21, 21, 28, .97) 55%); }
.mx-pcard__logo { display: flex; align-items: center; align-self: flex-start; height: 40px; margin-bottom: 60px; }
.mx-pcard__logo img { height: 34px; width: auto; max-width: 190px; object-fit: contain; }
.mx-pcard__type { margin: 0 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ff5a5a; }
.mx-pcard h3 { font-size: 1.9rem; letter-spacing: -.04em; margin-bottom: 10px; }
.mx-pcard__tag { font-size: .98rem; color: #c4c5cf; }
.mx-pcard__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 10px 0 30px; }
.mx-pcard__list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #e3e4ea; }
.mx-pcard__list .mx-icon { width: 16px; height: 16px; color: #ff5a5a; flex: none; }
.mx-pcard__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* Case study carousel */
.mx-carousel { margin-top: clamp(48px, 6vw, 80px); }
.mx-carousel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.mx-carousel__head h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.03em; }
.mx-carousel__nav { display: flex; align-items: center; gap: 10px; }
.mx-carousel__nav button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: background .3s, color .3s, border-color .3s; }
.mx-carousel__nav button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mx-carousel__nav .mx-btn { margin-left: 8px; }
.mx-carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px;
	scrollbar-width: none;
}
.mx-carousel__track::-webkit-scrollbar { display: none; }
.mx-carousel__track:focus-visible { outline-offset: 6px; }
.mx-ccard { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: box-shadow .4s, border-color .4s; }
.mx-ccard:hover { box-shadow: var(--shadow); border-color: transparent; }
.mx-ccard__media { position: relative; overflow: hidden; }
.mx-ccard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.mx-ccard:hover .mx-ccard__media img { transform: scale(1.05); }
.mx-ccard__body { padding: 22px 24px 26px; }
.mx-ccard h4 { font-size: 1.12rem; margin-bottom: 8px; }
.mx-ccard p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* Global presence */
.mx-global .mx-bg img { opacity: .3; height: 100%; }
.mx-global::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(12, 12, 17, .55) 50%, var(--ink) 100%); }
.mx-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mx-place {
	padding: 30px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(12, 12, 17, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mx-place__label { margin: 0 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ff5a5a; }
.mx-place h3 { font-size: 1.6rem; letter-spacing: -.03em; margin-bottom: 14px; }
.mx-place__time { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .9rem; color: #a9abb8; }
.mx-place__time time { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.mx-place__time .mx-pulse { width: 8px; height: 8px; background: #22c55e; }
.mx-place__time .mx-pulse::after { border-color: #22c55e; }
.mx-place address { font-style: normal; font-size: .92rem; color: #a9abb8; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mx-place a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.mx-place a .mx-icon { width: 17px; height: 17px; color: #ff5a5a; }

/* Closing CTA (light) */
.mx-cta2 { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--section); background: #f2f2f5; }
.mx-cta2__glow { position: absolute; z-index: -1; right: -8%; top: 50%; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 0, 0, .28), rgba(255, 90, 90, .12) 60%, transparent); filter: blur(10px); animation: mx-breathe 9s ease-in-out infinite alternate; }
@keyframes mx-breathe { to { transform: translateY(-50%) scale(1.12); } }
.mx-cta2__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.mx-cta2__title { font-size: clamp(2.3rem, 4.8vw, 4.2rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; margin-bottom: 20px; max-width: 760px; }
.mx-cta2__facts { list-style: none; display: flex; flex-direction: column; }
.mx-cta2__facts li { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(12, 12, 17, .1); }
.mx-cta2__facts li:first-child { border-top: 1px solid rgba(12, 12, 17, .1); }
.mx-cta2__facts strong { min-width: 90px; font-family: var(--font-head); font-size: 2rem; font-weight: 600; letter-spacing: -.04em; color: var(--red); }
.mx-cta2__facts span { color: var(--muted); }

/* Technologies page */
.mx-tech-card__head { align-items: flex-start; }
.mx-tech-card__head p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.mx-bysvc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mx-bysvc { display: flex; flex-direction: column; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: #fff; transition: box-shadow .4s, border-color .4s; }
.mx-bysvc:hover { box-shadow: var(--shadow); border-color: transparent; }
.mx-bysvc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mx-bysvc__head span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--red-soft); color: var(--red); }
.mx-bysvc__head h3 { margin: 0; font-size: 1.2rem; }
.mx-bysvc > p { color: var(--muted); font-size: .95rem; }
.mx-bysvc .mx-pills { margin-bottom: 22px; }
.mx-bysvc .mx-link { margin-top: auto; }
.mx-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mx-principle { margin: 0; padding-top: 26px; border-top: 2px solid var(--red); }
.mx-principle__num { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--red); }
.mx-principle h3 { font-size: 1.3rem; margin: 10px 0 14px; }
.mx-principle blockquote { margin: 0 0 16px; }
.mx-principle blockquote p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.mx-principle figcaption { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }

/* Testimonials: lighter, editorial */
.mx-tslide blockquote p { font-weight: 400; }
.mx-avatar { box-shadow: none; }

/* v2 responsive */
@media (max-width: 1200px) {
	.mx-logos { grid-template-columns: repeat(3, 1fr); } /* 21 logos: 3 x 7 */
}
@media (max-width: 992px) {
	.mx-intro__grid, .mx-mosaic, .mx-cta2__grid, .mx-tabs { grid-template-columns: 1fr; }
	.mx-mosaic__intro { position: relative; top: 0; }
	.mx-hero__cards, .mx-pcards, .mx-places, .mx-principles { grid-template-columns: 1fr; }
	.mx-hero__cards { gap: 10px; }
	.mx-pcard { min-height: 0; }
	.mx-carousel__track { grid-auto-columns: 46%; }
	.mx-tabs__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 4px; }
	.mx-tabs__list::-webkit-scrollbar { display: none; }
	.mx-tabs__tab { width: auto; flex: none; grid-template-columns: auto auto; padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .14); }
	.mx-tabs__tab.is-active { box-shadow: none; background: var(--red); border-color: var(--red); }
	.mx-tabs__tab.is-active .mx-tabs__num { color: #fff; }
	.mx-tabs__tab .mx-icon { display: none; }
	.mx-bysvc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.mx-hero--home { padding-top: calc(var(--header-h) + 40px); }
	.mx-hero__tabs { gap: 2px 20px; }
	.mx-hero__card { padding: 16px 46px 16px 18px; }
	.mx-hero__card-text { display: none; }
	.mx-ticks { grid-template-columns: 1fr; }
	.mx-logos { grid-template-columns: repeat(3, 1fr); }
	.mx-logos li { height: 88px; padding: 12px; }
	.mx-logos img { max-height: 40px; }
	.mx-mosaic__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mx-mosaic__grid > :nth-child(even), .mx-mosaic__grid > :nth-child(even).is-in { transform: none; }
	.mx-mosaic__tile { aspect-ratio: 3 / 4; }
	.mx-mosaic__tile figcaption { padding: 50px 14px 14px; }
	.mx-mosaic__tile p { display: none; }
	.mx-carousel__track { grid-auto-columns: 84%; }
	.mx-carousel__nav .mx-btn { display: none; }
	.mx-cta2__facts strong { min-width: 70px; font-size: 1.6rem; }
}

/* v2 refinements */
.mx-hero__tabs { flex-wrap: nowrap; justify-content: space-between; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.mx-hero__tabs::-webkit-scrollbar { display: none; }
.mx-hero__tabs a { font-size: .86rem; }
.mx-hero__tabs a::after { bottom: -14px; }
.mx-tslide blockquote::before { content: none; }
.mx-global .mx-bg img { opacity: .45; }
.mx-footer { padding-top: 0; }
.mx-footer__grid { padding-top: clamp(60px, 7vw, 96px); }

/* 3D brand mark in the home banner */
.mx-hero__row { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 40px; align-items: start; }
.mx-hero__mark { position: relative; align-self: stretch; min-height: 340px; pointer-events: none; }
.mx-hero__mark::before {
	content: ''; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
	border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 0, 0, .45), rgba(213, 0, 0, .12) 55%, transparent);
	filter: blur(18px); opacity: 0; transition: opacity 1.6s var(--ease-out);
}
.mx-hero__mark canvas { position: absolute; inset: -18% -10% -18% -4%; width: 114%; height: 136%; opacity: 0; transform: scale(.94); transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out); }
.mx-hero__mark.is-ready::before { opacity: 1; }
.mx-hero__mark.is-ready canvas { opacity: 1; transform: none; }
@media (max-width: 1100px) {
	.mx-hero__row { grid-template-columns: 1fr; }
	.mx-hero__mark { display: none; }
}
/* 7-column logo wall (21 logos): tighter cells */
.mx-logos li { height: 104px; padding: 16px 14px; }
.mx-logos img { max-height: 46px; }
@media (max-width: 680px) {
	.mx-logos li { height: 84px; padding: 10px 8px; }
	.mx-logos img { max-height: 36px; }
}

/* Partner network (home) */
.mx-partners__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.mx-ticks--one { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.mx-partners__logos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mx-partners__logos li {
	display: grid; place-items: center; height: 136px; padding: 22px; border-radius: 18px;
	background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.mx-partners__logos li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mx-partners__logos img { max-height: 58px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 992px) { .mx-partners__grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
	.mx-partners__logos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.mx-partners__logos li { height: 104px; padding: 16px; }
	.mx-partners__logos img { max-height: 44px; }
}
