/* ================================================================
   MARKET INTELLIGENCE INCOME FUND — INSTITUTIONAL DESIGN SYSTEM
   ================================================================ */

/* ================================================================
   IPARTNERS BRAND TOKENS
   Ink Navy + Electric Teal + Dark Teal + White
   Funnel Sans family — Bold for headlines, Light for body
   WCAG note: Electric Teal #00F5D1 is for use ONLY on dark
   backgrounds (Ink Navy / Black). Dark Teal #057676 is the
   accent for light backgrounds (passes AA on white).
   ================================================================ */
:root {
  /* ----- iPartners Core Palette ----- */
  --ink: #051C2B;           /* iPartners Ink Navy */
  --ink-2: #0A2A3E;         /* slightly lighter for surfaces */
  --ink-3: #103349;         /* hover/elevated surface */
  --ink-4: #02131F;         /* deeper for footer/CTA bands */
  --paper: #FFFFFF;         /* white background */
  --paper-2: #F7F8F9;       /* near-white subtle differentiator */
  --paper-3: #EEEEEE;       /* iPartners Light Grey */
  --silver: #C9CDD3;
  --silver-2: #6B7480;      /* slightly darker for better contrast on white */
  --rule: rgba(5, 28, 43, 0.14);
  --rule-on-dark: rgba(255, 255, 255, 0.18);
  /* Electric Teal — USE ON DARK BACKGROUNDS ONLY */
  --teal: #00F5D1;
  --teal-2: #59FAE0;
  /* Dark Teal — accent for LIGHT BACKGROUNDS (passes AA) */
  --teal-dark: #057676;
  /* Legacy aliases kept so existing rules don't break; remapped to brand tokens */
  --gold: var(--teal-dark);   /* default = dark teal, safe on white */
  --gold-2: var(--teal);      /* electric teal, used on dark sections */
  --positive: #057676;        /* re-use dark teal for positive numbers (brand-aligned) */
  --negative: #B23A48;

  /* ----- Type ----- */
  --font-sans: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Funnel Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Bumped sizes for legibility — smallest body text now 14px+ */
  --fs-eyebrow: 0.96rem;     /* lifted for readability on navy */
  --fs-body: 1.125rem;       /* was 1.0625 — slightly larger body */
  --fs-lead: 1.32rem;
  --fs-h4: 1.32rem;
  --fs-h3: 1.85rem;
  --fs-h2: clamp(2.1rem, 3.6vw, 3.1rem);
  --fs-h1: clamp(2.8rem, 5.6vw, 4.9rem);
  --fs-hero: clamp(3.1rem, 7.2vw, 6.2rem);
  --fs-fine: 0.92rem;        /* was 0.78 — disclosures readable */

  /* ----- Spacing ----- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --max-w: 1280px;
  --max-w-narrow: 880px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 300;                /* Funnel Sans Light for body per brand guidelines */
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; }
hr { border: 0; height: 1px; background: var(--rule); margin: var(--space-5) 0; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-4); }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-4); }
.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--loose { padding: var(--space-8) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink-2 { background: var(--ink-4); color: var(--paper); }
.section--paper-2 { background: var(--paper-2); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-3);
  display: inline-block;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.section--ink .eyebrow, .section--ink-2 .eyebrow, .page-head .eyebrow, .hero .eyebrow {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.section--ink .eyebrow::before, .section--ink-2 .eyebrow::before, .page-head .eyebrow::before, .hero .eyebrow::before {
  background: var(--teal); /* electric teal hairline */
  width: 36px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;               /* Funnel Sans Bold per brand */
  line-height: 0.98;              /* Tight 95% leading per brand */
  letter-spacing: -0.022em;       /* Tracking -40pt equivalent */
  margin: 0 0 var(--space-3);
  color: inherit;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.display-hero { font-size: var(--fs-hero); line-height: 0.95; letter-spacing: -0.024em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
  font-weight: 400;               /* Regular for intro paragraphs per brand */
}
.section--ink .lead, .section--ink-2 .lead { color: rgba(255,255,255,0.85); }
.page-head .lead, .hero .lead { color: rgba(255,255,255,0.9); }
.perf-band .lead { color: rgba(255,255,255,0.9); }
/* Asset icons on dark sections — use Electric Teal for visibility on Ink Navy */
.section--ink .asset__icon, .section--ink-2 .asset__icon { color: var(--teal); }

p { margin: 0 0 var(--space-3); }
.fineprint {
  font-size: var(--fs-fine);
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.6;
  font-weight: 300;
}
.mono { font-family: var(--font-mono); }
.numeric { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Top bar (utility) ---------- */
.topbar {
  background: var(--ink-4);
  color: var(--paper);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.55rem var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.topbar a { color: rgba(247,245,240,0.78); }
.topbar a:hover { color: var(--gold-2); }
.topbar__right { display: flex; gap: var(--space-3); align-items: center; }
.topbar__sep { color: rgba(247,245,240,0.24); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(247,245,240,0.06);
  transition: background .25s var(--ease);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--paper);
}
/* Brand mark — serif "Mi" monogram on navy, replacing the prior teal-bordered mark.
   Uses Playfair Display Bold Italic to match the supplied logo asset. */
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);                   /* Ink Navy tile */
  color: #FFFFFF;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  border-radius: 2px;
  padding-bottom: 2px;                      /* optical centring of serif glyphs */
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.55);
  margin-top: 4px;
  font-weight: 400;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav__list {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__list a {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: rgba(247,245,240,0.82);
  font-weight: 400;
  position: relative;
  padding: 0.4rem 0;
}
.nav__list a:hover, .nav__list a.is-active {
  color: var(--paper);
}
.nav__list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--teal);              /* Electric Teal — bold signal on dark navy nav */
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__cta:hover { background: var(--teal-2); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(247,245,240,0.2);
  color: var(--paper);
  width: 44px; height: 44px;
  padding: 0;
}
.nav__toggle span { display: block; width: 18px; height: 1px; background: var(--paper); margin: 4px auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
/* Primary CTA — Ink Navy on white backgrounds (highest contrast, AA+) */
.btn--gold { background: var(--ink); color: var(--paper); }
.btn--gold:hover { background: var(--teal-dark); color: var(--paper); }
/* Teal CTA — Electric Teal on dark backgrounds only (high impact) */
.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { background: var(--teal-2); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--ink);     /* clean solid ink navy */
  border-top: 3px solid var(--teal); /* electric teal hairline at top */
  z-index: -2;
}
.hero__pattern { display: none; } /* removed AI-looking grid */
.hero__skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30vh;
  background: linear-gradient(to top, rgba(10,31,61,0.85) 0%, transparent 100%);
  z-index: -1;
}
.hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 400;
}
.hero__sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(247,245,240,0.78);
  max-width: 56ch;
  margin-top: var(--space-3);
}
.hero__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.hero__meta {
  position: absolute;
  top: var(--space-6);
  right: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.55);
  text-align: right;
  line-height: 1.8;
}

