/*
 * WealthGenixAI — public site stylesheet (Phase 2 brand system, 2026-10-13)
 * --------------------------------------------------------------------------
 * Single stylesheet. Token-driven: components reference tokens only.
 * No external fonts, no frameworks. Strict CSP compatible (no inline styles).
 *
 *  1 Tokens          6 Navigation        11 Product & diagrams
 *  2 Base            7 Hero              12 Timeline / stages
 *  3 Typography      8 Sections          13 Records, facts, people
 *  4 Layout          9 Buttons & badges  14 Footer
 *  5 Brand          10 Panels & tiles    15 Motion · 16 Responsive · 17 Print
 */

/* ===== 1. Tokens ===================================================== */
:root {
  /* Surfaces — dark */
  --ink-950: #050c17;
  --ink-900: #0a1526;
  --ink-850: #0e1c31;
  --ink-800: #13243d;
  --line-dark: rgba(214, 226, 245, 0.11);
  --line-dark-strong: rgba(214, 226, 245, 0.22);

  /* Surfaces — light */
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #ebeff5;
  --line: #dfe4ec;
  --line-strong: #c5cedb;

  /* Text */
  --text-strong: #0a1424;
  --text: #26334a;
  --text-muted: #566275;
  --on-dark-strong: #f4f7fc;
  --on-dark: #c8d2e2;
  --on-dark-muted: #9eabbf;

  /* Accents */
  --accent: #2f5fe3;          /* fills, primary actions */
  --accent-hover: #2349c4;
  --accent-text: #1e46b5;     /* accent text on light */
  --accent-on-dark: #94b2ff;  /* accent text on dark */
  --accent-wash: #eaf0fd;
  --brass: #b38a4f;           /* decorative rules/marks on light */
  --brass-on-dark: #dcc394;   /* accent text on dark ("verified") */

  /* Semantic states */
  --success: #11795a;
  --success-wash: #e7f4ef;
  --warning: #8f5b00;
  --warning-wash: #fbf4e8;
  --state-dev: var(--accent);
  --state-sim: var(--brass);
  --state-off: #7c8799;
  --focus: #2f5fe3;
  --focus-on-dark: #94b2ff;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Charter", "Bitstream Charter", "Source Serif Pro", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  --t-display: clamp(2.6rem, 1.55rem + 4.3vw, 4.75rem);
  --t-h1: clamp(2.2rem, 1.5rem + 2.9vw, 3.6rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --t-h3: 1.1875rem;
  --t-body-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-caption: 0.8125rem;
  --t-label: 0.75rem;
  --t-nav: 0.9375rem;
  --t-data: 0.875rem;

  --lh-display: 1.04;
  --lh-heading: 1.14;
  --lh-snug: 1.35;
  --lh-body: 1.65;
  --track-label: 0.12em;
  --track-tight: -0.018em;

  /* Spacing — 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Shape & depth */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(10, 20, 36, 0.06);
  --shadow-2: 0 18px 48px -18px rgba(10, 20, 36, 0.22);
  --shadow-dark: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  /* Layout */
  --container: 1240px;
  --container-wide: 1400px;
  --measure: 66ch;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 700ms;
}

/* ===== 2. Base ======================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.menu-open { overflow: hidden; }

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

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--focus-on-dark); }

ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
p + p { margin-top: var(--s-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ===== 3. Typography ================================================= */
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: 600; }

.display, h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-tight);
}
.display { font-size: var(--t-display); line-height: var(--lh-display); }

h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-tight);
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--t-h3);
  font-weight: 650;
  line-height: var(--lh-snug);
  letter-spacing: -0.006em;
}

.body-lg { font-size: var(--t-body-lg); line-height: 1.6; }
.small { font-size: var(--t-small); }
.caption { font-size: var(--t-caption); color: var(--text-muted); }
.muted { color: var(--text-muted); }

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-text);
}
.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.label--plain::before { display: none; }

.data {
  font-family: var(--font-mono);
  font-size: var(--t-data);
  letter-spacing: 0.01em;
}

.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: var(--on-dark-strong); }
.on-dark .label { color: var(--brass-on-dark); }
.on-dark .muted, .on-dark .caption { color: var(--on-dark-muted); }
.on-dark a:not(.btn) { color: var(--accent-on-dark); }

