/* ================================================================
   HYGEIA VENTURES — MAIN STYLESHEET
   ================================================================
   Organization:
     1. DESIGN TOKENS          — colors, fonts, spacing, timing
     2. RESET & BASE           — sensible defaults
     3. TYPOGRAPHY             — headings, body, utilities
     4. LAYOUT PRIMITIVES      — container, grid, sections
     5. NAVIGATION             — top nav + mobile menu
     6. BUTTONS & LINKS        — interactive elements
     7. COMPONENTS             — cards, badges, forms, footer
     8. HOME PAGE              — hero + home-specific sections
     9. PAGE HEADERS           — shared inner-page top banner
    10. STRATEGY PAGE
    11. PORTFOLIO PAGE
    12. TEAM PAGE
    13. NEWS PAGE
    14. IMPACT PAGE
    15. CONTACT PAGE
    16. ANIMATIONS
    17. RESPONSIVE OVERRIDES
   ================================================================ */


/* ================================================================
   1. DESIGN TOKENS
   ----------------------------------------------------------------
   Change values here to restyle the entire site globally.
   ================================================================ */
:root {
  /* --- BRAND COLORS ---
     Primary = deep navy base (backgrounds)
     Accent  = cyan from the logo (highlights, links, CTAs)
     Change these to shift the entire site palette. */
  --color-bg:           #0a1628;  /* Deepest navy — page background */
  --color-bg-alt:       #0f1e35;  /* Slightly lifted — section backgrounds */
  --color-bg-elevated:  #15263f;  /* Cards, panels */
  --color-border:       #1f3556;  /* Subtle dividers */
  --color-border-bright:#2a4875;  /* Hover state borders */

  --color-text:         #d4dae3;  /* Primary body text */
  --color-text-muted:   #a0aec0;  /* Secondary text, captions */
  --color-text-dim:     #6b7c99;  /* Tertiary, labels */

  --color-accent:       #4db8d9;  /* Primary cyan — links, buttons, logo */
  --color-accent-bright:#6dd0ed;  /* Hover state for accent */
  --color-accent-dim:   #2a7a99;  /* Muted accent for subtle accents */

  --color-gold:         #c9a961;  /* Editorial highlight (used sparingly) */

  /* --- GRADIENTS & EFFECTS --- */
  --gradient-hero: radial-gradient(ellipse at top right, rgba(77, 184, 217, 0.15), transparent 60%),
                   radial-gradient(ellipse at bottom left, rgba(42, 122, 153, 0.1), transparent 50%),
                   linear-gradient(180deg, #0a1628 0%, #0f1e35 100%);
  --gradient-card: linear-gradient(145deg, rgba(77, 184, 217, 0.04), rgba(15, 30, 53, 0.8));

  /* --- TYPOGRAPHY ---
     Display: Fraunces (editorial serif) — used for page headings
     Body:    Inter Tight (refined sans) — everything else
     Mono:    JetBrains Mono — numbers, stats, labels */
  --font-display: 'Manrope', -apple-system, sans-serif;
  --font-body:    'Manrope', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale — fluid sizes (clamps auto-scale between mobile & desktop) */
  --fs-display:   clamp(2.5rem, 5vw, 4rem);      /* Hero headlines */
  --fs-h1:        clamp(2.25rem, 4.5vw, 3.75rem); /* Page titles */
  --fs-h2:        clamp(1.75rem, 3vw, 2.5rem); /* Section titles */
  --fs-h3:        clamp(1.25rem, 2vw, 1.5rem); /* Subsections */
  --fs-body:      1rem;
  --fs-lg:        1.125rem;
  --fs-sm:        0.875rem;
  --fs-xs:        0.75rem;

  /* --- SPACING SCALE --- */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;    /* Between major sections on large screens */

  /* --- LAYOUT --- */
  --max-width:      1280px;  /* Main content width */
  --max-width-text: 720px;   /* Readable prose width */
  --nav-height:     76px;

  /* --- MOTION --- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  180ms;
  --dur-med:   400ms;
  --dur-slow:  800ms;

  /* --- SHADOWS --- */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 32px rgba(77, 184, 217, 0.15);
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  /* Subtle grain for atmosphere — delete this block to remove texture */
  background-image:
    radial-gradient(circle at 15% 50%, rgba(77, 184, 217, 0.04), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(42, 122, 153, 0.03), transparent 50%);
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}

a:hover {
  color: var(--color-accent-bright);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;        
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; }

p {
  color: var(--color-text);
  max-width: 65ch;   /* Optimal reading width */
}

.eyebrow {
  /* Small uppercase label used above headings */
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: block;
  margin-left: 0.2em; 
}

.lead {
  /* Intro paragraph style */
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 60ch;
}

.accent { color: var(--color-accent); }
.muted  { color: var(--color-text-muted); }
.dim    { color: var(--color-text-dim); }

.italic-display {
  /* For elegant italic emphasis in headings */
  font-style: italic;
  font-weight: 300;
  color: var(--color-accent);
}


/* ================================================================
   4. LAYOUT PRIMITIVES
   ================================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-2xl) 0;
  position: relative;
}

section.compact { padding: var(--space-2xl) 0; }

/* Divider line with glow */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-bright), transparent);
  margin: var(--space-2xl) auto;
  max-width: 400px;
}


