/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0a0e1a;
  color: #e6e9f0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Subtle grain — only on backgrounds, not blocking text */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0c1120;
  --text: #e6e9f0;
  --text-dim: #c8cdda;
  --muted: #8790a6;
  --rule: #1f2638;
  --rule-strong: #2a3148;
  --accent: #e6c279;
  --accent-soft: rgba(230, 194, 121, 0.18);
  --accent-glow: rgba(230, 194, 121, 0.35);
  --max: 1120px;
  --pad-x: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 10vw, 148px);
  --serif: "Fraunces", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--rule);
  position: relative;
}
.section-alt { background: var(--bg-alt); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--accent); color: #1a1305; padding: 8px 12px; border-radius: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; z-index: 9999; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
}
.brand-mark { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.brand-word {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 30;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.005em;
}
.topnav {
  display: flex; gap: 32px;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.05em;
}
.topnav a {
  color: var(--muted); text-decoration: none;
  transition: color 180ms ease;
  position: relative;
}
.topnav a:hover { color: var(--text); }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 220ms ease;
}
.topnav a:hover::after { transform: scaleX(1); }

@media (max-width: 680px) {
  .topnav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(112px, 16vw, 200px);
  padding-bottom: clamp(112px, 16vw, 200px);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { position: relative; z-index: 2; }
.constellation {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: 0.95;
}
.constellation svg {
  width: 100%; height: 100%; display: block;
}
/* fade the edges so the constellation doesn't fight with type */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(10,14,26,0.85), transparent 70%),
    linear-gradient(to bottom, rgba(10,14,26,0) 30%, rgba(10,14,26,0.85) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-inner { z-index: 3; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-weight: 380;
  font-size: clamp(42px, 8.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 16ch;
  display: block;
}
.hero-title .line { display: block; }
.hero-title .line-2 {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-sub {
  max-width: 54ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.62;
  color: var(--text-dim);
  margin: 0 0 40px;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  border: 1px solid transparent;
  will-change: transform;
}
.btn-primary {
  background: var(--accent); color: #1a1305;
  box-shadow: 0 10px 30px -16px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); background: #f1d089; box-shadow: 0 14px 36px -14px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- Two-column section (Approach, Contact) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(36px, 6vw, 112px);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
}
.col-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
  padding-top: 12px;
}
.col-label .rule {
  display: inline-block; width: 36px; height: 1px;
  background: var(--accent);
}
.col-body h2,
.section-head-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 420;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 22ch;
}
.col-body p {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 17px;
}
.col-body p:last-child { margin-bottom: 0; }

/* ---------- Single-column section head (Principles, Ventures) ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .col-label { padding-top: 0; }
.section-head-title {
  margin: 0;
  max-width: 24ch;
}

/* ---------- Principles grid ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 80px);
}
@media (max-width: 780px) {
  .principles { grid-template-columns: 1fr; }
}
.principle {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.principle-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}
.principle h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 50;
  font-weight: 430;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--text);
}
.principle p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 40ch;
}

/* ---------- Ventures list ---------- */
.venture-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.venture {
  display: grid;
  grid-template-columns: 180px 220px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  transition: background 240ms ease;
}
.venture:first-child { border-top: 1px solid var(--rule-strong); }
.venture-status {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-left: 14px;
}
.venture-status::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--muted);
  transform: translateY(-50%);
}
.venture-status-active {
  color: var(--accent);
}
.venture-status-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,194,121,0.15);
}
.venture-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 50;
  font-weight: 440;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.venture.muted .venture-name { color: #a7aec1; }
.venture-desc {
  color: var(--text-dim);
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.6;
}
.venture.muted .venture-desc { color: #96a0b6; }

@media (max-width: 860px) {
  .venture {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .venture-desc { max-width: none; }
}

/* ---------- Misc ---------- */
.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,194,121,0.38);
  padding-bottom: 1px;
  transition: border-color 180ms ease, color 180ms ease;
}
.link:hover { border-bottom-color: var(--accent); color: #f1d089; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1; transform: none;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding-top: 48px;
  padding-bottom: 48px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  align-items: center; justify-content: space-between;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 30;
  font-weight: 500;
  font-size: 15px;
}
.footer-brand svg { color: var(--accent); }
.footer-meta {
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.footer-legal {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.footer-mark {
  color: var(--accent);
  font-size: 14px;
}
@media (max-width: 620px) {
  .footer-meta { text-align: left; }
  .footer-legal { flex-direction: row; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
