:root {
  --bg: #ffffff;
  --text: #1a1d21;
  --text-muted: #505861;
  --line: #e3e7eb;
  --primary: #2b7a4b;
  --primary-dark: #1f613b;
  --primary-soft: #ffffff;
  --surface-soft: #ffffff;
  --radius-md: 12px;
  --radius-sm: 8px;
  --content-width: min(1120px, 91vw);
  --nav-height: 66px;
  --font: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  background: #ffffff;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  padding-top: var(--nav-height);
}

main,
.hero,
.section,
.section-body,
.research-grid,
.experience-grid {
  background: #ffffff;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  z-index: 100;
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary-dark);
  background: transparent;
  outline: none;
}

.hero,
.section,
.footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.hero {
  padding-top: 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.hero-photo {
  width: 100%;
  max-width: 236px;
}

.headshot-flip {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  perspective: 1100px;
  cursor: pointer;
}

.headshot-flip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.headshot-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.headshot-flip:hover .headshot-flip-inner,
.headshot-flip:focus-within .headshot-flip-inner,
.headshot-flip.is-flipped .headshot-flip-inner {
  transform: rotateY(180deg);
}

.headshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  backface-visibility: hidden;
}

.headshot-back {
  transform: rotateY(180deg);
}

.headshot-funfact {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(-3px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease, margin-top 180ms ease;
}

.headshot-flip:hover + .headshot-funfact,
.headshot-flip:focus-within + .headshot-funfact,
.headshot-flip.is-flipped + .headshot-funfact {
  margin-top: 10px;
  opacity: 1;
  transform: translateY(0);
  max-height: 3em;
}

.hero-links-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}

.hero-name {
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #13161a;
  margin-bottom: 7px;
}

.hero-title {
  color: var(--primary-dark);
  font-size: 1.14rem;
  font-weight: 700;
}

.hero-advisor {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 220px;
}

.hero-links a {
  color: var(--primary-dark);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-links svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  color: var(--primary);
  outline: none;
}

.hero-bio {
  max-width: none;
  color: #2a2f36;
  font-size: 1rem;
  line-height: 1.58;
}

.hero-bio p + p {
  margin-top: 18px;
}

.hero-bio .highlight {
  color: var(--primary);
  font-weight: 700;
}

.hero-bio a {
  color: #3f4650;
  text-underline-offset: 3px;
}

.hero-bio a:hover,
.hero-bio a:focus-visible {
  color: #2f353d;
}

.section {
  margin-top: 64px;
}

.section-heading {
  font-size: clamp(1.28rem, 1.95vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1f24;
  font-weight: 800;
}

.section-body {
  padding: 0;
}

.research-topics-intro,
.leadership-intro,
.leadership-partners-caption {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.research-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.research-topics-intro {
  margin-bottom: 0;
  color: var(--text);
}

.research-topics-intro .research-keyword {
  color: var(--primary-dark);
  font-weight: 700;
}

.research-filter-note {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 6px 0 12px;
}

.topic-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.topic-bubble {
  border: 1px solid #92bca3;
  background: #ffffff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  cursor: pointer;
}

.topic-bubble:hover,
.topic-bubble:focus-visible {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
}

.topic-bubble.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.research-grid,
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.experience-intro {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2px;
}

#research .research-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

#research .block {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid #d8dde3;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  min-height: 100%;
  min-width: 0;
}

#research .block-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid #e5e9ee;
  border-radius: 0;
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#research .block-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

#research .block-text {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  min-width: 0;
}

#research .block-no-img .block-text {
  padding: 22px 20px;
}

#research .block-org {
  font-size: 1.08rem;
  line-height: 1.28;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

#research .block-role {
  font-size: 0.95rem;
  color: #4f5964;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

#research .research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  justify-content: flex-end;
}

#research .research-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 100%;
}

#research .research-tag.tag-ai {
  background: #edf6ff;
  color: #245f9f;
  border-color: #a7c8ef;
}

#research .research-tag.tag-multimodal {
  background: #f1edff;
  color: #6048a2;
  border-color: #c2b3eb;
}

#research .research-tag.tag-hci {
  background: #e9f3ff;
  color: #2d5f95;
  border-color: #a9c6e8;
}

