/* ==========================================================================
   Ra2ej Digital
   Navy ground, turquoise for brand elements, beige as the warm neutral,
   orange reserved for the one action that matters on each screen.
   Layout uses logical properties throughout so Arabic (RTL) mirrors for free.
   ========================================================================== */

@font-face {
	font-family: "Alexandria";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/alexandria-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "Alexandria";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/alexandria-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Alexandria";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/alexandria-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--navy: #0d151f;
	--navy-raised: #181727;
	--teal: #77bdb8;
	--beige: #d4d39b;
	--accent: #f37029;
	--accent-hover: #ff8540;
	--text: #eef0e4;
	--text-muted: #a3b2b0;
	--line: rgb(119 189 184 / 0.14);
	--line-strong: rgb(119 189 184 / 0.3);
	--teal-wash: rgb(119 189 184 / 0.1);
	--danger: #ff8a7a;
	--brand-gradient: linear-gradient(120deg, var(--beige), var(--teal));

	--font: "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--header-h: 72px;
	--section-y: clamp(5rem, 10vw, 8.5rem);

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 32px;
	--ease-out: cubic-bezier(0.2, 0.8, 0.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) + 1rem);
	color-scheme: dark;
}

body {
	margin: 0;
	background: var(--navy);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 360;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:lang(ar) body,
body:lang(ar) {
	line-height: 1.85;
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

:where(ul, ol)[class] {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 0.2em;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}

::selection {
	background: var(--teal);
	color: var(--navy);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--teal);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.site-main:focus {
	outline: none;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

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

[dir="rtl"] .icon--flip {
	transform: scaleX(-1);
}

/* ---------- Type ---------- */

.hero__title,
.section-title,
.contact__title,
.page__title {
	font-weight: 680;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.section-title {
	font-size: clamp(2rem, 1.25rem + 2.8vw, 3.5rem);
	line-height: 1.08;
}

.section-intro {
	margin-top: 1rem;
	max-width: 34rem;
	color: var(--text-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	text-wrap: pretty;
}

:lang(ar) :is(.hero__title, .section-title, .contact__title, .page__title, h3) {
	letter-spacing: 0;
}

:lang(ar) .section-title {
	line-height: 1.35;
}

h3 {
	font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0 1.5em;
	border: 0;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 560;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		color 0.2s ease,
		transform 0.12s ease-out;
}

/* Feedback on press, not on release */
.btn:active {
	transform: scale(0.97);
}

.btn--accent {
	background: var(--accent);
	color: var(--navy);
}

.btn--accent:hover {
	background: var(--accent-hover);
}

.btn--ghost {
	background: transparent;
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
	background: var(--teal-wash);
	box-shadow: inset 0 0 0 1px var(--teal);
}

.btn--sm {
	min-height: 40px;
	padding: 0 1.15em;
	font-size: 0.9375rem;
}

.btn--lg {
	min-height: 56px;
	padding: 0 1.75em;
	font-size: 1.0625rem;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: rgb(13 21 31 / 0.72);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
}

/* Keep the header clear of the WordPress admin bar for logged-in editors */
.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* the admin bar scrolls away at this size */
	.admin-bar .site-header {
		top: 0;
	}
}

/* Scroll edge: a soft fade where content slides under the bar, instead of a hard border */
.site-header::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 100%;
	height: 24px;
	background: linear-gradient(to bottom, rgb(13 21 31 / 0.55), transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.site-header.is-scrolled::after {
	opacity: 1;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: 100%;
}

.brand {
	display: block;
	flex: none;
}

.brand__img {
	width: auto;
	height: 44px;
}

.site-nav {
	margin-inline: auto;
}

.site-nav__list {
	display: flex;
	gap: 0.25rem;
}

.site-nav__list a {
	display: block;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	color: var(--text-muted);
	font-size: 0.9375rem;
	font-weight: 450;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__list a:hover {
	color: var(--text);
	background: var(--teal-wash);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-inline-start: auto;
}

/* With the nav showing, its own auto margins place the actions; once it's hidden
   on small screens, the actions push themselves to the far edge. */
@media (min-width: 960px) {
	.site-nav + .site-header__actions {
		margin-inline-start: 0;
	}
}

.lang-switch {
	color: var(--text-muted);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.lang-switch:hover {
	color: var(--teal);
}

.menu-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--teal-wash);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle__bars,
.menu-toggle__bars::before {
	position: absolute;
	inset-inline-start: 13px;
	width: 18px;
	height: 1.75px;
	border-radius: 2px;
	background: var(--text);
	transition: transform 0.35s var(--ease-out);
}

.menu-toggle__bars {
	top: 18px;
}

.menu-toggle__bars::before {
	content: "";
	inset-inline-start: 0;
	top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(-7px) rotate(-90deg);
}

@media (max-width: 959px) {
	.site-nav,
	.site-header__cta {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.brand__img {
		height: 34px;
	}
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
	--p: 0;
	position: fixed;
	inset: 0;
	z-index: 40;
}

.mobile-menu__scrim {
	position: absolute;
	inset: 0;
	background: rgb(5 10 16 / 0.6);
	opacity: var(--p);
}

.mobile-menu__sheet {
	position: absolute;
	/* --sheet-top is the header's bottom edge, set when the menu opens */
	top: calc(var(--sheet-top, var(--header-h)) + 0.5rem);
	inset-inline: 0.75rem;
	max-height: calc(100% - var(--sheet-top, var(--header-h)) - 1.25rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1rem 1.25rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: rgb(24 23 39 / 0.88);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.4);
	opacity: var(--p);
	/* grows out of the menu button's corner */
	transform-origin: top right;
	transform: translateY(calc((1 - var(--p)) * -12px)) scale(calc(0.94 + 0.06 * var(--p)));
}

[dir="rtl"] .mobile-menu__sheet {
	transform-origin: top left;
}

.mobile-menu__list a {
	display: block;
	padding: 0.7rem 0.25rem;
	border-bottom: 1px solid var(--line);
	font-size: 1.375rem;
	font-weight: 560;
	text-decoration: none;
}

.mobile-menu__cta {
	width: 100%;
	margin-top: 1.25rem;
	min-height: 52px;
}

.menu-open {
	overflow: hidden;
}

/* ---------- Hero ---------- */

/*
 * A film of the agency's world fills the first screen. The header floats over
 * it, clear until the page scrolls, and the copy sits low over the darkest part.
 */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	margin-top: calc(-1 * var(--header-h));
	padding-block: calc(var(--header-h) + 4rem) clamp(4.5rem, 12vh, 8.5rem);
	overflow: clip;
	background: var(--navy);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__poster,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The film fades in over the still once it's moving, so there's no black flash */
.hero__video {
	opacity: 0;
	transition: opacity 1s ease;
}

.hero.is-film .hero__video {
	opacity: 1;
}

/* Deep behind the copy, clear toward the far side, fading into the page below */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, var(--navy) 0%, rgb(13 21 31 / 0.84) 26%, rgb(13 21 31 / 0.25) 60%, rgb(13 21 31 / 0.55) 100%),
		linear-gradient(to right, rgb(13 21 31 / 0.8) 0%, rgb(13 21 31 / 0.3) 50%, transparent 80%);
}

[dir="rtl"] .hero__media::after {
	background:
		linear-gradient(to top, var(--navy) 0%, rgb(13 21 31 / 0.84) 26%, rgb(13 21 31 / 0.25) 60%, rgb(13 21 31 / 0.55) 100%),
		linear-gradient(to left, rgb(13 21 31 / 0.8) 0%, rgb(13 21 31 / 0.3) 50%, transparent 80%);
}

.hero__title {
	max-width: 15ch;
	font-size: clamp(2.75rem, 1rem + 5.4vw, 5.75rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

:lang(ar) .hero__title {
	max-width: 14ch;
	line-height: 1.25;
}

.hero__lede {
	max-width: 36rem;
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	color: rgb(238 240 228 / 0.84);
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Moving content needs a way to stop it */
.hero__toggle {
	position: absolute;
	bottom: clamp(1.25rem, 4vh, 2.25rem);
	inset-inline-end: max(var(--gutter), (100% - var(--wrap)) / 2);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(13 21 31 / 0.4);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
	color: var(--text);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color 0.2s ease,
		transform 0.12s ease-out;
}

.hero__toggle[hidden] {
	display: none;
}

.hero__toggle:hover {
	background: rgb(13 21 31 / 0.65);
}

.hero__toggle:active {
	transform: scale(0.94);
}

.hero__toggle .icon {
	width: 18px;
	height: 18px;
	stroke-width: 2.2;
}

/* Media controls keep their direction in RTL, so this nudge is physical */
.hero__toggle .icon--play {
	display: none;
	margin-left: 2px;
	fill: currentColor;
	stroke-width: 1.2;
}

.hero__toggle.is-paused .icon--pause {
	display: none;
}

.hero__toggle.is-paused .icon--play {
	display: block;
}

/* Over the film the header is clear until the page scrolls */
.has-hero-film .site-header {
	transition:
		background-color 0.3s ease,
		-webkit-backdrop-filter 0.3s ease,
		backdrop-filter 0.3s ease;
}

.has-hero-film .site-header:not(.is-scrolled) {
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* One orchestrated entrance: the copy rises in while the film fades up */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	.hero__title,
	.hero__lede,
	.hero__actions {
		animation: ra2ej-rise 0.9s var(--ease-out) both;
	}

	.hero__lede {
		animation-delay: 0.08s;
	}

	.hero__actions {
		animation-delay: 0.16s;
	}
}

@keyframes ra2ej-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

/* ---------- About: story, mission, vision ---------- */

.about__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: clamp(2rem, 3vw, 2.5rem);
}

.about-card__media {
	aspect-ratio: 797 / 906;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-raised);
}

.about-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The artwork is centred, so a wider crop keeps it on small screens */
@media (max-width: 719px) {
	.about-card__media {
		aspect-ratio: 16 / 10;
	}
}

.about-card__title {
	margin-top: 1.5rem;
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	font-weight: 650;
	letter-spacing: -0.02em;
}

.about-card__text {
	margin-top: 0.6rem;
	max-width: 34rem;
	color: var(--text-muted);
	text-wrap: pretty;
}

/* ---------- Sections ---------- */

.section {
	padding-block: var(--section-y);
}

.section-head {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Audiences ---------- */

.audiences__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(2.5rem, 4vw, 3.5rem);
}

.audience {
	position: relative;
	padding-top: 1.75rem;
}

/* The logo's beige → turquoise sweep, used as the one structural accent */
.audience::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-gradient);
	opacity: 0.7;
}

[dir="rtl"] .audience::before {
	background: linear-gradient(-120deg, var(--beige), var(--teal));
}

.audience__icon {
	width: 28px;
	height: 28px;
	color: var(--teal);
}

.audience__title {
	margin-top: 1.25rem;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
	font-weight: 650;
	letter-spacing: -0.02em;
}

.audience__text {
	margin-top: 0.75rem;
	color: var(--text-muted);
	text-wrap: pretty;
}

.audience__points {
	margin-top: 1.5rem;
	display: grid;
	gap: 0.6rem;
}

.audience__points li {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	font-size: 0.9375rem;
}

.audience__points li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
	transform: translateY(-0.15em);
}

/* ---------- Services ---------- */

.services {
	background: var(--navy-raised);
}

.services__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.services__head .section-head {
	margin-bottom: 0;
}

/*
 * Wide: four columns, the first service is a 2×2 feature tile.
 *   [ feature  feature ][ 2 ][ 3 ]
 *   [ feature  feature ][ 4 ][ 5 ]
 *   [ 6 ][ 7 ][ 8 ][ 9 ]
 */
.services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: dense;
	gap: clamp(0.75rem, 1.2vw, 1.25rem);
}

.tile {
	position: relative;
	isolation: isolate;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
	transition: box-shadow 0.3s ease;
}

.tile--feature {
	grid-column: span 2;
	grid-row: span 2;
	aspect-ratio: auto;
	border-radius: var(--radius-lg);
}

.tile--plain {
	background:
		radial-gradient(90% 70% at 100% 0%, rgb(119 189 184 / 0.28), transparent 60%),
		linear-gradient(170deg, #1d2837, var(--navy));
}

.tile__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	transition: transform 1s var(--ease-out);
}

/* Legibility scrim; the artwork already darkens toward the bottom */
.tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(13 21 31 / 0.94) 0%, rgb(13 21 31 / 0.6) 34%, transparent 60%);
	pointer-events: none;
}

