/* ============================================================
   INUA AI GROUP — Site foundation
   Forked from the Synapse "intelligence infrastructure" system:
   Space Grotesk / Inter / JetBrains Mono, dark-first, single
   accent — but the accent is INUA signal-RED, backgrounds shift
   to true-black to match the brand mark, and the neutral ramp
   is de-tinted (no cool cast).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Neutral ramp: true-black, de-tinted ---- */
  --ink-950: #000000;
  --ink-900: #060608;   /* page background */
  --ink-850: #0c0c0f;   /* elevated section */
  --ink-800: #131317;   /* card surface */
  --ink-780: #17171c;
  --ink-750: #1d1d23;   /* hover surface */
  --ink-700: #2a2a31;   /* border */
  --ink-600: #3a3a43;   /* strong border */
  --ink-500: #565660;   /* disabled */
  --ink-400: #7c7c87;   /* tertiary */
  --ink-300: #a2a2ad;   /* secondary text */
  --ink-200: #c9c9d1;   /* soft body */
  --ink-100: #e7e7ea;   /* primary text */
  --ink-050: #f8f8fa;   /* high-contrast heading */

  /* ---- Signal red (the single accent) ---- */
  --red-300: #ff7a82;
  --red-400: #ff414d;
  --red-500: #e8131f;   /* BRAND RED */
  --red-600: #c20a16;   /* pressed */
  --red-700: #8c0710;   /* deep core for glows */
  --red-900: #2a0407;   /* tint background */

  /* ---- Semantic ---- */
  --bg:            var(--ink-900);
  --bg-elevated:   var(--ink-850);
  --surface:       var(--ink-800);
  --surface-hover: var(--ink-750);
  --surface-sunken:var(--ink-950);

  --fg:          var(--ink-100);
  --fg-strong:   var(--ink-050);
  --fg-muted:    var(--ink-300);
  --fg-subtle:   var(--ink-400);
  --fg-disabled: var(--ink-500);

  --border:        var(--ink-700);
  --border-subtle: var(--ink-750);
  --border-strong: var(--ink-600);

  --accent:        var(--red-500);
  --accent-hover:  var(--red-400);
  --accent-press:  var(--red-600);
  --accent-ink:    #ffffff;
  --accent-glow:   rgba(232,19,31,0.38);
  --accent-tint:   rgba(232,19,31,0.09);
  --accent-line:   rgba(232,19,31,0.40);

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --tracking-caps: 0.18em;
  --tracking-wide: 0.08em;
  --tracking-tight: -0.025em;

  /* ---- Radius ---- */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* ---- Shadow / glow ---- */
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.6);
  --glow-red:  0 0 0 1px rgba(232,19,31,0.45), 0 0 36px rgba(232,19,31,0.30);
  --glow-red-soft: 0 10px 40px rgba(232,19,31,0.22);
  --inset-hair: inset 0 1px 0 rgba(255,255,255,0.05);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 130ms; --dur-base: 220ms; --dur-slow: 420ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--red-700); color: #fff; }

a { color: inherit; }

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .container { padding: 0 56px; } }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 24px; }

