/* ══════════════════════════════════════════════════════════════
   FTS Group — "Living group system" design layer
   Loaded after styles.css on the homepage AND every route page (the
   route-page section is at the bottom). Everything here builds on the
   tokens in styles.css (--bg, --surface, --text, --gold, …).

   The one new idea: --accent. Group gold is the default; while a
   company is in focus, app.js sets --accent on <html> to that
   company's colour and the page glow, panel rings and chips re-tint.
   ══════════════════════════════════════════════════════════════ */

/* Registered so the colour itself can transition (unregistered custom
   properties swap instantly). */
@property --accent {
	syntax: "<color>";
	inherits: true;
	initial-value: #c9a227;
}

:root {
	--accent: #c9a227;
	--pad-x: clamp(20px, 5vw, 80px);
	--home-max: 1440px;
	transition: --accent 0.9s var(--ease);
}

/* Accent as TEXT needs more contrast on the light theme. Re-declared on
   every element that sets its own --accent, because a custom property
   inherits its computed value, not the formula. */
:root,
.has-accent {
	--accent-ink: var(--accent);
}
[data-theme="light"],
[data-theme="light"] .has-accent {
	--accent-ink: color-mix(in srgb, var(--accent) 55%, #000);
}

/* ── Page-wide accent wash ── */
.accent-wash {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(
			60% 50% at 82% 12%,
			color-mix(in srgb, var(--accent) 5%, transparent),
			transparent 70%
		);
}
[data-theme="light"] .accent-wash {
	opacity: 0.75;
}

/* Arabic gets Cairo (no tracking) on the new mono labels too */
html[lang="ar"] .bt-kicker,
html[lang="ar"] .sp-num,
html[lang="ar"] .ss,
html[lang="ar"] .story-hint,
html[lang="ar"] .lf-kicker,
html[lang="ar"] .case__sector,
html[lang="ar"] .mega-foot__label,
html[lang="ar"] .hx-stats .stat__label {
	font-family: var(--font-ar);
	letter-spacing: 0;
	text-transform: none;
}

/* Arabic display type needs more leading than the tight Latin settings,
   or the dots and descenders collide between lines. */
html[lang="ar"] .split-head .section-title,
html[lang="ar"] .cta-split__title,
html[lang="ar"] .lf-name,
html[lang="ar"] .story-title {
	line-height: 1.3;
	letter-spacing: 0;
}

/* Rail arrows only when the rail actually overflows (set by app.js) */
.rail-btns[hidden] {
	display: none;
}

/* ══════════════════════════════════════════
   STAGE — the globe stays pinned behind the
   hero and the company story.
   ══════════════════════════════════════════ */
.stage {
	position: relative;
	/* 0 → 1 as the story scrolls; set by app.js */
	--sp: 0;
}

/* An absolute layer the size of the stage, with a sticky viewport-sized
   child: the globe stays put while the stage scrolls and leaves exactly
   when the story ends. (No overflow on the layer — that would make it a
   scroll container and break sticky.) */
.stage-globe {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.stage-globe__pin {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.hx-globe {
	--gx: 24%;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateX(calc(var(--gx) * (1 - var(--sp))))
		scale(calc(1.08 + var(--sp) * 0.12));
	opacity: calc(0.62 - var(--sp) * 0.34);
	-webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
[dir="rtl"] .hx-globe {
	--gx: -24%;
}
.hx-globe canvas {
	width: 100%;
	height: 100%;
	display: block;
}
.hx-globe .hero-globe__fallback {
	display: block;
	width: min(70vh, 640px);
	height: auto;
	opacity: 0.8;
}
.hx-globe.is-live .hero-globe__fallback {
	display: none;
}
[data-theme="light"] .hx-globe {
	opacity: calc(0.75 - var(--sp) * 0.4);
}

/* ══════════════════════════════════════════
   HERO — asymmetric: copy on the start side,
   the globe bleeding off the end side.
   ══════════════════════════════════════════ */
.hx {
	position: relative;
	z-index: 1;
	min-height: calc(100vh - var(--nav-h));
	min-height: calc(100svh - var(--nav-h));
	max-width: var(--home-max);
	margin-inline: auto;
	padding: 56px var(--pad-x) 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hx-copy {
	max-width: 700px;
	padding-bottom: 150px;
}

.hx-wordmark {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 6px 0 26px;
	font-family: var(--font-en);
	font-stretch: 112%;
	font-weight: 700;
	font-size: clamp(76px, 12vw, 196px);
	line-height: 0.84;
	letter-spacing: -0.045em;
}
.hx-wordmark__solid {
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* keeps the descender-free gradient from clipping at the edge */
	padding-inline-end: 0.04em;
}
.hx-wordmark__line {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--gold);
	padding-inline-end: 0.04em;
}

.hx-title {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(24px, 2.7vw, 40px);
	line-height: 1.25;
	margin-bottom: 12px;
}
html[lang="en"] .hx-title {
	font-stretch: 108%;
	letter-spacing: -0.015em;
}

.hx-rotator {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45ch;
	font-size: clamp(17px, 1.6vw, 22px);
	color: var(--text-dim);
	margin-bottom: 22px;
}
.hx-rotator__word {
	--word: var(--gold);
	display: inline-block;
	font-weight: 800;
	color: var(--word);
	transition:
		opacity 0.35s var(--ease),
		transform 0.35s var(--ease),
		color 0.35s var(--ease);
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% /
		100% 2px;
	padding-bottom: 2px;
}
[data-theme="light"] .hx-rotator__word {
	color: color-mix(in srgb, var(--word) 55%, #000);
}
.hx-rotator__word.is-out {
	opacity: 0;
	transform: translateY(-10px);
}

.hx-desc {
	max-width: 560px;
	font-size: clamp(15px, 1.25vw, 18px);
	line-height: 1.9;
	color: var(--text-dim);
	margin-bottom: 34px;
}

.hx-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.hx-cta .btn {
	min-height: 52px;
}

/* Stats ticker along the hero's bottom edge */
.hx-stats {
	position: absolute;
	inset-inline: var(--pad-x);
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--hairline);
}
.hx-stats .stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 0 28px;
	padding-inline-end: 20px;
	text-align: start;
	background: none;
	border: 0;
	box-shadow: none;
	min-width: 0;
}
.hx-stats .stat + .stat {
	padding-inline-start: 24px;
	border-inline-start: 1px solid var(--hairline);
}
.hx-stats .stat__num {
	font-family: var(--font-en);
	font-size: clamp(36px, 3.6vw, 56px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0;
}
.hx-stats .stat__label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.45;
	color: var(--text-dim);
	max-width: 14ch;
}
html[lang="ar"] .hx-stats .stat__label {
	font-size: 14px;
}

/* ══════════════════════════════════════════
   GROUP STORY
   .story--pinned (added by app.js on wide,
   motion-OK screens) turns it into a sticky
   400vh scroll sequence.
   ══════════════════════════════════════════ */
.story {
	position: relative;
	z-index: 1;
}
.story-pin {
	max-width: var(--home-max);
	margin-inline: auto;
	padding: 72px var(--pad-x);
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.story--pinned {
	height: 420vh;
}
.story--pinned .story-pin {
	position: sticky;
	top: var(--nav-h);
	height: calc(100vh - var(--nav-h));
	height: calc(100svh - var(--nav-h));
	padding-block: 28px;
}

.story-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.story-head .eyebrow {
	margin-bottom: 10px;
}
.story-title {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(28px, 3.3vw, 52px);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
html[lang="en"] .story-title {
	font-stretch: 112%;
}

.story-core {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	padding: 8px;
	padding-inline-end: 20px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface) 72%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.story-core img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}
.story-core__name {
	font-weight: 700;
	line-height: 1.2;
}
.story-core__sub {
	font-size: 12px;
	color: var(--text-muted);
}

.story-panels {
	flex: 1;
	min-height: 0;
	display: flex;
	gap: 14px;
}

/* ── Company panel ── */
.sp {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	container-type: inline-size;
	border-radius: 28px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 74%, transparent);
	backdrop-filter: blur(18px) saturate(130%);
	-webkit-backdrop-filter: blur(18px) saturate(130%);
	overflow: hidden;
	transition:
		flex-grow 0.85s var(--ease-inout),
		border-color 0.6s var(--ease),
		box-shadow 0.6s var(--ease);
}
.sp::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--accent);
	opacity: 0.35;
	transition: opacity 0.6s var(--ease);
}
.sp.is-active {
	border-color: color-mix(in srgb, var(--accent) 50%, transparent);
	box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.5);
}
.sp.is-active::before {
	opacity: 1;
}
.story--pinned .sp.is-active {
	flex-grow: 4.4;
}