/* A small glass chip with the service's icon */
.tile__icon {
	position: absolute;
	top: clamp(0.85rem, 1.2vw, 1.15rem);
	inset-inline-start: clamp(0.85rem, 1.2vw, 1.15rem);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgb(13 21 31 / 0.42);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
	color: var(--text);
}

.tile__icon .icon {
	width: 19px;
	height: 19px;
}

.tile--feature .tile__icon {
	width: 48px;
	height: 48px;
}

.tile--feature .tile__icon .icon {
	width: 22px;
	height: 22px;
}

.tile__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: clamp(1rem, 1.5vw, 1.4rem);
}

.tile--feature .tile__body {
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.tile__title {
	font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
	font-weight: 620;
	line-height: 1.25;
	text-wrap: balance;
}

.tile--feature .tile__title {
	font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.5rem);
	font-weight: 680;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

:lang(ar) .tile--feature .tile__title {
	line-height: 1.35;
	letter-spacing: 0;
}

.tile__link {
	text-decoration: none;
}

/* the whole tile is the link target */
.tile__link::before {
	content: "";
	position: absolute;
	inset: 0;
}

.tile__text {
	margin-top: 0.45rem;
	color: rgb(238 240 228 / 0.78);
	font-size: 0.875rem;
	line-height: 1.55;
	text-wrap: pretty;
}

:lang(ar) .tile__text {
	line-height: 1.75;
}

.tile--feature .tile__text {
	max-width: 28rem;
	margin-top: 0.75rem;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

@media (hover: hover) {
	.tile:hover {
		box-shadow: inset 0 0 0 1px var(--line-strong);
	}

	.tile:hover .tile__img {
		transform: scale(1.05);
	}
}

/* Medium: two columns, the feature tile becomes a wide banner */
@media (max-width: 1099px) {
	.services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tile {
		aspect-ratio: 1 / 1;
	}

	.tile--feature {
		grid-row: span 1;
		aspect-ratio: 16 / 10;
	}

	.tile--feature .tile__img {
		object-position: 50% 25%;
	}
}

/* Small: a swipeable row */
@media (max-width: 719px) {
	.services__grid {
		display: flex;
		gap: 0.75rem;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		padding-bottom: 0.25rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.services__grid::-webkit-scrollbar {
		display: none;
	}

	.tile,
	.tile--feature {
		flex: 0 0 min(80vw, 340px);
		aspect-ratio: 4 / 5;
		border-radius: var(--radius);
		scroll-snap-align: start;
	}

	.tile--feature .tile__body {
		padding: clamp(1rem, 1.5vw, 1.4rem);
	}

	.tile--feature .tile__title {
		font-size: 1.375rem;
	}

	.tile--feature .tile__text {
		font-size: 0.9375rem;
	}

	.tile__text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		overflow: hidden;
	}

	.services__cta {
		display: none;
	}
}

/* ---------- Work rail ---------- */

.work__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.work__head .section-head {
	margin-bottom: 0;
}

.rail-controls {
	display: flex;
	gap: 0.5rem;
}

.rail-controls[hidden] {
	display: none;
}

.rail-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.12s ease-out;
}

.rail-btn:hover {
	background: var(--teal-wash);
}

.rail-btn:active {
	transform: scale(0.94);
}

.rail-btn:disabled {
	opacity: 0.3;
	cursor: default;
	background: transparent;
	transform: none;
}

.rail {
	--rail-pad: max(var(--gutter), (100% - var(--wrap)) / 2);
}

.rail__track {
	display: flex;
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding-inline: var(--rail-pad);
	padding-block: 0.25rem 0.75rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--rail-pad);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.rail__track::-webkit-scrollbar {
	display: none;
}

/* Programmatic spring scrolling and mouse dragging take over snapping */
.rail__track.is-animating,
.rail__track.is-dragging {
	scroll-snap-type: none;
}

@media (pointer: fine) {
	.rail__track {
		cursor: grab;
	}

	.rail__track.is-dragging {
		cursor: grabbing;
		-webkit-user-select: none;
		user-select: none;
	}
}

.rail__item {
	flex: 0 0 clamp(288px, 44vw, 600px);
	scroll-snap-align: start;
}

.card {
	display: block;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.card:focus-visible {
	outline: none;
}

.card:focus-visible .card__media {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}

.card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-raised);
	transition: transform 0.12s ease-out;
}

