/* KEIP Praevortus — public site.
   Standalone from the dashboard stylesheet on purpose: the signed-out pages are
   a document, not a terminal, and must not inherit the app shell's layout.
   Palette per docs/BRANDING.md; Flight Cobalt is the only accent. */

:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6B80;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-tint: #EEF2FE;
  --card: #FFFFFF;
  --cobalt: #2650E8;
  --cobalt-ink: #1D3FC2;
  --cobalt-air: #6E8DF7;
  --pos: #047857;
  --neg: #B91C1C;
  --warn-bg: #FFF7E6;
  --warn-line: #F4C77B;
  --warn-ink: #7A4B00;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -18px rgba(15, 23, 42, 0.22);
  --radius: 14px;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-brand: "Syne", var(--font-ui);
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F8FAFC;
    --ink-2: #CBD5E1;
    --muted: #94A3B8;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --bg: #000000;
    --bg-soft: #05070A;
    --bg-tint: #0D1117;
    --card: #07090E;
    --cobalt: #6E8DF7;
    --cobalt-ink: #9DB4FF;
    --pos: #34D399;
    --neg: #F87171;
    --warn-bg: #1F1608;
    --warn-line: #523A0E;
    --warn-ink: #F4C77B;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 16px 40px -20px rgba(0, 0, 0, 0.95);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .site-head {
    background: rgba(0, 0, 0, 0.92);
  }
}

:root[data-theme="dark"] {
  --ink: #F8FAFC;
  --ink-2: #CBD5E1;
  --muted: #94A3B8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bg: #000000;
  --bg-soft: #05070A;
  --bg-tint: #0D1117;
  --card: #07090E;
  --cobalt: #6E8DF7;
  --cobalt-ink: #9DB4FF;
  --pos: #34D399;
  --neg: #F87171;
  --warn-bg: #1F1608;
  --warn-line: #523A0E;
  --warn-ink: #F4C77B;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 16px 40px -20px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}
:root[data-theme="dark"] .site-head {
  background: rgba(0, 0, 0, 0.92);
}

:root[data-theme="light"] {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6B80;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-tint: #EEF2FE;
  --card: #FFFFFF;
  --cobalt: #2650E8;
  --cobalt-ink: #1D3FC2;
  --cobalt-air: #6E8DF7;
  --pos: #047857;
  --neg: #B91C1C;
  --warn-bg: #FFF7E6;
  --warn-line: #F4C77B;
  --warn-ink: #7A4B00;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -18px rgba(15, 23, 42, 0.22);
  color-scheme: light;
}
:root[data-theme="light"] .site-head {
  background: rgba(255, 255, 255, 0.94);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-2); }
ul, ol { color: var(--ink-2); padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
strong { color: var(--ink); font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cobalt); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.head-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand .wm { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand .wm .keip { color: var(--ink); }
.brand .wm .prae { color: var(--cobalt); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; padding: 8px 13px; border-radius: 8px; transition: all 0.15s ease; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--cobalt); background: var(--bg-tint); font-weight: 600; }
.head-cta { display: flex; align-items: center; gap: 10px; }
.head-cta .btn-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--bg); }
.head-cta .btn-ghost:hover { background: var(--bg-soft); border-color: var(--muted); }
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex: none;
}
.theme-btn:hover {
  color: var(--ink);
  border-color: var(--muted);
  background: var(--bg-soft);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
.menu-btn { display: none; margin-left: auto; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 40px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* Subpage Header */
.page-head {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 56px 0 48px;
  position: relative;
}
.page-head h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.page-head .crumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.page-head .crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.page-head .crumbs a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}
.page-head .lead {
  color: var(--ink-2);
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 760px;
}

@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .nav, .head-cta { display: none; }
  .site-head.open .nav, .site-head.open .head-cta { display: flex; }
  .site-head.open .head-row { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .site-head.open .nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; margin: 8px 0 0; }
  .site-head.open .nav a { padding: 12px; }
  .site-head.open .head-cta { order: 4; width: 100%; padding: 8px 0 6px; }
  .site-head.open .head-cta .btn { flex: 1; }
}


/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14.5px/1 var(--font-ui); padding: 12px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: #2650E8; color: #fff; box-shadow: 0 10px 24px -12px rgba(38, 80, 232, 0.7); }
.btn-primary:hover { background: #1D3FC2; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 15.5px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }
.sec-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 14px;
}
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 680px; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cobalt) 14%, transparent), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 .accent { color: var(--cobalt); }
.hero .lead { margin: 18px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; flex: none; color: var(--pos); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 56px 0; } }

