:root {
  color-scheme: light;
  --paper: #f4efe6;
  --ink: #171a1c;
  --muted: #5c584e;
  --faint: #8a8376;
  --line: #e4ddd0;
  --orange: #ff984d;
  --nav: rgba(244, 239, 230, 0.92);
  --card: rgba(250, 247, 241, 0.96);
  --card-solid: #faf7f1;
  --portrait: #e7e1d6;
  --hover-line: #d3c9b8;
  --shadow: rgba(23, 26, 28, 0.07);
  --select: #ffe0c4;
  --field: 23, 26, 28;
  --markets: #c4653a;
  --policy: #4560c9;
  --industry: #2a7f6c;
  --sans: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141311;
  --ink: #f4efe6;
  --muted: #c8bfb1;
  --faint: #91897c;
  --line: #322e28;
  --nav: rgba(20, 19, 17, 0.9);
  --card: rgba(32, 29, 25, 0.96);
  --card-solid: #221f1b;
  --portrait: #2c2924;
  --hover-line: #4e483f;
  --shadow: rgba(0, 0, 0, 0.45);
  --select: #5c3d24;
  --field: 244, 239, 230;
  --markets: #e3926a;
  --policy: #8aa4ef;
  --industry: #6fbfa8;
}

* {
  box-sizing: border-box;
  font-family: var(--sans);
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--select);
  color: var(--ink);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.nav {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  background: var(--nav);
  backdrop-filter: blur(12px);
}

.mark {
  display: block;
  height: 32px;
  width: auto;
  fill: var(--ink);
}

.mark text {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.theme-switch {
  position: fixed;
  z-index: 6;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-solid);
  box-shadow: 0 12px 32px var(--shadow);
}

.theme-switch button {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 0 96px;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(transparent, var(--paper) 80%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  align-items: center;
  gap: 32px 56px;
  flex: 1;
  margin-bottom: 36px;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 13ch;
  text-wrap: balance;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.deck {
  position: relative;
  height: 236px;
}

.fc {
  --c: var(--markets);
  position: absolute;
  left: 0;
  right: 36px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 172px;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 34px var(--shadow);
  opacity: 0;
  transform: translate(40px, -64px) scale(0.9);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.38s ease;
  pointer-events: none;
}

.fc[data-slot="0"] { opacity: 1; transform: none; z-index: 3; }
.fc[data-slot="1"] { opacity: 0.9; transform: translate(16px, -26px) scale(0.975); z-index: 2; }
.fc[data-slot="2"] { opacity: 0.55; transform: translate(32px, -52px) scale(0.95); z-index: 1; }
.fc[data-slot="out"] { opacity: 0; transform: translate(-18px, 28px); z-index: 4; }

.fc-body { min-width: 0; }

.fc:not([data-slot="0"]) .fc-body,
.fc:not([data-slot="0"]) .fc-value { visibility: hidden; }

.fc--policy { --c: var(--policy); }
.fc--industry { --c: var(--industry); }

.fc-kind {
  margin: 0;
  color: var(--c);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fc-q {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.fc-when {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.fc-value {
  flex: none;
  margin: 0;
  color: var(--c);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.fc-value small { font-size: 0.55em; }

.band {
  padding: 28px 0 88px;
}

.band--last { padding-bottom: 72px; }

.band--intro { padding-top: 72px; }

#thesis, #team { scroll-margin-top: 88px; }

h2,
.backers h3 {
  margin: 0 0 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.thesis {
  display: grid;
  gap: 24px;
}

.thesis p,
.team-lead {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}

#team h2 { margin-bottom: 18px; }

.team-lead { margin-bottom: 28px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

.person {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-solid);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}

.person:hover { border-color: var(--hover-line); }

.portrait {
  grid-row: 1 / 3;
  align-self: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--portrait);
}

.person h3 {
  grid-column: 2;
  align-self: end;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
}

.person:hover h3 { color: var(--markets); }

.role {
  grid-column: 2;
  align-self: start;
  margin: 2px 0 0;
  color: var(--orange);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
}

.bio {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
}

.backers {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 28px 64px;
  margin-top: 36px;
}

.backers h3 { margin-bottom: 14px; }

.backer--angels { flex: 1; min-width: 0; }

.lead-logo {
  display: block;
  height: 28px;
  width: auto;
}

.angel-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 32px;
}

.angel-logos img {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

html[data-theme="dark"] .lead-logo,
html[data-theme="dark"] .angel-logos img {
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.more {
  color: var(--faint);
  font-size: 15px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 88px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot p { margin: 0; }

.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 1120px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 40px)); }
  .nav { padding: 18px 20px; }
  .nav-links { gap: 14px; }
  .team-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .thesis p,
  .team-lead { font-size: 18px; }
  .backers { flex-direction: column; gap: 24px; }
  .hero { padding-bottom: 88px; }
  .hero-stage { grid-template-columns: 1fr; flex: none; margin-bottom: 28px; }
  .deck { max-width: 460px; }
  .angel-logos { gap: 16px 24px; }
  .angel-logos img { height: 18px; }
}

@media (max-width: 520px) {
  .nav { gap: 12px; }
  .mark { height: 24px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .theme-switch { right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
  .person { grid-template-columns: 56px 1fr; column-gap: 12px; }
  .portrait { width: 56px; height: 56px; }
  .bio { font-size: 14px; }
}

@media (max-width: 960px) {
  .hero-stage { grid-template-columns: 1fr; }
  .deck { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fc { transition: none; }
}
