/* ==========================================================================
   VisEngine — main stylesheet
   Values follow the HTML prototype (Main.dc.html). Layout uses CSS logical
   properties (inline/block) so Arabic (dir="rtl") mirrors without overrides;
   the few direction-specific details are at the end ("RTL").
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--c-ink: #111214;
	--c-ink-2: #2b2d31;
	--c-ink-3: #17181a;
	--c-muted: #4a4d53;
	--c-muted-2: #55585e;
	--c-line: #e8e8e6;
	--c-line-2: #d9d9d6;
	--c-line-3: #d4d6da;
	--c-input: #bfc2c8;
	--c-bg: #fff;
	--c-bg-2: #f6f6f5;
	--c-dark: #0b0c0d;
	--c-dark-2: #16181b;
	--c-dark-line: #2a2d31;
	--c-dark-line-2: #3a3d42;
	--c-dark-text: #c9ccd1;
	--c-dark-text-2: #e3e5e8;
	--c-dark-muted: #b5b8be;
	--c-accent: #e6194d;
	--c-accent-hover: #c70f3e;
	--c-accent-text: #c7123f;
	--c-accent-dark: #a5103a;
	--c-accent-light: #ff7a98;
	--c-teal: #127a7d;
	--c-teal-2: #0f6264;
	--c-teal-light: #26b4b7;
	--c-yellow: #ffc857;

	--f-head: "Poppins", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Albert Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1376px;
	--gutter: clamp(20px, 4vw, 48px);
	--sec: clamp(56px, 8vw, 112px);
	--radius: 2px;
	--header-h: 76px;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--admin-bar) + 16px);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video,
svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
ul[role="list"],
ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
mark { background: none; color: inherit; }

:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
.sec--dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: #7fe0c6; }

.screen-reader-text {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	inset-inline-start: 12px;
	inset-block-start: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-accent);
	color: #fff;
	font-family: var(--f-head);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

.site-main:focus { outline: none; }

/* Editorial placeholders: visible only to logged-in editors (see ve_mark()). */
.show-placeholders .ve-ph--edit,
.ve-ph--edit {
	background: #fff3c4;
	color: #6b4a00;
	outline: 1px dashed #c99a00;
	padding: 0 3px;
	border-radius: 2px;
}
.ph {
	border: 1px dashed #9a9ea6;
	background: var(--c-bg-2);
	color: var(--c-muted);
	padding: 22px;
	border-radius: var(--radius);
	font-size: 15px;
}

/* ---------- Layout ---------- */
.wrap {
	max-inline-size: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--read { max-inline-size: calc(860px + 2 * var(--gutter)); }

.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(32px, 4vw, 56px); }
.sec--tight-bottom { padding-block-end: 0; }
.sec--white { background: var(--c-bg); }
.sec--light { background: var(--c-bg-2); }
.sec--dark { background: var(--c-dark); color: #fff; }

.stack { display: flex; flex-direction: column; gap: 40px; }
.stack--lg { gap: 44px; }
.stack--sm { gap: 18px; }
.stack--xs { gap: 10px; }
.stack__foot { display: flex; justify-content: center; }

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	align-items: center;
}
.split--top { align-items: flex-start; }
.split--center { align-items: center; }
.split--reverse { flex-direction: row-reverse; }
.split__text { flex: 1 1 380px; min-inline-size: 0; display: flex; flex-direction: column; gap: 20px; }
.split__media { flex: 1 1 420px; min-inline-size: 0; }
.split--single .split__text { flex-basis: 100%; max-inline-size: 900px; }
/* The flex-basis above is a width for side-by-side columns. Stacked in a vertical flex
   container it would act as a minimum height and leave empty space: reset it there. */
.stack > .split__text,
.stack > .split__media,
.stack > .sec-head__text,
.stack > .tabs__text,
.stack > .tabs__media { flex-basis: auto; }