/* Illustrative leaderboard mock */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-bar .ttl { font: 600 12px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.mock-bar .tag { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 8px; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.mock td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mock tr:last-child td { border-bottom: none; }
.mock .num { font-family: var(--font-mono); text-align: right; }
.mock th.num { text-align: right; }
.mock .up { color: var(--pos); }
.mock .dn { color: var(--neg); }
.mock .bar { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; width: 90px; }
.mock .bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }
.grade { display: inline-block; min-width: 30px; text-align: center; font: 700 12px/1 var(--font-mono); padding: 5px 7px; border-radius: 6px; }
.g-a { background: color-mix(in srgb, var(--pos) 16%, transparent); color: var(--pos); }
.g-b { background: color-mix(in srgb, var(--cobalt) 16%, transparent); color: var(--cobalt); }
.g-c { background: var(--bg-soft); color: var(--muted); }
.mock-foot { padding: 10px 16px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }
@media (max-width: 520px) { .mock .hide-sm { display: none; } .mock td, .mock th { padding: 10px 12px; } }

/* ── Facts strip ────────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.fact { padding: 26px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact b { display: block; font: 600 1.7rem/1.1 var(--font-ui); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; }
.fact span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(2) { border-right: none; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 440px) { .facts { grid-template-columns: 1fr; } .fact { border-right: none; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: none; } }

/* ── Grids & cards ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, box-shadow .15s;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--cobalt) 45%, var(--line)); box-shadow: var(--shadow); }
.card .ico {
  width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-tint); color: var(--cobalt); margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--cobalt); margin-top: 6px; }
.card .who { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 13px/1 var(--font-mono); color: var(--cobalt); margin-bottom: 12px; letter-spacing: 0.08em; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 14.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%;
  background: color-mix(in srgb, var(--cobalt) 14%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232650E8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Module group (platform page) */
.module-group { padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.module-group:first-of-type { border-top: none; padding-top: 0; }
.module-group > div:first-child p { font-size: 15px; }
@media (max-width: 860px) { .module-group { grid-template-columns: 1fr; gap: 20px; } }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }
.feature { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.feature h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.feature p { font-size: 14.5px; margin: 0; }
.pill { font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--bg-tint); color: var(--cobalt); }

/* Page header (inner pages) */
.page-head { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 820px; }
.page-head .lead { margin-top: 12px; }
.crumbs { font: 500 12.5px/1 var(--font-mono); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Prose (legal + methodology long form) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 16px; }
.prose-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc b { display: block; font: 600 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; color: var(--ink-2); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--cobalt); border-left-color: var(--cobalt); text-decoration: none; }
@media (max-width: 860px) { .prose-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }
.meta-line { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--cobalt); background: var(--bg-soft); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: var(--warn-line); border-left-color: #D98E04; background: var(--warn-bg); }
.callout.warn p, .callout.warn strong { color: var(--warn-ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 16.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 0 20px; max-width: 760px; }
.faq-cat { font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 44px 0 6px; }
.faq-cat:first-child { margin-top: 0; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.glossary dt { font-weight: 600; color: var(--ink); margin-top: 18px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 700px) { .glossary { grid-template-columns: 1fr; } }

/* Comparison table */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 12px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.tbl tr:last-child td { border-bottom: none; }
.tbl td:first-child { font-weight: 600; color: var(--ink); }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .form-card { padding: 22px 18px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; font: 15px/1.4 var(--font-ui); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 18%, transparent); }
.field .err { color: var(--neg); font-size: 13.5px; margin-top: 6px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.field-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: #2650E8; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: color-mix(in srgb, var(--neg) 10%, transparent); border: 1px solid color-mix(in srgb, var(--neg) 35%, transparent); color: var(--neg); border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 18px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #1E34A0 0%, #16205A 55%, #0D132E 100%); color: #EAF0FF; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(226, 232, 244, 0.85); margin: 0; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.cta-band .btn-primary { background: #fff; color: #1D3FC2; box-shadow: none; }
.cta-band .btn-primary:hover { background: #EAF0FF; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--ink-2); }
.foot-grid a:hover { color: var(--cobalt); }
.foot-grid .blurb { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.foot-legal p { color: var(--muted); margin-bottom: 8px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 14px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* Mark rise (docs/BRANDING.md "Pulse Drift"): once on load, drift on hover. */
.brand svg rect { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes ps-rise { 0% { transform: scaleY(0.2); } 65% { transform: scaleY(1.12); } 100% { transform: scaleY(1); } }
  .brand svg rect:nth-of-type(1) { animation: ps-rise .45s .10s cubic-bezier(0.2, 0.7, 0.3, 1.2) backwards; }
  .brand svg rect:nth-of-type(2) { animation: ps-rise .45s .22s cubic-bezier(0.2, 0.7, 0.3, 1.2) backwards; }
  .brand svg rect:nth-of-type(3) { animation: ps-rise .45s .34s cubic-bezier(0.2, 0.7, 0.3, 1.2) backwards; }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
/* CSS-only monthly/annual switch: the radios sit before the toggle and the
   plan grid, so sibling selectors pick which price and button are shown. */
.bill-radio { position: absolute; opacity: 0; pointer-events: none; }
.bill-toggle { display: flex; width: max-content; margin: 0 auto 40px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-soft); }
.bill-toggle label { padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
#bill-m:checked ~ .bill-toggle label[for="bill-m"],
#bill-a:checked ~ .bill-toggle label[for="bill-a"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14); }
#bill-m:focus-visible ~ .bill-toggle label[for="bill-m"],
#bill-a:focus-visible ~ .bill-toggle label[for="bill-a"] { outline: 2px solid var(--cobalt); outline-offset: 2px; }
#bill-m:checked ~ .plans .p-annual,
#bill-a:checked ~ .plans .p-monthly { display: none; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.plan-hi { border: 2px solid #2650E8; box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 28px; background: #2650E8; color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.plan-name { font-size: 1.35rem; margin-bottom: 6px; }
.plan-aud { font-size: 14.5px; min-height: 44px; }
.plan-price { margin: 8px 0 22px; min-height: 76px; }
.plan-price b { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.plan-price b.por { font-size: 1.45rem; display: block; padding-top: 8px; }
.plan-price span { color: var(--muted); font-size: 15px; margin-left: 4px; }
.plan-price small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.plan .btn { width: 100%; margin-bottom: 24px; }
.plan .checks li { font-size: 14.5px; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.channel { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.channel:last-child { border-bottom: none; }
.channel .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-tint); color: var(--cobalt); }
.channel .ico svg { width: 19px; height: 19px; }
.channel h3 { font-size: 15.5px; margin-bottom: 3px; }
.channel p { font-size: 14.5px; margin: 0; }

/* ── PMS site (PRODUCT_MODE=pms) ─────────────────────────────────────────── */
.hero.pms-hero {
  background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--cobalt) 8%, transparent) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 60%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero.pms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(38, 80, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 80, 232, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, transparent 85%);
}
.pms-hero-copy { max-width: 820px; position: relative; z-index: 2; }
.pms-hero-copy h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.pms-hero-copy .lead {
  color: var(--ink-2);
  font-size: 1.22rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.pms-hero-copy .eyebrow {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.pms-hero-copy .hero-ctas {
  margin-top: 32px;
}
.pms-hero-copy .hero-ctas .btn-primary {
  background: var(--cobalt);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(38, 80, 232, 0.28);
}
.pms-hero-copy .hero-ctas .btn-primary:hover {
  background: var(--cobalt-ink);
  box-shadow: 0 6px 20px rgba(38, 80, 232, 0.38);
}
.pms-hero-copy .hero-ctas .btn-ghost {
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.pms-hero-copy .hero-ctas .btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--muted);
  color: var(--ink);
}

.pms-trust-sec {
  padding: 0 0 56px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}
.pms-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.pms-trust > div {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}
.pms-trust > div:last-child {
  border-right: none;
}
.pms-trust dt {
  font: 600 11px/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.pms-trust dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.pms-trust .pms-sub {
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 640px) {
  .pms-trust-sec { margin-top: -20px; }
  .pms-trust > div { border-right: none; border-bottom: 1px solid var(--line); }
  .pms-trust > div:last-child { border-bottom: none; }
}

.foot-grid .foot-h { font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; margin: 0 0 16px; }
.foot-facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.foot-facts dd { margin: 2px 0 0; color: var(--ink-2); font-weight: 600; }


/* PMS strategy pages */
.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; }
.h3 { font-size: 1.15rem; }
.pms-strategy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 860px) { .pms-strategy-layout { grid-template-columns: 1fr; } }
.pms-facts { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pms-facts > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pms-facts > div:last-child { border-bottom: none; }
.pms-facts dt { font: 600 11.5px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pms-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.pms-docs { list-style: none; padding: 0; margin: 8px 0 0; }
.pms-docs li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pms-perf-table { margin-bottom: 24px; }
.pms-perf-table td { font-variant-numeric: tabular-nums; }
.pms-chart { margin: 8px 0 0; }
.pms-chart svg { width: 100%; height: 240px; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pms-chart figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pms-disclaimer { font-size: 14px; }

/* PMS process, team, insights, downloads */
.pms-steps { list-style: none; padding: 0; }
.pms-member .pms-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--cobalt); font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; }
.pms-pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 32px; font-weight: 600; }
.pms-pager span { color: var(--muted); font-weight: 400; }
.pms-doc-group { padding: 0 0 32px; }
.pms-doc-group h2 { font-size: 1.3rem; margin-bottom: 12px; }

/* PMS header: mobile menu that works without JavaScript (checkbox + label). */
.pms-nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0; }
.pms-menu-btn { display: none; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 40px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.pms-menu-btn svg { width: 20px; height: 20px; }
.pms-nav-toggle:focus-visible + .pms-menu-btn { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (max-width: 1120px) {
  .pms-menu-btn { display: inline-flex; }
  .pms-nav-toggle:checked ~ .nav, .pms-nav-toggle:checked ~ .head-cta { display: flex; }
  .head-row:has(.pms-nav-toggle:checked) { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .pms-nav-toggle:checked ~ .nav { order: 3; width: 100%; flex-direction: column; align-items: stretch; margin: 8px 0 0; }
  .pms-nav-toggle:checked ~ .nav a { padding: 12px; }
  .pms-nav-toggle:checked ~ .head-cta { order: 4; width: 100%; padding: 8px 0 6px; }
  .pms-nav-toggle:checked ~ .head-cta .btn { flex: 1; }
}

/* PMS investor charter, grievance redressal, enquiry */
.pms-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.pms-complaints td, .pms-complaints tfoot th { font-variant-numeric: tabular-nums; }
.pms-complaints tfoot th, .pms-complaints tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.pms-escalation th[scope="row"] { white-space: nowrap; color: var(--ink); }
.pms-charter { margin-bottom: 28px; }
.pms-thanks { max-width: 640px; text-align: center; }
.pms-thanks .lead { margin: 16px auto 32px; }
.pms-thanks .hero-ctas { justify-content: center; }

/* PMS polish: wide tables scroll inside .tbl-wrap on phones; tighter cells at 375px. */
.pms-complaints { min-width: 640px; }
.pms-escalation { min-width: 560px; }
.pms-perf-table th[scope="row"] { white-space: nowrap; }
a.card:focus-visible, .btn:focus-visible { outline-offset: 3px; }
@media (max-width: 600px) {
  .pms-complaints th, .pms-complaints td, .pms-escalation th, .pms-escalation td, .pms-perf-table th, .pms-perf-table td { padding: 10px 12px; font-size: 14px; }
}

/* ── World-Class Institutional & Prodesk Standards ────────────────────── */
.inst-status-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pos);
  font-weight: 700;
}
.inst-status-pulse::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 6px color-mix(in srgb, var(--pos) 60%, transparent);
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Institutional Badges */
.inst-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink-2);
}
.inst-badge-primary {
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
  border-color: color-mix(in srgb, var(--cobalt) 30%, transparent);
  color: var(--cobalt);
}
.inst-badge-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}
.inst-badge-dark {
  background: var(--ink);
  border-color: var(--line-strong);
  color: var(--bg);
}

/* Prodesk Quant Cockpit Card */
.prodesk-cockpit {
  margin-top: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}
.prodesk-cockpit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cobalt) 0%, #3B82F6 50%, var(--pos) 100%);
}
.prodesk-header {
  padding: 16px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.prodesk-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.prodesk-title > span:last-child {
  color: var(--muted);
  font-weight: 600;
}
.prodesk-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cobalt);
  background: var(--bg-tint);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cobalt) 30%, transparent);
}
.prodesk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
@media (max-width: 900px) {
  .prodesk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .prodesk-grid { grid-template-columns: 1fr; }
}
.prodesk-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.prodesk-cell:last-child {
  border-right: none;
}
@media (max-width: 900px) {
  .prodesk-cell:nth-child(2) { border-right: none; }
  .prodesk-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .prodesk-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .prodesk-cell:last-child { border-bottom: none; }
}
.prodesk-cell .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.prodesk-cell .val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.prodesk-cell .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}
.prodesk-footer {
  padding: 14px 24px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.prodesk-footer strong {
  color: var(--ink);
}

/* Dual Desk Architecture Cards */
.desk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.desk-card:hover {
  border-color: color-mix(in srgb, var(--cobalt) 40%, var(--line));
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}
.desk-card-hi {
  border: 2px solid var(--cobalt);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
}
.desk-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cobalt);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.desk-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.25;
}
.desk-lead {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 24px;
  line-height: 1.55;
}
.desk-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}
.desk-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.desk-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cobalt) 15%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232650E8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.desk-meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.desk-meta strong {
  color: var(--ink);
  font-size: 14px;
}

