:root {
  --ink: #0e1a2b;
  --ink-2: #16263d;
  --paper: #f7f5f0;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #5b6676;
  --line: #e3dfd6;
  --gold: #b88a3e;
  --gold-soft: #e9d9b8;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 26, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 36px; height: 36px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #8c6524);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 21px; color: #fff; letter-spacing: -0.02em;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: 0.01em; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .nav-cta { color: var(--ink); background: #fff; padding: 9px 16px; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--ink); background: var(--gold-soft); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(184, 138, 62, 0.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 96px 0 0;
  overflow: hidden;
}
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--gold);
}
.hero .eyebrow { color: #d9b676; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -0.015em;
  margin: 18px 0 24px; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: #e6c88d; }
.hero p.lede { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.76); max-width: 58ch; margin: 0 0 36px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

.stats {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat { padding: 28px 24px 36px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, 0.62); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2, .prose h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.01em;
  margin: 12px 0 16px; color: var(--ink);
}
.section-head p { color: var(--muted); margin: 0; }

/* Ventures */
.ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.venture {
  --accent: var(--gold);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.venture::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.venture:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(14, 26, 43, 0.35); border-color: #d5cfc2; }
.venture-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.glyph {
  width: 52px; height: 52px; flex: none; border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent); display: grid; place-items: center;
}
.glyph svg { width: 26px; height: 26px; }
.venture h3 { margin: 0; font-size: 22px; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.venture .kind { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.venture p { margin: 0 0 18px; color: #3a4556; font-size: 16px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 13px; font-weight: 500; color: #44505f; background: #f3f1eb; border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; }
.venture-links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.link-main { font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-main::after { content: "→"; transition: transform 0.15s ease; }
.link-main:hover::after { transform: translateX(3px); }
.link-sub { font-size: 14.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c3b6; }
.link-sub:hover { color: var(--ink); }
.v-528 { --accent: #1f6f8b; }
.v-phys { --accent: #6a4bc4; }
.v-jobs { --accent: #1e8a5a; }
.v-marker { --accent: #c2553a; }
.footnote { margin-top: 28px; font-size: 13.5px; color: var(--muted); max-width: 80ch; }

/* About */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.about-grid p { color: #3a4556; margin: 0 0 18px; }
.entity { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.entity h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.entity dl { margin: 0; }
.entity div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.entity dt { color: var(--muted); flex: none; }
.entity dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.principle { border-top: 2px solid var(--ink); padding-top: 20px; }
.principle h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.principle p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.contact-card p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }
.contact-card a.email { color: #e6c88d; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.support-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.support-table caption { text-align: left; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-bottom: 14px; }
.support-table th, .support-table td { text-align: left; padding: 16px 20px; font-size: 15px; border-top: 1px solid var(--line); vertical-align: top; }
.support-table tr:first-child th, .support-table tr:first-child td { border-top: 0; }
.support-table th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.support-table a { color: #2a4a7a; word-break: break-word; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding: 56px 0 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer h4 { margin: 0 0 14px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { margin: 14px 0 0; max-width: 40ch; }
.legal { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.prose h2 { font-size: 21px; color: var(--ink); margin: 40px 0 10px; }
.prose p, .prose li { color: #3a4556; }
.prose a { color: #2a4a7a; }
.prose .updated { color: var(--muted); font-size: 14.5px; }

@media (max-width: 900px) {
  .ventures, .about-grid, .contact-grid, .principles { grid-template-columns: 1fr; }
  .about-grid { gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  section { padding: 72px 0; }
  .hero { padding-top: 64px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-name small { display: none; }
  .venture { padding: 24px; }
  .support-table th, .support-table td { display: block; padding: 4px 16px; border-top: 0; }
  .support-table th { padding-top: 16px; border-top: 1px solid var(--line); white-space: normal; }
  .support-table td { padding-bottom: 16px; }
  .entity div { flex-direction: column; gap: 2px; }
  .entity dd { text-align: left; }
  .stat b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