.grid { display: grid; gap: 20px; margin: 0; padding: 0; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) {
	.grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.grid--2 { grid-template-columns: minmax(0, 1fr); }
	.grid--3,
	.grid--4,
	.grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.grid--3,
	.grid--4,
	.grid--5 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Typography ---------- */
.h1,
.h2,
.h3,
h1,
h2,
h3,
h4 { font-family: var(--f-head); font-weight: 600; margin: 0; }

.h1 {
	font-size: clamp(34px, 5.2vw, 68px);
	line-height: 1.06;
	letter-spacing: -.015em;
	max-inline-size: 900px;
}
.h1--md { font-size: clamp(32px, 4.4vw, 56px); }
.h2 {
	font-size: clamp(26px, 3.4vw, 44px);
	line-height: 1.12;
	letter-spacing: -.01em;
}
.h2--md { font-size: clamp(24px, 2.6vw, 34px); }
.h3 { font-size: 20px; line-height: 1.25; }
.h3--lg { font-size: clamp(20px, 2vw, 26px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.muted { color: var(--c-muted); }
.sec--dark .muted { color: var(--c-dark-text); }
.small { font-size: 15px; }

.eb {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.eb--accent { color: var(--c-accent-light); }
.bar {
	display: inline-block;
	inline-size: 26px;
	block-size: 10px;
	flex: none;
	background: var(--c-accent);
	transform: skewX(-32deg);
}
.lbl {
	display: block;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-ink-2);
	margin: 0 0 6px;
}
.lbl--dark { color: var(--c-dark-muted); display: inline; margin-inline-end: 6px; }
.ulink {
	display: inline-flex;
	gap: 6px;
	color: inherit;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sec-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
}
/* Full width of the section; a head link (if any) keeps its place on the right. */
.sec-head__text { flex: 1 1 520px; min-inline-size: 0; display: flex; flex-direction: column; gap: 16px; }
.sec-head__intro { color: var(--c-muted); }
.sec--dark .sec-head__intro { color: var(--c-dark-text); }
.sec-head__intro p + p { margin-block-start: 12px; }

/* ---------- Prose (WYSIWYG, articles) ---------- */
.prose { color: var(--c-ink-2); overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; } /* Long URLs (legal pages) must not widen the page on phones. */
.sec--dark .prose { color: var(--c-dark-text-2); }
.prose > * + * { margin-block-start: 1em; }
.prose--lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.prose--narrow { max-inline-size: 760px; }
.prose ul,
.prose ol { padding-inline-start: 1.25em; margin-block: 0; }
.prose li + li { margin-block-start: .35em; }
.prose a { color: var(--c-teal); text-decoration: underline; text-underline-offset: 3px; }
.sec--dark .prose a { color: #7fe0c6; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; margin-block-start: 1.6em; }
.prose h3 { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; margin-block-start: 1.4em; }
.prose h4 { font-size: 18px; margin-block-start: 1.2em; }
.prose img,
.prose figure { border-radius: var(--radius); }
.prose blockquote {
	margin-inline: 0;
	padding-inline-start: 20px;
	border-inline-start: 3px solid var(--c-accent);
	font-size: 1.1em;
	color: var(--c-ink);
}
.prose table { inline-size: 100%; border-collapse: collapse; font-size: 15px; }
.prose th,
.prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: start; }
.prose iframe { max-inline-size: 100%; }
.prose .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 1.4em; }
.prose .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prose .gallery-columns-6,
.prose .gallery-columns-8 { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px 20px; align-items: center; }
.prose .gallery-item { margin: 0; }
.prose .gallery-item img { inline-size: 100%; block-size: auto; border-radius: var(--radius); }
.prose .gallery-columns-8 .gallery-item img { object-fit: contain; max-block-size: 70px; }
.prose .gallery-caption { font-size: 13px; color: var(--c-muted); margin-block-start: 4px; }
.prose figure.wp-block-image img { inline-size: 100%; block-size: auto; }
.prose figure.wp-block-image figcaption { font-size: 14px; color: var(--c-muted); margin-block-start: 6px; }
.prose .media { margin-block: 1.4em; }
@media (max-width: 560px) { .prose .gallery { grid-template-columns: minmax(0, 1fr); } .prose .gallery-columns-8 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn,
.btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 48px;
	padding: 14px 26px;
	border: 1px solid var(--c-accent);
	border-radius: var(--radius);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	text-align: center;
	transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn--block { inline-size: 100%; }
.btn2 { background: transparent; color: inherit; border-color: currentColor; }
.btn2:hover { opacity: .75; }
.btn2--light { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 12px 18px;
	border: 1px solid var(--c-line-3);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-ink);
	font-family: var(--f-head);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.2;
}
.chip:hover { border-color: var(--c-ink); }
.chip.is-on,
.chip[aria-selected="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
@media (max-width: 720px) {
	/* Filter chips: one scrollable row instead of a stack that fills the first screen. */
	.work__filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(var(--gutter, 16px) * -1);
		padding-inline: var(--gutter, 16px);
		padding-block-end: 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.work__filter::-webkit-scrollbar { display: none; }
	.work__filter .chip { flex-shrink: 0; white-space: nowrap; }
}

.arrow { display: inline-block; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	inset-block-start: var(--admin-bar);
	z-index: 50;
	background: var(--c-dark);
	color: #fff;
}
.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	min-block-size: var(--header-h);
	padding-block: 10px;
}
.site-logo { display: flex; align-items: center; min-block-size: 44px; flex: none; }
.site-logo img { block-size: 38px; inline-size: auto; }
@media (max-width: 1280px) {
	:root { --header-h: 72px; }
	.site-logo img { block-size: 34px; }
}
@media (max-width: 640px) {
	:root { --header-h: 64px; }
	.site-logo img { block-size: 30px; }
}
.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }

.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 44px;
	padding: 10px 2px;
	border: 0;
	border-block-end: 2px solid transparent;
	background: none;
	color: var(--c-dark-text);
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}
.nav__link:hover,
.nav__toggle[aria-expanded="true"] { color: #fff; }
.nav__item.is-current > .nav__link { color: #fff; border-block-end-color: var(--c-accent); }
/* Desktop menu on one row in every language (the longest are ES and DE). The header content is at
   most 1280px wide (--wrap 1376 minus gutters), so spacing grows from 1281px to 1376px and then
   stays: gaps 12→22px, letter-spacing .5→1px, header gap 16→24px, CTA padding 18→24px. */
@media (min-width: 1281px) {
	.site-header__bar { column-gap: clamp(16px, calc(16px + (100vw - 1281px) * .084), 24px); }
	.nav__list { flex-wrap: nowrap; column-gap: clamp(12px, calc(12px + (100vw - 1281px) * .105), 22px); }
	.nav__link { letter-spacing: clamp(.5px, calc(.5px + (100vw - 1281px) * .0053), 1px); white-space: nowrap; }
	.site-header__cta { padding-inline: clamp(18px, calc(18px + (100vw - 1281px) * .063), 24px); }
}
.nav__caret {
	inline-size: 0;
	block-size: 0;
	border-inline: 4px solid transparent;
	border-block-start: 5px solid currentColor;
	transition: transform .15s;
}
[aria-expanded="true"] > .nav__caret { transform: rotate(180deg); }
.nav__mobile-extra { display: none; }

.mega {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	background: #fff;
	color: var(--c-ink);
	border-block-start: 2px solid var(--c-accent);
	box-shadow: 0 28px 48px rgba(0, 0, 0, .28);
}
.mega[hidden] { display: none; }
.mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 24px 36px;
	padding-block: 28px 12px;
}
.mega__group { display: flex; flex-direction: column; gap: 4px; }
.mega__head {
	display: flex;
	gap: 6px;
	padding-block: 6px 8px;
	margin-block-end: 6px;
	border-block-end: 1px solid var(--c-line);
	font-family: var(--f-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}
a.mega__head:hover { text-decoration: underline; }
.mega__links { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mega__links a {
	display: flex;
	align-items: center;
	min-block-size: 34px;
	padding-block: 4px;
	color: var(--c-muted);
	font-size: 14px;
	text-decoration: none;
}
.mega__links a:hover,
.mega__links a[aria-current] { color: var(--c-ink); text-decoration: underline; }
.mega__grid--list { grid-template-columns: 1fr; }
/* Plain dropdown links (Challenges): two columns of three, filled top to bottom. */
.mega__links--loose { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 0 48px; }
@media (max-width: 1180px) { .mega__links--loose { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }
.mega__foot { background: var(--c-bg-2); border-block-start: 1px solid var(--c-line); }
.mega__foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-block: 10px; }
.mega__foot-main {
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	padding-block: 8px;
}
.mega__foot-link { font-size: 14px; text-decoration: none; padding-block: 8px; }
.mega__foot a:hover { text-decoration: underline; }
.mega-backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: rgba(11, 12, 13, .55);
}
.mega-backdrop[hidden] { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 44px;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--c-dark-text);
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
}
.lang__toggle:hover,
.lang__toggle[aria-expanded="true"] { color: #fff; }
.lang__list {
	position: absolute;
	inset-inline-end: 0;
	inset-block-start: calc(100% + 6px);
	z-index: 60;
	min-inline-size: 160px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	color: var(--c-ink);
	border-radius: var(--radius);
	box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
}
.lang__list[hidden] { display: none; }
.lang__list a { display: block; padding: 10px 16px; font-size: 15px; text-decoration: none; }
.lang__list a:hover { background: var(--c-bg-2); }
.lang__list a[aria-current] { font-weight: 600; color: var(--c-accent-text); }

/* Burger + mobile navigation */
.burger {
	display: none;
	inline-size: 44px;
	block-size: 44px;
	border: 0;
	background: none;
	color: #fff;
	position: relative;
}
.burger__lines,
.burger__lines::before,
.burger__lines::after {
	position: absolute;
	inset-inline-start: 11px;
	inline-size: 22px;
	block-size: 2px;
	background: currentColor;
	transition: transform .2s var(--ease), opacity .2s;
}
.burger__lines { inset-block-start: 21px; }
.burger__lines::before,
.burger__lines::after { content: ""; inset-inline-start: 0; }
.burger__lines::before { inset-block-start: -7px; }
.burger__lines::after { inset-block-start: 7px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) {
	.burger { display: inline-block; }
	.site-header__actions .lang { display: none; }
	.nav {
		position: fixed;
		inset-inline: 0;
		inset-block: calc(var(--header-h) + var(--admin-bar)) 0;
		z-index: 49;
		display: none;
		flex-direction: column;
		justify-content: flex-start;
		gap: 24px;
		padding: 16px var(--gutter) 32px;
		overflow-y: auto;
		background: var(--c-dark);
		border-block-start: 1px solid var(--c-dark-line);
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
	.nav__item { border-block-end: 1px solid var(--c-dark-line); }
	.nav__link {
		inline-size: 100%;
		justify-content: space-between;
		min-block-size: 54px;
		font-size: 14px;
		border-block-end: 0;
	}
	.nav__item.is-current > .nav__link { border: 0; color: #fff; }
	.mega {
		position: static;
		box-shadow: none;
		border: 0;
		background: transparent;
		color: #fff;
	}
	.mega__grid { grid-template-columns: 1fr; gap: 12px; padding: 0 0 16px; }
	.mega__head { border-color: var(--c-dark-line); color: #fff; }
	.mega__links a { color: var(--c-dark-text); min-block-size: 40px; }
	.mega__links a:hover { color: #fff; }
	.mega__foot { background: transparent; border-color: var(--c-dark-line); }
	.mega__foot-inner { padding-inline: 0; padding-block: 6px 16px; }
	.mega-backdrop { display: none !important; }
	.nav__mobile-extra { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
	.nav__mobile-extra .lang__list { position: static; box-shadow: none; margin-block-start: 6px; }
	.nav__mobile-extra .lang__toggle { font-size: 14px; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
	.site-header__cta { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--c-muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs__sep { display: inline-block; margin-inline: 6px; }
.crumbs--dark { color: var(--c-dark-muted); }
.crumbs .breadcrumb_last { color: inherit; opacity: .85; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-dark); color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__img,
.hero__video {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	opacity: .55;
}
.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 12, 13, .92) 0%, rgba(11, 12, 13, .55) 55%, rgba(11, 12, 13, .2) 100%);
}
.hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-block: clamp(72px, 11vw, 152px) clamp(64px, 9vw, 120px);
}
.hero--compact .hero__inner { padding-block: clamp(56px, 8vw, 112px); }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__lead { max-inline-size: 680px; color: var(--c-dark-text-2); font-size: clamp(20px, 2.2vw, 28px); }
.hero--plain .hero__lead,
.hero--compact .hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--c-dark-text); }
.hero__copy { max-inline-size: 640px; color: var(--c-dark-text-2); }
.hero__display { max-inline-size: 900px; }
.hero--display .hero__inner { padding-block: clamp(80px, 12vw, 168px) clamp(48px, 6vw, 72px); }
.hero--display .hero__text { gap: 28px; }
.hero__h1-small {
	max-inline-size: 760px;
	font-family: var(--f-head);
	font-weight: 500;
	font-size: clamp(18px, 2vw, 26px);
	line-height: 1.35;
	color: #fff;
}
.hero--display .hero__lead { font-size: clamp(17px, 1.5vw, 20px); max-inline-size: 640px; }
.hero__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 28px;
	margin-block-start: clamp(32px, 6vw, 72px);
	font-size: 14px;
	color: var(--c-dark-text-2);
}
.hero__foot .ulink { color: #fff; }

.hero--split .hero__inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: clamp(56px, 8vw, 104px); }
.hero--split .hero__text { flex: 1 1 420px; min-inline-size: 0; }
.hero--split .h1 { font-size: clamp(32px, 4.4vw, 58px); }
.hero--split .hero__lead { font-size: clamp(20px, 2vw, 26px); }
.hero__side { flex: 1 1 380px; min-inline-size: 0; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.hero__side-img { inline-size: 100%; max-block-size: 420px; object-fit: cover; border-radius: var(--radius); }
.hero__side-cap { font-size: 14px; color: var(--c-dark-muted); }

.hero--light { background: var(--c-bg-2); color: var(--c-ink); }
.hero--light .hero__lead { color: var(--c-muted); }

/* Full-screen heroes: page heroes (all variants) and project heroes fill the viewport below the
   sticky header. min-height, so longer content still grows instead of being cut; compact page
   headers (archives, legal pages, 404) keep their own height. */
.hero:not(.hero--compact) {
	--hero-h: calc(100vh - var(--header-h) - var(--admin-bar));
	display: flex;
	flex-direction: column;
	min-block-size: var(--hero-h);
}
@supports (height: 100svh) {
	.hero:not(.hero--compact) { --hero-h: calc(100svh - var(--header-h) - var(--admin-bar)); }
}
.hero:not(.hero--compact) > .hero__inner {
	flex: 1 0 auto;
	inline-size: 100%;
	padding-block: clamp(32px, 6vh, 88px) clamp(28px, 5vh, 72px);
}
/* One column: the text is centred vertically, the caption line stays at the bottom. */
.hero:not(.hero--compact):not(.hero--split):not(.project-hero) .hero__text { margin-block: auto; }
.hero:not(.hero--compact):not(.hero--split):not(.project-hero) .hero__foot { margin-block-start: clamp(24px, 4vh, 56px); }
.hero--split:not(.hero--compact) > .hero__inner,
.project-hero > .hero__inner { align-content: center; }
.project-hero > .hero__inner { align-items: center; }
.hero--split .hero__side-img { max-block-size: min(420px, calc(var(--hero-h) - 160px)); }
/* Short desktop/laptop screens (e.g. 1366×768, 1280×720): tighter type and gaps so it all fits. */
@media (min-width: 901px) and (max-height: 860px) {
	.hero:not(.hero--compact) .h1 { font-size: clamp(32px, min(4.6vw, 7.2vh), 64px); }
	.hero--split .h1 { font-size: clamp(30px, min(3.8vw, 6.2vh), 52px); }
	.hero__display { font-size: clamp(36px, min(5.2vw, 8.4vh), 72px); }
	.hero__text,
	.hero--display .hero__text { gap: clamp(14px, 2.4vh, 24px); }
	.hero__lead { font-size: clamp(17px, min(1.8vw, 3vh), 24px); }
	.hero--split .hero__inner { gap: 28px 48px; }
	.hero--split .hero__text { gap: clamp(12px, 2vh, 20px); }
	.hero--split .hero__lead { font-size: clamp(17px, min(1.6vw, 2.7vh), 22px); }
	.hero--split .hero__copy { font-size: 16px; }
}
@media (min-width: 901px) and (max-height: 780px) {
	.hero:not(.hero--compact) > .hero__inner { padding-block: 24px; }
	.hero--split .h1 { font-size: clamp(28px, min(3.4vw, 5.4vh), 44px); }
	.hero--split .hero__lead { font-size: clamp(16px, 2.5vh, 20px); }
	.hero--split .hero__copy { font-size: 15px; line-height: 1.5; }
}
/* Tablets and phones: the side image of a split hero becomes its background, so the text,
   buttons and picture all fit on the first screen. */
@media (max-width: 900px) {
	.hero--split .hero__inner { position: static; }
	.hero--split .hero__text { position: relative; z-index: 1; }
	.hero--split .hero__side {
		position: absolute;
		inset: 0;
		justify-content: flex-end;
		padding: 0 var(--gutter) 14px;
	}
	.hero--split .hero__side::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(11, 12, 13, .9) 0%, rgba(11, 12, 13, .72) 60%, rgba(11, 12, 13, .85) 100%);
	}
	.hero--split .hero__side-img {
		position: absolute;
		inset: 0;
		max-block-size: none;
		block-size: 100%;
		border-radius: 0;
	}
	.hero--split .hero__side-cap { position: relative; z-index: 1; font-size: 12px; text-align: end; }
	.hero--split:not(.hero--compact) > .hero__inner { padding-block-end: clamp(44px, 7vh, 72px); }
}
/* Small phones (e.g. 360×640): compact type. */
@media (max-width: 600px) and (max-height: 720px) {
	.hero:not(.hero--compact) > .hero__inner { padding-block: 20px 28px; }
	.hero:not(.hero--compact) .h1,
	.hero--split .h1 { font-size: 28px; }
	.hero__display { font-size: 34px; }
	.hero__text,
	.hero--display .hero__text,
	.hero--split .hero__text { gap: 12px; }
	.hero__lead,
	.hero--split .hero__lead,
	.hero--display .hero__lead { font-size: 16px; }
	.hero__h1-small { font-size: 17px; }
	.hero__copy { font-size: 15px; line-height: 1.5; }
	.hero .crumbs { font-size: 13px; }
	.hero:not(.hero--compact):not(.hero--split):not(.project-hero) .hero__foot { margin-block-start: 16px; }
}
/* Phones in landscape and very short windows: no forced height, content decides. */
@media (max-height: 520px) {
	.hero:not(.hero--compact) { min-block-size: 0; }
}

/* ---------- Logos ---------- */
.logos { display: flex; flex-direction: column; gap: 32px; padding-block: 56px; background: #fff; color: var(--c-ink); border-block-end: 1px solid #e8e8e8; }
.logos__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.logos__head:empty { display: none; }
/* Logos as a full section (heading + text, e.g. About us): regular section spacing. */
.logos:has(.logos__sechead) { padding-block: var(--sec); border-block-end: 0; gap: 40px; }
.logos--light { background: var(--c-bg-2); }
.logos__title { font-family: var(--f-head); font-weight: 500; font-size: 20px; color: var(--c-ink-3); }
.logos__title .ve-ph { color: var(--c-teal); }
.logos__link {
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-teal);
	text-decoration: none;
	padding-block: 6px;
}
.logos__link:hover { text-decoration: underline; }
/* Continuous carousel: two identical tracks move by their own width, so the loop has no seam. */
.logos__marquee {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logos__track {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 32px;
	padding-inline-end: 32px;
	margin: 0;
	list-style: none;
	animation: logos-scroll var(--logos-duration, 120s) linear infinite;
}
/* Without JavaScript there is no copy track: no animation, scroll by hand. */
.no-js .logos__track { animation: none; }
.no-js .logos__marquee { overflow-x: auto; }
.logos__marquee:hover .logos__track,
.logos__marquee:focus-within .logos__track { animation-play-state: paused; }
.logos__item { flex-shrink: 0; }
.logos__img {
	display: block;
	inline-size: auto;
	block-size: 104px;
	max-inline-size: 190px;
	object-fit: contain;
	/* Client logos are opaque, padded images on white with a light-grey mark: multiply drops the
	   white box on the white band, the #ve-logo-ink filter (logos.php) darkens the mark. */
	mix-blend-mode: multiply;
	filter: url(#ve-logo-ink);
	transition: filter .3s;
}
.logos__item:hover .logos__img { filter: none; }
@keyframes logos-scroll { to { transform: translateX(-100%); } }
[dir="rtl"] .logos__track { animation-name: logos-scroll-rtl; }
@keyframes logos-scroll-rtl { to { transform: translateX(100%); } }
@media (max-width: 560px) {
	.logos { padding-block: 40px; gap: 24px; }
	.logos__track { gap: 20px; padding-inline-end: 20px; }
	.logos__img { block-size: 84px; max-inline-size: 150px; }
}
@media (prefers-reduced-motion: reduce) {
	.logos__marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.logos__track { animation: none; padding-inline: 24px; }
	.logos__track[aria-hidden="true"] { display: none; }
}

/* ---------- Cards ---------- */
.cards { list-style: none; }
.cards__item { display: flex; min-inline-size: 0; }
.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
	inline-size: 100%;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	color: inherit;
	text-align: start;
	text-decoration: none;
	transition: border-color .15s, transform .15s var(--ease);
}
.card--link:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.card__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card__num { font-family: var(--f-head); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--c-accent-text); }
.card__title { display: block; }
.card__text { color: var(--c-muted); font-size: 16px; }
.card__text p + p,
.card__text ul { margin-block-start: 8px; }
.card__text ul { padding-inline-start: 1.1em; margin-block-end: 0; }
.card__sub { color: var(--c-muted); font-size: 14px; }
.card__tag {
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-teal);
}
.card__tag--accent { color: var(--c-accent-dark); font-size: 11px; }
.card__more {
	margin-block-start: auto;
	padding-block-start: 8px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.card__phone { font-size: 16px; text-decoration: none; }
.card__wa { font-size: 13px; font-weight: 600; color: var(--c-teal-2); }
.card__media { position: relative; overflow: hidden; background: var(--c-bg-2); }
.card__img { inline-size: 100%;  }
.card__media--short .card__img { block-size: 200px; }
/* Card video: same frame as a ve-card image (800×500), cropped to fill. */
.card__video { display: block; aspect-ratio: 8 / 5; block-size: auto; object-fit: cover; pointer-events: none; }
.card__media--short .card__video { aspect-ratio: auto; }

.cards--image .card,
.card--project,
.card--post { padding: 0; gap: 0; overflow: hidden; }
.cards--image .card__body,
.card--project .card__body,
.card--post .card__body { padding: 22px 24px 24px; }
/* Image card grids: one frame for every photo (8:5, the ve-card size). Photos already 8:5 are not
   cut; a smaller original (e.g. 720×540 → 720×500) fills the same frame so the row stays even. */
.cards--image .card__img { aspect-ratio: 8 / 5; object-fit: cover; }
.cards--featured .card__img { block-size: 480px; }
/* Project / case study cards: long legacy titles and excerpts are cut to keep the grid even. */
.card--project .card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	font-size: 19px;
	line-height: 1.3;
}
.card--project .card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	font-size: 15px;
}