/* ===== 4. Layout ===================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.measure { max-width: var(--measure); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink-900); }
.section--ink { background: var(--ink-950); }
.section--rule { border-top: 1px solid var(--line); }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-5) var(--s-8);
  align-items: end;
  margin-bottom: clamp(var(--s-7), 5vw, var(--s-8));
}
.section-header .label { grid-column: 1 / -1; }
.section-header p { color: var(--text-muted); font-size: var(--t-body-lg); max-width: 56ch; }
.on-dark .section-header p { color: var(--on-dark); }
.section-header--stack { grid-template-columns: minmax(0, 1fr); max-width: 760px; align-items: start; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: var(--s-6); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-6) var(--s-9);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > * > h2 + p, .split > * > h2 + .body-lg { margin-top: var(--s-5); }
.sticky { position: sticky; top: calc(var(--header-h) + var(--s-6)); }

.stack > * + * { margin-top: var(--s-5); }

/* ===== 5. Brand ====================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--on-dark-strong);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--on-dark-strong); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-mark .m-path { stroke: currentColor; }
.brand-mark .m-node { fill: var(--brass-on-dark); }
.brand-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.012em; }
.brand-name span { color: var(--accent-on-dark); font-weight: 700; }
.brand--light { color: var(--text-strong); }
.brand--light:hover { color: var(--text-strong); }
.brand--light .brand-name span { color: var(--accent-text); }
.brand--light .m-node { fill: var(--accent); }

/* ===== 6. Navigation ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 21, 38, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(5, 12, 23, 0.96); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.nav-primary { display: flex; align-items: center; gap: var(--s-1); list-style: none; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.8rem;
  color: var(--on-dark);
  font-size: var(--t-nav);
  font-weight: 550;
  text-decoration: none;
  border-radius: var(--r-xs);
  transition: color var(--dur-1) var(--ease-out);
}
.nav-link:hover { color: var(--on-dark-strong); text-decoration: none; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 4px;
  height: 2px;
  background: var(--brass-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(0.35); }
.nav-link[aria-current="page"] { color: var(--on-dark-strong); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.menu-button {
  display: none;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--on-dark-strong);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
}
.menu-button:hover { border-color: var(--on-dark-muted); }
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out);
}
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 7.5px; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 4.5px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 4.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  display: none;
  overflow-y: auto;
  background: var(--ink-950);
  color: var(--on-dark);
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-6) var(--s-8);
}
.mobile-group h2 {
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brass-on-dark);
}
.mobile-group ul { list-style: none; border-top: 1px solid var(--line-dark); }
.mobile-group li { border-bottom: 1px solid var(--line-dark); }
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 60px;
  color: var(--on-dark-strong);
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
}
.mobile-link::after { content: "\2192"; font-family: var(--font-sans); font-size: 1rem; color: var(--on-dark-muted); }
.mobile-link[aria-current="page"] { color: var(--brass-on-dark); }
.mobile-link:hover { color: #fff; text-decoration: none; }
.mobile-status {
  padding: var(--s-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  font-size: var(--t-small);
  color: var(--on-dark-muted);
}

/* ===== 7. Hero ======================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(47, 95, 227, 0.18), transparent 70%),
    var(--ink-900);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 85%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--s-7) var(--s-8);
  align-items: center;
  padding-block: clamp(4rem, 2rem + 7vw, 8rem) clamp(4rem, 2rem + 6vw, 7rem);
}
.hero-copy .display { max-width: 13ch; margin-top: var(--s-5); }
.hero-lead { max-width: 54ch; margin-top: var(--s-6); font-size: var(--t-body-lg); color: var(--on-dark); }
.hero-lead strong { color: var(--on-dark-strong); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--on-dark-muted);
}
.hero-meta strong { color: var(--on-dark-strong); font-weight: 600; }

.hero-visual { position: relative; }
.figure-caption {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--on-dark-muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 90% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 90% 0%, #000, transparent 75%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s-6) var(--s-8);
  align-items: end;
  padding-block: clamp(3.75rem, 2rem + 6vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero h1 { max-width: 20ch; margin-top: var(--s-5); }
.page-hero .hero-lead { margin-top: var(--s-5); }
.page-hero-aside { justify-self: end; width: 100%; max-width: 340px; }

/* ===== 8. Status ledger (signature) ================================== */
.ledger {
  position: relative;
  margin: 0;
  padding: var(--s-5) var(--s-5) var(--s-4);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 36, 61, 0.92), rgba(10, 21, 38, 0.96));
  box-shadow: var(--shadow-dark);
  color: var(--on-dark);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-dark-strong);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brass-on-dark);
}
/* Phase 3R1 (M-2): the head row is a valid dt/dd group; keep its original look. */
.ledger .ledger-head dt,
.ledger .ledger-head dd { margin: 0; display: block; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; }
.ledger .ledger-head dd::before { content: none; display: none; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4);
  padding-block: 0.7rem;
  border-bottom: 1px dashed var(--line-dark);
}
.ledger-row:last-of-type { border-bottom: 0; }
.ledger dt { font-size: var(--t-small); color: var(--on-dark-muted); }
.ledger dd {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-data);
  color: var(--on-dark-strong);
  text-align: right;
}
.ledger dd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-on-dark); }
.ledger dd.is-sim::before { background: var(--brass-on-dark); }
.ledger dd.is-off { color: var(--on-dark); }
.ledger dd.is-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--on-dark-muted); }
.ledger dd.is-plain::before { display: none; }
.ledger-foot { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line-dark-strong); font-size: var(--t-caption); color: var(--on-dark-muted); }
.ledger--compact { padding: var(--s-4); }

/* ===== 9. Buttons, badges ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 50px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--t-small);
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: #848fa1; color: var(--text-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--text-strong); color: var(--text-strong); }
.on-dark .btn--ghost, .btn--ghost-dark { border-color: rgba(214, 226, 245, 0.42); color: var(--on-dark-strong); }
.on-dark .btn--ghost:hover, .btn--ghost-dark:hover { border-color: var(--on-dark); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-caption); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 650;
  font-size: var(--t-small);
  text-decoration: none;
}
.text-link .arrow { transition: transform var(--dur-2) var(--ease-out); }
.text-link:hover { text-decoration: none; }
.text-link:hover .arrow { transform: translateX(3px); }

.badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 28px;
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--state-off); flex: 0 0 auto; }
.badge--dev::before { background: var(--state-dev); }
.badge--sim::before { background: var(--state-sim); }
.badge--off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--state-off); }
.badge--done::before { background: var(--success); }
.badge--pending::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--warning); }
.on-dark .badge { background: rgba(255, 255, 255, 0.03); border-color: var(--line-dark-strong); color: var(--on-dark-strong); }
.on-dark .badge--dev::before { background: var(--accent-on-dark); }
.on-dark .badge--sim::before { background: var(--brass-on-dark); }
.on-dark .badge--off::before { box-shadow: inset 0 0 0 1.5px var(--on-dark-muted); }

/* ===== 10. Panels, tiles, callouts =================================== */
.panel {
  position: relative;
  height: 100%;
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.panel h3 { margin-bottom: var(--s-3); }
.panel p { color: var(--text-muted); }
.panel .text-link { margin-top: var(--s-5); }
.section--paper2 .panel { border-color: var(--line); }
.on-dark .panel { background: rgba(255, 255, 255, 0.025); border-color: var(--line-dark); box-shadow: none; }
.on-dark .panel p { color: var(--on-dark); }

.panel-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.on-dark .panel-index { color: var(--on-dark-muted); }

.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--accent-text);
  background: var(--accent-wash);
  margin-bottom: var(--s-5);
}
.icon svg { width: 100%; height: 100%; }
.on-dark .icon { background: rgba(148, 178, 255, 0.08); border-color: var(--line-dark-strong); color: var(--accent-on-dark); }

.tile {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
}
.tile-num {
  display: block;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--accent-text);
}
.tile h3 { margin-bottom: var(--s-3); }
.tile p { color: var(--text-muted); }
.on-dark .tile { border-top-color: var(--line-dark-strong); }
.on-dark .tile-num { color: var(--brass-on-dark); }
.on-dark .tile p { color: var(--on-dark); }

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4) var(--s-5);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.callout-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--warning-wash);
  color: var(--warning);
  font-family: var(--font-mono);
  font-weight: 700;
}
.callout h2, .callout h3 { font-family: var(--font-sans); font-size: var(--t-h3); font-weight: 650; margin-bottom: var(--s-3); }
.callout ul { display: grid; gap: var(--s-2); padding-left: var(--s-5); color: var(--text); font-size: var(--t-small); }
.callout p { color: var(--text); font-size: var(--t-small); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: var(--track-tight);
  color: var(--text-strong);
  max-width: 28ch;
}
.on-dark .statement { color: var(--on-dark-strong); }
.statement em { font-style: normal; color: var(--accent-text); }
.on-dark .statement em { color: var(--brass-on-dark); }

/* Check lists */
.checks { list-style: none; display: grid; gap: var(--s-4); }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-wash);
  box-shadow: inset 0 0 0 1px rgba(17, 121, 90, 0.35);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: calc(0.35em + 5px);
  width: 7px;
  height: 4px;
  border-left: 1.75px solid var(--success);
  border-bottom: 1.75px solid var(--success);
  transform: rotate(-45deg);
}
.checks--pending li::before { background: var(--warning-wash); box-shadow: inset 0 0 0 1px rgba(143, 91, 0, 0.35); }
.checks--pending li::after { left: 5px; top: calc(0.35em + 8px); width: 8px; height: 0; border-left: 0; border-bottom: 1.75px solid var(--warning); transform: none; }
.on-dark .checks li { color: var(--on-dark); }
.on-dark .checks li::before { background: rgba(220, 195, 148, 0.12); box-shadow: inset 0 0 0 1px rgba(220, 195, 148, 0.45); }
.on-dark .checks li::after { border-color: var(--brass-on-dark); }