/* Page header (non-hero pages) */
.page-head {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.page-head__bg {
  position: absolute;
  inset: 0;
  background: var(--ink);   /* clean solid ink navy */
  border-top: 3px solid var(--teal); /* electric teal hairline at top */
  z-index: 0;
}
.page-head__inner { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 22ch;
  margin-top: var(--space-2);
}

/* ---------- Performance band ---------- */
.perf-band {
  background: var(--ink-4);
  color: var(--paper);
  border-top: 1px solid var(--gold);
}
.perf-band__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: var(--space-4);
  align-items: center;
}
.perf-band__label {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.6);
  margin-bottom: 0.5rem;
  display: block;
}
.perf-band__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
  color: var(--paper);
}
.perf-stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-2);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: block;
}
.perf-stat .num small {
  font-size: 1rem;
  color: rgba(247,245,240,0.55);
  margin-left: 0.25rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* ---------- Stat blocks ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.stat {
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat:last-child { border-right: none; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: var(--space-2);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.stat__desc {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.45;
  font-weight: 300;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--rule);
  background: var(--paper-2);
  position: relative;
  transition: background .25s var(--ease);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--paper); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-3);
}
.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
.pillar p {
  font-size: 0.95rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Asset class cards ---------- */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.asset {
  background: var(--paper-2);
  padding: var(--space-4);
  border: 1px solid var(--rule);
  position: relative;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.section--ink .asset, .section--ink-2 .asset {
  background: rgba(247,245,240,0.04);
  border-color: rgba(247,245,240,0.12);
}
.asset:hover { transform: translateY(-4px); border-color: var(--gold); }
.asset__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.asset h3 { font-size: 1.35rem; margin-bottom: var(--space-2); }
.asset p { font-size: 0.92rem; line-height: 1.55; margin: 0; color: var(--ink-3); }
.section--ink .asset p, .section--ink-2 .asset p { color: rgba(247,245,240,0.7); }

/* ---------- Partners / Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section--ink .trust-strip, .section--ink-2 .trust-strip {
  border-color: rgba(247,245,240,0.12);
}
.trust-strip__item {
  text-align: center;
}
.trust-strip__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 0.5rem;
}
.section--ink .trust-strip__role, .section--ink-2 .trust-strip__role {
  color: rgba(247,245,240,0.55);
}
.trust-strip__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.section--ink .trust-strip__name, .section--ink-2 .trust-strip__name { color: var(--paper); }

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  align-items: end;
}
.section-head h2 { max-width: 18ch; margin: 0; }
.section-head__meta { text-align: right; }

/* ---------- Two-up split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.split--center { align-items: center; }

/* ---------- Process / Numbered list ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.process__step {
  padding: var(--space-5) var(--space-4);
  border-left: 1px solid var(--rule);
  position: relative;
}
.process__step:first-child { border-left: none; }
.section--ink .process__step, .section--ink-2 .process__step {
  border-left-color: rgba(247,245,240,0.16);
}
.process__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-3);
  font-weight: 400;
}
.process__step h3 { font-size: 1.35rem; margin-bottom: var(--space-2); }
.process__step p { font-size: 0.95rem; color: var(--ink-3); line-height: 1.55; margin: 0; }
.section--ink .process__step p, .section--ink-2 .process__step p { color: rgba(247,245,240,0.7); }

/* ---------- Performance table ---------- */
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.perf-table thead th {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  text-align: right;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.perf-table thead th:first-child { text-align: left; }
.perf-table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: right;
  color: var(--ink);
}
.perf-table tbody td:first-child {
  text-align: left;
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 400;
}
.perf-table tbody tr:hover { background: var(--paper-2); }
.perf-table .positive { color: var(--positive); }
.perf-table .negative { color: var(--negative); }
.perf-table__caption {
  text-align: left;
  caption-side: top;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: var(--space-2);
}

.perf-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  margin-bottom: var(--space-5);
}
.perf-summary__cell {
  padding: var(--space-4);
  border-right: 1px solid var(--rule);
}
.perf-summary__cell:last-child { border-right: none; }
.perf-summary__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: var(--space-2);
}
.perf-summary__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.perf-summary__value.positive { color: var(--positive); }