/* 4-Stage Systematic Investment Process */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 960px) {
  .process-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .process-flow { grid-template-columns: 1fr; }
}
.flow-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.flow-card:hover {
  border-color: color-mix(in srgb, var(--cobalt) 50%, var(--line));
  box-shadow: var(--shadow);
}
.flow-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flow-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.3;
}
.flow-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.flow-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  width: fit-content;
}

/* Interactive Mandate & Fee Simulator */
.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px -15px rgba(15, 23, 42, 0.08);
  padding: 40px;
  margin-top: 36px;
}
@media (max-width: 768px) {
  .calc-card { padding: 24px; }
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; gap: 30px; }
}
.calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.calc-preset-btn {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.calc-preset-btn:hover {
  background: var(--bg-tint);
  color: var(--cobalt);
  border-color: var(--cobalt);
}
.calc-preset-btn.active {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
  box-shadow: 0 4px 12px -2px rgba(38, 80, 232, 0.4);
}
.calc-slider-wrap {
  margin: 20px 0 28px;
}
.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 2px 8px rgba(38, 80, 232, 0.5);
  cursor: pointer;
}
.calc-result-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.12);
}
.calc-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.calc-metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.calc-metric-row .name-col {
  flex: 1;
  min-width: 0;
}
.calc-metric-row .name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.calc-metric-row .sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}
.calc-metric-row .val-col {
  flex-shrink: 0;
  text-align: right;
}
.calc-metric-row .val {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
}
.calc-metric-row .val-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
}

/* Diligence & Governance Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bento-card:hover {
  border-color: color-mix(in srgb, var(--cobalt) 40%, var(--line));
  box-shadow: var(--shadow);
}
.bento-card-large {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .bento-card-large { grid-column: span 1; }
}
.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  color: var(--cobalt);
  margin-bottom: 18px;
}
.bento-icon svg {
  width: 22px;
  height: 22px;
}
.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.bento-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   Editorial layer (2026-10). Calm, trust-first presentation for the public
   site: serif display type, hairline structure, generous space, ink + Flight
   Cobalt only. Loaded last, so it refines every page without touching their
   markup; the home page uses the .ed-* blocks below.
   ══════════════════════════════════════════════════════════════════════════ */

/* Source Serif 4 (SIL OFL 1.1, see fonts/OFL.txt), self-hosted for the CSP. */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-serif-4-latin.e9192c2fe0a3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.33ba75072ebc.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("fonts/source-serif-4-italic-latin.66c33f6b248f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --paper: #F7F5F0;          /* warm off-white for alternating sections */
  --ink-deep: #0B1220;       /* footer / CTA band */
  --hair: color-mix(in srgb, var(--ink) 10%, transparent);
  --radius: 10px;
}
:root[data-theme="dark"] { --paper: #07090E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #07090E; } }

/* Type */
h1, h2, .ed-display {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.018em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; }
h3 { letter-spacing: -0.01em; }
.page-head h1 { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.lead { font-size: 1.12rem; line-height: 1.65; }
.eyebrow { font: 600 11.5px/1 var(--font-ui); letter-spacing: 0.16em; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cobalt); flex: none; }

/* Header: quieter, more air, underline marks the current page */
.head-row { height: 76px; }
.nav { gap: 2px; }
.nav a { font-size: 14px; padding: 8px 11px; border-radius: 6px; }
.nav a[aria-current="page"] { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }
.site-head { box-shadow: none; }

/* Buttons: flat, squared-off, no glow */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: 0.005em; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn-primary:hover { background: #2650E8; color: #fff; }
:root[data-theme="dark"] .btn-primary { background: #E8EDF6; color: #0B1220; }
:root[data-theme="dark"] .btn-primary:hover { background: #6E8DF7; color: #0B1220; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #E8EDF6; color: #0B1220; }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #6E8DF7; color: #0B1220; }
}
.head-cta .btn-primary { background: #2650E8; color: #fff; }
.head-cta .btn-primary:hover { background: #1D3FC2; }

/* Surfaces: hairlines over shadows */
.sec-soft { background: var(--paper); border-color: var(--hair); }
.card, .desk-card, .flow-card, .bento-card, .calc-card { box-shadow: none; border-radius: var(--radius); }
.card:hover, .desk-card:hover, .flow-card:hover, .bento-card:hover { box-shadow: 0 1px 0 var(--hair), 0 18px 40px -28px rgba(15, 23, 42, 0.35); }
.page-head { background: var(--paper); border-bottom: 1px solid var(--hair); padding: 72px 0 56px; }

/* CTA band + footer in deep ink, both themes */
.cta-band { background: var(--ink-deep); border-radius: 14px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 500; }
.cta-band .btn-primary { background: #fff; color: #0B1220; }
.cta-band .btn-primary:hover { background: #DCE4FF; color: #0B1220; }
.site-foot { background: var(--ink-deep); border-top: none; color: #C3CCDA; padding-top: 72px; }
.site-foot .brand .wm .keip { color: #fff; }
.site-foot .brand .wm .prae { color: #8FA6FF; }
.site-foot .brand svg { color: #fff; }
.site-foot .blurb, .site-foot .foot-legal p, .site-foot .foot-bottom, .site-foot .foot-facts dt { color: #93A1B5; }
.site-foot .foot-grid a, .site-foot .foot-legal a { color: #D5DCE8; }
.site-foot .foot-grid a:hover, .site-foot .foot-legal a:hover { color: #fff; }
.site-foot .foot-grid h4, .site-foot .foot-grid .foot-h { color: #8FA6FF; }
.site-foot .foot-facts dd, .site-foot strong { color: #E8EDF6; }
.site-foot .foot-legal { border-top-color: rgba(255, 255, 255, 0.1); }

/* ── Home (.ed-*) ──────────────────────────────────────────────────────── */
.ed-hero { padding: 96px 0 88px; position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.ed-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 72px; align-items: end; position: relative; }
.ed-hero h1 { margin: 6px 0 26px; max-width: 13.5em; }
.ed-hero h1 em { font-style: italic; color: var(--cobalt); }
.ed-hero .lead { max-width: 600px; margin-bottom: 14px; }
.ed-hero .hero-ctas { margin-top: 34px; }
.ed-mark { position: absolute; right: -60px; top: -40px; width: 520px; height: 520px; color: var(--ink); opacity: 0.035; pointer-events: none; }
.ed-mark rect:last-child { fill: currentColor; }
@media (max-width: 960px) {
  .ed-hero { padding: 64px 0 56px; }
  .ed-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ed-mark { width: 320px; height: 320px; right: -80px; }
}

.ed-facts { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 8px 26px; margin: 0; }
.ed-facts-title { font: 600 11px/1 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 18px 0 6px; }
.ed-facts > div { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 16px 0; border-top: 1px solid var(--hair); }
.ed-facts-title + div { border-top: none; }
.ed-facts dt { font-size: 12.5px; color: var(--muted); }
.ed-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); line-height: 1.3; }
.ed-facts .pms-sub { display: block; font-family: var(--font-ui); font-size: 13px; color: var(--muted); margin-top: 3px; }

.ed-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ed-principles > div { padding: 30px 32px 6px 0; }
.ed-principles > div + div { padding-left: 32px; border-left: 1px solid var(--hair); }
.ed-num { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--cobalt); display: block; margin-bottom: 14px; }
.ed-principles h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 10px; }
.ed-principles p { font-size: 15.5px; margin: 0; }
@media (max-width: 860px) {
  .ed-principles { grid-template-columns: 1fr; }
  .ed-principles > div, .ed-principles > div + div { padding: 26px 0 18px; border-left: none; border-top: 1px solid var(--hair); }
  .ed-principles > div:first-child { border-top: none; }
}

.ed-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.ed-split .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
@media (max-width: 900px) { .ed-split { grid-template-columns: 1fr; gap: 36px; } .ed-split .sec-head { position: static; } }

.ed-steps { list-style: none; margin: 0; padding: 0; counter-reset: ed; }
.ed-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 20px; padding: 26px 0; border-top: 1px solid var(--hair); margin: 0; }
.ed-steps li:last-child { border-bottom: 1px solid var(--hair); }
.ed-steps li::before { counter-increment: ed; content: counter(ed, decimal-leading-zero); font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--cobalt); }
.ed-steps h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.ed-steps p { margin: 0; font-size: 15.5px; }

.ed-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.ed-checks li { padding: 22px 0 20px; border-top: 1px solid var(--hair); margin: 0; }
.ed-checks h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; }
.ed-checks h3::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--cobalt); flex: none; transform: translateY(-2px); }
.ed-checks p { font-size: 15px; margin: 0; }
@media (max-width: 700px) { .ed-checks { grid-template-columns: 1fr; } }

.ed-strategies { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ed-strategy { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; color: var(--ink); transition: border-color .15s, transform .15s; }
.ed-strategy:hover { text-decoration: none; border-color: var(--cobalt); transform: translateY(-2px); }
.ed-strategy .ed-risk { font: 600 11px/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ed-strategy h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 4px 0 0; }
.ed-strategy p { font-size: 15px; margin: 0; }
.ed-strategy dl { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.ed-strategy dt { color: var(--muted); }
.ed-strategy dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.ed-strategy .more { margin-top: auto; padding-top: 12px; color: var(--cobalt); font-weight: 600; font-size: 14.5px; }

/* Strategy sub-bifurcation tabs & BlackBox styling */
.ed-strategy-tabs-wrap { margin-bottom: 26px; }
.ed-strategy-tabs { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--bg-soft); padding: 5px; border-radius: 999px; border: 1px solid var(--hair); }
.ed-strategy-tab-btn { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; padding: 8px 18px; border-radius: 999px; font: 500 13.5px/1 var(--font-ui); color: var(--muted); cursor: pointer; transition: all .15s ease; text-decoration: none; }
.ed-strategy-tab-btn:hover { color: var(--ink); }
.ed-strategy-tab-btn.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.1); }
.ed-strategy-tab-btn .tab-count { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); font-weight: 600; font-family: var(--font-mono); }
.ed-strategy-tab-btn.active .tab-count { background: color-mix(in srgb, var(--cobalt) 12%, transparent); color: var(--cobalt); }

.ed-strategy-badges { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge-blackbox { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font: 700 10px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; background: #0F172A; color: #9DB4FF; border: 1px solid rgba(110, 141, 247, 0.35); }
.badge-blackbox svg { width: 11px; height: 11px; fill: currentColor; }
.badge-core { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 4px; font: 600 10px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--hair); }

.ed-strategy[data-category="blackbox"] {
  border: 1px solid color-mix(in srgb, var(--cobalt) 35%, var(--hair));
  background: linear-gradient(180deg, color-mix(in srgb, var(--cobalt) 2.5%, var(--card)) 0%, var(--card) 100%);
  position: relative;
}
.ed-strategy[data-category="blackbox"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cobalt) 50%, transparent 100%);
  opacity: 0.6;
}
.ed-strategy[data-category="blackbox"]:hover {
  border-color: var(--cobalt);
  box-shadow: 0 12px 32px -12px rgba(38, 80, 232, 0.2);
}
.ed-strategy[data-category="blackbox"] .ed-strategy-confidential {
  font: 500 12px/1.4 var(--font-ui);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.ed-strategy.is-hidden { display: none !important; }

/* Real strategy performance KPI styling */
.ed-strategy-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--hair);
  border-radius: 8px;
}
.ed-strategy-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ed-strategy-metric .metric-label {
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-strategy-metric .metric-val {
  font: 700 13.5px/1.2 var(--font-mono);
  color: var(--ink);
}
.ed-strategy-metric .metric-val.text-accent {
  color: var(--cobalt);
}
.ed-strategy-metric .metric-val.text-danger {
  color: #dc2626;
}

/* Detail page KPI bar */
.pms-kpi-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05);
}
.pms-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
  border-right: 1px solid var(--hair);
}
.pms-kpi-item:last-child {
  padding-right: 0;
  border-right: none;
}
.pms-kpi-lbl {
  font: 600 11px/1.3 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pms-kpi-num {
  font: 700 1.6rem/1.2 var(--font-mono);
  color: var(--ink);
  margin: 2px 0;
}
.pms-kpi-accent {
  color: var(--cobalt);
}
.pms-kpi-danger {
  color: #dc2626;
}
.pms-kpi-sub {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pms-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .pms-kpi-item:nth-child(2) {
    border-right: none;
  }
}
@media (max-width: 600px) {
  .pms-kpi-bar {
    grid-template-columns: 1fr;
  }
  .pms-kpi-item {
    border-right: none;
    border-bottom: 1px solid var(--hair);
    padding-bottom: 12px;
  }
  .pms-kpi-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.blackbox-category-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cobalt) 6%, var(--card));
  border: 1px solid color-mix(in srgb, var(--cobalt) 24%, var(--hair));
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.blackbox-category-callout strong { color: var(--ink); font-weight: 600; }
.blackbox-category-callout svg { flex-shrink: 0; margin-top: 2px; color: var(--cobalt); width: 18px; height: 18px; }

.blackbox-disclosure-card {
  background: color-mix(in srgb, var(--cobalt) 5%, var(--card));
  border: 1px solid color-mix(in srgb, var(--cobalt) 28%, var(--hair));
  border-left: 4px solid var(--cobalt);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.blackbox-disclosure-head { display: flex; gap: 14px; align-items: flex-start; }
.blackbox-disclosure-head svg { flex-shrink: 0; margin-top: 2px; color: var(--cobalt); width: 22px; height: 22px; }
.blackbox-disclosure-head h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.blackbox-disclosure-head p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.ed-audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--card); }
.ed-audiences a { display: flex; flex-direction: column; gap: 8px; padding: 28px 26px; color: var(--ink); border-left: 1px solid var(--hair); transition: background .15s; }
.ed-audiences a:first-child { border-left: none; }
.ed-audiences a:hover { background: var(--bg-tint); text-decoration: none; }
.ed-audiences h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 0; }
.ed-audiences p { font-size: 14.5px; margin: 0; }
.ed-audiences span { margin-top: auto; padding-top: 10px; color: var(--cobalt); font-weight: 600; font-size: 14px; }
@media (max-width: 1000px) {
  .ed-audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-audiences a:nth-child(3) { border-left: none; }
  .ed-audiences a:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) {
  .ed-audiences { grid-template-columns: 1fr; }
  .ed-audiences a { border-left: none; }
  .ed-audiences a + a { border-top: 1px solid var(--hair); }
}