.card:active .card__media {
	transform: scale(0.985);
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease-out);
}

@media (hover: hover) {
	.card:hover .card__img {
		transform: scale(1.03);
	}
}

.card__cover {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: clamp(1.25rem, 2vw, 1.75rem);
}

.card__cover--1 {
	background:
		radial-gradient(110% 80% at 100% 0%, rgb(119 189 184 / 0.55), transparent 62%),
		linear-gradient(165deg, #1b2836, #0f1823);
}

.card__cover--2 {
	background:
		radial-gradient(110% 80% at 0% 0%, rgb(212 211 155 / 0.42), transparent 62%),
		linear-gradient(195deg, #222338, #111622);
}

.card__cover--3 {
	background: linear-gradient(160deg, #77bdb8 0%, #2c5d65 46%, #111b27 100%);
}

.card__cover--4 {
	background: linear-gradient(160deg, #d4d39b 0%, #6c8b77 46%, #121a25 100%);
}

.card__mark {
	position: absolute;
	top: -18%;
	inset-inline-end: -6%;
	width: 42%;
	opacity: 0.16;
	pointer-events: none;
}

.card__cover-word {
	position: relative;
	max-width: 9ch;
	color: var(--text);
	font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.625rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

:lang(ar) .card__cover-word {
	letter-spacing: 0;
	line-height: 1.3;
}

.card__meta {
	padding-top: 1.1rem;
}

.card__client {
	color: var(--teal);
	font-size: 0.875rem;
	font-weight: 500;
}

.card__title {
	margin-top: 0.25rem;
}

.card__kind {
	margin-top: 0.25rem;
	color: var(--text-muted);
	font-size: 0.875rem;
}

.editor-note {
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 0.9375rem;
}

/* ---------- Clients ---------- */

.clients {
	padding-top: 0;
}

.clients__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin: 0 auto;
}

@media (max-width: 899px) {
	.clients__list {
		grid-auto-columns: min(42vw, 200px);
		width: auto;
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.clients__list::-webkit-scrollbar {
		display: none;
	}

	.client {
		scroll-snap-align: start;
	}
}

/* An arch, lit from below in the brand turquoise */
.client__frame {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 999px 999px var(--radius) var(--radius);
	background:
		radial-gradient(90% 55% at 50% 100%, rgb(119 189 184 / 0.38), transparent 72%),
		linear-gradient(to bottom, #1c2333, var(--navy-raised));
}

.client__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 100%;
	transform-origin: 50% 100%;
	transition: transform 0.6s var(--ease-out);
}

@media (hover: hover) {
	.client:hover .client__img {
		transform: scale(1.04);
	}
}

.client__name {
	margin-top: 0.9rem;
	font-size: 0.9375rem;
	font-weight: 550;
	text-align: center;
}

/* ---------- Process ---------- */

.process {
	padding-top: 0;
}

.steps {
	--steps-gap: 2.5rem;
	display: grid;
	gap: var(--steps-gap);
}

.step {
	position: relative;
	padding-inline-start: 4.5rem;
}

/* connector from each step to the next */
.step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 3rem;
	bottom: calc(-1 * var(--steps-gap));
	inset-inline-start: 1.5rem;
	width: 1px;
	background: linear-gradient(to bottom, var(--beige), var(--teal));
	opacity: 0.4;
}

.step__num {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--navy);
	color: var(--beige);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.step__title {
	padding-top: 0.6rem;
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	font-weight: 650;
}

.step__text {
	margin-top: 0.6rem;
	max-width: 30rem;
	color: var(--text-muted);
	text-wrap: pretty;
}

@media (min-width: 900px) {
	.steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.step:not(:last-child)::before {
		top: 1.5rem;
		bottom: auto;
		inset-inline-start: 3rem;
		width: calc(100% - 3rem + var(--steps-gap));
		height: 1px;
		background: linear-gradient(to right, var(--beige), var(--teal));
	}

	[dir="rtl"] .step:not(:last-child)::before {
		background: linear-gradient(to left, var(--beige), var(--teal));
	}

	.step {
		padding-inline-start: 0;
		padding-top: 4.5rem;
	}

	.step__title {
		padding-top: 0;
	}
}

/* ---------- Contact ---------- */

.contact {
	padding-top: 0;
}

.contact__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2.5rem, 7vw, 6rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(70% 110% at 100% 0%, rgb(119 189 184 / 0.22), transparent 62%),
		radial-gradient(60% 90% at 0% 100%, rgb(212 211 155 / 0.12), transparent 60%),
		var(--navy-raised);
}

[dir="rtl"] .contact__panel {
	background:
		radial-gradient(70% 110% at 0% 0%, rgb(119 189 184 / 0.22), transparent 62%),
		radial-gradient(60% 90% at 100% 100%, rgb(212 211 155 / 0.12), transparent 60%),
		var(--navy-raised);
}

.contact__mark {
	position: absolute;
	z-index: -1;
	inset-inline-end: -3%;
	bottom: -18%;
	width: clamp(220px, 30vw, 420px);
	opacity: 0.07;
	pointer-events: none;
}

.contact__title {
	max-width: 15ch;
	font-size: clamp(2.25rem, 1.2rem + 4vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

:lang(ar) .contact__title {
	line-height: 1.3;
}

.contact__text {
	max-width: 32rem;
	margin-top: 1.25rem;
	color: var(--text-muted);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.contact__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.25rem;
}

.contact__details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	margin-top: 2rem;
	color: var(--text-muted);
	font-size: 0.9375rem;
}

/* ---------- Footer ---------- */

.site-footer {
	padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
	border-top: 1px solid var(--line);
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}
}

.site-footer__about p {
	max-width: 22rem;
	margin-top: 1.25rem;
	color: var(--text-muted);
	font-size: 0.9375rem;
}

.site-footer__heading {
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.site-footer__list {
	display: grid;
	gap: 0.6rem;
}

.site-footer__list a,
.site-footer__address {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--text-muted);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__list a:hover {
	color: var(--teal);
}

.site-footer__contact .icon {
	width: 18px;
	height: 18px;
	color: var(--teal);
}

.site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-footer__socials a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--text-muted);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.site-footer__socials a:hover {
	color: var(--teal);
	background: var(--teal-wash);
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(3rem, 5vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--text-muted);
	font-size: 0.875rem;
}

/* ---------- Generic pages ---------- */

.page-shell {
	padding-block: clamp(3rem, 7vw, 6rem) var(--section-y);
}

.page__head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page__title {
	max-width: 20ch;
	font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
	line-height: 1.05;
}

:lang(ar) .page__title {
	line-height: 1.3;
}

.page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.5rem;
	margin-top: 1.5rem;
}

.page__meta dt {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.page__media {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page__media img {
	width: 100%;
	border-radius: var(--radius);
}

.page__empty {
	color: var(--text-muted);
}

.prose {
	max-width: 42rem;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2,
.prose h3 {
	margin-top: 2em;
	line-height: 1.25;
}

.prose a {
	color: var(--teal);
}

.prose img {
	border-radius: var(--radius-sm);
}

.post-list {
	display: grid;
	max-width: 48rem;
}

.post-list__link {
	display: block;
	padding-block: 1.75rem;
	border-top: 1px solid var(--line);
	text-decoration: none;
}

.post-list__link:hover .post-list__title {
	color: var(--teal);
}

.post-list__excerpt {
	margin-top: 0.5rem;
	color: var(--text-muted);
}

.post-list__date {
	display: block;
	margin-top: 0.75rem;
	color: var(--text-muted);
	font-size: 0.875rem;
}

.page--404 .btn {
	margin-top: 2rem;
}

/* ---------- Services page (full screen) ---------- */

/* The header floats over the panels on this page */
.is-immersive .site-header {
	position: fixed;
	inset-inline: 0;
	background: rgb(13 21 31 / 0.5);
}

.is-immersive .site-header.is-scrolled::after {
	opacity: 0;
}

.svc-intro {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 5vw, 4rem);
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 85% 10%, rgb(119 189 184 / 0.16), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgb(212 211 155 / 0.08), transparent 70%),
		var(--navy);
}

[dir="rtl"] .svc-intro {
	background:
		radial-gradient(60% 70% at 15% 10%, rgb(119 189 184 / 0.16), transparent 70%),
		radial-gradient(50% 60% at 100% 100%, rgb(212 211 155 / 0.08), transparent 70%),
		var(--navy);
}

.svc-intro__inner {
	width: min(100% - 2 * var(--gutter), var(--wrap));
}

.svc-intro__title {
	font-size: clamp(3rem, 1rem + 8vw, 8.5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.045em;
}

:lang(ar) .svc-intro__title {
	line-height: 1.2;
	letter-spacing: 0;
}

.svc-intro__lede {
	max-width: 36rem;
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	color: var(--text-muted);
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
	text-wrap: pretty;
}

/* Index of services: jumps to each panel */
.svc-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 0 clamp(1.5rem, 3vw, 3rem);
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.svc-index__link {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding-block: 0.95rem;
	border-top: 1px solid var(--line);
	color: var(--text);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.svc-index__num {
	color: var(--beige);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	opacity: 0.8;
}

.svc-index__link:hover {
	color: var(--teal);
}

.svc-intro__hint {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	color: var(--text-muted);
	font-size: 0.8125rem;
}

.svc-intro__hint span {
	display: block;
	width: 1px;
	height: 28px;
	background: linear-gradient(to bottom, transparent, var(--teal));
}

/* The stack: each panel sticks to the top and the next one slides over it */
.svc-stack {
	position: relative;
}

.svc-panel {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	isolation: isolate;
	background: var(--navy);
}

.svc-panel:focus {
	outline: none;
}

/* The service's own picture, blurred into a backdrop for its colour */
.svc-panel__ambient {
	position: absolute;
	inset: -10%;
	z-index: -1;
}

.svc-panel__ambient-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(70px) saturate(1.25) brightness(0.5);
	transform: scale(1.15);
}

.svc-panel__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	height: 100%;
	overflow: hidden;
	transform-origin: 50% 30%;
	will-change: transform;
}

.svc-panel__media {
	position: relative;
	overflow: hidden;
	background: var(--navy-raised);
}

.svc-panel--flip .svc-panel__media {
	order: 2;
}

.svc-panel__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 35%;
}

.svc-panel__media > .svc-panel__icon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--teal);
}

