/* vang.capital — Vang brand (v4)
   Brand: Vang Capital_Brand Guidelines (Drive)
   Colors: Deep Navy #0a1641 (primary text/dark) + Purple #4b04af (accent)
           Teal #0ea5a5 (data emphasis) + Light Grey #f2f2f2 (sections) + White #fff
   Type: Montserrat (headers/wordmark) + Open Sans (body)
*/

:root {
  --navy: #0a1641;
  --navy-soft: #2a3461;
  --navy-faint: #525e7a;
  --purple: #4b04af;
  --purple-soft: #8a5cd6;
  --teal: #0ea5a5;
  --rule: #d6dbe6;
  --section-bg: #f2f2f2;
  --paper: #ffffff;
  --headline: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
* { overflow-wrap: break-word; }

a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-thickness: 2px; color: var(--navy); }

main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* MASTHEAD */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0 1.25rem;
  margin-bottom: 5rem;
}

.wordmark {
  display: inline-block;
  text-decoration: none;
}
.wordmark img {
  height: 38px;
  display: block;
}

.masthead-meta {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--navy-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.masthead-meta .masthead-cta {
  font-family: var(--headline);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--purple);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}
.masthead-meta .masthead-cta:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

/* THESIS — type hero with vang-rope decorative mark */
.thesis {
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem;
  gap: 3rem;
  align-items: center;
}

.thesis-content { max-width: 56rem; }

.vang-mark {
  width: 100%;
  max-width: 14rem;
  height: auto;
  display: block;
  justify-self: end;
}

.thesis h1 {
  font-family: var(--headline);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  color: var(--navy);
}

.thesis-lead {
  color: var(--purple);
  font-weight: 700;
}

.thesis-sub {
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 38rem;
  color: var(--navy-soft);
  margin: 0;
  font-weight: 400;
}

/* STAT BAND — typographic strip on paper, no boxes, no gradients */
.stat-band {
  list-style: none;
  margin: 1.5rem 0 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
}
.stat-band li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.stat-num {
  font-family: var(--serif, "Fraunces", Georgia, serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.005em;
  font-feature-settings: "tnum";
}
.stat-label {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy-faint);
  line-height: 1.45;
}

/* HERO BANNER — cinematic AI image with caption overlay */
.hero-banner {
  margin: 0 calc(var(--gutter) * -1) 5rem;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 7;
  max-height: 28rem;
  background: #050b25;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-banner figcaption {
  position: absolute;
  inset: auto auto 1.5rem 2rem;
  font-family: "Fraunces", "Hoefler Text", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.005em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  max-width: 28rem;
}
.hero-banner figcaption em {
  font-style: italic;
  font-weight: 500;
  color: #fff;
}

@media (max-width: 800px) {
  .hero-banner {
    aspect-ratio: 4 / 3;
    max-height: 18rem;
    margin-bottom: 3rem;
  }
  .hero-banner figcaption {
    inset: auto auto 1rem 1.25rem;
    font-size: 1rem;
  }
}

/* PORTFOLIO GRID — visual logo wall above ledger */
.portfolio-grid {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.portfolio-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
  min-height: 6.5rem;
}
.portfolio-grid li:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}
.portfolio-grid li img {
  height: 1.85rem;
  width: auto;
  max-width: 75%;
  object-fit: contain;
  display: block;
  margin-top: 0.25rem;
}
.portfolio-grid li > span:first-of-type:not(.port-tag) {
  font-family: var(--headline);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.portfolio-grid .port-tag {
  font-family: var(--body);
  font-size: 0.7rem;
  color: #4a5567;
  letter-spacing: 0.01em;
  line-height: 1.35;
  font-weight: 500;
}
.portfolio-grid .port-tile {
  background: var(--tile-bg, var(--navy));
  border: none;
  color: #fff;
  padding-top: 1.25rem;
}
.portfolio-grid .port-tile[data-initials]::before {
  content: attr(data-initials);
  font-family: var(--headline);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
  color: rgba(255,255,255,0.95);
}
.portfolio-grid .port-tile span:first-of-type:not(.port-tag) {
  color: rgba(255,255,255,0.95);
}
.portfolio-grid .port-tile .port-tag {
  color: rgba(255,255,255,0.92);
}

@media (max-width: 800px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-band { gap: 0.4rem 1.5rem; padding: 1.25rem 0; }
}
@media (max-width: 500px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* BLOCK */
.block {
  margin: 0 0 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.rubric {
  font-family: var(--headline);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1.75rem;
}

.prose {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: var(--measure);
  margin: 0 0 1rem;
  color: var(--navy);
}

.prose:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--navy); }
.prose em { font-style: normal; font-weight: 600; color: var(--purple); }

/* LEDGER — brand-styled investment list */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.ledger-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(8rem, 14rem) 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 0.15s ease;
}

.ledger-row:hover {
  background: rgba(75, 4, 175, 0.04);
}

.ledger-when {
  font-family: var(--headline);
  font-size: 0.85rem;
  color: var(--navy-faint);
  letter-spacing: 0.02em;
  font-feature-settings: "tnum";
  font-weight: 500;
}

.ledger-name {
  font-family: var(--headline);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.ledger-note {
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--navy-soft);
  line-height: 1.55;
}

.ledger-more {
  padding: 1.5rem 0 0;
  border-bottom: none;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--navy-faint);
  letter-spacing: 0.02em;
  font-style: italic;
}

/* VANG ASIDE — sailing-rope signature distinctive moment */
.vang-aside {
  margin: 4rem auto 5rem;
  max-width: 50rem;
  padding: 1.75rem 0 1.75rem 2.5rem;
  border-left: 4px solid var(--purple);
}
.vang-aside p {
  font-family: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy-soft);
  margin: 0;
}
.vang-aside em {
  font-style: italic;
  color: var(--purple);
  font-weight: 500;
}