.ed-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.ed-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.35; color: var(--ink); letter-spacing: -0.012em; }
.ed-quote p { margin: 22px auto 0; color: var(--muted); font-size: 15px; max-width: 620px; }

.ed-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ed-insights a { display: block; padding: 22px 0; border-top: 1px solid var(--ink); color: var(--ink); }
.ed-insights a:hover { text-decoration: none; }
.ed-insights a:hover h3 { color: var(--cobalt); }
.ed-insights time { font-size: 13px; color: var(--muted); }
.ed-insights h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 8px 0; transition: color .15s; }
.ed-insights p { font-size: 15px; margin: 0; }
@media (max-width: 860px) { .ed-insights { grid-template-columns: 1fr; } }

.ed-link { font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; margin-top: 30px; }

/* Gentle reveal on scroll: only when JS runs and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .ed-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .js .ed-reveal.is-in { opacity: 1; transform: none; }
}
/* Header width: the PMS nav needs more room than the 1160px text column. */
.site-head .wrap { max-width: 1320px; }
.head-cta { gap: 8px; }
@media (min-width: 1121px) and (max-width: 1280px) {
  .head-row { gap: 16px; }
  .nav a { padding: 8px 8px; font-size: 13.5px; }
  .head-cta .btn-sm { padding: 9px 12px; font-size: 13.5px; }
}
/* Deep-ink blocks keep an edge when the page itself is dark. */
.cta-band { border: 1px solid rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .site-foot { border-top: 1px solid rgba(255, 255, 255, 0.08); background: #000000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-foot { border-top: 1px solid rgba(255, 255, 255, 0.08); background: #000000; } }
:root[data-theme="dark"] .cta-band { background: #07090E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: #07090E; } }
/* The open mobile menu kept only vertical padding and lost the page gutter. */
@media (max-width: 1120px) {
  .head-row:has(.pms-nav-toggle:checked) { padding: 14px 24px; }
}
@media (max-width: 600px) {
  .head-row:has(.pms-nav-toggle:checked) { padding: 14px 16px; }
}

/* ── "PMS, explained" slideshow (home) ─────────────────────────────────── */
.ed-slider { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.ed-slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 8px; border-bottom: 1px solid var(--hair); }
.ed-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ed-dots::-webkit-scrollbar { display: none; }
.ed-dots li { margin: 0; }
.ed-dots button {
  font: 500 13.5px/1 var(--font-ui); color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 6px; white-space: nowrap; position: relative;
}
.ed-dots button:hover { color: var(--ink); background: var(--bg-soft); }
.ed-dots button[aria-current="true"] { color: var(--ink); font-weight: 600; }
.ed-dots button[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--cobalt); }
.ed-slider-ctrls { display: flex; gap: 6px; flex: none; }
.ed-ctrl { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ed-ctrl:hover { border-color: var(--ink); }
.ed-ctrl svg { width: 18px; height: 18px; }
.ed-ctrl[data-pause] svg { fill: currentColor; }
.ed-ctrl[data-pause][aria-pressed="true"] svg { fill: none; }

.ed-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
  contain: paint; /* keep off-screen slides out of the page's scroll width */
}
.ed-track::-webkit-scrollbar { display: none; }
.ed-track:focus-visible { outline: 2px solid var(--cobalt); outline-offset: -2px; border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .ed-track { scroll-behavior: auto; } }
.ed-slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 56px; align-items: start;
  padding: 48px 52px 52px; min-height: 440px;
}
.ed-slide-no { display: block; font: 600 12px/1 var(--font-ui); letter-spacing: 0.14em; color: var(--cobalt); margin-bottom: 18px; }
.ed-slide h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 16px; }
.ed-slide-copy p { font-size: 16px; }
.ed-slide-copy .btn { margin-top: 10px; }
.ed-slide-copy .ed-link { margin-top: 8px; }