/* ===== 11. Product & diagrams ======================================== */
/* Company → product relationship */
.relation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
}
.relation-node {
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.relation-node .label { margin-bottom: var(--s-5); }
.relation-node h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: var(--track-tight); margin-bottom: var(--s-3); }
.relation-node p { color: var(--text-muted); font-size: var(--t-small); }
.relation-node .badges { margin-top: var(--s-5); }
.relation-node--focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow-2); }
.relation-node--future { border-style: dashed; background: transparent; }
.relation-link { position: relative; }
.relation-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  border-top: 1px dashed var(--line-strong);
}
.relation-link::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: 8px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
  transform: rotate(45deg);
}

/* Flagship spotlight */
.spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-7);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  border-radius: calc(var(--r-lg) + 4px);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(47, 95, 227, 0.22), transparent 70%),
    var(--ink-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-2);
}
.spotlight h2 { margin-top: var(--s-5); }
.spotlight .badges { margin-top: var(--s-5); }
.spotlight p.body-lg { margin-top: var(--s-5); }
.spotlight .hero-actions { margin-top: var(--s-6); }

/* Decision pathway (conceptual) */
.pathway { list-style: none; display: grid; gap: var(--s-2); counter-reset: step; }
.pathway-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
}
.pathway-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--on-dark-muted);
}
.pathway-step + .pathway-step::after {
  content: "";
  position: absolute;
  left: calc(var(--s-5) + 8px);
  top: calc(-1 * var(--s-2) - 1px);
  height: var(--s-2);
  border-left: 1px solid var(--line-dark-strong);
}
.pathway-name { color: var(--on-dark-strong); font-weight: 600; font-size: var(--t-small); }
.pathway-desc { display: block; color: var(--on-dark-muted); font-size: var(--t-caption); font-weight: 400; }
.pathway-step--gate { border-color: rgba(220, 195, 148, 0.5); background: rgba(220, 195, 148, 0.06); }
.pathway-step--gate::before { color: var(--brass-on-dark); }
.pathway-step--off { border-style: dashed; background: transparent; }
.pathway-step--off .pathway-name { color: var(--on-dark-muted); }
/* light variant */
.pathway--light .pathway-step { border-color: var(--line); background: var(--paper); }
.pathway--light .pathway-step::before { color: var(--text-muted); }
.pathway--light .pathway-step + .pathway-step::after { border-color: var(--line-strong); }
.pathway--light .pathway-name { color: var(--text-strong); }
.pathway--light .pathway-desc { color: var(--text-muted); }
.pathway--light .pathway-step--gate { border-color: var(--brass); background: var(--warning-wash); }
.pathway--light .pathway-step--gate::before { color: var(--warning); }
.pathway--light .pathway-step--off { background: var(--paper-2); }
.pathway--light .pathway-step--off .pathway-name { color: var(--text-muted); }

/* Architecture stack */
.stack-diagram { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.stack-layer {
  display: grid;
  grid-template-columns: 56px minmax(0, 220px) minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5);
  border-top: 1px solid var(--line);
}
.stack-layer:first-child { border-top: 0; }
.stack-layer .data { color: var(--text-muted); }
.stack-name { font-weight: 650; color: var(--text-strong); }
.stack-desc { color: var(--text-muted); font-size: var(--t-small); }
.stack-layer--gate { background: var(--accent-wash); }
.stack-layer--gate .data { color: var(--accent-text); }
.stack-layer--off { background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 8px, var(--paper) 8px, var(--paper) 16px); }
.stack-layer--off .stack-name { color: var(--text-muted); }

/* Illustrative decision record */
.record {
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-lg);
  background: var(--ink-850);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brass-on-dark);
}
.record-body { padding: var(--s-5); display: grid; gap: var(--s-4); }
.record-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.record-key { font-family: var(--font-mono); font-size: var(--t-caption); color: var(--on-dark-muted); padding-top: 0.15rem; }
.record-val { color: var(--on-dark); font-size: var(--t-small); }
.record-val--strong { color: var(--on-dark-strong); }
.skeleton { display: block; height: 8px; margin-top: 0.55rem; border-radius: var(--r-pill); background: rgba(200, 210, 226, 0.16); }
.skeleton--80 { width: 80%; }
.skeleton--60 { width: 60%; }
.skeleton--45 { width: 45%; }
.record-foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line-dark); font-size: var(--t-caption); color: var(--on-dark-muted); }

/* Hero system SVG */
.sys { width: 100%; height: auto; overflow: visible; }
.sys-grid { stroke: var(--line-dark); stroke-width: 1; }
.sys-edge { stroke: rgba(200, 210, 226, 0.22); stroke-width: 1; fill: none; }
.sys-edge--muted { stroke: rgba(200, 210, 226, 0.16); stroke-dasharray: 3 5; }
.sys-edge--live { stroke: var(--accent-on-dark); stroke-width: 1.75; fill: none; }
.sys-pulse { stroke: #ffffff; stroke-width: 2.25; fill: none; stroke-linecap: round; stroke-dasharray: 18 900; stroke-dashoffset: 0; opacity: 0; }
.sys-node { fill: var(--ink-900); stroke: rgba(200, 210, 226, 0.55); stroke-width: 1.25; }
.sys-node--live { fill: var(--accent-on-dark); stroke: var(--accent-on-dark); }
.sys-halo { fill: none; stroke: rgba(148, 178, 255, 0.28); stroke-width: 1; }
.sys-gate { fill: rgba(220, 195, 148, 0.08); stroke: var(--brass-on-dark); stroke-width: 1.25; }
.sys-gate-line { stroke: rgba(220, 195, 148, 0.45); stroke-width: 1; stroke-dasharray: 2 6; }
.sys-out { fill: var(--accent-on-dark); }
.sys-out-off { fill: none; stroke: var(--on-dark-muted); stroke-width: 1.25; stroke-dasharray: 3 3; }
.sys-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; fill: var(--on-dark-muted); text-transform: uppercase; }
.sys-label--gate { fill: var(--brass-on-dark); }
.sys-label--strong { fill: var(--on-dark-strong); }

