/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #111111;
  background: #f7f5f0;
  font-weight: 400;
}

:root {
  --ink: #0f1822;
  --ink-soft: #3a4351;
  --paper: #f6f3eb;
  --paper-deep: #ece8dc;
  --rule: #d6d0bf;
  --accent: #1d3a5f;       /* navy — matches brand mark */
  --accent-soft: #2c5180;
  --gold: #b08a3e;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* footer logo: invert via filter for white-on-dark rendering of single-color logo */
.site-footer .brand-mark img,
.site-footer .brand-mark svg {
  filter: brightness(0) invert(0.92);
}
nav.primary {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
nav.primary a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a.active { color: var(--ink); }
nav.primary a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(80px, 14vw, 200px) 0 clamp(60px, 10vw, 140px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero h1 .word { display: inline-block; }
.hero h1 .letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(180px) skewX(-22deg);
  filter: blur(10px);
  animation: letter-streak 480ms cubic-bezier(0.16, 1, 0.22, 1) var(--delay, 0ms) forwards;
  will-change: transform, opacity, filter;
}
@keyframes letter-streak {
  0%   { opacity: 0; transform: translateX(180px) skewX(-22deg); filter: blur(10px); }
  55%  { opacity: 1; filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0) skewX(0); filter: blur(0); }
}
/* "fastest" gets a faster, sharper streak with a subtle landing pulse */
.hero h1 em .letter {
  transform: translateX(280px) skewX(-30deg);
  filter: blur(14px);
  animation: letter-streak-fast 380ms cubic-bezier(0.12, 1.05, 0.2, 1) var(--delay, 0ms) forwards;
}
@keyframes letter-streak-fast {
  0%   { opacity: 0; transform: translateX(280px) skewX(-30deg) scale(0.9); filter: blur(14px); }
  55%  { opacity: 1; transform: translateX(0) skewX(0) scale(1.18); filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0) skewX(0) scale(1); filter: blur(0); }
}
/* speed-trail underline that draws across the headline as letters land */
.hero h1::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin-top: 24px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: streak-trail 1400ms cubic-bezier(0.2, 0.9, 0.25, 1) 200ms forwards;
}
@keyframes streak-trail {
  0%   { width: 0; opacity: 0; }
  40%  { opacity: 0.8; }
  100% { width: 60%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .letter,
  .hero h1 em .letter {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .hero h1::after { display: none; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 40px;
  max-width: 60ch;
}
.hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero .meta-row div {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero .meta-row strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 6px;
}

/* ---------- Section heading ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.section h2 em { font-style: italic; color: var(--accent); }
.section .sub {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 62ch;
  line-height: 1.55;
}

/* ---------- Featured portfolio (Founders Fund-style cards) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.feat-card {
  position: relative;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 36px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(29, 58, 95, 0.16),
    rgba(29, 58, 95, 0.04) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}
.feat-card > * {
  position: relative;
  z-index: 1;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(17, 17, 17, 0.18);
  border-color: var(--accent);
}
.feat-card:hover::before { opacity: 1; }
.feat-card .tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.feat-card .name {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 12px;
}
.feat-card .desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.5;
}
.feat-card .arrow {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feat-card .co-mark {
  height: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  max-width: 220px;
}
.feat-card .co-mark img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.feat-card .co-mark.text-mark {
  height: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
/* Vast wordmark is wide-set type — constrain width so it visually matches the other logos */
.feat-card .co-mark img[src*="vast_logo"] { max-width: 150px; }
.feat-card.span-7 { grid-column: span 7; min-height: 360px; }
.feat-card.span-5 { grid-column: span 5; min-height: 360px; }
.feat-card.span-4 { grid-column: span 4; }
.feat-card.span-6 { grid-column: span 6; }
.feat-card.span-8 { grid-column: span 8; background: var(--paper-deep); }

/* ---------- Pillars (thesis snippets on home) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 72px;
}
.pillar .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: inline-block;
  min-width: 56px;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 14px;
  margin-bottom: 14px;
}
.pillar p { font-size: 16px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Pull quote ---------- */
.quote {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0 auto;
}
.quote cite {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b6b1a4;
  margin-top: 36px;
}

/* ---------- Portfolio page grid ---------- */
.portfolio-list {
  border-top: 1px solid var(--ink);
  margin-top: 60px;
}
.portfolio-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 0.8fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 0.2s ease;
}
.portfolio-row:hover { background: rgba(176, 138, 62, 0.05); }
.portfolio-row .co {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.portfolio-row .what { font-size: 16px; color: var(--ink-soft); line-height: 1.45; }
.portfolio-row .sector {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.portfolio-row .stage {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.sector-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.sector-filter span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
}
.sector-filter span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Thesis page ---------- */
.thesis-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.thesis-block:first-of-type { border-top: none; }
.thesis-block .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.thesis-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.thesis-block p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 64ch;
}
.thesis-block ul {
  list-style: none;
  margin-top: 18px;
}
.thesis-block li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.thesis-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tier-card {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 32px;
  margin-bottom: 16px;
}
.tier-card .tier-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}
.tier-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
}
.tier-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- About ---------- */
.about-hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.about-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero .sub {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: clamp(36px, 4vw, 56px);
  max-width: 64ch;
}
.about-hero .eyebrow + h1 {
  margin-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-top: 60px;
}
.about-grid h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.about-grid p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.member {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.member .name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.member .role {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.member .bio {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c5c0b2;
  padding: 80px 0 40px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2c2c2c;
}
.site-footer .brand { color: #f0ece2; }
.site-footer .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: #f0ece2;
  margin-top: 18px;
  max-width: 32ch;
  line-height: 1.3;
}
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #807a6c;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: #c5c0b2;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #f0ece2; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 12px;
  color: #807a6c;
  letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .featured-grid > * { grid-column: span 12 !important; min-height: 240px !important; }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .thesis-block { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-row { grid-template-columns: 1fr; gap: 8px; }
  .portfolio-row .stage { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.primary { gap: 18px; }
  nav.primary a { font-size: 12px; }
}

@media (max-width: 640px) {
  /* Pillars stack at phone widths */
  .pillars { grid-template-columns: 1fr; gap: 32px; }

  /* Stack header so all nav links stay visible (no hamburger needed) */
  .site-header .inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  nav.primary {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  nav.primary a {
    font-size: 12px;
    padding: 8px 0; /* larger tap target */
  }

  /* Tighter cards and sections on phones */
  .feat-card { padding: 28px; min-height: 220px !important; }
  .feat-card .name { font-size: 30px; }
  .tier-card { padding: 24px; }

  /* Hero spacing */
  .hero .meta-row { gap: 24px 32px; margin-top: 40px; padding-top: 24px; }
  .hero .meta-row strong { font-size: 19px; }

  /* Pull-quote — keep readable on a phone */
  .quote blockquote { max-width: 22ch; }

  /* Footer */
  .site-footer { padding: 56px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .footer-col a { padding: 8px 0; } /* larger tap targets */
}

@media (max-width: 380px) {
  /* iPhone SE-class — final squeeze */
  .brand { font-size: 22px; }
  .brand-mark { width: 32px; height: 32px; }
  nav.primary { gap: 4px 14px; }
  .feat-card { padding: 22px; }
  .feat-card .name { font-size: 26px; }
  .pillar h3 { font-size: 24px; }
  .member .name { font-size: 24px; }
}