.cards--quote .card__title { font-size: 20px; }
.cards--quote .card__text { font-size: 16px; }
/* Challenge grid (Home "The problems we solve"): 3 × 2 cells with shared borders. */
.cards--quote.grid--3 { gap: 0; border: 1px solid var(--c-line-2); }
.cards--quote.grid--3 .cards__item { border-inline-end: 1px solid var(--c-line-2); border-block-end: 1px solid var(--c-line-2); }
.cards--quote.grid--3 .card { block-size: 100%; padding: clamp(24px, 3vw, 36px); border: 0; border-radius: 0; background: transparent; transition: background-color .2s ease; }
.cards--quote.grid--3 .card--link:hover { background: var(--c-bg-2); }
.cards--quote.grid--3 .card__num { color: var(--c-teal); letter-spacing: 2px; }
.cards--quote.grid--3 .card__title { font-size: clamp(20px, 1.8vw, 24px); }
.cards--quote.grid--3 .card__more { margin-block-start: auto; padding-block-start: 24px; color: var(--c-teal); }
.sec--dark .cards--quote.grid--3,
.sec--dark .cards--quote.grid--3 .cards__item { border-color: var(--c-dark-line-2); }
.sec--dark .cards--quote.grid--3 .card { background: transparent; }
.sec--dark .cards--quote.grid--3 .card--link:hover { background: var(--c-dark-2); }
.sec--dark .cards--quote.grid--3 .card__num,
.sec--dark .cards--quote.grid--3 .card__more { color: var(--c-teal-light); }
@media (min-width: 901px) {
	.cards--quote.grid--3 .cards__item:nth-child(3n) { border-inline-end: 0; }
	.cards--quote.grid--3 .cards__item:nth-last-child(-n + 3) { border-block-end: 0; }
}
@media (min-width: 561px) and (max-width: 900px) {
	.cards--quote.grid--3 .cards__item:nth-child(2n) { border-inline-end: 0; }
	.cards--quote.grid--3 .cards__item:nth-last-child(-n + 2) { border-block-end: 0; }
}
@media (max-width: 560px) {
	.cards--quote.grid--3 .cards__item { border-inline-end: 0; }
	.cards--quote.grid--3 .cards__item:last-child { border-block-end: 0; }
}

