/* ==========================================================================
   MUWAZANA · v4
   Clean, distinctive, alive. Soft shapes throughout. No grids, no slop.
   ========================================================================== */

:root {
  /* Brand */
  --night:   #011821;
  --ocean:   #044A66;
  --lime:    #C5F443;
  --paper:   #FBFAF7;

  /* Type */
  --ff-display: "Fraunces", "Source Serif 4", "Times New Roman", Georgia, serif;
  --ff-sans:    "Inter Tight", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Light tokens */
  --bg:        #FBFAF7;
  --bg-warm:   #F5F2EA;
  --bg-deep:   #EFEBE0;
  --ink:       #011821;
  --ink-2:     #1c2c33;
  --ink-mute:  #6b7880;
  --ink-faint: #a4afb5;
  --line:      rgba(1, 24, 33, 0.08);
  --line-2:    rgba(1, 24, 33, 0.16);
  --accent:    #C5F443;
  --accent-2:  #044A66;
  --up:        #1c8252;
  --down:      #b03a2a;

  --shadow-1: 0 1px 2px rgba(1,24,33,0.04), 0 4px 14px -8px rgba(1,24,33,0.06);
  --shadow-2: 0 14px 38px -18px rgba(1,24,33,0.18), 0 2px 6px -3px rgba(1,24,33,0.08);
  --shadow-glow: 0 0 0 1px rgba(4,74,102,0.06), 0 22px 70px -28px rgba(4,74,102,0.22);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-2xl: 48px;

  --field-warm:  rgba(197, 244, 67, 0.16);
  --field-cool:  rgba(4,  74, 102, 0.10);

  --mx: 50vw; --my: 30vh;
  --lx: 50vw; --ly: 30vh;
}