/* ================================================================
   5. NAVIGATION
   ---------------------------------------------------------------
   Change logo/brand content in each page's HTML header.
   Change nav items in each page's HTML (kept simple — no JS
   injection so pages remain self-contained and editable).
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-med) var(--ease-soft);
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-brand .logo-mark {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.nav-brand:hover { color: var(--color-text); }

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  /* Animated underline on hover */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--dur-med) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.5rem !important;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent) !important;
  transition: all var(--dur-fast) var(--ease-soft);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg) !important;
}

.nav-cta::after { display: none; }

.nav-toggle {
  /* Mobile hamburger — hidden on desktop */
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--dur-fast) var(--ease-soft);
}


/* ================================================================
   6. BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-soft);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-bright);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-bright);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--dur-fast) var(--ease-soft);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}


/* ================================================================
   7. COMPONENTS — cards, forms, footer
   ================================================================ */

/* CARD */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color var(--dur-med) var(--ease-soft),
              transform var(--dur-med) var(--ease-soft);
}

.card:hover {
  border-color: var(--color-border-bright);
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.card-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: block;
}

/* STAT (number + label, used across site) */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--color-accent);
  font-feature-settings: 'tnum';  /* Tabular numbers */
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
}

/* FORM */
.form-group {
  margin-bottom: var(--space-md);
  background: var(--color-bg-alt);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-soft),
              background var(--dur-fast) var(--ease-soft);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-bg-elevated);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
}

/* FOOTER */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.footer-links a:hover { color: var(--color-text); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--color-text-dim);
  font-size: var(--fs-xs);
}

.footer-disclaimer {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  line-height: 1.7;
  max-width: 100%;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}


/* ================================================================
   8. HOME PAGE — hero, thesis, approach, highlights
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  background: var(--gradient-hero);
  overflow: hidden;
}

/* Animated gradient orb behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(77, 184, 217, 0.12), transparent 60%);
  filter: blur(60px);
  animation: drift 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 122, 153, 0.1), transparent 60%);
  filter: blur(60px);
  animation: drift 25s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-md);
}

.hero-title .italic-display {
  display: inline-block;
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 660px;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* Hero stats row (bottom of hero) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* HOME — THESIS / APPROACH blocks */
.thesis-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.thesis-entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.thesis-entry-list li {
  display: flex;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.thesis-entry-list .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  min-width: 40px;
}

/* HOME — pillars (4-card grid) */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.pillar {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  transition: all var(--dur-med) var(--ease-soft);
}

.pillar:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-elevated);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.pillar p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* HOME — section intro (title + label + lead) */
.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section-intro.left { text-align: left; margin: 0 0 var(--space-xl); }

.section-intro h2 {
  margin-bottom: var(--space-md);
}


/* ================================================================
   9. PAGE HEADERS — shared top banner for inner pages
   ================================================================ */
.page-header {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77, 184, 217, 0.08), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-header h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  margin-bottom: var(--space-md);
  max-width: 50ch;
}

.page-header .lead {
  max-width: 65ch;
}


/* ================================================================
   10. STRATEGY PAGE
   ================================================================ */
.stage-table {
  margin-top: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.stage-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 2fr;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  transition: background var(--dur-fast) var(--ease-soft);
}

.stage-row:last-child { border-bottom: none; }
.stage-row:hover { background: var(--color-bg-alt); }

.stage-row.header {
  background: var(--color-bg-alt);
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.stage-row > div:not(:first-child) {
  text-align: center;
}

.stage-row.header > div:first-child {
  padding-left: var(--space-lg);
}

.stage-sector { font-family: var(--font-display); font-size: 1.125rem; }

.stage-check {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.stage-dash {
  color: var(--color-text-dim);
  font-size: 1rem;
  font-style: italic;
}

.sector-allocation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.sector-card {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  border-top: 3px solid var(--color-accent);
}

.sector-alloc-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.sector-card h3 { font-size: 1.25rem; margin-bottom: var(--space-sm); }

.sector-card ul {
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.sector-card ul li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.25rem;
}

.sector-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.value-add-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.value-add-item {
  padding: var(--space-md);
  border-left: 2px solid var(--color-accent);
  background: var(--color-bg-alt);
}

.value-add-item h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.value-add-item p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}


/* ================================================================
   11. PORTFOLIO PAGE
   ================================================================ */
.portfolio-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--dur-fast) var(--ease-soft);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(77, 184, 217, 0.05);
}

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