.sp-inner {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.4vw, 38px);
}

.sp-ghost {
	position: absolute;
	inset-inline-end: -0.05em;
	bottom: -0.2em;
	font-family: var(--font-en);
	font-weight: 700;
	font-size: clamp(120px, 34cqi, 340px);
	line-height: 1;
	letter-spacing: -0.06em;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 40%, transparent);
	pointer-events: none;
	user-select: none;
}

.sp-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.sp-num {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	color: var(--accent-ink);
}
.sp-logo {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 16px;
	object-fit: contain;
	background: #fff;
	padding: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sp-name {
	font-family: var(--font-en);
	font-stretch: 108%;
	font-weight: 700;
	font-size: clamp(22px, 7cqi, 46px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin-top: 8px;
}
.sp-tag {
	color: var(--text-dim);
	font-size: 15px;
	line-height: 1.6;
	max-width: 52ch;
}

.sp-services {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	margin-top: auto;
	animation: sp-in 0.7s var(--ease) both;
}
.sp-services li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--hairline);
	font-weight: 600;
	font-size: clamp(15px, 2.6cqi, 20px);
}
.sp-services li span {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--accent-ink);
	flex-shrink: 0;
}

.sp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	animation: sp-in 0.7s 0.08s var(--ease) both;
}
.sp-cta {
	background: var(--accent);
	color: #07070a;
}
.sp-cta:hover {
	transform: translateY(-2px);
}
.sp-link {
	color: var(--accent-ink);
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
	background: transparent;
}
.sp-link:hover {
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	transform: translateY(-2px);
}
.sp .btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
}
[dir="rtl"] .sp .btn .dir {
	transform: scaleX(-1);
}