body.dark {
  --bg:        #060B0F;
  --bg-warm:   #0A1218;
  --bg-deep:   #0F1A21;
  --ink:       #ECEAE2;
  --ink-2:     #C8C5BB;
  --ink-mute:  #84919A;
  --ink-faint: #51606A;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.18);
  --accent:    #D4FA56;
  --accent-2:  #6CC0DD;
  --up:        #62D08B;
  --down:      #E58875;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px -8px rgba(0,0,0,0.4);
  --shadow-2: 0 16px 48px -20px rgba(0,0,0,0.6), 0 2px 6px -3px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 0 1px rgba(108,192,221,0.14), 0 18px 60px -24px rgba(108,192,221,0.28);

  --field-warm: rgba(212, 250, 86, 0.08);
  --field-cool: rgba(108, 192, 221, 0.10);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
::selection { background: var(--accent); color: var(--ink); }

/* ===== Background — refined drifting motif ===== */
.field-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.field-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 540px at var(--mx) var(--my),
      var(--field-warm) 0%, transparent 65%),
    radial-gradient(1100px 820px at var(--lx) var(--ly),
      var(--field-cool) 0%, transparent 70%);
  transition: opacity 0.5s ease;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease 0.15s, visibility 0.7s ease 0.15s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-stage {
  width: min(60vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loader-emblem {
  width: 92px;
  height: auto;
  color: var(--ink);
}
.loader-emblem .lp {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 0.6;
  stroke-dasharray: var(--len, 800);
  stroke-dashoffset: var(--len, 800);
  fill-opacity: 0;
  animation:
    stroke-in 1.0s cubic-bezier(.65,.05,.36,1) var(--d, 0s) forwards,
    fill-in 0.55s ease calc(var(--d, 0s) + 0.85s) forwards;
}
.loader-emblem .lp-bar  { --d: 0.05s; }
.loader-emblem .lp-chev { --d: 0.30s; }
@keyframes stroke-in { to { stroke-dashoffset: 0; } }
@keyframes fill-in   { to { fill-opacity: 1; } }
.loader-bar {
  width: 220px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader-bar span {
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: loader-sweep 1.6s ease-out infinite;
}
@keyframes loader-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
body:not(.is-loaded) { overflow: hidden; }
body.is-loaded .shell { animation: page-in 0.9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ===== Shell & container ===== */
.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ===== Topbar ===== */
.topbar {
  position: fixed;
  top: 14px;
  inset-inline: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 22px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s ease, transform 0.3s ease, top 0.3s ease;
}
.topbar.is-pinned {
  box-shadow: var(--shadow-2);
  top: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 22px; height: auto;
  fill: var(--ink);
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-inline-start: 14px;
  flex: 1;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); background: var(--bg-deep); }

.top-right {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 30px;
  padding: 2px;
  background: var(--bg);
}
.toggle-group button {
  position: relative;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  font-family: var(--ff-mono);
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.toggle-group button.is-active { background: var(--ink); color: var(--bg); }
.toggle-group button:not(.is-active):hover { color: var(--ink); }

.theme-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.2s ease;
}
.theme-btn:hover { border-color: var(--ink); transform: rotate(20deg); }
.theme-btn svg { width: 14px; height: 14px; }
.theme-btn .icon-sun { display: none; }
body.dark .theme-btn .icon-moon { display: none; }
body.dark .theme-btn .icon-sun { display: block; }

/* ===== Page surface ===== */
.page { display: none; }
.page.is-active { display: block; animation: page-fade 0.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.page > section { padding: 100px 0; position: relative; }
.page > section:first-child { padding-top: 140px; }

/* ===== Type system ===== */
.display {
  font-family: var(--ff-display);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-2);
}
.h-xl { font-size: clamp(46px, 9vw, 132px); line-height: 0.94; letter-spacing: -0.045em; max-width: 16ch; }
.h-lg { font-size: clamp(44px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.035em; }
.h-md { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.025em; }
.h-sm { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.015em; }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 28px 0 0;
  text-wrap: pretty;
}
.body-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
  margin: 0;
}

/* split-text reveal */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.95s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.line.in > span { transform: translateY(0); }
.line.delay-1 > span { transition-delay: 0.08s; }
.line.delay-2 > span { transition-delay: 0.16s; }
.line.delay-3 > span { transition-delay: 0.24s; }

/* fade-up */
.appear {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(.2,.7,.2,1);
}
.appear.in { opacity: 1; transform: none; }
.appear.delay-1 { transition-delay: 0.10s; }
.appear.delay-2 { transition-delay: 0.20s; }
.appear.delay-3 { transition-delay: 0.30s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  isolation: isolate;
  cursor: pointer;
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  font-family: var(--ff-mono);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), background 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 6px 20px -8px rgba(1,24,33,0.4);
}
.btn-primary .arrow { background: color-mix(in srgb, var(--bg) 18%, transparent); }
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--accent-2) 50%, transparent);
}
body.dark .btn-primary:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 0 !important;
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta .clock { color: var(--ink); }
.hero h1.h-xl {
  font-weight: 320;
  max-width: 14ch;
}
.hero-sub {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

/* hero scope: an ambient drawn price-form along the bottom of hero */
.hero-scope {
  position: relative;
  margin-top: 80px;
  height: 220px;
  pointer-events: none;
  color: var(--accent-2);
}
.hero-scope svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-scope .hs-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
  filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 60%, transparent));
  transition: stroke-dashoffset 2.6s cubic-bezier(.2,.7,.2,1) 0.2s;
}
.hero-scope.in .hs-line { stroke-dashoffset: 0; }
.hero-scope .hs-band {
  fill: url(#hsGrad);
  opacity: 0;
  transition: opacity 1.0s ease 1.2s;
}
.hero-scope.in .hs-band { opacity: 1; }

/* ===== Pitch ===== */
.pitch { padding: 120px 0 !important; }
.pitch-quote {
  font-family: var(--ff-display);
  font-weight: 320;
  font-style: italic;
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: pretty;
  color: var(--ink);
  max-width: 26ch;
}
.pitch-body {
  margin: 56px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
}

/* ===== STATS — Wintermute-style centerpiece ===== */
.stats {
  padding: 120px 0 !important;
  position: relative;
}
.stats-hero { padding-top: 60px !important; padding-bottom: 80px !important; }
.stats-systems { padding: 80px 0 0 !important; margin-top: 40px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-systems .stat-row { grid-template-columns: repeat(3, 1fr); }
.stat {
  position: relative;
  padding: 56px 28px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-inline-end: 1px solid var(--line);
  isolation: isolate;
  transition: background 0.45s ease;
}
.stat:last-child { border-inline-end: 0; }
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px 260px at var(--cx, 50%) var(--cy, 50%),
    color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.stat:hover { background: color-mix(in srgb, var(--bg-warm) 60%, transparent); }
.stat:hover::before { opacity: 1; }
.stat .v {
  font-family: var(--ff-display);
  font-weight: 320;
  font-size: clamp(56px, 7.2vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}
.stat .v .prefix,
.stat .v .suffix,
.stat .v .lt {
  font-family: var(--ff-mono);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  align-self: flex-start;
  margin-top: 0.6em;
}
.stat .v .prefix { margin-inline-end: 8px; }
.stat .v .suffix { margin-inline-start: 4px; color: var(--accent-2); }
.stat .v .lt { margin-inline-end: 2px; color: var(--accent-2); }
.stat .l {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32ch;
  text-wrap: pretty;
}

@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-block-end: 1px solid var(--line); }
  .stat:nth-child(2n) { border-inline-end: 0; }
  .stat:nth-last-child(-n+2) { border-block-end: 0; }
  .stats-systems .stat-row { grid-template-columns: 1fr; }
  .stats-systems .stat { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .stats-systems .stat:last-child { border-block-end: 0; }
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-block-end: 1px solid var(--line); padding: 40px 0; }
  .stat:last-child { border-block-end: 0; }
}

/* ===== Edge — soft hover-glow cards ===== */
.edge { padding: 140px 0 !important; }
.edge h2 { margin-bottom: 64px; }
.edge-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.edge-card {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.edge-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(360px 260px at var(--cx, 50%) var(--cy, 0%),
    color-mix(in srgb, var(--accent-2) 30%, transparent),
    transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
}
.edge-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: transparent; }
.edge-card:hover::before { opacity: 1; }
.edge-card h4 {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  max-width: 22ch;
}
.edge-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
}

@media (max-width: 880px) {
  .edge-stack { grid-template-columns: 1fr; }
}

