/* ==========================================================================
   من السماء إلى الميدان — styles
   ========================================================================== */
/* Palette taken only from the two partner logos:
   green (#7dc243 → #1f7a35), blue (#35aee4 → #2a74bd), indigo (#34308f), teal (#2e8186), olive (#6f9a3c) */
:root, :root[data-theme="dark"] {
  --ink: 255 255 255;            /* lines, subtle fills */
  --glass: 7 18 26;              /* translucent panels over the scene */
  --bg: #071219;
  --bg-2: #0a1822;
  --bg-3: #0f2230;
  --bg-deep: #050d13;
  --panel-solid: #0c1d28;
  --text: #e8f1ef;
  --text-2: #bdd0cf;
  --muted: #88a2a6;
  --strong: #ffffff;
  --accent: #5cb33f; --accent-rgb: 92 179 63; --accent-hover: #6cc24c; --accent-2: #9ad66b; --accent-ink: #05160a;
  --data: #38a9e2; --data-rgb: 56 169 226; --data-2: #7cc8ee; --data-text: #d6edf9; --data-ink: #03182a;
  --indigo: #4a46ad; --teal: #2e8a8d;
  --cut: #9cbf45; --fill: #2f7fc8; --fill-rgb: 47 127 200;
  --ok: #5cb33f; --ok-rgb: 92 179 63; --warn: #38a9e2; --warn-rgb: 56 169 226; --na: #8a9aa3; --na-rgb: 138 154 163;
  --danger: #e5735c; --danger-rgb: 229 115 92;
  --ramp: linear-gradient(90deg, #34308f, #2a74bd, #35aee4, #2e8a8d, #5cb33f, #9cbf45);
  --label-shadow: 0 1px 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9);
  --plate: #ffffff;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: 12 34 44;
  --glass: 255 255 255;
  --bg: #f4f8f6;
  --bg-2: #e9f2ef;
  --bg-3: #dbe8e4;
  --bg-deep: #e2ece8;
  --panel-solid: #ffffff;
  --text: #10262f;
  --text-2: #34505a;
  --muted: #5f7a82;
  --strong: #0c222c;
  --accent: #3f9a35; --accent-rgb: 63 154 53; --accent-hover: #358a2c; --accent-2: #2f7d32; --accent-ink: #ffffff;
  --data: #2471b8; --data-rgb: 36 113 184; --data-2: #4a9ad8; --data-text: #0f3a5c; --data-ink: #ffffff;
  --indigo: #34308f; --teal: #2e8186;
  --cut: #7da337; --fill: #2471b8; --fill-rgb: 36 113 184;
  --ok: #3f9a35; --ok-rgb: 63 154 53; --warn: #2471b8; --warn-rgb: 36 113 184; --na: #7d8c94; --na-rgb: 125 140 148;
  --danger: #c4533c; --danger-rgb: 196 83 60;
  --label-shadow: 0 1px 4px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .95);
  color-scheme: light;
}
:root[lang="en"] { --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }
:root {
  --panel: rgb(var(--glass) / 0.86);
  --line: rgb(var(--ink) / 0.1);
  --line-2: rgb(var(--ink) / 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --col-w: calc(min(450px, 38vw) + var(--gutter) * 2);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* Modern page scroll bar (Chrome / Edge / Safari): thin, rounded, logo gradient, no arrows */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent; border-radius: 999px; background-clip: padding-box;
  background-image: linear-gradient(180deg, var(--accent), var(--data));
  background-color: rgb(var(--accent-rgb) / .6); opacity: .8;
}
::-webkit-scrollbar-thumb:hover { border-width: 2px; }
html::-webkit-scrollbar-track { background: var(--bg); }
/* Firefox */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgb(var(--accent-rgb) / .75) transparent; }
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important;
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.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; }
.ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; line-height: 1.65; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 10px; right: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgb(var(--accent-rgb) / .7); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgb(var(--accent-rgb) / .85); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgb(var(--ink) / .04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgb(var(--ink) / .34); background: rgb(var(--ink) / .08); }
.btn-ghost:hover svg { transform: translateX(-3px); }
.btn-ghost svg { transition: transform .35s var(--ease); }
.btn-quiet { background: rgb(var(--ink) / .05); border-color: var(--line); color: var(--text-2); min-height: 38px; padding: 0 14px; font-weight: 500; }
.btn-quiet:hover, .btn-quiet[aria-pressed="true"] { border-color: var(--data); color: var(--text); background: rgb(var(--data-rgb) / .1); }
.text-link { background: none; border: 0; padding: 0; color: var(--accent-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: .95rem; }
.text-link:hover { color: var(--strong); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgb(var(--glass) / .78); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
/* Over the bright 3D scene (light mode) the header always gets its own glass so every link and button stays legible */
.site-header { background: linear-gradient(180deg, rgb(var(--glass) / .7), rgb(var(--glass) / 0)); }
:root[data-theme="light"] .site-header,
:root[data-theme="light"] .site-header.scrolled { background: rgb(255 255 255 / .9); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: rgb(12 34 44 / .1); box-shadow: 0 6px 24px -14px rgb(12 34 44 / .35); }
:root[data-theme="light"] .main-nav a { color: #1d3a45; font-weight: 500; }
:root[data-theme="light"] .main-nav a:hover { color: #0c222c; background: rgb(var(--accent-rgb) / .12); }
:root[data-theme="light"] .header-actions .icon-btn,
:root[data-theme="light"] .header-actions .pill-toggle,
:root[data-theme="light"] .header-actions .lang-switch { background: #ffffff; border-color: rgb(12 34 44 / .22); color: #12303a; }
:root[data-theme="light"] .header-actions .icon-btn:hover,
:root[data-theme="light"] .header-actions .pill-toggle:hover,
:root[data-theme="light"] .header-actions .lang-switch:hover { border-color: var(--accent); background: rgb(var(--accent-rgb) / .08); }
:root[data-theme="light"] #sound-toggle[aria-pressed="true"], :root[data-theme="light"] .pill-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-2); background: rgb(var(--accent-rgb) / .1); }
:root[data-theme="light"] #sound-toggle .wave { opacity: .45; }
:root[data-theme="light"] #sound-toggle[aria-pressed="true"] .wave { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.logo-plate {
  display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 16px; border-radius: 14px;
  padding: 0;
}
/* logos have no background; each mode uses the version that reads on it */
.for-light { display: none !important; }
:root[data-theme="light"] .for-light { display: block !important; }
:root[data-theme="light"] .for-dark { display: none !important; }
.logo-plate img { display: block; width: auto; }
.logo-techec { height: 42px; }
.logo-saaie { height: 42px; }
.logo-sep { width: 1px; height: 32px; background: rgb(var(--ink) / .18); }
#theme-toggle .i-moon { display: none; }
:root[data-theme="light"] #theme-toggle .i-sun { display: none; }
:root[data-theme="light"] #theme-toggle .i-moon { display: block; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-size: .94rem; transition: color .3s, background .3s; }
.main-nav a:hover { color: var(--strong); background: rgb(var(--ink) / .06); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); transition: border-color .3s, background .3s, color .3s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: rgb(var(--ink) / .34); }
#sound-toggle .wave { opacity: .25; transition: opacity .3s; }
#sound-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#sound-toggle[aria-pressed="true"] .wave { opacity: 1; }
.pill-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); font-size: .88rem; color: var(--text-2); transition: all .3s;
}
.pill-toggle svg { width: 18px; height: 18px; }
.pill-toggle[aria-pressed="true"] { border-color: var(--data); color: var(--strong); background: rgb(var(--data-rgb) / .12); }
.menu-btn { display: none; }

/* ---------- Scene layer & HUD ---------- */
.scene-layer { position: fixed; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); background: var(--bg); }
.scene-layer.ready { opacity: 1; }
body.drone-free .scene-layer { z-index: 45; background: transparent; pointer-events: none; }
body.drone-free .hud { visibility: hidden; }
#scene { width: 100%; height: 100%; display: block; }
.scene-fallback { position: absolute; inset: 0; display: none; }
.scene-fallback svg { width: 100%; height: 100%; }
.no-webgl .scene-layer { opacity: 1; }
.no-webgl .scene-fallback { display: block; }
.no-webgl #scene, .no-webgl .sound-chip, .no-webgl #sound-toggle { display: none; }

.hud { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders line { stroke: var(--data); stroke-width: 1.3; stroke-dasharray: 4 4; opacity: .85; }
.leaders circle { fill: var(--data); }
.labels { position: absolute; inset: 0; }

.lbl3d {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  will-change: transform, opacity;
}
.lbl3d[hidden] { display: none; }
.lbl-tag {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 500;
  background: rgb(var(--glass) / .82); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(6px);
  transform: translate(-50%, calc(-100% - 12px));
}
.lbl-tag::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 1px; height: 12px; background: rgb(var(--ink) / .45); }
.lbl-tag.orange { border-color: rgb(var(--accent-rgb) / .6); }
.lbl-tag.cyan { border-color: rgb(var(--data-rgb) / .6); }
.lbl-tag .sym { width: 10px; height: 10px; flex: none; }
.sym-gcp { background: conic-gradient(#fff 0 25%, #111 0 50%, #fff 0 75%, #111 0); border: 1px solid #fff; }
.sym-cp { border: 2px solid var(--data); border-radius: 50%; }
.lbl-plain { font-size: .74rem; color: rgb(var(--ink) / .85); transform: translate(-50%, -50%); text-shadow: var(--label-shadow); font-weight: 600; }

.pt-btn {
  pointer-events: auto; position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center;
}
.pt-btn .ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); background: rgb(var(--accent-rgb) / .25); box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .6); animation: ping 2.4s infinite; transition: transform .3s var(--ease), background .3s; }
.pt-btn .pid { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 600 .72rem var(--mono); color: var(--strong); background: rgb(var(--glass) / .85); padding: 1px 6px; border-radius: 6px; border: 1px solid rgb(var(--accent-rgb) / .45); }
.pt-btn:hover .ring { transform: scale(1.2); }
.pt-btn[aria-pressed="true"] .ring { background: var(--accent); transform: scale(1.25); animation: none; box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .2); }
.pt-btn[aria-pressed="true"] .pid { background: var(--accent); color: var(--accent-ink); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--data-rgb) / .55); } 70%, 100% { box-shadow: 0 0 0 12px rgb(var(--data-rgb) / 0); } }

