/* ==========================================================================
   FINANCIAL ORACLE SPC — financialoracle.com (v2)
   "Eighth Avenue" institutional editorial design system
   ========================================================================== */

:root {
  /* Brand palette — distinct from FO Research (navy) and fo-terminal v1 (cream) */
  --ink:        #0F0F0D;          /* deep near-black */
  --ink-2:      #2A2825;
  --paper:      #F1ECE0;          /* warm aged ivory */
  --paper-2:    #E8E2D2;
  --paper-3:    #DCD4C0;
  --rule:       #C9C0AC;
  --rule-soft:  #D9D2BD;
  --gold:       #8A6F40;          /* aged heritage gold */
  --gold-deep:  #6E5732;
  --gold-soft:  #B59262;
  --slate:      #1F2126;
  --slate-2:    #3A3D44;
  --mute:       #71695C;
  --white:      #FFFFFF;
  --crimson:    #8B2E2A;          /* sparingly used for negative data */
  --emerald:    #2F5D3F;          /* sparingly used for positive data */

  /* Type stack */
  --serif:      "Marcellus", "Cormorant Garamond", Georgia, serif;
  --sans:       "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:       "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --container:  1280px;
  --container-narrow: 920px;
  --gutter:     clamp(1.5rem, 4vw, 4rem);
  --section-y:  clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease:       cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; transition: color 0.18s var(--ease); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 0.96; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.35; font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--serif); }
.serif-italic { font-family: var(--serif); font-style: italic; }
.muted { color: var(--mute); }
.gold { color: var(--gold); }
.gold-deep { color: var(--gold-deep); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

::selection { background: var(--gold); color: var(--paper); }

/* Editorial markers */
.marker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.marker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.chapter {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  display: block;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Drop cap (used on first paragraph of editorial sections) */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 5.2em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em -0.1em 0;
  color: var(--gold);
  font-weight: 400;
  font-style: normal;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); position: relative; }

.rule {
  height: 1px;
  background: var(--rule);
  margin: 0;
  border: 0;
}
.rule-gold {
  height: 1px;
  width: 60px;
  background: var(--gold);
  border: 0;
  margin: 1.25rem 0;
}
.rule-thick {
  height: 2px;
  background: var(--ink);
  border: 0;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 224, 0.92);
  backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.05rem;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.18em;
}
.nav-brand img {
  width: 26px;
  height: 26px;
}
.nav-brand .word {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 540px) {
  .nav-brand .word {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }
  .nav-brand img { width: 22px; height: 22px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--gold);
}
.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--paper) !important;
  letter-spacing: 0.22em !important;
}
.nav-cta:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.5rem var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-meta {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.hero-meta .item {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-meta .item strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 0.6rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; } }

.hero-foot .lede {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-gold {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Stat strip ---- */
.stat-strip {
  border-block: 1px solid var(--rule);
  background: var(--paper-2);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
}
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.stat-item {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}
.stat-item .num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-item .num .unit {
  font-size: 0.55em;
  color: var(--gold-deep);
  vertical-align: 0.6em;
  margin-inline: 0.05em;
  font-style: italic;
}
.stat-item .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.85rem;
}

/* ---- Section heads ---- */
.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 1.5rem; } }
.section-head h2 .it {
  font-style: italic;
  color: var(--gold-deep);
}

/* ---- Editorial split (text + visual) ---- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.split-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.split-img.dark {
  background: var(--ink);
  border-color: var(--ink);
}

/* ---- Pillar grid ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--paper);
  padding: clamp(2rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
}
.pillar .pnum {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.pillar h3 {
  margin-bottom: 1rem;
}
.pillar p {
  color: var(--ink-2);
  line-height: 1.65;
}
.pillar .more {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--rule);
}
.pillar .more:hover { color: var(--ink); }

/* ---- Pull quote ---- */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  position: relative;
}
.pull .quote-mark {
  font-size: 3em;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 1rem;
  font-style: normal;
}