/* ===== CTA strip ===== */
.cta {
  position: relative;
  padding: 100px 0 !important;
  overflow: hidden;
}
.cta-card {
  position: relative;
  border-radius: var(--r-2xl);
  padding: 72px 64px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 440px at var(--cx, 30%) var(--cy, 0%),
      color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  opacity: 0.85;
  z-index: -1;
}
.cta-card::after {
  content: "";
  position: absolute;
  inset-block-end: -160px;
  inset-inline-end: -160px;
  width: 360px; height: 360px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  z-index: -1;
}
.cta-card h2 {
  font-family: var(--ff-display);
  font-weight: 320;
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0;
  color: var(--bg);
  max-width: 16ch;
}
.cta-card h2 em { font-style: italic; color: var(--accent); }
.cta-card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 44ch; }
.cta-card .btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cta-card .btn-primary:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-card .btn-primary .arrow { background: color-mix(in srgb, var(--ink) 18%, transparent); }

@media (max-width: 1000px) {
  .cta-card { grid-template-columns: 1fr; padding: 48px 36px; gap: 32px; }
}

/* ===== Page-head ===== */
.page-head { padding-bottom: 80px !important; }
.page-head h1 { margin-top: 0; max-width: 14ch; }
.page-head .lede { margin-top: 32px; }
.careers-cta { margin-top: 36px; }

/* ===== MAP — dark futuristic glow-network ===== */
.map-section { padding: 60px 0 100px !important; }
.map-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 580px;
  background:
    radial-gradient(110% 80% at 60% 40%, #0a2230 0%, #051219 60%, #03090d 100%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px -30px rgba(4,74,102,0.45);
}
.map-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-coords {
  position: absolute;
  inset-inline-end: 22px;
  inset-block-start: 20px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  z-index: 2;
}
.map-legend {
  position: absolute;
  inset-inline-start: 22px;
  inset-block-end: 22px;
  display: flex;
  gap: 18px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 10px 16px;
  backdrop-filter: blur(10px);
  z-index: 2;
}
.map-legend .row { display: inline-flex; align-items: center; gap: 8px; }
.map-legend .swatch {
  width: 8px; height: 8px;
  border-radius: 999px;
}
.map-legend .swatch.hq { background: #C5F443; box-shadow: 0 0 8px #C5F443; }
.map-legend .swatch.node { background: #6CC0DD; box-shadow: 0 0 6px #6CC0DD; }

@media (max-width: 880px) {
  .map-stage { min-height: 460px; }
}

/* ===== ORDER BOOK ===== */
.book-section { padding: 100px 0 !important; }
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 64px;
  align-items: stretch;
}
.book-prose {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 24px;
}

.book {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--ff-mono);
  font-size: 12px;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  box-shadow: var(--shadow-1);
  isolation: isolate;
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}
.book::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px 260px at var(--cx, 50%) var(--cy, 0%),
    color-mix(in srgb, var(--accent-2) 25%, transparent),
    transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
}
.book:hover { box-shadow: var(--shadow-glow); border-color: transparent; }
.book:hover::before { opacity: 1; }
.book-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  overflow-x: auto;
  scrollbar-width: none;
}
.book-tabs::-webkit-scrollbar { display: none; }
.book-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.book-tab .nm { font-weight: 400; color: var(--ink-faint); font-size: 10px; }
.book-tab.is-active { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.book-tab.is-active .nm { color: var(--ink-mute); }
.book-tab:hover:not(.is-active) { color: var(--ink); }

.book-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.book-symbol .sym {
  font-family: var(--ff-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-inline-end: 10px;
  color: var(--ink);
  font-weight: 350;
}
.book-symbol .nm {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.book-price { text-align: end; display: flex; flex-direction: column; gap: 4px; }
.book-price #bMid { font-family: var(--ff-display); font-size: 32px; letter-spacing: -0.02em; font-weight: 350; }
.book-price .pct {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.book-price .pct.up { color: var(--up); }
.book-price .pct.down { color: var(--down); }

/* Chart */
.book-chart {
  position: relative;
  height: 220px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.book-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* L2 */
.book-l2 {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--bg);
}
.book-divider { background: var(--line); }
.book-col { padding: 8px 0; display: flex; flex-direction: column; }
.book-col-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 6px 16px 8px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.book-col.bids .book-col-head .px { color: var(--up); }
.book-col.asks .book-col-head .px { color: var(--down); }
.book-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 4px 16px;
  font-size: 11.5px;
  align-items: center;
  z-index: 1;
  transition: background 0.25s ease;
}
.book-row:hover { background: color-mix(in srgb, var(--accent-2) 10%, transparent); }
.book-row::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: var(--depth, 0%);
  z-index: -1;
  opacity: 0.13;
  transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}
.book-col.bids .book-row::before { right: 0; background: var(--up); }
.book-col.asks .book-row::before { left:  0; background: var(--down); }
[dir="rtl"] .book-col.bids .book-row::before { right: auto; left: 0; }
[dir="rtl"] .book-col.asks .book-row::before { left: auto; right: 0; }
.book-col.bids .book-row .px { color: var(--up); }
.book-col.asks .book-row .px { color: var(--down); }
.book-row .qty, .book-row .total { color: var(--ink-2); }

.book-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}
.book-foot > div {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-inline-end: 1px solid var(--line);
}
.book-foot > div:last-child { border-inline-end: 0; }
.book-foot .lbl { font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; }
.book-foot .v { font-size: 14.5px; color: var(--ink); font-family: var(--ff-mono); }
.book-disclaimer {
  padding: 12px 18px;
  font-size: 9.5px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-disclaimer::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent);
}

@media (max-width: 1000px) {
  .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-foot { grid-template-columns: 1fr 1fr; }
  .book-foot > div:nth-child(2n) { border-inline-end: 0; }
}

