/* ═══════════════════════════════════════════════════
   MCNAMARA FAMILY INVESTMENTS — Shared Stylesheet
   Muji Research aesthetic
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg:       #F4F1EB;
  --bg-2:     #EBE6DD;
  --bg-3:     #DED8CE;
  --ink:      #0F0D0B;
  --ink-2:    #292320;
  --ink-3:    #565049;
  --ink-4:    #9E9790;
  --rule:     rgba(15,13,11,.18);
  --rule-2:   rgba(15,13,11,.10);

  --ff-disp:  'Noto Serif JP', Georgia, serif;
  --ff-ui:    'Noto Sans JP', system-ui, sans-serif;
  --ff-mono:  'JetBrains Mono', monospace;

  --t-xs:    0.694rem;
  --t-sm:    0.833rem;
  --t-base:  1rem;
  --t-md:    1.2rem;
  --t-lg:    1.44rem;
  --t-xl:    1.728rem;
  --t-2xl:   2.074rem;
  --t-3xl:   2.488rem;
  --t-4xl:   2.986rem;

  --sp-1:  4px;  --sp-2:  8px;   --sp-3:  12px;  --sp-4:  16px;
  --sp-5:  24px; --sp-6:  32px;  --sp-7:  48px;  --sp-8:  64px;
  --sp-9:  96px; --sp-10: 128px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: var(--sp-5); top: var(--sp-5);
  width: auto; height: auto;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  z-index: 99999;
}

.honeypot { display: none; }


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-ui);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis: none;
}

::selection { background: var(--ink); color: var(--bg); }

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
}

/* ── CURSOR ── */

/* ── SCROLL PROGRESS ── */
#progress {
  position: fixed; top: 0; left: 0;
  height: 1px; width: 0%;
  background: var(--ink);
  z-index: 9997;
  opacity: .3;
  transition: width .1s linear;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--sp-8);
  height: 64px;
  background: rgba(244,241,235,.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--rule); }

.nav-logo {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
  line-height: 1;
}

.nav-links {
  display: flex; gap: var(--sp-6);
  list-style: none;
  justify-self: center;
  margin: 0; padding: 0;
  align-items: center;
}
.nav-links a {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  line-height: 1;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 100%;
  height: 1px; background: var(--ink);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: var(--sp-2) var(--sp-5);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  transition: opacity .25s;
  white-space: nowrap;
  justify-self: end;
}
.nav-cta:hover { opacity: .72; }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: none; border: none;
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s;
}

.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: var(--sp-8) var(--sp-6);
  z-index: 999;
  flex-direction: column; gap: var(--sp-5);
  border-top: 1px solid var(--rule);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-disp);
  font-size: var(--t-2xl);
  font-weight: 200;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--sp-5);
}