/* ---- PRIVE / venture-style split ---- */
.venture {
  background: var(--ink);
  color: var(--paper);
}
.venture h2 { color: var(--paper); }
.venture h2 .it { color: var(--gold-soft); }
.venture .marker { color: var(--gold-soft); }
.venture .marker::before { background: var(--gold-soft); }
.venture .lead { color: var(--paper-3); }
.venture .btn {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}
.venture .btn:hover { background: var(--gold-soft); color: var(--ink); }
.venture-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}
@media (max-width: 820px) { .venture-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.venture-art {
  aspect-ratio: 4 / 5;
  background: var(--slate);
  border: 1px solid rgba(181, 146, 98, 0.25);
  position: relative;
  overflow: hidden;
}

/* ---- Partners ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-tile {
  background: var(--paper);
  text-align: center;
  padding: 2rem 0.75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
}
.partner-tile:hover { background: var(--paper-2); color: var(--gold-deep); }

/* ---- Multilingual band ---- */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--mute);
}
.langs span.en { color: var(--ink); font-style: normal; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-grid h2 { color: var(--ink); }

/* ---- Page hero (about/technology/etc.) ---- */
.page-hero {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.page-hero h1 .it { font-style: italic; color: var(--gold); }

/* ---- Team / leadership grid ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1rem;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.member {
  background: var(--paper);
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  display: flex; flex-direction: column;
}
.member .pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.member .name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 500;
}
.member .role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.6rem;
}
.member.collective .pic {
  background: var(--ink);
  color: var(--gold-soft);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Timeline ---- */
.timeline {
  display: grid;
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}
.timeline-item {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .timeline-item { grid-template-columns: 1fr; gap: 1rem; } }
.timeline-item .yr {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 0.45rem;
}
.timeline-item h3 {
  margin-bottom: 0.6rem;
}
.timeline-item p {
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---- Offices ---- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 820px) { .offices-grid { grid-template-columns: 1fr; } }
.office {
  background: var(--paper);
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
}
.office .city {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.1rem);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.office .country {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.4rem;
}
.office address {
  font-style: normal;
  color: var(--mute);
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Performance ---- */
.perf-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
@media (max-width: 820px) { .perf-summary { grid-template-columns: repeat(2, 1fr); } }
.perf-stat {
  background: var(--paper);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border-top: 2px solid transparent;
}
.perf-stat .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.perf-stat .val {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--ink);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.perf-stat .sub {
  font-size: 0.78rem;
  color: var(--mute);
  margin-top: 0.65rem;
  letter-spacing: 0.04em;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-feature-settings: "tnum";
  border: 1px solid var(--rule);
}
.perf-table th, .perf-table td {
  padding: 0.85rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid var(--rule-soft);
}
.perf-table th {
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink);
  padding-block: 1.1rem;
}
.perf-table td:first-child, .perf-table th:first-child {
  text-align: left;
  padding-left: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.perf-table td:last-child, .perf-table th:last-child {
  padding-right: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.perf-table tbody tr:hover { background: var(--paper-2); }
.ret-pos { color: var(--emerald); }
.ret-neg { color: var(--crimson); }
.ret-flat { color: var(--mute); }
.perf-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mute);
  margin-top: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  font-style: italic;
}

/* ---- Research band (cross-link to FO Research) ---- */
.research-band {
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid var(--ink);
  position: relative;
}
.research-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.research-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 820px) { .research-grid { grid-template-columns: 1fr; } }
.research-band h2 {
  color: var(--paper);
  font-size: clamp(2rem, 3.6vw, 3rem);
}
.research-band h2 .it { color: var(--gold-soft); font-style: italic; }
.research-band .lead { color: var(--paper-3); }
.research-band .marker { color: var(--gold-soft); }
.research-band .marker::before { background: var(--gold-soft); }
.research-actions {
  text-align: right;
}
@media (max-width: 820px) { .research-actions { text-align: left; } }
.research-link {
  display: inline-block;
  padding: 1rem 1.75rem;
  background: var(--gold-soft);
  color: var(--ink) !important;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--gold-soft);
}
.research-link:hover { background: var(--paper); border-color: var(--paper); }
.research-url {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}

