/* Hallmark · route: custom (bespoke) · structure: "survey flight" home + map-sheet secondary pages
 * idea: "the site is a survey instrument over real ground" (Mahd Ad Dhahab DEM, SRTM)
 * paper: #070b14 (oklch ≈ 14% 0.02 265) · accent: gold oklch(80% 0.14 82) · display/body: Geist · instrument: Geist Mono
 * axes: dark / geometric-sans / chromatic-amber · gates: all-pass · studied: no
 * pre-emit critique: P5 H5 E4 S5 R4 V5
 */

/* ─────────────── tokens ─────────────── */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --bg-3: #111a2d;
  --panel: rgb(10 15 27 / 0.72);
  --ink: #efe9dc;
  --ink-2: #c9c4b8;
  --muted: #8d93a3;
  --faint: #767d8f;
  --rule: rgb(239 233 220 / 0.11);
  --rule-2: rgb(239 233 220 / 0.2);
  --sand: #dbbd85;
  --gold: #f2b91e;
  --gold-hi: #f6c843;
  --gold-ink: #1a1405;
  --focus: #f6d58a;

  /* service layer colours — shared by the terrain shader, cards, chips and map pins */
  --l-explore: #ee854d;
  --l-survey: #ebe0c7;
  --l-drill: #fac75c;
  --l-water: #52cce6;
  --l-sample: #db75d6;
  --l-rehab: #75d685;
  --l-train: #efe9dc;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --gut: clamp(1.1rem, 4vw, 3.5rem);
  --maxw: 88rem;
  --nav-h: 4.5rem;
  --r: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 380ms;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-hero: clamp(2.7rem, 1.4rem + 4.9vw, 5.6rem);

  /* theme channels — hard-coded translucencies go through these so both sheets stay in sync */
  color-scheme: dark;
  --bg-rgb: 7 11 20;
  --ink-rgb: 239 233 220;
  --gold-text: var(--gold);
  --gold-text-hi: var(--gold-hi);
  --on-c: var(--gold-ink);
  --err: #e2745b;
  --err-2: #f09a84;
  --logo-card: #e9e2d2;
  --logo-card-b: transparent;
}

/* paper sheet: the same survey printed on paper — navy ink, brown contours, print-weight layer colours */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-2: #ebe6da;
  --bg-3: #e1dacb;
  --bg-rgb: 243 239 230;
  --panel: rgb(248 245 238 / 0.86);
  --ink: #161c2b;
  --ink-2: #394052;
  --muted: #5f6573;
  --faint: #62676f;
  --ink-rgb: 22 28 43;
  --rule: rgb(22 28 43 / 0.12);
  --rule-2: rgb(22 28 43 / 0.24);
  --sand: #8a5a2b;
  --gold: #f2b91e;
  --gold-hi: #f6c843;
  --gold-text: #875800;
  --gold-text-hi: #7a4f00;
  --focus: #875800;
  --on-c: #fbf8f1;
  --l-explore: #a8431a;
  --l-survey: #6b5838;
  --l-drill: #7a5800;
  --l-water: #0e7090;
  --l-sample: #a0358f;
  --l-rehab: #256b36;
  --l-train: #2c3242;
  --err: #b8431f;
  --err-2: #a33a1a;
  --logo-card: #fffdf8;
  --logo-card-b: rgb(22 28 43 / 0.1);
  --pin: #b87f12;
}
:root[data-theme="light"] .frail button { text-shadow: 0 0 10px rgb(var(--bg-rgb)), 0 0 3px rgb(var(--bg-rgb)), 0 0 1px rgb(var(--bg-rgb)); }
:root[data-theme="light"] .kicker::before { background: var(--pin); box-shadow: 0 0 0 4px rgb(184 127 18 / 0.14); }
.logo-l { display: none; }
:root[data-theme="light"] .logo-d { display: none; }
:root[data-theme="light"] .logo-l { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-2: #ebe6da;
  --bg-3: #e1dacb;
  --bg-rgb: 243 239 230;
  --panel: rgb(248 245 238 / 0.86);
  --ink: #161c2b;
  --ink-2: #394052;
  --muted: #5f6573;
  --faint: #62676f;
  --ink-rgb: 22 28 43;
  --rule: rgb(22 28 43 / 0.12);
  --rule-2: rgb(22 28 43 / 0.24);
  --sand: #8a5a2b;
  --gold: #f2b91e;
  --gold-hi: #f6c843;
  --gold-text: #875800;
  --gold-text-hi: #7a4f00;
  --focus: #875800;
  --on-c: #fbf8f1;
  --l-explore: #a8431a;
  --l-survey: #6b5838;
  --l-drill: #7a5800;
  --l-water: #0e7090;
  --l-sample: #a0358f;
  --l-rehab: #256b36;
  --l-train: #2c3242;
  --err: #b8431f;
  --err-2: #a33a1a;
  --logo-card: #fffdf8;
  --logo-card-b: rgb(22 28 43 / 0.1);
  --pin: #b87f12;
  }
  :root:not([data-theme]) .logo-d { display: none; }
  :root:not([data-theme]) .logo-l { display: block; }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ─────────────── base ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; overflow-wrap: anywhere; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 0.6rem; inset-inline-start: 0.6rem; z-index: 200; background: var(--gold); color: var(--gold-ink); padding: 0.6rem 1rem; border-radius: 8px; transform: translateY(-160%); transition: transform var(--t-fast) var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ─────────────── type primitives ─────────────── */
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.kicker {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand); display: inline-flex; align-items: center; gap: 0.6rem;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(242 185 30 / 0.16); }
.lede { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.6; max-width: 38rem; }
.h-sec { font-size: var(--fs-2xl); }
.h-sec em { font-style: normal; color: inherit; font-weight: inherit; }

