/* ==========================================================================
   Highcroft Capital — Design System
   Palette matched to brand logo: near-black · cobalt blue · crimson · white
   Fund I (MHIVentures) = blue · Fund II (MHIV II) = red
   ========================================================================== */

:root {
  /* Color — from logo */
  --ink:        #0c0d12;   /* near-black chip */
  --ink-2:      #14161d;
  --ink-3:      #1d2029;
  --blue:       #1f2ed4;   /* MHIVentures cobalt */
  --blue-deep:  #1620a3;
  --blue-soft:  #eaecfb;
  --red:        #a81c26;   /* MHIV II crimson */
  --red-deep:   #7d141c;
  --red-soft:   #f8eaeb;
  --paper:      #f7f8fb;   /* clean cool white */
  --paper-2:    #eef1f6;
  --line:       #e1e5ec;
  --text:       #14161d;
  --text-soft:  #596072;
  --text-onink: #c9cfdd;
  --white:      #ffffff;

  /* Accent aliases (primary = blue) */
  --accent:      var(--blue);
  --accent-deep: var(--blue-deep);
  --accent-soft: var(--blue-soft);

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(12,13,18,.06), 0 2px 8px rgba(12,13,18,.05);
  --shadow-md: 0 6px 24px rgba(12,13,18,.10);
  --shadow-lg: 0 24px 60px rgba(12,13,18,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--text-onink); }