.hot-btn {
  pointer-events: auto; position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 999px; border: 1.5px solid rgb(var(--ink) / .7); background: rgb(var(--glass) / .82); color: var(--strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.hot-btn .hi { font-family: var(--mono); font-size: .8rem; }
.hot-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.hot-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hot-btn.st-ok { border-color: var(--ok); }
.hot-btn.st-check { border-color: var(--warn); }
.hot-btn.st-na { border-color: var(--na); border-style: dashed; }
.zone-btn { height: 40px; padding: 0 14px 0 12px; font-size: .92rem; border-width: 2px; background: rgb(var(--glass) / .9); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.zone-btn .zs { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.zone-btn[aria-pressed="true"] { background: var(--strong); color: var(--bg); }
.svc-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; background: rgb(var(--glass) / .9); border: 1.5px solid var(--data); color: var(--strong); transform: translate(-50%, calc(-100% - 6px)); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.svc-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--data); box-shadow: 0 0 0 4px rgb(var(--data-rgb) / .25); }
.probe-tag { display: block; padding: 6px 10px; border-radius: 10px; background: rgb(var(--glass) / .92); border: 1.5px solid var(--data); font: 600 .78rem/1.5 var(--mono); color: var(--strong); transform: translate(-50%, calc(-100% - 8px)); direction: ltr; text-align: left; }
.probe-tag span { color: var(--data); }
.hot-btn.prio { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-2); font-family: var(--mono); font-size: .9rem; min-width: 34px; }
.hot-btn.prio[aria-pressed="true"] { background: var(--strong); transform: translate(-50%, -50%) scale(1.18); }

.hero-card3d {
  position: relative; display: block; transform: translate(-50%, calc(-100% - 16px)); padding: 8px 12px; border-radius: 10px; background: rgb(var(--glass) / .86);
  border: 1px solid rgb(var(--accent-rgb) / .6); font-size: .78rem; line-height: 1.5; backdrop-filter: blur(6px); text-align: right;
}
.hero-card3d b { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.hero-card3d::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 1px; height: 16px; background: rgb(var(--accent-rgb) / .7); }

.hud-journey { position: absolute; top: 0; bottom: 0; left: 0; right: var(--col-w); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
body.journey-on .hud-journey { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.hud-top { position: absolute; top: calc(var(--header-h) + 14px); left: 24px; right: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stage-rail { pointer-events: auto; max-width: 100%; }
.stage-rail ol { list-style: none; margin: 0; padding: 5px; display: flex; gap: 4px; background: rgb(var(--glass) / .74); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px); }
.stage-rail button {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); padding: 6px 10px 6px 12px; border-radius: 999px;
  font-size: .78rem; white-space: nowrap; transition: background .5s var(--ease), color .5s var(--ease);
}
.stage-rail .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 .74rem var(--mono); border: 1px solid var(--line-2); transition: all .5s var(--ease); }
.stage-rail .t { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .7s var(--ease), opacity .5s var(--ease); }
.stage-rail button:hover .t { max-width: 200px; opacity: .9; }
.stage-rail li.done .n { background: rgb(var(--accent-rgb) / .18); border-color: rgb(var(--accent-rgb) / .5); color: var(--accent-2); }
.stage-rail li.active button { background: rgb(var(--accent-rgb) / .14); color: var(--strong); }
.stage-rail li.active .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stage-rail li.active .t { max-width: 220px; opacity: 1; }
.hud-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; background: rgb(var(--glass) / .74); border: 1px solid var(--line); backdrop-filter: blur(8px); color: var(--text-2); }
.badge svg { width: 14px; height: 14px; color: var(--accent); }
.badge-vex { opacity: 0; transition: opacity .8s var(--ease); }
.badge-vex.on { opacity: 1; }

.stage-caption {
  position: absolute; left: 50%; bottom: 13%; transform: translate(-50%, 14px); text-align: center; opacity: 0;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease); pointer-events: none; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 28px; border-radius: 18px; background: rgb(var(--glass) / .7); border: 1px solid var(--line); backdrop-filter: blur(10px); min-width: 260px;
}
.stage-caption.show { opacity: 1; transform: translate(-50%, 0); }
.cap-kicker { font: 500 .78rem var(--mono); color: var(--accent-2); letter-spacing: .04em; }
.cap-title { font-size: 1.25rem; font-weight: 700; }

.processing { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .7s var(--ease); background: radial-gradient(closest-side, rgb(var(--glass) / .55), rgb(var(--glass) / .2)); }
.processing.show { opacity: 1; }
.processing-card { width: min(380px, 86%); padding: 22px 24px; border-radius: 18px; background: rgb(var(--glass) / .92); border: 1px solid rgb(var(--data-rgb) / .35); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.processing-head { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; margin-bottom: 12px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgb(var(--data-rgb) / .25); border-top-color: var(--data); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.processing ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.processing li { display: flex; align-items: center; gap: 10px; transition: color .5s; }
.processing li .pi { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .5s; flex: none; }
.processing li.active { color: var(--strong); }
.processing li.active .pi { border-color: var(--data); box-shadow: inset 0 0 0 3px rgb(var(--data-rgb) / .5); }
.processing li.done { color: var(--text-2); }
.processing li.done .pi { background: var(--data); border-color: var(--data); }
.processing .bar { height: 4px; border-radius: 4px; background: rgb(var(--ink) / .08); overflow: hidden; }
.processing .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--data), var(--data-2)); border-radius: 4px; transition: width .25s linear; }

.legend { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--glass) / .74); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: .78rem; color: var(--text-2); opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.legend.show { opacity: 1; transform: none; }
.legend::-webkit-scrollbar { display: none; }
.legend .lg { display: flex; align-items: center; gap: 8px; flex: none; }
.legend .lg-note { color: var(--muted); }
.legend .sw { width: 14px; height: 11px; border-radius: 3px; flex: none; }
.legend b { color: var(--strong); font-weight: 600; }
.legend .ramp { width: 120px; height: 8px; border-radius: 4px; background: var(--ramp); }
.legend .ramp-row { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; }

/* ---------- Sections (solid background, scroll above the scene) ---------- */
main { position: relative; z-index: 3; }
.section { position: relative; background: var(--bg); padding-block: clamp(80px, 11vw, 140px); }
.section-index { font: 500 .8rem var(--mono); color: var(--accent); letter-spacing: .12em; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); max-width: 22ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-top: 18px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 62ch; line-height: 1.85; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(270deg, rgb(var(--glass) / .92) 0%, rgb(var(--glass) / .72) 34%, rgb(var(--glass) / 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgb(var(--glass) / 0) 22%); }
.hero-inner { position: relative; max-width: 1440px; }
.hero-copy { max-width: 660px; pointer-events: auto; padding-block: 40px 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-2); padding: 6px 14px 6px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(var(--ink) / .03); backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .2); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(var(--accent-rgb) / .05); } }
.hero h1 { font-size: clamp(1.7rem, 7vw, 3.35rem); line-height: 1.2; margin-top: 24px; font-weight: 700; white-space: nowrap; }
.hero-sub { font-size: clamp(1.2rem, 2.3vw, 1.65rem); color: var(--accent-2); font-weight: 500; margin-top: 10px; }
.hero-desc { margin-top: 22px; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.9; max-width: 56ch; }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 26px 0 0; }
.event-meta div { display: flex; flex-direction: column; gap: 2px; }
.event-meta dt { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.event-meta dt svg { width: 16px; height: 16px; color: var(--accent); }
.event-meta dd { margin: 0; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.hero > * { animation: rise 1.2s var(--ease) both; }
.hero-copy > * { animation: rise 1.1s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; } .hero-copy > *:nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sound-chip {
  position: fixed; z-index: 48; left: var(--gutter); bottom: 28px; pointer-events: none; opacity: 0; transform: translateY(8px);
  transition: border-color .3s, color .3s, opacity .6s var(--ease), transform .6s var(--ease); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--glass) / .6); backdrop-filter: blur(10px);
  font-size: .88rem; color: var(--text-2);
}
body.hero-on .sound-chip, body.drone-free .sound-chip { opacity: 1; transform: none; pointer-events: auto; }
.no-webgl .sound-chip { display: none; }
.sound-chip:hover { border-color: rgb(var(--ink) / .35); color: var(--strong); }
.sound-chip .eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-chip .eq i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; transition: height .3s; }
.sound-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--strong); }
.sound-chip[aria-pressed="true"] .eq i { background: var(--accent); animation: eq 1s ease-in-out infinite; }
.sound-chip .eq i:nth-child(2) { animation-delay: .2s !important; } .sound-chip .eq i:nth-child(3) { animation-delay: .4s !important; } .sound-chip .eq i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.scroll-cue { position: absolute; right: 50%; transform: translateX(50%); bottom: 28px; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); text-decoration: none; text-align: center; }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-cue .mouse span { position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 2.2s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Context ---------- */
.context { padding-block: clamp(80px, 10vw, 130px); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.context-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.context-grid .section-index { margin-bottom: 10px; }
.upgrade {
  position: relative; margin-top: 30px; width: min(820px, 100%); padding: 26px 28px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / .12), rgb(var(--data-rgb) / .08)); border: 1px solid rgb(var(--accent-rgb) / .3);
  display: grid; justify-items: center; gap: 18px; text-align: center;
}
.up-ico { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--data)); color: #fff; box-shadow: 0 10px 24px -10px rgb(var(--accent-rgb) / .8); }
.up-ico svg { width: 20px; height: 20px; }
.up-line { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; line-height: 1.7; color: var(--strong); margin-top: 6px; }
/* extra room below/above so the gradient also covers letters that dip under the line (ي dots, م tail) */
.up-line strong {
  display: inline-block; padding: .14em .06em .38em; margin: -.14em -.06em -.38em; line-height: 1.5;
  background: linear-gradient(90deg, var(--accent), var(--data)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700;
}
.up-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; }
.up-flow li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgb(var(--glass) / .55); border: 1px solid var(--line-2); font-weight: 600; font-size: .98rem; color: var(--text); }
.up-flow li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.up-flow li + li { margin-inline-start: 34px; position: relative; }
.up-flow li + li::before { content: ""; position: absolute; right: -27px; top: 50%; width: 20px; height: 2px; background: linear-gradient(270deg, var(--accent), var(--data)); }
.up-flow li + li::after { content: ""; position: absolute; right: -11px; top: 50%; width: 7px; height: 7px; border-left: 2px solid var(--data); border-bottom: 2px solid var(--data); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 640px) {
  .up-flow { flex-direction: column; gap: 22px; }
  .up-flow li + li { margin-inline-start: 0; }
  .up-flow li + li::before { right: 50%; top: -18px; width: 2px; height: 12px; background: linear-gradient(180deg, var(--accent), var(--data)); }
  .up-flow li + li::after { right: calc(50% - 3px); top: -8px; transform: rotate(-45deg); }
}
.context-grid .lead { max-width: 68ch; margin-inline: auto; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.95; }
.value-strip { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgb(var(--ink) / .02); }
.value-strip li { position: relative; display: flex; align-items: center; gap: 14px; padding: 24px 22px; font-weight: 600; font-size: 1.02rem; }
.value-strip li + li { border-inline-start: 1px solid var(--line); }
.value-strip li + li::before { content: ""; position: absolute; top: 50%; right: -7px; width: 12px; height: 12px; background: var(--bg-2); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); transform: translateY(-50%) rotate(-45deg); }
.vi { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--accent-rgb) / .1); color: var(--accent); }
.vi svg { width: 22px; height: 22px; }