/* ═══════════════════════════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════════════════════════ */
.page-header {
  padding-top: 64px;
  border-bottom: 1px solid var(--rule);
}
.page-header-inner {
  padding: var(--sp-10) var(--sp-10) var(--sp-8);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-8);
}
.page-kicker {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-4);
}
.page-kicker::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--ink-3); flex-shrink: 0;
}
.page-h1 {
  font-family: var(--ff-disp);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.page-h1 em { font-style: italic; font-weight: 300; }
.page-lead {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 540px;
}

/* ═══════════════════════════════════════════════════
   SHARED LAYOUT
═══════════════════════════════════════════════════ */
.section {
  padding: var(--sp-10) var(--sp-10);
  border-bottom: 1px solid var(--rule);
}
.section:last-child { border-bottom: none; }

.sec-header {
  display: flex; align-items: center; gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.sec-tag {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.sec-rule { flex: 1; height: 1px; background: var(--rule); }

.sec-h2 {
  font-family: var(--ff-disp);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}
.sec-h2 em { font-style: italic; font-weight: 300; }

.sec-lead {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn-primary {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 15px var(--sp-7);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  transition: opacity .25s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--bg);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
  mix-blend-mode: difference;
}
.btn-primary:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-secondary {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 14px var(--sp-7);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  transition: border-color .25s, color .25s;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-text {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  transition: color .25s;
}
.btn-text:hover { color: var(--ink); }
.btn-text::after { content: '→'; }

/* ═══════════════════════════════════════════════════
   CTA STRIP (used across inner pages)
═══════════════════════════════════════════════════ */
.cta-strip {
  padding: var(--sp-10) var(--sp-10);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  border-bottom: 1px solid var(--rule);
}
.cta-strip-text {
  font-family: var(--ff-disp);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.cta-strip-text em { font-style: italic; font-weight: 300; }
.cta-strip-actions { display: flex; gap: 2px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   PORTFOLIO GRID
═══════════════════════════════════════════════════ */
.portfolio-filters {
  display: flex; gap: 2px; flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.filter-btn {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 1px solid var(--rule);
  padding: 7px 16px;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
}

.port-card {
  background: var(--bg);
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  transition: background .25s var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.port-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 100%;
  height: 1px; background: var(--ink);
  transition: right .4s var(--ease-out);
}
.port-card:hover::before { right: 0; }
.port-card:hover { background: var(--bg-2); }
.port-card:hover .port-arrow { opacity: 1; transform: translate(0,0); }
.port-card:hover .port-logo { opacity: .9; filter: brightness(0); }

/* Logo area — generous height, left-aligned, starts the card */
.port-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-5);
}
.port-logo {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
  opacity: .55;
  transition: opacity .25s;
}

/* Fallback: company name shown when logo fails to load or isn't present */
.port-name {
  font-family: var(--ff-disp);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}

.port-desc {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-5);
}
.port-sector {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
}
.port-arrow {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  font-size: 14px; color: var(--ink-2);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all .3s var(--ease-out);
}
/* Exit / acquisition badge */
.port-exit-badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule-light);
  padding: 2px 7px;
  margin-bottom: var(--sp-3);
  margin-top: calc(-1 * var(--sp-2));
  width: max-content;
}

/* ═══════════════════════════════════════════════════
   FUND INVESTMENTS (LP section)
═══════════════════════════════════════════════════ */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
}
.fund-item {
  background: var(--bg);
  padding: var(--sp-7) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
  text-decoration: none;
  transition: background .2s;
}
.fund-item:hover { background: var(--bg-2); }
.fund-name {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  color: var(--ink);
}
.fund-focus {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════
   CO-INVESTORS
═══════════════════════════════════════════════════ */
.coinvest-row {
  display: flex; gap: 1px;
  background: var(--rule);
}
.coinvest-item {
  flex: 1; background: var(--bg);
  padding: var(--sp-7) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  text-decoration: none;
  transition: background .2s;
}
.coinvest-item:hover { background: var(--bg-2); }
.coinvest-logo {
  height: 18px;
  object-fit: contain; object-position: left;
  filter: brightness(0);
  opacity: .25;
  transition: opacity .25s;
}
.coinvest-item:hover .coinvest-logo { opacity: .55; }
.coinvest-name {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════
   HOW WE INVEST CARDS
═══════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.how-card {
  background: var(--bg);
  padding: var(--sp-9) var(--sp-7);
  position: relative;
}
.how-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.how-card:hover::after { transform: scaleX(1); }
.how-num {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-6);
}
.how-card h3 {
  font-family: var(--ff-disp);
  font-size: var(--t-xl);
  font-weight: 200;
  line-height: 1.25;
  margin-bottom: var(--sp-4);
}
.how-card h3 em { font-style: italic; font-weight: 300; }
.how-card p {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
}
.how-large {
  font-family: var(--ff-disp);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 200;
  color: var(--ink);
  margin-top: var(--sp-6);
  display: block; line-height: 1;
  letter-spacing: -.02em;
}

/* ═══════════════════════════════════════════════════
   THESIS / COMPARE
═══════════════════════════════════════════════════ */
.thesis-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-bottom: var(--sp-8);
}
.thesis-col {
  background: var(--bg);
  padding: var(--sp-8) var(--sp-7);
}
.thesis-col-num {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-5);
}
.thesis-col h3 {
  font-family: var(--ff-disp);
  font-size: var(--t-xl);
  font-weight: 200;
  line-height: 1.25;
  margin-bottom: var(--sp-4);
}
.thesis-col h3 em { font-style: italic; font-weight: 300; }
.thesis-col p {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-2);
}