/* ─────────────── buttons ─────────────── */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.35rem; border-radius: 10px; border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform var(--t-med) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: var(--rule-2); color: var(--ink); background: rgb(var(--bg-rgb) / 0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgb(var(--ink-rgb) / 0.45); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; text-decoration: none; color: var(--gold-text); white-space: nowrap; }
/* small text links get a 44px-tall touch area without changing how they look */
.link-arrow::before, .lang::after, .social a::after, .foot li a::after, .gallery figcaption a::after {
  content: ""; position: absolute; inset: -10px -4px;
}
.link-arrow::after { content: "→"; transition: transform var(--t-med) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ─────────────── navigation ─────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding-inline: var(--gut);
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgb(var(--bg-rgb) / 0.82); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: block; flex: none; }
.nav__brand img { height: 62px; width: auto; }
.nav__links { display: flex; gap: 0.3rem; margin-inline-start: auto; }
.nav__links a {
  position: relative; text-decoration: none; font-size: 0.93rem; color: var(--ink-2);
  padding: 0.5rem 0.85rem; border-radius: 8px; white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgb(var(--ink-rgb) / 0.06); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem; height: 2px; border-radius: 1px; background: #4caf50; }
.nav__cta { padding: 0.62rem 1.05rem; font-size: 0.88rem; }
.home.at-top .nav__cta { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.home.at-top .nav__cta:hover { border-color: rgb(var(--ink-rgb) / 0.45); }

/* theme switch: night sheet / paper sheet */
.theme { all: unset; cursor: pointer; flex: none; border-radius: 999px; margin-inline-end: -0.8rem; padding-block: 6px; }
.theme:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.theme__track {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 3.7rem; height: 2rem; padding: 0 0.5rem; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--rule-2); background: rgb(var(--bg-rgb) / 0.45); backdrop-filter: blur(8px);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-med) var(--ease);
}
.theme:hover .theme__track { border-color: rgb(var(--ink-rgb) / 0.4); }
.theme__track svg { position: relative; z-index: 1; width: 0.95rem; height: 0.95rem; transition: color var(--t-med) var(--ease), transform 600ms var(--ease); }
.theme__moon { fill: currentColor; color: var(--gold-ink); }
.theme__sun { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; color: var(--muted); }
.theme__sun circle { fill: currentColor; stroke: none; }
.theme__knob {
  position: absolute; left: 0.2rem; top: 50%; width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--gold); transform: translate(0, -50%);
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.25);
  transition: transform 520ms var(--ease), background-color var(--t-med) var(--ease);
}
:root[data-theme="light"] .theme__knob { transform: translate(1.68rem, -50%); }
:root[data-theme="light"] .theme__moon { color: var(--muted); }
:root[data-theme="light"] .theme__sun { color: var(--gold-ink); transform: rotate(90deg); }
.nav__burger { display: none; flex: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--rule-2); background: rgb(var(--bg-rgb) / 0.5); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.nav__burger span:nth-child(1) { top: 16px; } .nav__burger span:nth-child(2) { top: 21px; } .nav__burger span:nth-child(3) { top: 26px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 80; background: rgb(var(--bg-rgb) / 0.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gut) 2rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu a { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; }
.menu a span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.12em; }
.menu a.btn { margin-top: 2rem; align-self: flex-start; display: inline-flex; justify-content: center; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.35rem; font-size: 1rem; letter-spacing: normal; border-bottom: 0; }

/* ─────────────── home · world canvas ─────────────── */
.world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.world-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 45%, transparent 40%, rgb(var(--bg-rgb) / 0.55) 100%),
    linear-gradient(90deg, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.62) 36%, transparent 60%),
    linear-gradient(270deg, rgb(var(--bg-rgb) / 0.7) 0%, transparent 22%);
  transition: opacity 600ms var(--ease);
}
.world-labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.wl {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink);
  padding: 0.25rem 0.5rem; border-radius: 5px; background: rgb(var(--bg-rgb) / 0.8); border: 1px solid var(--c, var(--rule-2));
  opacity: 0; will-change: transform, opacity;
}
.wl::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--c, var(--rule-2)); }
.wl b { color: var(--c, var(--gold)); font-weight: 500; }
.home main { position: relative; z-index: 3; }
.no-webgl .world, .no-webgl .world-labels, .no-webgl .hud { display: none; }
.no-webgl .world-vignette { background: radial-gradient(90% 70% at 70% 40%, var(--bg-3) 0%, var(--bg) 70%); }

/* ─────────────── home · hero ─────────────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 2rem) var(--gut) 6rem; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero__copy { max-width: 40rem; }
.hero__title { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; margin: 1.3rem 0 1.4rem; }
.hero__title .l2 { display: block; color: var(--muted); font-weight: 400; }
.hero__title .ln { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero__title .ln > span { display: inline-block; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }
.scrollcue {
  position: absolute; inset-inline-start: var(--gut); bottom: 2rem; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 0.8rem;
}
.scrollcue i { width: 1px; height: 2.4rem; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-hi); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* probe HUD — fixed across the hero and the survey flight */
.hud {
  position: fixed; inset-inline-end: var(--gut); bottom: 1.6rem; z-index: 6; width: 19rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em;
  background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 0.95rem 1rem 0.85rem; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  animation: hudIn 1.1s var(--ease) 0.9s both;
}
@keyframes hudIn { from { opacity: 0; translate: 0 24px; } }
.hud.is-off { opacity: 0; transform: translateY(10px); pointer-events: none; }
.hud__head { display: flex; justify-content: space-between; align-items: center; color: var(--sand); letter-spacing: 0.14em; font-size: 0.68rem; text-transform: uppercase; margin-bottom: 0.7rem; }
.hud__live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); }
.hud__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--l-rehab); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hud dl { display: grid; grid-template-columns: auto 1fr; gap: 0.32rem 1rem; margin: 0; }
.hud dt { color: var(--muted); }
.hud dd { margin: 0; text-align: end; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud dd.big { font-size: 1.05rem; color: var(--gold-text-hi); }
.hud__layer { margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 0.6rem; color: var(--muted); }
.hud__layer b { color: var(--c, var(--ink)); font-weight: 500; text-align: end; }

/* ─────────────── home · intro statement ─────────────── */
.intro { position: relative; min-height: 100svh; display: grid; align-content: center; padding: 8rem var(--gut); pointer-events: none; }
.intro__text { font-size: clamp(1.6rem, 1rem + 2.4vw, 3.1rem); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; max-width: 54rem; }
.intro__text .w { opacity: 0.16; transition: opacity 0ms; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 4rem; max-width: 62rem; }
.facts li { border-top: 1px solid var(--rule-2); padding-top: 1rem; }
.facts b { display: block; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.facts span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ─────────────── home · survey flight (services) ─────────────── */
.flight { position: relative; height: calc(var(--steps, 7) * 100svh + 100svh); }
.flight__pin { position: sticky; top: 0; height: 100svh; overflow: clip; pointer-events: none; }
.flight__pin > * { pointer-events: auto; }
.flight__head { position: absolute; inset-inline-start: var(--gut); top: calc(var(--nav-h) + 1.4rem); }
.flight__cards { position: absolute; inset-inline-start: var(--gut); top: 50%; transform: translateY(-44%); width: min(27rem, 100% - 2 * var(--gut)); display: grid; }
.fcard {
  grid-area: 1 / 1; position: relative; align-self: center;
  background: var(--panel); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--rule); border-radius: 16px; padding: 1.6rem 1.6rem 1.4rem;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 620ms var(--ease), visibility 520ms;
}
.fcard.is-on { opacity: 1; visibility: visible; transform: none; }
.fcard::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 2px; background: var(--c); border-radius: 0 0 2px 2px; }
.fcard__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fcard__top b { color: var(--c); font-weight: 500; }
.fcard__ic { display: block; color: var(--c); margin-bottom: 0.9rem; }
.fcard__ic svg { width: 1.7rem; height: 1.7rem; }
.fcard h3 { font-size: clamp(1.55rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.fcard p { color: var(--ink-2); font-size: 0.97rem; }
.fcard ul { margin: 1.1rem 0 1.3rem; display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--ink-2); }
.fcard li { padding-inline-start: 1.1rem; position: relative; }
.fcard li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 0.45rem; height: 1.5px; background: var(--c); }
.fcard__note { display: block; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--faint); }
.frail { position: absolute; inset-inline-end: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 0.1rem; z-index: 2;
  padding: 0.7rem 1rem; border-radius: 14px; background: rgb(var(--bg-rgb) / 0.55); backdrop-filter: blur(10px); border: 1px solid var(--rule); }