.portfolio-item {
  aspect-ratio: 1;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--dur-med) var(--ease-soft);
  cursor: pointer;
}

.portfolio-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio-placeholder-icon {
  width: 48px;
  height: 48px;
  border: 1px dashed var(--color-border-bright);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 1.25rem;
}

.portfolio-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.portfolio-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
}

.portfolio-stage {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--color-accent-dim);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-top: var(--space-xs);
}

.portfolio-empty-notice {
  text-align: center;
  padding: var(--space-2xl);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  margin-top: var(--space-xl);
  color: var(--color-text-muted);
}

.portfolio-empty-notice p {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}


/* ================================================================
   12. TEAM PAGE
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.team-card {
  background: #F4EFE6;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-soft);
}

.team-card:hover {
  border-color: var(--color-border-bright);
  transform: translateY(-4px);
}

.team-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--color-bg-elevated);
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) contrast(1.05);
  transition: filter var(--dur-med) var(--ease-soft);
}

.team-card:hover .team-photo {
  filter: saturate(1) contrast(1);
}

.team-photo-placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  background:
    linear-gradient(135deg, var(--color-bg-elevated), var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-photo-placeholder::before {
  content: '';
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-border);
  margin-bottom: 10px;
}

.team-placeholder-label {
  position: absolute;
  bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-info {
  padding: var(--space-lg);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #1a2942;
}

.team-role {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7c8c;
  margin-bottom: var(--space-md);
}

.team-bio {
  font-size: var(--fs-sm);
  color: #3a4858;
  line-height: 1.6;
  min-height: 220px;  /* ADD THIS LINE - adjust height as needed */
}

.team-credentials {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-credential {
  font-size: var(--fs-xs);
  color: #4a5868;
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.team-credential::before {
  content: '●';
  color: var(--color-accent);
  font-size: 0.5rem;
}

/* LinkedIn / Social Links */
.team-role + .team-social {
  margin: -20px 0 var(--space-md) 0;  /* Negative margin pulls it closer */
  display: flex;
  gap: var(--space-sm);
}

.team-social a {
  font-size: var(--fs-sm);
  color: #0A66C2;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.team-social a:hover {
  opacity: 0.7;
}


/* ================================================================
   13. NEWS / INSIGHTS PAGE
   ================================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
  transition: padding var(--dur-fast) var(--ease-soft);
}

.news-item:hover {
  padding-left: var(--space-md);
}

.news-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.news-excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.news-category {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}


/* ================================================================
   14. IMPACT / ESG PAGE
   ================================================================ */
.impact-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
}

.impact-stage {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  border-top: 3px solid var(--color-accent);
  position: relative;
}

.impact-stage-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.impact-stage h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.impact-stage ul {
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.impact-stage ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.impact-stage ul li:last-child { border-bottom: none; }

.sdg-row {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.sdg-badge {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sdg-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
}

.sdg-name {
  font-size: var(--fs-sm);
  color: var(--color-text);
}


/* ================================================================
   15. CONTACT PAGE
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h2 { margin-bottom: var(--space-md); }

.contact-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.contact-tracks {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.contact-track {
  padding: var(--space-md);
  border-left: 2px solid var(--color-accent);
  background: var(--color-bg-alt);
}

.contact-track h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-track p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.contact-form-wrap {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-success,
.form-error {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: 4px;
  font-size: var(--fs-sm);
  display: none;
}

.form-success.active {
  display: block;
  background: rgba(77, 184, 217, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.form-error.active {
  display: block;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid #c04848;
  color: #ff8888;
}

.newsletter-section {
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(77, 184, 217, 0.05), rgba(42, 122, 153, 0.02));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: var(--space-lg) auto 0;
}

.newsletter-form .form-input { flex: 1; }


/* ================================================================
   16. ANIMATIONS
   ================================================================ */
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -20px); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fade-in-up 1s var(--ease-out) forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }
.fade-up.delay-4 { animation-delay: 0.4s; }
.fade-up.delay-5 { animation-delay: 0.5s; }

/* Scroll-triggered (added via JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   17. RESPONSIVE OVERRIDES
   ----------------------------------------------------------------
   Breakpoints:  960px (tablet) and 640px (mobile)
   ================================================================ */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-md);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .thesis-grid { grid-template-columns: 1fr; }

  .pillars { grid-template-columns: repeat(2, 1fr); }

  .stage-row { grid-template-columns: 1fr; gap: 0.5rem; padding: var(--space-md); }
  .stage-row.header { display: none; }

  .sector-allocation { grid-template-columns: 1fr; }

  .value-add-grid { grid-template-columns: repeat(2, 1fr); }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .team-grid { grid-template-columns: 1fr; }
  
  /* Team Social Links — Mobile */
  .team-role + .team-social {
    margin: -18px 0 var(--space-sm) 0;  /* Reduced negative margin for mobile */
  }

  .news-item { grid-template-columns: 1fr; gap: 0.5rem; }

  .impact-flow { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: var(--space-2xl) 0; }

  .container { padding: 0 var(--space-md); }

  .hero-cta { flex-direction: column; align-items: stretch; }

  .hero-cta .btn { justify-content: center; }

  .pillars { grid-template-columns: 1fr; }

  .value-add-grid { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .impact-flow { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }
}
/* ================================================================
   CUSTOM LOGO IMAGE — sizing for PNG logo replacing the SVG mark
   ================================================================ */
