/* Layout: one calm column on warm, sunlit paper; a live solar system and a gravitational star field run under the whole page; content sits on a 12-col grid. */
:root {
  --paper: #fbf9f6;       /* page ground: warm white */
  --ink: #111842;         /* primary text: deep-space navy */
  --dim: #4a5277;         /* secondary text */
  --faint: #8c8fa6;       /* tertiary, labels */
  --line: rgba(17, 24, 66, 0.12);
  --ion: #2c3aa6;         /* accent: cobalt ink */
  --sun: #ef8f2f;         /* solar warmth, used for light only */
  --sun-glow: rgba(255, 168, 82, 0.22);

  --f-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 700px at -10% 70%, rgba(255, 140, 100, 0.07), transparent 65%),
    linear-gradient(rgba(17, 24, 66, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 66, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 160px 160px, 160px 160px;
  color: var(--ink);
  font: 300 19px/1.6 var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ion); outline-offset: 4px; border-radius: 2px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sunlight {
  position: fixed; top: -45vh; right: -35vw; width: 95vw; height: 95vw; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--sun-glow), rgba(255, 200, 140, 0.08) 45%, transparent 72%);
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: .85; } }

.wrap {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(251, 249, 246, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.mark { padding-block: 10px; font: 400 23px/1 var(--f-display); text-decoration: none; letter-spacing: .01em; }
.mark span { color: var(--sun); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: inline-block; padding-block: 15px;
  font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim); text-decoration: none; transition: color .3s;
}
.nav ul a:hover { color: var(--ink); }

/* type */
.label {
  display: flex; align-items: center; gap: 12px;
  font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .18em; color: var(--dim);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.label i { font-style: normal; color: var(--ion); text-transform: none; letter-spacing: .04em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.03; letter-spacing: -.01em; }
h3 { font-size: 27px; line-height: 1.12; }
em { font-style: italic; color: var(--ion); }
p { margin: 0; max-width: 60ch; color: var(--dim); }
p strong { color: var(--ink); font-weight: 400; }
.k { font: 400 11px/1 var(--f-mono); color: var(--ion); letter-spacing: .08em; }

section { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }

/* hero */
.hero { position: relative; padding-block: clamp(72px, 11vw, 136px) clamp(56px, 7vw, 92px); border-top: 0; }
#orrery { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); z-index: -1; }
.hero h1 {
  margin-top: 30px;
  font-size: clamp(60px, 11vw, 148px); line-height: .93; letter-spacing: -.02em;
}
.hero h1 .row { display: block; }
.hero h1 .w { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero h1 .row:nth-child(1) .w:nth-child(2) { animation-delay: .12s; }
.hero h1 .row:nth-child(2) .w { animation-delay: .45s; animation-duration: 1.6s; }
.hero h1 .row:nth-child(2) .w + .w { animation-delay: .58s; }
.hero .lede { margin-top: 34px; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.5; max-width: 50ch; animation: rise 1.2s .85s var(--ease) both; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; animation: rise 1.2s 1s var(--ease) both; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  border: 1px solid var(--line); color: var(--ink); background: rgba(251, 249, 246, 0.7);
  transition: border-color .4s, background .4s, box-shadow .4s, color .4s;
}
.btn:hover { border-color: var(--ink); box-shadow: 0 10px 30px -14px rgba(17, 24, 66, .45); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--ion); border-color: var(--ion); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.readout { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 28px; font: 400 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); animation: rise 1.2s 1.25s var(--ease) both; }
.readout b { font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

@keyframes rise {
  from { opacity: 0; transform: translateY(.35em); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.portrait { position: relative; width: min(100%, 380px); aspect-ratio: 1; justify-self: center; max-width: 100%; }
.portrait img {
  position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: cover; border-radius: 50%;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
  box-shadow: 0 30px 70px -32px rgba(17, 24, 66, .5);
  transition: filter 1.2s var(--ease);
}
.portrait:hover img { filter: grayscale(.1); }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.portrait .orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.portrait .orbit.dash { stroke: var(--faint); stroke-dasharray: 2 6; }
.portrait .spin { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
.portrait .spin.slow { animation-duration: 140s; animation-direction: reverse; }
.portrait .sat { fill: var(--sun); filter: drop-shadow(0 0 6px var(--sun)); }
.portrait .sat.small { fill: var(--ink); filter: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.about .text { display: grid; gap: 20px; min-width: 0; }
.creds { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.creds li { padding: 16px 14px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; font: 400 20px/1.15 var(--f-display); color: var(--ink); }
.creds li + li { padding-left: 14px; border-left: 1px solid var(--line); }

/* thesis */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.split > .head { grid-column: 1 / span 5; display: grid; gap: 26px; align-content: start; }
.split > .body { grid-column: 7 / span 6; display: grid; gap: 20px; align-content: start; min-width: 0; }
.principles {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.principle { padding: 26px 24px 6px 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
.principle p { font-size: 17px; }

/* frontiers */
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 60px); }
.frontiers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(251, 249, 246, 0.55); }
.frontier {
  position: relative; overflow: hidden; text-decoration: none;
  padding: 26px 24px 28px; min-height: 240px; min-width: 0;
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.frontier::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 168, 82, 0.16), transparent 60%);
}
.frontier:hover::before { opacity: 1; }
.frontier .k { color: var(--faint); transition: color .5s; }
.frontier:hover .k { color: var(--ion); }
.frontier h3 { align-self: end; }
.frontier p { font-size: 16.5px; }
.frontier.open { background: rgba(255, 168, 82, 0.07); }

/* practice */
.practice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.practice article { display: grid; grid-template-columns: 116px 1fr; gap: 22px; padding-block: 30px; border-top: 1px solid var(--line); }
.practice article .k { line-height: 1.7; padding-top: 6px; text-transform: uppercase; letter-spacing: .14em; }
.practice article div { display: grid; gap: 10px; min-width: 0; }
.practice article p { font-size: 17.5px; }

/* fellow investors */
.investors { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.investors .head { display: grid; gap: 26px; }
.investors .body { display: grid; gap: 20px; min-width: 0; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.ways div { padding: 18px 14px 0 0; display: grid; gap: 8px; min-width: 0; }
.ways div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.ways b { font: 400 21px/1.15 var(--f-display); color: var(--ink); }

/* next generation */
.nextgen { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 88px); align-items: end; }
.nextgen .head { display: grid; gap: 26px; }
.nextgen h2 { font-size: clamp(40px, 6vw, 80px); }
.nextgen .body { display: grid; gap: 20px; min-width: 0; }

/* contact */
.contact { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(44px, 7vw, 96px); max-width: 13ch; }
.links { display: flex; flex-wrap: wrap; gap: 14px; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 400 15px/1 var(--f-mono); color: var(--ink); }
.email span { user-select: all; }
.copy { background: none; border: 0; padding: 14px 8px; margin-inline: -8px; cursor: pointer; font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.copy:hover { color: var(--ion); }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; font: 400 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* live coordinate readout that follows the cursor's sky position */
.hud {
  position: fixed; z-index: 4; pointer-events: none;
  left: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(251, 249, 246, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 400 10px/1 var(--f-mono); letter-spacing: .08em; color: var(--faint); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .6s;
}
.hud.on { opacity: 1; }
.hud b { font-weight: 400; color: var(--ink); }
@media (hover: none) { .hud { display: none; } }

/* scroll reveal: only applied by JS to elements that start below the fold */
.pre { opacity: 0; transform: translateY(24px); }
.in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split > .head, .split > .body { grid-column: 1 / -1; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
  .frontiers { grid-template-columns: repeat(2, 1fr); }
  .frontier { min-height: 210px; }
  .practice, .about, .nextgen, .investors { grid-template-columns: 1fr; }
  .nav ul { gap: 18px; }
}
@media (max-width: 620px) {
  body { font-size: 18px; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .nav ul li:nth-child(-n+2) { display: none; }
  .principles, .frontiers, .ways, .creds { grid-template-columns: 1fr; }
  .principle, .principle + .principle, .ways div + div, .creds li + li { padding-left: 0; border-left: 0; }
  .principle + .principle, .ways div + div, .creds li + li { border-top: 1px solid var(--line); }
  .ways div, .creds li { padding-bottom: 16px; }
  .frontier { min-height: 0; }
  .practice article { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1; transform: none; }
}