/* ---------- Insights ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.insight {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.insight:hover { transform: translateY(-4px); border-color: var(--gold); }
.insight__img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ink-3), var(--ink));
  background-image: url('../img/insight-card-1.svg?v=20260617n');
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  position: relative;
  overflow: hidden;
}
/* Cycle through 4 illustrations across the insights grid */
.insights-grid .insight:nth-child(4n+1) .insight__img { background-image: url('../img/insight-card-1.svg?v=20260617n'); }
.insights-grid .insight:nth-child(4n+2) .insight__img { background-image: url('../img/insight-card-2.svg?v=20260617n'); }
.insights-grid .insight:nth-child(4n+3) .insight__img { background-image: url('../img/insight-card-3.svg?v=20260617n'); }
.insights-grid .insight:nth-child(4n)   .insight__img { background-image: url('../img/insight-card-4.svg?v=20260617n'); }
/* Featured card uses Investment-pathways illustration (Section 5.1 motif).
   Compound class selector beats the nth-child rule above on specificity. */
.insights-grid .insight.insight--featured .insight__img { background-image: url('../img/insight-card-4.svg?v=20260617n'); }
.insight__body { padding: var(--space-3) var(--space-4) var(--space-4); }
.insight__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.insight h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
  line-height: 1.2;
}
.insight p {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0 0 var(--space-3);
}
.insight__readmore {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: auto;
}

/* Featured insight */
.insight--featured {
  grid-column: span 2;
  flex-direction: row;
}
.insight--featured .insight__img { flex: 1; aspect-ratio: auto; }
.insight--featured .insight__body { flex: 1; padding: var(--space-5); display: flex; flex-direction: column; justify-content: center; }
.insight--featured h3 { font-size: 1.9rem; }
.insight--featured p { font-size: 1rem; }

/* ---------- Forms / Documents ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.doc {
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s var(--ease);
}
.doc:nth-child(even) { border-right: none; }
.doc:hover { background: var(--paper-2); }
.doc__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 0.5rem;
}
.doc__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.doc__desc { font-size: 0.9rem; color: var(--ink-3); margin: 0; line-height: 1.45; }
.doc__arrow {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.doc:hover .doc__arrow { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: var(--space-5); }
.faq-group__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
}
.faq {
  border-bottom: 1px solid var(--rule);
}
.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.3;
}
.faq__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.faq[open] .faq__icon { transform: rotate(45deg); }
.faq__a {
  padding: 0 0 var(--space-3);
  font-size: 0.98rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.faq__a p { margin: 0 0 var(--space-2); }
.faq__a p:last-child { margin: 0; }
.faq__a a { color: var(--gold); border-bottom: 1px solid currentColor; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.form-grid label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 0.5rem;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s var(--ease);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-grid textarea { min-height: 160px; resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-4);
  color: var(--paper);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,245,209,0.16), transparent 60%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; max-width: 16ch; }
.cta-band__actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-7) 0 var(--space-4);
  font-size: 0.92rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(247,245,240,0.12);
}
.footer__brand { max-width: 320px; }
.footer__brand p { font-size: 0.92rem; color: rgba(247,245,240,0.65); line-height: 1.6; margin-top: var(--space-3); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { color: rgba(247,245,240,0.75); font-size: 0.92rem; }
.footer__col a:hover { color: var(--gold-2); }
.footer__bottom {
  padding-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: start;
}
.footer__legal {
  font-size: 0.78rem;
  color: rgba(247,245,240,0.55);
  line-height: 1.7;
}
.footer__legal p { margin: 0 0 var(--space-2); }
.footer__legal hr { background: rgba(247,245,240,0.12); margin: var(--space-3) 0; }
.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.55);
  text-align: right;
}
.footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(247,245,240,0.18);
  color: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer__social a:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Misc ---------- */
