:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef1f6;
  --ink: #111827;
  --muted: #5d6678;
  --line: #dfe4ec;
  --accent: #5b5cf0;
  --accent-2: #2a8cff;
  --dark: #0b1020;
  --dark-soft: #151c31;
  --light: #f8fafc;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section { padding: 108px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark {
  background:
    radial-gradient(circle at 88% 8%, rgba(91, 92, 240, .24), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(42, 140, 255, .12), transparent 28%),
    var(--dark);
  color: var(--light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(223, 228, 236, .75);
  background: rgba(247, 248, 251, .88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--dark);
  color: #fff;
  font-size: .85rem;
  letter-spacing: .04em;
}
.brand-text { font-size: .98rem; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transition: right .2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 11px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 99px;
}

.hero {
  overflow: hidden;
  padding-top: 86px;
  background:
    linear-gradient(135deg, rgba(91,92,240,.07), transparent 45%),
    var(--bg);
}

.hero-grid {
  min-height: 630px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.065em;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(91,92,240,.24);
}
.button.secondary { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.hero-tags span,
.card-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 38px;
  border-radius: 30px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -95px;
  top: -95px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: .35;
  filter: blur(8px);
}
.profile-monogram {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 27px;
  background: rgba(255,255,255,.08);
  font-size: 1.5rem;
  font-weight: 900;
}
.panel-kicker { color: #9ca8c6; margin: 0 0 4px; font-size: .86rem; font-weight: 700; }
.hero-panel h2 { margin: 0; font-size: 2rem; letter-spacing: -.035em; }
.hero-panel > p:last-of-type { color: #b9c2d8; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
}
.mini-stats div { padding: 16px; background: rgba(255,255,255,.06); }
.mini-stats strong { display: block; font-size: 1.1rem; }
.mini-stats span { display: block; margin-top: 4px; color: #9ca8c6; font-size: .7rem; line-height: 1.35; }

.two-columns {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 84px;
}

.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.section-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.04rem; }
.section-heading.light > p:last-child { color: #aeb8ce; }

.about-copy { max-width: 770px; font-size: 1.13rem; color: #3f495d; }
.about-copy p:first-child { margin-top: 0; }
.about-copy p { margin-bottom: 22px; }

.timeline { position: relative; max-width: 980px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 178px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 66px;
  margin-bottom: 30px;
}
.timeline-date { padding-top: 25px; color: var(--muted); font-size: .84rem; font-weight: 800; }
.timeline-card {
  position: relative;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15,23,42,.04);
}
.timeline-card::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 31px;
  width: 11px;
  height: 11px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line);
}
.role-label { color: var(--accent); font-size: .77rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.timeline-card h3 { margin: 5px 0 6px; font-size: 1.35rem; }
.timeline-card p { margin: 0; color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.card-number { color: #7e8aa7; font-size: .8rem; font-weight: 800; }
.project-card h3 { margin: auto 0 10px; font-size: 2rem; letter-spacing: -.035em; }
.project-card p { color: #b8c1d5; }
.project-card .card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.project-card .card-tags span { color: #c9d1e2; border-color: rgba(255,255,255,.14); background: transparent; }
.project-card a { color: #fff; font-weight: 800; }

.venture-list { border-top: 1px solid var(--line); }
.venture {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.venture-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  font-weight: 900;
}
.venture h3 { margin: 0 0 3px; font-size: 1.25rem; }
.venture p { margin: 0; color: var(--muted); }
.venture-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.interest-card {
  min-height: 255px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.interest-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 54px;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  font-weight: 850;
}
.interest-card h3 { margin: 0 0 6px; font-size: 1.28rem; }
.interest-card p { margin: 0; color: var(--muted); }

.links-section { background: #fff; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.link-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: color .18s ease, padding .18s ease;
}
.link-card:nth-child(odd) { padding-right: 28px; }
.link-card:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.link-card:hover { color: var(--accent); }
.link-card span { color: var(--muted); }
.link-card strong { text-align: right; }

.closing {
  margin-top: 72px;
  padding: 38px;
  border-radius: 26px;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.closing p { margin: 0; font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 780; letter-spacing: -.035em; }

.site-footer { background: var(--dark); color: #96a0b8; }
.footer-content {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .section { padding: 82px 0; }
  .hero-grid, .two-columns { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { min-height: unset; }
  .hero-panel { max-width: 680px; }
  .interest-grid { grid-template-columns: 1fr 1fr; }

  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav a::after { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .brand-text { display: none; }

  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.7rem); }
  .hero-text { font-size: 1rem; }
  .hero-panel { padding: 26px; }
  .mini-stats { grid-template-columns: 1fr; }

  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; padding-left: 28px; }
  .timeline-date { padding-top: 0; }
  .timeline-card::before { left: -29px; top: 26px; }

  .cards-grid,
  .interest-grid,
  .link-grid { grid-template-columns: 1fr; }

  .venture { grid-template-columns: 50px 1fr; }
  .venture-status { grid-column: 2; width: max-content; }

  .link-card:nth-child(odd),
  .link-card:nth-child(even) { padding: 20px 0; border-left: 0; }

  .closing { align-items: flex-start; flex-direction: column; padding: 28px; }
  .footer-content { flex-direction: column; align-items: flex-start; justify-content: center; }
}