.section { padding: 104px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.section-elevated {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-strong);
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--fg-muted);
  margin: 0;
}
.accent-text { color: var(--accent); }

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { font-size: 16px; padding: 16px 28px; border-radius: var(--r-md); }
.btn-md { font-size: 15px; padding: 11px 20px; border-radius: var(--r-md); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-red-soft); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--glow-red); }
.btn-primary:active { background: var(--accent-press); transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--fg-strong); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border-strong); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  transition: background var(--dur-base), border-color var(--dur-base), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,8,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; gap: 36px; padding: 18px 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-brand img { height: 38px; display: block; }
.nav-links { display: none; gap: 30px; }
@media (min-width: 1000px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--fg-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  position: relative; padding: 4px 0;
  transition: color var(--dur-base) var(--ease-std);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover { color: var(--fg-strong); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- Mobile nav: hamburger + sidebar drawer ---------- */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 96;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 0 auto; border-radius: 2px;
  background: var(--fg-strong);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle { display: none; } }
@media (max-width: 999px) { .nav-cta { display: none; } }

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.mobile-nav-overlay.open { opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 95;
  height: 100vh; height: 100dvh; width: min(330px, 86vw);
  background: var(--ink-900); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
  display: flex; flex-direction: column; padding: 92px 28px 32px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
@media (min-width: 1000px) { .mobile-nav, .mobile-nav-overlay { display: none !important; } }
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a:not(.btn) {
  color: var(--fg-muted); text-decoration: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  padding: 14px 2px; border-bottom: 1px solid var(--border-subtle);
  transition: color var(--dur-base) var(--ease-out);
}
.mobile-nav-links a:not(.btn):hover, .mobile-nav-links a:not(.btn):active { color: var(--accent); }
.mobile-nav-cta { margin-top: 22px; justify-content: center; }
.mobile-nav-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-foot > a { color: var(--fg-muted); text-decoration: none; font-size: 14.5px; }
.mobile-nav-foot > a:hover { color: var(--accent); }
.mobile-nav-social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; }
.mobile-nav-social a { color: var(--fg-subtle); text-decoration: none; }
.mobile-nav-social a:hover { color: var(--fg-strong); }

/* ---------- Mesh / hero ---------- */
.hero { position: relative; padding: 132px 0 116px; overflow: hidden; }
@media (max-width: 720px) { .hero { padding: 96px 0 80px; } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 70% 30%, rgba(232,19,31,0.13), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 940px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 92px);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero h1 .accent-text { color: var(--accent); }
.hero .lede { max-width: 600px; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px 40px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--fg-subtle);
}
.hero-meta .dot { color: var(--accent); margin-right: 10px; }

/* ---------- Statement / editorial ---------- */
.statement p {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.statement p .muted { color: var(--fg-subtle); }
.statement p .accent-text { color: var(--accent); }
.fragments {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3;
  letter-spacing: -0.015em; color: var(--fg-muted);
}
.fragments .lead { color: var(--fg-strong); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 28px; text-align: center; }
.section-elevated .stat { background: var(--bg-elevated); }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--fg-strong); margin-bottom: 12px;
}
.stat .num .unit { color: var(--accent); }
.stat .lab {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-muted); line-height: 1.5;
}

/* ---------- Ecosystem cards ---------- */
.eco-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .eco-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .eco-grid { grid-template-columns: repeat(3, 1fr); } }
.eco-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--inset-hair);
  overflow: hidden;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column;
}
.eco-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-base) var(--ease-out);
}
.eco-card:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-3px); }
.eco-card:hover::before { transform: scaleY(1); }
.eco-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 18px; }
.eco-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-strong); margin: 0 0 6px; line-height: 1.15; }
.eco-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 16px; }
.eco-card p { font-size: 14.5px; line-height: 1.62; color: var(--fg-muted); margin: 0 0 20px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em;
  color: var(--fg-muted); background: var(--ink-850);
  border: 1px solid var(--border-subtle); border-radius: var(--r-xs);
  padding: 5px 9px;
}

/* ---------- Platforms (Quantum Synapse) ---------- */
.platforms { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 820px) { .platforms { grid-template-columns: 1fr 1fr; } }
.platform {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--inset-hair);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.platform:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.platform .pico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.platform .pico svg { width: 22px; height: 22px; }
.platform h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-strong); margin: 0 0 5px; letter-spacing: -0.01em; }
.platform p { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .ind-grid { grid-template-columns: repeat(4, 1fr); } }
.ind {
  background: var(--bg-elevated); padding: 30px 24px;
  transition: background var(--dur-base) var(--ease-out);
}
.ind:hover { background: var(--surface); }
.ind .iico { color: var(--accent); margin-bottom: 18px; }
.ind .iico svg { width: 26px; height: 26px; }
.ind h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--fg-strong); margin: 0 0 8px; }
.ind p { font-size: 13px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ---------- Africa / split feature ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }
.split-stack { display: flex; flex-direction: column; gap: 16px; }
.feature-row {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--border-subtle);
}
.feature-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.feature-row .fr-ico { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature-row .fr-ico svg { width: 20px; height: 20px; }
.feature-row h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-strong); margin: 0 0 4px; }
.feature-row p { font-size: 14px; line-height: 1.58; color: var(--fg-muted); margin: 0; }

.imgslot {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--ink-850);
  min-height: 420px; display: flex; align-items: center; justify-content: center;
}
.imgslot .ph {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-subtle);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px;
}