.cards--line .card,
.cards--accent .card,
.cards--text .card {
	padding: 18px 0 0;
	background: transparent;
	border: 0;
	border-block-start: 2px solid var(--c-ink);
	border-radius: 0;
}
.cards--accent .card { border-block-start: 3px solid var(--c-accent); padding-block-start: 14px; }
.cards--accent .card__num { color: var(--c-accent-text); }
.cards--text .card { border-block-start-width: 1px; border-color: var(--c-line-2); }
.cards--line .card--link:hover,
.cards--accent .card--link:hover { transform: none; opacity: .8; }

.cards--chip .card { padding: 20px 24px; }
.cards--chip .card__title { font-size: 16px; font-weight: 500; }

.sec--dark .card { background: var(--c-dark-2); border-color: var(--c-dark-line); color: #fff; }
.sec--dark .cards--line .card,
.sec--dark .cards--accent .card,
.sec--dark .cards--text .card { background: transparent; border-block-start-color: var(--c-dark-line-2); }
.sec--dark .card__text,
.sec--dark .card__sub { color: var(--c-dark-text); }
.sec--dark .card--link:hover { border-color: #fff; }

/* ---------- Media / facades ---------- */
.media { display: flex; flex-direction: column; gap: 10px; }
.media__frame {
	position: relative;
	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: var(--c-dark-2);
	border-radius: var(--radius);
}
.media__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.facade .media__img { opacity: .7; transition: opacity .2s, transform .4s var(--ease); }
.facade:hover .media__img { opacity: .85; transform: scale(1.02); }
/* The play icon is direction-neutral: physical properties on purpose. */
.facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	inline-size: 68px;
	block-size: 68px;
	border-radius: 50%;
	background: var(--c-accent);
	transform: translate(-50%, -50%);
	transition: transform .15s;
}
.facade__play::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	left: 50%;
	margin: -11px 0 0 -6px;
	border-block: 11px solid transparent;
	border-left: 18px solid #fff;
}
.facade:hover .facade__play { transform: translate(-50%, -50%) scale(1.06); }
.facade__label {
	position: absolute;
	inset-inline: 16px;
	inset-block-end: 14px;
	color: #fff;
	font-family: var(--f-head);
	font-weight: 600;
	font-size: 15px;
	text-align: start;
}
.media__frame iframe,
.media__frame video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.media__cap { font-size: 14px; color: var(--c-muted); }
.sec--dark .media__cap { color: var(--c-dark-text); }
.media--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border: 1px dashed #9a9ea6;
	background: var(--c-bg-2);
	color: var(--c-muted);
	text-align: center;
	font-size: 15px;
}

