:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #737378;
  --line: rgba(0, 0, 0, 0.08);
  --dark: #111113;
  --accent: #6246ea;
  --green: #30d158;
  --radius-lg: 24px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.015em; }
p { margin: 0; }
.muted { color: var(--text-2); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.chip {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 7px 16px; min-height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; transition: background 0.2s, color 0.2s;
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--surface); color: var(--text); }
.chip--link { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line), var(--shadow); color: var(--text); display: inline-flex; gap: 6px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; font-size: 13px; }
.nav__links a { color: var(--text); opacity: 0.8; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { padding: 9px 16px; font-size: 13px; }
.nav__toggle { display: none; }

/* Hero */
.hero { position: relative; overflow-x: clip; }
.hero__inner {
  position: relative; max-width: var(--container); margin: 0 auto;
  min-height: min(760px, calc(100svh - 60px));
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: start;
  padding: 0 24px 64px;
}
.hero__photo {
  /* starts below the menu bar so the head is never clipped; width follows the photo's 3:4 shape */
  position: absolute; left: 50%; top: 32px; bottom: 0; transform: translateX(-50%);
  aspect-ratio: 896 / 1195; pointer-events: none; user-select: none;
  /* soften the left and right edges so the shoulders dissolve into the page */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.hero__portrait { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Frosted glass: stacked blur layers, each stronger and starting lower, then a white wash */
.hero__glass { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; }
.hero__glass span { position: absolute; inset: 0; }
.hero__glass span:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%); mask-image: linear-gradient(to bottom, transparent 0%, #000 25%); }
.hero__glass span:nth-child(2) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 45%); mask-image: linear-gradient(to bottom, transparent 15%, #000 45%); }
.hero__glass span:nth-child(3) { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to bottom, transparent 35%, #000 65%); mask-image: linear-gradient(to bottom, transparent 35%, #000 65%); }
.hero__glass span:nth-child(4) { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 85%); mask-image: linear-gradient(to bottom, transparent 55%, #000 85%); }
.hero__glass span:nth-child(5) { background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.92) 85%, #fff 100%); }
.hero__left, .hero__right { position: relative; z-index: 1; grid-row: 2; }
.hero__left { max-width: 400px; }
.hero__right { justify-self: end; max-width: 300px; }
.hero__right p { font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 18px; }
.eyebrow { font-size: 12px; color: var(--text-2); margin-bottom: 14px; }
.hero__title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -0.03em; }

/* Sections */
.section { padding: 120px 0 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head--stack { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.section__sub { font-size: 15px; max-width: 320px; }
.section__sub--wide { max-width: 480px; margin-top: 10px; }
.filters { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }

/* Research */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rcard {
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s;
}
.rcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.rcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rcard:hover .rcard__media img { transform: scale(1.04); }
.rcard__media::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.rcard--draft .rcard__media::after { display: none; }
.rcard__overlay { z-index: 1; position: absolute; left: 20px; right: 20px; bottom: 18px; }
.rcard__type { color: #fff; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.rcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rcard__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rcard__meta { font-size: 12px; color: var(--text-3); }
.rcard__abstract { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.rcard__links { display: flex; gap: 16px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; }
.rcard__links a { color: var(--accent); }
.rcard__links a:hover { text-decoration: underline; }
.rcard--featured { grid-column: 1 / -1; flex-direction: row; }
/* a card left alone on the last row spans the full width instead of leaving a hole */
.rcard:not(.rcard--featured):last-child:nth-child(even) { grid-column: 1 / -1; flex-direction: row; }
.rcard:not(.rcard--featured):last-child:nth-child(even) .rcard__media { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.rcard:not(.rcard--featured):last-child:nth-child(even) .rcard__body { flex: 1; padding: 36px; justify-content: center; }
.rcard--featured .rcard__media { flex: 1.15; aspect-ratio: auto; min-height: 420px; }
.rcard--featured .rcard__body { flex: 1; padding: 40px; justify-content: center; }
.rcard--featured h3 { font-size: 26px; }
.rcard--featured .rcard__abstract { font-size: 15px; }
.rcard--draft .rcard__type { color: var(--text-2); text-shadow: none; }
.rcard--draft .tag { color: var(--text-2); border-color: rgba(0, 0, 0, 0.15); }
.draft-badge { align-self: flex-start; font-size: 11px; font-weight: 500; color: #9a6b00; background: #fff4d6; padding: 3px 9px; border-radius: 999px; }
.rcard.is-hidden { display: none; }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: flex; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.4s var(--ease); }
.pub:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.pub__media { flex: 0 0 38%; min-height: 240px; background: var(--surface); }
.pub__media img { width: 100%; height: 100%; object-fit: cover; }
.pub__body { flex: 1; padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.pub__status { font-size: 12px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.pub__authors { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.pub__authors strong { color: var(--text); font-weight: 500; }
.pub__title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; margin-bottom: 8px; }
.pub__venue { font-size: 13px; color: var(--text-3); }

/* Ventures */
.ventures { display: flex; flex-wrap: wrap; gap: 14px; }
.venture {
  width: 104px; height: 104px; border-radius: 50%; background: #141414;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.venture img { width: auto; max-width: 74%; max-height: 46%; object-fit: contain; }
a.venture:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.18); }

.site-link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--accent); }
.site-link:hover { text-decoration: underline; }

/* Experience and education entries: details left, logo panel right */
.entries { display: grid; gap: 16px; }
.entry { display: flex; gap: 32px; align-items: stretch; padding: 28px 28px 28px 32px; border-radius: var(--radius); background: var(--bg); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.4s var(--ease); }
.entry:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.entry__main { flex: 1; min-width: 0; }
.entry__period { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.entry__title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.entry__sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.entry__points { margin: 14px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.entry__points li + li { margin-top: 4px; }
.entry__text { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.entry .site-link { margin-top: 8px; margin-bottom: -6px; }
.entry__logo { flex: 0 0 220px; min-height: 124px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; padding: 22px 26px; }
.entry__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 76px; object-fit: contain; }

.skills { display: grid; gap: 22px; }
.skills__group h3 { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-bottom: 10px; }
.skills__list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: var(--surface); }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article { border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.article:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.article__cover { aspect-ratio: 16 / 9; background: var(--surface); position: relative; overflow: hidden; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__cover--blank { background: linear-gradient(135deg, #eef0ff, #f5f5f7 60%, #fff1ea); }
.article__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article__date { font-size: 12px; color: var(--text-3); }
.article__title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.article__excerpt { font-size: 13px; color: var(--text-2); }
.article__more { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 500; color: var(--accent); }

/* Contact and footer */
.contact { padding: 160px 0 120px; text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact__title { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; }
.contact .muted { max-width: 420px; }
.contact__links { display: flex; gap: 24px; font-size: 14px; color: var(--text-2); }
.contact__links a:hover { color: var(--text); }
.footer { border-top: 1px solid var(--line); padding: 22px 0 28px; font-size: 12px; color: var(--text-3); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rcard, .article, .venture, .rcard__media img { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 0 24px 24px; }
  .hero__photo { position: relative; left: auto; top: auto; bottom: auto; transform: none; height: auto; width: 100%; max-width: 460px; margin: 24px auto -30px; justify-self: center; }
  .hero__inner { grid-template-rows: auto; }
  .hero__left, .hero__right { grid-row: auto; max-width: 560px; margin: 0; }
  .hero__right { justify-self: start; margin-top: 18px; }
  .hero__right p { font-size: 15px; }
  .rcard--featured, .rcard:not(.rcard--featured):last-child:nth-child(even) { flex-direction: column; }
  .rcard:not(.rcard--featured):last-child:nth-child(even) .rcard__media { min-height: 0; aspect-ratio: 16 / 10; }
  .rcard:not(.rcard--featured):last-child:nth-child(even) .rcard__body { padding: 26px; }
  .rcard--featured .rcard__media { min-height: 0; aspect-ratio: 16 / 10; }
  .rcard--featured .rcard__body { padding: 26px; }
  .hero__left { padding-left: 0; }
  .hero__right { margin-right: 0; }
}
@media (max-width: 760px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; transform: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-right: -10px; }
  .nav__toggle span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero__inner { padding: 0 16px 24px; }
  .hero__photo { max-width: 360px; margin-top: 16px; }
  .hero__right p { font-size: 14px; }

  .container { padding: 0 16px; }
  .section { padding-top: 88px; }
  .research-grid, .articles { grid-template-columns: 1fr; }
  .venture { width: 60px; height: 60px; }
  .entry { flex-direction: column-reverse; gap: 18px; padding: 20px; }
  .entry__logo { flex: none; min-height: 88px; padding: 16px 20px; }
  .entry__logo img { max-height: 52px; }
  .ventures { gap: 8px; }
  .filters { width: 100%; overflow-x: auto; }
  .pub { flex-direction: column; }
  .pub__media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .pub__body { padding: 22px; }
  .rcard__body { padding: 22px; }
  .contact { padding: 110px 0 80px; }
  .footer__inner { flex-direction: column; gap: 4px; }
}