/* FOLLOW-ON PULL — large typographic distinctive callout for follow-on funds */
.follow-on-pull {
  margin: 5rem auto;
  max-width: 60rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.follow-on-pull .pull-rubric {
  font-family: var(--headline);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1.25rem;
}
.follow-on-pull .pull-list {
  font-family: "Fraunces", "Hoefler Text", Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.005em;
}

.colophon { text-align: left; }

/* ECOSYSTEM — cross-link block above footer */
/* ECOSYSTEM CROSS-LINK — full-bleed navy→purple gradient band */
.ecosystem {
  margin: 6rem 0 0;
  padding: 4rem var(--gutter) 4.5rem;
  background: linear-gradient(135deg, #050b25 0%, var(--navy) 50%, var(--purple) 130%);
  position: relative;
  overflow: hidden;
}
.ecosystem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 18%, rgba(138,92,214,0.34) 0%, transparent 40%),
    radial-gradient(circle at 8% 92%, rgba(14,165,165,0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.ecosystem > * { max-width: 70rem; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.ecosystem-rubric {
  font-family: var(--headline);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin: 0 0 1.75rem;
}
.ecosystem-rubric::before {
  content: "—";
  color: var(--purple-soft);
  margin-right: 0.7rem;
  letter-spacing: 0;
}
.ecosystem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ecosystem-list a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.15rem 0.85rem;
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(2px);
  transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.ecosystem-list a:hover {
  border-color: var(--purple-soft);
  transform: translateY(-3px);
  background: rgba(138,92,214,0.12);
  box-shadow: 0 12px 28px rgba(75,4,175,0.30);
}
.ecosystem-list a.active,
.ecosystem-list a[aria-current="page"] {
  border-color: var(--purple-soft);
  background: rgba(138,92,214,0.16);
}
.eco-mark {
  grid-row: 1 / 3;
  font-family: var(--headline);
  font-weight: 700;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--purple-soft) 0%, var(--teal) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  text-align: center;
}
.eco-name {
  font-family: var(--headline);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.005em;
}
.eco-tag {
  font-family: var(--body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
}
@media (max-width: 800px) {
  .ecosystem { padding: 3rem var(--gutter) 3.5rem; }
  .ecosystem-list { grid-template-columns: 1fr; }
}

/* ANIMATED VANG MARK — stroke-draw on load */
.vang-mark path,
.vang-mark circle {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: vang-draw 2.4s ease-out 0.3s forwards;
}
.vang-mark path:nth-of-type(2) { animation-delay: 0.7s; }
.vang-mark path:nth-of-type(3) { animation-delay: 1.0s; }
.vang-mark path:nth-of-type(4) { animation-delay: 1.3s; }
.vang-mark circle { animation: vang-pop 0.4s ease-out 1.8s backwards; }
@keyframes vang-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes vang-pop {
  0% { opacity: 0; transform: scale(0.4); transform-origin: center; }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .vang-mark path, .vang-mark circle { animation: none; stroke-dashoffset: 0; }
}

/* PORTFOLIO TILE HOVER — bigger color shift */
.portfolio-grid .port-tile {
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.portfolio-grid .port-tile:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(75,4,175,0.28);
  filter: brightness(1.10) saturate(1.15);
}

/* FOOTER */
.site-foot {
  border-top: 1px solid var(--rule);
  margin: 6rem auto 0;
  padding: 1.75rem var(--gutter) 2rem;
  max-width: 70rem;
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--navy-faint);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.site-foot p { margin: 0; }
.site-foot a { color: var(--navy-soft); }
.site-foot a:hover { color: var(--purple); }

/* RESPONSIVE */
@media (max-width: 800px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }
  .wordmark img { height: 32px; }
  .thesis {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  .vang-mark { max-width: 9rem; justify-self: start; }
  .ledger-row {
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
  }
  .ledger-note {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 500px) {
  body { font-size: 16px; }
  .thesis h1 { font-size: 2.4rem; }
  .rubric { font-size: 0.7rem; }
}

/* BIG-NUMBER pull-quote */
.big-number {
  margin: 5rem 0;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, var(--paper) 0%, var(--section-bg) 100%);
  border-left: 5px solid var(--purple);
  border-radius: 0 8px 8px 0;
  position: relative;
  overflow: hidden;
}
.big-number::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 92% 12%, rgba(75,4,175,0.10) 0%, transparent 50%),
    radial-gradient(circle at 8% 88%, rgba(14,165,165,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.bn-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.bn-num {
  font-family: "Fraunces", "Hoefler Text", Georgia, serif;
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 60%, var(--purple-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.bn-num em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: -0.02em;
  margin: 0 0.05em;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bn-label {
  font-family: "Fraunces", "Hoefler Text", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--navy-soft);
  margin: 0;
  max-width: 36ch;
}
.bn-tag {
  display: inline-block;
  font-family: var(--headline);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.85rem;
}
@media (max-width: 700px) {
  .big-number { padding: 2.5rem 1.5rem; }
  .bn-row { grid-template-columns: 1fr; gap: 1rem; }
}

/* SCROLL REVEALS — fail-safe IntersectionObserver fade-ins.
   Pattern: fade-pending is added by JS (so no-JS = visible). The observer
   adds fade-in-visible on intersection; a 2.5s timer is the safety net so
   any element the observer misses still becomes visible. */
.fade-pending {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.fade-pending.fade-in-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-pending { opacity: 1; transform: none; transition: none; }
}