/* ===== Outcomes — list, no arrows ===== */
.outcomes { padding: 120px 0 !important; }
.outcomes h2 { margin-bottom: 24px; }
.outcomes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.outcome {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.outcome::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(360px 260px at var(--cx, 50%) var(--cy, 0%),
    color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.outcome:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: transparent; }
.outcome:hover::before { opacity: 1; }
.outcome h4 {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}
.outcome p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0; }

@media (max-width: 880px) { .outcomes-list { grid-template-columns: 1fr; } }

/* ===== Values ===== */
.values { padding: 120px 0 !important; }
.values h2 { margin-bottom: 24px; }
.values-list {
  margin-top: 56px;
}
.value-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
  padding: 36px 28px;
  border-radius: var(--r-md);
  position: relative;
  transition: background 0.4s ease;
  isolation: isolate;
}
.value-row + .value-row { border-top: 1px solid var(--line); }
.value-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(540px 280px at var(--cx, 50%) var(--cy, 50%),
    color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
}
.value-row:hover::before { opacity: 1; }
.value-row h4 {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
}
.value-row p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 56ch; }

@media (max-width: 880px) {
  .value-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 16px; }
}

/* ===== Systems blocks ===== */
.systems-block { padding: 80px 0 !important; }
.systems-block.alt { padding: 60px 0 100px !important; }
.systems-block h2 { margin-bottom: 64px; }

.systems-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.systems-grid.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.systems-grid.reverse .ambient-card { order: -1; }

.systems-prose h3 {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.systems-prose .body-text + h3 { margin-top: 0; }

/* Ambient card — subtle architectural arabesque */
.ambient-card {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(140% 100% at 100% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    var(--bg-warm);
  border: 1px solid var(--line);
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.4s ease, transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease;
}
.ambient-card:hover { box-shadow: var(--shadow-glow); border-color: transparent; transform: translateY(-4px); }
.ambient-arch {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 100%, transparent 0, transparent 38%, var(--ink) 38%, var(--ink) 38.6%, transparent 38.6%),
    radial-gradient(circle at 50% 100%, transparent 0, transparent 28%, var(--ink) 28%, var(--ink) 28.6%, transparent 28.6%);
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
}
.ambient-arch::before,
.ambient-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Real arabesque-style decoration via SVG-as-css mask */
.ambient-arch {
  background: none;
  opacity: 1;
}
.ambient-arch::before {
  content: "";
  position: absolute;
  inset: 14% 12% 14% 12%;
  background:
    /* concentric arcs evoking a mihrab niche */
    radial-gradient(closest-side at 50% 100%, transparent 88%, color-mix(in srgb, var(--accent-2) 50%, transparent) 88.4%, transparent 89.2%),
    radial-gradient(closest-side at 50% 100%, transparent 76%, color-mix(in srgb, var(--accent-2) 35%, transparent) 76.4%, transparent 77.2%),
    radial-gradient(closest-side at 50% 100%, transparent 64%, color-mix(in srgb, var(--accent-2) 22%, transparent) 64.4%, transparent 65.2%),
    radial-gradient(closest-side at 50% 100%, transparent 52%, color-mix(in srgb, var(--accent-2) 14%, transparent) 52.4%, transparent 53.2%),
    radial-gradient(closest-side at 50% 100%, transparent 40%, color-mix(in srgb, var(--accent-2) 9%, transparent) 40.4%, transparent 41.2%);
  filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--accent-2) 30%, transparent));
  animation: arch-drift 14s ease-in-out infinite alternate;
}
.ambient-arch::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 36%;
  background:
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--ink) 14%, transparent) 0 1px,
      transparent 1px 26px);
  mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
  opacity: 0.6;
}
@keyframes arch-drift {
  from { transform: translateY(2px) scale(1); }
  to   { transform: translateY(-2px) scale(1.015); }
}

.ambient-arch.alt::before {
  /* alternative motif: nested squares rotated (geometric tile) */
  inset: 12%;
  background:
    conic-gradient(from 0deg at 50% 50%,
      color-mix(in srgb, var(--accent-2) 0%, transparent) 0deg,
      color-mix(in srgb, var(--accent-2) 16%, transparent) 90deg,
      color-mix(in srgb, var(--accent-2) 0%, transparent) 180deg,
      color-mix(in srgb, var(--accent-2) 16%, transparent) 270deg,
      color-mix(in srgb, var(--accent-2) 0%, transparent) 360deg);
  border: 1px solid color-mix(in srgb, var(--accent-2) 20%, transparent);
  border-radius: var(--r-lg);
  animation: tile-spin 32s linear infinite;
}
.ambient-arch.alt::after {
  inset: 26%;
  height: auto;
  background: none;
  border: 1px solid color-mix(in srgb, var(--accent-2) 25%, transparent);
  border-radius: var(--r-md);
  transform: rotate(45deg);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 1;
  animation: tile-spin 24s linear infinite reverse;
}
@keyframes tile-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.ambient-arch.alt ~ .ambient-meta { color: var(--ink-2); }

.ambient-meta {
  position: absolute;
  inset-block-end: 22px;
  inset-inline-start: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 2;
}
.ambient-meta .dot {
  width: 4px; height: 4px; border-radius: 999px; background: var(--accent-2);
}

@media (max-width: 1000px) {
  .systems-grid, .systems-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .ambient-card { min-height: 360px; }
  .systems-grid.reverse .ambient-card { order: 0; }
}

