/* IG11 Capital — Swiss modernist × financial terminal */
:root {
  --paper: #f5f2ec;
  --paper-2: #ebe7dd;
  --ink: #111110;
  --ink-2: #5a5955;
  --ink-3: #8a8880;
  --line: rgba(17,17,16,0.14);
  --line-strong: rgba(17,17,16,0.28);
  --ox: #1d4fd0;
  --ox-soft: rgba(29,79,208,0.08);
  --green: #2f6b3f;
  --row-h: 48px;
}
[data-density="compact"] { --row-h: 40px; }
[data-density="comfy"]   { --row-h: 56px; }

[data-accent="oxblood"] { --ox: #1d4fd0; --ox-soft: rgba(29,79,208,0.08); }
[data-accent="forest"]  { --ox: #235c3a; --ox-soft: rgba(35,92,58,0.09); }
[data-accent="ink"]     { --ox: #111110; --ox-soft: rgba(17,17,16,0.08); }
[data-accent="cobalt"]  { --ox: #1d4fd0; --ox-soft: rgba(29,79,208,0.09); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: "Inter", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "tnum" on, "zero" on; }
.serif { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.015em; }
.num { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.rule { height: 1px; background: var(--line); }
.rule-strong { height: 1px; background: var(--line-strong); }

.shell { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.shell-narrow { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.u-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.u-link:hover { color: var(--ox); border-color: var(--ox); }

/* Ticker marquee */
.ticker {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  white-space: nowrap;
  background: var(--paper);
}
.ticker-track {
  display: inline-flex;
  animation: scroll-x 60s linear infinite;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
}
.ticker-item .tk-label { color: var(--ink-2); }
.ticker-item .tk-val { color: var(--ink); }
.ticker-item .tk-chg.pos { color: var(--green); }
.ticker-item .tk-chg.neg { color: var(--ox); }
.ticker-dot {
  width: 6px; height: 6px; background: var(--ox); border-radius: 50%; margin-right: 6px;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  max-width: 1440px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark::after {
  content: ""; width: 6px; height: 6px; background: var(--ox); border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-family: "Instrument Serif", serif; font-size: 20px; }
.brand-text .sub  { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--ink-2); margin-top: 3px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-2); text-decoration: none; text-transform: uppercase;
  border: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-color: var(--line); background: var(--paper-2); }

.nav-cta {
  display: flex; align-items: center; gap: 14px;
}
.btn {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer;
  padding: 10px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ox); border-color: var(--ox); }
.btn:hover { border-color: var(--ox); color: var(--ox); }
.btn.primary:hover { color: var(--paper); }
.btn.red { background: var(--ox); border-color: var(--ox); color: var(--paper); }
.btn.red:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ghost {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; background: transparent; border: none;
  color: var(--ink-2); padding: 6px 0;
}
.btn-ghost:hover { color: var(--ox); }

/* Section scaffolding */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section.tight { padding: 64px 0; }
.section-head {
  display: grid; grid-template-columns: 180px 1fr; gap: 48px; align-items: baseline;
  padding: 0 40px;
  margin-bottom: 40px;
}
.section-head .left { display: flex; flex-direction: column; gap: 14px; }
.section-head .counter { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-2); }
.section-head h2 {
  font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: clamp(36px, 3.2vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 920px;
}
.section-head h2 em { font-style: italic; color: var(--ox); }
.section-head .deck { font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: 560px; margin-top: 14px; }

/* Stats row */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.stat {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .label { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-2); text-transform: uppercase; }
.stat .value { font-family: "Instrument Serif", serif; font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; margin-top: 10px; }
.stat .value .unit { font-size: 22px; color: var(--ink-2); margin-left: 3px; }
.stat .sub   { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-2); margin-top: 8px; }

/* KPI strip — landing fund stats */
.kpi-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  margin-top: 56px;
}
.kpi-strip .kpi,
.kpi-grid .kpi {
  padding: 22px 24px;
}
.kpi-strip .kpi { border-right: 1px solid var(--line); }
.kpi-strip .kpi:last-child { border-right: none; }
.kpi .l { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.2em; color: var(--ink-2); text-transform: uppercase; }
.kpi .v { font-family: "Instrument Serif", serif; font-size: 34px; line-height: 1; margin-top: 8px; }
.kpi .v .u { font-size: 16px; color: var(--ink-2); }
.kpi .s { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--ink-2); margin-top: 6px; letter-spacing: 0.04em; }
.kpi.hero-kpi .v { color: var(--ox); font-size: 44px; }

/* KPI grid (inside Mandate column) — 3×2 */
.kpi-grid {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}
.kpi-grid .kpi {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi-grid .kpi:nth-child(3n) { border-right: none; }
.kpi-grid .kpi:nth-last-child(-n+3) { border-bottom: none; }
.kpi-grid .kpi .v { font-size: 28px; }
.kpi-grid .kpi.hero-kpi .v { font-size: 36px; }
.kpi-grid .kpi .v .u { font-size: 14px; }

/* Card grid */
.cards { display: grid; gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
}
.card:last-child { border-right: none; }
.card .kicker { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--ox); text-transform: uppercase; }
.card h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; }
.card p  { font-size: 13px; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* Team */
.gp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.gp {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  align-items: start;
}
.gp:last-child { border-right: none; }
.gp .portrait {
  width: 180px; height: 220px; background: var(--paper-2); position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
.gp .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.gp .portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(245,242,236,0.3) 100%);
}
.gp .meta { display: flex; flex-direction: column; }
.gp h3 { font-family: "Instrument Serif", serif; font-size: 30px; font-weight: 400; margin: 0; line-height: 1.05; }
.gp .role { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--ox); margin-top: 6px; text-transform: uppercase; }
.gp .bio { font-size: 13px; line-height: 1.65; color: var(--ink-2); margin-top: 18px; max-width: 420px; }