.svc-panel__media > .svc-panel__icon .icon {
	width: 96px;
	height: 96px;
}

.svc-panel__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: calc(var(--header-h) + 2rem) clamp(2rem, 6vw, 6.5rem) 3rem;
}

.svc-panel__count {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--beige);
	font-size: 0.9375rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.svc-panel__total {
	color: var(--text-muted);
}

.svc-panel__icon-chip {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-inline-end: 0.4rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.08);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
	color: var(--text);
}

.svc-panel__icon-chip .icon {
	width: 19px;
	height: 19px;
}

.svc-panel__title {
	max-width: 12ch;
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	font-size: clamp(2.5rem, 1rem + 4vw, 5.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

:lang(ar) .svc-panel__title {
	line-height: 1.25;
	letter-spacing: 0;
}

.svc-panel__text {
	max-width: 30rem;
	margin-top: clamp(1.25rem, 2vw, 1.75rem);
	color: rgb(238 240 228 / 0.82);
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.svc-panel__cta {
	margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

/* Darkens a panel as the next one covers it */
.svc-panel__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: #04080d;
	opacity: 0;
	pointer-events: none;
}

/* Side index of the panels, wide screens only */
.svc-progress {
	position: fixed;
	z-index: 30;
	top: 50%;
	inset-inline-end: clamp(0.75rem, 1.5vw, 1.5rem);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%);
	transition: opacity 0.3s ease, visibility 0.3s;
}

.svc-progress.is-visible {
	opacity: 1;
	visibility: visible;
}

.svc-progress ol {
	display: grid;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.svc-progress a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 36px;
	height: 22px;
}

.svc-progress a::after {
	content: "";
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: rgb(238 240 228 / 0.35);
	transition: width 0.3s var(--ease-out), background-color 0.3s ease;
}

.svc-progress a:hover::after {
	background: var(--text);
}

.svc-progress a[aria-current]::after {
	width: 30px;
	background: var(--teal);
}

.svc-progress__label {
	position: absolute;
	inset-inline-end: calc(100% + 0.5rem);
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: rgb(13 21 31 / 0.85);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--text);
	font-size: 0.8125rem;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

[dir="rtl"] .svc-progress__label {
	transform: translateX(-6px);
}

.svc-progress a:hover .svc-progress__label,
.svc-progress a:focus-visible .svc-progress__label {
	opacity: 1;
	transform: none;
}

.svc-stack + .contact {
	padding-top: var(--section-y);
}

/* Small screens: the picture fills the panel, the words sit at the bottom */
@media (max-width: 959px) {
	.svc-progress,
	.svc-panel__ambient {
		display: none;
	}

	.svc-panel__inner {
		display: block;
		position: relative;
	}

	.svc-panel__media {
		position: absolute;
		inset: 0;
	}

	.svc-panel__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(to top, rgb(13 21 31 / 0.96) 0%, rgb(13 21 31 / 0.75) 32%, rgb(13 21 31 / 0.1) 62%, rgb(13 21 31 / 0.35) 100%);
	}

	.svc-panel__content {
		position: relative;
		justify-content: flex-end;
		height: 100%;
		padding: calc(var(--header-h) + 1rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
	}

	.svc-panel__title {
		font-size: clamp(2.25rem, 1.4rem + 4vw, 3.25rem);
	}

	.svc-panel__text {
		font-size: 1rem;
	}
}

/* ---------- About page ---------- */

/* A section title with a button at the far end */
.head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.head-row .section-head {
	margin-bottom: 0;
}

.about-hero {
	position: relative;
	overflow: clip;
	padding-top: clamp(3.5rem, 7vw, 6rem);
	text-align: center;
	background:
		radial-gradient(60% 50% at 50% 0%, rgb(119 189 184 / 0.14), transparent 70%),
		var(--navy);
}

.about-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.about-hero__title {
	max-width: 18ch;
	font-size: clamp(2.5rem, 1rem + 5.2vw, 6.25rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

:lang(ar) .about-hero__title {
	max-width: 16ch;
	line-height: 1.2;
	letter-spacing: 0;
}

.about-hero__lede {
	max-width: 40rem;
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	color: var(--text-muted);
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
	text-wrap: pretty;
}

.about-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* The agency's pictures in a shallow arch; the edges run off the screen */
.about-strip {
	--arch: clamp(2.5rem, 5.5vw, 5.5rem);
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: calc(var(--arch) + clamp(3.5rem, 7vw, 6rem));
}

.about-strip__row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.about-strip__card {
	flex: 0 0 clamp(150px, 19.5vw, 320px);
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-raised);
	box-shadow:
		0 30px 70px rgb(0 0 0 / 0.4),
		inset 0 0 0 1px rgb(255 255 255 / 0.06);
	transform: translate3d(0, calc(var(--lift) * var(--arch)), 0);
}

.about-strip__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

@media (prefers-reduced-motion: no-preference) {
	.about-hero__title,
	.about-hero__lede,
	.about-hero__actions {
		animation: ra2ej-rise 0.9s var(--ease-out) both;
	}

	.about-hero__lede {
		animation-delay: 0.08s;
	}

	.about-hero__actions {
		animation-delay: 0.16s;
	}

	/* centre card first, then outward */
	.about-strip__card {
		animation: ra2ej-card-in 1.1s var(--ease-out) both;
		animation-delay: calc(0.3s + var(--order) * 0.09s);
	}
}

/* uses `translate` so it composes with the scroll-driven `transform` */
@keyframes ra2ej-card-in {
	from {
		opacity: 0;
		translate: 0 70px;
	}
}

/* Story, mission, vision: each band takes the colour of its artwork */
.chapter {
	--band: #141425;
	--ink: var(--text);
	background: var(--band);
	color: var(--ink);
}

.chapter--mission {
	--band: #73b7b2;
	--ink: var(--navy);
}

.chapter--vision {
	--band: #a1b733;
	--ink: var(--navy);
}

.chapter ::selection {
	background: var(--ink);
	color: var(--band);
}

.chapter__inner {
	display: grid;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 5rem);
	padding-block: clamp(4rem, 9vw, 8rem);
}

@media (min-width: 900px) {
	.chapter__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: min(88svh, 860px);
	}

	.chapter--mission .chapter__art {
		order: -1;
	}
}

.chapter__title {
	font-size: clamp(2.75rem, 1.2rem + 4.5vw, 5.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

:lang(ar) .chapter__title {
	line-height: 1.25;
	letter-spacing: 0;
}

.chapter__body {
	max-width: 34rem;
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	font-size: clamp(1.375rem, 1rem + 1.3vw, 2.125rem);
	font-weight: 430;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

:lang(ar) .chapter__body {
	line-height: 1.65;
	letter-spacing: 0;
}

/* Fade the artwork's edges into the band */
.chapter__art img {
	display: block;
	width: min(100%, 560px);
	margin-inline: auto;
	-webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
}

@media (max-width: 899px) {
	.chapter__art {
		order: -1;
	}

	.chapter__art img {
		width: min(72%, 340px);
	}
}

/* Values */
.values__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: clamp(2rem, 4vw, 3rem);
}

.value {
	position: relative;
	padding-top: 1.5rem;
}

.value::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-gradient);
	opacity: 0.7;
}

[dir="rtl"] .value::before {
	background: linear-gradient(-120deg, var(--beige), var(--teal));
}

.value__title {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
	font-weight: 650;
	letter-spacing: -0.02em;
}

.value__text {
	margin-top: 0.6rem;
	color: var(--text-muted);
	text-wrap: pretty;
}

.about-extra {
	padding-top: 0;
}

/* ---------- Contact page ---------- */

/*
 * Wide: the brief on one side, a full-height picture on the other that
 * stays put while the form scrolls past it.
 *   [ head ][ stage ]
 *   [ form ][ stage ]
 * Narrow: heading, the picture with the contact card on it, then the form.
 */
.contact-page {
	container-type: inline-size;
	display: grid;
	grid-template-areas:
		"head"
		"stage"
		"form";
	padding: clamp(2.5rem, 7vw, 4rem) var(--gutter) var(--section-y);
	background:
		radial-gradient(60% 40% at 0% 0%, rgb(119 189 184 / 0.1), transparent 70%),
		var(--navy);
}

[dir="rtl"] .contact-page {
	background:
		radial-gradient(60% 40% at 100% 0%, rgb(119 189 184 / 0.1), transparent 70%),
		var(--navy);
}

.contact-page__head {
	grid-area: head;
}

.contact-page__form {
	grid-area: form;
}

.contact-page__title {
	max-width: 12ch;
	font-size: clamp(2.75rem, 1rem + 4vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

:lang(ar) .contact-page__title {
	line-height: 1.25;
	letter-spacing: 0;
}

.contact-page__intro {
	max-width: 30rem;
	margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
	color: var(--text-muted);
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
	text-wrap: pretty;
}

/* The picture */
.contact-stage {
	grid-area: stage;
	position: relative;
	margin-block: clamp(2rem, 6vw, 3rem) clamp(3rem, 8vw, 4rem);
}

.contact-stage__media {
	position: relative;
	isolation: isolate;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--navy-raised);
}

.contact-stage__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
	transition:
		opacity 0.6s ease,
		transform 1.2s var(--ease-out);
}

/* A newly picked service fades in over the picture below it */
.contact-stage__img.is-entering {
	opacity: 0;
	transform: scale(1.04);
}

.contact-stage__img.is-leaving {
	opacity: 0;
}

/* The artwork already darkens toward the bottom; this keeps the card on it legible */
.contact-stage__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgb(13 21 31 / 0.78), transparent 55%);
	pointer-events: none;
}