.frail button { text-shadow: 0 1px 12px rgb(var(--bg-rgb) / 0.95), 0 0 2px rgb(var(--bg-rgb) / 0.9); }
.frail button {
  all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem;
  font-size: 0.85rem; color: var(--muted); padding: 0.4rem 0; transition: color var(--t-fast) var(--ease);
}
.frail button i { font-style: normal; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; }
.frail button::after { content: ""; width: 1.4rem; height: 2px; border-radius: 1px; background: currentColor; opacity: 0.5; transition: width var(--t-med) var(--ease), background-color var(--t-fast); }
.frail button:hover { color: var(--ink-2); }
.frail button.is-on { color: var(--ink); }
.frail button.is-on::after { width: 2.6rem; background: var(--c); opacity: 1; }
.frail button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.fprog { position: absolute; left: var(--gut); right: var(--gut); bottom: 1.6rem; height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.fprog { overflow: visible; }
.fprog i { position: absolute; inset: 0; background: var(--gold); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
.fprog b { position: absolute; top: -3px; inset-inline-start: var(--x); width: 2px; height: 8px; border-radius: 1px; background: var(--rule-2); transition: background-color var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.fprog b.is-on { background: var(--c); transform: scaleY(1.5); }

/* ─────────────── solid content sections ─────────────── */
.solid { position: relative; background: var(--bg); z-index: 4; }
.sec { padding-block: clamp(5rem, 11vh, 8.5rem); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3.2rem; }
.sec__head .kicker { margin-bottom: 1.2rem; }
.sec__head .lede { justify-self: end; }
.divider { height: 1px; background: var(--rule); }

/* ─────────────── Kingdom map (home + projects) ─────────────── */
.kmap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.kmap__fig { position: relative; margin: 0; }
.kmap__fig svg { width: 100%; height: auto; overflow: visible; }
.kmap .relief { opacity: 0.42; }
:root[data-theme="light"] .kmap .relief { opacity: 0.3; }
.kmap .ring { fill: none; stroke: var(--sand); stroke-width: 0.8; opacity: 0.28; stroke-linejoin: round; }
.kmap .ring--major { opacity: 0.5; stroke-width: 1.1; }
.kmap .outline { fill: rgb(219 189 133 / 0.035); stroke: var(--sand); stroke-width: 1.6; opacity: 0.85; }
.kmap .shield { fill: rgb(238 133 77 / 0.075); stroke: var(--l-explore); stroke-width: 1.2; stroke-dasharray: 3 5; stroke-opacity: 0; transition: stroke-opacity var(--t-med) var(--ease), fill var(--t-med) var(--ease); }
.kmap.shield-on .shield { stroke-opacity: 0.9; fill: rgb(238 133 77 / 0.14); }
.kmap .shield-lbl { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; fill: var(--l-explore); text-transform: uppercase; }
.pin { cursor: pointer; }
.pin .halo { fill: none; stroke: var(--pc, var(--gold)); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin .dot { fill: var(--pc, var(--gold)); stroke: var(--bg); stroke-width: 3; transition: r var(--t-fast) var(--ease); }
.pin text { font-family: var(--mono); font-size: 15px; fill: var(--ink-2); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; letter-spacing: 0.02em; transition: fill var(--t-fast); }
.pin:hover .dot, .pin.is-on .dot { r: 10; }
.pin:hover text, .pin.is-on text { fill: var(--ink); }
.pin.is-on .halo { opacity: 0.9; animation: halo 1.8s var(--ease) infinite; }
.pin .hit { fill: transparent; pointer-events: all; }
.pin:focus { outline: none; }
.pin:focus-visible .dot { stroke: var(--focus); stroke-width: 3; }
.pin:focus-visible .halo { opacity: 1; stroke: var(--focus); stroke-width: 3; animation: none; transform: scale(1.8); }
@keyframes halo { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.kmap__panel { position: sticky; top: calc(var(--nav-h) + 1.5rem); background: var(--bg-2); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem; min-height: 22rem; }
.kmap__panel h3 { font-size: var(--fs-lg); margin-bottom: 0.3rem; }
.kmap__panel .sub { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.plist { margin-top: 1.2rem; display: grid; gap: 0; }
.plist li { border-top: 1px solid var(--rule); padding: 0.8rem 0; display: grid; gap: 0.2rem; }
.plist b { font-weight: 500; font-size: 0.97rem; }
.plist span { font-size: 0.82rem; color: var(--muted); }
.plist .chip { justify-self: start; margin-top: 0.15rem; }
.groups { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.groups button {
  all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--rule); border-radius: 10px; font-size: 0.92rem;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.groups button:hover, .groups button.is-on { border-color: var(--rule-2); background: rgb(var(--ink-rgb) / 0.04); }
.groups button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sitebtns { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c, var(--ink-2)); padding: 0.18rem 0.55rem; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--c, var(--ink)) 35%, transparent); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink)); }

/* ─────────────── clients marquee ─────────────── */
.clients { padding-block: clamp(4rem, 9vh, 6.5rem); border-top: 1px solid var(--rule); }
.clients__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.marquee { display: flex; gap: 1rem; overflow: clip; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1rem; flex: none; min-width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.clients__foot { display: flex; justify-content: flex-end; margin-top: 0.6rem; }
.marquee__toggle {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.2rem; box-sizing: border-box;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color var(--t-fast);
}
.marquee__toggle:hover { color: var(--ink); }
.marquee__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.marquee__track li { flex: none; width: 13rem; height: 6.5rem; display: grid; place-items: center; padding: 1.1rem 1.4rem; border-radius: 12px; background: var(--logo-card); border: 1px solid var(--logo-card-b); }
.marquee__track img { max-width: 100%; max-height: 2.5rem; width: auto; height: auto; object-fit: contain; }
.marquee__track img.is-square { max-height: 3.4rem; }
@keyframes slide { to { transform: translateX(calc(-100% - 1rem)); } }

/* ─────────────── call to action ─────────────── */
.cta { position: relative; overflow: clip; padding-block: clamp(5rem, 12vh, 8rem); border-top: 1px solid var(--rule); }
.cta__rings { position: absolute; inset-inline-end: -8rem; top: 50%; width: 42rem; transform: translateY(-50%); opacity: 0.5; pointer-events: none; }
.cta__rings path { fill: none; stroke: var(--sand); stroke-width: 1; stroke-linejoin: round; }
.cta__rings path.idx { stroke-width: 1.6; }
.cta h2 { font-size: var(--fs-2xl); max-width: 22ch; }
.cta p { margin-top: 1.2rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }

/* ─────────────── footer ─────────────── */
.foot { position: relative; z-index: 4; background: var(--bg-2); border-top: 1px solid var(--rule); padding: 4rem 0 2rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; }
.foot__logo { width: 12rem; height: auto; }
.foot__about { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; max-width: 26rem; }
.foot .foot__h { font-family: var(--mono); font-size: 0.7rem; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); font-weight: 500; margin-bottom: 1rem; }
.foot li { margin-bottom: 0.55rem; font-size: 0.92rem; color: var(--ink-2); }
.foot a { position: relative; text-decoration: none; transition: color var(--t-fast); }
.foot a:hover { color: var(--gold-text); }
.social { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.social li { margin: 0; }
.social a { position: relative; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9px; border: 1px solid var(--rule-2); color: var(--ink-2); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.social a:hover { color: var(--gold-text); border-color: currentColor; transform: translateY(-2px); }
.social svg { width: 1rem; height: 1rem; }
.social--lg { margin-top: 0.4rem; }
.cinfo .social li { padding: 0; border: 0; }
.social--lg a { width: 2.75rem; height: 2.75rem; }
.social--lg svg { width: 1.15rem; height: 1.15rem; }
.foot__base { margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; font-size: 0.78rem; color: var(--faint); }

/* ─────────────── map-sheet header (secondary pages) ─────────────── */
.sheet { position: relative; height: clamp(30rem, 74svh, 44rem); overflow: clip; border-bottom: 1px solid var(--rule); }
.sheet__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--bg-rgb) / 0.9) 0%, rgb(var(--bg-rgb) / 0.55) 42%, rgb(var(--bg-rgb) / 0.1) 75%), linear-gradient(0deg, rgb(var(--bg-rgb) / 0.85), transparent 35%); }
.sheet__frame { position: absolute; inset: calc(var(--nav-h) + 0.6rem) var(--gut) 1.1rem; border: 1px solid var(--rule-2); pointer-events: none; z-index: 2; }
.tick { position: absolute; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.tick::before { content: ""; position: absolute; background: var(--rule-2); }
.tick--top { top: -1px; transform: translate(-50%, 0); padding-top: 9px; }
.tick--top::before { left: 50%; top: 0; width: 1px; height: 6px; }
.tick--left { left: -1px; transform: translate(-100%, -50%); padding-right: 6px; }
.tick--left::before { right: -6px; top: 50%; width: 6px; height: 1px; }
.sheet__title { position: absolute; left: var(--gut); right: var(--gut); bottom: 3.6rem; z-index: 3; max-width: 46rem; margin-inline-start: 1.4rem; }
.sheet__title h1 { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; margin: 1rem 0 1rem; }
.sheet__title h1 em { font-style: normal; color: var(--muted); font-weight: 400; }
.sheet__legend { position: absolute; inset-inline-end: calc(var(--gut) + 1.2rem); bottom: 2.2rem; z-index: 3; display: grid; gap: 0.55rem; justify-items: end; font-family: var(--mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.04em; }
.scalebar { display: flex; align-items: center; gap: 0.5rem; }
.scalebar i { display: block; height: 6px; border: 1px solid var(--ink-2); border-top: 0; }
.north { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-2); }
.north svg { width: 14px; height: 18px; }
.sheet__probe { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sheet__probe b { color: var(--gold-text-hi); font-weight: 500; }

/* ─────────────── secondary page content ─────────────── */
.page-sec { padding-block: clamp(4.5rem, 10vh, 7.5rem); }
.page-sec + .page-sec { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.prose p + p { margin-top: 1.1rem; }
.prose { max-width: 62ch; }
.prose p { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; }
.sub-h { font-size: var(--fs-lg); margin: 3.4rem 0 0.4rem; }
.statement { font-size: clamp(1.5rem, 1rem + 1.7vw, 2.4rem); line-height: 1.22; letter-spacing: -0.028em; font-weight: 500; }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.readout { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; display: grid; gap: 1rem; align-content: start; }
.readout__k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); display: flex; justify-content: space-between; }
.readout__k i { font-style: normal; color: var(--faint); }
.readout p { font-size: var(--fs-lg); line-height: 1.35; letter-spacing: -0.015em; }
.readout--wide { grid-column: 1 / -1; }
.readout--wide p { max-width: 58rem; }
.factgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.factgrid li { padding-block-start: 1.4rem; padding-inline-end: 1.2rem; }
.factgrid b { display: block; font-size: var(--fs-xl); letter-spacing: -0.03em; font-weight: 600; }
.factgrid span { font-size: 0.88rem; color: var(--muted); }
.photos { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: 1rem; }
.photos figure { margin: 0; position: relative; border-radius: 14px; overflow: clip; aspect-ratio: 4 / 5; background: var(--bg-2); }
.photos figure:first-child { aspect-ratio: auto; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photos figure:hover img { transform: scale(1.04); }
.photos figcaption { position: absolute; left: 0.8rem; bottom: 0.8rem; right: 0.8rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink); background: rgb(var(--bg-rgb) / 0.7); backdrop-filter: blur(8px); padding: 0.4rem 0.65rem; border-radius: 6px; }

/* field gallery (about): a snapping strip, three frames in view, dragged or stepped */
.gallery__head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.gallery__ctrl { display: flex; align-items: center; gap: 0.5rem; }
.gallery__count { margin: 0; margin-inline-end: 0.7rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery__count b { color: var(--ink); font-weight: 500; }
.gallery__btn {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--rule-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), opacity var(--t-fast), transform var(--t-fast) var(--ease);
}
.gallery__btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gallery__btn:hover:not(:disabled) { color: var(--gold-text); border-color: currentColor; }
.gallery__btn:active:not(:disabled) { transform: scale(0.94); }
.gallery__btn:disabled { opacity: 0.32; cursor: default; }
.gallery__track {
  --gap: 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab; border-radius: 14px; outline-offset: 6px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery__item { scroll-snap-align: start; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 14px; overflow: clip; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem;
  padding: 0.5rem 0.7rem; border-radius: 6px; background: rgb(6 9 16 / 0.62); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; line-height: 1.45; color: #f4efe4;
}
.gallery__n { opacity: 0.55; }
.gallery figcaption a { position: relative; margin-inline-start: auto; color: #f0c35c; text-decoration: none; border-bottom: 1px solid rgb(240 195 92 / 0.45); transition: border-color var(--t-fast); }
.gallery figcaption a:hover { border-bottom-color: currentColor; }
.gallery__rail { position: relative; height: 2px; margin-top: 1.4rem; border-radius: 2px; background: var(--rule); overflow: hidden; }
.gallery__rail i { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 37.5%; border-radius: 2px; background: var(--gold); transition: left 420ms var(--ease), width 420ms var(--ease); }

/* services page */
.svcpage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svcidx { position: sticky; top: calc(var(--nav-h) + 2rem); display: grid; gap: 0.1rem; }
.svcidx a { display: flex; gap: 0.8rem; align-items: baseline; text-decoration: none; color: var(--faint); font-size: 0.93rem; padding-block: 0.5rem; padding-inline: 0.9rem 0; border-inline-start: 2px solid var(--rule); transition: color var(--t-fast), border-color var(--t-fast); }
.svcidx a i { font-style: normal; font-family: var(--mono); font-size: 0.68rem; }
.svcidx a:hover { color: var(--ink-2); }
.svcidx a.is-on { color: var(--ink); border-inline-start-color: var(--c); }
.svc { padding-block: 0 clamp(4rem, 9vh, 6rem); scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.svc + .svc { padding-top: clamp(4rem, 9vh, 6rem); border-top: 1px solid var(--rule); }
.svc__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-bottom: 2rem; }
.svc__glyph { color: var(--c); padding-top: 0.2rem; }
.svc__glyph svg { width: 2.6rem; height: 2.6rem; }
.svc__num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--c); text-transform: uppercase; }
.svc h2 { font-size: var(--fs-2xl); margin: 0.5rem 0 0.8rem; }
.svc__tag { font-size: var(--fs-md); color: var(--ink-2); max-width: 40rem; }
.svc__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; }
.svc__body h3 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.scope { columns: 2; column-gap: 2rem; }
.scope li { break-inside: avoid; padding-block: 0.55rem; padding-inline: 1.1rem 0; border-top: 1px solid var(--rule); position: relative; font-size: 0.95rem; color: var(--ink-2); }
.scope li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.15em; width: 0.45rem; height: 1.5px; background: var(--c); }
/* field photo: leads the service at full width, revealed top-down behind a scan line in the service colour */
.svc__photo { margin: 0 0 2.4rem; }
.svc__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: clip; background: var(--bg-2); border: 1px solid var(--rule); }
.svc__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.svc__photo:hover .svc__frame img { transform: scale(1.03); }
.svc__frame::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; z-index: 2; width: 2.6rem; height: 3px; background: var(--c); transition: width 900ms var(--ease); }
.svc__photo:hover .svc__frame::before { width: 100%; }
.svc__frame::after { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 2px; background: var(--c); box-shadow: 0 0 14px 2px var(--c); opacity: 0; pointer-events: none; }
.svc__photo figcaption { margin-top: 0.75rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.5; color: var(--muted); }
/* the veil covers the photo until it scrolls in (the figure itself stays unclipped so it still counts as visible) */
.svc__veil { position: absolute; inset: 0; z-index: 3; background: var(--bg); transform-origin: bottom; transition: transform 1.2s var(--ease-io); }
.js .svc__photo.rv { opacity: 1; transform: none; }
html:not(.js) .svc__veil { display: none; }
html:not(.js) .svc__frame img { transform: none; }
.svc__photo.rv-in .svc__veil { transform: scaleY(0); }
.svc__photo.rv-in .svc__frame img { transform: scale(1); }
.svc__photo.rv-in .svc__frame::after { animation: scanPass 1.2s var(--ease-io) forwards; }
@keyframes scanPass { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
.svc__photo.rv-in:hover .svc__frame img { transform: scale(1.03); }

.proofs li { padding: 0.8rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.15rem; }
.proofs b { font-weight: 500; font-size: 0.95rem; }
.proofs span { font-size: 0.82rem; color: var(--muted); }

/* projects register */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; align-items: center; }
.filters button {
  cursor: pointer; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 999px; padding: 0.5rem 0.9rem; min-height: 2.75rem;
  display: inline-flex; align-items: center; gap: 0.5rem; transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
.filters button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink)); }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--on-c); background: var(--c, var(--ink)); border-color: var(--c, var(--ink)); }
.filters button[aria-pressed="true"]::before { background: var(--on-c); }
.filters .count { margin-inline-start: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.measure { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--rule-2); display: flex; flex-direction: column; }
.measure::before { content: ""; position: absolute; inset-inline-start: 0; top: -1px; height: 2px; width: 2.6rem; background: var(--c); transition: width 900ms var(--ease); }
.measure:hover::before, .js .measure.rv-in::before { width: 100%; }
.js .measure.rv-in::before { transition-delay: 250ms; transition-duration: 1400ms; }
.measure__v { display: flex; align-items: baseline; gap: 0.5rem; font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.measure__v span { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.measure__what { margin-top: 1rem; color: var(--ink-2); max-width: 20rem; }
.measure__client { margin-top: 1.4rem; font-weight: 500; }
.measure__ref { margin-top: 0.35rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; transition: color var(--t-fast); }
.measure__ref::after { content: " ↓"; color: var(--c); }
.measure__ref:hover, .measure__ref:focus-visible { color: var(--ink); }
.reg:target summary, .reg.is-flash summary { animation: regFlash 2.2s var(--ease); }
@keyframes regFlash { 0%, 30% { background: rgb(240 195 92 / 0.1); } 100% { background: transparent; } }

.register { border-top: 1px solid var(--rule-2); }
.reg { border-bottom: 1px solid var(--rule); }
.reg[hidden] { display: none; }
.reg summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.2rem minmax(0, 6fr) minmax(0, 3fr) minmax(0, 2.2fr) 1.5rem;
  gap: 1rem; align-items: center; padding: 1.05rem 0.2rem; transition: background-color var(--t-fast);
}
.reg summary::-webkit-details-marker { display: none; }
.reg summary:hover { background: rgb(var(--ink-rgb) / 0.025); }
.reg__n { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.reg__t { font-weight: 500; }
.reg__c { font-size: 0.88rem; color: var(--ink-2); }
.reg__x { width: 1.5rem; height: 1.5rem; position: relative; }
.reg__x::before, .reg__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--muted); transform: translate(-50%, -50%); transition: transform var(--t-med) var(--ease); }
.reg__x::after { transform: translate(-50%, -50%) rotate(90deg); }
.reg[open] .reg__x::after { transform: translate(-50%, -50%) rotate(0deg); }
.reg__body { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 0 0.2rem 1.4rem; }
.reg__body p { grid-column: 2; color: var(--ink-2); max-width: 52rem; font-size: 0.95rem; }
.reg__body .meta { grid-column: 2; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.6rem; }