/* ===== Careers — Reasons (asymmetric flow, not 2x2) ===== */
.meaning { padding: 100px 0 !important; }
.meaning h2 { margin-bottom: 24px; }
.meaning-flow {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.reason {
  position: relative;
  padding: 36px 32px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.reason::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(360px 260px at var(--cx, 50%) var(--cy, 0%),
    color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.reason:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: transparent; }
.reason:hover::before { opacity: 1; }
.reason h4 {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.reason p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* asymmetric span: r1 is a wide hero, r2 narrow tall, r3 narrow tall, r4 wide */
.reason.r-1 { grid-column: span 7; min-height: 240px; }
.reason.r-2 { grid-column: span 5; min-height: 240px; }
.reason.r-3 { grid-column: span 5; min-height: 240px; }
.reason.r-4 { grid-column: span 7; min-height: 240px; }

@media (max-width: 880px) {
  .meaning-flow { grid-template-columns: 1fr; }
  .reason.r-1, .reason.r-2, .reason.r-3, .reason.r-4 { grid-column: 1 / -1; }
}

/* ===== Offices — text-only cards ===== */
.offices { padding: 100px 0 !important; }
.offices h2 { margin-bottom: 24px; }
.offices-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.office {
  position: relative;
  padding: 40px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
.office::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(360px 260px at var(--cx, 50%) var(--cy, 0%),
    color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.office:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: transparent; }
.office:hover::before { opacity: 1; }
.office h4 {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1;
}
.office p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 36ch;
}
@media (max-width: 880px) {
  .offices-list { grid-template-columns: 1fr; }
}

/* ===== Careers portal ===== */
.portal { padding: 100px 0 !important; }
.portal-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
  margin-bottom: 28px;
}
.portal-search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.portal-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 14%, transparent); }
.portal-search svg { color: var(--ink-mute); flex-shrink: 0; }
.portal-search input {
  border: 0; outline: 0; background: transparent;
  font-family: var(--ff-sans); font-size: 14px; color: var(--ink); width: 100%;
}
.portal-search input::placeholder { color: var(--ink-mute); }

.portal-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.portal-filter {
  padding: 8px 14px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.25s ease;
  background: var(--bg);
}
.portal-filter:hover { color: var(--ink); border-color: var(--line-2); }
.portal-filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.portal-results {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.role-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: background 0.4s ease, padding 0.4s ease;
}
.role-card::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.2,.7,.2,1);
}
.role-card:hover { background: var(--bg-warm); padding-inline: 28px; }
.role-card:hover::after { width: 100%; }
.role-card .ttl {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 350;
  line-height: 1.1;
}
.role-card .meta {
  display: inline-flex;
  gap: 18px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.role-card .apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.3s ease;
  background: transparent;
}
.role-card .apply:hover { background: var(--ink); color: var(--bg); }
.role-card .apply .arrow { font-family: var(--ff-mono); transition: transform 0.3s ease; }
.role-card .apply:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .role-card .apply .arrow { transform: scaleX(-1); }
[dir="rtl"] .role-card .apply:hover .arrow { transform: scaleX(-1) translateX(3px); }
.portal-empty {
  padding: 56px 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  text-align: center;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .portal-toolbar { grid-template-columns: 1fr; }
  .portal-filters { justify-content: flex-start; }
  .role-card { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  background: var(--bg);
  padding: 48px 0 32px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 16px 0 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand svg {
  width: 22px; height: auto;
  fill: var(--ink);
}
.footer-brand span {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.footer-nav {
  display: inline-flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--accent-2); }
.footer-follow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-follow .lbl {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-icons {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-icons a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  transition: transform 0.3s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.footer-icons a:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.footer-icons svg { width: 14px; height: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-follow { justify-content: center; }
}

/* ===== Numerals — keep ltr inside RTL for prices/clocks ===== */
[dir="rtl"] .stat .v,
[dir="rtl"] .tnum,
[dir="rtl"] .clock,
[dir="rtl"] .book,
[dir="rtl"] .book-row,
[dir="rtl"] .book-foot .v,
[dir="rtl"] .book-symbol,
[dir="rtl"] .book-price,
[dir="rtl"] .book-tabs { direction: ltr; unicode-bidi: isolate; }

/* ===== RTL ===== */
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, var(--ff-sans); }
[dir="rtl"] .display, [dir="rtl"] .pitch-quote { font-family: "IBM Plex Sans Arabic", var(--ff-display); font-style: normal; }
[dir="rtl"] .display em, [dir="rtl"] .pitch-quote em, [dir="rtl"] .ambient-meta, [dir="rtl"] .lede, [dir="rtl"] .body-text { font-style: normal; }
[dir="rtl"] .pitch-quote::before, [dir="rtl"] .pitch-quote::after { content: ""; }

/* ===== Utility ===== */
[hidden] { display: none !important; }

/* ==========================================================================
   v5 OVERRIDES — refinements
   ========================================================================== */

/* Italic spacing: comma + space inside the word, plus a small em margin */
.display em,
.pitch-quote em,
.cta-card h2 em {
  margin-inline-start: 0.18em;
  letter-spacing: -0.02em;
}

/* === Buttons: better dark-mode legibility, cleaner hover === */
body.dark .btn-primary {
  background: var(--accent);
  color: var(--night);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 45%, transparent);
}
body.dark .btn-primary .arrow {
  background: color-mix(in srgb, var(--night) 22%, transparent);
  color: var(--night);
}
body.dark .btn-primary:hover {
  background: var(--paper);
  color: var(--night);
  border-color: var(--paper);
}

/* CTA card "Join Our Team" - improve dark-mode hover */
body.dark .cta-card .btn-primary {
  background: var(--accent);
  color: var(--night);
  border-color: var(--accent);
}
body.dark .cta-card .btn-primary:hover {
  background: var(--paper);
  color: var(--night);
  border-color: var(--paper);
}
body.dark .cta-card .btn-primary .arrow {
  background: color-mix(in srgb, var(--night) 22%, transparent);
}

/* Careers "Explore Opportunities" — full dark-mode legible */
.careers-cta .btn-primary {
  /* Already covered by btn-primary, ensure visible. */
}

/* === Edge cards: cleaner border-invert hover, with icon === */
.edge-card { padding: 32px 32px 32px; gap: 16px; min-height: 240px; }
.edge-card::before { display: none; }
.edge-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 5%, transparent);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.edge-icon svg { width: 22px; height: 22px; }
.edge-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 36px -22px rgba(1,24,33,0.20);
}
.edge-card:hover .edge-icon {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}
body.dark .edge-card:hover { border-color: var(--accent); box-shadow: 0 14px 36px -16px color-mix(in srgb, var(--accent) 22%, transparent); }
body.dark .edge-card:hover .edge-icon { background: var(--accent); color: var(--night); border-color: var(--accent); }