/* ---------- Journey ---------- */
.journey { position: relative; pointer-events: none; }
.step { position: relative; display: flex; align-items: flex-start; min-height: 165vh; padding: 0 var(--gutter); }
.step-long { min-height: 290vh; }
.journey-intro { min-height: 125vh; padding-top: 18vh; }
.step-final { min-height: 300vh; }
.step-card {
  position: sticky; top: calc(var(--header-h) + 20px); width: min(450px, 38vw); pointer-events: auto;
  max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 28px 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  opacity: .35; transform: translateY(10px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .9s;
}
.step.is-active .step-card { opacity: 1; transform: none; border-color: rgb(var(--ink) / .14); }
/* a passed stage's card disappears completely so it never covers the scene */
.step.is-past .step-card { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), visibility 0s .35s; }
.step-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.step-card h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin: 6px 0 12px; }
.step-card > p { color: var(--text-2); font-size: .98rem; line-height: 1.85; }
.step-card > * + * { margin-top: 14px; }
.step-kicker { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--accent-2); font-weight: 500; }
.step-kicker .num { font: 600 .74rem var(--mono); padding: 3px 9px; border-radius: 999px; background: rgb(var(--accent-rgb) / .14); border: 1px solid rgb(var(--accent-rgb) / .4); color: var(--accent-2); direction: ltr; }
.example-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgb(var(--accent-rgb) / .1); border: 1px dashed rgb(var(--accent-rgb) / .5); color: var(--accent-2); font-weight: 600; font-size: .9rem; }
.example-tag svg { width: 16px; height: 16px; }
.intro-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px !important; }

.output { display: flex; gap: 10px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.output span { flex: none; font: 500 .72rem var(--mono); color: var(--accent); padding: 2px 8px; border: 1px solid rgb(var(--accent-rgb) / .4); border-radius: 6px; }
.scroll-hint { font-size: .82rem !important; color: var(--muted) !important; }

.substeps { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: ss; }
.substeps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: .95rem; transition: color .6s var(--ease), background .6s var(--ease); }
.ss-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .6s var(--ease); position: relative; }
.ss-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .6s; }
.substeps li.active { color: var(--strong); background: rgb(var(--accent-rgb) / .09); }
.substeps li.active .ss-dot { border-color: var(--accent); }
.substeps li.active .ss-dot::after { background: var(--accent); }
.substeps li.done { color: var(--text-2); }
.substeps li.done .ss-dot { background: var(--accent); border-color: var(--accent); }
.substeps li.done .ss-dot::after { width: 8px; height: 4px; border-radius: 0; background: transparent; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }

.instruction { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--data-rgb) / .08); border: 1px solid rgb(var(--data-rgb) / .25); font-size: .92rem !important; color: var(--data-text) !important; }
.instruction svg { width: 18px; height: 18px; flex: none; color: var(--data); }
.point-picker, .element-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.point-picker button, .element-picker button {
  border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); border-radius: 10px; padding: 6px 12px; font-size: .84rem; transition: all .3s var(--ease);
}
.point-picker button { font-family: var(--mono); }
.point-picker button:hover, .element-picker button:hover { border-color: rgb(var(--ink) / .35); }
.point-picker button[aria-pressed="true"] { background: var(--data); color: var(--data-ink); border-color: var(--data); font-weight: 600; }
.element-picker button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.data-card { padding: 14px 16px; border-radius: 14px; background: rgb(var(--ink) / .035); border: 1px solid var(--line); transition: border-color .5s, background .5s; }
.data-card.flash { border-color: rgb(var(--data-rgb) / .7); background: rgb(var(--data-rgb) / .07); }
.data-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.data-card dl div { min-width: 0; }
.data-card .wide { grid-column: 1 / -1; }
.data-card dt { font-size: .74rem; color: var(--muted); }
.data-card dd { margin: 2px 0 0; font-weight: 600; font-size: .98rem; }
.data-card dd .ltr { font-size: 1.02rem; }
.card-title { font-weight: 700; margin-bottom: 10px !important; color: var(--accent-2); }
.compare-card { border-color: rgb(var(--data-rgb) / .4); }
.whole-site {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  border: 1px solid rgb(var(--accent-rgb) / .45); background: rgb(var(--accent-rgb) / .08); color: var(--text); transition: all .35s var(--ease);
}
.whole-site svg { width: 17px; height: 17px; color: var(--accent); }
.whole-site:hover { background: rgb(var(--accent-rgb) / .16); }
.whole-site[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.whole-site[aria-pressed="true"] svg { color: var(--accent-ink); }
.slope-info { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgb(var(--accent-rgb) / .1), rgb(var(--data-rgb) / .07)); border: 1px solid rgb(var(--accent-rgb) / .3); }
.slope-info .si-arrow { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--data)); color: #fff; font-size: 1.1rem; transform: rotate(var(--slope-rot, 0deg)); }
.slope-info dl { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 16px; flex: 1; }
.slope-info dt { font-size: .72rem; color: var(--muted); }
.slope-info dd { margin: 0; font-weight: 600; font-size: .92rem; color: var(--strong); }
@media (max-width: 560px) { .slope-info dl { grid-template-columns: 1fr 1fr; } }
/* the selected zone card matches the red boundary drawn on the map */
#zone-card { border-inline-start: 3px solid #ff3b3b; }
#zone-card .card-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border: 2px solid #ff3b3b; border-radius: 3px; vertical-align: middle; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; }

.table-alt summary { cursor: pointer; font-size: .88rem; color: var(--text-2); padding: 6px 0; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.table-alt table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table-alt th, .table-alt td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.table-alt th { font-weight: 500; color: var(--muted); font-size: .78rem; }
.table-alt td.num { font-family: var(--mono); direction: ltr; text-align: right; }
.table-alt td button { border: 1px solid var(--line-2); background: none; border-radius: 6px; padding: 1px 8px; font-size: .78rem; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgb(var(--ink) / .04); border: 1px solid var(--line); }
.seg button { flex: 1 1 auto; border: 0; background: transparent; border-radius: 9px; padding: 7px 10px; font-size: .84rem; color: var(--text-2); transition: background .45s var(--ease), color .45s var(--ease); }
.seg button:hover { color: var(--strong); }
.seg button[aria-pressed="true"] { background: rgb(var(--ink) / .12); color: var(--strong); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .14); }

.section-panel { display: grid; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 1s var(--ease), opacity .8s var(--ease); margin-top: 0 !important; }
.section-panel .btn { justify-self: start; }
.section-panel.show { max-height: 620px; opacity: 1; margin-top: 14px !important; }
.profile { width: 100%; height: auto; border-radius: 12px; background: rgb(var(--ink) / .03); border: 1px solid var(--line); cursor: crosshair; }
.profile .grid { stroke: rgb(var(--ink) / .07); }
.profile .axis { fill: var(--muted); font: 9px var(--mono); }
.profile .gfill { fill: url(#pf-grad); }
.profile .gline { fill: none; stroke: var(--data); stroke-width: 2; }
.profile .cursor { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.profile .dot { fill: var(--accent); stroke: var(--strong); stroke-width: 1.5; }
.profile .end { fill: var(--data); }
.profile .endl { fill: var(--strong); font: 600 9px var(--mono); }
.range-label { font-size: .84rem; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill-pct, 50%), rgb(var(--ink) / .14) var(--fill-pct, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(var(--ink) / .14); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--strong); border: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--strong); border: 4px solid var(--accent); }
.readout { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.readout div { padding: 8px 10px; border-radius: 10px; background: rgb(var(--ink) / .035); border: 1px solid var(--line); }
.readout dt { font-size: .7rem; color: var(--muted); }
.readout dd { margin: 0; font-weight: 600; font-size: .9rem; }

.slider-block { display: grid; gap: 4px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.slider-head output { font-weight: 600; color: var(--accent-2); }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: rgb(var(--ink) / .035); border: 1px solid var(--line); }
.result .r-ico { font-size: .8rem; font-weight: 700; }
.result .r-lbl { font-size: .72rem; color: var(--muted); line-height: 1.45; }
.result .r-val { font-size: 1.12rem; font-weight: 600; }
.result.cut { border-color: rgb(var(--danger-rgb) / .45); } .result.cut .r-ico { color: var(--cut); }
.result.fill { border-color: rgb(var(--fill-rgb) / .45); } .result.fill .r-ico { color: var(--fill); }
.result.diff .r-ico { color: var(--text-2); }
.tag-note { display: inline-block; font-size: .78rem !important; padding: 3px 10px; border-radius: 6px; border: 1px dashed var(--line-2); color: var(--muted) !important; }

.layer-toggles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.layer-toggles legend { font-size: .78rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
.layer-toggles label { position: relative; }
.layer-toggles input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.layer-toggles span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; color: var(--muted); transition: all .35s var(--ease); }
.layer-toggles span::before {
  content: ""; width: 17px; height: 17px; flex: none; border-radius: 5px; border: 1.6px solid rgb(var(--ink) / .45); background: rgb(var(--ink) / .03) center / 12px no-repeat; transition: all .35s;
}
.layer-toggles label:hover span { border-color: rgb(var(--ink) / .4); color: var(--text-2); }
.layer-toggles input:checked + span { color: var(--strong); border-color: rgb(var(--ink) / .32); background: rgb(var(--ink) / .06); }
.layer-toggles input:checked + span::before {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.layer-toggles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.status-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.status-legend li { display: flex; align-items: center; gap: 6px; }
.st { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; }
.st-ok { background: rgb(var(--ok-rgb) / .18); color: var(--ok); border: 1px solid var(--ok); }
.st-check { background: rgb(var(--warn-rgb) / .16); color: var(--warn); border: 1px solid var(--warn); }
.st-na { background: rgb(var(--na-rgb) / .12); color: var(--na); border: 1px dashed var(--na); }
.status-inline { display: inline-flex; align-items: center; gap: 8px; }
.callout { padding: 12px 14px; border-radius: 12px; border-inline-start: 3px solid var(--data); background: rgb(var(--data-rgb) / .07); font-size: .92rem !important; color: var(--data-text) !important; }

.wide-card { width: min(520px, 42vw); }
.dashboard { display: grid; gap: 8px; }
.dash-head { display: none; }
.dash-rows { display: grid; gap: 8px; }
.dash-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--ink) / .035); border: 1px solid var(--line); text-align: start; width: 100%; transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease); }
.dash-row:hover, .dash-row.on { border-color: rgb(var(--accent-rgb) / .6); background: rgb(var(--accent-rgb) / .07); }
.dash-row .d-n { grid-row: span 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 600 .9rem var(--mono); }
.dash-row .d-site { font-weight: 700; font-size: .96rem; }
.dash-row .d-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .8rem; }
.dash-row .d-fields span { color: var(--muted); display: block; font-size: .7rem; }
.dash-row .d-act { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--accent-2); }
.closing { font-size: 1.25rem !important; font-weight: 700; color: var(--strong) !important; line-height: 1.6 !important; }

