:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --nav-bg: rgba(251, 251, 253, 0.72);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --radius: 28px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { color: var(--text); font-weight: 600; font-size: 17px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: 13px; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .nav-cta {
  opacity: 1;
  background: var(--accent);
  color: #fff;
  padding: 5px 14px;
  border-radius: 980px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Shared */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 24px; }
.section-alt {
  max-width: none;
  background: var(--bg-alt);
}
.section-alt > * { max-width: calc(var(--max) - 48px); margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.section-head { margin-bottom: 48px; }
.section-sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  padding: 12px 24px;
  border-radius: 980px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; transform: scale(1.02); }
.btn-lg { font-size: 19px; padding: 16px 32px; margin-top: 40px; }

.link-arrow { font-size: 17px; }
.link-arrow::after { content: " ›"; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.gradient {
  background: linear-gradient(90deg, #0071e3, #7a5af8 50%, #e5458d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 640px;
  margin: 32px auto 0;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--muted);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 88px;
  text-align: left;
}
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pillar:hover { transform: translateY(-4px); text-decoration: none; }
.pillar-label { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.pillar p { margin: 10px 0 20px; color: var(--muted); font-size: 15px; flex: 1; }
.pillar .link-arrow { color: var(--accent); font-size: 15px; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Roles */
.role {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.role:last-child { border-bottom: 1px solid var(--line); }
.role-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15px; }
.role-date { color: var(--text); font-weight: 500; }
.role h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; }
.role-title { color: var(--muted); margin-top: 4px; }
.role ul { margin-top: 20px; display: grid; gap: 12px; }
.role li { position: relative; padding-left: 20px; }
.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

/* Toolkit */
.toolkit { margin-top: 48px; }
.toolkit-label { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.chips, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .tags li {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

/* Ventures */
.venture {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 56px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.venture + .venture { margin-top: 24px; }
.venture-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.venture-kicker { color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.venture h3 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.venture-lead {
  max-width: 720px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.venture-copy { max-width: 720px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.venture-copy + .venture-copy { margin-top: 16px; }
.badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(52, 199, 89, 0.14);
  color: #1f9d48;
}
.badge-quiet { background: rgba(0, 113, 227, 0.12); color: var(--accent); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.timeline li { position: relative; padding-top: 28px; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline li::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 18px;
  right: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.35;
}
.timeline li:last-child::before { background: #34c759; }
.timeline li:last-child::after { display: none; }
.timeline .stat-num { font-size: clamp(28px, 3.5vw, 40px); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.step-num { font-size: 13px; font-weight: 600; color: var(--accent); }
.steps h4 { font-size: 21px; font-weight: 600; margin: 8px 0; letter-spacing: -0.02em; }
.steps p { color: var(--muted); font-size: 15px; }

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.principles li {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.principles li::before { content: "✓ "; color: var(--accent); font-weight: 600; }

/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover { transform: translateY(-4px); }
.card-kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 14px; }
.card p:not(.card-kicker) { color: var(--muted); font-size: 15px; flex: 1; }
.card .tags { margin-top: 24px; }

/* Contact */
.contact { text-align: center; }
.contact .section-sub { margin-left: auto; margin-right: auto; }
.socials { margin-top: 32px; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .stats, .grid, .steps, .pillars, .timeline { grid-template-columns: 1fr; }
  .timeline li::after { display: none; }
  .pillars { margin-top: 64px; }
  .venture { padding: 36px 28px; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 56px 20px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    opacity: 1;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .nav-cta {
    margin-top: 20px;
    padding: 12px 24px;
    border: 0;
    text-align: center;
    font-size: 17px;
  }
  .hero { padding: 88px 20px 16px; }
  .venture-top { flex-direction: column-reverse; }
}
