@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #fffdfa;
  --bg-soft: #f6f2ec;
  --ink: #14161a;
  --text: #3d4148;
  --muted: #5b5f67;
  --line: #ece7e0;
  --line-dark: #e2dcd3;
  --blue: #4672ce;

  --font: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 { font-weight: 400; }

p { margin: 0; }

ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.link:hover,
.nav-links a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.section { padding-top: 120px; padding-bottom: 120px; }
.band { background: var(--bg-soft); }

.section-title { font-size: 48px; line-height: 1.05; }

.page-title {
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 34em;
  font-size: 18px;
  color: var(--text);
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.86; }

.btn-primary { background: var(--blue); color: #fff; padding: 17px 30px; font-size: 16px; }
.btn-outline { border: 1px solid var(--ink); }

.arrow { width: 16px; height: 16px; }

/* header */

.site-header { border-bottom: 1px solid var(--line); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 15px;
  color: var(--text);
}

.nav-links a:not(.btn) { padding: 10px 0; }

.nav-links a.active {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-links .btn { padding: 11px 20px; color: var(--ink); }

/* footer */

.site-footer { background: var(--ink); color: var(--bg); padding: 112px 0 48px; }

.site-footer h2 {
  margin-bottom: 20px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.site-footer p { max-width: 32em; margin-bottom: 44px; font-size: 18px; color: #b4b8c0; }

.contacts { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts .btn { border: 1px solid var(--muted); }
.contacts .btn:first-child { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid #2c3037;
  font-size: 13px;
  color: #9a9ea6;
}

/* home */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px 72px;
  padding-top: 120px;
  padding-bottom: 136px;
}

.hero-text { flex: 999 1 560px; min-width: 0; }

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(64px, 9vw, 136px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero .role {
  margin-bottom: 52px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--blue);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-actions .link { padding: 12px 0; font-weight: 500; }

.hero-photo {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 45%;
  border-radius: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 8px; padding: 36px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }

.stat strong {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat span { font-size: 14px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split-side { flex: 1 1 300px; }
.split-main { flex: 999 1 560px; min-width: 0; }

.split-side .section-title { margin-bottom: 20px; }
.split-side p { max-width: 24em; color: var(--text); }

.list { border-top: 1px solid var(--ink); }
.list > li { border-bottom: 1px solid var(--line); }

.focus li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
}

.focus .num { padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.focus h3 { margin-bottom: 8px; font-size: 26px; line-height: 1.2; }
.focus p { color: var(--text); }

.latest {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 80px;
  padding-top: 104px;
  padding-bottom: 104px;
}

.latest > div { flex: 999 1 560px; min-width: 0; }
.latest .venue { margin-bottom: 14px; font-size: 14px; color: var(--muted); }

.latest h2 {
  max-width: 22em;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  text-wrap: balance;
}

.latest .authors { font-size: 15px; color: var(--text); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

.career li { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 30px 0; }
.career .when { flex: 0 0 180px; padding-top: 6px; font-size: 14px; color: var(--muted); }
.career .where { flex: 0 0 140px; padding-top: 6px; font-size: 14px; color: var(--muted); }
.career .what { flex: 1 1 420px; min-width: 0; }
.career h3 { margin-bottom: 4px; font-size: 26px; line-height: 1.25; }
.career .org { margin-bottom: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
.career .note { max-width: 40em; font-size: 15px; color: var(--muted); }

strong.me { font-weight: 600; color: var(--ink); }

/* about */

.about-intro { padding-top: 104px; padding-bottom: 72px; }

.about-intro h1 {
  max-width: 15em;
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  text-wrap: balance;
}

.about-intro h1 span { color: var(--blue); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px 96px;
  align-items: start;
  padding-bottom: 120px;
}

.about-text { display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.7; color: var(--text); }

.about-text .question {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
}

/* photo circles - positions are % of the box (box is 10:9) */
.circles { position: relative; aspect-ratio: 10 / 9; }

.circles > * {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.circles img { object-fit: cover; }

.c-run   { left: 0;      top: 0;      width: 26.9%; height: 29.9%; object-position: 35% 75%; animation-duration: 9s; animation-delay: -1s; }
.c-grad  { left: 52.9%;  top: 3.2%;   width: 30.8%; height: 34.2%; animation-name: drift; animation-duration: 10s; animation-delay: -4s; }
.c-lake  { left: 13.5%;  top: 25.6%;  width: 40.4%; height: 44.9%; animation-duration: 11s; animation-delay: -2.5s; }
.c-hike  { left: 73.1%;  top: 37.4%;  width: 26.9%; height: 29.9%; object-position: 50% 55%; animation-name: drift; animation-duration: 8.5s; animation-delay: -6s; }
.c-mit   { left: 49.6%;  top: 65.8%;  width: 27.7%; height: 30.8%; animation-duration: 9.5s; animation-delay: -3.5s; }
.c-work  { left: 1.4%;   top: 69.9%;  width: 26.2%; height: 29.1%; animation-name: drift; animation-duration: 7.5s; animation-delay: -1.5s; }
.c-dog   { left: 28.3%;  top: 79.1%;  width: 18.5%; height: 20.5%; object-position: 50% 40%; animation-duration: 10.5s; animation-delay: -5s; }
.c-dot   { left: 37.1%;  top: 7%;     width: 4.6%;  height: 5.1%;  background: var(--blue); animation-name: drift; animation-duration: 6.5s; animation-delay: -2s; }
.c-ring  { left: 86.9%;  top: 82.7%;  width: 6.9%;  height: 7.7%;  border: 2px solid var(--blue); animation-duration: 7s; animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -8px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .circles > * { animation: none; }
}

.interests-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.interests-head > p { max-width: 24em; color: var(--text); }

.interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  border-top: 1px solid var(--ink);
}

.interests li { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line-dark); }
.interests h3 { margin-bottom: 8px; font-size: 26px; line-height: 1.2; }
.interests p { font-size: 15px; color: #4a4e56; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px 80px;
  margin-top: 24px;
}

.facts h3 { margin-bottom: 14px; font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; }
.facts p { color: var(--text); }

/* publications + research + cv */

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px 80px;
  padding-top: 104px;
  padding-bottom: 56px;
}

.page-head > div:first-child { flex: 999 1 520px; min-width: 0; }

.page-body { padding-bottom: 120px; }

.mini-stats { flex: 1 1 320px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 48px; }
.mini-stats div { display: flex; flex-direction: column; gap: 6px; }
.mini-stats strong { font-family: var(--font-head); font-size: 44px; font-weight: 300; line-height: 1; }
.mini-stats span { font-size: 13px; color: var(--muted); }
.mini-stats .link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-weight: 500; }

.filters {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  background: var(--bg);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters button span { font-size: 12px; opacity: 0.7; }

.year-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--line);
}

.year-group h2 { flex: 0 0 180px; padding-top: 4px; font-size: 32px; font-weight: 400; }
.year-group ol { flex: 999 1 560px; min-width: 0; }

.pub { padding-bottom: 36px; }
.pub-venue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.pub h3 { max-width: 34em; margin-bottom: 10px; font-size: 24px; line-height: 1.25; text-wrap: pretty; }
.pub-authors { margin-bottom: 12px; font-size: 15px; color: #4a4e56; }
.pub-tags { font-size: 13px; color: var(--muted); }
.pub-tags a { margin-left: 16px; color: var(--blue); font-weight: 500; }

.status {
  padding: 3px 10px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  column-gap: 64px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
}

.list-head h2 {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list-head span { color: var(--muted); }

.project { display: flex; flex-direction: column; gap: 14px; padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.project .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.project .meta span:first-child { font-weight: 500; color: var(--blue); }
.project h3 { font-size: 28px; line-height: 1.2; text-wrap: balance; }
.project .org { font-size: 14px; font-weight: 500; color: var(--text); }
.project .desc { font-size: 15px; color: #4a4e56; }
.project .tags { margin-top: 4px; font-size: 13px; color: var(--muted); }

.service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}

.service .kind { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.service h3 { margin: 10px 0; font-size: 24px; line-height: 1.2; }
.service p { font-size: 15px; color: #4a4e56; }

.mentoring li { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 26px 0; }
.mentoring h3 { flex: 0 0 220px; font-size: 22px; line-height: 1.3; }
.mentoring div { flex: 1 1 320px; min-width: 0; }
.mentoring .when { margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.mentoring p:last-child { font-size: 15px; color: #4a4e56; }

.cv-head { border-bottom: 1px solid var(--ink); }
.cv-head .lead { font-size: 18px; }

.cv-layout { display: flex; flex-wrap: wrap; gap: 64px 96px; padding-top: 64px; padding-bottom: 120px; }
.cv-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 88px; }
.cv-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }

.cv-main h2 { margin-bottom: 8px; font-size: 40px; }

.job { padding: 32px 0; border-bottom: 1px solid var(--line); }
.job .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.job h3 { margin-bottom: 4px; font-size: 26px; line-height: 1.25; }
.job .org { margin-bottom: 14px; font-size: 15px; font-weight: 500; color: var(--blue); }
.job ul { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text); }
.job li { padding-left: 4px; }

.edu { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.edu .when { flex: 0 0 120px; padding-top: 6px; font-size: 13px; color: var(--muted); }
.edu > div { flex: 1 1 380px; min-width: 0; }
.edu h3 { margin-bottom: 4px; font-size: 24px; line-height: 1.25; }
.edu .org { margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.edu .note { font-size: 14px; color: var(--muted); }

.side-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.awards { display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.5; }
.awards li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
.awards .year { color: var(--muted); }
.awards small { display: block; font-size: 15px; color: #4a4e56; }

.languages { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; font-size: 15px; }
.languages dt { font-weight: 600; }
.languages dd { margin: 0; color: #4a4e56; }

.skills { display: flex; flex-direction: column; gap: 22px; }
.skills h3 { margin-bottom: 6px; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.skills p { font-size: 14px; line-height: 1.65; color: #4a4e56; }

.referee .name { margin-bottom: 2px; font-family: var(--font-head); font-size: 22px; }
.referee .place { margin-bottom: 6px; font-size: 14px; color: #4a4e56; }
.referee a { font-size: 14px; color: var(--blue); }
.referee .more { margin-top: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-title { font-size: 38px; }
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .stat, .stat:first-child { padding-left: 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .site-footer { padding-top: 80px; }
}