.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.team-card {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.team-card:nth-child(4n) { border-right: none; }
.team-card .p-small {
  width: 120px; height: 120px; background: var(--paper-2); border: 1px solid var(--line);
  overflow: hidden;
}
.team-card .p-small img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05); }
.team-card[data-id="hb"] .p-small img { object-position: center center; }
.team-card h4 { font-family: "Instrument Serif", serif; font-size: 20px; font-weight: 400; margin: 14px 0 4px; line-height: 1.1; }
.team-card .role { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--ox); text-transform: uppercase; }
.team-card .bio { font-size: 12px; line-height: 1.6; color: var(--ink-2); margin-top: 10px; }

.subhead {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 40px; margin-top: 40px; margin-bottom: 16px;
}
.subhead h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 22px; margin: 0; }
.subhead .note { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-2); text-transform: uppercase; }

/* Fund terms table */
.terms-caption {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px;
  align-items: baseline;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 0;
}
.terms-caption .tc-n {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.22em; color: var(--ink-3);
}
.terms-caption .tc-t {
  font-family: "Instrument Serif", serif; font-size: 22px;
  letter-spacing: -0.01em; color: var(--ink);
}
.terms-caption .tc-r {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.18em; color: var(--ink-2); text-transform: uppercase;
}
.terms {
  display: grid; grid-template-columns: 180px 1fr 44px 180px 1fr;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.terms .k, .terms .v {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; line-height: 1.5;
  display: flex; align-items: center;
  min-width: 0; overflow-wrap: break-word;
}
.terms .gap { border-bottom: 1px solid var(--line); }
.terms .k { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; border-right: 1px solid var(--line); }
.terms .v { font-family: "Inter", sans-serif; }
.terms .v.mid { border-right: none; }
.terms .k.last, .terms .v.last { border-right: none; }
.terms > .k:nth-last-child(-n+5), .terms > .v:nth-last-child(-n+5), .terms > .gap:last-of-type { border-bottom: none; }
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: break-word;
}
.terms .k { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; border-right: 1px solid var(--line); }
.terms .v { font-family: "Inter", sans-serif; border-right: 1px solid var(--line); }
.terms .v:nth-child(4n) { border-right: none; }
.terms .k:last-of-type, .terms .v:last-of-type { border-bottom: none; }