.compare { border: 1px solid var(--rule); }
.compare-head {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.compare-th {
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--rule);
}
.compare-th:last-child { border-right: none; }
.compare-th.us { color: var(--ink); background: var(--bg-2); }
.compare-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--rule-2);
  transition: background .2s;
}
.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: var(--bg-2); }
.compare-td {
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: var(--ink-2);
  border-right: 1px solid var(--rule-2);
  display: flex; align-items: center;
}
.compare-td:last-child { border-right: none; }
.compare-td.attr {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-td.us { color: var(--ink); font-weight: 400; }

/* ═══════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}
.faq-item {
  background: var(--bg);
  padding: var(--sp-7);
  transition: background .2s;
}
.faq-item:hover { background: var(--bg-2); }
.faq-q {
  font-family: var(--ff-disp);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.faq-a {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
}
.faq-a a { color: var(--ink); text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top center;
  filter: grayscale(.12) contrast(1.04) sepia(.06);
  display: block;
}
.about-img-wrap::after {
  content: '';
  position: absolute; bottom: -12px; right: -12px;
  width: 64px; height: 64px;
  border-right: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  pointer-events: none;
}
.about-caption {
  position: absolute; bottom: 0; left: 0;
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 6px 12px;
}
.about-body p {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: var(--sp-5);
}
.about-body p strong { color: var(--ink); font-weight: 400; }
.about-body p:last-child { margin-bottom: 0; }

.tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.tag {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--ink-2); color: var(--ink); }

/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.contact-h {
  font-family: var(--ff-disp);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: var(--sp-6);
}
.contact-h em { font-style: italic; font-weight: 300; }
.contact-p {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}
.contact-p strong { color: var(--ink); font-weight: 400; }
.contact-paths { display: flex; flex-direction: column; gap: 1px; margin-top: var(--sp-7); }
.contact-path {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  text-decoration: none;
  background: var(--bg);
  transition: border-color .25s, background .25s;
}
.contact-path:hover { border-color: var(--ink); background: var(--bg-2); }
.contact-path-label {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.contact-path-title {
  font-family: var(--ff-disp);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--ink);
}
.contact-path-arrow { font-size: 18px; color: var(--ink-2); }

.contact-form { display: flex; flex-direction: column; gap: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  padding: 13px 15px;
  outline: none;
  transition: border-color .25s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--ink); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-4); }
.form-field select option { background: var(--bg); }
.form-submit {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: none;
  padding: 15px var(--sp-7);
  transition: opacity .25s;
  align-self: flex-start;
  margin-top: var(--sp-3);
  display: inline-flex; align-items: center; gap: var(--sp-3);
}
.form-submit:hover { opacity: .72; }

/* Success state */
.form-success {
  display: none;
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
  padding: var(--sp-7);
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.form-success strong { color: var(--ink); font-weight: 400; }

/* Error state */
.form-error {
  display: none;
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: #c0392b;
  margin-top: var(--sp-4);
}
.form-error a { color: inherit; text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer { border-top: 1px solid var(--rule); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}
.footer-col {
  background: var(--bg);
  padding: var(--sp-9) var(--sp-7);
}
.footer-brand {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-desc {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-5);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-7);
  border-top: 1px solid var(--rule);
}
.footer-copy {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  color: var(--ink-3);
}
.footer-social { display: flex; gap: var(--sp-6); }
.footer-social a {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
}
.footer-social a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════
   CELL GRIDS — 1px-gap rule-background grids
   Used: sectors, credentials, terms, quick-facts
═══════════════════════════════════════════════════ */
.cell-grid-2,
.cell-grid-3,
.cell-grid-4 {
  gap: 1px;
  background: var(--rule);
  display: grid;
}
.cell-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cell-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cell-grid-4 { grid-template-columns: repeat(4, 1fr); }

.cell {
  background: var(--bg);
  padding: var(--sp-7);
}

.cell-label {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-4);
}

.cell-title {
  font-family: var(--ff-disp);
  font-size: var(--t-xl);
  font-weight: 200;
  line-height: 1.25;
  margin-bottom: var(--sp-3);
}
.cell-title em { font-style: italic; font-weight: 300; }

.cell-title--lg {
  font-family: var(--ff-disp);
  font-size: var(--t-2xl);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-3);
}