@keyframes sp-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* Whole-panel hit area for the panels that are not in focus (pinned
   mode only) — jumps the scroll to that company's step. */
.sp-hit {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 2;
	border: 0;
	border-radius: inherit;
	background: transparent;
	cursor: pointer;
}
.story--pinned .sp:not(.is-active) .sp-hit {
	display: block;
}
.sp-hit:focus-visible {
	outline: 2px solid var(--accent-ink);
	outline-offset: -4px;
}
@media (hover: hover) {
	.story--pinned .sp:not(.is-active):hover {
		border-color: color-mix(in srgb, var(--accent) 35%, transparent);
	}
}

/* Overview width (all three side by side): no services/actions.
   Pinned mode only: on phones the panels are narrow too, but there
   they must show everything. */
@container (max-width: 460px) {
	.story--pinned .sp-services,
	.story--pinned .sp-actions {
		display: none;
	}
	.story--pinned .sp-name {
		font-size: clamp(22px, 9cqi, 34px);
		margin-top: auto;
	}
}
/* Spine width (another company in focus): vertical name only */
@container (max-width: 250px) {
	.story--pinned .sp-inner {
		align-items: center;
		padding-inline: 14px;
	}
	.story--pinned .sp-top {
		flex-direction: column;
	}
	.story--pinned .sp-tag {
		display: none;
	}
	.story--pinned .sp-name {
		writing-mode: vertical-rl;
		font-size: clamp(16px, 11cqi, 24px);
		white-space: nowrap;
		min-height: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	html[lang="en"] .story--pinned .sp-name {
		transform: rotate(180deg);
	}
	.story--pinned .sp-ghost {
		font-size: 60cqi;
	}
}

/* Step bar */
.story-foot {
	display: flex;
	align-items: center;
	gap: 28px;
}
.story-steps {
	flex: 1;
	display: flex;
	gap: 10px;
}
.ss {
	--accent-ink: var(--accent);
	flex: 1;
	min-width: 0;
	padding: 12px 0 0;
	border: 0;
	border-top: 2px solid var(--hairline);
	background: none;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: start;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition:
		color 0.4s var(--ease),
		border-color 0.4s var(--ease);
}
.ss:hover {
	color: var(--text);
}
.ss.is-active {
	color: var(--text);
	border-top-color: var(--accent-ink);
}
.story-hint {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
	white-space: nowrap;
}

/* Short screens (laptops ~650–820px tall): tighten the pinned story
   so the open panel's services, chips and buttons stay inside it. */
@media (max-height: 820px) {
	.story--pinned .story-pin {
		padding-block: 14px;
		gap: 12px;
	}
	.story--pinned .story-head .eyebrow {
		display: none;
	}
	.story--pinned .story-title {
		font-size: clamp(24px, 2.4vw, 34px);
	}
	.story--pinned .story-core {
		padding: 4px;
		padding-inline-end: 14px;
	}
	.story--pinned .story-core img {
		width: 34px;
		height: 34px;
	}
	.story--pinned .sp-inner {
		gap: 10px;
		padding: 18px 22px;
	}
	.story--pinned .sp-logo {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}
	.story--pinned .sp-name {
		font-size: clamp(22px, 5cqi, 34px);
	}
	.story--pinned .sp.is-active .sp-name {
		margin-top: 0;
	}
	.story--pinned .sp-tag {
		font-size: 14px;
		line-height: 1.5;
	}
	.story--pinned .sp.is-active .sp-tag {
		display: none;
	}
	.story--pinned .sp-services li {
		padding: 8px 0;
		font-size: 15px;
	}
	.story--pinned .sp .btn {
		min-height: 44px;
		padding-block: 10px;
	}
	.story--pinned .sp-chip {
		min-height: 36px;
	}
	.story--pinned .story-foot {
		gap: 18px;
	}
	.story--pinned .ss {
		padding-top: 8px;
	}
}

/* Stacked (phones, tablets, reduced motion) */
.story:not(.story--pinned) .story-panels {
	flex-direction: column;
}
.story:not(.story--pinned) .sp {
	flex: none;
}
.story:not(.story--pinned) .sp-inner {
	min-height: 0;
}
.story:not(.story--pinned) .sp-services {
	grid-template-columns: minmax(0, 1fr);
	margin-top: 8px;
}
.story:not(.story--pinned) .story-foot {
	display: none;
}

/* ══════════════════════════════════════════
   SHARED — asymmetric section header
   ══════════════════════════════════════════ */
.split-head {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: end;
	gap: 18px 64px;
	margin-bottom: 52px;
	text-align: start;
}
.split-head .section-title {
	font-size: clamp(34px, 4.6vw, 66px);
	line-height: 1.05;
	margin: 0;
}
.split-head .section-desc {
	margin: 0;
	max-width: 44ch;
}

#scale,
#team,
#clients,
#contact {
	padding-inline: var(--pad-x);
}
#scale .inner,
#team .inner,
#clients .inner,
#contact .inner {
	max-width: var(--home-max);
}

