/* ============================================================
   The 23 Fund — site styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #02081c;
  --navy-deep:   #01040e;
  /* accent — Stanford Cardinal Red */
  --indigo:      #8c1515;
  --indigo-soft: #cf5963;
  --ink:         #02081c;
  --muted:       #5b6275;
  --line:        #e5e6ea;
  --bg:          #ffffff;
  --bg-alt:      #f7f7f9;
  --white:       #ffffff;

  --maxw: 1180px;
  --radius: 7px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 92px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.page-hero + .section { padding-top: 36px; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
}
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.h-xl { font-size: clamp(2rem, 4.2vw, 3.05rem); }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.lead { font-size: 1.06rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn--dark   { background: var(--navy); color: #fff; }
.btn--dark:hover  { background: var(--indigo); transform: translateY(-2px); }
.btn--light  { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--indigo); color: #fff; transform: translateY(-2px); }
.btn--ghost  { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-solid {
  background: rgba(2,8,28,.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255,255,255,.06);
}
body.theme-light .site-header {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(10,26,63,.06);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 92px;
}
/* logo — centered */
.nav__logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.nav__logo img {
  height: 64px;
  width: auto;
  display: block;
  transition: filter .3s var(--ease);
}
body.theme-light .nav__logo img { filter: invert(1) brightness(.85); }
/* hamburger — always visible, right side */
.nav__toggle {
  position: relative;
  z-index: 110;
  width: 30px; height: 22px;
}
.nav__toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
body.theme-light .nav__toggle span { background: var(--ink); }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
/* menu — dropdown panel */
.nav__links {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: rgba(13,17,28,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 26px 50px -16px rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 13px 14px;
  border-radius: 7px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav__links a.is-active { color: #fff; background: rgba(140,21,21,.4); }

/* Desktop: inline horizontal nav, logo left, burger hidden */
@media (min-width: 900px) {
  .nav { justify-content: space-between; }
  .nav__logo { position: static; transform: none; }
  .nav__toggle { display: none; }
  .nav__links {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links a {
    padding: 10px 14px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: rgba(255,255,255,.82);
    background: transparent;
  }
  .nav__links a:hover { background: transparent; color: #fff; }
  .nav__links a.is-active { background: transparent; color: var(--indigo); }
  body.theme-light .nav__links a { color: rgba(10,26,63,.7); }
  body.theme-light .nav__links a:hover { color: var(--ink); background: transparent; }
  body.theme-light .nav__links a.is-active { color: var(--indigo); background: transparent; }
}

/* ============================================================
   Hero — vertical-parade portfolio tiles
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 140px 0 90px;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: var(--header-h) 0 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 14px;
  z-index: 0;
  pointer-events: none;
}
.hero__col {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero__track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}
.hero__tile {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0e18;
  border-radius: 2px;
}
.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) brightness(.78) contrast(1.05);
  transition: filter .5s var(--ease);
}
.hero__tile--logo {
  background: #11182a;
}
.hero__tile--logo img {
  object-fit: contain;
  padding: 22%;
  filter: brightness(.95) contrast(1);
}

/* Each column scrolls a different direction at a different speed */
.hero__col--up-a   .hero__track { animation: heroScrollUp   42s linear infinite; }
.hero__col--down-a .hero__track { animation: heroScrollDown 54s linear infinite; }
.hero__col--up-b   .hero__track { animation: heroScrollUp   48s linear infinite; }
.hero__col--down-b .hero__track { animation: heroScrollDown 60s linear infinite; }
.hero__col--up-c   .hero__track { animation: heroScrollUp   38s linear infinite; }

@keyframes heroScrollUp {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}
@keyframes heroScrollDown {
  from { transform: translate3d(0, -50%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Scrim so the headline reads against the parade */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(13,17,28,.72) 0%, rgba(13,17,28,.45) 55%, rgba(13,17,28,.0) 90%),
    linear-gradient(180deg, rgba(13,17,28,.55) 0%, rgba(13,17,28,.25) 35%, rgba(13,17,28,.55) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.18;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .hero__bg { grid-template-columns: repeat(4, 1fr); }
  .hero__col--up-c { display: none; }
}
@media (max-width: 640px) {
  .hero__bg { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; }
  .hero__col--down-b { display: none; }
  .hero__track { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__track { animation: none !important; }
}

/* ============================================================
   Feature rows (image + text)
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21,28,48,.4);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature__body h2 { margin-bottom: 20px; }
.feature__body p { color: var(--muted); margin-bottom: 14px; }
.feature__body .btn { margin-top: 16px; }
.feature + .feature { margin-top: 96px; }

/* ============================================================
   Value pillars
   ============================================================ */
.value-head { max-width: 620px; margin-bottom: 60px; }
.value-head h2 { margin-bottom: 18px; }
.value-head p { color: var(--muted); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 38px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(21,28,48,.45);
  border-color: transparent;
}
.pillar__num {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--indigo);
  margin-bottom: 22px;
}
.pillar h3 { font-size: 1.32rem; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 92px 0;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,21,21,.6), transparent 65%);
  top: -260px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta .eyebrow { color: var(--indigo-soft); }
.cta h2 { color: #fff; margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,.78); margin-bottom: 34px; font-weight: 300; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  background: #fff;
  color: var(--ink);
  padding: 172px 0 56px;
  text-align: left;
}
.page-hero h1 {
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 18px;
  max-width: none;
}
.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.55;
}
.page-hero p.page-hero__lede {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 30ch;
  text-wrap: balance;
}

/* ============================================================
   Team
   ============================================================ */
.team-group { margin-top: 70px; }
.team-group:first-child { margin-top: 0; }
.team-group__label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 34px;
}
.team-group__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 26px;
}
.member__photo {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-alt);
  width: 100%;
  padding-top: 110%; /* 10:11 — slightly taller than square to fit heads */
}
.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .55s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.05); }
.member__name {
  margin-top: 16px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.2;
}
.member__role {
  font-size: .73rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.member__li {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: baseline;
  transform: translateY(.14em);
  color: var(--muted);
  opacity: .7;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.member__li:hover { color: var(--indigo); opacity: 1; }
.member__li svg { width: 16px; height: 16px; display: block; }

/* External-link arrow used after source/CTA text */
.ext-arrow {
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-left: 6px;
  vertical-align: -.05em;
  flex-shrink: 0;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.company {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.company:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -30px rgba(21,28,48,.5);
  border-color: transparent;
}
.company__media {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* screenshots & photos fill the whole box */
.company__media--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* transparent wordmark logos stay contained with breathing room */
.company__media--logo { padding: 24px 30px; }
.company__media--logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.company__media--text span {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy);
}
.company__body {
  flex: 1;
  padding: 24px 28px 30px;
  border-left: 3px solid transparent;
  transition: border-color .35s var(--ease);
}
.company:hover .company__body { border-left-color: var(--indigo); }
.company__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 9px;
}
.company__desc { color: var(--muted); font-size: .95rem; }

/* whole card is a link when the company has a website */
a.company { text-decoration: none; color: inherit; }
.company__arrow {
  flex: none;
  width: 17px; height: 17px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
a.company:hover .company__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--indigo);
}
a.company:hover .company__name { color: var(--indigo); }

/* corner badge — e.g. "Realized Investment" */
.company__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 5px 14px -4px rgba(21,28,48,.55);
}

/* ============================================================
   Founder cards (Companies page)
   ============================================================ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.founder {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
@media (hover: hover) {
  .founder:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 56px -32px rgba(21,28,48,.5);
    border-color: transparent;
  }
}
.founder__photo {
  flex: none;
  width: 100%;
  height: 220px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder__monogram {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.founder__monogram::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin: 12px auto 0;
  background: var(--indigo);
  border-radius: 2px;
}
.founder__body {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  flex: 1;
  min-width: 0;
}
.founder__name {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.founder__title {
  margin-top: 4px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--indigo);
}
.founder__cofounder {
  margin-top: 6px;
  font-size: .76rem;
  color: var(--muted);
}
.founder__blurb {
  margin: 14px 0 20px;
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
}
.founder__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.founder__stats div { display: flex; flex-direction: column; gap: 4px; }
.founder__stats dt,
.founder__stats span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 2.1em;
  line-height: 1.25;
}
.founder__stats strong {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.founder__arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 18px; height: 18px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
@media (hover: hover) {
  .founder:hover .founder__arrow { opacity: 1; transform: translate(0,0); color: var(--indigo); }
  .founder:hover .founder__name { color: var(--indigo); }
}
.founder__badge {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .founders-grid { gap: 18px; }
  .founder__photo { height: 170px; }
  .founder__body { padding: 18px 18px; }
  .founder__name { font-size: 1.06rem; }
  .founder__blurb { margin: 10px 0 16px; font-size: .85rem; }
  .founder__stats { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .founder__stats dt, .founder__stats span { min-height: 0; }
  /* Force consistent two-line layout for name and role/company on mobile */
  .founder__name > span,
  .founder__title > span { display: block; }
}

/* ============================================================
   Company list (Companies page)
   ============================================================ */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.company-filters {
  display: flex;
  gap: 28px 32px;
  flex-wrap: wrap;
  margin: 14px 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.filter-group button {
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filter-group button:hover { color: var(--ink); border-color: var(--ink); }
.filter-group button.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.list-head h2 { margin: 0; }
.company-search {
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  min-width: 250px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.company-search:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(140,21,21,.12);
}
.company-list { border-top: 2px solid var(--ink); }
.company-row {
  display: grid;
  grid-template-columns: 66px 1.3fr 2fr 22px;
  gap: 26px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease);
}
.company-row:hover { background: #fff; }
.company-row__icon {
  width: 66px; height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-row__icon img { width: 100%; height: 100%; }
.company-row__icon--photo img { object-fit: cover; }
.company-row__icon--logo img { object-fit: contain; padding: 7px; }
.company-row__name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.company-row:hover .company-row__name { color: var(--indigo); }
.company-row__desc { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.company-row__people { margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.company-row__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.company-row__stats div { display: flex; flex-direction: column; gap: 5px; }
.company-row__stats span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.company-row__stats strong { font-size: .84rem; font-weight: 700; color: var(--ink); }
.company-row__arrow {
  width: 20px; height: 20px;
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.company-row:hover .company-row__arrow { color: var(--indigo); transform: translate(2px,-2px); }
.list-empty { padding: 36px 0; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .company-row { grid-template-columns: 56px 1fr; gap: 14px 16px; }
  .company-row__icon { width: 56px; height: 56px; }
  .company-row__name { font-size: 1.25rem; }
  .company-row__arrow { display: none; }
  .company-row__stats { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .company-row__stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.portfolio-note {
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

/* ============================================================
   Logo wall (About page)
   ============================================================ */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 56px 48px;
}
.logo-tile {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease);
}
/* First column flush left so logos align with the section's titles;
   last column flush right so the wall reads edge-to-edge. */
.logo-wall > .logo-tile:nth-child(5n+1) { justify-content: flex-start; }
.logo-wall > .logo-tile:nth-child(5n)   { justify-content: flex-end; }
.logo-tile:hover { transform: translateY(-3px); }
.logo-tile img { width: 72%; height: auto; max-height: 72%; object-fit: contain; }
@media (max-width: 900px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall > .logo-tile,
  .logo-wall > .logo-tile:nth-child(5n+1),
  .logo-wall > .logo-tile:nth-child(5n) { justify-content: center; }
}
@media (max-width: 560px) {
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
  .logo-wall > .logo-tile { justify-content: center; }
}

/* ============================================================
   News cards
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card.is-hidden { display: none; }
.news-grid.is-expanded .news-card.is-hidden { display: block; }
.news-expand { margin-top: 36px; text-align: center; }

/* Article opener (latest news spotlight) */
.news-article-wrap {
  background: #fff;
  padding: 156px 0 72px;
}
.news-article {
  max-width: none;
  margin: 0;
}
.news-article__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 22px;
}
.news-article__title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 20px;
  text-wrap: balance;
}
.news-article__dek {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 26px;
}
.news-article__byline {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.news-article__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.news-article__tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.news-article__tool:hover { color: var(--indigo); }
.news-article__tool svg { width: 18px; height: 18px; flex: none; }
.news-article__tool.is-copied { color: var(--indigo); }
.news-article__hero { margin: 0 0 14px; }
.news-article__hero-frame {
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.news-article__hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.news-article__caption {
  font-size: .82rem;
  color: var(--muted);
  margin: 14px 0 32px;
  line-height: 1.5;
}
.news-article__credit {
  display: inline;
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--ink);
}
.news-article__body p {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 22px;
}
.news-article__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor;
  transition: opacity .2s var(--ease);
}
.news-article__cta:hover { opacity: .8; }
@media (max-width: 760px) {
  .news-article-wrap { padding: 124px 0 48px; }
  .news-article__dek { font-size: 1.04rem; }
  .news-article__tools { gap: 18px; }
  .news-article__tool span { display: none; }
  .news-article__tool svg { width: 20px; height: 20px; }
}
.news-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: var(--navy);
}
.news-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform .55s var(--ease);
}
.news-card:hover .news-card__img { transform: scale(1.05); }
.news-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(to top,
    rgba(13,17,28,.95) 0%, rgba(13,17,28,.74) 30%,
    rgba(13,17,28,.18) 62%, rgba(13,17,28,0) 82%);
}
.news-card__meta {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 9px;
}
.news-card__title {
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: #fff;
}
.news-card__source {
  margin-top: 13px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--indigo-soft);
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 64px;
  align-items: start;
}
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro p { color: var(--muted); }

.form { display: grid; gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__field label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.form__field input,
.form__field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.form__field textarea { resize: vertical; min-height: 140px; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(140,21,21,.13);
}
.form button { width: 100%; justify-content: center; }
.form__status {
  font-size: .95rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.form__status.is-ok  { display: block; background: #e9f7ef; color: #1f7a44; }
.form__status.is-err { display: block; background: #fdecec; color: #c0392b; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 280px; font-weight: 300; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: .95rem;
  padding: 5px 0;
  color: rgba(255,255,255,.78);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px; height: 44px;
  margin-left: -4px;
  color: #fff;
  background: transparent;
  border: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-social:hover {
  color: var(--indigo-soft);
  transform: translateY(-2px);
}
.footer-social svg { width: 28px; height: 28px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  box-shadow: 0 10px 26px -8px rgba(21,28,48,.55);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--indigo); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature--flip .feature__media { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .cta { padding: 72px 0; }
  body { font-size: 16px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 40px; }

  .page-hero { padding: 124px 0 36px; }
  .page-hero h1 { margin-bottom: 14px; }
  .page-hero p.page-hero__lede {
    font-size: clamp(1.7rem, 6.4vw, 2.3rem);
    line-height: 1.12;
    margin: 0 0 22px;
  }
  .page-hero p { font-size: 1.04rem; line-height: 1.55; }

  .feature + .feature { margin-top: 48px; }
  .value-head { margin-bottom: 40px; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 22px; }
  .section { padding: 56px 0; }
  .page-hero { padding: 116px 0 32px; }
}

/* ============================================================
   Site loader
   ============================================================ */
html.is-loading,
html.is-loading body { overflow: hidden; height: 100%; }

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .9s cubic-bezier(.77,0,.18,1);
}
.site-loader.is-done { transform: translateY(-100%); }

.site-loader__stage {
  display: flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 8.4vw, 5.6rem);
  letter-spacing: -.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-loader__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%);
  animation: loaderRise .8s cubic-bezier(.22,.61,.36,1) forwards;
}
.site-loader__word--the  { animation-delay: .05s; margin-right: .22em; }
.site-loader__word--num  { animation-delay: .15s; }
.site-loader__word--fund { animation-delay: .25s; margin-left: .22em; }

@keyframes loaderRise { to { opacity: 1; transform: translateY(0); } }

.site-loader__frame {
  display: inline-block;
  position: relative;
  width: 0;
  height: 1em;
  overflow: hidden;
  background: #000;
  transition:
    width  .55s cubic-bezier(.77,0,.18,1),
    margin .55s cubic-bezier(.77,0,.18,1);
}
.site-loader.is-open .site-loader__frame {
  width: 1em;
  margin: 0 .2em;
}
.site-loader__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-loader.is-done .site-loader__word {
  animation: loaderFall .45s cubic-bezier(.77,0,.18,1) forwards;
}
.site-loader.is-done .site-loader__frame { width: 0; margin: 0; }

@keyframes loaderFall { to { opacity: 0; transform: translateY(-115%); } }

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader__word,
  .site-loader__frame { transition: none !important; animation: none !important; }
}

noscript .site-loader { display: none; }