.section--ink h1,.section--ink h2,.section--ink h3 { color: var(--white); }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section--ink .eyebrow { color: #9aa4f0; }

h1.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2.title   { font-size: clamp(2rem, 4vw, 3.1rem); }
h3.sub     { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--text-soft); line-height: 1.6; }
.section--ink .lead { color: var(--text-onink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  letter-spacing: .02em;
  padding: .95rem 1.7rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.section--ink .btn--ghost { color: var(--white); }
.btn--ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.section--ink .btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247,248,251,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  padding-block: 1rem;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  border-color: var(--line);
  padding-block: .6rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand__logo { height: 40px; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--text); position: relative; padding-block: .3rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .3s var(--ease);
}
.nav__links a:hover::after,.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { margin-left: .5rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display:block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background: radial-gradient(130% 120% at 82% 12%, #1a1f4d 0%, #0f1230 34%, var(--ink) 72%, #06070d 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 78% 22%, #000 30%, transparent 76%);
          mask-image: radial-gradient(120% 100% at 78% 22%, #000 30%, transparent 76%);
}
.hero__logo {
  width: 100%; max-width: 600px; height: auto; opacity: .97;
  filter: drop-shadow(0 24px 70px rgba(0,0,0,.45));
}
.hero .eyebrow { color: #aab2ef; white-space: nowrap; letter-spacing: .09em; font-size: clamp(.56rem, 1vw, .74rem); }
.hero .eyebrow::before { display: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.hero__logo-col { display: flex; justify-content: flex-start; align-self: start; }
/* offset the text down so its top sits roughly at the bottom of the logo */
.hero__inner { margin-top: min(22vw, 300px); }
.hero__inner h1.display { font-size: clamp(2rem, 3.4vw, 3.35rem); }
.hero__inner .hero__sub { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 .accent-b { color: #6f7bff; font-style: italic; }
.hero h1 .accent-r { color: #ff6b74; font-style: italic; }
.hero__sub { font-size: clamp(1.1rem,1.8vw,1.4rem); color: var(--text-onink); max-width: 560px; margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta { display: flex; gap: 2.5rem; margin-top: 3.4rem; flex-wrap: wrap; }
.hero__meta div { border-left: 2px solid; border-image: linear-gradient(180deg, var(--blue), var(--red)) 1; padding-left: 1rem; }
.hero__meta b { font-family: var(--serif); font-size: 1.7rem; display: block; color: #fff; }
.hero__meta span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-onink); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  border-top: 3px solid var(--blue);
}
.pillar:nth-child(2) { border-top-color: #6a2d8f; }
.pillar:nth-child(3) { border-top-color: var(--red); }
.pillar .num { font-family: var(--serif); color: var(--blue-deep); font-size: 1.1rem; }
.pillar h3 { font-size: 1.25rem; margin: .6rem 0 .5rem; color: var(--ink); }
.pillar p { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat b { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.2rem); color: var(--white); display: block; line-height: 1; }
.stat span { display: block; margin-top: .6rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-onink); }
.stat { border-top: 2px solid var(--blue); padding-top: 1.2rem; }
.stat:nth-child(3){ border-top-color:#6a2d8f; } .stat:nth-child(4){ border-top-color: var(--red); }

/* ---------- Section header ---------- */
.sec-head { max-width: 720px; margin-bottom: 3.2rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.6rem; }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member__photo { aspect-ratio: 1/1; background: var(--paper-2); overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 1.3rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.member__body h3 { font-size: 1.22rem; color: var(--ink); }
.member__role { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); font-weight: 600; margin: .4rem 0 .9rem; }
.member__bio { font-size: .92rem; color: var(--text-soft); margin: 0; }
.member__cred { margin-top: auto; padding-top: 1rem; font-size: .8rem; color: var(--text-soft); border-top: 1px solid var(--line); }

/* ---------- Portfolio ---------- */
.fund-brand { height: clamp(88px, 9vw, 108px); width: auto; margin-bottom: 1.3rem; }
.fund-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.fund-head h2 { font-size: clamp(1.6rem,3vw,2.3rem); color: var(--ink); }
.fund-head .tag { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.fund--i  .fund-head { border-color: var(--blue); }
.fund--ii .fund-head { border-color: var(--red); }
.fund--spv .fund-head { border-color: #6a2d8f; }

.folio { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .5rem; }
/* Fund II: fixed 5-across to match Fund I */
@media (min-width: 721px) { .fund--ii .folio { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.folio__item {
  position: relative; background: transparent; border: 0; border-radius: var(--radius);
  padding: 1.1rem .9rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; text-align: center;
  transition: transform .3s var(--ease);
}
/* logos: uniform footprint, muted monochrome that returns to full colour on hover */
.folio__logo { height: 46px; display: grid; place-items: center; margin: 0; }
.folio__logo img {
  width: 130px; height: 46px; object-fit: contain;
  filter: grayscale(1); opacity: .68;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
a.folio__item:hover .folio__logo img { filter: none; opacity: 1; }
a.folio__item:hover { transform: translateY(-3px); }
.folio__name { font-weight: 500; font-size: .82rem; color: var(--text-soft); transition: color .3s var(--ease); }
a.folio__item:hover .folio__name { color: var(--ink); }
/* text-only tiles (realized companies with no logo) read a bit larger */
.folio__item:not(:has(.folio__logo)) .folio__name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.folio__status { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.badge { display: inline-block; padding: .18rem .55rem; border-radius: 100px; font-weight: 600; }
.badge--return { background: var(--red-soft); color: var(--red-deep); }
.folio__item .ext { position: absolute; top: .5rem; right: .5rem; opacity: 0; transition: opacity .3s var(--ease); color: var(--blue-deep); font-size: .8rem; }
/* Fund I: two centered rows (exits on top) */
.folio-stack { display: flex; flex-direction: column; gap: clamp(1rem, 3vh, 2rem); }
.folio-row { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem); }
.folio-row .folio__item { width: 200px; }
/* realized exits stay in full colour */
.folio__item--exit .folio__logo img { filter: none; opacity: 1; }
.folio__item--exit .folio__name { color: var(--ink); }
a.folio__item:hover .ext { opacity: 1; }

/* ---------- Terms table ---------- */
.terms { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.term { padding: 1.5rem 1.6rem; border-bottom: 1px solid var(--line); }
.term:nth-child(odd) { border-right: 1px solid var(--line); }
.term dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .4rem; }
.term dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.term dd small { font-family: var(--sans); font-size: .85rem; color: var(--text-soft); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }
.feature-card {
  background: var(--ink); color: var(--text-onink); border-radius: var(--radius);
  padding: clamp(2rem,4vw,3rem); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
}
.feature-card h3 { color: #fff; margin-bottom: 1rem; }
.feature-card .checklist li { color: var(--text-onink); }
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: var(--text); }
.section--ink .checklist li { color: var(--text-onink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
/* single-screen contact page */
.contact-single { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.contact-single__body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.7rem, 2vh, 1.3rem); padding-top: clamp(88px, 11vh, 120px); padding-bottom: clamp(1rem, 3vh, 2rem); }
.contact-lead { max-width: 820px; width: 100%; }
.contact-lead .lead { margin-bottom: 0; }
.contact-form { width: 100%; max-width: 820px; }
/* Role radio group */
.field--role { border: 0; padding: 0; margin: 0 0 .85rem; }
.field--role legend { font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .55rem; color: var(--ink); padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.radio { display: inline-flex; align-items: center; gap: 0; cursor: pointer; font-size: .95rem; color: var(--text); }
/* override the global full-width input styling so radios render inline with their labels */
.field--role input[type="radio"] {
  -webkit-appearance: radio; appearance: auto;
  width: 16px; height: 16px; min-width: 16px; flex: none;
  margin: 0 .85rem 0 0; padding: 0; border: 0; background: none; box-shadow: none;
  accent-color: var(--blue);
}
.form-note--oneline { white-space: nowrap; }
@media (max-width: 620px) { .form-note--oneline { white-space: normal; } }
.field label .opt { color: var(--text-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
/* validation state */
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field--role.is-invalid legend { color: var(--red-deep); }
.contact-lead .title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .7rem; }
.contact-single .field { margin-bottom: .65rem; }
.contact-single .field textarea { min-height: 68px; }
.contact-single .site-footer { padding-block: clamp(1.4rem, 3vh, 2rem) 1.3rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: .5rem; color: var(--ink); }
.field input,.field textarea {
  width: 100%; padding: .85rem 1rem; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus,.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info .row { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-info .row .ic { color: var(--blue-deep); flex: none; margin-top: 3px; font-size: 1.1rem; }
.contact-info .row b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
.contact-info .row a { color: var(--text-soft); }
.contact-info .row a:hover { color: var(--blue-deep); }
.contact-info .row__note { color: var(--text-soft); font-size: .92rem; line-height: 1.5; }
.form-note { font-size: .84rem; color: var(--text-soft); margin-top: .5rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #07080d; color: var(--text-onink); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-grid a { display: block; color: var(--text-onink); font-size: .95rem; margin-bottom: .7rem; opacity: .85; transition: opacity .2s, color .2s; }
/* Explore column: two columns so it isn't so tall */
.footer-explore { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 2.5rem; align-content: start; }
.footer-explore h4 { grid-column: 1 / -1; }
.footer-grid a:hover { opacity: 1; color: #7f8bff; }
.footer-logo { display: inline-block; margin-bottom: 1.4rem; }
.footer-logo img { height: 52px; width: auto; }
.footer-brand p { font-size: .95rem; opacity: .8; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; opacity: .7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(9rem,14vw,12rem); padding-bottom: clamp(3rem,6vw,5rem); background: radial-gradient(130% 140% at 85% 0%, #1a1f4d 0%, #0f1230 38%, var(--ink) 74%, #06070d 100%); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem,5vw,3.8rem); margin-bottom: 1rem; }
.page-hero .lead { color: var(--text-onink); max-width: 640px; }
.crumb { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #9aa4f0; margin-bottom: 1.2rem; display:inline-flex; align-items:center; gap:.6rem; }
.crumb::before { content:""; width: 24px; height: 2px; background: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars, .stats { grid-template-columns: repeat(2,1fr); }
  .split, .split--rev, .contact-grid { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__logo { max-width: 300px; }
  .hero__inner { margin-top: 0; }
}
@media (max-width: 720px) {
  /* the header's blur creates a containing block that traps the fixed menu panel
     inside the bar once scrolled — disable it on mobile so the panel covers the screen */
  .site-header, .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247,248,251,.96); }
  body.nav-blend .site-header:not(.scrolled) { background: transparent; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(80vw,320px); background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 2rem 2.4rem; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); z-index: 105; }
  .nav__links.open { transform: none; }
  .nav__links a, body.nav-blend .nav__links a { color: #fff; font-size: 1.1rem; }
  .nav__links .nav__cta { margin: .5rem 0 0; }
  .nav__toggle { display: block; z-index: 110; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .terms { grid-template-columns: 1fr; }
  .term:nth-child(odd) { border-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: 1.5rem; }
}

/* ==========================================================================
   Team — scroll-pinned cross-fade (photo left · bio right)
   ========================================================================== */
.team-scroller { position: relative; }
.team-stage { }
.team-stage__inner { position: relative; }

/* Base / mobile fallback: partners stack normally, all visible */
.member-panel { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.member-panel:first-child { border-top: 0; }
.panel-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.panel-photo { position: relative; }
.panel-photo img {
  width: 100%; max-width: 420px; aspect-ratio: 4/5; object-fit: cover; object-position: center 22%;
  border-radius: 6px; box-shadow: var(--shadow-lg); background: var(--paper-2);
}
.panel-photo::after {
  content: ""; position: absolute; left: -10px; bottom: -10px; width: 60%; height: 60%;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--red);
  border-radius: 0 0 0 6px; z-index: -1; max-width: 420px;
}
.panel-bio .kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-deep); font-weight: 600; margin-bottom: .8rem; display:inline-flex; align-items:center; gap:.6rem; }
.panel-bio .kicker::before { content:""; width: 26px; height: 2px; background: var(--red); }
.panel-bio h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--ink); margin-bottom: .4rem; }
.panel-bio .role { font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); font-weight: 600; margin-bottom: 1.4rem; }
.panel-bio p { color: var(--text-soft); font-size: 1.05rem; max-width: 52ch; }
.panel-bio .cred { margin-top: 1.2rem; font-size: .85rem; color: var(--text-soft); padding-top: 1rem; border-top: 1px solid var(--line); display: inline-block; }

/* Rail (progress) — horizontal name bar */
.team-rail { list-style: none; display: none; }
.team-rail li {
  cursor: pointer; color: var(--text-soft); font-size: .9rem; letter-spacing: .04em;
  padding: .3rem .2rem; position: relative; transition: color .25s var(--ease);
  white-space: nowrap;
}
.team-rail li .dot { display: none; }
.team-rail li::after {
  content: ""; position: absolute; left: .2rem; right: .2rem; bottom: -2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.team-rail li.active { color: var(--ink); font-weight: 600; }
.team-rail li.active::after { transform: scaleX(1); }
.team-rail li:hover { color: var(--ink); }

/* Desktop: pin the stage and cross-fade panels in place */
@media (min-width: 721px) {
  .panel-inner { grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.5rem, 5vw, 5rem); }
  .js-pinned .team-stage {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
  }
  .js-pinned .team-stage__inner { position: relative; height: 100vh; width: 100%; }
  .js-pinned .member-panel {
    position: absolute; inset: 0; padding: 0; border: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 1.35s ease-in-out, transform 1.35s ease-in-out, visibility 1.35s;
    transform: translateY(16px);
    pointer-events: none;
  }
  .js-pinned .member-panel.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .js-pinned .panel-inner { width: 100%; }
  .js-pinned .panel-photo img { max-height: 68vh; max-width: 100%; }
  .js-pinned .panel-photo::after { max-width: none; }
  .team-rail {
    display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem);
    position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3.5vh, 2.5rem); z-index: 5;
    padding-inline: var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-pinned .member-panel { transition: opacity .001s; transform: none; }
}

/* ==========================================================================
   Home page: transparent header over the hero, solid on scroll
   ========================================================================== */
/* two logo variants live in the header; default = dark-ink (for light bar) */
.brand__logo--reverse { display: none; }

body.home .nav { justify-content: flex-end; }

/* Full-screen cross-fade between home sections (desktop only) */
@media (min-width: 900px) {
  .js-fade .fade-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .js-fade .fade-slide {
    position: absolute; inset: 0; margin: 0;
    display: flex; align-items: center;
    padding-block: clamp(84px, 11vh, 116px) clamp(1rem, 4vh, 2.5rem); /* top clears the fixed header */
    opacity: 0; visibility: hidden;
    transition: opacity 1.35s ease-in-out, transform 1.35s ease-in-out, visibility 1.35s;
    transform: translateY(14px);
  }
  .js-fade .fade-slide > .wrap { max-height: 100vh; overflow: auto; }
  .js-fade .fade-slide > .wrap::-webkit-scrollbar { width: 0; height: 0; }
  .js-fade .fade-slide.active { opacity: 1; visibility: visible; transform: none; }
  /* top-align a slide so a repeated logo holds the same position across the fade */
  .js-fade .fade-slide--pin-top { align-items: flex-start; }
  .js-fade .fade-slide > .wrap { width: 100%; }
  /* final slide: mission content centered, footer docked to the bottom of the same screen */
  .js-fade .fade-slide--end { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; }
  .js-fade .fade-slide--end .mission-inner { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding-block: clamp(2rem, 6vh, 5rem); }
  .js-fade .fade-slide--end .site-footer { padding-block: 2rem 1.5rem; }
  .js-fade .fade-slide--end .mission-inner > .wrap { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js-fade .fade-slide { transition: opacity .001s; transform: none; }
}
/* skip the cross-fade on initial page load so pages don't fade/overlap when navigating */
.fade-deck.instant .fade-slide,
.team-scroller.instant .member-panel { transition: none !important; }

/* scroll cue — shown on every section except the last (toggled by JS) */
.scroll-hint {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 50; display: none; flex-direction: column; align-items: center; gap: .35rem;
  color: #fff; mix-blend-mode: difference; opacity: .85; pointer-events: none;
}
.scroll-hint.is-visible { display: flex; }
.scroll-hint span { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.scroll-hint svg { width: 20px; height: 20px; animation: scroll-bob 1.9s ease-in-out infinite; }
@keyframes scroll-bob { 0%,100% { transform: translateY(-2px); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }
/* Blended header: transparent bar that adapts to the section behind it (home, portfolio) */
body.nav-blend .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
body.nav-blend .site-header:not(.scrolled) .nav__links a { color: #aab2ef; }
body.nav-blend .site-header:not(.scrolled) .nav__links a::after { background: #aab2ef; }
body.nav-blend .site-header:not(.scrolled) .nav__toggle span { background: #fff; }
/* over a dark section: white-ink logo */
body.nav-blend .site-header:not(.scrolled) .brand__logo--ink { display: none; }
body.nav-blend .site-header:not(.scrolled) .brand__logo--reverse { display: inline-block; }
body.nav-blend .nav__links a { transition: color .45s ease; }
/* over a light section: flip links, hamburger, and logo to dark ink */
body.nav-blend .site-header.nav-on-light .nav__links a { color: var(--ink); }
body.nav-blend .site-header.nav-on-light .nav__links a::after { background: var(--blue); }
body.nav-blend .site-header.nav-on-light .nav__toggle span { background: var(--ink); }
body.nav-blend .site-header.nav-on-light .brand__logo--reverse { display: none; }
body.nav-blend .site-header.nav-on-light .brand__logo--ink { display: inline-block; }

@media (max-width: 720px) {
  /* mobile menu panel is dark, so keep its links legible when open */
  body.nav-blend .site-header:not(.scrolled) .nav__links.open a { color: #fff; }
}