/* Direct contact details, on a glass card over the picture */
@media (min-width: 600px) and (max-width: 999px) {
	.contact-stage__media {
		aspect-ratio: 16 / 9;
	}
}

.reach {
	position: relative;
	z-index: 2;
	margin: -4.5rem clamp(0.75rem, 3vw, 1.25rem) 0;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	border-radius: var(--radius);
	background: rgb(24 23 39 / 0.62);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.1),
		0 24px 60px rgb(0 0 0 / 0.35);
}

.reach__title {
	font-size: 1rem;
	font-weight: 600;
}

.reach__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.reach__item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	height: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 14px;
	background: rgb(255 255 255 / 0.05);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

a.reach__item:hover {
	background: rgb(255 255 255 / 0.1);
}

.reach__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--teal);
	color: var(--navy);
}

.reach__icon .icon {
	width: 19px;
	height: 19px;
}

.reach__label {
	display: block;
	color: rgb(238 240 228 / 0.72);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.reach__value {
	display: block;
	color: var(--text);
	font-weight: 550;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

[dir="rtl"] .reach__value[dir="ltr"] {
	text-align: right;
}

.reach__socials {
	margin-top: 1rem;
}

@media (min-width: 1000px) {
	.contact-page {
		grid-template-columns: minmax(0, 1fr) 42%;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"head stage"
			"form stage";
		padding: 0;
	}

	.contact-page__head,
	.contact-page__form {
		/* line up with the header's content edge; the other side faces the picture */
		padding-inline: max(var(--gutter), (100cqw - var(--wrap)) / 2) clamp(3rem, 6vw, 6rem);
	}

	.contact-page__head {
		padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 3.25rem);
	}

	.contact-page__form {
		padding-bottom: var(--section-y);
	}

	.contact-stage {
		position: sticky;
		top: var(--header-h);
		align-self: start;
		height: calc(100vh - var(--header-h));
		height: calc(100svh - var(--header-h));
		margin: 0;
	}

	.admin-bar .contact-stage {
		top: calc(var(--header-h) + 32px);
		height: calc(100vh - var(--header-h) - 32px);
		height: calc(100svh - var(--header-h) - 32px);
	}

	.contact-stage__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
		border-radius: 0;
	}

	.reach {
		position: absolute;
		inset-inline: clamp(1.25rem, 2.5vw, 2.5rem);
		bottom: clamp(1.25rem, 2.5vw, 2.5rem);
		margin: 0;
	}
}