/* ---- Form (contact) ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.18s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 2vw, 2rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .word {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.32em;
  color: var(--ink);
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--gold-deep); }
.disclaimer {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--mute);
  margin-top: 2rem;
  max-width: 90ch;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Reveal animation (premium feel — bigger gesture, refined easing) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   v2.1 Extensions — multi-page components (about, technology, performance,
   resources, contact, legal). Designed to extend, not override, the editorial
   system above.
   ========================================================================== */

/* ---- Data table (governance / NAV / structure) ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.data-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.data-table tbody th,
.data-table tbody td {
  text-align: left;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.data-table tbody th,
.data-table tbody td:first-child {
  width: 38%;
  font-weight: 500;
  color: var(--ink);
  padding-right: 1.5rem;
  font-family: var(--sans);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---- Timeline (about page) ---- */
.timeline {
  display: grid;
  gap: 2.5rem;
  border-left: 1px solid var(--rule);
  padding-left: 2.5rem;
  margin-left: 0.5rem;
}
.tl-item {
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -2.95rem;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper);
}
.tl-item .tl-year {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
}
.tl-item h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}
.tl-item p {
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---- Leadership ---- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.25rem;
}
.leader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.leader:hover { border-color: var(--gold); transform: translateY(-3px); }
.leader-mark {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  margin-bottom: 1rem;
}
.leader h3 {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}
.leader .role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1.5;
  min-height: calc(2 * 1.5em);
  margin-bottom: 0.6rem;
}
.leader-photo {
  width: 110px;
  aspect-ratio: 1 / 1.155;
  background: var(--ink);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  margin-bottom: 1.1rem;
  align-self: flex-start;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Tight-source compensation — for headshots cropped close at source */
.leader-photo--tight img {
  transform: scale(0.78);
  transform-origin: center 30%;
}
.leader .bio {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.leader-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: stretch;
  transition: color 0.15s var(--ease);
}
.leader-linkedin:hover { color: var(--gold); }
.leader-linkedin svg { display: block; }
.leader-team {
  background: rgba(255, 255, 255, 0.30);
  border-style: dashed;
}
.leader-team h3 { color: var(--ink-2); }

/* ---- Resources grid ---- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.resource {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.resource:hover { border-color: var(--gold); transform: translateY(-3px); }
.resource .rnum {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.resource h3 {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}
.resource p {
  color: var(--mute);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.resource .more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}
.resource .more:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Contact form ---- */
.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.18s var(--ease);
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.form-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--mute);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.55;
  margin-top: 0.5rem;
}
.form-note a { color: var(--gold-deep); border-bottom: 1px solid var(--rule); }

/* ---- Legal pages ---- */
.legal { padding-block: 1rem; }
.legal h3 {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.25rem 0 0.85rem;
}
.legal h3:first-of-type { margin-top: 0.5rem; }
.legal p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 70ch;
}
.legal a { color: var(--gold-deep); border-bottom: 1px solid var(--rule); }

/* Mobile */
@media (max-width: 720px) {
  .data-table tbody th,
  .data-table tbody td:first-child { width: 42%; padding-right: 1rem; }
  .timeline { padding-left: 1.5rem; }
  .tl-item::before { left: -1.95rem; }
  .leader { padding: 1.25rem; }
}

/* ==========================================================================
   v2.2 — About / Values reformatted
   Single-column heading + balanced 4-up grid (collapses to 2x2 then 1-up).
   ========================================================================== */
.values-head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.value {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.value:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: var(--white);
}
.value .pnum {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.value h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.value p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   v7 — Release 1: motion & polish
   Sticky header (blur on scroll), card hover lifts, animated link underlines,
   subtle paper-noise texture overlay.
   ========================================================================== */

/* Sticky header with backdrop-blur on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  transition: background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(241, 236, 224, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--rule-soft),
              0 8px 28px -16px rgba(15, 15, 13, 0.12);
}

/* Hover lift + soft shadow on card-like surfaces */
.pillar,
.leader,
.value,
.resource,
.tl-item {
  transition: transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
  will-change: transform;
}
.pillar:hover,
.value:hover,
.resource:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -18px rgba(15, 15, 13, 0.18),
              0 4px 14px -8px rgba(138, 111, 64, 0.14);
  border-color: var(--gold-soft);
}
/* Leader has its own existing hover; layer in the shadow without breaking it */
.leader:hover {
  box-shadow: 0 14px 36px -18px rgba(15, 15, 13, 0.18),
              0 4px 14px -8px rgba(138, 111, 64, 0.14);
}