/* ══════════════════════════════════════════
   AT A GLANCE — bento board
   ══════════════════════════════════════════ */
.bento {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: minmax(180px, auto);
	gap: 14px;
}

.bt {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 26px;
	border-radius: 26px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	overflow: hidden;
	transition:
		border-color 0.4s var(--ease),
		transform 0.4s var(--ease);
}
@media (hover: hover) {
	.bt:hover {
		border-color: var(--border-strong);
		transform: translateY(-3px);
	}
}
.bt--clients,
.bt--map {
	grid-column: span 2;
	grid-row: span 2;
}
.bt--companies,
.bt--team,
.bt--eta {
	grid-column: span 2;
}
.bt--sectors {
	grid-column: span 4;
}
.bt--modules {
	grid-column: 1 / -1;
}

.bt-kicker {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}
html[lang="ar"] .bt-kicker {
	font-size: 14px;
	font-weight: 700;
}
.bt-num {
	font-family: var(--font-en);
	font-weight: 700;
	font-size: clamp(56px, 6.4vw, 108px);
	line-height: 0.9;
	letter-spacing: -0.045em;
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	align-self: flex-start;
}
.bt--companies .bt-num,
.bt--team .bt-num {
	font-size: clamp(48px, 4.6vw, 76px);
}
.bt-label {
	font-size: 15px;
	color: var(--text-dim);
	line-height: 1.5;
}

/* Clients tile: logo coins along the bottom */
.bt--clients {
	justify-content: space-between;
	background:
		color-mix(in srgb, var(--surface) 88%, transparent);
}
.coins {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.coins span {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	padding: 9px;
	box-shadow:
		0 0 0 1px var(--hairline),
		0 0 0 3px var(--surface);
}
.coins img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Companies tile: a row of accent pills */
.bt-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.pills {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-end;
	min-width: 0;
}
.pill {
	--accent-ink: var(--accent);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

/* Team tile: overlapping faces */
.faces {
	display: flex;
	padding-inline-start: 10px;
}
.faces img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
	margin-inline-start: -10px;
	box-shadow: 0 0 0 3px var(--surface);
}

/* Sectors / modules */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}
.chips li {
	list-style: none;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--hairline);
	font-size: 14px;
	font-weight: 600;
}
.cells {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
	gap: 8px;
	margin-top: auto;
}
.cells li {
	padding: 12px 10px;
	border-radius: 14px;
	background: var(--surface-2);
	border: 1px solid var(--hairline);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

/* ETA highlight */
.bt--eta {
	border-color: var(--border-strong);
	background:
		color-mix(in srgb, var(--surface) 88%, transparent);
}
.bt--eta h3 {
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
}
.bt--eta p {
	color: var(--text-dim);
	font-size: 14px;
	line-height: 1.7;
}
.bt-check {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--gold-grad);
	color: #07070a;
}
.bt-check svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Map tile — dot map of Egypt + Arabia from the globe's land mask */
.bt--map {
	padding: 0;
}
.bt--map .bt-kicker {
	position: absolute;
	top: 24px;
	inset-inline-start: 26px;
	z-index: 1;
}
.dotmap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.dotmap .land {
	fill: var(--gold);
	opacity: 0.55;
}
.dotmap .sea {
	fill: var(--text-muted);
	opacity: 0.22;
}
.dotmap .arc {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.4;
	stroke-dasharray: 4 5;
	animation: dash 1.6s linear infinite;
}
.dotmap .pin {
	fill: var(--gold);
}
.dotmap .pulse {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.4;
	transform-box: fill-box;
	transform-origin: center;
	animation: pulse 2.4s var(--ease) infinite;
}
@keyframes dash {
	to {
		stroke-dashoffset: -18;
	}
}
@keyframes pulse {
	from {
		transform: scale(0.6);
		opacity: 1;
	}
	to {
		transform: scale(2.6);
		opacity: 0;
	}
}
.dotmap .map-label {
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 800;
	fill: var(--text);
	paint-order: stroke;
	stroke: var(--surface);
	stroke-width: 5px;
	stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   LEADERSHIP — editorial spread
   ══════════════════════════════════════════ */
.lf {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
	margin-bottom: 28px;
}
.lf-photo {
	position: relative;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--surface-2);
	box-shadow: var(--shadow-lg);
}
.lf-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--border-strong);
	pointer-events: none;
}
.lf-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}
.lf-kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 14px;
}
html[lang="ar"] .lf-kicker {
	font-size: 15px;
	font-weight: 700;
}
.lf-name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(32px, 4vw, 60px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin-bottom: 22px;
}
html[lang="en"] .lf-name {
	font-stretch: 108%;
}
.lf-orgs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	list-style: none;
}
.lf-orgs li {
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	font-size: 13px;
	font-weight: 600;
}