.ed-slide-facts { margin: 0; border-top: 1px solid var(--ink); }
.ed-slide-facts > div { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.ed-slide-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ed-slide-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; color: var(--ink); }

.ed-slide-list, .ed-slide-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ed-slide-list li, .ed-slide-steps li { margin: 0; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--hair); font-size: 15.5px; position: relative; }
.ed-slide-list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 7px; height: 7px; border-radius: 1px; background: var(--cobalt); }
.ed-slide-steps { counter-reset: st; }
.ed-slide-steps li { padding-left: 40px; }
.ed-slide-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--cobalt); color: var(--cobalt); font: 600 13px/24px var(--font-ui); text-align: center; }
.ed-slide-list b, .ed-slide-steps b { color: var(--ink); font-weight: 600; }
.ed-slide-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: -24px 0 0; }

.ed-compare { border-top: 1px solid var(--ink); font-size: 14.5px; }
.ed-compare-row { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.ed-compare-row > span:first-child { color: var(--muted); }
.ed-compare-row > span:last-child { color: var(--ink); font-weight: 500; }
.ed-compare-head > span { font: 600 11.5px/1.3 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted) !important; }
.ed-compare-head > span:last-child { color: var(--cobalt) !important; }

.ed-slider-disclaimer { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

@media (max-width: 900px) {
  .ed-slide { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px 36px; min-height: 0; }
  .ed-slide-note { margin: 0; }
}
@media (max-width: 560px) {
  .ed-slider-bar { flex-direction: column-reverse; align-items: stretch; padding: 10px 10px 8px; gap: 8px; }
  .ed-slider-ctrls { justify-content: flex-end; }
  .ed-slide { padding: 26px 18px 30px; }
  .ed-compare-row { grid-template-columns: 1fr 1fr; gap: 4px 14px; }
  .ed-compare-row > span:first-child { grid-column: 1 / -1; font-weight: 600; color: var(--ink); }
  .ed-compare-head > span:first-child { display: none; }
}
.ed-ctrl[hidden] { display: none; }
@media (min-width: 901px) { .ed-slide { align-content: center; } }

/* ── Backgrounds & colour (2026-10) ─────────────────────────────────────
   Resolution-independent: CSS gradients, vector contour art and an SVG
   noise grain, so every surface stays crisp on 4K / Retina screens at a
   few KB, with no raster images to download. */
:root {
  --glow-cobalt: rgba(38, 80, 232, 0.13);
  --glow-warm: rgba(214, 170, 92, 0.12);
  --grain-opacity: 0.05;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] { --glow-cobalt: rgba(110, 141, 247, 0.16); --glow-warm: rgba(214, 170, 92, 0.06); --grain-opacity: 0.09; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glow-cobalt: rgba(110, 141, 247, 0.16); --glow-warm: rgba(214, 170, 92, 0.06); --grain-opacity: 0.09; }
}

/* Grain layer helper: sits above the background, below the content. */
.ed-hero, .sec-soft, .cta-band, .site-foot { position: relative; isolation: isolate; }
.sec-soft::after, .cta-band::after, .site-foot::after, .ed-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 220px 220px; opacity: var(--grain-opacity);
}
.cta-band::after, .site-foot::after { opacity: 0.08; border-radius: inherit; }

/* Hero: two soft glows + contour lines fading out toward the copy. */
.ed-hero {
  background:
    radial-gradient(900px 520px at 88% 8%, var(--glow-cobalt), transparent 70%),
    radial-gradient(760px 480px at 4% 100%, var(--glow-warm), transparent 70%),
    var(--bg);
}
.ed-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/contours.8c9fd92c48d7.svg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(75% 85% at 85% 40%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
          mask-image: radial-gradient(75% 85% at 85% 40%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
  opacity: 0.85;
}
:root[data-theme="dark"] .ed-hero::before { background-image: url("img/contours-light.58f4f1a5a782.svg"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ed-hero::before { background-image: url("img/contours-light.58f4f1a5a782.svg"); } }
.ed-hero .ed-mark { z-index: -1; }
.ed-facts { background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--hair), 0 24px 60px -36px rgba(15, 23, 42, 0.35); }

/* Tinted sections: warm paper with a faint cobalt wash at the top edge. */
.sec-soft {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cobalt) 3%, transparent), transparent 220px),
    var(--paper);
}

/* Deep-ink blocks: cobalt aurora + contour lines. */
.cta-band {
  background:
    radial-gradient(600px 320px at 92% 0%, rgba(38, 80, 232, 0.55), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(110, 141, 247, 0.18), transparent 70%),
    url("img/contours-light.58f4f1a5a782.svg") center / cover no-repeat,
    var(--ink-deep);
  overflow: hidden;
}
:root[data-theme="dark"] .cta-band { background:
    radial-gradient(600px 320px at 92% 0%, rgba(38, 80, 232, 0.5), transparent 70%),
    url("img/contours-light.58f4f1a5a782.svg") center / cover no-repeat, #16213A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background:
    radial-gradient(600px 320px at 92% 0%, rgba(38, 80, 232, 0.5), transparent 70%),
    url("img/contours-light.58f4f1a5a782.svg") center / cover no-repeat, #16213A; } }
.site-foot {
  background:
    radial-gradient(1100px 380px at 85% 0%, rgba(38, 80, 232, 0.16), transparent 70%),
    var(--ink-deep);
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 166, 255, 0.55) 30%, rgba(143, 166, 255, 0.55) 70%, transparent);
}
:root[data-theme="dark"] .site-foot { background: radial-gradient(1100px 380px at 85% 0%, rgba(38, 80, 232, 0.14), transparent 70%), #000000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-foot { background: radial-gradient(1100px 380px at 85% 0%, rgba(38, 80, 232, 0.14), transparent 70%), #000000; } }

/* Subpage headers share the hero treatment, quieter. */
.page-head { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(700px 360px at 90% 0%, var(--glow-cobalt), transparent 70%), var(--paper) !important; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/contours.8c9fd92c48d7.svg") right center / cover no-repeat; opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
}
:root[data-theme="dark"] .page-head::before { background-image: url("img/contours-light.58f4f1a5a782.svg"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head::before { background-image: url("img/contours-light.58f4f1a5a782.svg"); } }

/* Cards lift onto the textured sections. */
.sec-soft .ed-strategy, .sec-soft .ed-audiences, .sec-soft .ed-slider { box-shadow: 0 1px 0 var(--hair), 0 20px 50px -38px rgba(15, 23, 42, 0.4); }

/* Selection + focus in brand colour. */
::selection { background: rgba(38, 80, 232, 0.18); color: inherit; }
.ed-facts > .ed-facts-title { border-top: none; padding-bottom: 6px; }

/* ── Strategy pages ──────────────────────────────────────────────────── */
.ed-strategies-lg { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.ed-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.ed-detail-side { position: sticky; top: 104px; display: grid; gap: 16px; }
.ed-side-actions { display: grid; gap: 10px; }
.ed-side-actions .btn { width: 100%; white-space: normal; text-align: center; }
.ed-block { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--hair); }
.ed-block:last-child { border-bottom: none; margin-bottom: 0; }
.ed-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.ed-prose p { font-size: 16.5px; line-height: 1.7; max-width: 680px; }
.ed-block .ed-link { margin-top: 4px; }
.ed-perf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 20px; }
.ed-perf .tbl { background: var(--card); }
.ed-notice { max-width: 760px; background: var(--card); border: 1px solid var(--hair); border-left: 3px solid var(--cobalt); border-radius: 10px; padding: 22px 26px; }
.ed-notice p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .ed-detail { grid-template-columns: 1fr; gap: 36px; }
  .ed-detail-side { position: static; }
  .ed-perf { grid-template-columns: 1fr; }
}

/* ── Fees ────────────────────────────────────────────────────────────── */
.ed-fee-list { border-top: 1px solid var(--ink); }
.ed-fee-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.ed-fee-row a { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.ed-fee-row a:hover { color: var(--cobalt); text-decoration: none; }
.ed-fee-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ed-fee-text { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
.ed-fee-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin: 32px 0 0; }
.ed-fee-facts > div { padding: 16px 0; border-top: 1px solid var(--hair); }
.ed-fee-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ed-fee-facts dd { margin: 0; color: var(--ink); font-size: 15.5px; }
.ed-h3 { font-size: 1.15rem; margin-bottom: 10px; }
.ed-example { background: var(--card); }
.ed-example td, .ed-example th { font-variant-numeric: tabular-nums; vertical-align: top; }
.ed-example td:nth-child(2), .ed-example td:nth-child(3), .ed-example td:nth-child(4), .ed-example td:nth-child(5) { white-space: nowrap; }
.ed-example td:last-child { color: var(--ink-2); min-width: 280px; }
@media (max-width: 700px) { .ed-fee-row { grid-template-columns: 1fr; gap: 8px; } }

/* ── Downloads ───────────────────────────────────────────────────────── */
.ed-doc-group { padding: 0 0 40px; }
.ed-doc-group h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
.ed-docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ed-docs li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); margin: 0; }
.ed-docs li > a:first-child { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; }
.ed-docs li > a:first-child:hover { color: var(--cobalt); text-decoration: none; }
.ed-docs svg { width: 20px; height: 20px; color: var(--cobalt); flex: none; }
.ed-doc-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ed-doc-dl { font-size: 14px; font-weight: 600; }
.ed-audiences-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .ed-docs li { grid-template-columns: 1fr auto; }
  .ed-doc-meta { grid-column: 1 / -1; grid-row: 2; white-space: normal; padding-left: 32px; }
  .ed-audiences-3 { grid-template-columns: 1fr; }
  .ed-audiences-3 a { border-left: none; }
  .ed-audiences-3 a + a { border-top: 1px solid var(--hair); }
}