.step-nav { display: none; }
.card-scroll { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Outcomes ---------- */
.outcomes { background: var(--bg-2); border-top: 1px solid var(--line); }
.outcome-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.outcome-grid li { position: relative; overflow: hidden; grid-column: span 2; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgb(var(--accent-rgb) / .09) 0%, rgb(var(--data-rgb) / .04) 55%, rgb(var(--ink) / .01) 100%); border: 1px solid rgb(var(--accent-rgb) / .2); transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.outcome-grid li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--data), var(--accent)); opacity: .75; }
.outcome-grid li:hover { border-color: rgb(var(--accent-rgb) / .45); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(var(--accent-rgb) / .55); }
.outcome-grid li:nth-child(4), .outcome-grid li:nth-child(5) { grid-column: span 3; }
.outcome-grid h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.outcome-grid p { color: var(--text-2); font-size: .96rem; }
.o-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--data)); color: #fff; box-shadow: 0 8px 20px -10px rgb(var(--accent-rgb) / .8); }
.o-ico svg { width: 24px; height: 24px; }

/* ---------- Topics ---------- */
.topic-list { border-top: 1px solid var(--line); }
.topic { border-bottom: 1px solid var(--line); }
.topic-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 0; border: 0; background: none; text-align: start; }
.t-num { font: 500 .9rem var(--mono); color: var(--accent); }
.t-title { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; transition: color .3s; }
.topic-head:hover .t-title { color: var(--accent-2); }
.t-plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .6s var(--ease), background .4s, border-color .4s; }
.t-plus svg { width: 18px; height: 18px; }
.topic-head[aria-expanded="true"] .t-plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.topic-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.topic-body > div { overflow: hidden; padding-inline-start: 56px; }
.topic-body p { color: var(--text-2); max-width: 70ch; font-size: 1.02rem; }
.topic-body .text-link { margin: 14px 0 30px; }
.topic.open .topic-body { grid-template-rows: 1fr; }

/* ---------- Audience ---------- */
.audience { background: var(--bg-2); }
.audience-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience-grid li { padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.audience-grid li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent)); opacity: .8; }
.a-verb { font: 500 .8rem var(--mono); color: var(--accent-2); }
.audience-grid h3 { font-size: 1.12rem; margin: 10px 0; }
.audience-grid p { color: var(--text-2); font-size: .95rem; }

/* ---------- Agenda ---------- */
.agenda-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 60px; align-items: start; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 40px); }
.note-box { margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgb(var(--accent-rgb) / .45); background: rgb(var(--accent-rgb) / .06); color: var(--text-2); font-size: .95rem; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; right: 19px; width: 1px; background: linear-gradient(var(--accent), rgb(var(--accent-rgb) / .1)); }
.timeline li { position: relative; padding: 0 64px 34px 0; counter-increment: tl; }
.timeline li::before { content: counter(tl, decimal-leading-zero); position: absolute; right: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid rgb(var(--accent-rgb) / .5); font: 500 .78rem var(--mono); color: var(--accent-2); }
.timeline h3 { font-size: 1.12rem; padding-top: 6px; }
.timeline p { color: var(--text-2); margin-top: 6px; font-size: .97rem; }

/* ---------- Partners ---------- */
.partners { background: var(--bg-2); }
.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.partner-grid li { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); position: relative; }
.partner-grid .p-role { font-size: .8rem; color: var(--accent-2); }
.partner-grid h3 { font-size: 1.08rem; margin: 6px 0 10px; }
.partner-grid p { color: var(--text-2); font-size: .94rem; }
.partner-grid .p-logo { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 20px; padding: 8px 0; justify-content: flex-start; }
.partner-grid .p-logo img { height: 76px; max-width: 100%; width: auto; object-fit: contain; }
.partner-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.unapproved { position: absolute; top: 14px; left: 14px; font-size: .7rem; padding: 2px 8px; border-radius: 6px; background: rgb(var(--warn-rgb) / .15); color: var(--warn); border: 1px solid rgb(var(--warn-rgb) / .4); }

/* ---------- Initiative ---------- */
.initiative { background: radial-gradient(1200px 500px at 80% 0%, rgb(var(--accent-rgb) / .09), transparent 60%), var(--bg); }
.init-name { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 700; color: var(--accent-2); }
.init-name span { font: 500 .74rem var(--mono); color: var(--muted); padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 6px; }
.init-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.init-steps li { padding: 26px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgb(var(--ink) / .025); }
.is-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--accent-rgb) / .14); color: var(--accent-2); font: 600 .95rem var(--mono); border: 1px solid rgb(var(--accent-rgb) / .45); }
.init-steps h3 { font-size: 1.08rem; margin: 16px 0 8px; }
.init-steps p { color: var(--text-2); font-size: .94rem; }
.init-foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-lg); border: 1px solid rgb(var(--accent-rgb) / .3); background: rgb(var(--accent-rgb) / .05); }
.init-foot p { font-size: 1.08rem; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 60px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.06rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; flex: none; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg) translateY(-3px); transition: transform .5s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(135deg) translateY(-3px); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--text-2); padding-bottom: 24px; max-width: 68ch; }

/* ---------- Register ---------- */
.register { background: radial-gradient(900px 500px at 10% 100%, rgb(var(--data-rgb) / .07), transparent 60%), var(--bg); }
.register-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.register-panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.coming-soon { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 24px 0; }
.cs-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgb(var(--accent-rgb) / .12); color: var(--accent); }
.cs-ico svg { width: 28px; height: 28px; }
.coming-soon h3 { font-size: 1.4rem; }
.reg-form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .94rem; padding: 0; }
fieldset.field legend { margin-bottom: 14px; }
fieldset.field + .field, .field + fieldset.field { margin-top: 6px; }
.req, .opt { font-weight: 400; font-size: .74rem; padding: 1px 7px; border-radius: 6px; margin-inline-start: 6px; }
.req { color: var(--accent-2); background: rgb(var(--accent-rgb) / .1); }
.opt { color: var(--muted); background: rgb(var(--ink) / .05); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(var(--ink) / .04);
  transition: border-color .3s, box-shadow .3s, background .3s; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .16); background: rgb(var(--ink) / .06); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--cut); }