.bio-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--gold);
	text-decoration: none;
	border-bottom: 1px solid var(--border-strong);
	padding-bottom: 3px;
	transition:
		gap 0.3s var(--ease),
		border-color 0.3s var(--ease);
}
/* Invisible 44px-tall hit area — keeps the slim underline look while
   staying easy to tap on phones. */
.bio-link::after {
	content: "";
	position: absolute;
	inset: -8px -6px;
}
.bio-link:hover {
	gap: 12px;
	border-color: var(--gold);
}
.bio-link svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
}
[dir="rtl"] .bio-link svg {
	transform: scaleX(-1);
}

/* Two CEOs side by side */
.duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 56px;
}
.duo-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 18px;
	border-radius: 26px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.duo-card img {
	width: 132px;
	height: 160px;
	border-radius: 18px;
	object-fit: cover;
	object-position: top;
}
.person-name {
	font-family: var(--font-head);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 6px;
}
.person-role {
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-dim);
	margin-bottom: 12px;
}

/* Credential rail */
.rail-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.rail-title {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 800;
}
.rail-btns {
	display: flex;
	gap: 8px;
}
.rail-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	background: transparent;
	color: var(--gold);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background 0.3s var(--ease);
}
.rail-btn:hover {
	background: var(--gold-soft);
}
.rail-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
[dir="rtl"] .rail-btn svg {
	transform: scaleX(-1);
}
.rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, calc((100% - 42px) / 4));
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	list-style: none;
}
.rail::-webkit-scrollbar {
	display: none;
}
.rail-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: 14px 14px 20px;
	border-radius: 24px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	transition: border-color 0.4s var(--ease);
}
.rail-card:hover {
	border-color: var(--border-strong);
}
.rail-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: top;
	border-radius: 16px;
	margin-bottom: 16px;
	filter: grayscale(0.35);
	transition: filter 0.4s var(--ease);
}
.rail-card:hover img {
	filter: none;
}
.rail-card .person-name {
	font-size: 18px;
}
.rail-card .person-role {
	font-size: 13px;
	flex: 1;
}

/* ══════════════════════════════════════════
   PROOF — logo wall + client stories
   ══════════════════════════════════════════ */
.logo-wall {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	margin-bottom: 28px;
}
/* Logos sit on a fixed light tile in both themes, so the white boxes
   baked into the JPEG logos disappear and every mark gets the same frame. */
.logo-wall li {
	height: 112px;
	border-radius: 20px;
	background: #f7f5f0;
	display: grid;
	place-items: center;
	padding: 18px 26px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
	transition:
		transform 0.4s var(--ease),
		box-shadow 0.4s var(--ease);
}
.logo-wall img {
	max-width: 100%;
	max-height: 64px;
	object-fit: contain;
	mix-blend-mode: multiply;
	filter: grayscale(1) contrast(1.05);
	opacity: 0.78;
	transition:
		filter 0.4s var(--ease),
		opacity 0.4s var(--ease);
}
.logo-wall li:hover {
	transform: translateY(-3px);
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.06),
		0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.logo-wall li:hover img {
	filter: none;
	opacity: 1;
}
@media (hover: none) {
	.logo-wall img {
		filter: none;
		opacity: 1;
	}
}

.cases {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 14px;
}
.cases:empty {
	display: none;
}
.case {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 22px;
	padding: 28px;
	border-radius: 26px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	overflow: hidden;
}
.case::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 3px;
	background: var(--accent);
}
.case__logo {
	width: 76px;
	height: 76px;
	border-radius: 18px;
	background: #fff;
	padding: 10px;
	object-fit: contain;
}
.case__sector {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-ink);
	margin-bottom: 6px;
}
.case__title {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 8px;
}
.case__desc {
	color: var(--text-dim);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 10px;
}
.case__client {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-muted);
}

/* ══════════════════════════════════════════
   CONTACT — split CTA
   ══════════════════════════════════════════ */
