/* ── GVR Website — main.css ─────────────────────────────────── */
:root {
  --navy:       #0a0f1e;
  --navy-2:     #0d1524;
  --navy-3:     #111d30;
  --navy-4:     #1a2a45;
  --gold:       #c9a84c;
  --gold-light: #e0c070;
  --gold-dim:   #8a6f2e;
  --white:      #f4f1ea;
  --muted:      #8a94a8;
  --border:     rgba(201,168,76,0.15);
  --pos:        #4caf7d;
  --neg:        #e05c5c;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:     8px;
  --max-w:      1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--white); font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; letter-spacing: .02em;
}
.nav-logo { width: 36px; height: 36px; }
.nav-name { white-space: nowrap; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted); font-size: .875rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-disclosures { font-size: .75rem !important; opacity: .7; }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--gold); font-size: 1.4rem; cursor: pointer;
}
/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 120px 4rem 160px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,168,76,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(26,42,69,.8) 0%, transparent 60%),
    linear-gradient(160deg, #0a0f1e 0%, #0d1524 50%, #0a1020 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(201,168,76,.03) 40px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 39px,
    rgba(201,168,76,.03) 40px
  );
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic; color: var(--gold);
}
.hero-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 560px; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  padding: .75rem 2rem;
  border: 1px solid var(--border);
  color: var(--white) !important;
  font-weight: 500; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,.05); }