/* Term pairs — display:contents so children slot into the 5-col grid */
.terms .term-pair { display: contents; }

/* Trust ribbon */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.trust-cell {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.trust-cell:last-child { border-right: none; }
.trust-cell .logo-ph {
  width: 48px; height: 48px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: "Instrument Serif", serif; font-size: 22px; color: var(--ox);
  background: var(--paper-2); flex-shrink: 0;
}
.trust-cell .tc-meta { display: flex; flex-direction: column; gap: 2px; }
.trust-cell .tc-role { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-2); text-transform: uppercase; }
.trust-cell .tc-name { font-size: 14px; letter-spacing: -0.01em; }

/* Track record chart */
.chart-wrap {
  position: relative;
  background: transparent;
  padding: 32px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}
.chart-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 40px 24px;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 24px 40px 28px; border-top: 1px solid var(--line); align-items: center; }
.chart-legend .lg { display: flex; align-items: stretch; gap: 12px; font-family: "Instrument Serif", serif; font-size: 15px; color: var(--ink); line-height: 1.3; }
.chart-legend .lg .swatch { width: 3px; align-self: stretch; flex-shrink: 0; }
.chart-legend .lg .lg-label { font-size: 15px; font-family: "Instrument Serif", serif; }

.chart-svg { width: 100%; display: block; background: transparent; }
.tooltip {
  position: absolute; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: 10px 12px; min-width: 180px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  border: 1px solid var(--ink);
  transform: translate(-50%, -100%);
  opacity: 0; transition: opacity 140ms;
  z-index: 5;
}
.tooltip.on { opacity: 1; }
.tooltip .tt-m { color: var(--paper); opacity: 0.6; letter-spacing: 0.12em; font-size: 9px; text-transform: uppercase; margin-bottom: 6px; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.tooltip .tt-row .tt-k { color: var(--paper); opacity: 0.6; }

/* Monthly data table */
.perf-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  margin-top: 24px;
  background: transparent;
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
}
.perf-table col.c-label { width: 4.667%; }
.perf-table col.c-month { width: calc((100% - 4.667% - 6.333%) / 12); }
.perf-table col.c-total { width: 6.333%; }
.perf-table th, .perf-table td {
  padding: 9px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.perf-table thead th {
  display: table-cell;
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
}
.perf-table thead th:last-child { text-align: center; }
.perf-table td { color: var(--ink); border-bottom: 1px solid var(--line); }
.perf-table td:first-child { padding: 0; text-align: center; background: transparent !important; }
.perf-table td:last-child { text-align: center; background: transparent !important; font-weight: 600; }
.perf-table .row-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
}
.perf-table tbody tr[data-key="defi"] td:not(:first-child):not(:last-child) { background: color-mix(in oklab, #3b82f6 22%, var(--paper)); }
.perf-table tbody tr[data-key="gami"] td:not(:first-child):not(:last-child) { background: color-mix(in oklab, #ef4444 22%, var(--paper)); }
.perf-table tbody tr[data-key="ig11"] td:not(:first-child):not(:last-child) { background: color-mix(in oklab, #eab308 28%, var(--paper)); }
.perf-table tbody tr:last-child td { border-bottom: none; }

/* Footer */
.foot {
  padding: 64px 40px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-strong);
  gap: 40px;
}
.foot-brand { --accent: #1f3a8a; display: flex !important; align-items: center; gap: 12px; padding: 0 !important; font-size: inherit !important; }
.foot-brand .brand-mark { width: 32px; height: 32px; border-color: var(--ink); }
.foot-brand .brand-mark::after { background: var(--accent); }
.foot-brand .brand-text .name { font-size: 28px; }
.foot-brand .brand-text .name em { color: var(--accent); }
.foot-brand .brand-text .sub { font-size: 11px; letter-spacing: 0.18em; color: var(--ink-2); margin-top: 5px; }
.foot-addr { font-size: 11px; line-height: 1.7; color: var(--ink-2); letter-spacing: 0.04em; text-align: right; }
.foot h4 { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.foot a { display: block; color: var(--ink); text-decoration: none; font-size: 13px; padding: 4px 0; }
.foot a:hover { color: var(--ox); }
.disclaimer {
  padding: 32px 40px 56px; font-size: 11px; line-height: 1.7; color: var(--ink-3);
  border-top: 1px solid var(--line);
}

/* ─── Hamburger / Mobile nav ────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  width: 36px; height: 36px;
}
.nav-burger span {
  display: block; height: 1.5px; width: 24px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; inset: 0; top: 57px; z-index: 49;
  background: var(--paper);
  flex-direction: column; padding: 32px 24px;
  border-top: 1px solid var(--line);
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.nav-mobile a:hover { color: var(--ox); }
.nav-mobile .nav-mobile-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* 1100px — large tablet */
@media (max-width: 1100px) {
  .nav-inner { padding: 16px 24px; }
  .shell, .shell-narrow { padding: 0 24px; }
  .section-head { padding: 0 24px; }
  .subhead { padding: 0 24px; }
  .chart-head { padding: 0 24px 20px; }
  .chart-legend { padding: 20px 24px 24px; }
  .hero-inner { padding: 0 24px; }
  .cta-strip { padding: 64px 24px; }
  .foot { padding: 48px 24px 32px; }
  .disclaimer { padding: 24px 24px 40px; }

  .hero-grid { gap: 40px; }
  .hero-yield .hy-big { font-size: 96px; }
  .mandate { gap: 48px; }
  .gp { grid-template-columns: 140px 1fr; }
  .gp .portrait { width: 140px; height: 180px; }
}

/* 900px — tablet */
@media (max-width: 900px) {
  /* Nav */
  .nav-links { display: none; }
  .btn-ghost { display: none; }
  .nav-cta a.btn { display: none; }
  .nav-cta .btn.red { display: none; }
  .nav-burger { display: flex; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { height: auto !important; min-height: 0; }
  .hero-inner { padding: 48px 24px; }
  .hero .meta-row { margin-bottom: 32px; flex-wrap: wrap; gap: 8px; }
  .hero h1 { font-size: clamp(44px, 8vw, 68px); }
  .hero-yield { max-width: 480px; }

  /* Trust: 2×2 */
  .trust { grid-template-columns: 1fr 1fr; }
  .trust-cell:nth-child(even) { border-right: none; }
  .trust-cell:nth-child(1),
  .trust-cell:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* Section head */
  .section-head { grid-template-columns: 1fr; gap: 16px; }

  /* Mandate */
  .mandate { grid-template-columns: 1fr; gap: 40px; }

  /* KPI grid: 2 col */
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid .kpi:nth-child(3n)   { border-right: 1px solid var(--line); }
  .kpi-grid .kpi:nth-child(2n)   { border-right: none; }
  .kpi-grid .kpi:nth-last-child(-n+2) { border-bottom: none; }
  .kpi-grid .kpi:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }

  /* Cards */
  .cards.cols-3 { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--line); min-height: 0; }
  .card:last-child { border-bottom: none; }

  /* GPs */
  .gp-row { grid-template-columns: 1fr; }
  .gp { border-right: none; border-bottom: 1px solid var(--line); }
  .gp:last-child { border-bottom: none; }

  /* Team: 2 col */
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card:nth-child(4n)   { border-right: 1px solid var(--line); }
  .team-card:nth-child(2n)   { border-right: none; }

  /* GP: stack vertically, small portrait like team cards */
  .gp { grid-template-columns: 1fr; }
  .gp .portrait { width: 200px; height: 240px; }
  .gp .portrait img { object-position: center 20%; }

  /* Perf table scrollable */
  .perf-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Terms: 2+2 cols, hide gap */
  .terms { grid-template-columns: minmax(100px,auto) 1fr minmax(100px,auto) 1fr; }
  .terms .gap { display: none; }
  .terms .v.mid { border-right: 1px solid var(--line-strong); }

  /* CTA strip */
  .cta-strip { grid-template-columns: 1fr; gap: 24px; }

  /* Footer */
  .foot { flex-wrap: wrap; gap: 32px; }
  .foot-addr { text-align: left; }
}

/* 600px — mobile */
@media (max-width: 600px) {
  .nav-inner { padding: 12px 20px; }
  .shell, .shell-narrow { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-head { padding: 0 20px; gap: 12px; }
  .subhead { padding: 0 20px; margin-top: 28px; }
  .hero-inner { padding: 36px 20px; }
  .chart-head { padding: 0 20px 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .chart-legend { padding: 16px 20px; flex-wrap: wrap; gap: 10px 24px; }
  .cta-strip { padding: 48px 20px; }
  .foot { padding: 40px 20px 28px; flex-direction: column; }
  .disclaimer { padding: 20px 20px 40px; }

  /* Hero */
  .hero-yield .hy-big { font-size: 72px; }
  .hero .meta-row { display: none; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }

  /* Trust: 1 col */
  .trust { grid-template-columns: 1fr; }
  .trust-cell { border-right: none !important; }
  .trust-cell:not(:last-child) { border-bottom: 1px solid var(--line); }

  /* Team: 1 col */
  .team-grid { grid-template-columns: 1fr; }
  .team-card { border-right: none; }
  .team-card:nth-child(4n) { border-right: none; }

  /* GP: already stacked from 900px */

  /* Perf table: already scrollable from 900px */

  /* KPI grid: 1 col */
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid .kpi { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .kpi-grid .kpi:last-child { border-bottom: none !important; }

  /* Terms: 2 col (key + value), hide gap + collapse right pair */
  .terms { grid-template-columns: 130px 1fr; }
  .terms .gap { display: none; }
  .terms .k, .terms .v { border-right: none; }
  .terms .v.mid { border-right: none; }
  .terms > *:nth-last-child(-n+2) { border-bottom: none; }

  /* Terms: key+value on same line, left col first then right col */
  .terms { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
  .terms .term-pair { display: flex; flex-direction: row; align-items: baseline; order: var(--mo, 0); border-bottom: 1px solid var(--line); gap: 0; }
  .terms .term-pair:last-of-type { border-bottom: none; }
  .terms .gap { display: none; }
  .terms .k { border-right: none; border-bottom: none; width: 130px; flex-shrink: 0; padding: 11px 12px; font-size: 9px; }
  .terms .v { border-right: none; border-bottom: none; flex: 1; padding: 11px 12px; font-size: 13px; }
  .terms .v.mid { border-right: none; }

  /* Section h2 */
  .section-head h2 { font-size: clamp(28px, 7vw, 38px); }
  .cta-strip h2 { font-size: clamp(28px, 7vw, 40px); }
}

/* Tweaks */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: var(--paper); border: 1px solid var(--ink);
  padding: 16px 18px; width: 240px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.tweaks .tw-head { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em; color: var(--ink-2); margin-bottom: 12px; }
.tweaks label { display: block; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2); text-transform: uppercase; margin: 12px 0 6px; }
.tweaks .seg { display: flex; border: 1px solid var(--line-strong); }
.tweaks .seg button {
  flex: 1; padding: 8px 8px; border: none; background: transparent; cursor: pointer;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
  border-right: 1px solid var(--line-strong);
}
.tweaks .seg button:last-child { border-right: none; }
.tweaks .seg button.on { background: var(--ink); color: var(--paper); }