/* contact */
.page-sec--contact { padding-bottom: clamp(6rem, 14vh, 9.5rem); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cinfo { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.cinfo li { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.3rem; }
.cinfo span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.cinfo a, .cinfo address { font-style: normal; font-size: var(--fs-md); text-decoration: none; }
.cinfo a:hover { color: var(--gold-text); }
.form { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--ink-2); }
.field label i { font-style: normal; color: var(--faint); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule-2); border-radius: 10px;
  padding: 0.8rem 0.9rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(var(--ink-rgb) / 0.32); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(240 195 92 / 0.2); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--err); }
.field .err { display: none; font-size: 0.78rem; color: var(--err-2); }
.field input:user-invalid ~ .err, .field textarea:user-invalid ~ .err, .field select:user-invalid ~ .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.form__note { font-size: 0.8rem; color: var(--muted); max-width: 28rem; }
.form__ok { grid-column: 1 / -1; font-size: 0.9rem; color: var(--l-rehab); }
.form__ok:empty { display: none; }
.form__ok.is-warn { color: var(--gold-text); }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form button[disabled] { opacity: 0.7; cursor: progress; }
.form.was-validated :is(input, select, textarea):invalid { border-color: var(--err); }
.form.was-validated :is(input, select, textarea):invalid ~ .err { display: block; }