/* ---------- Vision 2035 ---------- */
.vision-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .vision-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .vision-grid { grid-template-columns: repeat(3, 1fr); } }
.vis {
  background: var(--bg); padding: 32px 28px;
  transition: background var(--dur-base) var(--ease-out);
}
.section-elevated .vis { background: var(--bg-elevated); }
.vis:hover { background: var(--surface); }
.vis .vnum { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; }
.vis h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg-strong); margin: 0 0 8px; }
.vis p { font-size: 14px; line-height: 1.58; color: var(--fg-muted); margin: 0; }

/* ---------- Founder quote ---------- */
.founder { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 920px) { .founder { grid-template-columns: 300px 1fr; gap: 64px; } }
.founder-portrait {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border);
  background: var(--ink-850); width: 100%; max-width: 300px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.founder-portrait .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); text-align: center; padding: 20px; }
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.34; letter-spacing: -0.015em;
  color: var(--fg-strong); text-wrap: pretty;
}
.founder blockquote .accent-text { color: var(--accent); }
.founder .byline { margin-top: 28px; display: flex; flex-direction: column; gap: 3px; }
.founder .byline .nm { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg-strong); }
.founder .byline .rl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-subtle); }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.principle .pnum { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px; }
.principle h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--fg-strong); margin: 0 0 6px; }
.principle p { font-size: 13px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ---------- Partnerships ---------- */
.partner-row { display: flex; flex-wrap: wrap; gap: 12px; }
.partner {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--fg-muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 10px 18px;
  transition: color var(--dur-base), border-color var(--dur-base);
}
.partner:hover { color: var(--fg-strong); border-color: var(--border-strong); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(232,19,31,0.16), transparent 60%),
    var(--ink-850);
  padding: 72px 48px; text-align: center;
}
@media (max-width: 720px) { .cta-band { padding: 52px 24px; } }
.cta-band h2 { margin: 0 auto 18px; max-width: 720px; }
.cta-band .lede { max-width: 560px; margin: 0 auto 34px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); border-top: 1px solid var(--border-subtle); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer-brand img { height: 26px; margin-bottom: 18px; display: block; }
.footer-brand p { font-size: 13.5px; line-height: 1.62; color: var(--fg-muted); margin: 0 0 22px; max-width: 320px; }
.footer-brand .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.footer h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-subtle); margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: var(--fg-muted); text-decoration: none; font-size: 14px; transition: color var(--dur-base); }
.footer ul a:hover { color: var(--fg-strong); }
.footer-bot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); letter-spacing: 0.03em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-950);
  opacity: 1;
  transition: opacity 520ms var(--ease-out);
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-inner { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.preloader-mark { width: 72px; height: 72px; object-fit: contain; animation: pre-pulse 1.6s var(--ease-std) infinite; }
.preloader-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-tint);
  border-top-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  animation: pre-spin 0.9s linear infinite;
}
@keyframes pre-spin { to { transform: rotate(360deg); } }
@keyframes pre-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.78; }
  50%      { transform: scale(1.04); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-mark { animation: none; opacity: 1; transform: none; }
  .preloader-ring { animation: none; border-top-color: var(--accent); }
}

/* ---------- Partner contact form ---------- */
.partner-form { max-width: 600px; margin: 0 auto; text-align: left; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr; } }
.pf-field { margin-bottom: 16px; }
.pf-field label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle);
}
.pf-field .pf-opt { text-transform: none; letter-spacing: 0; color: var(--fg-disabled); }
.partner-form input,
.partner-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg-strong);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.partner-form textarea { resize: vertical; min-height: 110px; }
.partner-form input::placeholder,
.partner-form textarea::placeholder { color: var(--fg-disabled); }
.partner-form input:focus,
.partner-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.pf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; justify-content: center; }
#pf-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.pf-status { min-height: 20px; margin: 16px 0 0; text-align: center; font-size: 14px; line-height: 1.5; }
.pf-status.is-pending { color: var(--fg-muted); }
.pf-status.is-success { color: #43c98a; }
.pf-status.is-error   { color: var(--accent-hover); }
.pf-fallback { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--fg-subtle); }
.pf-fallback a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.pf-fallback a:hover { color: var(--fg-strong); }

/* ============================================================
   BLOG / INSIGHTS + LEGAL + 404 (server-rendered pages)
   ============================================================ */

/* Solid nav on inner pages (no hero behind it) */
.nav-solid { background: rgba(6,6,8,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-subtle); }
.blog-main { padding: 72px 0 96px; min-height: 70vh; }