.apir-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.apir-strip strong { color: var(--teal-dark); letter-spacing: 0.06em; font-weight: 700; }

/* "Part of iPartners" button — solid Ink Navy, prominent */
.partner-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(5, 28, 43, 0.12);
}
.partner-btn:hover {
  background: var(--ink-2);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 28, 43, 0.22);
}
.partner-btn__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  flex-shrink: 0;
}
.partner-btn__logo {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
/* iPartners wordmark — real HTML text, no SVG paths, no stretching.
   Font-family preloaded in <head>, so Funnel Sans 800 is always available. */
.partner-btn__logo .ipartners {
  display: inline-flex;
  align-items: baseline;       /* i-stem bottom sits on the wordmark baseline */
  font-family: 'Funnel Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  white-space: nowrap;
  flex-shrink: 0;
}
.partner-btn__logo .ipartners__i {
  position: relative;
  display: inline-block;
  width: 0.18em;          /* matches the vertical stem weight of 'P' */
  height: 0.72em;         /* matches cap-height of Funnel Sans 800 — no overshoot */
  margin-right: 0.06em;
  flex-shrink: 0;
}
.partner-btn__logo .ipartners__i::before {
  /* Stem of the 'i' — flat-bottomed bar, rises to x-height */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5em;
  background: currentColor;
  border-radius: 0;            /* fully square corners — matches the squared P stem */
}
.partner-btn__logo .ipartners__i-dot {
  /* Teal disc tittle — sits flush with cap-height, just above the stem */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.18em;
  height: 0.18em;
  background: var(--teal);
  border-radius: 50%;
}
.partner-btn__logo .ipartners__word {
  display: inline-block;
  flex-shrink: 0;
}
.partner-btn__logo .ipartners__stop {
  /* Trailing teal period dot */
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--teal);
  margin-left: 0.04em;
  margin-bottom: 0.04em;
  flex-shrink: 0;
}
.partner-btn__arrow {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.partner-btn:hover .partner-btn__arrow { transform: translateX(6px); }

.divider-rule {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.divider-rule::before, .divider-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider-rule__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-2);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-2);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.7rem;
}

.scrollspy { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars, .stats, .assets-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2), .stat:nth-child(2) { border-right: none; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .insight--featured { grid-column: span 2; flex-direction: column; }
  .insight--featured .insight__img { aspect-ratio: 16/9; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .perf-band__inner { grid-template-columns: 1fr 1fr 1fr; }
  .perf-band__title-cell { grid-column: 1 / -1; }
  .perf-summary { grid-template-columns: repeat(2, 1fr); }
  .perf-summary__cell:nth-child(2) { border-right: none; }
  .perf-summary__cell:nth-child(1), .perf-summary__cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .process { grid-template-columns: 1fr; }
  .process__step { border-left: none; border-top: 1px solid var(--rule); }
  .process__step:first-child { border-top: none; }
}

@media (max-width: 720px) {
  :root { --space-7: 4rem; --space-8: 5rem; }
  .topbar { display: none; }
  .nav__list { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .site-header[data-open="true"] .nav__list {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
    border-bottom: 1px solid var(--rule-on-dark);
  }
  .hero__inner { padding: var(--space-6) var(--space-3) var(--space-5); }
  .hero__meta { display: none; }
  .stats, .pillars, .assets-grid, .docs-grid, .form-grid { grid-template-columns: 1fr; }
  .stat, .pillar, .doc { border-right: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .insight--featured { grid-column: span 1; }
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
  .section-head { grid-template-columns: 1fr; }
  .section-head__meta { text-align: left; }
  .perf-band__inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .perf-summary { grid-template-columns: 1fr; }
  .perf-summary__cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { grid-template-columns: 1fr; }
  .footer__copy { text-align: left; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .perf-table { font-size: 0.85rem; }
  .perf-table thead th, .perf-table tbody td { padding: 0.7rem 0.5rem; }
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Content is always visible. JS adds a brief entrance animation, but never gates layout. */
.reveal { animation: reveal-fade-in 0.7s var(--ease) both; }
@keyframes reveal-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}