.field input[dir="ltr"] { text-align: left; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-left: 40px; }
.select-wrap select option { background: var(--panel-solid); }
.select-wrap::after { content: ""; position: absolute; left: 18px; top: 50%; width: 8px; height: 8px; border-left: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(-45deg); pointer-events: none; }
.radio-row, .chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--text-2); transition: all .3s var(--ease); }
.choice input:checked + span { border-color: var(--accent); background: rgb(var(--accent-rgb) / .12); color: var(--strong); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); line-height: 1.7; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent-2); }
.field-msg, .form-error { color: var(--danger); font-size: .86rem; }
.form-error { padding: 12px 14px; border-radius: 12px; background: rgb(var(--danger-rgb) / .1); border: 1px solid rgb(var(--danger-rgb) / .4); }
.preview-banner { padding: 10px 14px; border-radius: 12px; background: rgb(var(--warn-rgb) / .1); border: 1px dashed rgb(var(--warn-rgb) / .5); color: var(--warn); font-size: .86rem; }
.form-success { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 30px 6px; outline: none; }
.ok-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--ok-rgb) / .15); color: var(--ok); border: 1px solid var(--ok); }
.ok-ico svg { width: 28px; height: 28px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 3; background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.f-title { font-size: 1.3rem; font-weight: 700; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.f-links a { text-decoration: none; color: var(--text-2); font-size: .94rem; }
.f-links a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 8px; padding-inline-start: 18px; border-radius: 999px; background: rgb(var(--glass) / .92); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  font-weight: 600; font-size: .92rem; transform: translateY(140%); transition: transform .6s var(--ease);
}
.mobile-bar.show { transform: none; }

/* ---------- Responsive ---------- */
.main-nav a { white-space: nowrap; }
.main-nav .nav-cta { display: none; }
@media (max-width: 960px) {
  .main-nav .nav-cta { display: flex; justify-content: center; margin-top: 14px; border: 0 !important; border-radius: 999px !important; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
}
@media (max-width: 1360px) {
  .main-nav a { padding: 8px 9px; font-size: .88rem; }
  .pill-toggle span { display: none; }
  .pill-toggle { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 7px; font-size: .84rem; }
  .pill-toggle span { display: none; }
  .pill-toggle { width: 40px; padding: 0; justify-content: center; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .init-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --col-w: 0px; --header-h: 60px; }
  body { font-size: 16px; }
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px var(--gutter) 18px; margin: 0;
    background: rgb(var(--glass) / .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .4s var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .header-actions .btn-sm { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn, .header-actions .pill-toggle { width: 34px; height: 34px; }
  .header-actions .icon-btn svg, .header-actions .pill-toggle svg { width: 17px; height: 17px; }
  .logo-plate { height: 40px; gap: 8px; padding: 0; }
  .logo-techec { height: 30px; }
  .logo-saaie { height: 30px; }
  .logo-sep { height: 20px; }
  .hero { align-items: flex-end; }
  .hero-scrim { background: linear-gradient(0deg, rgb(var(--glass) / .97) 0%, rgb(var(--glass) / .86) 48%, rgb(var(--glass) / .1) 78%); }
  .hero-copy { padding: 30vh 0 120px; }
  .sound-chip { top: calc(var(--header-h) + 14px); bottom: auto; left: var(--gutter); }
  .scroll-cue { bottom: 14px; font-size: .78rem; }
  .hero-copy { padding-bottom: 96px; }
  .context-grid, .agenda-grid, .faq-grid, .register-grid { grid-template-columns: 1fr; gap: 28px; }
  .sticky-head { position: static; }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .value-strip li:nth-child(3) { border-inline-start: 0; }
  .value-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .value-strip li + li::before { display: none; }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome-grid li, .outcome-grid li:nth-child(4), .outcome-grid li:nth-child(5) { grid-column: auto; }

  /* Journey on phones: the 3D scene is a fixed panel under the header and the cards
     scroll with the page — a single scroll, no scrolling inside the cards. */
  :root { --panel-h: 44vh; }
  @supports (height: 1svh) { :root { --panel-h: 44svh; } }
  .scene-layer, .hud { inset: auto 0 auto 0; top: 0; height: 100vh; height: 100svh; transition: top .55s var(--ease), height .55s var(--ease), opacity 1.2s var(--ease); }
  body.journey-on .scene-layer, body.journey-on .hud { top: var(--header-h); height: var(--panel-h); }
  body.journey-on .scene-layer { z-index: 5; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .65); border-bottom: 1px solid var(--line-2); }
  body.journey-on .hud { z-index: 6; overflow: hidden; }
  body.drone-free .scene-layer, body.drone-free .hud { top: 0; height: 100vh; height: 100svh; }
  .hud-journey { right: 0; }
  .hud-top { top: 8px; left: 0; right: 0; padding-inline: 10px; gap: 6px; }
  .stage-rail { width: 100%; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .stage-rail::-webkit-scrollbar { display: none; }
  .stage-rail ol { width: max-content; margin-inline: auto; }
  .stage-rail .t { max-width: none; opacity: .75; }
  .stage-rail li.active .t { opacity: 1; }
  .stage-caption { top: auto; bottom: 46px; min-width: 0; width: max-content; max-width: 92%; padding: 8px 16px; }
  .legend { left: 8px; right: 8px; bottom: 8px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
  .step, .step-long, .step-final, .journey-intro { display: block; min-height: 0; padding: 0 12px; }
  .step { padding-bottom: 42vh; }
  .step-long, .step-final { padding-bottom: 115vh; }
  .journey-intro { padding-top: calc(var(--panel-h) + 18px); padding-bottom: 28vh; }
  .step-card, .wide-card {
    position: sticky; bottom: auto; width: 100%; max-height: none; overflow: visible; padding: 20px 18px 16px; border-radius: 20px; margin: 0;
    background: rgb(var(--glass) / .97);
  }
  .step-card > p { font-size: .95rem; }
  .step-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--line); }
  .step-nav button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--ink) / .05); font-size: .9rem; }
  .step-nav button[data-step-next] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
  .readout { grid-template-columns: 1fr 1fr 1fr; }
  .results { grid-template-columns: 1fr 1fr 1fr; }
  .mobile-bar { display: flex; }
  .faq-list summary { font-size: 1rem; }
  .topic-body > div { padding-inline-start: 0; }
  .topic-head { gap: 14px; }
}
/* Small, still readable labels over the scene on phones */
@media (max-width: 960px) {
  .lbl-tag { font-size: .66rem; padding: 2px 7px; gap: 4px; border-radius: 6px; transform: translate(-50%, calc(-100% - 8px)); }
  .lbl-tag::after { height: 8px; bottom: -8px; }
  .lbl-tag .sym { width: 8px; height: 8px; }
  .lbl-plain { font-size: .62rem; }
  .pt-btn { width: 34px; height: 34px; }
  .pt-btn .ring { width: 13px; height: 13px; }
  .pt-btn .pid { font-size: .6rem; top: -13px; padding: 0 4px; }
  .hot-btn { min-width: 26px; height: 26px; padding: 0 7px; font-size: .66rem; gap: 4px; border-width: 1.2px; }
  .hot-btn.prio { font-size: .74rem; min-width: 26px; }
  .zone-btn { height: 28px; padding: 0 9px 0 8px; font-size: .68rem; border-width: 1.5px; }
  .zone-btn .zs { width: 10px; height: 10px; }
  .svc-tag { font-size: .66rem; padding: 3px 8px; gap: 5px; border-radius: 7px; }
  .svc-tag::before { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgb(var(--data-rgb) / .25); }
  .probe-tag { font-size: .64rem; padding: 4px 7px; }
  .hero-card3d { font-size: .66rem; padding: 5px 8px; }
  .badge { font-size: .64rem; padding: 2px 9px; }
  .badge svg { width: 11px; height: 11px; }
  .legend { font-size: .64rem; padding: 5px 9px; border-radius: 9px; }
  .legend .sw { width: 11px; height: 8px; }
  .legend .ramp { width: 70px; height: 6px; }
  .legend .ramp-row { font-size: .6rem; }
  .stage-rail button { font-size: .7rem; padding: 4px 7px 4px 8px; gap: 5px; }
  .stage-rail .n { width: 18px; height: 18px; font-size: .64rem; }
  .cap-kicker { font-size: .66rem; }
  .cap-title { font-size: .92rem; }
  .stage-caption { padding: 7px 14px; border-radius: 12px; }
  .processing-card { padding: 14px 16px; }
  .processing-head { font-size: .95rem; margin-bottom: 8px; }
  .processing ul { font-size: .76rem; gap: 5px; }
}
@media (max-width: 560px) {
  .value-strip { grid-template-columns: 1fr; }
  .value-strip li { border-inline-start: 0 !important; }
  .value-strip li + li { border-top: 1px solid var(--line); }
  .audience-grid, .init-steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .data-card dl { gap: 8px 12px; }
  .result { padding: 10px 8px; }
  .result .r-val { font-size: .98rem; }
  .init-foot { padding: 22px; }
  .timeline li { padding-right: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line-2); background: rgb(var(--ink) / .04); font-size: .88rem; font-weight: 600; color: var(--text); transition: border-color .3s, background .3s;
}
.lang-switch:hover { border-color: var(--accent); background: rgb(var(--accent-rgb) / .1); }
.lang-switch[lang="ar"] { font-family: "Alexandria", sans-serif; }
.lang-switch[lang="en"] { font-family: "Space Grotesk", sans-serif; }
.lang-switch .ls-full { display: none; }
.lang-switch .ls-short { display: inline; }
.lang-switch { min-width: 44px; justify-content: center; letter-spacing: .04em; }
@media (max-width: 960px) {
  .lang-switch { height: 34px; min-width: 34px; padding: 0 8px; justify-content: center; font-size: .8rem; }
  .header-inner { padding-inline: 10px; gap: 6px !important; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn, .header-actions .pill-toggle { width: 32px !important; height: 32px !important; }
  .logo-plate { gap: 7px; }
  .logo-techec { height: 24px !important; }
  .logo-saaie { height: 24px !important; }
}

/* ---------- English (left-to-right) mirror of side-specific details ---------- */
[dir="ltr"] .hud-journey { left: var(--col-w); right: 0; }
[dir="ltr"] .hero-scrim { background: linear-gradient(90deg, rgb(var(--glass) / .92) 0%, rgb(var(--glass) / .72) 34%, rgb(var(--glass) / 0) 62%), linear-gradient(0deg, var(--bg) 0%, rgb(var(--glass) / 0) 22%); }
[dir="ltr"] .btn svg use[href="#i-arrow"], [dir="ltr"] .btn svg { transform: scaleX(-1); }
[dir="ltr"] .btn-ghost:hover svg { transform: scaleX(-1) translateX(-3px); }
[dir="ltr"] .hero-card3d { text-align: left; }
[dir="ltr"] .up-flow li + li::before { right: auto; left: -27px; background: linear-gradient(90deg, var(--accent), var(--data)); }
[dir="ltr"] .up-flow li + li::after { right: auto; left: -11px; transform: translateY(-50%) rotate(-135deg); }
[dir="ltr"] .value-strip li + li::before { right: auto; left: -7px; transform: translateY(-50%) rotate(135deg); }
[dir="ltr"] .timeline::before { right: auto; left: 19px; }
[dir="ltr"] .timeline li { padding: 0 0 34px 64px; }
[dir="ltr"] .timeline li::before { right: auto; left: 0; }
[dir="ltr"] .select-wrap select { padding-left: 16px; padding-right: 40px; }
[dir="ltr"] .select-wrap::after { left: auto; right: 18px; }
[dir="ltr"] .step-kicker, [dir="ltr"] .eyebrow { letter-spacing: .01em; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { letter-spacing: -0.01em; }
@media (max-width: 960px) {
  [dir="ltr"] .hud-journey { left: 0; }
  [dir="ltr"] .hero-scrim { background: linear-gradient(0deg, rgb(var(--glass) / .97) 0%, rgb(var(--glass) / .86) 48%, rgb(var(--glass) / .1) 78%); }
}
@media (max-width: 560px) { [dir="ltr"] .timeline li { padding-right: 0; padding-left: 56px; } }
@media (max-width: 640px) {
  [dir="ltr"] .up-flow li + li::before { left: 50%; top: -18px; }
  [dir="ltr"] .up-flow li + li::after { left: calc(50% - 3px); top: -8px; transform: rotate(-45deg); }
}

/* Header on laptops/tablets (≤1200px): page links move into the menu button so nothing is pushed off-screen */
@media (max-width: 1200px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px var(--gutter) 18px; margin: 0;
    background: rgb(var(--glass) / .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .4s var(--ease);
  }
  :root[data-theme="light"] .main-nav { background: rgb(255 255 255 / .98); }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .header-actions { margin-inline-start: auto; }
}

/* small phones: both logos shrink together (always the same height) */
@media (max-width: 400px) { .logo-techec, .logo-saaie { height: 20px !important; } .logo-plate { gap: 6px; } }
@media (max-width: 370px) { .logo-techec, .logo-saaie { height: 18px !important; } .header-actions { gap: 3px; } .header-actions .icon-btn, .header-actions .pill-toggle, .lang-switch { width: 30px !important; min-width: 30px; height: 30px !important; } }
@media (max-width: 340px) { .logo-techec, .logo-saaie { height: 16px !important; } .logo-plate { gap: 4px; } .header-inner { padding-inline: 6px; gap: 4px !important; } .header-actions { gap: 2px; } }

/* ---------- Live registration badge ---------- */
.register .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.badge-stage { position: relative; width: min(330px, 100%); margin: 30px auto 0; padding-top: 118px; transform-origin: 50% 0; animation: badge-sway 7s ease-in-out infinite; }
@keyframes badge-sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }
.lanyard { position: absolute; top: 0; left: 50%; width: 36px; height: 128px; margin-left: -18px; border-radius: 4px 4px 0 0; overflow: hidden;
  background: linear-gradient(90deg, #0b2b2c, #12403c 50%, #0b2b2c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.lanyard-fill { position: absolute; inset: 0 0 auto 0; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, #5cb33f, #2e9a96 60%, #38a9e2); transition: height .9s var(--ease); box-shadow: 0 0 18px rgb(92 179 63 / .5); }
.lanyard-text { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); writing-mode: vertical-rl; font-size: .62rem; letter-spacing: .14em; color: rgb(255 255 255 / .55); white-space: nowrap; font-weight: 600; }
.badge-clip { position: absolute; top: 108px; left: 50%; width: 58px; height: 30px; margin-left: -29px; z-index: 2; border-radius: 9px; background: linear-gradient(180deg, #f1f3f2, #b9c0bd); box-shadow: 0 6px 12px -6px rgb(0 0 0 / .5); }
.badge-clip span { position: absolute; left: 50%; bottom: 7px; width: 20px; height: 8px; margin-left: -10px; border-radius: 4px; background: #4b5552; }
.ev-badge {
  position: relative; overflow: hidden; border-radius: 24px; padding: 34px 24px 22px; text-align: start; color: #eaf3f0; isolation: isolate;
  background: radial-gradient(120% 70% at 85% 0%, rgb(92 179 63 / .28), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgb(56 169 226 / .2), transparent 60%), linear-gradient(160deg, #0f3d3a 0%, #0b2c33 55%, #071b22 100%);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / .65), inset 0 0 0 1px rgb(255 255 255 / .08);
  transition: box-shadow .8s var(--ease);
}
.badge-stage.is-complete .ev-badge { box-shadow: 0 30px 60px -28px rgb(0 0 0 / .65), inset 0 0 0 1.5px rgb(92 179 63 / .75), 0 0 40px -8px rgb(92 179 63 / .55); }
.bd-watermark { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(255 255 255 / .07); z-index: -1; pointer-events: none; }
.bd-wm-drone { color: rgb(255 255 255 / .09); }
.bd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.bd-top img { height: 22px; width: auto; display: block; }
.bd-sep { width: 1px; height: 18px; background: rgb(255 255 255 / .2); }
.bd-event { margin-top: 14px !important; font-size: .8rem; font-weight: 700; color: #9ad66b; letter-spacing: .01em; }
.bd-event span { display: block; font-size: .7rem; font-weight: 400; color: rgb(234 243 240 / .6); margin-top: 2px; }
.bd-role { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); color: rgb(234 243 240 / .55); }
.bd-role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5cb33f; box-shadow: 0 0 0 3px rgb(92 179 63 / .25); }
.bd-name { margin-top: 12px; font-size: 1.65rem; line-height: 1.3; font-weight: 700; color: rgb(234 243 240 / .38); overflow-wrap: anywhere; min-height: 2.15rem; }
.bd-org { margin-top: 4px !important; font-size: .92rem; color: rgb(234 243 240 / .4); }
.bd-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.bd-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / .08); font-size: .82rem; color: rgb(234 243 240 / .42); min-width: 0; }
.bd-rows li svg { width: 16px; height: 16px; flex: none; color: rgb(234 243 240 / .45); }
.bd-rows li bdi, .bd-rows li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bd-rows li.is-pref svg { color: #9ad66b; }
.bd-pref { margin-inline-start: auto; font-style: normal; font-size: .64rem; padding: 1px 8px; border-radius: 999px; background: rgb(92 179 63 / .2); color: #b8e08a; border: 1px solid rgb(92 179 63 / .4); flex: none; }
[data-b].is-filled { color: #eaf3f0; }
.bd-name.is-filled { color: #ffffff; }
.bd-role.is-filled { color: #eaf3f0; }
[data-b].pop { animation: bd-pop .5s var(--ease); }
@keyframes bd-pop { from { opacity: .35; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.bd-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.bd-segs { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.bd-segs i { height: 6px; border-radius: 4px; background: rgb(255 255 255 / .1); transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.bd-segs i.on { background: linear-gradient(90deg, #5cb33f, #38a9e2); box-shadow: 0 0 10px rgb(92 179 63 / .5); }
.bd-pct { font-size: .74rem; color: rgb(234 243 240 / .6); white-space: nowrap; }
.bd-pct bdi { font-family: var(--mono); font-weight: 600; color: #fff; font-size: .9rem; }
html.reduce-motion .badge-stage { animation: none; }
@media (prefers-reduced-motion: reduce) { .badge-stage { animation: none; } }
@media (max-width: 960px) {
  .register .section-head { position: static; }
  .badge-stage { width: min(300px, 92%); }
  .ev-badge { padding: 28px 20px 18px; }
}

/* ---------- Register layout: centred heading, then badge (right) + form ---------- */
.register-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px 56px; align-items: start; }
.register-grid > .section-head { grid-column: 1 / -1; position: static !important; text-align: center; margin: 0 auto 6px; max-width: 760px; }
.register-grid > .section-head h2 { max-width: none; margin-inline: auto; }
.register-grid > .section-head .lead { margin-inline: auto; }
.badge-col { position: sticky; top: calc(var(--header-h) + 18px); display: flex; justify-content: center; }
/* bigger badge */
.badge-stage { width: min(420px, 100%); margin: 0 auto; padding-top: 150px; }
.lanyard { width: 46px; height: 164px; margin-left: -23px; }
.lanyard-text { writing-mode: horizontal-tb; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); font-size: .72rem; letter-spacing: .02em; line-height: 1; }
.badge-clip { top: 140px; width: 66px; height: 34px; margin-left: -33px; }
.ev-badge { padding: 42px 32px 28px; border-radius: 28px; }
.bd-top { padding-bottom: 20px; gap: 16px; justify-content: center; }
.bd-top img { height: 30px; filter: brightness(0) invert(1); opacity: .96; }
.bd-sep { height: 24px; background: rgb(255 255 255 / .3); }
.bd-event { font-size: .92rem; margin-top: 18px !important; }
.bd-event span { font-size: .78rem; }
.bd-role { margin-top: 26px; font-size: .85rem; padding: 5px 14px; }
.bd-name { font-size: 2.2rem; min-height: 2.9rem; margin-top: 14px; }
.bd-org { font-size: 1.02rem; }
.bd-rows { margin-top: 22px; }
.bd-rows li { font-size: .92rem; padding: 12px 0; }
.bd-rows li svg { width: 18px; height: 18px; }
.bd-progress { margin-top: 22px; }
.bd-segs i { height: 8px; }
.bd-pct bdi { font-size: 1rem; }
@media (max-width: 960px) {
  .register-grid { grid-template-columns: 1fr; }
  .badge-col { position: static; }
  .badge-stage { width: min(360px, 94%); padding-top: 130px; }
  .lanyard { height: 144px; }
  .badge-clip { top: 120px; }
  .ev-badge { padding: 34px 24px 22px; }
  .bd-name { font-size: 1.8rem; }
  .bd-top img { height: 24px; }
}

/* footer credit */
.powered-by { margin-top: 10px !important; font-size: .8rem; color: var(--muted); letter-spacing: .02em; font-family: "Space Grotesk", var(--font); }
.powered-by strong { color: var(--text); font-weight: 600; }

/* ---------- Badge: site identity palette, one solid line colour ---------- */
.badge-stage { --bd-line: #1f3a4c; }
.ev-badge {
  background:
    radial-gradient(110% 60% at 100% 0%, rgb(var(--accent-rgb, 92 179 63) / .22), transparent 62%),
    radial-gradient(90% 55% at 0% 100%, rgb(56 169 226 / .2), transparent 62%),
    linear-gradient(165deg, #0f2230 0%, #0a1822 55%, #071219 100%);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / .6), inset 0 0 0 1px var(--bd-line);
}
.ev-badge::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #5cb33f, #38a9e2); z-index: 1; }
.bd-top { border-bottom: 1px solid var(--bd-line); }
.bd-sep { background: var(--bd-line); }
.bd-rows li { border-top: 1px solid var(--bd-line); }
.bd-role { background: #12283a; border-color: var(--bd-line); }
.bd-event { color: #9ad66b; }
.bd-segs i { background: #1a3042; }
.lanyard { background: linear-gradient(90deg, #0a1822, #13293a 50%, #0a1822); box-shadow: inset 0 0 0 1px var(--bd-line); }
.lanyard-fill { background: linear-gradient(180deg, #5cb33f, #38a9e2); }

/* ---------- Footer: partner locations, icon links ---------- */
.f-orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.f-orgs li { display: grid; gap: 4px; }
.f-org { color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; }
a.f-org:hover { color: var(--accent-2); }
.f-loc { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.f-loc svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent); }
.f-links { align-items: center; }
.f-social { display: inline-flex; align-items: center; gap: 8px; }
.f-social svg { width: 18px; height: 18px; color: var(--data); }
.back-top { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgb(var(--ink) / .16); background: rgb(var(--ink) / .05); color: var(--text) !important;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.back-top svg { width: 20px; height: 20px; }
.back-top:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; transform: translateY(-3px); }
.back-top:focus-visible { outline: 2px solid var(--data); outline-offset: 3px; }
.powered-by a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgb(var(--accent-rgb) / .5); }
.powered-by a:hover { color: var(--accent-2); border-color: currentColor; }

/* ---------- Audience verbs: Alexandria, card-style chip ---------- */
.a-verb { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
  font: 600 .9rem/1.4 var(--font); letter-spacing: 0; color: var(--accent-2);
  background: linear-gradient(160deg, rgb(var(--accent-rgb) / .14), rgb(var(--data-rgb) / .08));
  border: 1px solid rgb(var(--accent-rgb) / .3); }

/* ---------- Badge text: solid colours only (no alpha, so overlapping glyphs stay even) ---------- */
.bd-event span, .bd-pct { color: #93a6b0; }
.bd-role { color: #8a9ca6; }
.bd-name { color: #66798a; }
.bd-org, .bd-rows li { color: #6f828e; }
.bd-rows li svg { color: #74879a; }
.lanyard-text { color: #a3b1b9; }
[data-b].is-filled, .bd-role.is-filled { color: #eaf3f0; }
.bd-name.is-filled { color: #ffffff; }

/* ---------- Footer bottom: note and credit on one line ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-bottom > p { margin: 0 !important; }
.footer-bottom .powered-by { margin-inline-start: auto !important; }

/* ---------- Register on phones/tablets: form first, badge below it ---------- */
@media (max-width: 960px) {
  .register-grid > .section-head { order: 0; }
  .register-grid > .register-panel { order: 1; }
  .register-grid > .badge-col { order: 2; }
}
/* credit hugs the far edge (left on the Arabic page, right on the English one) */
.footer-bottom .powered-by { margin: 0 !important; }
html[dir="rtl"] .footer-bottom .powered-by { margin-right: auto !important; }
html[dir="ltr"] .footer-bottom .powered-by { margin-left: auto !important; }

/* ---------- Scroll hint: icon and text share one centre line ---------- */
.scroll-cue { left: 0; right: 0; margin-inline: auto; transform: none; width: max-content; max-width: calc(100vw - 32px); }

/* ---------- Arabic labels out of the code font: Alexandria, no letter-spacing (keeps letters joined) ---------- */
:root { --mono: "IBM Plex Mono", "Alexandria", ui-monospace, Consolas, monospace; }
.section-index, .cap-kicker, .output span, .init-name span, .step-kicker, .t-num {
  font-family: var(--font) !important; letter-spacing: 0 !important; }
.section-index { font-weight: 600; font-size: .86rem; }

/* ---------- Footer bottom on phones: both lines centred ---------- */
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
  html[dir] .footer-bottom .powered-by { margin: 0 !important; }
}


/* ---------- Hero: partnership line in the logos' blue ---------- */
.hero-partners { margin-top: 10px !important; font-size: clamp(.95rem, 1.5vw, 1.12rem); font-weight: 600; color: var(--data); line-height: 1.6; max-width: 34em; }
:root[data-theme="light"] .hero-partners { color: #1f6fb5; }

/* ---------- Lead-in «لنبدأ بإعادة إعمار سوريا»: a drone survey pass over a district ----------
   The aerial map is drawn twice (rubble / rebuilt); the scan line (--scan, driven by scroll) reveals the rebuilt one. */
.kickoff { --p: 0; --scan: 0%; --scan-on: 0; position: relative; min-height: 92vh; min-height: 92svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  background:
    radial-gradient(70% 62% at 50% 50%, rgb(42 112 128 / .55), transparent 76%),
    radial-gradient(40% 40% at 85% 15%, rgb(154 214 107 / .14), transparent 70%),
    linear-gradient(170deg, #113a4b 0%, #144a57 52%, #154a42 100%); }
.kick-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.kick-new { clip-path: inset(0 0 calc(100% - var(--scan)) 0); }
.kick-old { clip-path: inset(var(--scan) 0 0 0); }
.kick-map * { vector-effect: non-scaling-stroke; }
/* rebuilt: clean blocks, marked streets, green parks */
.kick-map .r-road { fill: rgb(255 255 255 / .06); stroke: rgb(226 246 255 / .24); stroke-width: 1; }
.kick-map .r-dash { stroke: rgb(255 255 255 / .5); stroke-width: 1.2; stroke-dasharray: 10 9; }
.kick-map .r-b { fill: rgb(226 246 255 / .075); stroke: rgb(226 246 255 / .52); stroke-width: 1; }
.kick-map .r-key { fill: rgb(154 214 107 / .16); stroke: #a8e27c; stroke-width: 1.4; }
.kick-map .r-roof { fill: none; stroke: rgb(226 246 255 / .2); stroke-width: 1; }
.kick-map .r-park { fill: rgb(154 214 107 / .15); stroke: rgb(154 214 107 / .55); stroke-width: 1; }
.kick-map .r-tree { fill: rgb(154 214 107 / .4); }
.kick-map .r-path { fill: none; stroke: rgb(236 246 226 / .32); stroke-width: 1.2; stroke-dasharray: 3 5; }
/* rubble: broken outlines, debris, faded streets */
.kick-map .o-road { fill: none; stroke: rgb(236 210 170 / .28); stroke-width: 1; }
.kick-map .o-b { fill: rgb(236 210 170 / .04); stroke: rgb(236 210 170 / .55); stroke-width: 1; }
.kick-map .o-d { fill: rgb(236 210 170 / .42); }
.kick-map .o-park { fill: none; stroke: rgb(236 210 170 / .25); stroke-width: 1; stroke-dasharray: 4 7; }
/* soft dark centre so the headline always reads clearly over the map */
.kickoff::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(44% 38% at 50% 50%, rgb(10 38 48 / .86), rgb(10 38 48 / .5) 58%, transparent 82%),
    linear-gradient(180deg, rgb(9 30 38 / .55), transparent 16%, transparent 84%, rgb(9 30 38 / .55)); }
/* scan line */
.kick-scan { position: absolute; inset-inline: 0; top: var(--scan); height: 0; z-index: 2; pointer-events: none; opacity: var(--scan-on); transition: opacity .4s var(--ease); }
.kick-scan::before { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, transparent, rgb(124 200 238 / .13)); }
.kick-scan::after { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #7cc8ee 10%, #a8e27c 50%, #7cc8ee 90%, transparent); box-shadow: 0 0 16px rgb(124 200 238 / .75); }
.ks-tag { position: absolute; inset-inline-end: clamp(18px, 5vw, 64px); font-size: .76rem; font-weight: 600; line-height: 1; padding: 6px 11px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(4px); }
.ks-up { bottom: 12px; color: #e4f6d6; background: rgb(154 214 107 / .16); border: 1px solid rgb(154 214 107 / .5); }
.ks-down { top: 12px; color: #f3e3c8; background: rgb(236 210 170 / .1); border: 1px solid rgb(236 210 170 / .4); }
.ks-pct { position: absolute; right: clamp(18px, 5vw, 64px); bottom: 14px; font-size: .72rem; letter-spacing: .08em; color: #d6edf9; }
.ks-pct b { font-weight: 600; color: #a8e27c; }
[dir="ltr"] .ks-pct { right: auto; left: clamp(18px, 5vw, 64px); }
/* camera frame and telemetry */
.kick-hud { position: absolute; inset: clamp(14px, 2.6vw, 30px); top: 84px; /* below the fixed header */ z-index: 2; pointer-events: none; font: 500 .72rem/1.3 var(--mono); letter-spacing: .05em; color: rgb(226 246 255 / .7); }
.kick-hud .hc { position: absolute; width: 26px; height: 26px; border: 0 solid rgb(226 246 255 / .6); }
.kick-hud .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; } .kick-hud .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.kick-hud .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; } .kick-hud .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-a, .hud-b, .hud-s { position: absolute; display: flex; align-items: center; gap: 8px; }
.hud-a { top: 7px; left: 40px; } .hud-b { top: 7px; right: 40px; } .hud-s { bottom: 7px; left: 40px; }
.hud-s i { width: 64px; height: 6px; border: 1px solid currentColor; border-top: 0; }
.kick-hud .rec { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 8px #ff5a4f; animation: kick-rec 1.6s steps(1) infinite; }
@keyframes kick-rec { 50% { opacity: .25; } }
/* headline and call to action */
.kickoff-inner { position: relative; z-index: 3; padding: 0 16px; display: grid; justify-items: center; gap: 30px; transform: scale(calc(.96 + var(--p) * .06)); will-change: transform; }
.kickoff-title { margin: 0; font-weight: 700; font-size: clamp(2.5rem, 8.4vw, 7rem); line-height: 1.2; letter-spacing: 0; color: #fff; max-width: 12ch; text-wrap: balance; text-shadow: 0 6px 30px rgb(8 30 40 / .5); }
.kickoff .kw { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.kickoff.in .kw { opacity: 1; transform: none; filter: none; }
.kickoff.in .kw:nth-child(2) { transition-delay: .18s; } .kickoff.in .kw:nth-child(3) { transition-delay: .36s; } .kickoff.in .kw:nth-child(4) { transition-delay: .6s; }
.kickoff .kw-accent { background: linear-gradient(100deg, #a8e27c 0%, #7fd05a 35%, #6cc6f0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.kickoff-cue { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none;
  border: 1px solid rgb(255 255 255 / .38); background: rgb(255 255 255 / .1); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s, background .3s var(--ease), border-color .3s var(--ease); }
.kickoff.in .kickoff-cue { opacity: 1; transform: none; }
.kickoff-cue svg { width: 18px; height: 18px; transform: rotate(180deg); animation: kick-bob 2.2s var(--ease) infinite; }
.kickoff-cue:hover { background: #5cb33f; border-color: #5cb33f; }
.kickoff-cue:focus-visible { outline: 2px solid #7cc8ee; outline-offset: 4px; }
@keyframes kick-bob { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(-4px); } }
.no-js .kickoff .kw, .no-js .kickoff-cue { opacity: 1; transform: none; filter: none; }
@media (max-width: 760px) {
  .kickoff { min-height: 80vh; min-height: 80svh; }
  .kickoff-title { font-size: clamp(2.3rem, 12.5vw, 3.6rem); }
  .kickoff-inner { gap: 24px; }
  .hud-b { display: none; }
  .ks-tag { font-size: .7rem; padding: 5px 9px; }
}
html.reduce-motion .kickoff .kw, html.reduce-motion .kickoff-cue, html.reduce-motion .kick-scan { transition: none; }
html.reduce-motion .kickoff-cue svg, html.reduce-motion .kick-hud .rec { animation: none; }
html.reduce-motion .kickoff-inner { transform: none; }
@media (prefers-reduced-motion: reduce) { .kickoff .kw, .kickoff-cue, .kick-scan { transition: none; } .kickoff-cue svg, .kick-hud .rec { animation: none; } .kickoff-inner { transform: none; } }


/* ---------- Stage 6: zones in their own titled group, apart from the layer toggles ---------- */
.picker-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.picker-title { margin: 0 0 10px !important; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.picker-group .whole-site { margin-top: 0; }


/* ---------- Section cards: light, professional motion (after the case study) ---------- */
/* cards lift and tilt slightly toward the cursor; rows get a soft tint. A light follows the cursor on both. */
.fx-card, .fx-row { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.fx-card {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 1s var(--ease), translate .5s var(--ease), transform .45s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.reveal.fx-card, .reveal.fx-row { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); translate: 0 24px; transition: opacity 1s var(--ease), translate 1s var(--ease), transform .45s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease); }
.reveal.in.fx-card, .reveal.in.fx-row { translate: 0 0; }
.fx-card::after, .fx-row::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(340px circle at var(--mx) var(--my), rgb(var(--accent-rgb) / .16), rgb(var(--data-rgb) / .06) 40%, transparent 70%);
}
.o-ico, .vi, .is-n, .a-verb, .p-logo img, .t-num, .t-plus { transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease); }
.audience-grid li::before, .outcome-grid li::before { transform-origin: right center; transform: scaleX(.35); transition: transform .7s var(--ease), opacity .5s; }
[dir="ltr"] .audience-grid li::before, [dir="ltr"] .outcome-grid li::before { transform-origin: left center; }
.faq-list summary { transition: color .3s var(--ease), padding .4s var(--ease); }
.timeline h3 { transition: color .3s var(--ease); }
.timeline li::before { transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }

@media (hover: hover) {
  .fx-card:hover, .fx-card:focus-within { translate: 0 -5px; border-color: rgb(var(--accent-rgb) / .5); box-shadow: 0 26px 50px -30px rgb(var(--accent-rgb) / .6), 0 10px 30px -22px rgb(var(--data-rgb) / .5); }
  .reveal.in.fx-card:hover { translate: 0 -5px; }
  .fx-card:hover::after, .fx-row:hover::after { opacity: 1; }
  .outcome-grid li:hover::before, .audience-grid li:hover::before { transform: scaleX(1); opacity: 1; }
  .outcome-grid li:hover .o-ico { transform: rotate(-8deg) scale(1.1); box-shadow: 0 14px 26px -12px rgb(var(--accent-rgb) / .9); }
  .audience-grid li:hover .a-verb { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .init-steps li:hover .is-n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.12); }
  .partner-grid li:hover .p-logo img { transform: scale(1.05); }
  .value-strip li:hover .vi { transform: translateY(-3px) rotate(-6deg); background: var(--accent); color: var(--accent-ink); }
  .timeline li:hover::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .18); transform: scale(1.06); }
  .timeline li:hover h3 { color: var(--accent-2); }
  .faq-list details:hover summary { color: var(--accent-2); padding-inline-start: 8px; }
  .topic-head:hover .t-num { transform: translateX(-4px); }
  [dir="ltr"] .topic-head:hover .t-num { transform: translateX(4px); }
  .topic-head:hover .t-plus { border-color: var(--accent); color: var(--accent); }
}

/* agenda: the timeline line fills in as you scroll through the programme */
.timeline::after { content: ""; position: absolute; top: 10px; right: 19px; width: 2px; margin-right: -.5px; height: calc((100% - 20px) * var(--fill, 0)); border-radius: 2px; background: linear-gradient(var(--accent), var(--data)); box-shadow: 0 0 12px rgb(var(--accent-rgb) / .6); }
[dir="ltr"] .timeline::after { right: auto; left: 19px; margin: 0 0 0 -.5px; }

html.reduce-motion .fx-card, html.reduce-motion .fx-row { transform: none !important; translate: none !important; }
@media (prefers-reduced-motion: reduce) { .fx-card, .fx-row { transform: none !important; translate: none !important; } }
/* the new card motion takes precedence over the older per-section hover rules */
.outcome-grid li.fx-card, .audience-grid li.fx-card, .partner-grid li.fx-card, .init-steps li.fx-card { transition: opacity 1s var(--ease), translate .5s var(--ease), transform .45s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease); }
.outcome-grid li.fx-card:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* agenda: the line runs behind the numbered circles (circles share the section background, so the line hides behind them) */
.timeline::before, .timeline::after { z-index: 0; }
.timeline > li { z-index: 1; }
.timeline li::before { z-index: 2; background: var(--bg); }




/* ---------- Hero: switch between the two event drones (changes the 3D model only) ---------- */
.drone-toggle { position: absolute; inset-inline-end: clamp(16px, 6vw, 110px); bottom: clamp(90px, 16vh, 170px); z-index: 3; pointer-events: auto; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line-2); border-radius: 16px; background: rgb(var(--glass) / .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -26px rgb(0 0 0 / .7); min-width: 0; }
.drone-toggle[hidden] { display: none; }
.drone-toggle legend { float: left; width: 100%; padding: 0 2px; margin-bottom: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.dt-options { clear: both; display: flex; gap: 6px; }
.dt-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-family: "Space Grotesk", var(--font); font-weight: 600; font-size: .9rem; color: var(--text); background: rgb(var(--ink) / .03); transition: background .3s, border-color .3s, color .3s; }
.dt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dt-opt svg { width: 13px; height: 13px; display: none; }
.dt-opt:hover { border-color: rgb(var(--accent-rgb) / .55); }
.dt-opt:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dt-opt:has(input:checked) svg { display: inline-block; }
.dt-opt:has(input:focus-visible) { outline: 2px solid var(--data); outline-offset: 2px; }
@media (max-width: 760px) { .drone-toggle { inset-inline-end: 16px; bottom: auto; top: calc(var(--header-h) + 12px); padding: 6px 8px 8px; } .dt-opt { padding: 6px 11px; font-size: .82rem; } }

/* ---------- Propeller cursor (after the 7 stages; drawn by js/app.js, mouse only) ---------- */
.prop-cursor { position: fixed; left: 0; top: 0; z-index: 10000; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.prop-cursor svg { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; overflow: visible; color: var(--text); filter: drop-shadow(0 2px 4px rgb(0 0 0 / .35)); transition: transform .25s var(--ease); }
html.prop-cursor-on .prop-cursor { opacity: 1; }
html.prop-cursor-on :is(#data-journey ~ section, .site-footer),
html.prop-cursor-on :is(#data-journey ~ section, .site-footer) :not(input, textarea, select, [contenteditable="true"]) { cursor: none !important; }
.pc-spin { transform-box: view-box; transform-origin: 0 0; }
html.prop-cursor-on .pc-spin { animation: pc-spin .55s linear infinite; } /* spins only while it is shown */
.pc-disc { fill: currentColor; opacity: .07; }
.pc-blade { fill: currentColor; opacity: .9; }
.pc-tip { fill: #ff8a2b; }
.pc-hub { fill: var(--bg); stroke: currentColor; stroke-width: 2.5; }
.pc-dot { fill: var(--accent); }
.prop-cursor.is-link svg { transform: scale(1.25); }
.prop-cursor.is-link .pc-spin { animation-duration: .22s; }
.prop-cursor.is-link .pc-disc { fill: var(--accent); opacity: .16; }
.prop-cursor.is-press svg { animation: pc-press .3s var(--ease); }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@keyframes pc-press { 40% { transform: scale(.85); } }
html.reduce-motion .pc-spin { animation: none; }
@media (prefers-reduced-motion: reduce) { .pc-spin { animation: none; } }

/* ---------- Participating organisations (logos managed from the dashboard, rendered by server.js) ---------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.logos-band { position: relative; background: var(--bg); padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.lg-lead { margin: 0 0 18px; text-align: center; font-size: .86rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 20px); }
.logo-row > li { display: flex; }
.logo-row a, .logo-row li > .lg-logo { text-decoration: none; color: inherit; }
.logo-row a { display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 16px; }
.logo-row a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.logo-row li { flex-direction: column; align-items: center; gap: 8px; }
.lg-logo { display: grid; place-items: center; width: clamp(150px, 18vw, 200px); height: clamp(84px, 9vw, 104px); padding: 14px 20px; border-radius: 16px;
  background: #fff; border: 1px solid rgb(12 34 44 / .08); box-shadow: 0 10px 30px -18px rgb(0 0 0 / .35); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lg-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
:root:not([data-theme="light"]) .lg-logo.has-dark { background: rgb(255 255 255 / .05); border-color: var(--line); }
.lg-name { font-size: .78rem; color: var(--muted); text-align: center; max-width: 200px; line-height: 1.4; }
.logo-row a:hover .lg-logo { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgb(0 0 0 / .45); }
@media (max-width: 560px) { .lg-logo { width: 140px; height: 80px; padding: 12px 14px; } }

/* ---------- Looping animations pause while their section is off screen (set by js/app.js); nothing visible changes ---------- */
.is-off, .is-off * { animation-play-state: paused !important; }

/* ---------- Faster first load: sections far below the screen are laid out only when they come near.
   Same content and look; the 7-stage journey is left out because its scrolling needs exact positions. ---------- */
#context, #kickoff, #learning-outcomes, #topics, #audience, #agenda, #partners, #initiative, #faq, #register, #participants, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
#kickoff { contain-intrinsic-size: auto 92vh; }