/* stat bar */
.hero-stat-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  display: flex; align-items: stretch;
  background: rgba(13,21,36,.9);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.stat-item {
  flex: 1; padding: 1.25rem 2rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.stat-label {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.stat-value {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 600; color: var(--white);
}
.stat-divider {
  width: 1px; background: var(--border); margin: .75rem 0;
}
.pos { color: var(--pos); }
.neg { color: var(--neg); }
/* ── ABOUT STRIP ─────────────────────────────────────────────── */
.about-strip {
  padding: 5rem 4rem;
  background: var(--navy-2);
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; max-width: var(--max-w); margin: 0 auto;
}
.about-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  transition: border-color .2s, background .2s;
}
.about-card:hover {
  border-color: rgba(201,168,76,.3);
  background: rgba(201,168,76,.03);
}
.about-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.about-card h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 600; color: var(--white); margin-bottom: .5rem;
}
.about-card p { font-size: .875rem; color: var(--muted); line-height: 1.7; }
/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  padding: 120px 4rem 3rem;
  background: var(--navy-2);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; color: var(--white);
}
.page-header p {
  color: var(--muted); margin-top: .5rem; font-size: .9rem;
}
/* ── MAIN CONTENT AREA ───────────────────────────────────────── */
.page-content {
  max-width: var(--max-w); margin: 0 auto;
  padding: 3rem 4rem;
}
/* ── PERFORMANCE PAGE ────────────────────────────────────────── */
.perf-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
.perf-stat {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}
.perf-stat-label {
  font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .4rem;
}
.perf-stat-value {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 600;
}
.chart-container {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.chart-title {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; color: var(--white);
}
.chart-toggle { display: flex; gap: .5rem; }
.chart-btn {
  padding: .3rem .8rem; font-size: .75rem;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); border-radius: 4px; cursor: pointer;
  transition: all .15s;
}
.chart-btn.active, .chart-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,.08);
}
canvas { width: 100% !important; }
/* ── PORTFOLIO TABLE ─────────────────────────────────────────── */
.port-table-wrap {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem;
}
thead tr {
  background: var(--navy-4);
  border-bottom: 1px solid var(--border);
}
th {
  padding: .9rem 1rem; text-align: right;
  font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500;
}
th:first-child { text-align: left; }
td {
  padding: .85rem 1rem; text-align: right;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--white);
}
td:first-child { text-align: left; }
tbody tr:hover { background: rgba(201,168,76,.03); }
tbody tr:last-child td { border-bottom: none; }
.ticker-cell { font-weight: 600; color: var(--gold); letter-spacing: .05em; }
.name-cell { color: var(--muted); font-size: .8rem; }
/* ── NEWSLETTER ──────────────────────────────────────────────── */
.newsletter-list { display: flex; flex-direction: column; gap: 1.5rem; }
.newsletter-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s;
}
.newsletter-card:hover { border-color: rgba(201,168,76,.3); }
.nl-date {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem;
}
.nl-title {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 600; color: var(--white); margin-bottom: .75rem;
}
.nl-preview { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.nl-read-more {
  display: inline-block; margin-top: 1rem;
  font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}
/* ── THESIS ──────────────────────────────────────────────────── */
.thesis-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.thesis-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.thesis-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 1rem;
}
.thesis-ticker {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--gold);
}
.thesis-name { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.thesis-badge {
  padding: .3rem .8rem; border-radius: 20px; font-size: .7rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.badge-buy { background: rgba(76,175,125,.15); color: var(--pos); border: 1px solid rgba(76,175,125,.3); }
.badge-watch { background: rgba(201,168,76,.12); color: var(--gold); border: 1px solid rgba(201,168,76,.25); }
.badge-avoid { background: rgba(224,92,92,.12); color: var(--neg); border: 1px solid rgba(224,92,92,.25); }
.thesis-body { color: var(--muted); font-size: .9rem; line-height: 1.8; }
.thesis-meta {
  display: flex; gap: 2rem; margin-top: 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.thesis-meta-item { display: flex; flex-direction: column; gap: .2rem; }
.thesis-meta-label { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.thesis-meta-value { font-size: .9rem; color: var(--white); font-weight: 500; }
/* ── DISCLOSURES ─────────────────────────────────────────────── */
.disclosures-body { max-width: 740px; }
.disclosures-body h2 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--gold); margin: 2rem 0 .75rem;
}
.disclosures-body p {
  color: var(--muted); font-size: .9rem; line-height: 1.8;
  margin-bottom: .75rem;
}
/* ── DISCLOSURE BANNER ───────────────────────────────────────── */
.disclosure-banner {
  background: rgba(201,168,76,.06);
  border-top: 1px solid var(--border);
  padding: 1rem 4rem;
  font-size: .75rem; color: var(--muted); line-height: 1.6;
}
.disclosure-banner strong { color: var(--gold); }
/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--muted);
  background: var(--navy-2);
}
/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    padding: 100px 2rem 2rem;
    min-height: auto;
    overflow: visible;
    justify-content: flex-start;
  }
  .about-strip { padding: 3rem 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .page-content { padding: 2rem; }
  .page-header { padding: 100px 2rem 2rem; }
  .perf-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stat-bar {
    position: static;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  .stat-item { min-width: 40%; }
  .stat-divider { display: none; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy-2); padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer { padding: 1.5rem 2rem; }
  .disclosure-banner { padding: 1rem 2rem; }
}
@media (max-width: 600px) {
  /* Performance stat grid — 2 columns */
  .perf-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero-title { font-size: 2.5rem; }

  /* Portfolio summary cards — 2x2 */
  .port-summary { grid-template-columns: repeat(2, 1fr) !important; }

  /* Chart header stacks vertically so toggle buttons don't overflow */
  .chart-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .chart-toggle { flex-wrap: wrap; }

  /* Benchmark legend wraps onto multiple lines */
  .benchmark-legend { flex-wrap: wrap; gap: .5rem; }

  /* Portfolio table scrolls horizontally — prevents full page overflow */
  .port-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .port-table-wrap table { min-width: 700px; }

  /* Tighten page padding on small screens */
  .page-content { padding: 1.25rem 1rem; }
  .page-header { padding: 90px 1rem 1.5rem; }

  /* Dollar growth card */
  .dollar-growth-card { flex-direction: column; align-items: flex-start; padding: 1.25rem; }

  /* Disclosure banner and footer */
  .disclosure-banner { padding: 1rem 1rem; }
  .footer { padding: 1.25rem 1rem; flex-direction: column; gap: .5rem; text-align: center; }
}