.cta-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.cta-split__title {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(38px, 5.4vw, 80px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin-bottom: 18px;
}
html[lang="en"] .cta-split__title {
	font-stretch: 112%;
}
.cta-split .section-desc {
	margin: 0 0 30px;
}

.quick {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.quick a {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px;
	border-radius: 22px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	color: var(--text);
	text-decoration: none;
	transition:
		border-color 0.35s var(--ease),
		transform 0.35s var(--ease);
	min-width: 0;
}
.quick a:hover {
	border-color: var(--border-strong);
	transform: translateY(-3px);
}
.quick svg {
	width: 26px;
	height: 26px;
	fill: url(#goldGrad);
}
.quick__label {
	font-weight: 800;
	font-size: 16px;
}
.quick__value {
	display: block;
	font-size: 13px;
	color: var(--text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.quick a.quick--wa {
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	border-color: var(--border-strong);
}

.cta-split__form {
	max-width: none;
	margin: 0;
	padding: clamp(22px, 3vw, 36px);
	border-radius: 28px;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	box-shadow: var(--shadow-lg);
}
.cta-split__form .btn {
	justify-self: stretch;
	justify-content: center;
}

/* ══════════════════════════════════════════
   FOOTER — big closing wordmark
   ══════════════════════════════════════════ */
/* footer (element) in styles.css is a flex row — reset it here */
footer.mega-foot {
	position: relative;
	z-index: 1;
	display: block;
	overflow: hidden;
	padding: 72px var(--pad-x) 28px;
	border-top: 1px solid var(--hairline);
	background: var(--surface);
	text-align: start;
}
.mega-foot__brand img {
	width: auto;
	height: 40px;
}
.mega-foot__cols {
	max-width: var(--home-max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
}
.mega-foot__brand p {
	color: var(--text-dim);
	margin: 14px 0 10px;
	max-width: 32ch;
}
.mega-foot__brand a {
	color: var(--gold);
	text-decoration: none;
	font-size: 14px;
}
.mega-foot__label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 14px;
}
html[lang="ar"] .mega-foot__label {
	font-size: 13px;
}
.mega-foot__list {
	list-style: none;
	display: grid;
	gap: 0;
}
.mega-foot__list a {
	display: inline-block;
	padding-block: 9px;
	color: var(--text);
	text-decoration: none;
	font-size: 15px;
	transition: color 0.3s var(--ease);
}
.mega-foot__list a:hover {
	color: var(--gold);
}
.mega-foot__list .dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-inline-end: 10px;
	vertical-align: middle;
}
.mega-foot__mark {
	max-width: var(--home-max);
	margin: 48px auto 0;
	font-family: var(--font-en);
	font-stretch: 112%;
	font-weight: 700;
	font-size: clamp(64px, 15.5vw, 250px);
	line-height: 0.8;
	letter-spacing: -0.05em;
	text-align: center;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px var(--border-strong);
	user-select: none;
}
.mega-foot__base {
	max-width: var(--home-max);
	margin: 28px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--hairline);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--text-muted);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
	.bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.bt--eta {
		grid-column: span 4;
	}
	.rail {
		grid-auto-columns: minmax(240px, calc((100% - 28px) / 3));
	}
}

@media (max-width: 900px) {
	/* Globe sits behind the hero only; the story is stacked */
	.stage-globe__pin {
		position: relative;
	}
	.hx-globe,
	[dir="rtl"] .hx-globe {
		--gx: 0%;
		opacity: 0.32;
		transform: translateY(-6%) scale(1.15);
	}
	.hx {
		padding-top: 40px;
	}
	.hx-copy {
		padding-bottom: 40px;
	}
	.hx-stats {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-bottom: 8px;
	}
	.hx-stats .stat {
		padding: 18px 0;
		padding-inline-end: 12px;
		border-bottom: 1px solid var(--hairline);
	}
	.hx-stats .stat + .stat {
		padding-inline-start: 0;
		border-inline-start: 0;
	}
	.hx-stats .stat:nth-child(even) {
		padding-inline-start: 16px;
		border-inline-start: 1px solid var(--hairline);
	}
	.story-pin {
		padding-block: 56px 16px;
	}
	.story-head {
		flex-direction: column;
		align-items: flex-start;
	}
	.split-head,
	.lf,
	.cta-split,
	.mega-foot__cols {
		grid-template-columns: minmax(0, 1fr);
	}
	.lf-photo {
		max-width: 420px;
	}
	.duo {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	/* Lead on its own line, so the rotating phrase always takes the line
	   below and the hero doesn't jump when a longer phrase comes in. */
	.hx-rotator > span:first-child {
		flex-basis: 100%;
	}
	/* The longest English phrase wraps to two lines on a phone. */
	html[lang="en"] .hx-rotator {
		min-height: calc(3lh + 6px);
	}
	.section#scale,
	.section#team,
	.section#clients,
	.section#contact {
		padding-block: 72px;
	}
	.hx-wordmark {
		font-size: clamp(64px, 22vw, 110px);
	}
	.hx-cta .btn {
		flex: 1;
		justify-content: center;
	}
	.bento {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
	}
	.bt--clients,
	.bt--map,
	.bt--companies,
	.bt--team,
	.bt--sectors,
	.bt--modules,
	.bt--eta {
		grid-column: auto;
		grid-row: auto;
	}
	.bt--map {
		min-height: 280px;
	}
	.bt-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.pills {
		align-items: flex-start;
	}
	.bt--clients .bt-num {
		margin-bottom: 18px;
	}
	.duo-card {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 16px;
	}
	.duo-card img {
		width: 96px;
		height: 120px;
	}
	.rail {
		grid-auto-columns: 74%;
	}
	.logo-wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.logo-wall li {
		height: 92px;
		padding: 14px 18px;
	}
	/* Odd count in two columns: let the last logo span the row instead of
	   sitting alone with an empty cell beside it. */
	.logo-wall li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.case {
		grid-template-columns: minmax(0, 1fr);
	}
	.quick {
		grid-template-columns: minmax(0, 1fr);
	}
	.quick a {
		flex-direction: row;
		align-items: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		transition: none;
	}
	.dotmap .arc,
	.dotmap .pulse,
	.sp-services,
	.sp-actions {
		animation: none;
	}
	.sp,
	.hx-rotator__word {
		transition: none;
	}
}

/* ══════════════════════════════════════════════════════════════
   ROUTE PAGES
   site.js puts .route on <body>, and on a company page sets the page
   --accent to that company's colour (body[data-company]).
   ══════════════════════════════════════════════════════════════ */
.route .section {
	padding-inline: var(--pad-x);
}
.route .section .inner {
	max-width: var(--home-max);
}
.route .section--alt {
	background: transparent;
	border-block: 1px solid var(--hairline);
}

/* ── Page hero: big asymmetric title + a giant outlined ghost mark ── */
.route .page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 104px) var(--pad-x) clamp(56px, 7vw, 96px);
	border-bottom: 1px solid var(--hairline);
}
.route .page-hero .inner {
	position: relative;
	z-index: 1;
	max-width: var(--home-max);
}
.route .page-hero::after {
	content: attr(data-ghost);
	position: absolute;
	z-index: 0;
	inset-inline-end: -0.04em;
	bottom: -0.24em;
	font-family: var(--font-en);
	font-stretch: 112%;
	font-weight: 700;
	font-size: clamp(140px, 24vw, 380px);
	line-height: 1;
	letter-spacing: -0.06em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent);
	pointer-events: none;
	user-select: none;
}
.route .page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	display: none;
}