/* The brief: three steps in order */
.form[hidden] {
	display: none;
}

.brief__step + .brief__step {
	margin-top: clamp(3rem, 6vw, 4.5rem);
}

.brief__head {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

:lang(ar) .brief__head {
	letter-spacing: 0;
}

/* Step number; becomes a tick once the step has what it needs */
.brief__num {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
	color: var(--teal);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
	transition:
		background-color 0.3s ease,
		box-shadow 0.3s ease,
		color 0.3s ease;
}

.brief__num > * {
	grid-area: 1 / 1;
	transition:
		opacity 0.2s ease,
		transform 0.3s var(--ease-out);
}

.brief__num .icon {
	width: 1.1rem;
	height: 1.1rem;
	stroke-width: 2.4;
	opacity: 0;
	transform: scale(0.5);
}

.is-done .brief__num {
	background: var(--teal);
	box-shadow: none;
	color: var(--navy);
}

.is-done .brief__num > span {
	opacity: 0;
	transform: scale(0.5);
}

.is-done .brief__num .icon {
	opacity: 1;
	transform: none;
}

.brief__hint {
	margin-top: 0.35rem;
	margin-inline-start: calc(2.25rem + 0.85rem);
	color: var(--text-muted);
	font-size: 0.9375rem;
}

.brief__step > :is(.picks, .form__row, .choices, .field) {
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* Services as pictures (checkboxes) */
.picks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.5rem, 1.2vw, 0.875rem);
	min-width: 0;
	margin-inline: 0;
	padding: 0;
	border: 0;
}

