/* Bitcipher Investments LLC — public site
   Palette: basalt, shale, lichen, limestone, ore. Type: Archivo (expanded display), Public Sans (text). */
:root {
  --basalt: #1d2b31;
  --shale: #46667a;
  --lichen: #4f7461;
  --limestone: #f3f5f4;
  --paper: #ffffff;
  --ore: #b8862b;
  --ore-ink: #8a6216;
  --slate: #56676d;
  --line: #d7dfdc;
  --line-strong: #b8c4c0;
  --up: #2c6b4b;
  --down: #a13e2b;
  --solar: #c98f12;
  --wind: #3c7a99;
  --mining: #8a5a2b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --r: 3px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--text); font-size: 1rem; line-height: 1.6; color: var(--basalt);
  background: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, video { max-width: 100%; display: block; }
a { color: var(--shale); text-underline-offset: .18em; }
a:hover { color: var(--basalt); }
:focus-visible { outline: 3px solid var(--ore); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "wdth" 112; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 760; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; font-variation-settings: "wdth" 100; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.55; max-width: 62ch; color: inherit; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--basalt); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .65rem 1.25rem;
  font: 600 .95rem/1.2 var(--text); text-decoration: none; border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn.small { min-height: 38px; padding: .4rem .9rem; font-size: .875rem; }
.btn.full { width: 100%; }
.btn.primary { background: var(--basalt); color: #fff; }
.btn.primary:hover { background: #2c414a; color: #fff; }
.btn.ore { background: var(--ore); color: #1b1408; }
.btn.ore:hover { background: #cc9a3d; color: #1b1408; }
.btn.ghost { border-color: var(--basalt); color: var(--basalt); background: transparent; }
.btn.ghost:hover { background: var(--basalt); color: #fff; }
.btn.ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.ghost-light:hover { background: #fff; color: var(--basalt); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.text-link { font-weight: 600; color: var(--basalt); text-decoration-color: var(--ore); text-decoration-thickness: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: var(--r); cursor: pointer; }
.icon-btn:hover { background: var(--limestone); }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.masthead-row { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--basalt); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 28px; height: 24px; }
.brand-word { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.brand-img { height: 60px; width: auto; }
nav.primary { flex: 1; }
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
nav.primary a { display: block; white-space: nowrap; padding: .5rem .6rem; color: var(--basalt); text-decoration: none; font-weight: 500; border-radius: var(--r); }
nav.primary a:hover { background: var(--limestone); }
nav.primary a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ore); border-radius: 0; }
.masthead-tools { display: flex; align-items: center; gap: .25rem; }
.role-btn { font: 500 .85rem var(--text); border: 1px solid var(--line-strong); background: #fff; color: var(--basalt); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; min-height: 38px; }
.role-btn:hover { border-color: var(--basalt); }
.menu-btn { display: none; }

@media (max-width: 1260px) {
  .menu-btn { display: inline-grid; }
  nav.primary { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  nav.primary.open { display: block; }
  nav.primary ul { flex-direction: column; padding: .5rem var(--pad) 1rem; }
  nav.primary a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.primary a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ore); padding-left: .9rem; }
  .masthead-row { justify-content: space-between; }
}
@media (max-width: 760px) { .role-btn { display: none; } }

/* ---------- hero with strata ---------- */
.hero { position: relative; overflow: hidden; background: var(--limestone); border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,31,36,.88) 0%, rgba(20,31,36,.6) 55%, rgba(20,31,36,.25) 100%); }
.hero.has-media .hero-copy { color: #fff; }
.hero.has-media .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); font-variation-settings: "wdth" 120; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; max-width: 12ch; }

.strata { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 1.25rem 1.25rem 0; box-shadow: 0 30px 60px -40px rgba(29,43,49,.55); }
.strata figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; padding-bottom: 1rem; }
.strata-total { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.strata-note { color: var(--slate); font-size: .9rem; }
.layers { list-style: none; margin: 0 -1.25rem; padding: 0; display: flex; flex-direction: column; min-height: clamp(380px, 46vw, 520px); }
.layer {
  --edge: 7px;
  flex: var(--g) 1 0; min-height: 34px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: calc(var(--edge) + .3rem) 1.25rem .45rem; margin-top: calc(var(--edge) * -1); color: var(--t);
  background-color: var(--c);
  background-image: repeating-linear-gradient(-4deg, rgba(255,255,255,.06) 0 2px, transparent 2px 11px);
  clip-path: polygon(0 var(--edge), 18% 2px, 41% calc(var(--edge) - 1px), 63% 0, 84% calc(var(--edge) + 1px), 100% 3px, 100% 100%, 0 100%);
  animation: settle .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + 150ms);
}
.layer:first-child { margin-top: 0; }
.layer-name { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.layer-val { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 700; font-size: 1rem; white-space: nowrap; }
@keyframes settle { from { transform: translateY(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .layer { animation: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layers { height: 440px; }
}

/* ---------- bands & sections ---------- */
.band { border-bottom: 1px solid var(--line); }
.figures-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures-row p { margin: 0; padding: 1.4rem 1rem 1.4rem 0; color: var(--slate); font-size: .95rem; }
.figures-row p + p { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.figures-row strong { display: block; color: var(--basalt); font-family: var(--display); font-variation-settings: "wdth" 115; font-size: 1.7rem; line-height: 1.15; }
@media (max-width: 760px) {
  .figures-row { grid-template-columns: 1fr 1fr; }
  .figures-row p:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures-row p:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tight { padding-top: 2rem; }
.section.shade { background: var(--limestone); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.fineprint { font-size: .8rem; color: var(--slate); margin-top: 1rem; max-width: 90ch; }

.basalt { background: var(--basalt); color: #e9eeec; position: relative; overflow: hidden; }
.basalt::before { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: repeating-linear-gradient(-3deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px); pointer-events: none; }
.basalt h2 { color: #fff; }
.ra-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.ra-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.ra-stats div { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.ra-stats dt { font-size: .85rem; color: #b6c4c0; }
.ra-stats dd { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 700; font-size: 1.45rem; color: #fff; }
.ra-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.basalt .asset-card { background: #263840; border-color: #33474f; }
.basalt .asset-card h3, .basalt .asset-facts dd { color: #fff; }
.basalt .asset-facts dt, .basalt .asset-cat { color: #b6c4c0; }
@media (max-width: 980px) { .ra-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .ra-cards { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; color: var(--slate); font-size: .82rem; border-bottom: 1.5px solid var(--basalt); white-space: nowrap; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.up { color: var(--up); } td.down { color: var(--down); }
tbody tr:hover { background: #f7f9f8; }
.fund-name { display: inline-flex; align-items: baseline; gap: .6rem; color: var(--basalt); font-weight: 600; text-decoration: none; }
.fund-name:hover { text-decoration: underline; }
.ticker { display: inline-block; font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; font-size: .82rem; letter-spacing: .03em; color: var(--basalt); background: var(--limestone); border: 1px solid var(--line); padding: .05rem .4rem; border-radius: 2px; }
.ticker.big { font-size: 1rem; padding: .2rem .55rem; background: var(--ore); border-color: var(--ore); color: #1b1408; }
.region { display: block; color: var(--slate); font-size: .8rem; margin-top: .15rem; }
.fund-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.fund-table th button::after { content: ""; display: inline-block; margin-left: .3rem; border: 4px solid transparent; border-top-color: var(--line-strong); transform: translateY(2px); }
.fund-table th[aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: var(--basalt); transform: translateY(-2px); }
.fund-table th[aria-sort="descending"] button::after { border-top-color: var(--basalt); }
.fund-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--basalt); }

/* ---------- screener ---------- */
.screener { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1.25rem; background: var(--limestone); border: 1px solid var(--line); border-radius: var(--r); }
.screener-field { display: flex; flex-direction: column; gap: .3rem; min-width: 160px; }
.screener-field.grow { flex: 1 1 240px; }
.screener label, .field label { font-size: .85rem; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--basalt); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: .6rem .7rem; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--basalt); outline: none; box-shadow: 0 0 0 3px rgba(184,134,43,.35); }
.result-count { margin: 1.25rem 0 .5rem; color: var(--slate); font-size: .9rem; }
.empty { padding: 2rem; text-align: center; color: var(--slate); background: var(--limestone); border-radius: var(--r); }

.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--basalt); color: #fff; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px)); }
.compare-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.compare-row p { margin: 0; flex: 1; }
.compare-tray .btn.primary { background: var(--ore); color: #1b1408; }
.compare-tray .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- dialogs ---------- */
.dialog { border: 0; padding: 0; border-radius: 6px; max-width: min(720px, calc(100vw - 2rem)); width: 100%; color: var(--basalt); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); }
.dialog::backdrop { background: rgba(20,31,36,.6); }
.role-dialog form { padding: 2rem; }
.role-options { display: grid; gap: .75rem; margin-top: 1.25rem; }
.role-option { text-align: left; font: inherit; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 1rem 1.25rem; cursor: pointer; color: var(--basalt); }
.role-option:hover, .role-option:focus-visible { border-color: var(--basalt); background: var(--limestone); }
.role-option strong { display: block; font-family: var(--display); font-variation-settings: "wdth" 110; font-size: 1.05rem; }
.role-option span { color: var(--slate); font-size: .9rem; }
.search-dialog { margin-top: 8vh; }
.search-box { display: flex; align-items: center; gap: .5rem; padding: .75rem; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; border: 0; font-size: 1.15rem; box-shadow: none; }
.search-results { list-style: none; margin: 0; padding: .5rem; max-height: 60vh; overflow: auto; }
.search-results a { display: grid; grid-template-columns: 90px 1fr; gap: .25rem 1rem; padding: .7rem .75rem; border-radius: var(--r); text-decoration: none; color: var(--basalt); }
.search-results a:hover, .search-results a:focus-visible { background: var(--limestone); }
.search-results .type { color: var(--slate); font-size: .8rem; grid-row: span 2; padding-top: .15rem; }
.search-results .meta { color: var(--slate); font-size: .85rem; }
.search-results .none { padding: 1rem .75rem; color: var(--slate); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 1.3rem; }
.compare-dialog { max-width: min(1000px, calc(100vw - 2rem)); }
.compare-dialog .table-wrap { padding: 0 1.25rem 1.25rem; }

/* ---------- page hero ---------- */
.page-hero { position: relative; background: var(--limestone); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero-inner { position: relative; z-index: 2; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero.slim .page-hero-inner { padding-bottom: 2rem; }
.page-hero.has-media { color: #fff; min-height: 340px; display: flex; align-items: flex-end; }
.page-hero.has-media .page-hero-inner { width: 100%; }
.page-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,31,36,.85) 0%, rgba(20,31,36,.35) 70%, rgba(20,31,36,.15) 100%); }
.page-hero h1 { max-width: 20ch; }

/* ---------- real assets ---------- */
.ra-summary-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.ra-summary-row div { padding: 1.25rem 1rem 1.25rem 0; }
.ra-summary-row div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.ra-summary-row strong { display: block; font-family: var(--display); font-variation-settings: "wdth" 115; font-size: 1.6rem; line-height: 1.2; }
.ra-summary-row span { color: var(--slate); font-size: .88rem; }
@media (max-width: 900px) { .ra-summary-row { grid-template-columns: 1fr 1fr; } .ra-summary-row div { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); } }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tabs button { font: 600 .92rem var(--text); color: var(--basalt); background: #fff; border: 1.5px solid var(--line-strong); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; gap: .45rem; }
.tabs button[aria-selected="true"] { background: var(--basalt); border-color: var(--basalt); color: #fff; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--slate); }
.dot.solar, .cat-solar .dot { background: var(--solar); }
.dot.wind, .cat-wind .dot { background: var(--wind); }
.dot.mining, .cat-mining .dot { background: var(--mining); }

.map-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; }
.map { height: 560px; border: 1px solid var(--line); border-radius: var(--r); background: #e8edeb; z-index: 1; }
.map.mini { height: 280px; }
.country-list { max-height: 560px; overflow: auto; }
.country-list h2 { font-size: 1.2rem; }
.mini-table th, .mini-table td { padding: .55rem .4rem; font-size: .88rem; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } .map { height: 420px; } }
.leaflet-popup-content { font-family: var(--text); }
.leaflet-popup-content a { font-weight: 600; }
.map-pop strong { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: .2rem; }

.list-title { margin-top: 3rem; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.asset-grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.asset-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--slate); border-radius: var(--r); overflow: hidden; }
.asset-card.cat-solar { border-top-color: var(--solar); }
.asset-card.cat-wind { border-top-color: var(--wind); }
.asset-card.cat-mining { border-top-color: var(--mining); }
.asset-card[hidden] { display: none; }
.asset-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.asset-link:hover h3 { text-decoration: underline; }
.asset-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--limestone); }
.asset-img img, .asset-img video { width: 100%; height: 100%; object-fit: cover; }
.asset-body { padding: 1rem 1.1rem 1.1rem; }
.asset-cat { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--slate); margin: 0 0 .35rem; }
.asset-card h3 { margin: 0 0 .75rem; }
.asset-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem .75rem; margin: 0; }
.asset-facts dt { font-size: .75rem; color: var(--slate); }
.asset-facts dd { margin: 0; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.note { margin-top: 2rem; font-size: .9rem; color: var(--slate); }

.asset-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.asset-hero-media { position: absolute; inset: 0; }
.asset-hero-media img, .asset-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.asset-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,31,36,.9), rgba(20,31,36,.2) 75%); }
.asset-hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 2.5rem; padding-top: 6rem; }

/* ---------- fund detail ---------- */
.fund-hero { background: var(--basalt); color: #fff; padding: 2.5rem 0 0; }
.crumbs { font-size: .88rem; margin-bottom: 1.25rem; color: var(--slate); }
.crumbs a { color: inherit; }
.fund-hero .crumbs, .crumbs.light { color: #b6c4c0; }
.fund-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fund-title h1 { margin: 0; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.fund-sub { color: #d3dcd9; max-width: 70ch; margin: 1rem 0 2rem; }
.keyfacts { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.2); }
.keyfacts div { padding: 1.1rem 1rem 1.25rem 0; }
.keyfacts div + div { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.2); }
.keyfacts dt { font-size: .8rem; color: #b6c4c0; }
.keyfacts dd { margin: .15rem 0 0; font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 700; font-size: 1.25rem; }
.keyfacts.on-light { grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--basalt); margin-bottom: 2rem; }
.keyfacts.on-light.wide { grid-template-columns: repeat(4, 1fr); }
.keyfacts.on-light div { border-bottom: 1px solid var(--line); }
.keyfacts.on-light div + div { border-left-color: var(--line); }
.keyfacts.on-light dt { color: var(--slate); }
.keyfacts.on-light div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.keyfacts.on-light.wide div:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 1rem; }
.keyfacts.on-light.wide div:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 900px) {
  .keyfacts, .keyfacts.on-light, .keyfacts.on-light.wide { grid-template-columns: 1fr 1fr; }
  .keyfacts div, .keyfacts.on-light div { border-left: 0 !important; padding-left: 0 !important; }
}
.fund-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .fund-grid { grid-template-columns: 1fr; } }
.fund-main h2 { margin-top: 0; }
.fund-main h2 + .prose, .fund-main .prose { margin-bottom: 2rem; }
.perf-bars { display: grid; gap: .6rem; margin-bottom: 2.5rem; }
.perf { display: grid; grid-template-columns: 140px 1fr 80px; align-items: center; gap: 1rem; }
.perf-label { font-size: .9rem; }
.perf-track { height: 14px; background: var(--limestone); position: relative; }
.perf-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--lichen); }
.perf-bar.down { background: var(--down); }
.perf-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.perf-val.up { color: var(--up); } .perf-val.down { color: var(--down); }
.chart-title { margin-top: 1rem; }
.growth { width: 100%; height: 300px; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.growth svg { width: 100%; height: 100%; overflow: visible; }
.growth text { font: 12px var(--text); fill: var(--slate); }
.fund-side .side-title { font-size: 1.15rem; margin-top: 1.5rem; }
.fund-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/10; }
.fund-img img { width: 100%; height: 100%; object-fit: cover; }
.docs { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.docs li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.docs small { color: var(--slate); }
.related-funds, .fund-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.related-funds { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.related-funds a, .fund-links a { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--basalt); text-decoration: none; font-weight: 600; }
.related-funds a:hover, .fund-links a:hover { border-color: var(--basalt); }
.rf-name { flex: 1 1 100%; }
.rf-ret { font-weight: 500; font-size: .88rem; }
.rf-ret.up { color: var(--up); } .rf-ret.down { color: var(--down); }

/* ---------- insights ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-card a { display: block; color: inherit; text-decoration: none; }
.insight-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--ore); }
.insight-img { aspect-ratio: 16/10; overflow: hidden; background: var(--limestone); margin-bottom: 1rem; border-radius: var(--r); }
.insight-img img, .insight-img video { width: 100%; height: 100%; object-fit: cover; }
.insight-cat { font-size: .85rem; font-weight: 600; color: var(--ore-ink); margin: 0 0 .35rem; }
.insight-card h3 { font-size: 1.2rem; font-variation-settings: "wdth" 105; }
.insight-sum { color: var(--slate); font-size: .95rem; }
.insight-meta { font-size: .82rem; color: var(--slate); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chips a { padding: .45rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--basalt); text-decoration: none; font-weight: 500; font-size: .9rem; }
.chips a[aria-current="page"] { background: var(--basalt); border-color: var(--basalt); color: #fff; }
.chips a[aria-current="page"] .muted { color: #c4d0cc; }
.lead-article { margin-bottom: 3rem; }
.lead-article a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; color: inherit; text-decoration: none; }
.lead-article a:hover h2 { text-decoration: underline; text-decoration-color: var(--ore); }
.lead-img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r); }
.lead-img img, .lead-img video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .lead-article a { grid-template-columns: 1fr; } }

.article-head { padding-top: 3rem; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.byline { color: var(--slate); font-size: .9rem; }
.article-media { margin: 2rem auto; max-width: 1080px; }
.article-media img, .article-media video { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--r); }
.article-body { padding-bottom: 2rem; }

/* ---------- prose ---------- */
.prose { font-size: 1.05rem; line-height: 1.7; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose img, .prose video { border-radius: var(--r); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--ore); font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }

/* ---------- about, investors, careers, contact ---------- */
.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 860px) { .leaders { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .leaders { grid-template-columns: 1fr; } }
.leader-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--basalt); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 700; font-size: 1.6rem; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader h3 { margin-bottom: .1rem; }
.leader-title { color: var(--ore-ink); font-weight: 600; font-size: .92rem; }
.leader p:last-child { color: var(--slate); font-size: .95rem; }

.strata-bar { display: flex; height: 64px; margin-bottom: 1.25rem; clip-path: polygon(0 6px, 25% 0, 50% 5px, 75% 1px, 100% 6px, 100% 100%, 0 100%); }
.strata-bar span { flex: var(--g) 1 0; background: var(--c); }
.swatch { display: inline-block; width: 12px; height: 12px; background: var(--c); margin-right: .6rem; vertical-align: -1px; }
.data-table tfoot th, .data-table tfoot td { border-top: 1.5px solid var(--basalt); border-bottom: 0; }
.section h2 + .table-wrap, .section h2 + .strata-bar { margin-top: .5rem; }
.table-wrap + h2 { margin-top: 3.5rem; }
.hist { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .75rem; height: 300px; align-items: end; border-bottom: 1.5px solid var(--basalt); }
.hist-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.hist-bar { height: var(--h); background: var(--shale); }
.hist-col:last-child .hist-bar { background: var(--ore); }
.hist-val { font-size: .78rem; font-weight: 600; margin-bottom: .3rem; white-space: nowrap; }
.hist-label { font-size: .78rem; color: var(--slate); padding-top: .4rem; height: 0; overflow: visible; white-space: nowrap; }
.hist { margin-bottom: 2.5rem; }
@media (max-width: 600px) { .hist-val { font-size: .62rem; } .hist-label { font-size: .66rem; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--basalt); }
.job { border-bottom: 1px solid var(--line); background: #fff; }
.job summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding: 1.1rem 1rem; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--slate); }
.job[open] summary::after { content: "\2212"; }
.job-title { font-weight: 650; flex: 1; }
.job-meta { color: var(--slate); font-size: .9rem; }
.job > div, .job > a { margin: 0 1rem 1.25rem; }
.job > a { display: inline-flex; }

.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1.25rem 1.5rem; border-radius: var(--r); margin-bottom: 1.5rem; }
.notice.ok { background: #e7f1ea; border-left: 4px solid var(--up); }
.notice.err { background: #f8ebe7; border-left: 4px solid var(--down); }
.notice ul { margin: 0; padding-left: 1.2rem; }
.office-list { columns: 2; padding-left: 1.1rem; }
address { font-style: normal; margin-bottom: 1rem; }

.paths { padding-top: 0; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--basalt); }
.path { display: block; padding: 1.5rem 1.5rem 1.75rem 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.path + .path { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.path h3 { font-size: 1.25rem; font-variation-settings: "wdth" 112; }
.path p { color: var(--slate); margin: 0; }
.path:hover h3 { text-decoration: underline; text-decoration-color: var(--ore); text-decoration-thickness: 2px; }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } .path + .path { padding-left: 0; border-left: 0; } }

.notfound { min-height: 50vh; }

/* ---------- footer ---------- */
.site-footer { background: var(--basalt); color: #c5d1cd; padding: 3.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-name, .footer-head { font-family: var(--display); font-variation-settings: "wdth" 115; color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-links ul, .footer-offices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { padding-top: 1.5rem; font-size: .8rem; color: #9fb0ab; }
.footer-legal p { max-width: 110ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.cookie { position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: 520px; display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.cookie p { margin: 0; font-size: .88rem; }
.cookie[hidden] { display: none; }
.cookie .btn { background: var(--basalt); color: #fff; flex-shrink: 0; }

/* ---------- client login ---------- */
.client-btn { display: inline-flex; align-items: center; min-height: 38px; padding: .4rem .95rem; border-radius: var(--r); background: var(--basalt); color: #fff; border: 1.5px solid var(--basalt); font: 600 .88rem var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.client-btn:hover { background: #2c414a; color: #fff; }
.client-btn.ghost { background: transparent; color: var(--basalt); }
.client-btn.ghost:hover { background: var(--basalt); color: #fff; }
.logout-form { margin: 0; }
.masthead-tools { gap: .5rem; }
@media (max-width: 560px) { .client-btn { padding: .35rem .7rem; font-size: .82rem; } }
.login-dialog { max-width: min(440px, calc(100vw - 2rem)); }
.login-body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: 1rem; }
.login-msg { margin: 0; padding: .7rem .9rem; border-radius: var(--r); background: #f8ebe7; border-left: 4px solid var(--down); font-size: .92rem; }
.login-msg.ok { background: #e7f1ea; border-left-color: var(--up); }
.login-note { margin: 0; font-size: .82rem; color: var(--slate); }

/* ---------- client page ---------- */
.client-head { background: var(--basalt); color: #fff; padding: 2.5rem 0; }
.client-head h1 { margin: 0; }
.client-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.client-hello { color: #b6c4c0; margin: 0 0 .35rem; }
.client-session { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.client-session form { margin: 0; }
.client-session .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.client-session .btn.ghost:hover { background: #fff; color: var(--basalt); }
.session-timer { margin: 0; color: #d3dcd9; font-size: .92rem; }
.session-timer strong { color: #fff; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.client-section + .client-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.client-img { margin: 0 0 1.5rem; }
.client-img img, .client-img video { width: 100%; border-radius: var(--r); }

/* ---------- Special projects (isotope services) ---------- */
.sp-intro { padding-bottom: 0; }
.sp-intro .lede { max-width: 70ch; }
.sp-services { display: block; }
.sp-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.sp-service:last-child { border-bottom: 0; }
.sp-service.alt .sp-media { order: 2; }
.sp-media { margin: 0; border-radius: var(--radius, 10px); overflow: hidden; background: var(--limestone); aspect-ratio: 16 / 10; }
.sp-media img, .sp-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-text h2 { margin: 0 0 .4rem; }
.sp-summary { font-weight: 600; color: var(--ink-soft, #44545a); margin: 0 0 .9rem; }
.sp-note .small { max-width: 80ch; }
@media (max-width: 760px) {
  .sp-service { grid-template-columns: 1fr; }
  .sp-service.alt .sp-media { order: 0; }
}

/* ---------- Special projects: about + process steps ---------- */
.sp-about h2 { margin-bottom: .75rem; }
.sp-process-head { max-width: 70ch; margin-bottom: 2rem; }
.sp-process-head h2 { margin-bottom: .5rem; }
.sp-steps { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: 1.25rem 1.4rem; }
.sp-step-num { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; background: var(--ink, #1b2a30); color: #fff; font-weight: 700; font-size: 1rem; }
.sp-step-text h3 { margin: .15rem 0 .35rem; font-size: 1.08rem; }
.sp-step-text p { margin: 0; color: var(--ink-soft, #44545a); font-size: .95rem; line-height: 1.5; }
@media (max-width: 760px) { .sp-steps { grid-template-columns: 1fr; } }