/* Blog index header */
.blog-head { margin-bottom: 56px; }
.blog-head .h2 { margin: 14px 0 16px; }
.blog-empty { color: var(--fg-muted); font-size: 16px; }

/* Blog index grid */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.blog-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--ink-850); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.blog-meta { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); letter-spacing: 0.03em; }
.blog-card-body h2 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; margin: 0; }
.blog-card-body h2 a { color: var(--fg-strong); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--accent); }
.blog-card-body p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin: 0; }

/* Single post */
.post { padding-top: 8px; }
.post-breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); margin-bottom: 28px; display: flex; gap: 8px; }
.post-breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--accent); }
.post-head { margin-bottom: 36px; }
.post-head h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 16px 0 18px; color: var(--fg-strong); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--fg-subtle); }
.post-hero { margin: 0 0 40px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.post-hero img { width: 100%; height: auto; display: block; }

/* Prose / article body */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-200); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; color: var(--fg-strong); margin-top: 48px; }
.prose h3 { font-family: var(--font-display); font-size: 20px; color: var(--fg-strong); margin-top: 36px; }
.prose p { margin: 0; }
.prose strong { color: var(--fg-strong); }
.prose em { color: var(--ink-100); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-100); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-xs); padding: 2px 6px; }
.prose pre { background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 18px; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose figure { margin: 36px 0; text-align: center; }
.prose figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border-subtle); display: block; }
.prose figcaption { margin-top: 12px; font-size: 13.5px; color: var(--fg-subtle); font-style: italic; line-height: 1.5; }

.post-foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }

/* Gallery — year landing cards */
.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 860px) { .year-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .year-grid { grid-template-columns: 1fr; } }
.year-card {
  display: block; text-decoration: none; border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.year-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.year-card-media { aspect-ratio: 4/3; background: var(--ink-850); overflow: hidden; }
.year-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.year-card:hover .year-card-media img { transform: scale(1.05); }
.year-card-body { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 22px; }
.year-card-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--fg-strong); }
.year-card-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-subtle); }

/* Gallery */
.gallery-year { margin-top: 64px; }
.gallery-year:first-of-type { margin-top: 40px; }
.gallery-year-title {
  font-family: var(--font-display); font-size: 34px; color: var(--fg-strong);
  padding-bottom: 14px; margin: 0 0 28px; border-bottom: 1px solid var(--border-subtle);
}
.gallery-event { margin-bottom: 40px; }
.gallery-event-title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  display: block; padding: 0; border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; background: var(--ink-850); aspect-ratio: 1/1;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.gallery-item:hover { transform: scale(1.02); border-color: var(--accent-line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox .lb-img { max-width: 90vw; max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-base);
}
.lightbox button:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 22px; right: 24px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; line-height: 1; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@media (max-width: 600px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { right: 12px; } }

/* Careers */
.careers-list { display: flex; flex-direction: column; gap: 16px; }
.role-card {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 20px 24px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.role-card:hover { border-color: var(--accent-line); transform: translateY(-2px); background: var(--surface-hover); }
.role-card-media { flex: 0 0 132px; width: 132px; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--ink-850); border: 1px solid var(--border-subtle); }
.role-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-main { flex: 1 1 auto; }
@media (max-width: 680px) { .role-card-media { display: none; } }
.role-division { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.role-card h2 { font-family: var(--font-display); font-size: 20px; line-height: 1.25; color: var(--fg-strong); margin: 0 0 10px; }
.role-summary { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin: 0 0 14px; max-width: 60ch; }
.role-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-subtle); }
.role-cta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 600; font-size: 14px; color: var(--accent); white-space: nowrap; }
.role-cta svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.role-card:hover .role-cta svg { transform: translateX(4px); }
@media (max-width: 620px) { .role-card { flex-direction: column; align-items: flex-start; gap: 14px; } }
.careers-empty { text-align: center; padding: 40px 0; }
.careers-empty p { color: var(--fg-muted); margin-bottom: 22px; }
.careers-foot { margin-top: 36px; text-align: center; color: var(--fg-muted); font-size: 14.5px; }
.careers-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Application form (job detail page) */
.apply { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.apply h2 { font-family: var(--font-display); font-size: 26px; color: var(--fg-strong); margin: 0 0 8px; }
.apply-intro { color: var(--fg-muted); font-size: 14.5px; margin: 0 0 28px; }
.apply-form .pf-field { margin-bottom: 16px; }
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%; box-sizing: border-box; padding: 13px 15px;
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--fg-strong); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.apply-form textarea { resize: vertical; min-height: 100px; }
.apply-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-subtle) 50%), linear-gradient(135deg, var(--fg-subtle) 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.apply-form input[type="file"] { padding: 11px 14px; cursor: pointer; color: var(--fg-muted); font-size: 14px; }
.apply-form input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface-hover); color: var(--fg-strong);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
}
.apply-form input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