/* ---------- Demo boxes ---------- */
.demo {
	position: relative;
	min-block-size: 320px;
	overflow: hidden;
	border: 1px solid var(--c-dark-line);
	border-radius: var(--radius);
	background: var(--c-dark-2);
	color: #fff;
}
.demo--tall { min-block-size: clamp(320px, 42vw, 560px); }
.demo__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .45; }
.demo__inner {
	position: relative;
	min-block-size: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px;
	text-align: center;
}
.demo__label { font-family: var(--f-head); font-size: 18px; font-weight: 600; max-inline-size: 520px; }
.demo__note { font-size: 14px; color: var(--c-dark-text-2); }
.demo__fallback { font-size: 13px; color: var(--c-dark-text); }
.demo__inner[hidden] { display: none; }
.demo.is-open { min-block-size: calc(clamp(360px, 48vw, 640px) + 52px); }
/* The close button sits in a bar above the embed so it never covers the application's own controls. */
.demo__frame { position: absolute; inset: 0; background: #111; }
.demo__frame iframe,
.demo__frame video { position: absolute; inset: 52px 0 0; inline-size: 100%; block-size: calc(100% - 52px); border: 0; background: #000; }
.demo__frame video { object-fit: contain; }
/* Play facade (as in the prototype): red round icon + title. */
.demo__play {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-family: var(--f-head);
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	cursor: pointer;
}
.demo__play-icon {
	display: grid;
	place-items: center;
	inline-size: clamp(72px, 8vw, 104px);
	block-size: clamp(72px, 8vw, 104px);
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 10px 30px rgb(0 0 0 / .35);
	transition: transform .2s ease, background-color .2s ease;
}
.demo__play-icon svg { inline-size: 40%; block-size: 40%; margin-inline-start: 6%; }
.demo__play:hover .demo__play-icon,
.demo__play:focus-visible .demo__play-icon { transform: scale(1.06); background: var(--c-accent-hover); }
.demo__play:focus-visible { outline: 2px solid #fff; outline-offset: 8px; border-radius: 12px; }
[dir="rtl"] .demo__play-icon svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 6%; }
.demo__close { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 2; min-block-size: 36px; padding-block: 0; }

/* ---------- Callout ---------- */
.callout {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 56px;
	padding: clamp(24px, 3vw, 40px);
	background: #fff;
	border: 1px solid var(--c-line);
	border-inline-start: 4px solid var(--c-accent);
	border-radius: var(--radius);
}
.callout__head { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
.callout__label {
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-accent-text);
}
.callout__title { font-size: clamp(22px, 2.2vw, 30px); }
.callout__body { flex: 2 1 420px; min-inline-size: 0; font-size: 17px; }

/* ---------- Stats ---------- */
.stats { list-style: none; }
.stats__item { display: flex; flex-direction: column; gap: 12px; padding-block-start: 20px; border-block-start: 1px solid var(--c-dark-line); }
.stats__value { font-family: var(--f-head); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: #fff; }
.stats__label { font-size: 18px; color: var(--c-dark-text); }
.stats__src { font-size: 13px; color: var(--c-muted); }
.stats--light .stats__item { border-color: var(--c-line); }
.stats--light .stats__value { color: var(--c-teal); }
.stats--light .stats__label { color: var(--c-muted); }

/* ---------- Accordion / FAQ ---------- */
.accordion { display: flex; flex-direction: column; min-inline-size: 0; border-block-end: 1px solid var(--c-line-2); }
.accordion--narrow { max-inline-size: 920px; }
.accordion__item { border-block-start: 1px solid var(--c-line-2); }
.accordion__q {
	position: relative;
	display: block;
	padding-block: 18px;
	padding-inline-end: 40px;
	font-family: var(--f-head);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q::before,
.accordion__q::after {
	content: "";
	position: absolute;
	inset-inline-end: 6px;
	inset-block-start: 50%;
	inline-size: 14px;
	block-size: 2px;
	background: currentColor;
	transition: transform .2s var(--ease);
}
.accordion__q::after { transform: rotate(90deg); }
.accordion__item[open] .accordion__q::after { transform: rotate(0); }
.accordion__a { padding-block-end: 20px; font-size: 16px; color: var(--c-ink-2); }
.sec--dark .accordion,
.sec--dark .accordion__item { border-color: var(--c-dark-line); }
.sec--dark .accordion__a { color: var(--c-dark-text-2); }

.faq-split { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.faq-split > .faq-split__head { flex: 1 1 280px; min-inline-size: 0; }
.faq-split > .faq-split__head .h2 { font-size: clamp(26px, 3vw, 40px); }
.faq-split > :not(.faq-split__head) { flex: 2 1 480px; min-inline-size: 0; }
.faq-split__head:empty { display: none; }
.stack > .faq-split__head:empty { display: none; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.table { inline-size: 100%; min-inline-size: 640px; border-collapse: collapse; font-size: 15px; color: var(--c-ink-2); }
.table thead th {
	padding: 14px 16px;
	background: var(--c-ink);
	color: #fff;
	font-family: var(--f-head);
	font-size: 14px;
	font-weight: 600;
	text-align: start;
}
.table td,
.table tbody th { padding: 14px 16px; border-block-start: 1px solid var(--c-line); text-align: start; vertical-align: top; }
.table tbody th { font-family: var(--f-head); font-weight: 600; color: var(--c-ink); }
/* Comparison tables: the empty corner continues the dark header band, row labels form a tinted column. */
.table thead td { padding: 14px 16px; background: var(--c-ink); }
.table thead th + th,
.table tbody td { border-inline-start: 1px solid var(--c-line); }
.table thead th + th { border-inline-start-color: var(--c-dark-line); }
.table thead td + th { border-inline-start: 0; }
.table tbody th[scope="row"] { inline-size: 22%; background: var(--c-bg-2); font-size: 14px; }
.table tbody tr:hover td { background: #fbfbfa; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-direction: column; gap: 32px; }
.tabs__panel { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: stretch; }
.tabs__panel[hidden] { display: none; }
.tabs__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-inline-size: 0; }
.tabs__case { font-family: var(--f-head); font-size: 18px; font-weight: 600; }
.tabs__case-link { color: inherit; text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tabs__case-link:hover { color: var(--c-accent-text); }
.tabs__case-link .arrow { color: var(--c-accent-text); text-decoration: none; display: inline-block; }
.tabs__media {
	position: relative;
	flex: 1 1 420px;
	min-block-size: 260px;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-dark);
	color: #fff;
}
.tabs__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.tabs__media:has(.tabs__cap)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .6), transparent 45%); }
.tabs__cap { position: relative; z-index: 1; font-size: 14px; color: #fff; }
.js .tabs__panel + .tabs__panel { margin-block-start: 0; }
.no-js .tabs__panel + .tabs__panel { margin-block-start: 40px; }

/* ---------- Points + panel ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 28px; margin-block-start: 6px; }
.points__item { display: flex; flex-direction: column; gap: 4px; padding-block-start: 12px; border-block-start: 1px solid var(--c-dark-line-2); }
.points__num { font-family: var(--f-head); font-size: 12px; font-weight: 600; color: var(--c-accent-light); }
.points__title { font-family: var(--f-head); font-weight: 600; font-size: 17px; }
.points__text { font-size: 15px; color: var(--c-dark-text); }
.sec:not(.sec--dark) .points__item { border-color: var(--c-line); }
.sec:not(.sec--dark) .points__text { color: var(--c-muted); }
.panel {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 24px;
	background: var(--c-dark-2);
	border: 1px solid var(--c-dark-line);
	border-radius: var(--radius);
	font-size: 14px;
}
.panel-img { inline-size: 100%; border-radius: var(--radius); }

/* Sample dashboard markup used in the "Sales intelligence" panel. */
.dash { display: flex; flex-direction: column; gap: 22px; font-size: 14px; color: var(--c-dark-text-2); }
.dash p { margin: 0; }
.dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-head); }
.dash__head strong { font-size: 14px; font-weight: 600; color: #fff; }
.dash__tag,
.dash__chips span {
	display: inline-block;
	padding: 4px 8px;
	border: 1px solid currentColor;
	border-radius: var(--radius);
	font-family: var(--f-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.dash__tag { color: var(--c-yellow); }
.dash__lbl { margin-block-end: 8px !important; font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dark-muted); }
.dash__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash__bars { display: flex; flex-direction: column; gap: 10px; }
.dash__bar { display: flex; align-items: center; gap: 12px; }
.dash__bar > span:first-child { inline-size: 130px; flex: none; }
.dash__track { flex: 1; block-size: 8px; background: var(--c-dark-line); }
.dash__track span { display: block; block-size: 8px; background: var(--c-teal-light); }
.dash__inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dash__leads { display: flex; flex-direction: column; gap: 8px; }
.dash__leads p:not(.dash__lbl) { display: flex; justify-content: space-between; gap: 12px; padding-block-start: 8px; border-block-start: 1px solid var(--c-dark-line); }
.dash__leads em { font-style: normal; color: #7fe0c6; }
.dash__leads em.is-new { color: var(--c-yellow); }
[dir="rtl"] .dash__tag,
[dir="rtl"] .dash__chips span,
[dir="rtl"] .dash__lbl { letter-spacing: 0; text-transform: none; }

/* ---------- Testimonials ---------- */
.quote {
	display: flex;
	flex-direction: column;
	gap: 20px;
	block-size: 100%;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}
.quote__text { margin: 0; font-size: 17px; color: var(--c-ink-2); }
.quote__text p { margin: 0; }
.quote__text p + p { margin-block-start: 12px; }
.quotes--many .quote__text { font-size: 16px; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-block-start: auto; padding-block-start: 18px; border-block-start: 1px solid #ececec; }
.quote__ini {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	background: var(--c-ink);
	color: #fff;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
}
.quote__name { display: block; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.quote__role { display: block; font-size: 14px; color: var(--c-muted); }

/* ---------- CTA ---------- */
.cta-band__inner { align-items: flex-start; }
.cta-band__title { max-inline-size: 820px; }
.cta-band__text { max-inline-size: 760px; color: var(--c-dark-text); }
/* Final CTA with a form (Home). */
.cta-form { position: relative; overflow: hidden; }
.cta-form__bg { position: absolute; inset: 0; }
.cta-form__img { inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .55; }
.cta-form__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 12 13 / .92) 0%, rgb(11 12 13 / .6) 55%, rgb(11 12 13 / .35) 100%); }
[dir="rtl"] .cta-form__bg::after { background: linear-gradient(270deg, rgb(11 12 13 / .92) 0%, rgb(11 12 13 / .6) 55%, rgb(11 12 13 / .35) 100%); }
.cta-form__inner { position: relative; gap: 40px 64px; }
.cta-form__title { max-inline-size: 560px; }
.cta-form__text { color: var(--c-dark-text-2); max-inline-size: 520px; }
.cta-form__aside p { margin: 0 0 12px; }
.cta-form__aside a { color: var(--c-teal-light); font-family: var(--f-head); font-weight: 500; text-decoration: none; }
.cta-form__aside a:hover { text-decoration: underline; }
.cta-form .form-card { color: var(--c-ink); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-inline__text { flex: 1 1 420px; font-size: 18px; color: var(--c-ink-2); max-inline-size: 760px; }

/* ---------- Forms (CF7) ---------- */
.form-block .split__text { gap: 20px; }
.form-card {
	padding: clamp(20px, 3vw, 36px);
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}
.inp,
.ve-form input[type="text"],
.ve-form input[type="email"],
.ve-form input[type="tel"],
.ve-form input[type="url"],
.ve-form input[type="search"],
.ve-form select,
.ve-form textarea {
	inline-size: 100%;
	min-block-size: 48px;
	padding: 12px 14px;
	border: 1px solid var(--c-input);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-ink);
	font-size: 16px;
}
.ve-form textarea { min-block-size: 120px; resize: vertical; }
.ve-form select { appearance: auto; }
.ve-form .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.ve-form .form-row { margin-block-start: 18px; }
.ve-form label,
.ve-form .lbl { display: block; }
.ve-form .wpcf7-form-control-wrap { display: block; }
.ve-form input[type="file"] { display: block; inline-size: 100%; max-inline-size: 100%; font-size: 14px; }
.ve-form .wpcf7-submit {
	display: inline-flex;
	min-block-size: 48px;
	margin-block-start: 22px;
	padding: 14px 26px;
	border: 1px solid var(--c-accent);
	border-radius: var(--radius);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
.ve-form .wpcf7-submit:hover { background: var(--c-accent-hover); }
.ve-form .wpcf7-not-valid { border-color: var(--c-accent); }
.ve-form .wpcf7-not-valid-tip { display: block; margin-block-start: 6px; font-size: 14px; color: var(--c-accent-text); }
.ve-form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--c-line); font-size: 15px; }
/* CF7 renders the message box from the start: hide it until there is a message. */
.ve-form .wpcf7-response-output:empty,
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.ve-form.sent .wpcf7-response-output { border-color: var(--c-teal); color: var(--c-teal-2); }
.ve-form.invalid .wpcf7-response-output,
.ve-form.failed .wpcf7-response-output { border-color: var(--c-accent); color: var(--c-accent-text); }
.ve-form .wpcf7-spinner { margin-inline-start: 12px; }
.ve-form .form-note { margin-block-start: 14px; font-size: 14px; color: var(--c-muted); }
.ve-form .wpcf7-list-item { margin: 0; }
.ve-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-muted); }
.wpcf7 .hidden-fields-container { display: none; margin: 0; padding: 0; border: 0; }
.wpcf7 .screen-reader-response { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Not ".search": WordPress puts that class on <body> of search results pages. */
.blog-search { display: flex; flex-wrap: wrap; gap: 10px; max-inline-size: 640px; }
.search__input { flex: 1 1 260px; }
.hero .search__input { border-color: var(--c-dark-line-2); background: var(--c-dark-2); color: #fff; }
.hero .search__input::placeholder { color: var(--c-dark-muted); }

/* ---------- Project pages ---------- */
.project-hero .hero__inner {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 64px;
	padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
}
.project-hero .hero__text { flex: 2 1 520px; min-inline-size: 0; }
.project-hero__tags { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--c-dark-text-2); }
.project-hero__tags a { color: #fff; }
.facts { flex: 1 1 300px; display: flex; flex-direction: column; margin: 0; }
.facts__row { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; border-block-start: 1px solid var(--c-dark-line); }
.facts__row:last-child { border-block-end: 1px solid var(--c-dark-line); }
.facts dt {
	font-family: var(--f-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-dark-muted);
}
.facts dd { margin: 0; font-size: 16px; color: #fff; }
.project-media { background: linear-gradient(var(--c-dark) 0 38%, var(--c-bg) 38%); padding-block-end: clamp(24px, 4vw, 48px); }
.point { padding-block-start: 16px; border-block-start: 1px solid var(--c-line); }

.gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.gallery__item { min-inline-size: 0; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__link { display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-dark-2); }
.gallery__img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .2s; }
.gallery__link:hover .gallery__img { transform: scale(1.02); opacity: .92; }
@media (max-width: 640px) {
	.gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Lightbox */
.lightbox {
	inline-size: 100vw;
	block-size: 100vh;
	max-inline-size: 100vw;
	max-block-size: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(11, 12, 13, .96);
	color: #fff;
}
.lightbox::backdrop { background: rgba(11, 12, 13, .96); }
.lightbox__stage { position: absolute; inset: 56px 64px; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-inline-size: 100%; max-block-size: 100%; inline-size: auto; block-size: auto; object-fit: contain; }
.lightbox__btn {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 48px;
	block-size: 48px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 22px;
	line-height: 1;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .15); }
.lightbox__close { inset-block-start: 12px; inset-inline-end: 12px; }
.lightbox__prev { inset-block-start: 50%; inset-inline-start: 10px; margin-block-start: -24px; }
.lightbox__next { inset-block-start: 50%; inset-inline-end: 10px; margin-block-start: -24px; }
.lightbox__count { position: absolute; inset-block-end: 16px; inset-inline: 0; text-align: center; font-size: 14px; color: var(--c-dark-text); }
@media (max-width: 640px) {
	.lightbox__stage { inset: 56px 8px; }
}

/* Work hub mosaic (old portfolio logic: image-first tiles) */
.mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: clamp(200px, 20vw, 290px);
	grid-auto-flow: dense;
	gap: 8px;
}
.mosaic__item { position: relative; min-inline-size: 0; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--full { grid-column: 1 / -1; }
.mosaic__link {
	position: relative;
	display: block;
	block-size: 100%;
	overflow: hidden;
	background: var(--c-dark-2);
	color: #fff;
	text-decoration: none;
}
.mosaic__img,
.mosaic__noimg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic__link:hover .mosaic__img,
.mosaic__link:focus-visible .mosaic__img { transform: scale(1.04); }
.mosaic__cap {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 48px 18px 16px;
	background: linear-gradient(transparent, rgba(11, 12, 13, .85));
}
.mosaic__type {
	font-family: var(--f-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-accent-light);
}
.mosaic__title { font-family: var(--f-head); font-size: 18px; font-weight: 600; line-height: 1.25; }
.mosaic__sub { font-size: 13px; color: var(--c-dark-text-2); }
@media (max-width: 900px) {
	.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
	.mosaic__item--wide,
	.mosaic__item--full { grid-column: auto; }
	.mosaic__item--tall { grid-row: span 2; }
}
.work [data-work-results].is-loading { opacity: .5; transition: opacity .2s; }
.work [data-work-results] > .stack__foot { margin-block-start: 40px; }

/* ---------- Blog ---------- */
.article__head { padding-block: clamp(40px, 6vw, 72px) 0; }
.article__cat {
	align-self: flex-start;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-accent-dark);
	text-decoration: none;
}
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--c-muted); }
.article__hero { margin-block-start: clamp(28px, 4vw, 48px); }
.article__img { inline-size: 100%; max-block-size: 620px; object-fit: cover; border-radius: var(--radius); }
.article__layout { display: grid; gap: 32px; padding-block: clamp(36px, 5vw, 64px); }
.article__layout.has-toc { grid-template-columns: minmax(0, 1fr); }
.prose--article { max-inline-size: 760px; font-size: 18px; line-height: 1.7; }
.prose--article h2,
.prose--article h3 { scroll-margin-top: calc(var(--header-h) + var(--admin-bar) + 20px); }
.toc__box { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg-2); padding: 16px 20px; }
.toc__title { font-family: var(--f-head); font-weight: 600; font-size: 15px; cursor: pointer; }
.toc__list { margin: 12px 0 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.toc__list a { color: var(--c-ink-2); text-decoration: none; }
.toc__list a:hover,
.toc__list a.is-active { color: var(--c-accent-text); text-decoration: underline; }
@media (min-width: 1100px) {
	.article__layout.has-toc { grid-template-columns: 260px minmax(0, 760px); gap: 64px; justify-content: center; }
	.toc { position: sticky; inset-block-start: calc(var(--header-h) + var(--admin-bar) + 24px); align-self: start; }
}

.pager .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager a,
.pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 44px;
	min-block-size: 44px;
	padding: 8px 14px;
	border: 1px solid var(--c-line-3);
	border-radius: var(--radius);
	text-decoration: none;
	font-family: var(--f-head);
	font-size: 14px;
}
.pager .current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pager a:hover { border-color: var(--c-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: #fff; border-block-start: 1px solid #23262a; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 40px; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.foot__brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (max-width: 560px) {
	/* Two link columns instead of one long list; the brand block keeps the full width. */
	.foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.foot__brand { grid-column: 1 / -1; }
	.foot__links a { font-size: 14px; min-block-size: 32px; }
}
.foot__brand img { block-size: 30px; inline-size: auto; }
.foot__brand p { font-size: 15px; color: var(--c-dark-text); }
.foot__mail { font-size: 15px; color: var(--c-dark-text-2); text-decoration: none; }
.foot__mail:hover { text-decoration: underline; }
.foot__title {
	margin-block-end: 8px;
	font-family: var(--f-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-dark-muted);
}
.foot__links { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.foot__links a,
.foot__inline a {
	display: inline-flex;
	align-items: center;
	min-block-size: 36px;
	padding-block: 6px;
	color: var(--c-dark-text-2);
	font-size: 15px;
	text-decoration: none;
}
.foot__links a:hover,
.foot__inline a:hover { color: #fff; text-decoration: underline; }
.foot__row { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-block-start: 20px; border-block-start: 1px solid #23262a; }
.foot__inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.foot__inline a { font-size: 14px; }
.foot__cities { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.foot__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-dark-muted); }
.foot__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block-start: 20px;
	border-block-start: 1px solid #23262a;
	font-size: 14px;
	color: var(--c-dark-muted);
}
.foot__bottom .lang__list { inset-block-start: auto; inset-block-end: calc(100% + 6px); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	.hero__video { display: none; }
}

/* ==========================================================================
   RTL (Arabic). Logical properties above handle layout; these rules cover
   direction-specific visuals and Arabic typography.
   ========================================================================== */
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Albert Sans", system-ui, sans-serif; line-height: 1.7; }
[dir="rtl"] .h1,
[dir="rtl"] .h2,
[dir="rtl"] .h3,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 { font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif; letter-spacing: 0; line-height: 1.3; }
/* Letter-spacing and uppercase break Arabic joining. */
[dir="rtl"] .eb,
[dir="rtl"] .btn,
[dir="rtl"] .btn2,
[dir="rtl"] .nav__link,
[dir="rtl"] .lbl,
[dir="rtl"] .card__more,
[dir="rtl"] .card__tag,
[dir="rtl"] .card__num,
[dir="rtl"] .callout__label,
[dir="rtl"] .logos__label,
[dir="rtl"] .logos__link,
[dir="rtl"] .foot__title,
[dir="rtl"] .mosaic__type,
[dir="rtl"] .facts dt,
[dir="rtl"] .mega__foot-main { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .nav__link { font-size: 14px; }
[dir="rtl"] .bar { transform: skewX(32deg); }
[dir="rtl"] .arrow--forward,
[dir="rtl"] .crumbs__sep { transform: scaleX(-1); }
[dir="rtl"] .hero__bg::after { background: linear-gradient(270deg, rgba(11, 12, 13, .92) 0%, rgba(11, 12, 13, .55) 55%, rgba(11, 12, 13, .2) 100%); }
[dir="rtl"] .card--link:hover { transform: translateY(-2px); }
[dir="rtl"] .lightbox__prev { transform: scaleX(-1); }
[dir="rtl"] .lightbox__next { transform: scaleX(-1); }
/* Phone numbers, emails and codes stay left-to-right inside RTL text. */
[dir="rtl"] [dir="ltr"],
[dir="rtl"] .card__phone,
[dir="rtl"] .foot__mail { unicode-bidi: isolate; }

/* ==========================================================================
   Round of edits (Dec 2026)
   ========================================================================== */

/* Outline buttons: fill with the brand crimson on hover (dark sections: the same). */
.btn2:hover,
.btn2:focus-visible { opacity: 1; background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* In-page card links ("Explore solution ↓") in the brand teal. */
.card__more--anchor { color: var(--c-teal-light); }
.card--link:hover .card__more--anchor { color: var(--c-teal); }

/* Sub-section heading (H3 chosen in the editor) keeps the H2 look one step smaller. */
.h2--sub { font-size: clamp(22px, 2.6vw, 32px); }

/* Section header "heading left, intro right" (e.g. The challenge). */
.sec-head--split .sec-head__text {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px clamp(32px, 5vw, 80px);
	align-items: start;
}
.sec-head--split .sec-head__title { display: flex; flex-direction: column; gap: 16px; }
.sec-head--split .sec-head__intro { color: var(--c-ink-2); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; }
.sec-head--split .sec-head__intro p + p { margin-block-start: 18px; color: var(--c-muted); font-size: .86em; }
.sec--dark .sec-head--split .sec-head__intro { color: var(--c-dark-text-2); }
.sec--dark .sec-head--split .sec-head__intro p + p { color: var(--c-dark-text); }
@media (max-width: 900px) {
	.sec-head--split .sec-head__text { grid-template-columns: minmax(0, 1fr); }
}

/* Related challenges: dark cards right under the CTA band, read as one block with it. */
.cta-band + .sec--related { padding-block-start: 0; }
/* A rule across the content width (not the gutters) separates the CTA from the cards. */
.cta-band + .sec--related > .wrap {
	padding-block-start: clamp(40px, 5vw, 64px);
	background: linear-gradient(var(--c-dark-line-2), var(--c-dark-line-2)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.sec--related .stack { gap: 24px; }
.sec--related .sec-head .h2 {
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-dark-text-2);
}
.cards--related .card { padding: clamp(24px, 2.6vw, 34px); background: var(--c-dark-2); border-color: var(--c-dark-line); gap: 12px; }
.cards--related .card__num { color: var(--c-accent); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.cards--related .card__title { font-size: clamp(20px, 1.8vw, 24px); color: #fff; }
.cards--related .card__text { color: var(--c-dark-text); }
.cards--related .card__more { color: var(--c-teal-light); }
.cards--related .card--link:hover { border-color: var(--c-dark-text); background: #1c1f23; }
[dir="rtl"] .sec--related .sec-head .h2 { letter-spacing: 0; text-transform: none; }

/* Card icons (platforms & integrations) in the brand teal. */
.card__icon { display: block; inline-size: 30px; block-size: 30px; flex: none; color: var(--c-teal-light); }
.cards--icons .card__body { gap: 10px; }
.cards--chip.cards--icons .card__body { flex-direction: row; align-items: center; gap: 14px; }
.cards--chip.cards--icons .card__icon { inline-size: 28px; block-size: 28px; }
.sec--dark .card__icon { color: var(--c-teal-light); }

/* Demos inside solution blocks: one per row, full width and tall. */
.demos { display: flex; flex-direction: column; gap: 20px; }
.demos .demo,
.demos .demo--tall { min-block-size: clamp(380px, 52vw, 760px); }
.demos .demo.is-open { min-block-size: calc(clamp(420px, 56vw, 800px) + 52px); }

/* Text + media with the media below, centred (offices map). */
.split-below { align-items: center; text-align: center; }
.split-below .split__text { align-items: center; max-inline-size: 900px; }
.split-below .sec-head,
.split-below .sec-head__text { justify-content: center; align-items: center; text-align: center; }
.split-below .split__media { inline-size: 100%; max-inline-size: 1200px; }
.split-below .media__frame { background: transparent; }
.split-below .media__img { position: static; inline-size: 100%; block-size: auto; object-fit: contain; }
/* Hero side image: scaled down to fit the height limit instead of being cropped. */
.hero__side-img { inline-size: auto; max-inline-size: 100%; block-size: auto; object-fit: contain; }

/* Testimonials carousel (scroll-snap; three per view on desktop). */
.quotes-carousel { display: flex; flex-direction: column; gap: 24px; }
.quotes-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 20px) / 3);
	column-gap: 20px;
	margin: 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.quotes-track::-webkit-scrollbar { display: none; }
.quotes-track__item { scroll-snap-align: start; min-inline-size: 0; }
.quotes-track:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 4px; }
@media (max-width: 1000px) { .quotes-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .quotes-track { grid-auto-columns: 88%; } }
.quotes-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.quotes-carousel__nav[hidden] { display: none; }
.quotes-carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.quotes-carousel__dot {
	inline-size: 24px;
	block-size: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.quotes-carousel__dot::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	inline-size: 8px;
	block-size: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: var(--c-line-2);
	transition: background-color .2s, transform .2s;
}
.quotes-carousel__dot[aria-current="true"]::after { background: var(--c-ink); transform: scale(1.25); }
.quotes-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	border: 1px solid var(--c-line-2);
	border-radius: 50%;
	background: #fff;
	color: var(--c-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.quotes-carousel__arrow:hover { border-color: var(--c-ink); }
[dir="rtl"] .quotes-carousel__arrow span { display: inline-block; transform: scaleX(-1); }

/* Feature modules (Sales & Broker Panel): alternating text / screenshot rows. */
.modules .stack--lg { gap: clamp(56px, 7vw, 96px); }
.module { gap: 32px clamp(40px, 5vw, 72px); }
.module__text { flex: 1 1 360px; gap: 14px; }
.module__media { flex: 1.35 1 480px; }
.module__name {
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-teal);
}
.sec--dark .module__name { color: var(--c-teal-light); }
.module__headline { margin: 0; }
.module__copy { color: var(--c-muted); }
.module__list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.module__list li { position: relative; padding-inline-start: 26px; color: var(--c-ink-2); }
.module__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	inset-block-start: .55em;
	inline-size: 12px;
	block-size: 6px;
	border-inline-start: 2px solid var(--c-teal-light);
	border-block-end: 2px solid var(--c-teal-light);
	transform: translateY(-50%) rotate(-45deg);
}
[dir="rtl"] .module__list li::before { transform: translateY(-50%) rotate(45deg); }
.module__shots { display: grid; gap: 12px; margin: 0; }
.module__shots--multi { grid-template-columns: minmax(0, 1fr); }
.module__shot { display: block; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg-2); cursor: zoom-in; }
.module__img { display: block; inline-size: 100%; block-size: auto; transition: transform .4s var(--ease); }
.module__shot:hover .module__img { transform: scale(1.015); }
[dir="rtl"] .module__name { letter-spacing: 0; text-transform: none; }

/* Case studies hub: image on the left, text on the right (as on the previous site). */
.cards--rows { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cards--rows .card--project { flex-direction: row; align-items: stretch; }
.cards--rows .card__media { flex: 0 0 min(46%, 560px); }
.cards--rows .card__media .card__img { block-size: 100%; min-block-size: 280px; object-fit: cover; }
.cards--rows .card__body { justify-content: center; padding: clamp(24px, 3vw, 44px); gap: 12px; }
.cards--rows .card--project .card__title { font-size: clamp(20px, 2vw, 26px); -webkit-line-clamp: 3; line-clamp: 3; }
.cards--rows .card--project .card__text { font-size: 16px; }
@media (max-width: 760px) {
	.cards--rows .card--project { flex-direction: column; }
	.cards--rows .card__media { flex-basis: auto; }
	.cards--rows .card__media .card__img { min-block-size: 0; block-size: auto; aspect-ratio: 8 / 5; }
}

/* Work hub: taller tiles (closer to the previous portfolio). */
.mosaic { grid-auto-rows: clamp(240px, 26vw, 400px); }
@media (max-width: 760px) { .mosaic { grid-auto-rows: clamp(220px, 60vw, 320px); } }

/* Blog: author link, tags and author box. */
.article__main { display: flex; flex-direction: column; gap: 36px; min-inline-size: 0; max-inline-size: 760px; }
.article__author { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.article__tags { display: flex; flex-direction: column; gap: 10px; padding-block-start: 24px; border-block-start: 1px solid var(--c-line); }
.article__tags .chip { font-size: 14px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: var(--radius); }
.author-box__photo { flex: none; }
.author-box__img,
.author-box__ini { inline-size: 72px; block-size: 72px; border-radius: 50%; object-fit: contain; background: var(--c-ink); }
.author-box__img { padding: 8px; }
.author-box__ini { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 26px; }
.author-box__body { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.author-box__body .lbl { margin: 0; }
.author-box__name { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 19px; }
.author-box__name a { color: inherit; text-decoration: none; }
.author-box__position { margin: 0; color: var(--c-muted); font-size: 15px; }
.author-box__bio,
.author-box__spec { margin: 0; font-size: 16px; color: var(--c-ink-2); }
.lbl--inline { display: inline; margin: 0; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* ---------- Print ---------- */
@media print {
	.site-header,
	.site-footer,
	.cta-band,
	.demo,
	.facade { display: none !important; }
	.hero,
	.sec--dark { background: #fff !important; color: #000 !important; }
}