/* ===== 12. Timeline / stages ========================================= */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: stage; }
.timeline-step { position: relative; padding: var(--s-6) var(--s-5) 0 0; }
.timeline-step::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line-strong);
}
.timeline-dot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.timeline-step.is-current .timeline-dot { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.timeline-step.is-current::before { border-top-color: var(--accent); border-top-width: 2px; top: 8px; right: 50%; }
.timeline-step .data { display: block; margin-bottom: var(--s-2); color: var(--text-muted); }
.timeline-step.is-current .data { color: var(--accent-text); font-weight: 700; }
.timeline-step h3 { font-size: var(--t-small); margin-bottom: var(--s-2); }
.timeline-step p { font-size: var(--t-caption); color: var(--text-muted); line-height: 1.55; }
.timeline-step--off .timeline-dot { box-shadow: inset 0 0 0 1.5px var(--state-off); background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 2px, var(--paper-3) 2px, var(--paper-3) 4px); }

/* ===== 13. Records, facts, people, contact ========================== */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--font-mono); font-size: var(--t-caption); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding-top: 0.2rem; }
.facts dd { margin: 0; color: var(--text-strong); }
.facts dd .muted { display: block; margin-top: var(--s-1); font-size: var(--t-small); }

.person {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
.person-plate {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: var(--s-7);
  min-height: 260px;
  padding: var(--s-6);
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--ink-900);
  color: var(--on-dark);
}
.person-monogram {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--on-dark-strong);
  letter-spacing: -0.02em;
}
.person-monogram span { color: var(--brass-on-dark); }
.person-body { padding: clamp(var(--s-6), 4vw, var(--s-7)); }
.person-body h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: var(--track-tight); }
.person-role { margin-top: var(--s-2); }
.person-body p { margin-top: var(--s-5); color: var(--text); max-width: 60ch; }
.person-body .facts { margin-top: var(--s-6); }

.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-item { border-bottom: 1px solid var(--line); }
.contact-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: var(--s-5);
  align-items: center;
  padding-block: var(--s-5);
  color: var(--text-strong);
  text-decoration: none;
}
.contact-link:hover { text-decoration: none; color: var(--accent-text); }
.contact-link strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: var(--track-tight); }
.contact-link span { color: var(--text-muted); font-size: var(--t-small); }
.contact-link .arrow { font-size: 1.25rem; color: var(--text-muted); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1); }
.contact-link:hover .arrow { transform: translateX(4px); color: var(--accent-text); }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6);
  align-items: end;
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  border-radius: calc(var(--r-lg) + 4px);
  background: var(--ink-900);
  color: var(--on-dark);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 120% at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 120% at 100% 100%, #000, transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-top: var(--s-4); }
.cta p { margin-top: var(--s-4); color: var(--on-dark); max-width: 50ch; }
.cta .hero-actions { margin-top: 0; justify-content: flex-end; }

/* ===== 14. Footer ==================================================== */
.site-footer { background: var(--ink-950); color: var(--on-dark); font-size: var(--t-small); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: var(--s-7) var(--s-6);
  padding-block: var(--s-9) var(--s-8);
}
.footer-statement { margin-top: var(--s-5); max-width: 40ch; color: var(--on-dark); }
.footer-relation {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-caption);
  color: var(--on-dark-muted);
}
.footer-relation strong { color: var(--on-dark-strong); font-weight: 600; }
.footer-col h2 {
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--brass-on-dark);
}
.footer-col ul { list-style: none; display: grid; gap: var(--s-3); }
.site-footer a { color: var(--on-dark-strong); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4) var(--s-7);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: var(--t-caption);
}
.footer-bottom p { max-width: 92ch; }

/* ===== 15. Motion ==================================================== */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@keyframes sys-pulse {
  0% { stroke-dashoffset: 0; opacity: 0; }
  6% { opacity: 1; }
  70% { opacity: 1; }
  100% { stroke-dashoffset: -540; opacity: 0; }
}
@keyframes sys-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
.motion-ok .sys-pulse { animation: sys-pulse 6.5s var(--ease-out) 1.2s infinite; }
.motion-ok .sys-halo--live { animation: sys-breathe 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* ===== 16. Responsive ================================================ */
@media (min-width: 100em) {
  :root { --container: 1320px; }
}

@media (max-width: 73.75em) {
  .nav-link { padding-inline: 0.6rem; }
  .nav-link::after { left: 0.6rem; right: 0.6rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-6); }
}