/* Partner tiles — subtle gold lift */
.partner-tile {
  transition: background-color 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.partner-tile:hover {
  transform: translateY(-2px);
}

/* Stat strip cells — gentle highlight on hover */
.stat-item {
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stat-item:hover {
  transform: translateY(-2px);
}

/* Animated link underline — sweep from left */
a.more,
a.research-link,
.faq-item a,
.lead a,
p > a:not(.btn):not(.nav-cta):not(.partner-tile) {
  position: relative;
  display: inline;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s cubic-bezier(0.65, 0, 0.35, 1),
              color 0.3s var(--ease);
}
a.more:hover,
a.research-link:hover,
.faq-item a:hover,
.lead a:hover,
p > a:not(.btn):not(.nav-cta):not(.partner-tile):hover {
  background-size: 100% 1px;
}

/* Button hover refinements */
.btn,
.btn-gold,
.nav-cta {
  transition: background-color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -10px rgba(138, 111, 64, 0.55);
}

/* Subtle paper-noise overlay — gives the cream surface texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;  /* behind all content, in front of body bg */
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Counter numbers — keep monospace tabular alignment during animation */
.num {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   v7.1 — Release 2: hero geometry, eyebrow animation, CTA gold glow
   ========================================================================== */

/* Hero — concentric hex rings on the right + radial vignette behind title */
.hero {
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* Hex rings — right side, behind title; gentle scale pulse */
.hero::before {
  top: 50%;
  right: -8%;
  width: 720px;
  height: 720px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'><g fill='none' stroke='%238A6F40' stroke-width='0.6'><polygon stroke-opacity='0.04' points='300,40 530,165 530,435 300,560 70,435 70,165'/><polygon stroke-opacity='0.06' points='300,80 500,190 500,410 300,520 100,410 100,190'/><polygon stroke-opacity='0.08' points='300,120 470,215 470,385 300,480 130,385 130,215'/><polygon stroke-opacity='0.10' points='300,160 440,240 440,360 300,440 160,360 160,240'/><polygon stroke-opacity='0.14' points='300,200 410,265 410,335 300,400 190,335 190,265'/><polygon stroke-opacity='0.20' points='300,240 380,287 380,313 300,360 220,313 220,287'/><circle cx='300' cy='300' r='4' fill='%238A6F40' fill-opacity='0.35'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: heroHexPulse 9s ease-in-out infinite;
}
/* Radial cream vignette — focuses attention on title */
.hero::after {
  inset: 0;
  background: radial-gradient(ellipse 65% 80% at 22% 55%,
              rgba(241, 236, 224, 0.92) 0%,
              rgba(241, 236, 224, 0.55) 35%,
              rgba(241, 236, 224, 0) 70%);
}
.hero > .container {
  position: relative;
  z-index: 1;
}
@keyframes heroHexPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.04);
    opacity: 0.85;
  }
}
@media (max-width: 900px) {
  .hero::before { right: -25%; width: 540px; height: 540px; opacity: 0.6; }
  .hero::after  { background: radial-gradient(ellipse 80% 60% at 50% 50%,
                  rgba(241, 236, 224, 0.85) 0%, rgba(241, 236, 224, 0) 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* Section marker — gold rule draws in on reveal */
.marker::before {
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.reveal:not(.in) .marker::before,
.reveal:not(.in).marker::before {
  width: 0;
}
.reveal.in .marker::before,
.reveal.in.marker::before {
  width: 28px;
}
/* Markers that aren't inside .reveal still get the full rule */
:not(.reveal) > .marker::before {
  width: 28px;
}

/* CTA gold-glow + premium lift on hover */
.btn-gold {
  position: relative;
  isolation: isolate;
}
.btn-gold::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(ellipse at center,
              rgba(181, 146, 98, 0.45) 0%,
              rgba(181, 146, 98, 0) 70%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s var(--ease);
  filter: blur(8px);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -12px rgba(138, 111, 64, 0.55),
              0 2px 8px -4px rgba(138, 111, 64, 0.35);
}
.btn-gold:hover::before {
  opacity: 1;
}

/* CTA arrow animates on hover */
.btn .arrow,
.btn-gold .arrow,
.more {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow,
.btn-gold:hover .arrow {
  transform: translateX(4px);
}
.more:hover {
  transform: translateX(2px);
}

/* ==========================================================================
   v7.2 — Release 3: custom visual moments
   Two-books diagram, jurisdictions band, coverage ticker.
   ========================================================================== */

/* ---- Two Books diagram ---- */
.two-books {
  margin: 3.5rem auto 1rem;
  max-width: 1080px;
  position: relative;
}
.two-books svg {
  width: 100%;
  height: auto;
  display: block;
}
.tbd-box {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.2;
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.tbd-aggregate {
  fill: rgba(138, 111, 64, 0.07);
  stroke: var(--gold);
  stroke-width: 1.4;
}
.tbd-markets {
  fill: var(--ink);
  stroke: var(--gold);
  stroke-width: 1;
}
.tbd-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
}
.tbd-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  letter-spacing: 0.18em;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1s;
}
.tbd-label-gold { fill: var(--gold-deep); }
.tbd-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  fill: var(--ink-2);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.15s;
}
.tbd-num {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  fill: var(--gold);
  letter-spacing: 0.22em;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.25s;
}
.tbd-markets-label {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--paper);
  letter-spacing: 0.32em;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.4s;
}
.tbd-arrow-label {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--gold-deep);
  letter-spacing: 0.22em;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1.5s;
}
/* Reveal animations */
.reveal.in .tbd-box {
  opacity: 1;
  transform: translateY(0);
}
.reveal.in .tbd-aggregate { transition-delay: 0ms; }
.reveal.in .tbd-discretionary { transition-delay: 200ms; }
.reveal.in .tbd-algorithmic { transition-delay: 300ms; }
.reveal.in .tbd-markets { transition-delay: 600ms; }
.reveal.in .tbd-line { stroke-dashoffset: 0; }
.reveal.in .tbd-label,
.reveal.in .tbd-sub,
.reveal.in .tbd-num,
.reveal.in .tbd-markets-label,
.reveal.in .tbd-arrow-label { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .tbd-box, .tbd-label, .tbd-sub, .tbd-num,
  .tbd-markets-label, .tbd-arrow-label {
    opacity: 1; transform: none; transition: none;
  }
  .tbd-line { stroke-dashoffset: 0; transition: none; }
}

/* ---- Jurisdictions band ---- */
.jurisdictions {
  margin: 4rem auto;
  max-width: 1000px;
  padding: 2.5rem 1rem 2rem;
  position: relative;
}
.jur-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 2.5rem;
}
.jur-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
}
.jur-track::before {
  content: "";
  position: absolute;
  top: 2.55rem;
  left: 11%;
  right: 11%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--gold) 8%,
    var(--gold) 92%,
    transparent 100%);
  z-index: 0;
}
.jur-stop {
  position: relative;
  text-align: center;
  z-index: 1;
}
.jur-mark {
  width: 36px;
  height: 41.5px;
  margin: 0 auto 1rem;
  background: var(--paper);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  position: relative;
}
.jur-mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}
.jur-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.jur-tz {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .jur-track { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .jur-track::before { display: none; }
}

/* ---- Coverage Ticker ---- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: rgba(232, 226, 210, 0.5);
  padding-block: 1.25rem;
  margin-block: 3rem;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);  /* full bleed */
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerScroll 55s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-right: 3rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.ticker-track span::after {
  content: "·";
  margin-left: 3rem;
  color: var(--gold);
  font-size: 1.4rem;
}
.ticker-track span:last-child::after { content: ""; margin: 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ==========================================================================
   v7.3 — Ultimate Pack + Dark Mode
   Hero char reveal, 3D card tilt, magnetic buttons, scroll progress,
   floating section nav, dark theme palette + toggle.
   ========================================================================== */

/* ---- Hero character-by-character reveal ---- */
.hero-title .char,
.hero-title em {
  display: inline-block;
}
.hero-title .char {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 38ms + 200ms);
}
.hero-title.chars-in .char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Hero lede — word reveal */
.lede .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 38ms + 700ms);
}
.lede.words-in .word {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .char,
  .lede .word { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---- 3D card tilt — sets stacking + transform origin ---- */
.pillar, .leader, .value, .resource, .tl-item {
  transform-style: preserve-3d;
}
.pillar > *, .leader > *, .value > *, .resource > *, .tl-item > * {
  transform: translateZ(20px);
}

/* ---- Magnetic — smooth fallback transition when not actively moving ---- */
.btn-gold, .nav-cta, .research-link {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s var(--ease),
              color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

/* ---- Scroll progress bar (gold hairline at top) ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--gold-soft), var(--gold), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(138, 111, 64, 0.25);
}

/* ---- Floating section navigation (right edge dots) ---- */
.section-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.section-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.section-nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.35s var(--ease),
              transform 0.35s var(--ease),
              border-color 0.35s var(--ease);
  position: relative;
}
.section-nav-dot:hover { background: var(--gold-soft); }
.section-nav-dot.is-active {
  background: var(--gold);
  transform: scale(1.45);
  border-color: var(--gold-deep);
}
.section-nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.section-nav-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 1100px) { .section-nav { display: none; } }

/* ---- Theme toggle button ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s var(--ease),
              color 0.3s var(--ease),
              background 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}
.theme-toggle svg { display: block; }
.theme-toggle .th-sun { display: none; }
.theme-toggle .th-moon { display: block; }
[data-theme="dark"] .theme-toggle .th-sun { display: block; }
[data-theme="dark"] .theme-toggle .th-moon { display: none; }

/* ==========================================================================
   DARK THEME — navy paper, cream ink, brighter gold
   ========================================================================== */
[data-theme="dark"] {
  --ink:        #ECE5D2;
  --ink-2:      #C9C2AF;
  --paper:      #0E1A2B;
  --paper-2:    #14233A;
  --paper-3:    #1C2E47;
  --rule:       #2A3A52;
  --rule-soft:  #1F2D42;
  --gold:       #C9A961;
  --gold-deep:  #B89148;
  --gold-soft:  #DAB87C;
  --slate:      #1F2126;
  --slate-2:    #3A3D44;
  --mute:       #8A92A2;
  --crimson:    #C45856;
  --emerald:    #5BA078;
}
[data-theme="dark"] body {
  background: var(--paper);
  color: var(--ink-2);
}
[data-theme="dark"] body::before {
  mix-blend-mode: screen;
  opacity: 0.04;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--ink); }

