/* ============================================================
   EMERGENT INTELLIGENCE — emergentintelligence.ai
   Design system: third sibling to the Enduraman / LeanIX Expert
   and Pluggable Economy brands.
   - Shared bones: Instrument Sans (voice) + Jura (instrument labels),
     overline-with-dots, the 2px rule, registration marks, stat band,
     paradigm "from -> to" table, FAQ, CTA band, footer, no-JS-safe
     reveal, the accessible nav toggle.
   - Distinct skin: a DARK SUBSTRATE is the default canvas (the two
     siblings are light-default; this one inverts). The motif is the
     EMERGENT NODE FIELD — simple agents (violet) self-organizing,
     under simple rules, into an emergent whole (teal). The palette
     encodes the theory: many simple parts -> one intelligent whole.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Substrate — the dark canvas */
  --void:        #06080F;   /* deepest — body base, hero, footer, CTA */
  --substrate:   #0A0E1B;   /* primary lifted section surface */
  --panel:       #10152A;   /* raised panels / cards */
  --panel-2:     #161D38;   /* hovers, raised-on-raised */

  /* Emergence accents */
  --emerge:        #19E3B7; /* PRIMARY — emergent teal; CTAs, numerals, rule, overline */
  --emerge-bright: #5BF2D2; /* brighter teal — fine lines, on the deepest backgrounds */
  --synapse:       #8B7BFF; /* SECONDARY — neural violet; the node field, scoped motifs */
  --synapse-bright:#ADA2FF; /* violet on the deepest backgrounds */

  /* Text on dark */
  --text-1: rgba(255, 255, 255, 0.95); /* primary */
  --text-2: rgba(255, 255, 255, 0.72); /* secondary / body */
  --text-3: rgba(255, 255, 255, 0.60); /* tertiary / fine print */

  /* Lines */
  --line:   rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.20);

  /* Type — shared with the family (the sibling tell) */
  --font-sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Jura", "Instrument Sans", system-ui, sans-serif;

  /* Rhythm — shared structure */
  --container: 1140px;
  --container-narrow: 820px;
  --radius: 8px;
  --section-pad: clamp(64px, 9vw, 120px);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.40), 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 26px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 10px 40px rgba(25, 227, 183, 0.22);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--white, #fff);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.42rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; color: var(--text-2); }

a { color: var(--emerge); text-decoration: none; }
a:hover { color: var(--emerge-bright); }

strong { color: var(--text-1); }

main { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* Section surfaces — default is transparent (the --void body shows through) */
.section { padding: var(--section-pad) 0; }
.section--substrate { background: var(--substrate); }
.section--panel     { background: var(--panel); }
.section--deep      { background: var(--void); }

.lead, .lede { font-size: 1.16rem; color: var(--text-2); }
.center { text-align: center; }

/* Screen-reader-only utility (used by the drop-in email form label) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus — WCAG 2.2 AA */
:focus-visible {
  outline: 2px solid var(--emerge-bright);
  outline-offset: 2px;
  border-radius: 3px;
}
.btn:focus-visible { outline-offset: 3px; }
.nav-links a:focus-visible { outline-offset: 4px; }

/* Skip-to-content link — appears on keyboard focus */
.skip-link {
  position: absolute;
  left: 12px; top: -56px;
  z-index: 100;
  background: var(--emerge);
  color: var(--void);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.16s ease;
}
.skip-link:focus { top: 12px; color: var(--void); }

/* ---------- 3. Brand devices ---------- */

/* Overline — Jura, tracked out, flanking dots */
.overline {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--emerge);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.overline::before, .overline::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.overline--plain::before, .overline--plain::after { display: none; }

/* The 2px rule */
.rule {
  width: 64px; height: 2px;
  background: var(--emerge);
  border: 0; margin: 22px 0 26px;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* Corner registration marks */
.reg { position: relative; }
.reg::before, .reg::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  opacity: 0.24;
  pointer-events: none;
}
.reg::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.reg::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Section heading group */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .rule { margin-left: auto; margin-right: auto; }
.section-head .lede { color: var(--text-2); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--emerge {
  background: var(--emerge);
  color: var(--void);
}
.btn--emerge:hover { background: var(--emerge-bright); color: var(--void); box-shadow: var(--shadow-glow); }

.btn--panel {
  background: var(--panel-2);
  color: var(--text-1);
  border-color: var(--line-2);
}
.btn--panel:hover { background: var(--panel); color: #fff; border-color: var(--emerge); }

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--emerge); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

/* Brand lockup: node glyph + Emergent Intelligence */
.brand { display: inline-flex; flex-direction: row; align-items: center; gap: 11px; line-height: 1; }
.brand__glyph { width: 34px; height: 34px; flex: none; display: block; }
.brand__lockup { display: inline-flex; flex-direction: column; gap: 3px; }
.brand__name {
  font-weight: 700;
  font-size: clamp(1.02rem, 3.4vw, 1.18rem);
  letter-spacing: -0.01em;
  color: #fff;
}
.brand__tag {
  font-family: var(--font-label);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--emerge);
}
.nav-cta { margin-left: 4px; }
.nav-cta .btn { padding: 12px 18px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 540px at 82% -12%, rgba(25, 227, 183, 0.20), transparent 60%),
    radial-gradient(880px 480px at -6% 110%, rgba(139, 123, 255, 0.20), transparent 60%),
    var(--void);
  color: var(--text-1);
  padding: clamp(72px, 10vw, 132px) 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--emerge-bright); }