/* === Outcome cards (Tech delivers): same treatment === */
.outcome { padding: 32px 32px; gap: 16px; min-height: 240px; }
.outcome::before { display: none; }
.outcome:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 36px -22px rgba(1,24,33,0.20);
}
.outcome:hover .edge-icon {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}
body.dark .outcome:hover { border-color: var(--accent); box-shadow: 0 14px 36px -16px color-mix(in srgb, var(--accent) 22%, transparent); }
body.dark .outcome:hover .edge-icon { background: var(--accent); color: var(--night); border-color: var(--accent); }

/* === Core Values: simple border on hover, drop the tracker === */
.value-row::before { display: none !important; }
.value-row {
  border: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.value-row + .value-row { border-top: 1px solid var(--line); }
.value-row:hover {
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--bg-warm) 50%, transparent);
}

/* === Stats: bolder text + simple border on hover === */
.stat::before { display: none !important; }
.stat .v { font-weight: 380; }
.stat {
  border: 1px solid transparent;
  border-inline-end: 1px solid var(--line);
  transition: border-color 0.35s ease, background 0.35s ease;
}
.stat:hover {
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--bg-warm) 70%, transparent);
}

/* === Reasons: kill cursor-tracking glow, use border hover === */
.reason::before { display: none !important; }
.reason:hover { border-color: var(--ink); box-shadow: 0 14px 36px -22px rgba(1,24,33,0.18); transform: translateY(-3px); }
body.dark .reason:hover { border-color: var(--accent); box-shadow: 0 14px 36px -16px color-mix(in srgb, var(--accent) 22%, transparent); }

/* === Office cards: same treatment === */
.office::before { display: none !important; }
.office:hover { border-color: var(--ink); box-shadow: 0 14px 36px -22px rgba(1,24,33,0.18); transform: translateY(-3px); }
body.dark .office:hover { border-color: var(--accent); box-shadow: 0 14px 36px -16px color-mix(in srgb, var(--accent) 22%, transparent); }

/* === Book card: drop the cursor-tracking glow === */
.book::before { display: none !important; }
.book:hover { border-color: var(--ink); box-shadow: 0 14px 36px -22px rgba(1,24,33,0.18); }
body.dark .book:hover { border-color: var(--accent); }

/* ==========================================================================
   HERO TAPE — scrolling stock list + overlay sparkline
   ========================================================================== */
.hero-tape {
  margin-top: 80px;
  width: 100%;
}
.tape-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 60%);
  box-shadow: var(--shadow-1);
}
.tape-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 4;
}
.tape-head .tape-num { text-align: end; }
.tape-body {
  position: relative;
  height: 280px;
  overflow: hidden;
  z-index: 1;
}
.tape-row {
  position: absolute;
  inset-inline: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr;
  padding: 0 22px;
  height: 44px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  will-change: transform, opacity;
  transition: opacity 0.4s ease;
}
.tape-row .sym-cell { display: none; }
.tape-row .sym {
  font-family: var(--ff-display);
  font-weight: 350;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.tape-row .nm {
  color: var(--ink-mute);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  font-family: var(--ff-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tape-row .px,
.tape-row .ch,
.tape-row .vl,
.tape-row .tr,
.tape-row .mc { text-align: end; font-variant-numeric: tabular-nums; }
.tape-row .ch.up   { color: var(--up); }
.tape-row .ch.down { color: var(--down); }
.tape-row .ch .sign { display: inline-block; width: 10px; }
.tape-row.flash-up   { background: color-mix(in srgb, var(--up) 10%, transparent); }
.tape-row.flash-down { background: color-mix(in srgb, var(--down) 10%, transparent); }
.tape-overlay {
  position: absolute;
  inset: 38px 0 38px 0;   /* below head, above foot */
  width: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: multiply;
  opacity: 0.65;
}
body.dark .tape-overlay { mix-blend-mode: screen; opacity: 0.7; }
.tape-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative; z-index: 4;
  gap: 16px;
}
.tape-foot .clock { color: var(--ink); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent);
  animation: pulse-dot 2.4s ease-in-out infinite;
  margin-inline-end: 2px;
  display: inline-block;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent); }
  50%     { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-2) 8%, transparent); }
}
.tape-foot > :first-child { margin-inline-end: auto; }