[data-theme="dark"] ::selection { background: var(--gold); color: var(--paper); }

/* Header */
[data-theme="dark"] .site-header { background: var(--paper); }
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(14, 26, 43, 0.82);
}
[data-theme="dark"] .nav-links a { color: var(--ink); }
[data-theme="dark"] .nav-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper) !important;
}
[data-theme="dark"] .nav-cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
[data-theme="dark"] .nav-toggle span { background: var(--ink); }
[data-theme="dark"] .theme-toggle { color: var(--ink); }

/* Cards & surfaces */
[data-theme="dark"] .pillar,
[data-theme="dark"] .value,
[data-theme="dark"] .resource,
[data-theme="dark"] .leader,
[data-theme="dark"] .tl-item {
  background: var(--paper-2);
  border-color: var(--rule);
}
[data-theme="dark"] .pillar:hover,
[data-theme="dark"] .value:hover,
[data-theme="dark"] .resource:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.55),
              0 4px 14px -8px rgba(201, 169, 97, 0.25);
}
[data-theme="dark"] .partner-tile {
  background: var(--paper-2);
  color: var(--ink);
}
[data-theme="dark"] .partner-tile:hover {
  background: var(--paper-3);
  color: var(--gold-soft);
}
[data-theme="dark"] .partners-grid {
  background: var(--rule);
  border-color: var(--rule);
}