.route .breadcrumb a {
	color: var(--accent-ink);
}
.route .eyebrow {
	color: var(--accent-ink);
}
.route .eyebrow::before {
	background: var(--accent);
}

.route .page-title {
	max-width: 15ch;
	font-weight: 800;
	font-size: clamp(44px, 7vw, 112px);
	line-height: 1;
	letter-spacing: -0.035em;
	margin-bottom: 26px;
}
html[lang="ar"] .route .page-title {
	line-height: 1.25;
	letter-spacing: 0;
}
.route .page-title.latin {
	font-family: var(--font-en);
	font-stretch: 112%;
}
.route .page-lead {
	max-width: 58ch;
	font-size: clamp(17px, 1.45vw, 21px);
}

.ph-logo {
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: #fff;
	padding: 8px;
	object-fit: contain;
	margin-bottom: 26px;
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}
.ph-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}
.ph-cta .btn {
	min-height: 52px;
}

/* Accent-coloured buttons on company pages */
.route[data-company] .btn-primary {
	background: var(--accent);
	color: #07070a;
}
.route[data-company] .btn-ghost {
	color: var(--accent-ink);
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.route[data-company] .btn-ghost:hover {
	background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── Services: numbered tiles ── */
.svc {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 14px;
}
.svc li {
	position: relative;
	min-height: 210px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: 28px;
	border-radius: 26px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	overflow: hidden;
	transition:
		border-color 0.4s var(--ease),
		transform 0.4s var(--ease);
}
.svc li::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	inset: 0 0 auto 0;
	height: 2px;
	background: var(--accent);
	opacity: 0.5;
}
@media (hover: hover) {
	.svc li:hover {
		border-color: color-mix(in srgb, var(--accent) 45%, transparent);
		transform: translateY(-3px);
	}
}
.svc-num {
	position: relative;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--accent-ink);
}
.svc-name {
	position: relative;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(20px, 1.8vw, 27px);
	line-height: 1.3;
}

/* ── Why us: title on one side, numbered points on the other ── */
.route .prose.why {
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 18px 72px;
	align-items: start;
}
.route .why > h2 {
	grid-column: 1;
	grid-row: 1 / span 4;
	margin: 0;
	font-weight: 800;
	font-size: clamp(32px, 4vw, 58px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	position: sticky;
	top: calc(var(--nav-h) + 32px);
}
html[lang="ar"] .route .why > h2 {
	line-height: 1.3;
	letter-spacing: 0;
}
.route .why > p,
.route .why > ul {
	grid-column: 2;
	margin: 0;
}
.route .why > ul {
	list-style: none;
	padding: 0;
	counter-reset: why;
	display: grid;
	gap: 12px;
}
.route .why li {
	counter-increment: why;
	position: relative;
	margin: 0;
	padding: 20px 22px;
	padding-inline-start: 66px;
	border-radius: 20px;
	border: 1px solid var(--hairline);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	font-size: 16px;
	line-height: 1.75;
}
.route .why li::before {
	content: counter(why, decimal-leading-zero);
	position: absolute;
	inset-inline-start: 22px;
	top: 23px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--accent-ink);
}
.route .why li strong {
	display: block;
	font-size: 17px;
	margin-bottom: 2px;
}
.route .prose a {
	color: var(--accent-ink);
}