/* Locations block (contact section) */
.locations { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 40px; }
.locations .loc {
  flex: 1 1 240px; max-width: 300px;
  background: var(--surface-sunken); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 22px 24px; text-align: left;
}
.locations .loc-label {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.locations address { font-style: normal; font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); }
.locations address a { color: var(--fg-muted); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
.locations address a:hover { color: var(--accent); }

/* Footer office addresses */
.footer-offices { margin-top: 22px; display: grid; gap: 14px; }
.footer-offices p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fg-muted); }
.footer-offices strong { color: var(--fg-strong); font-weight: 600; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin: 18px 0 16px; color: var(--fg-strong); }
.notfound .lede { max-width: 520px; margin: 0 auto 34px; }
.notfound .hero-cta { justify-content: center; }

/* ============================================================
   RESPONSIVE SYSTEM — tiers: MD ≤900 (tablet) · SM ≤600 (phone) · XS ≤380 (thin)
   Desktop (≥1000) is unchanged; these only refine smaller screens.
   ============================================================ */

/* Global safety */
img, canvas, video, svg { max-width: 100%; }
html { overflow-x: hidden; }

/* Fluid headings (scale smoothly instead of jumping) */
.h3 { font-size: clamp(18px, 2.4vw, 22px); }
.prose h2 { font-size: clamp(20px, 4.5vw, 26px); }
.prose h3 { font-size: clamp(17px, 3.5vw, 20px); }
.apply h2 { font-size: clamp(21px, 4.5vw, 26px); }
.gallery-year-title { font-size: clamp(26px, 5vw, 34px); }
.hero h1 { font-size: clamp(34px, 6.6vw, 92px); }

/* Hide the floating design "Tweaks" panel on tablets/phones (it dominates) */
@media (max-width: 768px) {
  #tweaks-root, .twk-panel, .twk-fab { display: none !important; }
}

/* ---------- MD: tablets (≤900px) ---------- */
@media (max-width: 900px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }   /* was 4 at ≥720 — too cramped on tablets */
  .split, .partnerships .split { gap: 36px; }
  .founder { gap: 36px; }
  .section { padding: 76px 0; }
}

/* ---------- SM: phones (≤600px) ---------- */
@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 36px; }

  .hero { padding: 84px 0 64px; }
  .hero-meta { gap: 8px 18px; margin-top: 36px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Grids → single column on phones */
  .ind-grid { grid-template-columns: 1fr; }
  .eco-grid, .vision-grid, .principles { grid-template-columns: 1fr; }

  /* Stats stay 2-up but tighter */
  .stat { padding: 26px 14px; }

  /* Spacing */
  .split, .founder, .partnerships .split { gap: 26px; }

  /* CTA + forms */
  .cta-band { padding: 44px 22px; }
  .cta-band h2, .cta-band .lede { max-width: 100%; }
  .pf-row { grid-template-columns: 1fr; }

  /* Cards / prose padding */
  .blog-card-body { padding: 20px; }
  .blog-main { padding: 52px 0 72px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 34px; }
  .prose h3 { margin-top: 26px; }
  .post-foot { gap: 12px; }

  /* Locations: two compact cards per row */
  .locations .loc { flex: 1 1 calc(50% - 9px); padding: 18px 16px; }

  /* Footer a touch tighter */
  .footer { padding: 56px 0 36px; }

  /* 404 */
  .notfound { padding: 56px 0; }
}

/* ---------- XS: thin phones (≤380px) ---------- */
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 0; }
  .cta-band { padding: 34px 16px; }
  .stats { grid-template-columns: 1fr; }      /* stack the four stats on very narrow screens */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .locations .loc { flex: 1 1 100%; }
  .nav-brand img { height: 32px; }
}

/* Footer: brand spans full width on the 2-col mobile layout */
@media (max-width: 820px) {
  .footer-brand { grid-column: 1 / -1; }
}
