:root {
  --bg: #f4f7f6;
  --bg-elevated: #ffffff;
  --ink: #0b1f24;
  --ink-muted: #3d5459;
  --ink-soft: #6b8085;
  --accent: #2a9d8f;
  --accent-deep: #1f7a70;
  --accent-soft: rgba(42, 157, 143, 0.12);
  --line: rgba(11, 31, 36, 0.1);
  --shadow: 0 18px 50px rgba(11, 31, 36, 0.08);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 246, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 246, 0.92);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero-atmosphere {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 30%, rgba(42, 157, 143, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 15%, rgba(31, 122, 112, 0.12), transparent 65%),
    linear-gradient(135deg, rgba(42, 157, 143, 0.06), transparent 45%);
  transform: rotate(-4deg);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 650;
  max-width: 12ch;
}

.hero-role {
  margin: 1.35rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink-muted);
  font-weight: 400;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #f7fbfa;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 247, 246, 0.4));
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-intro {
  margin: 0.9rem 0 0;
  color: var(--ink-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-aside {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.about-aside h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.about-aside p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 0.4rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.4rem 1.7rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.role-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.role-org {
  color: var(--accent-deep);
  font-weight: 600;
}

.role-when {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.timeline-item ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

.timeline-item li + li {
  margin-top: 0.45rem;
}

.projects {
  display: grid;
  gap: 1.25rem;
}

.project {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateX(6px);
  border-color: rgba(42, 157, 143, 0.45);
  box-shadow: var(--shadow);
}

.project-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.project h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.project p {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.project-links a {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.project-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.project-links a:hover::after {
  transform: scaleX(1);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.edu-list,
.award-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.edu-list li,
.award-list li {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.edu-list li:last-child,
.award-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.edu-list h3,
.award-list strong {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.edu-list p,
.award-list p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.section-intro a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-intro a:hover {
  color: var(--accent);
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pub;
  display: grid;
  gap: 0;
}

.pub-list li {
  counter-increment: pub;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.85rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.pub-list li:first-child {
  padding-top: 0;
}

.pub-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-list li::before {
  content: counter(pub, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.2s ease;
}

.pub-title:hover {
  color: var(--accent-deep);
}

.pub-meta {
  grid-column: 2;
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.pub-cites {
  color: var(--ink-soft);
}

.connect {
  text-align: center;
  padding: 5.5rem 0 6.5rem;
}

.connect .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.connect .section-intro {
  max-width: 34rem;
  margin-inline: auto;
}

.connect-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--ink-muted);
}

.footer-inner a:hover {
  color: var(--accent-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-animate > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.85s var(--ease) forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.05s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.18s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.3s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.42s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.54s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.25rem 1.4rem;
    background: rgba(244, 247, 246, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 4.2rem 0;
  }
}

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

  .reveal,
  .hero-animate > *,
  .project,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