/* Sections + bands */
[data-theme="dark"] .stat-strip { background: var(--paper); }
[data-theme="dark"] .stat-item {
  background: var(--paper-2);
  border-color: var(--rule);
}
[data-theme="dark"] .venture { background: var(--paper); }
[data-theme="dark"] .research-band { background: var(--paper-2); }
[data-theme="dark"] .site-footer {
  background: var(--paper-2);
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
}
[data-theme="dark"] .footer-col h4 { color: var(--gold-soft); }

/* Buttons */
[data-theme="dark"] .btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-2);
}
[data-theme="dark"] .btn:hover {
  background: var(--paper-2);
  border-color: var(--gold);
  color: var(--gold-soft);
}
[data-theme="dark"] .btn-gold {
  background: var(--gold);
  color: var(--paper);
  border-color: var(--gold);
}
[data-theme="dark"] .btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--paper);
}

/* Data tables */
[data-theme="dark"] .data-table thead th { color: var(--gold-soft); }
[data-theme="dark"] .data-table tbody td,
[data-theme="dark"] .data-table tbody th {
  border-bottom-color: var(--rule);
  color: var(--ink-2);
}
[data-theme="dark"] .data-table tbody th { color: var(--ink); }

/* Two-books diagram in dark */
[data-theme="dark"] .tbd-box {
  fill: var(--paper-2);
  stroke: var(--rule);
}
[data-theme="dark"] .tbd-aggregate {
  fill: rgba(201, 169, 97, 0.10);
  stroke: var(--gold);
}
[data-theme="dark"] .tbd-markets {
  fill: var(--gold);
  stroke: var(--gold);
}
[data-theme="dark"] .tbd-markets-label { fill: var(--paper); }
[data-theme="dark"] .tbd-label { fill: var(--ink); }
[data-theme="dark"] .tbd-label-gold { fill: var(--gold-soft); }
[data-theme="dark"] .tbd-sub { fill: var(--ink-2); }

