:root {
  --paper: #f2efe6;
  --paper-strong: #fffdf8;
  --ink: #111614;
  --ink-soft: #46504c;
  --line: rgba(17, 22, 20, 0.18);
  --blue: #2158ff;
  --orange: #e54f22;
  --night: #101615;
  --night-soft: #17211f;
  --white: #fffdf8;
  --max: 1280px;
  --radius: 0.2rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

::selection { background: var(--blue); color: white; }

.skip-link {
  left: 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 22, 21, 0.94);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-copy strong,
.brand-copy span { display: block; }

.brand-copy strong {
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-nav { display: flex; align-items: center; gap: 1.5rem; }

.desktop-nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover { color: white; }

.desktop-nav .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  padding: 0.6rem 0.85rem;
}

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; font-weight: 800; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-panel {
  position: absolute;
  top: 2.25rem;
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--night);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.mobile-panel a { display: block; padding: 0.75rem; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 4.75rem);
  background: var(--night);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.75), transparent 80%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: 10%;
  border: 1px solid rgba(33, 88, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(33, 88, 255, 0.06),
    0 0 0 10rem rgba(33, 88, 255, 0.035),
    0 0 0 15rem rgba(33, 88, 255, 0.018);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  min-height: calc(100svh - 4.75rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 4rem;
  align-items: end;
}

.eyebrow,
.section-kicker,
.status,
.meta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow { color: #8eacff; }
.section-kicker { color: var(--orange); }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  max-width: 10.5ch;
  margin: 1.3rem 0 0;
  font-size: clamp(3.8rem, 8.8vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero h1 em { color: #7698ff; font-style: normal; }

.hero-intro {
  max-width: 50rem;
  margin: 2.1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-blue { border-color: var(--blue); background: var(--blue); }
.button-ghost { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.04); }
.button-paper { border-color: var(--ink); background: transparent; color: var(--ink); }

.hero-index {
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-index a {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  min-height: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.hero-index a:hover { color: white; }
.hero-index span:first-child { color: #7698ff; font-family: monospace; font-size: 0.76rem; }
.hero-index strong { font-size: 0.9rem; }

.section {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.shell { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.45fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-title {
  margin: 0.85rem 0 0;
  max-width: 10ch;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.section-lede {
  max-width: 46rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.focus-grid,
.venture-grid,
.work-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.focus-card,
.venture-card,
.work-card,
.topic-card {
  grid-column: span 6;
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
}

.focus-card:first-child { grid-column: span 7; background: var(--paper-strong); }
.focus-card:nth-child(2) { grid-column: span 5; }
.focus-card h3,
.venture-card h3,
.work-card h3,
.topic-card h3 {
  margin: 2.8rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.focus-card p,
.venture-card p,
.work-card p,
.topic-card p { color: var(--ink-soft); }

.card-link {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.status { color: var(--blue); }
.status::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.55rem; border-radius: 50%; background: currentColor; }
.status-building { color: #9a4600; }
.status-research { color: #53625d; }

.night { background: var(--night); color: var(--white); }
.night .section-lede,
.night .work-card p,
.night .topic-card p { color: rgba(255,255,255,.58); }
.night .work-grid,
.night .topic-grid { border-color: rgba(255,255,255,.14); }
.night .work-card,
.night .topic-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.025); }
.night .section-kicker { color: #7698ff; }

.work-card { grid-column: span 4; min-height: 23rem; }
.work-card .number { color: #7698ff; font-family: monospace; font-size: 0.78rem; }
.work-card h3 { color: white; }

.proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); margin-top: 4rem; }
.proof-item { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.proof-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.14); }
.proof-item:nth-child(even) { padding-left: 1.5rem; }
.proof-item strong { display: block; color: white; font-size: 1.04rem; }
.proof-item span { color: rgba(255,255,255,.48); font-size: 0.9rem; }

.venture-card { grid-column: span 4; min-height: 21rem; }
.venture-card.featured { grid-column: span 8; background: var(--paper-strong); }
.venture-card .role { margin-top: 0.5rem; font-size: 0.76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.topic-card { grid-column: span 3; min-height: 18rem; }
.topic-card h3 { font-size: 1.7rem; }

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.principle-list { border-top: 1px solid var(--line); counter-reset: principles; }
.principle {
  counter-increment: principles;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.principle::before { content: "0" counter(principles); color: var(--blue); font-family: monospace; font-size: 0.8rem; padding-top: 0.25rem; }
.principle h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.025em; }
.principle p { margin: 0.35rem 0 0; color: var(--ink-soft); }

.background-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 4rem; }
.background-note { font-size: 1.2rem; line-height: 1.8; color: rgba(255,255,255,.68); }
.timeline { border-top: 1px solid rgba(255,255,255,.15); }
.timeline-item { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.timeline-item strong { color: white; }
.timeline-item span { color: rgba(255,255,255,.5); }

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}
.contact-panel h2 { max-width: 10ch; margin: 0; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .88; letter-spacing: -.065em; }
.contact-options { border-top: 1px solid var(--line); }
.contact-options a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-weight: 850; text-decoration: none; }
.contact-options a:hover { color: var(--blue); }

.site-footer { padding: 3rem 0; background: #090d0c; color: white; }
.footer-shell { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-shell p { margin: 0; color: rgba(255,255,255,.42); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.62); font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: white; }

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-shell,
  .section-head,
  .principles,
  .background-layout,
  .contact-panel { grid-template-columns: 1fr; }
  .hero-shell { align-items: center; gap: 3rem; }
  .hero-index { max-width: 34rem; }
  .section-head { align-items: start; }
  .focus-card,
  .focus-card:first-child,
  .focus-card:nth-child(2),
  .venture-card,
  .venture-card.featured,
  .work-card { grid-column: span 6; }
  .topic-card { grid-column: span 6; }
}

@media (max-width: 620px) {
  .nav-shell,
  .shell,
  .hero-shell,
  .footer-shell { width: min(100% - 1.25rem, var(--max)); }
  .brand-copy span { display: none; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .hero::after { right: -25rem; }
  .focus-card,
  .focus-card:first-child,
  .focus-card:nth-child(2),
  .venture-card,
  .venture-card.featured,
  .work-card,
  .topic-card { grid-column: span 12; min-height: 17rem; }
  .proof-list { grid-template-columns: 1fr; }
  .proof-item:nth-child(odd) { border-right: 0; }
  .proof-item:nth-child(even) { padding-left: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: .25rem; }
  .footer-shell { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