.pick {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-raised);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	transition: transform 0.12s ease-out;
}

/* Feedback on press, not on release */
.pick:active {
	transform: scale(0.97);
}

.pick__input {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.pick__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: grid;
	place-items: center;
	color: var(--teal);
}

.pick__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 35%;
	transition: transform 0.8s var(--ease-out);
}

.pick--plain .pick__media {
	background:
		radial-gradient(90% 70% at 100% 0%, rgb(119 189 184 / 0.28), transparent 60%),
		linear-gradient(170deg, #1d2837, var(--navy));
}

.pick--plain .pick__media .icon {
	width: 30%;
	height: 30%;
	margin-bottom: 20%;
}

/* Legibility scrim, and the ring that marks a picked service */
.pick::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(to top, rgb(13 21 31 / 0.92), rgb(13 21 31 / 0.45) 42%, transparent 70%);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
	transition: box-shadow 0.2s ease;
	pointer-events: none;
}

.pick:has(.pick__input:checked)::after {
	box-shadow: inset 0 0 0 2.5px var(--teal);
}

.pick:has(.pick__input:focus-visible) {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}

.pick__title {
	position: relative;
	padding: clamp(0.75rem, 1.4vw, 1rem);
	font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
	font-weight: 600;
	line-height: 1.3;
	text-wrap: balance;
}

.pick__check {
	position: absolute;
	top: clamp(0.6rem, 1vw, 0.8rem);
	inset-inline-end: clamp(0.6rem, 1vw, 0.8rem);
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: rgb(13 21 31 / 0.3);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.75);
	color: var(--navy);
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.pick__check .icon {
	width: 1rem;
	height: 1rem;
	stroke-width: 2.6;
	opacity: 0;
	transform: scale(0.5);
	transition:
		opacity 0.15s ease,
		transform 0.25s var(--ease-out);
}

.pick__input:checked ~ .pick__check {
	background: var(--teal);
	box-shadow: none;
}

.pick__input:checked ~ .pick__check .icon {
	opacity: 1;
	transform: none;
}

@media (hover: hover) {
	.pick:hover .pick__img {
		transform: scale(1.05);
	}
}