/* ── Insights ────────────────────────────────────────────────────────── */
.ed-featured { display: block; padding: 40px 44px; margin-bottom: 48px; border-radius: 14px; color: var(--ink);
  background: radial-gradient(600px 300px at 100% 0%, var(--glow-cobalt), transparent 70%), var(--paper); border: 1px solid var(--hair); }
.ed-featured:hover { text-decoration: none; border-color: var(--cobalt); }
.ed-featured-meta { font-size: 13px; color: var(--muted); }
.ed-featured h2 { margin: 12px 0 12px; max-width: 22em; }
.ed-featured p { font-size: 17px; max-width: 680px; }
.ed-featured .more { color: var(--cobalt); font-weight: 600; }
.ed-insights-list { row-gap: 8px; }
.ed-byline { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.prose p, .prose li { font-size: 17px; line-height: 1.75; }
.prose .lead { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 600px) { .ed-featured { padding: 28px 22px; } }
.ed-compare-2 .ed-compare-row { grid-template-columns: 0.8fr 1.1fr 1.1fr; }
.ed-compare-2 .ed-compare-row > span:last-child { color: var(--ink-2); font-weight: 400; }
.ed-compare-2 .ed-compare-head > span { color: var(--cobalt) !important; }
@media (max-width: 560px) { .ed-compare-2 .ed-compare-row { grid-template-columns: 1fr 1fr; } }
.faq h2.faq-cat { font: 600 12px/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); margin: 40px 0 6px; scroll-margin-top: 100px; }
.faq h2.faq-cat:first-child { margin-top: 0; }
.faq summary { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

/* ── Team ────────────────────────────────────────────────────────────── */
.ed-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.ed-member { border-top: 1px solid var(--ink); padding-top: 24px; }
.ed-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-tint); color: var(--cobalt); font-family: var(--font-display); font-size: 1.8rem; filter: grayscale(0.15); }
.ed-member h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin: 18px 0 4px; }
.ed-member-role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); font-weight: 600; margin-bottom: 12px; }
.ed-member-bio p { font-size: 15px; }
.ed-example th { white-space: nowrap; }

