:root {
  --ink: #0a1628;
  --ink-soft: #3a4a5c;
  --muted: #5c6b7a;
  --paper: #e6edf2;
  --paper-deep: #cfd9e3;
  --line: rgba(10, 22, 40, 0.12);
  --accent: #e85d04;
  --accent-deep: #c24a00;
  --surface: rgba(255, 255, 255, 0.42);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Telegraf", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 12% -10%, rgba(232, 93, 4, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 8%, rgba(70, 120, 160, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(10, 22, 40, 0.06), transparent 60%),
    linear-gradient(165deg, #f0f5f8 0%, #dce6ee 48%, #c9d6e2 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(230, 237, 242, 0.72);
  border-bottom: 1px solid transparent;
}

.mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 1.5rem clamp(4rem, 10vh, 6rem);
  min-height: calc(100svh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-location {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-name {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero-name span {
  display: block;
}

.hero-role {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  color: var(--ink-soft);
}

.hero-lede {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

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

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

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

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

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

.section-head h2 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.impact {
  border-top: 1px solid var(--line);
}

.impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.impact-stat {
  display: block;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.impact-label {
  display: block;
  margin-top: 0.65rem;
  max-width: 16rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.work {
  border-top: 1px solid var(--line);
}

.role {
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) 1.4fr;
  gap: 1.5rem 2.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.role:first-of-type {
  border-top: none;
  padding-top: 0;
}

.role-meta h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.role-org,
.role-dates {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.role-dates {
  font-variant-numeric: tabular-nums;
}

.role-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}

.role-points li:last-child {
  margin-bottom: 0;
}

.role-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.education {
  border-top: 1px solid var(--line);
  padding-bottom: 5rem;
}

.publications {
  border-top: 1px solid var(--line);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.pub-card:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  transform: translateY(-3px);
}

.pub-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-deep);
}

.pub-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.pub-card:hover .pub-thumb img {
  transform: scale(1.04);
}

.pub-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

.pub-type {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pub-card h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pub-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.pub-cta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
}

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

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.edu-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.edu-row h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
}

.edu-row p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.edu-dates {
  flex-shrink: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
}

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

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

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.25s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.35s;
}
.hero .reveal:nth-child(5) {
  transition-delay: 0.45s;
}

@media (max-width: 900px) {
  .impact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .pub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .role {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .edu-row {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 560px) {
  .impact-list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .nav {
    gap: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