/* reveal (JS adds .rv-in) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .rv.rv-in { opacity: 1; transform: none; }

/* ─────────────── responsive ─────────────── */
@media (max-width: 64rem) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .sec__head, .kmap, .split, .svcpage, .contact, .svc__body { grid-template-columns: minmax(0, 1fr); }
  .sec__head .lede { justify-self: start; }
  .svcidx { display: none; }
  .kmap__panel { position: static; min-height: 0; }
  .facts, .factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .readouts { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > :first-child { grid-column: 1 / -1; }
  .reg summary { grid-template-columns: 2.2rem minmax(0, 1fr) 1.5rem; }
  .reg__c, .reg summary .chip { display: none; }
  .reg__body { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery__track { grid-auto-columns: calc((100% - var(--gap)) / 2); }
  .photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .frail { display: none; }
  .hud { width: auto; left: var(--gut); right: var(--gut); bottom: 1rem; }
  .flight__cards { top: auto; bottom: 4.2rem; transform: none; }
  .fcard { align-self: end; }
  .fcard ul { display: none; }
  .world-vignette { background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.9) 0%, rgb(var(--bg-rgb) / 0.35) 45%, rgb(var(--bg-rgb) / 0.55) 100%); }
  .sat-on .world-vignette { background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.94) 0%, rgb(var(--bg-rgb) / 0.66) 45%, rgb(var(--bg-rgb) / 0.74) 100%); }
  .theme { margin-inline-start: auto; }
  .nav__burger { margin-inline-start: 0.6rem; }
  .sheet__legend { display: none; }
  /* tablets and phones: the probe sits where the service card does, so it shows only at the top of the page */
  .home .hud { display: none; }
  .home.at-top .hud { display: block; }
}
@media (max-width: 40rem) {
  .scope { columns: 1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: start; padding-top: calc(var(--nav-h) + 3rem); }
  .scrollcue { display: none; }
  .home .hud { display: none; }
  .home.at-top .hud { display: block; }
  .sheet__title { margin-inline-start: 0.4rem; }
  .facts b, .factgrid b { font-size: 1.35rem; }
  .measures { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .gallery__track { grid-auto-columns: 82%; --gap: 0.75rem; }
  .gallery__btn { width: 2.75rem; height: 2.75rem; }
  .marquee__track li { width: 10rem; height: 5.2rem; }
  .tick--left { display: none; }
  .kmap svg { overflow: visible; }
  .pin--waad text { transform: translateY(6px); }
  [lang="ar"] .pin--waad text { text-anchor: end; transform: translate(-4px, 12px); }
  .pin--majmaah text { text-anchor: end; transform: translateX(-32px); }
  .sheet__frame { inset: calc(var(--nav-h) + 0.6rem) 0.7rem 0.8rem; }
  .pin text { font-size: 30px; stroke-width: 7px; }
  .pin .dot { r: 12; }
  .pin:hover .dot, .pin.is-on .dot { r: 15; }
  .pin .hit { r: 40; }
  .sitebtns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
  .sitebtns button {
    cursor: pointer; min-height: 2.75rem; padding: 0.5rem 0.9rem; border-radius: 999px; font: inherit; font-size: 0.86rem;
    background: transparent; color: var(--ink-2); border: 1px solid var(--rule-2);
  }
  .kmap .shield-lbl { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .svc__veil { display: none; }
  .svc__frame img { transform: none !important; transition: none; }
  .svc__frame::after { display: none; }
  .marquee { mask-image: none; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
  .marquee__track { animation: none; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 40%), 1fr)); }
  .marquee__track li { width: auto; }
  .marquee__track[aria-hidden="true"], .clients__foot { display: none; }
  .scrollcue i::after, .hud__live::before, .pin.is-on .halo { animation: none; }
  .fcard { transition: opacity 150ms linear; transform: none; }
  .intro__text .w { opacity: 1 !important; }
}