@media (max-width: 880px) {
  .tape-head, .tape-row { grid-template-columns: 1fr 1fr 1fr 1.2fr; }
  .tape-head .tape-cell:nth-child(4),
  .tape-row > .tr { display: none; }
  .tape-body { height: 240px; }
}

/* ==========================================================================
   INFRASTRUCTURE BOARD — animated network
   ========================================================================== */
.systems-grid > .infra-board { /* swap mode: render canvas */ }
.infra-board {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(140% 100% at 0% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%),
    var(--bg-warm);
  border: 1px solid var(--line);
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}
.infra-board canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.infra-labels {
  position: absolute; inset: 0;
  pointer-events: none;
}
.infra-label {
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  transform: translate(-50%, -50%);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  text-align: center;
  max-width: 280px;
}
.infra-label.glow {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
  background: color-mix(in srgb, var(--accent-2) 10%, var(--bg));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 8%, transparent);
}
[dir="rtl"] .infra-label { letter-spacing: 0.04em; }

@media (max-width: 880px) {
  .infra-board { min-height: 360px; }
  .infra-label { font-size: 9px; padding: 5px 8px; }
}

/* ==========================================================================
   RESEARCH BLOCK — 2-col prose
   ========================================================================== */
.research-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
}
.research-cols .systems-prose .body-text { max-width: 48ch; }
@media (max-width: 880px) {
  .research-cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   CAREERS MEANING — image left, 4 reasons stacked right
   ========================================================================== */
.meaning-split {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: stretch;
}
.meaning-image { position: sticky; top: 96px; height: fit-content; }
.team-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, var(--night) 0%, #02323f 50%, #044a66 100%);
  isolation: isolate;
}
body.dark .team-photo {
  background: linear-gradient(160deg, #021720 0%, #04303f 60%, #06506e 100%);
}
.team-photo .tp-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 30% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    radial-gradient(60% 50% at 80% 80%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%);
  z-index: 1;
}
.team-photo .tp-tape {
  position: absolute;
  inset: 14% 8% 14% 8%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  font-family: var(--ff-mono);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.team-photo .tp-line {
  height: 9px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 70%, transparent) 0%,
    color-mix(in srgb, var(--accent) 0%, transparent) 100%);
  border-radius: 2px;
  width: var(--w, 80%);
  opacity: 0;
  animation: tp-line-in 0.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.team-photo .tp-line:nth-child(1) { --w: 64%; animation-delay: 0.20s; }