#research .research-tag.tag-fairness {
  background: #fff2e8;
  color: #9b5a29;
  border-color: #efc4a3;
}

#research .research-tag.tag-theory {
  background: #e9f7ef;
  color: #2b6e46;
  border-color: #a5d3b7;
}

#research .block-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  white-space: normal;
}

#research .advisor-text {
  font-size: 0.9rem;
  color: #2e3a50;
  font-weight: 700;
  min-width: 0;
  flex: 1 1 210px;
  overflow-wrap: anywhere;
}

#research .date-right {
  font-size: 0.85rem;
  color: #5f6975;
  font-weight: 700;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

#research .block-desc {
  font-size: 1.03rem;
  line-height: 1.55;
  color: #2f3742;
}

.research-toggle-wrap {
  margin-top: 18px;
  text-align: center;
}

.research-count {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.research-toggle {
  border: 1px solid #92bca3;
  background: #ffffff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.research-toggle:hover,
.research-toggle:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.block {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.block-no-img {
  grid-template-columns: 1fr;
}

.block-img {
  min-height: 168px;
  border: 1px solid #d8dfda;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.block-img img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

#research .block .block-img img {
  object-fit: contain;
}

.block-org {
  font-size: 1.12rem;
  line-height: 1.38;
  font-weight: 700;
  color: #1d2329;
  margin-bottom: 3px;
}

.block-role {
  font-size: 1rem;
  color: #2f3740;
  font-weight: 600;
  margin-bottom: 3px;
}

.block-dates {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.block-desc {
  font-size: 1rem;
  color: #37404a;
  line-height: 1.65;
}

.block-org a {
  color: var(--primary-dark);
  text-underline-offset: 3px;
}

#experience .block,
#leadership .block {
  grid-template-columns: 170px 1fr;
  border: 1px solid #d8dfda;
  border-radius: 12px;
  padding: 14px;
  align-items: start;
}

#experience .block-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "org dates"
    "role role"
    "desc desc";
  column-gap: 12px;
  align-items: baseline;
}

#experience .block-org {
  grid-area: org;
  margin-bottom: 0;
}

#experience .block-role {
  grid-area: role;
  margin: 2px 0 8px;
}

#experience .block-dates {
  grid-area: dates;
  margin-bottom: 0;
  text-align: right;
  white-space: nowrap;
  font-size: 0.96rem;
}

#experience .block-desc {
  grid-area: desc;
}

#experience .experience-reu {
  border: 1px solid #d8dfda;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

#experience .experience-reu-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1d2329;
  margin-bottom: 8px;
}

#experience .experience-reu-list {
  margin: 0;
  padding-left: 18px;
}

#experience .experience-reu-list li {
  color: #37404a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 4px 0;
}

#experience .block-img {
  min-height: 132px;
  border: 0;
  background: transparent;
}

#leadership .block-img {
  min-height: 219px;
  border: 0;
  background: transparent;
}

#experience .block-img img {
  width: 84%;
  max-height: 116px;
  object-fit: contain;
}

#leadership .block-img img {
  width: 100%;
  max-height: 192px;
  object-fit: contain;
}

#leadership .section-body {
  display: block;
}

#leadership .leadership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

#leadership .leadership-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

#leadership .leadership-toggle-wrap {
  margin-top: 14px;
  margin-bottom: 6px;
  text-align: left;
}

.leadership-partners {
  padding-top: 0;
}

.leadership-partners-caption {
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f252c;
  margin-bottom: 10px;
}

.leadership-partners img {
  width: 100%;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.partners-hover-note {
  margin-top: 10px;
  color: #2f3740;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease;
}

.leadership-partners:hover .partners-hover-note,
.leadership-partners:focus-within .partners-hover-note {
  opacity: 1;
  max-height: 90px;
  transform: translateY(0);
}

.volunteer-under {
  margin-top: 16px;
}

.volunteer-under .block {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid #d8dfda;
  border-radius: 12px;
  background: #ffffff;
}

.volunteer-under .block .block-img {
  border: 0;
  background: transparent;
  min-height: 330px;
}

.volunteer-under .block .block-img img {
  width: 100%;
  max-height: none;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

#leadership .volunteer-under .block {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
}

#leadership .volunteer-under .block .block-img {
  min-height: 330px;
  max-height: 330px;
}