.hero .lede { font-size: 1.18rem; color: var(--text-2); max-width: 56ch; }
.hero .btn-row { margin-top: 34px; }
.hero__note { margin-top: 22px; font-size: 0.86rem; color: var(--text-3); }
.hero__note a { color: var(--text-2); text-decoration: underline; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerge-bright);
  border: 1px solid rgba(91, 242, 210, 0.40);
  border-radius: 100px;
  padding: 9px 18px;
  margin-bottom: 26px;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerge-bright);
}

/* ---------- 7. Node-field motif (original SVG art) ---------- */
.node-field {
  display: flex;
  justify-content: center;
  align-items: center;
}
.node-field svg { width: min(420px, 84vw); height: auto; }
/* agents pulse gently; the emergent core glows */
.nf-pulse { transform-origin: center; animation: nf-pulse 3.8s ease-in-out infinite; }
.nf-pulse--slow { animation-duration: 5.6s; }
.nf-core { transform-origin: center; animation: nf-core 4.6s ease-in-out infinite; }
@keyframes nf-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
@keyframes nf-core {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---------- 8. Stat / lineage band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: var(--panel);
  padding: 32px 26px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--emerge-bright);
  line-height: 1;
  margin-bottom: 10px;
}
.stat__label { font-size: 0.92rem; color: var(--text-2); line-height: 1.45; }
.stats-note { margin-top: 16px; font-size: 0.8rem; color: var(--text-3); }

/* ---------- 9. Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; color: #fff; }
.card .card__kicker {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerge);
  display: block;
  margin-bottom: 14px;
}
.card p:last-child { margin-bottom: 0; }
.card--glow { border-color: rgba(25, 227, 183, 0.35); box-shadow: var(--shadow-glow); }

/* Numbered cards */
.num-card .num {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--emerge);
  display: block;
  margin-bottom: 16px;
}

/* Icon cards (mechanism / architecture) */
.comp-card { position: relative; }
.comp-card .comp-icon {
  width: 46px; height: 46px;
  margin-bottom: 20px;
  color: var(--synapse-bright);
}
.comp-card .comp-icon svg { width: 100%; height: 100%; }
.comp-card .comp-tag {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-top: 6px;
}

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-2); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--emerge);
  border-bottom: 2px solid var(--emerge);
  transform: rotate(-45deg);
}