@media (max-width: 67.5em) {
  .nav-primary, .header-cta { display: none; }
  .menu-button { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy .display { max-width: 16ch; }
  .hero-visual { max-width: 680px; }
  .spotlight { grid-template-columns: minmax(0, 1fr); }
  .relation { grid-template-columns: minmax(0, 1fr); }
  .relation-link { height: 36px; }
  .relation-link::before { top: 6px; bottom: 6px; left: 50%; right: auto; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .relation-link::after { top: auto; bottom: 6px; right: auto; left: calc(50% - 4px); transform: rotate(135deg); }
}

@media (max-width: 60em) {
  .section-header, .split, .split--even, .page-hero-inner, .cta { grid-template-columns: minmax(0, 1fr); }
  .page-hero-aside { justify-self: start; max-width: 480px; }
  .sticky { position: static; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .hero-actions { justify-content: flex-start; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person-plate { min-height: 0; grid-template-columns: auto 1fr; align-items: end; gap: var(--s-5); }
  .stack-layer { grid-template-columns: 44px minmax(0, 180px) minmax(0, 1fr); }
  .stack-layer > .badge { grid-column: 2 / -1; justify-self: start; }
}

@media (max-width: 45em) {
  :root { --header-h: 64px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .timeline-step { padding: 0 0 var(--s-5) var(--s-6); }
  .timeline-step::before { top: 14px; bottom: 0; left: 6px; right: auto; border-top: 0; border-left: 1px solid var(--line-strong); }
  .timeline-step:last-child::before { display: none; }
  .timeline-step.is-current::before { border-left-color: var(--accent); border-left-width: 2px; left: 5.5px; top: 14px; right: auto; }
  .timeline-dot { top: 4px; }
  .stack-layer { grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-1) var(--s-3); padding: var(--s-4); }
  .stack-layer .stack-desc, .stack-layer > .badge { grid-column: 2; }
  .facts-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .contact-link { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); }
  .contact-link span { grid-column: 1; grid-row: 2; }
  .contact-link .arrow { grid-column: 2; grid-row: 1 / span 2; }
  .record-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .callout { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: var(--s-8) var(--s-7); }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
  .pathway-step { grid-template-columns: 32px minmax(0, 1fr); padding: var(--s-3) var(--s-4); }
  .pathway-step > .badge { grid-column: 2; justify-self: start; }
  .pathway-step + .pathway-step::after { left: calc(var(--s-4) + 8px); }
}

@media (max-width: 26.25em) {
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 1.0625rem; }
  .menu-label { display: none; }
  .menu-button { padding: 0 var(--s-3); }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .ledger dd { justify-content: flex-start; text-align: left; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .badge { white-space: normal; }
}

/* ===== 17. Print ===================================================== */
@media print {
  .site-header, .mobile-menu, .skip-link, .hero-visual { display: none !important; }
  .hero, .page-hero, .section--dark, .section--ink, .cta, .spotlight, .site-footer { background: none !important; color: #000 !important; }
  .on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: #000 !important; }
}

figure { margin: 0; }
.header-cta[aria-current="page"] { border-color: var(--brass-on-dark); color: var(--on-dark-strong); }
.footer-col a { overflow-wrap: anywhere; }
.footer-col, .footer-brand { min-width: 0; }
.mt { margin-top: var(--s-5); }

/* ==========================================================================
   Phase 3R1 (M-1): print / Save-as-PDF stylesheet.
   A clean corporate document: black text on white, no backgrounds, no motion,
   no navigation chrome, nothing hidden by scroll-reveal, sensible page breaks.
   ========================================================================== */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #111 !important; }
  *, *::before, *::after {
    background: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
  body { min-height: 0 !important; font-size: 10.5pt; line-height: 1.45; }
  .site-header, .mobile-menu, .menu-button, .skip-link, .hero-visual, .grid-bg { display: none !important; }
  .reveal, .reveal-ready .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .sticky { position: static !important; }
  .hero, .page-hero { min-height: 0 !important; padding-block: 0 6mm !important; }
  .section, .section--tight { padding-block: 6mm !important; }
  .container { max-width: none !important; padding-inline: 0 !important; }
  .card, article, .ledger, .callout, .facts-row, .ledger-row, .pathway-step, .contact-item, .person-plate, li, figure { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3, .label { break-after: avoid; page-break-after: avoid; }
  h1 { font-size: 22pt !important; }
  h2 { font-size: 15pt !important; }
  h3 { font-size: 11.5pt !important; }
  p, li, dd, dt { orphans: 3; widows: 3; }
  .card, .ledger, .callout, .btn, .badge, .chip { border: 1px solid #bbb !important; }
  .btn { min-height: 0 !important; padding: 1mm 3mm !important; }
  svg .sys-edge, svg .sys-pulse, svg .sys-halo { display: none !important; }
  a { text-decoration: underline; }
  .site-footer { border-top: 1px solid #bbb !important; padding-top: 4mm !important; break-inside: avoid; }
  .site-footer a[href^="mailto:"]::after { content: " (customercare@wealthgenixai.com)"; }
}

/* ==========================================================================
   Phase 3R2: product portfolio (registry-generated cards). Reuses .panel,
   .badge and .text-link; adds only spacing and the flagship/pipeline accents
   already used by .relation-node--focus / --future.
   ========================================================================== */
.portfolio-card { display: flex; flex-direction: column; }
.portfolio-card p { flex: 0 0 auto; }
.portfolio-meta { margin-top: var(--s-4); font-size: var(--t-caption); color: var(--text-muted); }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); margin-top: auto; }
.portfolio-card--flagship { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow-2); }
.portfolio-card--pipeline { border-style: dashed; background: transparent; box-shadow: none; }
.status-legend .badge { white-space: nowrap; }
.portfolio-card .panel-index { flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-4); }
.portfolio-card .panel-index .badge { white-space: nowrap; }
.relation-node .text-link { margin-top: var(--s-4); }
.mission-foot { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
@media print {
  .portfolio-card--flagship { box-shadow: none !important; }
}

/* ==========================================================================
   Product pipeline update (2026-10-13): grouped portfolio (Flagship / Active
   development / Future pipeline), non-interactive CTA notices, homepage name
   chips and the portfolio hero illustration. Reuses existing tokens only.
   ========================================================================== */
.pipeline-group { margin-top: var(--s-8); }
.pipeline-group:first-of-type { margin-top: 0; }
.pipeline-group-title { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.portfolio-notice { display: inline-flex; align-items: center; font-size: var(--t-caption); color: var(--text-muted); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0.15rem 0.7rem; margin-right: var(--s-2); }
.portfolio-note { display: inline-block; margin-left: var(--s-2); font-size: var(--t-caption); font-weight: 400; color: var(--text-muted); vertical-align: middle; }
.portfolio-actions { align-items: center; row-gap: var(--s-3); padding-top: var(--s-4); }
.portfolio-actions:has(.portfolio-notice) { flex-direction: column; align-items: flex-start; }
.pipeline-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.name-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; flex: 1 1 320px; }
.name-chips li { font-size: var(--t-caption); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem 0.75rem; background: transparent; }
.sys-hub { fill: var(--ink-900); stroke: rgba(220, 195, 148, 0.7); stroke-width: 1.25; }
.sys-label--name { text-transform: none; letter-spacing: 0.04em; font-size: 12px; }
@media print {
  .portfolio-notice, .name-chips li { border-color: #999 !important; }
}

/* Pre-checkpoint correction (2026-10-13): five primary nav items (Products & Pipeline
   added). Labels stay on one line, and the compact menu takes over below 72.5em
   (1160px) so the desktop navigation never wraps or overflows. */
.nav-link { white-space: nowrap; }
@media (max-width: 72.5em) {
  .nav-primary, .header-cta { display: none; }
  .menu-button { display: inline-flex; }
}

/* Post-certification A5 (2026-10-13): on the Products page, card titles are h4
   under h3 group titles. They keep the exact h3 card appearance. */
.portfolio-card h4 {
  font-family: var(--font-sans);
  font-size: var(--t-h3);
  font-weight: 650;
  line-height: var(--lh-snug);
  letter-spacing: -0.006em;
  margin-bottom: var(--s-3);
}

/* ==========================================================================
   DESIGN B INTEGRATION (2026-10-13) — "Living AI Ecosystem" visual layer.
   Founder-approved Design B applied to the whole site. Screen only: the
   light-paper tokens are remapped to the dark ink palette, so every existing
   component inherits the new look without changing its markup. Print keeps
   the Phase 3R1 black-on-white document (print blocks above and below).
   Adds: ambient glows, glass panels, gradient headline accents, the
   registry-rendered ecosystem map, stage tracks, filters, the pipeline board,
   "Get involved" paths, the technology flow and the Ask WealthGenixAI
   local demonstration. Reduced motion disables every animation and lift.
   ========================================================================== */
@media screen {
  :root {
    --paper: #0a1526;
    --paper-2: #08111f;
    --paper-3: #13243d;
    --line: rgba(214, 226, 245, 0.12);
    --line-strong: rgba(214, 226, 245, 0.24);
    --text-strong: #f4f7fc;
    --text: #c8d2e2;
    --text-muted: #a3afc2;
    --accent-text: #94b2ff;
    --accent-wash: rgba(148, 178, 255, 0.12);
    --brass: #dcc394;
    --success: #6fd3ac;
    --success-wash: rgba(111, 211, 172, 0.12);
    --warning: #f0c27a;
    --warning-wash: rgba(240, 194, 122, 0.12);
    --state-dev: #94b2ff;
    --state-sim: #dcc394;
    --state-off: #8d99ad;
    --focus: #94b2ff;
    --shadow-1: none;
    --shadow-2: 0 28px 60px -32px rgba(0, 0, 0, 0.85);
    --glass: linear-gradient(180deg, rgba(19, 36, 61, 0.86), rgba(10, 21, 38, 0.9));
    --glass-line: rgba(214, 226, 245, 0.12);
    --glow-blue: rgba(47, 95, 227, 0.25);
    --glow-brass: rgba(220, 195, 148, 0.1);
    --node-flagship: #dcc394;
    --node-active: #94b2ff;
    --node-future: #7b8fb3;
  }
  html { background: var(--ink-950); }
  body { background: var(--ink-950); color: var(--text); }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(1100px 620px at 82% -10%, rgba(47, 95, 227, 0.16), transparent 60%),
      radial-gradient(900px 600px at -10% 110%, rgba(220, 195, 148, 0.06), transparent 60%);
  }
  ::selection { background: rgba(148, 178, 255, 0.35); color: #fff; }
  a:hover { color: #c3d3ff; }

  /* Header: translucent ink with blur (Design B top bar) */
  .site-header { background: rgba(5, 12, 23, 0.78); border-bottom: 1px solid rgba(214, 226, 245, 0.08); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header { -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
  }
  .site-header.is-scrolled { background: rgba(5, 12, 23, 0.9); }

  /* Sections */
  .section--paper2 {
    background: linear-gradient(180deg, rgba(10, 21, 38, 0.7), rgba(8, 17, 31, 0.35));
    border-top: 1px solid rgba(214, 226, 245, 0.06);
    border-bottom: 1px solid rgba(214, 226, 245, 0.06);
  }
  .section--dark {
    background:
      radial-gradient(800px 420px at 85% 0%, rgba(47, 95, 227, 0.18), transparent 65%),
      var(--ink-900);
  }
  .hero {
    background:
      radial-gradient(1200px 600px at 72% 30%, var(--glow-blue), transparent 60%),
      radial-gradient(800px 500px at 8% 92%, var(--glow-brass), transparent 60%),
      var(--ink-950);
    border-bottom-color: rgba(214, 226, 245, 0.08);
  }
  .page-hero {
    background:
      radial-gradient(1000px 520px at 85% 0%, var(--glow-blue), transparent 62%),
      radial-gradient(700px 420px at 0% 100%, var(--glow-brass), transparent 62%),
      var(--ink-950);
    border-bottom-color: rgba(214, 226, 245, 0.08);
  }

  /* Gradient headline accent (Design B) */
  .grad {
    background: linear-gradient(90deg, #94b2ff, #dcc394);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  @media (forced-colors: active) { .grad { background: none; color: CanvasText; } }

  /* Buttons */
  .btn--primary { box-shadow: 0 12px 30px -14px rgba(47, 95, 227, 0.9); }
  .btn--ghost { border-color: rgba(214, 226, 245, 0.42); color: var(--text-strong); }
  .btn--ghost:hover { border-color: var(--on-dark); color: #fff; }

  /* Badges on dark */
  .badge { background: rgba(255, 255, 255, 0.03); border-color: var(--line-dark-strong); color: var(--on-dark-strong); }

  /* Glass panels */
  .panel, .relation-node, .person, .callout, .stack-diagram {
    background: var(--glass);
    border-color: var(--glass-line);
  }
  .on-dark .panel { background: rgba(255, 255, 255, 0.03); }
  .relation-node--future { background: rgba(10, 21, 38, 0.4); }
  .portfolio-card, .path, .relation-node {
    transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
  }
  .portfolio-card:hover, .path:hover, .relation-node:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 178, 255, 0.45);
    box-shadow: 0 24px 50px -30px rgba(47, 95, 227, 0.6);
  }
  .portfolio-card--flagship {
    border-color: rgba(220, 195, 148, 0.55);
    box-shadow: 0 0 0 1px rgba(220, 195, 148, 0.18), 0 30px 70px -40px rgba(220, 195, 148, 0.55);
    background:
      radial-gradient(600px 240px at 100% 0%, rgba(220, 195, 148, 0.1), transparent 70%),
      var(--glass);
  }
  .portfolio-card--flagship:hover { border-color: rgba(220, 195, 148, 0.8); }
  .portfolio-card--pipeline { background: rgba(10, 21, 38, 0.35); }
  .relation-node--focus { border-color: rgba(220, 195, 148, 0.55); box-shadow: 0 0 0 1px rgba(220, 195, 148, 0.18), var(--shadow-2); }
  .spotlight { border: 1px solid rgba(214, 226, 245, 0.1); }
  .cta {
    background:
      radial-gradient(700px 300px at 100% 100%, rgba(47, 95, 227, 0.28), transparent 70%),
      radial-gradient(500px 260px at 0% 0%, rgba(220, 195, 148, 0.08), transparent 70%),
      var(--ink-900);
    border: 1px solid rgba(214, 226, 245, 0.1);
  }
  .site-footer { background: #040a14; border-top: 1px solid rgba(214, 226, 245, 0.08); }

  /* Check marks on dark */
  .checks li::before { box-shadow: inset 0 0 0 1px rgba(111, 211, 172, 0.45); }
  .checks--pending li::before { box-shadow: inset 0 0 0 1px rgba(240, 194, 122, 0.45); }

  /* Chips */
  .name-chips li { background: rgba(148, 178, 255, 0.06); border-color: rgba(214, 226, 245, 0.18); color: var(--on-dark-strong); }
}

/* ---- Stage-reached track on product cards (never a percentage) ---- */
.stage-track { display: flex; gap: 4px; margin-top: var(--s-4); }
.stage-track i { flex: 1; height: 4px; border-radius: 2px; background: rgba(214, 226, 245, 0.12); }
.stage-track i.on { background: linear-gradient(90deg, #94b2ff, #2f5fe3); }
.portfolio-card--flagship .stage-track i.on { background: linear-gradient(90deg, #dcc394, #b38a4f); }
.portfolio-card[hidden], .pipeline-group[hidden] { display: none !important; }

/* ---- Products filters (revealed by site.js) ---- */
.filter-bar { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.filter-bar[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter-btn {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(214, 226, 245, 0.22);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--on-dark);
  font: inherit;
  font-size: var(--t-small);
  cursor: pointer;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.filter-btn:hover { border-color: rgba(148, 178, 255, 0.6); color: #fff; }
.filter-btn[aria-pressed="true"] { background: var(--on-dark-strong); border-color: var(--on-dark-strong); color: var(--ink-900); font-weight: 650; }
.filter-status { color: var(--on-dark-muted); font-size: var(--t-caption); }

/* ---- Innovation pipeline board ---- */
.stage-board { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); counter-reset: none; }
.board-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--glass-line, rgba(214, 226, 245, 0.12));
  border-radius: 14px;
  background: rgba(14, 28, 49, 0.62);
}
.board-col--empty { background: rgba(10, 21, 38, 0.3); border-style: dashed; }
.board-num { color: var(--accent-on-dark); font-size: var(--t-caption); }
.board-title { font-family: var(--font-sans); font-size: var(--t-small); font-weight: 650; color: var(--on-dark-strong); line-height: 1.3; }
.board-count { font-size: var(--t-caption); color: var(--on-dark-muted); }
.board-list { list-style: none; display: grid; gap: 6px; margin-top: var(--s-2); }
.board-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(148, 178, 255, 0.1);
  color: var(--on-dark-strong);
  font-size: var(--t-caption);
  line-height: 1.35;
  text-decoration: none;
}
.board-item a::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--node-active, #94b2ff); }
.board-item--flagship a { background: rgba(220, 195, 148, 0.12); }
.board-item--flagship a::before { background: var(--node-flagship, #dcc394); }
.board-item--future a::before { background: var(--node-future, #7b8fb3); }
.board-item a:hover { background: rgba(148, 178, 255, 0.2); color: #fff; }
.board-wrap { margin-bottom: var(--s-8); }
.board-intro { margin-bottom: var(--s-4); }

/* ---- Ecosystem map (homepage hero) ---- */
.eco { display: grid; gap: var(--s-4); }
.eco-figure { margin: 0; }
.eco-map { display: block; width: 100%; height: auto; overflow: visible; }
.eco-orbit { fill: none; stroke: rgba(214, 226, 245, 0.12); stroke-dasharray: 2 7; }
.eco-orbit--flagship { stroke: rgba(220, 195, 148, 0.22); }
.eco-link { stroke: rgba(148, 178, 255, 0.2); stroke-width: 1; }
.eco-link--flagship { stroke: rgba(220, 195, 148, 0.5); stroke-width: 1.5; }
.eco-link--future { stroke: rgba(148, 178, 255, 0.12); stroke-dasharray: 3 5; }
.eco-pulse { fill: #2f5fe3; opacity: 0.32; transform-box: fill-box; transform-origin: center; }
.eco-hub-ring { fill: #0a1526; stroke: #dcc394; stroke-width: 1.5; }
.eco-hub-name { font: 700 16px var(--font-sans); fill: #fff; letter-spacing: 0.01em; }
.eco-hub:focus { outline: none; }
.eco-hub:focus-visible .eco-hub-ring { stroke: #fff; stroke-width: 3; }
.eco-node { cursor: pointer; }
.eco-node:focus { outline: none; }
.eco-hit { fill: transparent; stroke: transparent; stroke-width: 2; }
.eco-dot { transform-box: fill-box; transform-origin: center; transition: transform var(--dur-2) var(--ease-out); }
.eco-node--flagship .eco-dot { fill: var(--node-flagship, #dcc394); }
.eco-node--active .eco-dot { fill: var(--node-active, #94b2ff); }
.eco-node--future .eco-dot { fill: var(--node-future, #7b8fb3); }
.eco-label { font: 600 17.5px var(--font-sans); fill: var(--on-dark); transition: fill var(--dur-1); }
.eco-node--flagship .eco-label { fill: var(--brass-on-dark); font-size: 18.5px; }
.eco-node:hover .eco-dot, .eco-node:focus-visible .eco-dot, .eco-node.is-active .eco-dot { transform: scale(1.45); }
.eco-node:hover .eco-label, .eco-node:focus-visible .eco-label, .eco-node.is-active .eco-label { fill: #fff; }
.eco-node:focus-visible .eco-hit, .eco-node.is-active .eco-hit { stroke: #fff; }
.eco-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-caption); color: var(--on-dark-muted); }
.eco-key { display: inline-flex; align-items: center; gap: 8px; }
.eco-key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--node-active, #94b2ff); }
.eco-key--flagship::before { background: var(--node-flagship, #dcc394); }
.eco-key--future::before { background: var(--node-future, #7b8fb3); }
.eco-detail {
  min-height: 168px;
  padding: var(--s-5);
  border: 1px solid rgba(214, 226, 245, 0.14);
  border-radius: 14px;
  background: rgba(14, 28, 49, 0.72);
  color: var(--on-dark);
}
.eco-detail .label { color: var(--accent-on-dark); }
.eco-detail-name { margin-top: var(--s-2); font-size: 1.25rem; font-weight: 650; color: #fff; }
.eco-detail .badge { margin-top: var(--s-3); }
.eco-detail-meta { margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--t-caption); color: var(--on-dark-muted); }
.eco-detail-desc { margin-top: var(--s-3); font-size: var(--t-small); }
.eco-detail p + p { margin-top: var(--s-2); }
.eco-detail .text-link { margin-top: var(--s-3); }
.hero .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }

/* ---- Company: portfolio summary, ambitions ---- */
.eco-aside { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid rgba(214, 226, 245, 0.14); border-radius: 14px; background: rgba(14, 28, 49, 0.72); max-width: 380px; }
.eco-aside .label { color: var(--brass-on-dark); }
.eco-summary { margin: 0; display: grid; gap: var(--s-3); }
.eco-summary-row { display: grid; gap: 2px; }
.eco-summary dt { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.eco-summary dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--node-active, #94b2ff); }
.eco-summary-row--flagship dt::before { background: var(--node-flagship, #dcc394); }
.eco-summary-row--future dt::before { background: var(--node-future, #7b8fb3); }
.eco-summary dd { margin: 0; color: var(--on-dark-strong); font-size: var(--t-small); line-height: 1.5; }
.ambitions { margin-top: var(--s-7); }
.ambition-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-4); counter-reset: amb; }
.ambition-list li { counter-increment: amb; position: relative; padding: var(--s-5); padding-top: var(--s-7); border: 1px solid rgba(214, 226, 245, 0.12); border-radius: 14px; background: rgba(14, 28, 49, 0.55); font-size: var(--t-small); }
.ambition-list li::before { content: counter(amb, decimal-leading-zero); position: absolute; top: var(--s-4); left: var(--s-5); font-family: var(--font-mono); font-size: var(--t-caption); color: var(--brass-on-dark); }
.ambition-list strong { display: block; margin-bottom: var(--s-2); color: var(--on-dark-strong); }

.tile--glass { padding: var(--s-6); border: 1px solid rgba(214, 226, 245, 0.12); border-top-color: rgba(220, 195, 148, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(19, 36, 61, 0.86), rgba(10, 21, 38, 0.9)); }
.tile--glass .tile-num { color: var(--brass-on-dark); letter-spacing: 0.08em; text-transform: uppercase; }
.tile--glass h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: var(--track-tight); }

/* ---- Technology: build flow ---- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.flow-step { position: relative; padding: var(--s-5); border: 1px solid rgba(214, 226, 245, 0.12); border-radius: 14px; background: rgba(14, 28, 49, 0.62); }
.flow-step + .flow-step::before { content: ""; position: absolute; top: 34px; left: calc(-1 * var(--s-4)); width: var(--s-4); border-top: 1px dashed rgba(148, 178, 255, 0.5); }
.flow-num { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--s-4); border-radius: 50%; border: 1px solid rgba(148, 178, 255, 0.45); color: var(--accent-on-dark); background: rgba(148, 178, 255, 0.08); }
.flow-step h3 { margin-bottom: var(--s-2); font-size: var(--t-body); }
.flow-step p { font-size: var(--t-small); color: var(--text-muted); }
.flow-step--gate { border-color: rgba(220, 195, 148, 0.45); }
.flow-step--gate .flow-num { border-color: rgba(220, 195, 148, 0.6); color: var(--brass-on-dark); background: rgba(220, 195, 148, 0.08); }

/* ---- Get involved paths ---- */
.path { display: flex; flex-direction: column; }
.path .label { margin-bottom: var(--s-4); color: var(--accent-on-dark); }
.path p { margin-bottom: var(--s-5); }
.path > .text-link, .path > .btn, .path > .path-notice, .path > .caption { margin-top: auto; align-self: flex-start; }
.path > .btn[hidden], .path > .caption[hidden] { display: none; }
.path-notice { display: inline-flex; font-size: var(--t-caption); color: var(--text-muted); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0.15rem 0.7rem; }

/* ---- Ask WealthGenixAI (local demonstration) ---- */
.ask { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; }
.ask[hidden], .ask-panel[hidden] { display: none !important; }
.menu-open .ask { display: none; }
.ask-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 1.15rem;
  border: 1px solid rgba(148, 178, 255, 0.55);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #2f5fe3, #1e46b5);
  color: #fff;
  font: inherit;
  font-size: var(--t-small);
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 16px 36px -14px rgba(47, 95, 227, 0.95);
}
.ask-launch:hover { background: linear-gradient(135deg, #3a68ee, #2349c4); }
.ask-launch-dot { width: 9px; height: 9px; border-radius: 50%; background: #dcc394; box-shadow: 0 0 0 4px rgba(220, 195, 148, 0.2); }
.ask-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  max-height: min(72vh, 600px);
  border: 1px solid rgba(214, 226, 245, 0.16);
  border-radius: 18px;
  background: #0b1729;
  color: var(--on-dark);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid rgba(214, 226, 245, 0.1); background: rgba(19, 36, 61, 0.6); }
.ask-title { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: #fff; }
.ask-tag { margin-top: 2px; font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-on-dark); }
.ask-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(214, 226, 245, 0.2); border-radius: 50%; background: transparent; color: var(--on-dark-strong); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ask-close:hover { border-color: var(--on-dark); }
.ask-disclosure { margin: var(--s-4) var(--s-5) 0; padding: var(--s-3); border-radius: 10px; background: rgba(220, 195, 148, 0.08); border: 1px solid rgba(220, 195, 148, 0.25); font-size: var(--t-caption); line-height: 1.5; color: var(--on-dark); }
.ask-log { flex: 1 1 auto; overflow-y: auto; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-4) var(--s-5); font-size: var(--t-small); }
.ask-log:empty { display: none; }
.ask-msg { max-width: 92%; padding: var(--s-3) var(--s-4); border-radius: 14px; line-height: 1.5; }
.ask-msg--user { justify-self: end; background: rgba(47, 95, 227, 0.35); color: #fff; border-bottom-right-radius: 4px; }
.ask-msg--bot { justify-self: start; background: rgba(214, 226, 245, 0.07); border: 1px solid rgba(214, 226, 245, 0.1); border-bottom-left-radius: 4px; }
.ask-msg--bot p + p { margin-top: var(--s-2); }
.ask-msg a { color: var(--accent-on-dark); font-weight: 600; }
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid rgba(214, 226, 245, 0.08); }
.ask-chip { min-height: 36px; padding: 0.35rem 0.8rem; border: 1px solid rgba(148, 178, 255, 0.35); border-radius: var(--r-pill); background: rgba(148, 178, 255, 0.08); color: var(--on-dark-strong); font: inherit; font-size: var(--t-caption); cursor: pointer; }
.ask-chip:hover { background: rgba(148, 178, 255, 0.2); color: #fff; }
.ask :focus-visible { outline: 2px solid #94b2ff; outline-offset: 2px; }

/* ---- Motion (Design B pulse) ---- */
@keyframes eco-pulse { 0%, 100% { transform: scale(1); opacity: 0.32; } 50% { transform: scale(1.7); opacity: 0.04; } }
@keyframes ask-dot { 0%, 100% { box-shadow: 0 0 0 3px rgba(220, 195, 148, 0.25); } 50% { box-shadow: 0 0 0 7px rgba(220, 195, 148, 0.05); } }
.motion-ok .eco-pulse { animation: eco-pulse 3.2s ease-in-out infinite; }
.motion-ok .ask-launch-dot { animation: ask-dot 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .eco-pulse { display: none; }
  .portfolio-card:hover, .path:hover, .relation-node:hover { transform: none; }
  .eco-node:hover .eco-dot, .eco-node:focus-visible .eco-dot, .eco-node.is-active .eco-dot { transform: none; }
}

/* ---- Responsive (Design B components) ---- */
@media (max-width: 75em) {
  .stage-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ambition-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 67.5em) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual.eco { max-width: 760px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step + .flow-step::before { display: none; }
}
@media (max-width: 45em) {
  .stage-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .ambition-list { grid-template-columns: minmax(0, 1fr); }
  .eco-label { font-size: 21px; }
  .eco-node--flagship .eco-label { font-size: 22px; }
  .site-footer { padding-bottom: 72px; }
  .ask-panel { position: fixed; left: 12px; right: 12px; bottom: 76px; width: auto; max-height: calc(100vh - 150px); }
}
@media (max-width: 33.75em) {
  .eco-dot { transform: scale(1.6); }
  .eco-hit { transform: scale(1.8); transform-box: fill-box; transform-origin: center; }
  .eco-node:hover .eco-dot, .eco-node:focus-visible .eco-dot, .eco-node.is-active .eco-dot { transform: scale(2.1); }
  .eco-hub-name { font-size: 19px; }
  .eco-label { display: none; }
  .eco-node--flagship .eco-label { display: inline; }
  .eco-detail { min-height: 0; }
}
@media (max-width: 26.25em) {
  .stage-board { grid-template-columns: minmax(0, 1fr); }
  .ask-launch { min-height: 44px; padding: 0 0.95rem; }
}

/* ---- Print (Design B additions; Phase 3R1 print document unchanged) ---- */
@media print {
  .ask, .filter-bar, .eco-detail, .eco-legend, .stage-track, template { display: none !important; }
  .grad { -webkit-text-fill-color: #111 !important; color: #111 !important; background: none !important; }
  .portfolio-card, .path, .relation-node { transform: none !important; }
  .stage-board, .flow, .ambition-list { display: block !important; }
  .board-col, .flow-step, .ambition-list li { border: 1px solid #bbb !important; margin-bottom: 3mm; padding: 2mm 3mm !important; }
  .board-item a::before, .eco-summary dt::before { display: none !important; }
  .portfolio-card[hidden], .pipeline-group[hidden] { display: block !important; }
}