.team-photo .tp-line:nth-child(2) { --w: 80%; animation-delay: 0.30s; background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 80%, white) 0%, transparent 100%); }
.team-photo .tp-line:nth-child(3) { --w: 50%; animation-delay: 0.40s; }
.team-photo .tp-line:nth-child(4) { --w: 90%; animation-delay: 0.50s; }
.team-photo .tp-line:nth-child(5) { --w: 38%; animation-delay: 0.60s; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 80%, transparent) 0%, transparent 100%); }
.team-photo .tp-line:nth-child(6) { --w: 70%; animation-delay: 0.70s; }
.team-photo .tp-line:nth-child(7) { --w: 56%; animation-delay: 0.80s; }
.team-photo .tp-line:nth-child(8) { --w: 84%; animation-delay: 0.90s; background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 80%, white) 0%, transparent 100%); }
.team-photo .tp-line:nth-child(9) { --w: 44%; animation-delay: 1.00s; }
.team-photo .tp-line:nth-child(10){ --w: 68%; animation-delay: 1.10s; }
@keyframes tp-line-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 0.85; transform: none; }
}
.team-photo .tp-cursor {
  position: absolute;
  width: 10px; height: 18px;
  background: var(--accent);
  z-index: 3;
  inset-block-end: 18%;
  inset-inline-end: 14%;
  box-shadow: 0 0 16px var(--accent);
  animation: tp-cursor 1.1s steps(2) infinite;
}
@keyframes tp-cursor { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.team-photo .tp-window {
  position: absolute;
  inset-block-start: 4%;
  inset-inline-start: 4%;
  inset-inline-end: 4%;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  z-index: 3;
  backdrop-filter: blur(6px);
}
.team-photo .tp-dots { display: inline-flex; gap: 5px; }
.team-photo .tp-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.4); }
.team-photo .tp-dots i:nth-child(1) { background: #ff5f57; }
.team-photo .tp-dots i:nth-child(2) { background: #febc2e; }
.team-photo .tp-dots i:nth-child(3) { background: #28c840; }
.team-photo .tp-title {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: lowercase;
}
.team-photo .tp-corner {
  position: absolute;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  z-index: 3;
}

.meaning-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.meaning-list .reason { min-height: 0; }

@media (max-width: 1000px) {
  .meaning-split { grid-template-columns: 1fr; }
  .meaning-image { position: static; }
  .team-photo { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   v5 OVERRIDES — full pass per latest feedback
   ========================================================================== */

/* --- Headline clipping: descenders + italics. Eliminate any clipping. --- */
.h-xl, .h-lg, .h-md, .h-sm,
.display {
  padding-bottom: 0.18em;
  line-height: 1.02;
}
.display em {
  overflow: visible;
  padding-right: 0.06em;
  padding-bottom: 0.22em;
}
[dir="rtl"] .display em { padding-right: 0; padding-left: 0.06em; }
/* .hero-h .line keeps its own overflow:hidden for the mask reveal — do NOT override */

/* --- Light-mode background field: darker lime so it's actually visible --- */
:root {
  --field-stroke: color-mix(in srgb, #044A66 16%, transparent);
}
body.dark {
  --field-stroke: color-mix(in srgb, #C5F443 28%, transparent);
}

/* --- Tape: remove sym/name cols; numeric only --- */
.tape-head, .tape-row {
  grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr !important;
}
.tape-head .tape-cell:first-child,
.tape-head .tape-cell:nth-child(2),
.tape-row .sym-cell,
.tape-row .sym,
.tape-row .nm { display: none !important; }
.tape-head .tape-cell { text-align: end !important; font-variant-numeric: tabular-nums; }
.tape-head { padding: 0 22px; }
.hero-tape { max-width: 760px; }

/* --- Remove icon spans from cards (Edge + Outcome) --- */
.edge-card .edge-icon,
.outcome .edge-icon { display: none !important; }
.edge-card, .outcome {
  padding: 36px 32px !important;
  min-height: 220px;
}

/* --- Hover treatment: bright lime border in light mode for ALL interactive boxes --- */
.edge-card,
.outcome,
.reason,
.office,
.value-card {
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.25s ease;
}
.edge-card:hover,
.outcome:hover,
.reason:hover,
.office:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -22px color-mix(in srgb, var(--accent) 55%, transparent) !important;
  transform: translateY(-3px);
}
body.dark .edge-card:hover,
body.dark .outcome:hover,
body.dark .reason:hover,
body.dark .office:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -16px color-mix(in srgb, var(--accent) 35%, transparent) !important;
}

/* --- Core values: opaque + pronounced on hover --- */
.value-card {
  background: var(--paper, var(--bg));
}
.value-card:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(1,24,33,0.30);
}
.value-card:hover h4,
.value-card:hover p,
.value-card:hover .value-num { color: var(--paper) !important; }
.value-card:hover .value-num { color: var(--accent) !important; }
body.dark .value-card { background: color-mix(in srgb, var(--paper) 6%, transparent); }
body.dark .value-card:hover {
  background: var(--accent) !important;
  color: var(--night) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 22px 50px -18px color-mix(in srgb, var(--accent) 50%, transparent);
}
body.dark .value-card:hover h4,
body.dark .value-card:hover p,
body.dark .value-card:hover .value-num { color: var(--night) !important; }

/* --- Working With Us: remove image, 4 columns flat --- */
.meaning-split { display: none !important; }
.meaning-cols {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.meaning-cols .reason {
  min-height: auto !important;
  grid-column: auto !important;
  padding: 32px 28px !important;
}
@media (max-width: 1100px) {
  .meaning-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .meaning-cols { grid-template-columns: 1fr; }
}

/* --- Offices: 3 boxes inline next to heading --- */
.offices-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
}
.offices-intro h2 { margin-bottom: 16px; }
.offices-head .offices-list {
  margin-top: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.offices-head .office {
  padding: 24px 22px !important;
  min-height: 160px;
}
.offices-head .office h4 { font-size: 22px; margin-bottom: 10px; }
.offices-head .office p { font-size: 13px; line-height: 1.55; }
@media (max-width: 1100px) {
  .offices-head { grid-template-columns: 1fr; gap: 32px; }
  .offices-head .offices-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .offices-head .offices-list { grid-template-columns: 1fr; }
}

/* --- Career start: embedded row, not floating card --- */
.career-start {
  padding: 80px 0 100px !important;
  border-top: 1px solid var(--line);
}
.career-start-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 48px;
  align-items: end;
}
.career-start-text h2 { margin: 0 0 16px; max-width: 18ch; }
.career-start-text em { font-style: italic; color: var(--accent-2); }
body.dark .career-start-text em { color: var(--accent); }
.career-start-text p { margin: 0; max-width: 48ch; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.career-start .btn-primary { white-space: nowrap; }
@media (max-width: 880px) {
  .career-start-row { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

/* --- Infra diagram: ensure labels are fully visible --- */
.infra-board { overflow: visible !important; }
.infra-label {
  white-space: nowrap;
  background: var(--bg) !important;
  border: 1px solid var(--line-2) !important;
  z-index: 2;
}
body.dark .infra-label {
  background: var(--night) !important;
  border-color: color-mix(in srgb, var(--paper) 20%, transparent) !important;
}

/* --- Mobile sweep: type, paddings, grids --- */
@media (max-width: 880px) {
  .h-xl { font-size: clamp(40px, 11vw, 72px) !important; }
  .h-lg { font-size: clamp(34px, 8vw, 56px) !important; }
  .h-md { font-size: clamp(28px, 7vw, 44px) !important; }
  section { padding: 64px 0 !important; }
  .container { padding-inline: 20px; }
  .edge-grid, .outcomes-list { grid-template-columns: 1fr !important; }
  .edge-card, .outcome { min-height: auto !important; padding: 28px 24px !important; }
}
