*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #f2f2f2;
  --muted: #aaa;
  --blue: #00d4ff;
  --blue-dim: rgba(0, 212, 255, 0.14);
  --green: #4EDDAA;
  --green-dim: rgba(78, 221, 170, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

::selection {
  background: rgba(107, 168, 255, 0.35);
  color: #ffffff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a {
  display: flex;
  align-items: center;
  line-height: 0;
}

nav .logo {
  height: 68px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-link--email { color: var(--green); }
.nav-link--email:hover { color: var(--green); opacity: 0.8; }
/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111111;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }

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

  .nav-link {
    width: 100%;
    padding: 0 24px;
    height: 58px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    box-sizing: border-box;
  }

  .nav-links .nav-link:first-child {
    border-top: 1px solid var(--border);
  }

  .nav-link:last-child { border-bottom: none; }

  .nav-link:hover {
    background: rgba(255,255,255,0.04);
  }

  .nav-link--email { color: var(--green); }
  nav { position: fixed; }
}

/* MAIN */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 140px 0 60px;
  max-width: 640px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 580px;
}

.nav-link--active {
  color: var(--text) !important;
}

.nav-link--email.nav-link--active {
  color: var(--green) !important;
}

/* HERO */
.hero {
  padding: 160px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  height: 180px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #999;
  margin-bottom: 40px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

/* PILLARS */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 100px;
}

.pillar {
  background: var(--surface);
  padding: 36px 32px;
}

.pillar--linked {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.pillar--linked:hover {
  background: #1c1c1c;
}

p .pillar-link {
  display: inline;
  color: var(--blue);
}

.pillar-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* PRINCIPLES */
.principles {
  padding: 0 0 80px;
}

.principles-section-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.principles h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.principles-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 48px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.principle {
  background: var(--surface);
  padding: 28px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.principle-number {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  opacity: 0.8;
  min-width: 28px;
  padding-top: 2px;
}

.principles--investment .principle-number {
  color: var(--green);
}

.principle h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.principle p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* THESIS */
.thesis {
  padding: 0 0 100px;
  max-width: 640px;
}

.thesis h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.thesis p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(107, 168, 255, 0.25);
  border-radius: 6px;
  padding: 6px 14px;
}

/* CTA */
.cta {
  border-top: 1px solid var(--border);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta p {
  font-size: 1.1rem;
  color: var(--muted);
}

.cta-sub {
  font-size: 0.95rem !important;
  max-width: 520px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  background: var(--green);
  border-radius: 8px;
  padding: 12px 28px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.cta-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .cta-buttons .btn {
    width: 100%;
    padding: 16px 20px;
  }
}

/* INVESTMENTS */
.inv-section {
  margin-bottom: 80px;
}

.inv-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: 32px;
}

.inv-section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.inv-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.inv-chart-wrap {
  position: sticky;
  top: 108px;
}

.inv-chart-wrap canvas {
  width: 100% !important;
}

.inv-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 20px;
  justify-items: start;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-ticker {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 48px;
}

.legend-pct {
  font-size: 12px;
  color: var(--muted);
}

.inv-holdings {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.inv-holding {
  background: var(--surface);
  padding: 24px 28px;
}

.inv-holding--cash {
  background: var(--bg);
}

.inv-holding-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.inv-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  min-width: 52px;
}

.inv-name {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.inv-pct {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.inv-holding p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

.inv-fixed-income {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.inv-bond {
  background: var(--surface);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.inv-bond-issuer {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.inv-bond-detail {
  font-size: 0.85rem;
  color: var(--muted);
}

.inv-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .inv-layout { grid-template-columns: 1fr; }
  .inv-chart-wrap { position: static; max-width: 320px; }
}

/* RESUME */
.resume {
  padding-bottom: 100px;
}

.resume-title {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.resume-contact {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.resume-contact-link {
  color: var(--blue);
  text-decoration: none;
}

.resume-contact-link:hover {
  text-decoration: underline;
}

.resume-section {
  margin-bottom: 60px;
}

.resume-section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.resume-summary {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.resume-job {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.resume-job:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.resume-job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}

.resume-job-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.resume-employer {
  font-size: 0.9rem;
  color: var(--muted);
}

.resume-date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}

.resume-clearance {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 10px;
  opacity: 0.9;
}

.resume-job-intro {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 760px;
}

.resume-platforms {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.resume-platform {
  background: var(--surface);
  padding: 20px 24px;
}

.platform-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.resume-platform p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.resume-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.resume-achievements li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.resume-achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.8rem;
}

.highlight-green {
  color: var(--green);
  font-weight: 600;
}

.resume-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.resume-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.resume-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.resume-tech {
  font-size: 0.82rem;
  color: #555;
  margin-top: 12px;
}

.tech-label {
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 700px) {
  .resume-job-header { flex-direction: column; gap: 4px; }
  .resume-date { padding-top: 0; }
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 960px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
  .br-lg { display: none; }
  h1 { font-size: 1.8rem; }
  .hero-logo { height: 110px; }
  nav .logo { height: 48px; }
  .nav-inner { height: 70px; }
}
