:root {
  --bg: #ffffff;
  --surface: #fcfcfc;
  --text: #121212;
  --muted: #626262;
  --line: #dfdfdf;
  --line-strong: #bcbcbc;
  --chip: #f3f3f3;
  --content-width: 1160px;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-family: "Noto Serif", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.97rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #111111;
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 5px auto;
  background: #111111;
}

.hero {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.portrait-column {
  position: relative;
}

.portrait-column::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  z-index: 0;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 0.86;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(0.98) contrast(1.02);
}

.hero-copy h1,
.content-section h2,
.content-section h3 {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  line-height: 1.18;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(2.3rem, 4.2vw, 3.2rem);
}

.hero-role {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
}

.hero-affiliation {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--line-strong);
}

.hero-bio {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.hero-actions {
  margin-bottom: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.button:hover {
  background: #2b2b2b;
}

.about-research {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.about-research h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-style: italic;
}

.about-research ul,
.plain-list {
  margin: 0;
  padding-left: 22px;
}

#research-list {
  columns: 2;
  column-gap: 28px;
}

.about-research li,
.plain-list li {
  margin-bottom: 4px;
  font-size: 0.92rem;
  break-inside: avoid;
}

.research-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.content-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.publication-list,
.funding-list {
  display: grid;
}

.publication-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #ededed;
}

.publication-marker {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.publication-item h3 {
  margin: 0 0 5px;
  font-size: 1.16rem;
}

.publication-authors,
.publication-meta,
.funding-role,
.funding-grant,
.service-note {
  margin: 0;
  color: var(--muted);
}

.publication-authors {
  font-size: 0.98rem;
}

.publication-meta {
  font-size: 0.94rem;
}

.funding-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #ededed;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: #f5f5f5;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.is-ongoing {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.funding-category {
  margin: 0 0 3px;
  font-size: 1.02rem;
}

.funding-role {
  font-size: 0.93rem;
  margin-bottom: 3px;
}

.funding-title {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 0.95rem;
}

.funding-grant {
  font-size: 0.92rem;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 74px;
}

.service-panel {
  padding: 0;
}

.service-panel h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}

.reviewer-grid {
  columns: 2;
  column-gap: 28px;
}

.reviewer-grid li {
  break-inside: avoid;
}

.service-note {
  margin-top: 14px;
  font-size: 0.92rem;
}

.service-note-inline {
  margin: -4px 0 10px;
}

.teaching-card {
  padding: 0;
}

.contact-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-link-row {
  display: grid;
  gap: 4px;
  align-content: start;
  font-size: 0.95rem;
}

.contact-label {
  color: var(--muted);
  min-width: 0;
}

.contact-value {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teaching-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teaching-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto 1fr auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .portrait-column {
    max-width: 248px;
  }

  .reviewer-grid {
    columns: 1;
  }

  #research-list,
  .contact-inline {
    columns: initial;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .section-heading {
    display: block;
  }

  .publication-item,
  .funding-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero-role {
    font-size: 1rem;
  }
}