.cell-title--xl {
  font-family: var(--ff-disp);
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-4);
}

.cell-body {
  font-family: var(--ff-disp);
  font-size: var(--t-sm);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   TWO-COL GRID
═══════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
}
.two-col-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-top: var(--sp-3);
}
.two-col-body .btn-secondary { align-self: flex-start; }

/* ═══════════════════════════════════════════════════
   PORT CARD — "View all" variant
═══════════════════════════════════════════════════ */
.port-card--more {
  background: var(--bg-2);
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
}
.port-card--more:hover { background: var(--bg-3); }
.port-more-label {
  font-family: var(--ff-disp);
  font-size: var(--t-md);
  font-weight: 200;
  color: var(--ink);
}
.port-card--more .btn-text { justify-content: center; }

/* ═══════════════════════════════════════════════════
   FORM LABEL ASIDE
═══════════════════════════════════════════════════ */
.form-label-aside {
  font-style: italic;
  font-weight: 200;
  opacity: .7;
}

/* ═══════════════════════════════════════════════════
   SPACING UTILITIES
═══════════════════════════════════════════════════ */
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mt-9 { margin-top: var(--sp-9); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-9 { margin-bottom: var(--sp-9); }

/* ── CELL GRID RESPONSIVE ── */
@media (max-width: 1024px) {
  .cell-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col      { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cell-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cell-grid-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   HERO (index only)
═══════════════════════════════════════════════════ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 100svh;
  border-bottom: 1px solid var(--rule);
  padding-top: 64px;
}

.hero-left {
  padding: var(--sp-10);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--sp-10);
}

.hero-kicker {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-8);
  display: flex; align-items: center; gap: var(--sp-4);
}
.hero-kicker::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--ink-3); flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--ff-disp);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-7);
}
.hero-h1 em { font-style: italic; font-weight: 300; }
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 1px; background: var(--ink);
}

.hero-sub {
  font-family: var(--ff-disp);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 460px;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex; gap: 2px; flex-wrap: wrap;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-10) var(--sp-8) var(--sp-10);
}

.stat-stack {
  display: flex;
  flex-direction: column;
}

.stat-item {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--rule);
}
.stat-item:last-child { border-bottom: none; }

.stat-n {
  font-family: var(--ff-disp);
  font-size: clamp(48px, 4.5vw, 64px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-n sup {
  font-size: .35em;
  font-weight: 300;
  vertical-align: super;
  letter-spacing: 0;
}
.stat-l {
  font-family: var(--ff-mono);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ── HERO RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: var(--sp-9) var(--sp-7) var(--sp-8);
    justify-content: flex-start;
    padding-top: calc(var(--sp-9) + 64px);
  }
  .hero-right {
    padding: var(--sp-7);
  }
  .stat-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
  }
  .stat-item {
    background: var(--bg);
    padding: var(--sp-6) var(--sp-5);
    border-bottom: none;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .hero-left {
    padding: calc(var(--sp-8) + 64px) var(--sp-5) var(--sp-7);
  }
  .hero-right { padding: 0 var(--sp-5) var(--sp-7); }
  .hero-kicker { margin-bottom: var(--sp-6); }
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-delay-1 { transition-delay: .1s; }
.rv-delay-2 { transition-delay: .2s; }
.rv-delay-3 { transition-delay: .3s; }

/* Hero animations (index only) */
.anim-1 { opacity: 0; animation: fadeUp 1s var(--ease-out) .10s forwards; }
.anim-2 { opacity: 0; animation: fadeUp 1.1s var(--ease-out) .25s forwards; }
.anim-3 { opacity: 0; animation: fadeUp 1.1s var(--ease-out) .40s forwards; }
.anim-4 { opacity: 0; animation: fadeUp 1s var(--ease-out) .55s forwards; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --sp-10: 64px; }
}

@media (max-width: 1024px) {
  :root { --sp-10: 48px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 400px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .thesis-cols { grid-template-columns: 1fr; gap: 1px; }
  .compare { display: none; }
  .page-header-inner { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  :root { --sp-10: 24px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .coinvest-row { flex-wrap: wrap; }
  .coinvest-item { flex: 1 1 40%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