/* ── Closing CTA band ── */
.route .cta-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 48px;
	align-items: end;
	margin: 0;
	padding: clamp(32px, 5vw, 72px);
	border-radius: 32px;
	text-align: start;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	background:
		color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.route .cta-band h2 {
	grid-column: 1;
	margin: 0;
	font-weight: 800;
	font-size: clamp(30px, 4.2vw, 62px);
	line-height: 1.08;
	letter-spacing: -0.02em;
}
html[lang="ar"] .route .cta-band h2 {
	line-height: 1.3;
	letter-spacing: 0;
}
.route .cta-band p {
	grid-column: 1;
	margin: 0;
	max-width: 52ch;
}
.route .cta-row {
	grid-column: 2;
	grid-row: 1 / span 2;
	justify-content: flex-end;
}
.route .cta-row .btn {
	min-height: 52px;
}

/* ── Generic info cards (brochures) ── */
.route .feature-grid {
	gap: 14px;
}
.route .feature {
	padding: 28px;
	border-radius: 26px;
	border: 1px solid var(--hairline);
	box-shadow: none;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.route .feature h3 {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 800;
}

/* ── Company panels as a grid (companies page, rest of the group) ── */
.group-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 14px;
}
.group-panels .sp {
	flex: none;
}
.group-panels .sp-inner {
	min-height: 440px;
}
@media (hover: hover) {
	.group-panels .sp:hover {
		border-color: color-mix(in srgb, var(--accent) 50%, transparent);
		box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.5);
	}
	.group-panels .sp:hover::before {
		opacity: 1;
	}
}
.group-panels .sp-services {
	grid-template-columns: minmax(0, 1fr);
	margin-top: auto;
}

@media (max-width: 900px) {
	.route .prose.why,
	.route .cta-band {
		grid-template-columns: minmax(0, 1fr);
	}
	.route .why > h2 {
		position: static;
		grid-row: auto;
	}
	.route .why > p,
	.route .why > ul,
	.route .cta-row {
		grid-column: 1;
	}
	.route .cta-row {
		grid-row: auto;
		justify-content: flex-start;
	}
}
@media (max-width: 640px) {
	.route .section {
		padding-block: 64px;
	}
	.route .page-title {
		font-size: clamp(40px, 12vw, 64px);
	}
	.ph-cta .btn,
	.route .cta-row .btn {
		flex: 1;
		justify-content: center;
	}
	.svc li {
		min-height: 0;
	}
	.group-panels .sp-inner {
		min-height: 0;
	}
}

/* External-link icon inside buttons (company page hero) */
.btn svg.ext {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
}

/* ══════════════════════════════════════════
   COMPANY PANEL — resource chips
   Brochures / links / QR codes with a count;
   each opens the drawer at that block.
   ══════════════════════════════════════════ */
.sp-res {
	position: relative;
	/* above .sp-hit, so the chips open the drawer even on a panel
	   that is not in focus in the pinned story */
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	animation: sp-in 0.7s 0.04s var(--ease) both;
}
.sp-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 8px;
	padding-inline-start: 12px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
	background: color-mix(in srgb, var(--accent) 8%, transparent);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition:
		background 0.3s var(--ease),
		border-color 0.3s var(--ease),
		transform 0.3s var(--ease);
}
.sp-chip:hover {
	background: color-mix(in srgb, var(--accent) 16%, transparent);
	border-color: color-mix(in srgb, var(--accent) 60%, transparent);
	transform: translateY(-1px);
}
.sp-chip:focus-visible {
	outline: 2px solid var(--accent-ink);
	outline-offset: 2px;
}
.sp-chip svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	fill: none;
	stroke: var(--accent-ink);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sp-chip b {
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--accent);
	color: #07070a;
	font-size: 11px;
	font-weight: 700;
}

/* Pinned story: icon + count only at overview width, hidden on spines */
@container (max-width: 460px) {
	.story--pinned .sp-chip__label {
		display: none;
	}
	.story--pinned .sp-chip {
		padding-inline-start: 10px;
	}
}
@container (max-width: 250px) {
	.story--pinned .sp-res {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sp-res {
		animation: none;
	}
}

/* Company page hero: the same resource chips, under the CTAs */
.ph-res {
	margin-top: 18px;
}
.ph-res:empty {
	display: none;
}
.ph-res .sp-chip {
	min-height: 44px;
	font-size: 14px;
}