@media (max-width: 599px) {
	.pick {
		aspect-ratio: 4 / 5;
		border-radius: 14px;
	}

	.pick__title {
		padding: 0.5rem 0.55rem;
		font-size: 0.8125rem;
		text-wrap: pretty;
	}

	.pick__check {
		top: 0.45rem;
		inset-inline-end: 0.45rem;
		width: 1.5rem;
		height: 1.5rem;
	}

	.pick__check .icon {
		width: 0.875rem;
		height: 0.875rem;
	}
}

/* Text fields: an underline, the text set large */
.form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}

.choices {
	min-width: 0;
	margin-inline: 0;
	padding: 0;
	border: 0;
}

.choices legend {
	padding: 0;
}

.field {
	display: grid;
	align-content: start;
	gap: 0.3rem;
}

.field__label {
	color: var(--text-muted);
	font-size: 0.9375rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.field__optional {
	font-weight: 360;
	opacity: 0.8;
}

.field:focus-within .field__label {
	color: var(--teal);
}

.field__input {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.4rem 0 0.65rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: inset 0 -1px 0 var(--line-strong);
	color: var(--text);
	font: inherit;
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
	font-weight: 400;
	line-height: 1.5;
	transition: box-shadow 0.2s ease;
}

.field__input::placeholder {
	color: rgb(163 178 176 / 0.55);
}

.field__input:hover {
	box-shadow: inset 0 -1px 0 rgb(119 189 184 / 0.65);
}

.field__input:focus {
	outline: none;
	box-shadow: inset 0 -2px 0 var(--teal);
}

/* Keep browser autofill from painting a light box on the dark page */
.field__input:-webkit-autofill {
	-webkit-text-fill-color: var(--text);
	caret-color: var(--text);
	transition:
		background-color 0s 600000s,
		box-shadow 0.2s ease;
}

textarea.field__input {
	min-height: 8rem;
	max-height: 24rem;
	padding-top: 0.6rem;
	line-height: 1.65;
	resize: vertical;
}

/* Grows with the text where supported, so no drag handle is needed */
@supports (field-sizing: content) {
	textarea.field__input {
		field-sizing: content;
		resize: none;
	}
}

.field.is-invalid .field__label {
	color: var(--danger);
}

.field.is-invalid .field__input {
	box-shadow: inset 0 -2px 0 var(--danger);
}

.field__error {
	color: var(--danger);
	font-size: 0.875rem;
}

.field__error:empty {
	display: none;
}

/* Choice chips (radios styled as pills) */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.chip {
	position: relative;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.chip span {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	color: var(--text);
	font-size: 0.9375rem;
	line-height: 1.2;
	-webkit-user-select: none;
	user-select: none;
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		color 0.2s ease,
		transform 0.12s ease-out;
}

.chip .icon {
	display: none;
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

.chip:hover span {
	background: var(--teal-wash);
}

.chip:active span {
	transform: scale(0.97);
}

.chip input:checked + span {
	background: var(--teal);
	box-shadow: none;
	color: var(--navy);
	font-weight: 560;
}

.chip input:checked + span .icon {
	display: block;
}

.chip input:focus-visible + span {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}

.form__alert {
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
	padding: 0.9rem 1.1rem;
	border-radius: 14px;
	background: rgb(255 138 122 / 0.1);
	box-shadow: inset 0 0 0 1px rgb(255 138 122 / 0.4);
	font-size: 0.9375rem;
}

.form__alert:empty {
	display: none;
}

.form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: clamp(1.75rem, 3vw, 2.25rem);
	border-top: 1px solid var(--line);
}

.form__privacy {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.form__submit {
	min-width: 13rem;
}

.form__submit[aria-busy="true"] {
	cursor: progress;
	opacity: 0.85;
}

.form__submit:disabled {
	transform: none;
}

@media (max-width: 599px) {
	.form__submit {
		width: 100%;
	}
}

.form__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgb(13 21 31 / 0.25);
	border-top-color: var(--navy);
	border-radius: 50%;
	animation: ra2ej-spin 0.7s linear infinite;
}

.form__submit[aria-busy="true"] .form__spinner {
	display: block;
}

@keyframes ra2ej-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Bots fill this in; people never see it */
.honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Sent */
.form-success {
	display: grid;
	justify-items: start;
	gap: 1rem;
	padding-block: clamp(1rem, 4vw, 2.5rem);
}

.form-success[hidden] {
	display: none;
}

.form-success:focus {
	outline: none;
}

.form-success__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--teal);
	color: var(--navy);
}

.form-success__icon .icon {
	width: 30px;
	height: 30px;
	stroke-width: 2.4;
}

.form-success__title {
	margin-top: 0.5rem;
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

:lang(ar) .form-success__title {
	letter-spacing: 0;
}

.form-success__text {
	max-width: 30rem;
	color: var(--text-muted);
	font-size: 1.125rem;
}

.form-success .btn {
	margin-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
	/* The one entrance on this page: the picture settles in */
	.contact-stage__img:not(.is-layer) {
		animation: ra2ej-stage-in 1.4s var(--ease-out);
	}

	.form-success:not([hidden]) > * {
		animation: ra2ej-rise 0.7s var(--ease-out) both;
	}

	.form-success:not([hidden]) > :nth-child(2) {
		animation-delay: 0.06s;
	}

	.form-success:not([hidden]) > :nth-child(n + 3) {
		animation-delay: 0.12s;
	}
}

@keyframes ra2ej-stage-in {
	from {
		opacity: 0;
		transform: scale(1.06);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pick:active,
	.chip:active span {
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.reach {
		background: var(--navy-raised);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.pick__check {
		background: var(--navy);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* ---------- Reduced motion / transparency / contrast ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}

	.mobile-menu__sheet {
		transform: none;
		transition: opacity 0.2s ease !important;
	}

	.mobile-menu__scrim {
		transition: opacity 0.2s ease !important;
	}

	.btn:active,
	.rail-btn:active,
	.card:active .card__media {
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.site-header,
	.mobile-menu__sheet,
	.hero__toggle {
		background: var(--navy-raised);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (prefers-contrast: more) {
	:root {
		--text-muted: #cfd8d6;
		--line: rgb(119 189 184 / 0.4);
		--line-strong: rgb(119 189 184 / 0.7);
	}
}