/* Definition rows */
.def-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.def-row:last-child { border-bottom: 1px solid var(--line); }
.def-row dt { font-weight: 600; color: #fff; }
.def-row dd { margin: 0; color: var(--text-2); }

/* Paradigm "from -> to" table */
.paradigm { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.paradigm th {
  text-align: left;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 18px 14px;
  border-bottom: 2px solid var(--line);
}
.paradigm td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-2);
}
.paradigm tr td:first-child { color: var(--text-3); }
.paradigm tr td:last-child { color: #fff; font-weight: 600; }
.paradigm .arrow { color: var(--emerge); font-weight: 700; }

/* Quote block */
.quote {
  border-left: 3px solid var(--emerge);
  padding: 6px 0 6px 28px;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #fff;
  font-weight: 500;
  max-width: 38em;
}
.quote em { color: var(--emerge-bright); font-style: normal; }
.quote footer { font-size: 0.9rem; font-weight: 400; color: var(--text-2); margin-top: 14px; }

/* Big manifesto lines — the "second voice" */
.manifesto-lines {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 24ch;
}
.manifesto-lines .v { color: var(--emerge); }
.manifesto-lines--center { margin-left: auto; margin-right: auto; }

/* ---------- 10. Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -30%, rgba(25, 227, 183, 0.16), transparent 60%),
    radial-gradient(700px 360px at -4% 130%, rgba(139, 123, 255, 0.14), transparent 60%),
    var(--substrate);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 92px) 0;
}
.page-hero h1 { max-width: 18em; }
.page-hero .lede { font-size: 1.16rem; color: var(--text-2); max-width: 62ch; }

/* ---------- 11. Lineage timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--synapse), var(--emerge));
  opacity: 0.5;
}
.timeline li { position: relative; padding: 0 0 34px 52px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--emerge);
  box-shadow: 0 0 0 4px rgba(25, 227, 183, 0.18);
}
.timeline .tl-year {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerge);
  display: block;
  margin-bottom: 6px;
}
.timeline h3 { margin: 0 0 8px; color: #fff; }
.timeline p { margin: 0; color: var(--text-2); }
.timeline .tl-cite {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--text-3);
}

/* ---------- 12. FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 14px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  padding: 22px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-label);
  font-size: 1.3rem;
  color: var(--emerge);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details .faq-body { padding-bottom: 22px; }
.faq details .faq-body p { color: var(--text-2); margin: 0 0 0.9em; }
.faq details .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 420px at 86% -20%, rgba(25, 227, 183, 0.22), transparent 60%),
    radial-gradient(700px 380px at 6% 120%, rgba(139, 123, 255, 0.18), transparent 60%),
    var(--void);
  color: var(--text-1);
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta-band h2 { color: #fff; max-width: 22em; margin: 0 auto 0.4em; }
.cta-band p { color: var(--text-2); max-width: 54ch; margin: 0 auto 1.4em; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 14. Follow strip (top) ---------- */
.follow-strip {
  background: var(--emerge);
  color: var(--void);
  text-align: center;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.follow-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.follow-strip a {
  color: var(--void);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* ---------- 15. Insights / posts ---------- */
.post { border-top: 1px solid var(--line); padding: 28px 0; }
.post:last-child { border-bottom: 1px solid var(--line); }
.post__meta {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerge);
  margin-bottom: 10px;
}
.post h3 { margin: 0 0 8px; color: #fff; }
.post p { color: var(--text-2); margin: 0; }
.tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--synapse-bright);
  background: rgba(139, 123, 255, 0.10);
  border: 1px solid rgba(139, 123, 255, 0.30);
  border-radius: 100px;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
}

/* ---------- 16. Connect ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.connect-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.connect-card h2 { color: #fff; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--void);
  color: var(--text-2);
  padding: 64px 0 36px;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: var(--text-3); }
.footer-brand p { margin-top: 16px; max-width: 38ch; color: var(--text-3); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.7;
}
.footer-legal p { margin-bottom: 6px; color: var(--text-3); }

/* ---------- 18. Reveal on scroll (progressive enhancement) ----------
   No-JS / pre-JS default: content is fully visible. Only once the document
   is marked .js (set by an inline snippet in <head>) do we hide-then-reveal,
   so disabling JavaScript never hides content. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .nf-pulse, .nf-pulse--slow, .nf-core { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats, .stats--3 { grid-template-columns: 1fr; }
  .def-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .paradigm, .paradigm tbody, .paradigm tr, .paradigm td { display: block; width: 100%; }
  .paradigm thead { display: none; }
  .paradigm td { border-bottom: 0; padding: 4px 0; }
  .paradigm tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .paradigm tr td:last-child { font-weight: 700; }

  /* Mobile navigation */
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--substrate);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
}