/* ─────────────── language switch ─────────────── */
.lang {
  position: relative; flex: none; margin-inline-end: -1rem; padding: 0.42rem 0.7rem; border-radius: 8px; border: 1px solid var(--rule-2);
  font-size: 0.82rem; font-weight: 600; line-height: 1; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.lang:hover { color: var(--ink); border-color: rgb(var(--ink-rgb) / 0.45); }
.lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); font-size: 0.95rem; letter-spacing: 0; padding-block: 0.34rem 0.46rem; }
.menu .lang { align-self: flex-start; margin: 1rem 0 0; padding: 0.6rem 1rem; font-size: 1rem; border: 1px solid var(--rule-2); display: inline-flex; }
.menu .lang span { display: none; }
@media (max-width: 64rem) {
  .nav .lang { margin-inline: auto -1.2rem; }
  .nav .theme { margin-inline-start: 0; }
}

/* ─────────────── Arabic ───────────────
 * IBM Plex Sans Arabic for every Arabic word (never the mono face), no tracking (it breaks letter joins),
 * taller lines for ascenders and dots, and labels a step larger because Arabic reads small at label sizes.
 * Latin runs (phone, email, codes) sit in .ltr so the bidi algorithm cannot reorder them. */
:root[lang="ar"] { --font: "IBM Plex Sans Arabic", "Geist", ui-sans-serif, system-ui, sans-serif; }
[lang="ar"] body { line-height: 1.85; font-feature-settings: normal; }
[lang="ar"] * { letter-spacing: 0 !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { line-height: 1.35; }
[lang="ar"] .hero__title { line-height: 1.28; }
[lang="ar"] .hero__title .ln { padding-bottom: 0.14em; }
[lang="ar"] .sheet__title h1 { line-height: 1.3; }
[lang="ar"] .intro__text { line-height: 1.55; }
[lang="ar"] .statement { line-height: 1.6; }
[lang="ar"] .readout p, [lang="ar"] .lede, [lang="ar"] .prose p { line-height: 1.85; }
[lang="ar"] .measure__v { line-height: 1.15; }
[lang="ar"] :is(.kicker, .menu a span, .wl, .scrollcue, .hud__head, .hud dt, .hud__layer, .hud__views button, .hud__src,
  .facts span, .fcard__top, .fcard__note, .frail button, .kmap .shield-lbl, .pin text, .kmap__panel .sub, .chip, .foot__h, .marquee__toggle,
  .sheet__legend, .readout__k, .gallery__count, .gallery figcaption, .svc__photo figcaption, .svcidx a i, .svc__num,
  .svc__body h3, .filters button, .filters .count, .reg__n, .reg__body .meta, .cinfo span, .measure__ref, .tick) {
  font-family: var(--font); text-transform: none;
}
[lang="ar"] .kicker { font-size: 0.86rem; }
[lang="ar"] .hud { font-size: 0.8rem; }
[lang="ar"] .hud__head { font-size: 0.8rem; }
[lang="ar"] .fcard__top { font-size: 0.8rem; }
[lang="ar"] .fcard__note { font-size: 0.76rem; }
[lang="ar"] .frail button i, [lang="ar"] .svcidx a i { font-size: 0.78rem; }
[lang="ar"] .wl { font-size: 0.8rem; }
[lang="ar"] .scrollcue, [lang="ar"] .menu a span { font-size: 0.85rem; }
[lang="ar"] .chip { font-size: 0.78rem; }
[lang="ar"] :is(.foot__h, .marquee__toggle, .readout__k, .svc__num, .svc__body h3, .cinfo span) { font-size: 0.86rem; }
[lang="ar"] :is(.filters button, .filters .count, .reg__body .meta, .measure__ref, .kmap__panel .sub) { font-size: 0.84rem; }
[lang="ar"] .gallery figcaption, [lang="ar"] .svc__photo figcaption { font-size: 0.875rem; }
[lang="ar"] .sheet__legend { font-size: 0.78rem; }
[lang="ar"] .facts span { font-size: 0.82rem; }
[lang="ar"] .pin text { font-size: 18px; }
[lang="ar"] .kmap .shield-lbl { font-size: 16px; }
@media (max-width: 40rem) {
  [lang="ar"] .pin text { font-size: 32px; }
  [lang="ar"] .kmap .shield-lbl { font-size: 26px; }
}

/* ─────────────── right-to-left mirroring ───────────────
 * Most of the layout uses logical properties and mirrors by itself; these are the pieces that point somewhere.
 * The terrain, the Kingdom map and the logo strip are geography and artwork, so they never mirror. */
.theme__track, .kmap__fig svg, .marquee, .tick, .scalebar { direction: ltr; }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }
[dir="rtl"] .btn svg, [dir="rtl"] .gallery__btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .world-vignette {
  background:
    radial-gradient(120% 90% at 30% 45%, transparent 40%, rgb(var(--bg-rgb) / 0.55) 100%),
    linear-gradient(270deg, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.62) 36%, transparent 60%),
    linear-gradient(90deg, rgb(var(--bg-rgb) / 0.7) 0%, transparent 22%);
}
[dir="rtl"] .sheet::after {
  background: linear-gradient(270deg, rgb(var(--bg-rgb) / 0.9) 0%, rgb(var(--bg-rgb) / 0.55) 42%, rgb(var(--bg-rgb) / 0.1) 75%), linear-gradient(0deg, rgb(var(--bg-rgb) / 0.85), transparent 35%);
}
[dir="rtl"] .fprog i { transform-origin: right; }
[dir="rtl"] .field select { background-position: 13px 55%, 18px 55%; }
@media (max-width: 64rem) {
  [dir="rtl"] .world-vignette { background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.9) 0%, rgb(var(--bg-rgb) / 0.35) 45%, rgb(var(--bg-rgb) / 0.55) 100%); }
  [dir="rtl"].sat-on .world-vignette, [dir="rtl"] .sat-on .world-vignette { background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.94) 0%, rgb(var(--bg-rgb) / 0.66) 45%, rgb(var(--bg-rgb) / 0.74) 100%); }
}