/* Jurisdictions */
[data-theme="dark"] .jur-mark { background: var(--paper-2); color: var(--gold-soft); }
[data-theme="dark"] .jur-name { color: var(--ink); }

/* Ticker */
[data-theme="dark"] .ticker {
  background: rgba(20, 35, 58, 0.5);
}
[data-theme="dark"] .ticker-track span { color: var(--ink-2); }

/* Section nav dot tooltip */
[data-theme="dark"] .section-nav-dot::after {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--gold-soft);
}

/* Hero pseudo-elements — radial vignette adapts to dark */
[data-theme="dark"] .hero::after {
  background: radial-gradient(ellipse 65% 80% at 22% 55%,
              rgba(14, 26, 43, 0.85) 0%,
              rgba(14, 26, 43, 0.4) 35%,
              rgba(14, 26, 43, 0) 70%);
}

/* Misc text colors */
[data-theme="dark"] .muted { color: var(--mute); }
[data-theme="dark"] .lead { color: var(--ink-2); }
[data-theme="dark"] hr.rule { background: var(--rule); }
[data-theme="dark"] .dropcap::first-letter { color: var(--gold-soft); }
[data-theme="dark"] .marker,
[data-theme="dark"] .chapter,
[data-theme="dark"] .marker::before { color: var(--gold-soft); }
[data-theme="dark"] .marker::before { background: var(--gold-soft); }
[data-theme="dark"] .rule-gold { background: var(--gold-soft); }