.nav-logo-img {
  height: 70px;          /* Change this if your logo looks too big/small */
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  margin-left: -20px;
}

/* If your PNG has a dark background that clashes with the site,
   uncomment the filter below — it will blend dark backgrounds nicely.
   Most people won't need this. */
/*
.nav-logo-img,
.footer-logo-img {
  mix-blend-mode: screen;
}
*/
/* ================================================================
   HEADLINE TEXT SHADOW — applied to main H1 on all pages
   ================================================================ */
.hero-title,
.page-header h1, h2, h3, h4 {
  text-shadow: 3px 4px 8px rgba(0, 0, 0, 0.85);
}
/* ================================================================
   CENTERED PARAGRAPH FIX
   ----------------------------------------------------------------
   Paragraphs inherit `max-width: 65ch` from the base p rule, which
   is great for left-aligned body text but causes centered
   paragraphs to wrap awkwardly with orphan words.
   These rules remove that constraint wherever text is centered.
   ================================================================ */
 
/* Any paragraph with inline text-align:center overrides max-width */
p[style*="text-align: center"],
p[style*="text-align:center"] {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
 
/* Paragraphs inside any element that's center-aligned */
[style*="text-align: center"] p,
[style*="text-align:center"] p,
.section-intro:not(.left) p,
.newsletter-section p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
 
/* The container-narrow wrapper used for CTA sections */
.container-narrow p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
/* ================================================================
   STAGE TABLE — MOBILE LABELS
   ----------------------------------------------------------------
   On mobile, the stage table collapses to one column. Without
   column headers visible, the three values have no context.
   These rules add inline labels ("Pre-Seed:", "Seed:", "Series A:")
   to each cell so the stage is clear.
   ================================================================ */
@media (max-width: 960px) {
  /* Add labels to each stage cell (skip the sector cell itself) */
  .stage-row:not(.header) > div:nth-child(2)::before { content: "Pre-Seed — "; }
  .stage-row:not(.header) > div:nth-child(3)::before { content: "Seed — "; }
  .stage-row:not(.header) > div:nth-child(4)::before { content: "Series A — "; }

  /* Style the labels in the same monospace uppercase style as the old header */
  .stage-row:not(.header) > div:nth-child(n+2)::before {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-dim);
    margin-right: 0.5em;
  }

  /* Add a little breathing space between stage cells on mobile */
  .stage-row:not(.header) > div:nth-child(n+2) {
    padding-left: 0;
  }
}
/* ================================================================
   INLINE GRID OVERFLOW FIX
   ----------------------------------------------------------------
   A few spots use inline grid-template-columns: repeat(N, 1fr)
   which don't respond to media queries. Force them to collapse
   on smaller screens.
   ================================================================ */
@media (max-width: 960px) {
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
/* Subtle grain texture in background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(77, 184, 217, 0.20) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.team-bio {
  text-align: justify;
  hyphens: auto;
}

/* Center 3-column stat rows so content sits mid-column, not left-aligned */
.stat {
  align-items: center;
  text-align: center;
}

.justified {
  text-align: justify;
  hyphens: auto;
}

/* 2-column override for value-add grids */
.value-add-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title,
.page-header h1,
.section-intro h2 {
  line-height: 1.18;
}

/* ================================================================
   GLASS FRAME — translucent frosted background for headlines
   Apply with class="glass-frame" on any element.
   ================================================================ 
.glass-frame {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(77, 184, 217, 0.06);
  border: 1px solid rgba(77, 184, 217, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}*/