/* Live waves (site.js): the canvas replaces the static contour art. */
.ed-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ed-hero.waves-live::before, .page-head.waves-live::before { background-image: none !important; }
.ed-hero .ed-waves {
  -webkit-mask-image: radial-gradient(75% 85% at 85% 40%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
          mask-image: radial-gradient(75% 85% at 85% 40%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
  opacity: 0.85;
}
.page-head .ed-waves {
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  opacity: 0.5;
}

/* ── Research desk ───────────────────────────────────────────────────── */
.ed-research-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--card); }
.ed-research-card { padding: 26px 26px 24px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.ed-research-card:first-child { border-left: none; }
.ed-research-k { font: 600 11px/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ed-research-v { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; color: var(--ink); }
.ed-research-v span { color: var(--muted); }
.ed-research-card p { font-size: 14.5px; margin: 0; }
.ed-research-asof { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.ed-regime { background: radial-gradient(420px 220px at 100% 0%, var(--glow-cobalt), transparent 70%), var(--card); }
.ed-regime-stressed .ed-research-v { color: var(--neg); }
.ed-regime-stock_pickers .ed-research-v { color: var(--pos); }
@media (max-width: 1000px) { .ed-research-top { grid-template-columns: 1fr 1fr; } .ed-research-card:nth-child(3) { border-left: none; } .ed-research-card:nth-child(n+3) { border-top: 1px solid var(--hair); } }
@media (max-width: 560px) { .ed-research-top { grid-template-columns: 1fr; } .ed-research-card { border-left: none; } .ed-research-card + .ed-research-card { border-top: 1px solid var(--hair); } }

.ed-spark { margin: 28px 0 0; padding: 22px 24px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); }
.ed-spark figcaption { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.ed-spark figcaption b { color: var(--ink); font-weight: 600; }
.ed-spark svg { width: 100%; height: 140px; display: block; }
.ed-spark-line { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linejoin: round; }
.ed-spark-mid { stroke: var(--hair); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ed-spark-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.ed-spark-axis span:nth-child(2) { opacity: 0.8; }

.ed-sectors { border-top: 1px solid var(--ink); }
.ed-sector-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 110px 70px; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.ed-sector-row > span:first-child { color: var(--ink); font-weight: 500; }
.ed-sector-row > span:nth-child(3), .ed-sector-row > span:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ed-sector-head > span { font: 600 11px/1.3 var(--font-ui) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted) !important; }
.ed-bar-cell { display: flex; align-items: center; gap: 12px; }
.ed-bar { flex: 1; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.ed-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6E8DF7, #2650E8); }
.ed-bar-cell b { width: 30px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .ed-sector-row { grid-template-columns: 1fr 64px; } .ed-sector-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .ed-sector-row > span:nth-child(4) { display: none; } .ed-sector-head > span:nth-child(2) { display: none; } }

/* ── Booking + WhatsApp ──────────────────────────────────────────────── */
.ed-booking { border: 1px solid var(--hair); border-radius: 12px; padding: 18px 20px 4px; margin: 4px 0 18px; background: color-mix(in srgb, var(--cobalt) 3%, transparent); }
.ed-booking legend { font-weight: 600; color: var(--ink); padding: 0 6px; margin-left: -6px; }
.ed-booking legend span { color: var(--muted); font-weight: 400; }
.ed-booking-row { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .ed-booking-row { grid-template-columns: 1fr; } }
.field input[type=date] { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
.field input[type=date]:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 18%, transparent); }
.ed-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 13px;
  border-radius: 999px; background: #1F8F4E; color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.ed-wa:hover { background: #187A41; color: #fff; text-decoration: none; }
.ed-wa svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .ed-wa span { display: none; } .ed-wa { padding: 13px; right: 14px; bottom: 14px; } }
@media print { .ed-wa { display: none; } }
.ed-booking .field label span { display: none; }

/* ── Performance showcase ────────────────────────────────────────────── */
.ed-perf-list { display: grid; gap: 20px; }
.ed-perf-card { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 28px 30px; }
.ed-perf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.ed-perf-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; margin: 6px 0 0; }
.ed-perf-head h3 a { color: var(--ink); }
.ed-perf-head .ed-risk { font: 600 11px/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ed-perf-meta { font-size: 13px; color: var(--muted); }
.ed-perf-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 20px; }
.ed-perf-figs { margin: 0; display: grid; gap: 18px; }
.ed-perf-figs dt { font-size: 13px; color: var(--muted); }
.ed-perf-figs dd { margin: 2px 0; font-family: var(--font-display); font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ed-perf-figs span { font-size: 13.5px; color: var(--ink-2); }
.ed-perf-pending { display: flex; gap: 12px; align-items: flex-start; padding-top: 18px; }
.ed-perf-pending p { margin: 0; font-size: 15px; }
.ed-perf-dot { width: 10px; height: 10px; border-radius: 50%; background: #D98E04; margin-top: 7px; flex: none; box-shadow: 0 0 0 4px rgba(217, 142, 4, 0.15); }
@media (max-width: 760px) { .ed-perf-body { grid-template-columns: 1fr; } }

/* ── Footer newsletter ───────────────────────────────────────────────── */
.ed-subscribe { margin-top: 22px; max-width: 360px; }
.ed-subscribe > label:first-of-type { display: block; font-size: 13px; font-weight: 600; color: #E8EDF6; margin-bottom: 8px; }
.ed-subscribe-row { display: flex; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.ed-subscribe-row input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 10px 12px; font: inherit; font-size: 14px; }
.ed-subscribe-row input::placeholder { color: #7F8DA3; }
.ed-subscribe-row input:focus { outline: none; }
.ed-subscribe-row:focus-within { border-color: #8FA6FF; }
.ed-subscribe-row button { border: 0; background: #2650E8; color: #fff; font-weight: 600; font-size: 13.5px; padding: 0 14px; cursor: pointer; }
.ed-subscribe-row button:hover { background: #1D3FC2; }
.ed-subscribe-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 12px; color: #93A1B5; }
.ed-subscribe-consent input { margin-top: 2px; accent-color: #2650E8; }

/* ── Client portal preview (CSS-only tabs) ───────────────────────────── */
.ed-portal { position: relative; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.45); }
.ed-portal > input { position: absolute; opacity: 0; pointer-events: none; }
.ed-portal-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--hair); }
.ed-portal-dots { display: flex; gap: 6px; } .ed-portal-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.ed-portal-url { font: 500 12.5px/1 var(--font-mono); color: var(--muted); }
.ed-sample { margin-left: auto; font: 600 11px/1 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: #9A5B00; background: #FFF4DE; border: 1px solid #F4C77B; padding: 5px 9px; border-radius: 999px; }
.ed-portal-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.ed-portal-tabs label { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.ed-portal-tabs label:hover { color: var(--ink); }
.ed-portal-pane { display: none; padding: 26px 28px 22px; }
#pt-1:checked ~ .ed-portal-tabs label[for="pt-1"], #pt-2:checked ~ .ed-portal-tabs label[for="pt-2"], #pt-3:checked ~ .ed-portal-tabs label[for="pt-3"],
#pt-4:checked ~ .ed-portal-tabs label[for="pt-4"], #pt-5:checked ~ .ed-portal-tabs label[for="pt-5"] { color: var(--ink); border-bottom-color: var(--cobalt); }
#pt-1:checked ~ [data-pane="1"], #pt-2:checked ~ [data-pane="2"], #pt-3:checked ~ [data-pane="3"], #pt-4:checked ~ [data-pane="4"], #pt-5:checked ~ [data-pane="5"] { display: block; }
.ed-portal > input:focus-visible ~ .ed-portal-tabs { outline: 2px solid var(--cobalt); outline-offset: -2px; }
.ed-portal-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hair); border-radius: 10px; }
.ed-portal-kpis div { padding: 16px 18px; border-left: 1px solid var(--hair); } .ed-portal-kpis div:first-child { border-left: none; }
.ed-portal-kpis span { display: block; font-size: 12.5px; color: var(--muted); }
.ed-portal-kpis b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.ed-portal-note { margin: 18px 0; padding: 16px 18px; border-radius: 10px; background: var(--bg-tint); font-size: 14.5px; color: var(--ink-2); }
.ed-portal-note b { color: var(--ink); }
.ed-portal-alloc > span { font-size: 13px; color: var(--muted); }
.ed-alloc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 8px 0 10px; }
.ed-alloc-bar i:nth-child(1) { background: #1D3FC2; } .ed-alloc-bar i:nth-child(2) { background: #2650E8; } .ed-alloc-bar i:nth-child(3) { background: #4A6CF0; }
.ed-alloc-bar i:nth-child(4) { background: #6E8DF7; } .ed-alloc-bar i:nth-child(5) { background: #9DB4FF; } .ed-alloc-bar i:nth-child(6) { background: #C9D5FF; }
.ed-alloc-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); } .ed-alloc-key em { font-style: normal; }
.ed-portal-tbl { font-size: 14px; } .ed-portal-tbl td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-portal-cap { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.ed-portal-req { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.ed-portal-req span { display: block; font-size: 12px; color: var(--muted); } .ed-portal-req b { font-weight: 500; color: var(--ink); }
.ed-req-ok { color: var(--pos) !important; }
.ed-portal-disclaimer { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 760px) {
  .ed-portal-kpis { grid-template-columns: 1fr 1fr; } .ed-portal-kpis div:nth-child(3) { border-left: none; } .ed-portal-kpis div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .ed-portal-pane { padding: 20px 16px; overflow-x: auto; }
}
.ed-portal-tbl tbody th { font: 500 14px/1.4 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--ink); background: none; }

/* ── Service providers strip ─────────────────────────────────────────── */
.ed-providers { padding: 26px 0; border-bottom: 1px solid var(--hair); background: var(--bg); }
.ed-providers .wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.ed-providers-k { font: 600 11px/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; flex: none; }
.ed-providers-list { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.ed-providers-list dt { font-size: 12px; color: var(--muted); }
.ed-providers-list dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }

/* ── Brand illustrations (inline SVG, theme-aware) ───────────────────── */
.ed-illus { width: 100%; max-width: 420px; height: auto; display: block; margin-top: 32px; overflow: visible; }
.ed-illus .ill-dot { fill: color-mix(in srgb, var(--ink) 22%, transparent); }
.ed-illus .ill-bar { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.ed-illus .ill-acc-fill { fill: var(--cobalt); }
.ed-illus .ill-line { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ed-illus .ill-acc-line { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-illus .ill-dash { fill: none; stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.4; stroke-dasharray: 4 4; }
.ed-illus .ill-frame { fill: var(--card); stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1.4; }
.ed-illus .ill-shield { fill: var(--bg-tint); stroke: var(--cobalt); stroke-width: 1.8; stroke-linejoin: round; }
.ed-illus .ill-check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-illus .ill-label { font: 500 11px var(--font-ui); fill: var(--muted); }
.ed-illus .ill-label-strong { font: 600 11.5px var(--font-ui); fill: var(--ink); }
@media (max-width: 900px) { .ed-illus { max-width: 380px; margin: 24px 0 8px; } }
.ed-ico { width: 34px; height: 34px; fill: none; stroke: color-mix(in srgb, var(--ink) 60%, transparent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.ed-ico .acc { stroke: var(--cobalt); stroke-width: 1.8; }
.ed-ico .accf { fill: var(--cobalt); stroke: none; }
.ed-audiences a:hover .ed-ico { stroke: var(--cobalt); }

/* ── Hindi / Gujarati ────────────────────────────────────────────────── */
@font-face { font-family: "Noto Sans Devanagari"; font-weight: 400 700; font-display: swap; src: url("fonts/noto-sans-devanagari.266e3e271d4f.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Gujarati"; font-weight: 400 700; font-display: swap; src: url("fonts/noto-sans-gujarati.f323d9082343.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+25CC, U+A830-A839; }
@font-face { font-family: "Noto Serif Devanagari"; font-weight: 400 600; font-display: swap; src: url("fonts/noto-serif-devanagari.56635e0577eb.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Serif Gujarati"; font-weight: 400 600; font-display: swap; src: url("fonts/noto-serif-gujarati.e333cd200f8e.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+25CC, U+A830-A839; }
:root { --font-ui: "Inter", "Noto Sans Devanagari", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        --font-display: "Source Serif 4", "Noto Serif Devanagari", "Noto Serif Gujarati", "Iowan Old Style", Georgia, serif; }
html[lang^="hi"] body, html[lang^="gu"] body { line-height: 1.75; }
html[lang^="hi"] h1, html[lang^="gu"] h1 { line-height: 1.25; letter-spacing: 0; }
html[lang^="hi"] h2, html[lang^="gu"] h2, html[lang^="hi"] h3, html[lang^="gu"] h3 { line-height: 1.35; letter-spacing: 0; }
html[lang^="hi"] .eyebrow, html[lang^="gu"] .eyebrow { letter-spacing: 0.04em; text-transform: none; }
.ed-lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.ed-lang a { padding: 7px 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1; }
.ed-lang a + a { border-left: 1px solid var(--line-strong); }
.ed-lang a:hover { color: var(--ink); text-decoration: none; background: var(--bg-soft); }
.ed-lang a[aria-current="true"] { color: var(--bg); background: var(--ink); }
.ed-lang a { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
@media (min-width: 1121px) and (max-width: 1280px) {
  .nav a { padding: 8px 6px; }
  .ed-lang a { padding: 7px 6px; }
  .head-cta { gap: 6px; }
}

/* ── Research desk: extended blocks ──────────────────────────────────── */
.ed-research-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.ed-research-tools label { font-size: 13.5px; color: var(--muted); }
.ed-research-tools input[type=date] { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.ed-asof-banner { margin: 14px 0 0; display: inline-block; padding: 8px 12px; border-radius: 8px; background: #FFF4DE; color: #7A4B00; font-size: 14px; border: 1px solid #F4C77B; }
.ed-chart { margin: 24px 0 0; padding: 22px 24px 16px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); }
.ed-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ed-chart figcaption b { color: var(--ink); font-weight: 600; }
.ed-chart .ed-spark-svg { width: 100%; height: 130px; display: block; }
.ed-mini .ed-spark-svg { height: 96px; }
.ed-mini-v { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--ink); }
.ed-mini-v.pos, .pos { color: var(--pos); } .ed-mini-v.neg, .neg { color: var(--neg); }
.ed-chart-note { font-size: 14px; margin: -4px 0 8px; color: var(--ink-2); }
.ed-line-pos { stroke: var(--pos) !important; } .ed-line-neg { stroke: var(--neg) !important; } .ed-line-warm { stroke: #D98E04 !important; }
.ed-explain { margin-top: 12px; border-top: 1px dashed var(--hair); padding-top: 10px; }
.ed-explain summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--cobalt); list-style: none; }
.ed-explain summary::-webkit-details-marker { display: none; }
.ed-explain summary::before { content: "+"; display: inline-block; width: 16px; }
.ed-explain[open] summary::before { content: "−"; }
.ed-explain p { font-size: 14.5px; margin: 8px 0 2px; max-width: 760px; }
.ed-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.ed-legend li { margin: 0; display: flex; align-items: center; gap: 6px; } .ed-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ed-legend b { color: var(--ink); font-weight: 600; }
.lg-pos { background: var(--pos); } .lg-neg { background: var(--neg); }

.ed-regime-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.ed-regime-bar i { display: block; height: 100%; }
.rg-stock_pickers { background: #2F9E6A; } .rg-mixed { background: #9DB4FF; } .rg-macro_driven { background: #2650E8; } .rg-stressed { background: #C2412D; }

.ed-segments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ed-segment { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 18px 20px; }
.ed-segment-k { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ed-segment-k b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.ed-segment-k span { font-size: 12.5px; color: var(--muted); }
.ed-segment-bars > div { display: grid; grid-template-columns: 64px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.ed-segment-bars b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.ed-bar-alt i { background: linear-gradient(90deg, #C9D5FF, #6E8DF7) !important; }
@media (max-width: 760px) { .ed-segments { grid-template-columns: 1fr; } }

.ed-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ed-trio .ed-chart, .ed-duo .ed-chart { margin-top: 0; }
.ed-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .ed-trio { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ed-duo { grid-template-columns: 1fr; } }

.ed-rotation { margin-top: 40px; }
.ed-rotation h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 12px; }
.ed-heat-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--card); }
.ed-heat { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ed-heat th, .ed-heat td { padding: 7px 6px; text-align: center; white-space: nowrap; }
.ed-heat thead th { font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--hair); font-size: 11.5px; }
.ed-heat tbody th { text-align: left; font-weight: 500; color: var(--ink); padding-left: 14px; position: sticky; left: 0; background: var(--card); }
.ed-heat td[style] { background: color-mix(in srgb, #2650E8 calc(var(--v) * 0.9%), transparent); color: var(--ink); }
:root[data-theme="dark"] .ed-heat td[style] { background: color-mix(in srgb, #6E8DF7 calc(var(--v) * 0.75%), transparent); }
.ed-heat .ed-heat-chg { font-weight: 600; }

.ed-rebal { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ed-rebal-card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 18px 20px; }
.ed-rebal-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin-bottom: 8px; }
.ed-rebal-card ul { list-style: none; margin: 0; padding: 0; }
.ed-rebal-card li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14px; margin: 0; font-variant-numeric: tabular-nums; }

@media print {
  .site-head, .site-foot, .ed-noprint, .ed-research-tools, .ed-wa, .skip, .ed-waves { display: none !important; }
  body { background: #fff !important; }
  section, .page-head { padding: 18px 0 !important; background: #fff !important; }
  .page-head::before, .page-head::after, .sec-soft::after { display: none !important; }
  .ed-reveal { opacity: 1 !important; transform: none !important; }
  .ed-explain { display: none; }
  .ed-chart, .ed-segment, .ed-rebal-card, .ed-research-top { break-inside: avoid; box-shadow: none !important; }
  .ed-heat td[style] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Interactive research charts (site.js): axes, reference line, crosshair, tooltip. */
.ed-ichart { position: relative; }
.ed-ichart-in { position: relative; }
.ed-ichart-ylabel { font-size: 11.5px; color: var(--muted); margin: 0 0 4px; letter-spacing: 0.01em; }
.ed-ichart-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; border-radius: 6px; }
.ed-ichart-svg:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.ed-ichart .ic-grid line { stroke: var(--hair); stroke-width: 1; }
.ed-ichart .ic-grid line.ic-tick { stroke: var(--muted); opacity: 0.6; }
.ed-ichart .ic-grid text { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ed-ichart .ic-base { stroke: var(--muted); stroke-width: 1; opacity: 0.6; }
.ed-ichart .ic-ref { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.55; }
.ed-ichart-ref { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.ed-ichart-ref i { width: 16px; border-top: 1px dashed var(--ink-2); opacity: 0.7; }
.ed-ichart .ed-spark-line { stroke-width: 1.75; }
.ed-ichart .ic-cross { stroke: var(--ink-2); stroke-width: 1; opacity: 0.5; }
.ed-ichart .ic-dot { stroke: var(--card); stroke-width: 2; }
.ed-ichart-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 120px; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.ed-ichart-tip .ic-date { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ed-ichart-tip .ic-row { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.ed-ichart-tip .ic-row i { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.ed-ichart-tip .ic-row b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
@media print { .ed-ichart-tip, .ed-ichart .ic-cross, .ed-ichart .ic-dot { display: none; } }

/* ── Sign-in pages (.auth-*) ─────────────────────────────────────────────
   Investor portal (/client/login/) and team workspace (/accounts/login/)
   render inside this site's own header and footer, so they share the home
   page's type, tokens, hero and hairline surfaces rather than a separate look. */
.auth-hero { padding: 72px 0 80px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 72px; align-items: start; position: relative; }
.auth-copy h1 { margin: 6px 0 22px; max-width: 12em; }
.auth-copy h1 em { font-style: italic; color: var(--cobalt); }
.auth-copy .lead { max-width: 560px; margin: 0 0 40px; color: var(--ink-2); }
.auth-copy .ed-principles h3 { font-size: 1.22rem; }
.auth-copy .ed-principles p { font-size: 14.5px; color: var(--muted); }
.auth-copy .ed-principles > div { padding-top: 24px; padding-right: 24px; }
.auth-copy .ed-principles > div + div { padding-left: 24px; }

.auth-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 40px 0 0; padding: 0; }
.auth-facts > div { padding: 14px 0; border-top: 1px solid var(--hair); }
.auth-facts dt { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.auth-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); line-height: 1.35; }
.auth-facts .pms-sub { display: block; font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.auth-card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 30px 30px 26px; position: sticky; top: 104px; box-shadow: 0 1px 0 var(--hair), 0 24px 48px -32px rgba(15, 23, 42, 0.35); }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.auth-card-top .ed-facts-title { padding: 0; }
.auth-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pos); }
.auth-lock svg { width: 14px; height: 14px; }
.auth-card h2 { font-size: 1.85rem; margin: 0 0 6px; }
.auth-card .auth-sub { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }

.auth-field { margin-bottom: 16px; }
.auth-field label, .auth-label-row label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-label-row a { font-size: 13px; color: var(--cobalt); }
.auth-input { position: relative; }
.auth-field input {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  font: 15px/1.3 var(--font-ui); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input::placeholder { color: var(--muted); opacity: .7; }
.auth-field input:hover { border-color: var(--muted); }
.auth-field input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 18%, transparent); }
.auth-input input[type="password"], .auth-input input.has-reveal { padding-right: 48px; }
.auth-reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-reveal:hover {
  background: var(--bg-soft);
  color: var(--cobalt);
}
.auth-reveal:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cobalt) 35%, transparent);
}
.auth-reveal:active {
  transform: translateY(-50%) scale(0.9);
}
.auth-reveal-eye {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.auth-reveal-eye .eye-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .28s cubic-bezier(0.34, 1.4, 0.64, 1),
              opacity .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-reveal[aria-pressed="false"] .eye-closed {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.auth-reveal[aria-pressed="false"] .eye-open {
  opacity: 0;
  transform: scale(0.65) rotate(-14deg);
  pointer-events: none;
}
.auth-reveal[aria-pressed="true"] .eye-closed {
  opacity: 0;
  transform: scale(0.65) rotate(14deg);
  pointer-events: none;
}
.auth-reveal[aria-pressed="true"] .eye-open {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.auth-reveal[aria-pressed="true"] {
  color: var(--cobalt);
}
.auth-reveal[aria-pressed="true"] .eye-open circle {
  animation: eyePupilPop .28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: 12px 12px;
}
@keyframes eyePupilPop {
  0% { transform: scale(0.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-reveal-eye .eye-icon { transition: opacity .1s linear !important; transform: none !important; }
  .auth-reveal[aria-pressed="true"] .eye-open circle { animation: none !important; }
}
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }

.auth-note { margin: 0 0 18px; padding: 11px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.auth-note-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.auth-note-err { background: color-mix(in srgb, var(--neg) 8%, transparent); border-color: color-mix(in srgb, var(--neg) 35%, transparent); color: var(--neg); }

.auth-assure { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 9px; }
.auth-assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.auth-assure svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--cobalt); }
.auth-help { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.auth-help p { margin: 0 0 6px; }
.auth-help a { color: var(--cobalt); font-weight: 600; }
.auth-legal { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 14px 0 0; }

@media (max-width: 960px) {
  .auth-hero { padding: 40px 0 56px; }
  .auth-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth-card { order: -1; position: static; padding: 24px 20px 22px; }
}
@media (max-width: 600px) {
  .auth-facts { grid-template-columns: 1fr; }
}

/* =========================================================================
   4K ULTRA-HD & ULTRAWIDE MONITOR OPTIMIZATIONS (2560px & 3840px+)
   ========================================================================= */
@media (min-width: 2000px) {
  html, body {
    text-rendering: geometricPrecision;
  }
}

@media (min-width: 2560px) {
  :root {
    --wrap: 1480px;
  }
  .hero-grid {
    gap: 64px;
  }
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
  .g3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .g4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 3840px) {
  :root {
    --wrap: 1840px;
    font-size: 17px;
  }
  .wrap {
    padding: 0 40px;
  }
  .hero-grid {
    gap: 80px;
  }
  .btn {
    padding: 13px 26px;
    font-size: 15px;
  }
}