/* ─────────────── 404 ─────────────── */
.nf { min-height: 100svh; display: grid; place-items: center;
  background: radial-gradient(90% 70% at 70% 30%, var(--bg-3) 0%, var(--bg) 70%); }
.nf__main { width: min(46rem, 100% - 2 * var(--gut)); padding-block: 4rem; }
.nf__brand img { height: 92px; width: auto; margin-bottom: 3rem; }
.nf h1 { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; margin: 1rem 0 1.2rem; }
.nf h1 em, .nf__ar-h em { font-style: normal; color: var(--muted); font-weight: 400; }
.nf__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.nf__ar { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); font-family: "IBM Plex Sans Arabic", var(--font); }
.nf__ar * { letter-spacing: 0 !important; }
.nf__ar .kicker { font-family: inherit; font-size: 0.86rem; text-transform: none; }
.nf__ar-h { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.35; margin: 0.8rem 0; }
.nf__ar .lede { line-height: 1.85; margin-bottom: 1rem; }
.nf__ar .link-arrow::after { content: "←"; }

/* ─────────────── about · method and reasons ─────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--rule-2); }
.step::before { content: ""; position: absolute; inset-inline-start: 0; top: -1px; width: 2.4rem; height: 2px; background: var(--gold); transition: width 900ms var(--ease); }
.step:hover::before { width: 100%; }
.step__n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--sand); }
.step h3 { font-size: var(--fs-lg); margin: 0.6rem 0 0.7rem; }
.step p { color: var(--ink-2); font-size: 0.95rem; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-2); }
.why li { padding-block: 1.6rem; padding-inline: 0 1.4rem; border-bottom: 1px solid var(--rule); }
.why li:nth-child(odd) { padding-inline-end: 2rem; }
.why h3 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.why p { color: var(--ink-2); }
[lang="ar"] .step__n { font-family: var(--font); font-size: 0.86rem; }
@media (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 40rem) { .steps, .why { grid-template-columns: minmax(0, 1fr); } }
.readouts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.readouts--two .readout p { font-size: var(--fs-lg); line-height: 1.45; }
[lang="ar"] .readouts--two .readout p { line-height: 1.7; }
.why--values { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
.why--values li { padding-inline: 0 1.6rem; }
@media (max-width: 64rem) { .readouts--two, .why--values { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────── phones: home page ───────────────
 * The service card owns the lower half of the screen, so the terrain subject is lifted into the upper half
 * (camera view offset in home.js) and the upper shading, needed only to read the hero, fades out in flight. */
@media (max-width: 40rem) {
  .home .world-vignette, [dir="rtl"] .home .world-vignette, .home.sat-on .world-vignette {
    background: linear-gradient(0deg, rgb(var(--bg-rgb) / 0.8) 0%, rgb(var(--bg-rgb) / 0.3) 22%, transparent 42%, rgb(var(--bg-rgb) / 0.25) 100%);
  }
  .home .world-vignette::before {
    content: ""; position: absolute; inset: 0; transition: opacity 700ms var(--ease);
    background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.6) 0%, rgb(var(--bg-rgb) / 0.4) 42%, transparent 62%);
  }
  .home.flying .world-vignette::before { opacity: 0; }
  .home.sat-on .world-vignette::before { background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.72) 0%, rgb(var(--bg-rgb) / 0.55) 60%, transparent 85%); }

  /* hero: tighter copy so the ground shows between the text and the probe */
  .hero .lede { font-size: 0.98rem; line-height: 1.55; }
  .hero__cta { margin-top: 1.5rem; }

  /* probe: one line of readings plus the view switch */
  .hud { padding: 0.7rem 0.85rem 0.75rem; }
  .hud__head { margin-bottom: 0.35rem; }
  .hud dl { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 0.8rem; }
  .hud dt { display: none; }
  .hud dd, .hud dd.big { text-align: start; font-size: 0.8rem; }
  .hud dd.big { color: var(--gold-text-hi); }
  .hud__layer { display: none; }
  .fcard { padding: 1.1rem 1.15rem 1rem; border-radius: 14px; }
  .fcard::before { left: 1.15rem; right: 1.15rem; }
  .fcard__ic { display: none; }
  .fcard__top { margin-bottom: 0.6rem; font-size: 0.6rem; flex-wrap: nowrap; white-space: nowrap; }
  .fcard__top b { overflow: hidden; text-overflow: ellipsis; }
  .fcard h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
  .fcard p { font-size: 0.9rem; line-height: 1.5; }
  .fcard .link-arrow { margin-top: 0.6rem; font-size: 0.92rem; }
  .fcard__note { margin-top: 0.7rem; padding-top: 0.55rem; font-size: 0.6rem; }
  .fprog { bottom: 1.4rem; }
  [lang="ar"] .fcard__top { font-size: 0.74rem; }
  [lang="ar"] .fcard__note { font-size: 0.72rem; }
}