#leadership .volunteer-under .block .block-img img {
  width: 100%;
  max-height: none;
  height: 100%;
  object-fit: cover;
}

#leadership .volunteer-under .block .block-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.volunteer-group-title {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.98rem;
  color: #1f2730;
  font-weight: 700;
}

.volunteer-group-title:first-child {
  margin-top: 0;
}

.volunteer-list {
  list-style: none;
  margin: 0 0 10px;
  padding-left: 1.55rem;
}

.volunteer-list:last-child {
  margin-bottom: 0;
}

.volunteer-list li {
  position: relative;
  margin: 4px 0;
  padding-left: 0.9rem;
  color: #3a434d;
  font-size: 0.94rem;
  line-height: 1.52;
}

.volunteer-list li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.news-list {
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.news-date {
  color: var(--primary-dark);
  font-weight: 700;
}

.news-text {
  color: #38414b;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-links a,
.btn-cv {
  display: inline-block;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 10px 14px;
}

.contact-links a {
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid #92bca3;
}

.btn-cv {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: #ffffff;
  border-color: var(--primary);
  outline: none;
}

.btn-cv:hover,
.btn-cv:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  outline: none;
}

.footer {
  margin-top: 62px;
  margin-bottom: 32px;
  padding-top: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary-dark);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  text-decoration: none;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid #b9c9bc;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--primary);
  outline: none;
}

@media (hover: hover) {
  #research .block:hover,
  #research .block:focus-within,
  #experience .block:hover,
  #experience .block:focus-within,
  #leadership .block:hover,
  #leadership .block:focus-within,
  #experience .experience-reu:hover,
  #experience .experience-reu:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(22, 31, 42, 0.08);
    border-color: #c7d3dc;
    background: #fcfdfd;
  }
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 12px;
  }

  .hero-photo {
    max-width: 146px;
    margin-inline: 0;
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-content {
    display: contents;
  }

  .hero-links-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-links {
    justify-content: flex-start;
    max-width: none;
    gap: 14px;
  }

  .headshot-funfact {
    text-align: left;
  }

  .hero-bio {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.14rem;
  }

  .research-grid,
  .experience-grid,
  #leadership .leadership-layout {
    grid-template-columns: 1fr;
  }

  .research-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #leadership .leadership-side {
    order: 2;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
  }

  .nav-inner {
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    gap: 8px;
    overflow: visible;
    padding: 0 10px;
  }

  .nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 5px 5px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 64px;
  }

  body {
    font-size: 16px;
  }

  .nav-inner,
  .hero,
  .section,
  .footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
  }

  .nav-link {
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    padding: 5px 4px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-inner {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .hero-photo {
    max-width: 126px;
    margin-inline: 0;
    justify-self: start;
    grid-column: 1;
    grid-row: 1;
  }

  .hero-content {
    display: contents;
  }

  .hero-links-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .hero-links {
    justify-content: flex-start;
    max-width: none;
    gap: 12px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.14rem;
  }

  .hero-bio {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
    font-size: 1.05rem;
    line-height: 1.58;
  }

  .section {
    margin-top: 56px;
  }

  .block,
  #experience .block,
  #leadership .block,
  .volunteer-under .block {
    grid-template-columns: 1fr;
  }

  #leadership .volunteer-under .block {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  #leadership .volunteer-under .block .block-img {
    min-height: 220px;
    max-height: none;
  }

  #research .block-text {
    padding: 14px;
    min-height: 0;
  }

  #research .block-dates {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  #research .advisor-text {
    flex: none;
  }

  #research .date-right {
    flex: none;
    margin-left: 0;
    text-align: left;
  }

  #research .research-tags {
    justify-content: flex-start;
  }

  #research .research-tag {
    white-space: normal;
  }

  .block-img {
    min-height: 150px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    font-size: 0.8rem;
    padding: 7px 10px;
  }
}

@media (max-width: 400px) {
  .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    padding: 4px 3px;
  }
}

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

  .headshot-flip-inner {
    transition: none;
  }
}