/* Smooth theme transition */
body, .site-header, .pillar, .leader, .value, .resource, .tl-item,
.stat-item, .partner-tile, .btn, .btn-gold, .nav-cta, .nav-links a,
.theme-toggle, .data-table tbody td, .data-table tbody th {
  transition: background-color 0.4s var(--ease),
              color 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

/* ==========================================================================
   v8.1 — Iteration: remove paper noise, deepen dark theme
   ========================================================================== */

/* Remove paper-noise texture (was too noisy in some viewers) */
body::before { display: none; }

/* Deeper dark theme — more contrast, less mid-navy */
[data-theme="dark"] {
  --paper:      #05101F;
  --paper-2:    #0B1A2D;
  --paper-3:    #14253D;
  --rule:       #1F2E45;
  --rule-soft:  #152238;
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(5, 16, 31, 0.85);
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(ellipse 65% 80% at 22% 55%,
              rgba(5, 16, 31, 0.88) 0%,
              rgba(5, 16, 31, 0.45) 35%,
              rgba(5, 16, 31, 0) 70%);
}
[data-theme="dark"] .ticker {
  background: rgba(11, 26, 45, 0.6);
}

/* ==========================================================================
   v8.2 — Cross-page view transitions + hero gold particles
   ========================================================================== */

/* Cross-document view transitions (modern browsers; graceful fallback) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-fill-mode: both;
}
::view-transition-old(root) {
  animation-name: fo-fade-out;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-new(root) {
  animation-name: fo-fade-in;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fo-fade-out {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes fo-fade-in {
  from { opacity: 0; transform: translateY(12px); }
}

/* Shared-element continuity — logo + brand persist across navigation */
.nav-brand { view-transition-name: brand; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* Hero generative gold particles canvas */
.hero { isolation: isolate; }
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   v8.3 — Iteration: deeper dark theme (near-black with navy undertone)
   ========================================================================== */
[data-theme="dark"] {
  --paper:      #020812;
  --paper-2:    #060F1B;
  --paper-3:    #0C1828;
  --rule:       #142239;
  --rule-soft:  #0B1424;
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(2, 8, 18, 0.88);
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(ellipse 65% 80% at 22% 55%,
              rgba(2, 8, 18, 0.92) 0%,
              rgba(2, 8, 18, 0.5)  35%,
              rgba(2, 8, 18, 0)    70%);
}
[data-theme="dark"] .ticker {
  background: rgba(6, 15, 27, 0.6);
}

/* ==========================================================================
   v8.4 — Iteration: even darker cards in dark mode
   ========================================================================== */
[data-theme="dark"] {
  --paper-2:    #03091A;   /* card surfaces — barely lifted from paper */
  --paper-3:    #061222;
}

/* ==========================================================================
   v8.5 — Iteration: stat strip in dark mode matches light mode treatment
   (seamless, just top-line highlight — no card background)
   ========================================================================== */
[data-theme="dark"] .stat-item {
  background: transparent;
  border-top-color: var(--ink);  /* cream highlight on dark */
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

/* ==========================================================================
   v8.6 — Remove hex rings, strengthen radial vignette
   ========================================================================== */

/* Remove the static hex rings — neural network supersedes them */
.hero::before { content: none; }

/* Stronger radial vignette — clearer "spotlight" cream/navy halo on title */
.hero::after {
  background: radial-gradient(ellipse 78% 105% at 22% 55%,
              rgba(241, 236, 224, 1.0)  0%,
              rgba(241, 236, 224, 0.95) 22%,
              rgba(241, 236, 224, 0.65) 48%,
              rgba(241, 236, 224, 0.18) 70%,
              rgba(241, 236, 224, 0)    85%);
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(ellipse 78% 105% at 22% 55%,
              rgba(2, 8, 18, 1.0)  0%,
              rgba(2, 8, 18, 0.94) 22%,
              rgba(2, 8, 18, 0.62) 48%,
              rgba(2, 8, 18, 0.18) 70%,
              rgba(2, 8, 18, 0)    85%);
}
@media (max-width: 900px) {
  .hero::after {
    background: radial-gradient(ellipse 95% 80% at 50% 50%,
                rgba(241, 236, 224, 1.0)  0%,
                rgba(241, 236, 224, 0.85) 35%,
                rgba(241, 236, 224, 0)    78%);
  }
  [data-theme="dark"] .hero::after {
    background: radial-gradient(ellipse 95% 80% at 50% 50%,
                rgba(2, 8, 18, 1.0)  0%,
                rgba(2, 8, 18, 0.85) 35%,
                rgba(2, 8, 18, 0)    78%);
  }
}