/* ─────────────── footer · brand green, the same in both themes ───────────────
 * The colour logo opens the page in the nav; the single-colour mark closes it on a green drawn from the logo. */
.foot, .form {
  --ink: #f1ece0; --ink-2: #d6dccf; --muted: #a9bcae; --faint: #8fa695; --sand: #dcc28c;
  --gold-text: #f0c35c; --ink-rgb: 241 236 224; --rule: rgb(241 236 224 / 0.12); --rule-2: rgb(241 236 224 / 0.24);
  --err: #e2745b; --err-2: #f4a48f; --l-rehab: #75d685;
  background: #173328; color: var(--ink);
}
.foot { border-top: 0; }
/* enquiry form: the same deep green as the footer, fields sunk a shade darker */
.form { border-color: transparent; }
.form .field input, .form .field select, .form .field textarea { background-color: #10261d; border-color: rgb(241 236 224 / 0.45); }
.form .field select option { background: #10261d; color: var(--ink); }
.form .field input::placeholder, .form .field textarea::placeholder { color: var(--faint); opacity: 1; }
.foot .foot__logo { width: 12.5rem; }

/* nav: links centred in the bar on wide screens (below 75rem the centred group would meet the actions) */
@media (min-width: 75rem) {
  .nav__links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
  .nav .lang { margin-inline-start: auto; }
}

/* ─────────────── without the scene ───────────────
 * No WebGL, JavaScript off, or the scene's scripts failed: the services read as a plain section over a still of
 * the same terrain, and nothing waits for an animation to become visible. */
html:not(.js) .world, html:not(.js) .world-labels, html:not(.js) .hud { display: none; }
:is(html:not(.js), .no-webgl) .world-vignette {
  background: linear-gradient(90deg, rgb(var(--bg-rgb) / 0.9) 0%, rgb(var(--bg-rgb) / 0.55) 45%, rgb(var(--bg-rgb) / 0.2) 75%),
    linear-gradient(0deg, rgb(var(--bg-rgb) / 0.85), transparent 40%),
    var(--still) center / cover no-repeat;
}
:root { --still: url("../assets/terrain-still-dark.webp"); }
:root[data-theme="light"] { --still: url("../assets/terrain-still-light.webp"); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --still: url("../assets/terrain-still-light.webp"); } }
[dir="rtl"]:is(html:not(.js), :has(.no-webgl)) .world-vignette {
  background: linear-gradient(270deg, rgb(var(--bg-rgb) / 0.9) 0%, rgb(var(--bg-rgb) / 0.55) 45%, rgb(var(--bg-rgb) / 0.2) 75%),
    linear-gradient(0deg, rgb(var(--bg-rgb) / 0.85), transparent 40%),
    var(--still) center / cover no-repeat;
}
:is(html:not(.js), .no-webgl) .intro__text .w { opacity: 1 !important; }
:is(html:not(.js), .no-webgl) .flight { height: auto; padding-block: 2rem clamp(4rem, 9vh, 6rem); }
:is(html:not(.js), .no-webgl) .flight__pin { position: static; height: auto; overflow: visible; }
:is(html:not(.js), .no-webgl) .flight__cards {
  position: static; transform: none; width: auto; margin-inline: auto; max-width: var(--maxw); padding-inline: var(--gut);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem;
}
:is(html:not(.js), .no-webgl) .fcard { grid-area: auto; opacity: 1; visibility: visible; transform: none; transition: none; align-self: stretch; }
:is(html:not(.js), .no-webgl) .fcard ul { display: grid; }
:is(html:not(.js), .no-webgl) .fcard__note, :is(html:not(.js), .no-webgl) .frail, :is(html:not(.js), .no-webgl) .fprog { display: none; }

/* very small phones: the language chip lives in the menu only, so the menu button always fits */
@media (max-width: 22.5rem) { .nav .lang { display: none; } }
/* short phones: the probe would cover the hero buttons */
@media (max-width: 40rem) and (max-height: 41rem) { .home.at-top .hud { display: none; } }
@media (max-width: 40rem) {
  .hero .lede { text-shadow: 0 0 16px rgb(var(--bg-rgb)), 0 0 6px rgb(var(--bg-rgb)); }
}
@media (max-width: 30rem) {
  .svc__head { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* ─────────────── home · field strip ─────────────── */
.fieldstrip { border-top: 1px solid var(--rule); }
.fieldstrip__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fieldstrip figure { margin: 0; }
.fieldstrip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--bg-2); }
.fieldstrip figcaption { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--muted); }
[lang="ar"] .fieldstrip figcaption { font-family: var(--font); font-size: 0.875rem; }
@media (max-width: 40rem) {
  .fieldstrip__row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fieldstrip__row li { scroll-snap-align: start; }
  .readouts--two .readout p { font-size: 1.125rem; }
}

/* ─────────────── sheet title block ─────────────── */
.sheet__tb { padding-top: 0.45rem; border-top: 1px solid var(--rule-2); color: var(--muted); }

/* ─────────────── Arabic: weight and size where Arabic reads light ─────────────── */
[lang="ar"] :is(h1, h2) { font-weight: 700; }
[lang="ar"] :is(.hero__title .l2, .sheet__title h1 em) { font-weight: 500; }
[lang="ar"] .hero__title { line-height: 1.22; }
/* Arabic labels: 14px, never below 13px */
[lang="ar"] .kicker, [lang="ar"] .fcard__top, [lang="ar"] .hud, [lang="ar"] .hud__head, [lang="ar"] .scrollcue, [lang="ar"] .menu a span, [lang="ar"] .wl,
[lang="ar"] :is(.foot__h, .marquee__toggle, .readout__k, .svc__num, .svc__body h3, .cinfo span, .step__n),
[lang="ar"] :is(.filters button, .reg__body .meta, .measure__ref, .kmap__panel .sub) { font-size: 0.875rem; }
[lang="ar"] :is(.hud__views button, .hud__src, .chip, .sheet__legend, .frail button i, .svcidx a i, .gallery__count) { font-size: 0.8125rem; }
@media (max-width: 40rem) { [lang="ar"] .fcard__top, [lang="ar"] .hud__views button { font-size: 0.8125rem; } }
[lang="ar"] :is(.reg__n, .gallery__n, .step__n, .frail button i, .svcidx a i) { color: var(--ink-2); }
