:root {
  --ink: #202830;
  --muted: #687581;
  --paper: #f8fafb;
  --surface: #ffffff;
  --accent: #4b6b80;
  --accent-dark: #304e63;
  --accent-soft: #edf2f5;
  --line: #dfe5e9;
  --shadow: 0 12px 32px rgba(31, 49, 63, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #d9e5ec;
  color: #1d2d38;
}

a {
  color: #416b87;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.page-section {
  scroll-margin-top: 28px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 50px;
  align-items: center;
  min-height: 520px;
  padding: 34px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-copy p {
  margin: 0 0 14px;
}

.hero-copy .eyebrow {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #18222b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0 22px;
}

.research-tags span {
  padding: 4px 10px;
  border: 1px solid #d8e2e8;
  border-radius: 999px;
  background: rgba(237, 243, 247, 0.76);
  color: #36566a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 4px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
}

.contact-links svg {
  width: 15px;
  height: 15px;
}

.contact-links > span {
  color: #c5cfd6;
}

.profile-wrap {
  position: relative;
  margin: 0;
}

.profile-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px 10px 12px -10px;
  border: 1px solid #bdcdd7;
  border-radius: 18px;
  background: var(--accent-soft);
  transform: none;
}

.profile-wrap img {
  display: block;
  width: 100%;
  height: 350px;
  aspect-ratio: 0.77;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 42%;
  box-shadow: var(--shadow);
}

.profile-wrap figcaption {
  position: absolute;
  right: 11px;
  bottom: 10px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  color: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  backdrop-filter: blur(7px);
}

.section-block {
  padding: 70px 0 6px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading-row::after {
  content: "";
  order: 2;
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-heading-row h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 37px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-index {
  order: 3;
  color: #9ca8b1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.section-intro {
  margin: -10px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.news-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 4px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--line));
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 17px;
  padding: 10px 12px 10px 0;
  border-radius: 9px;
  transition: background 180ms ease, transform 180ms ease;
}

.news-item:hover {
  background: rgba(235, 242, 246, 0.75);
  transform: translateX(2px);
}

.news-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #eaf0f4;
}

.news-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.news-date {
  color: #607989;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.news-text {
  color: #39444c;
}

.venue {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-btn {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5d6a74;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tag-btn:hover {
  border-color: #9eb2bf;
}

.tag-btn.active {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.tag-count {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-left: 5px;
  border-radius: 50%;
  background: rgba(48, 78, 99, 0.1);
  font-size: 10px;
}

.tag-btn.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(31, 49, 63, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.publication-card:hover {
  border-color: #b7c7d1;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.publication-card.featured {
  border-color: #ccd8df;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.publication-card[hidden] {
  display: none;
}

.publication-visual {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}

.publication-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  padding: 6px;
  object-fit: contain;
  transition: transform 260ms ease;
}

.publication-card:hover .publication-visual img {
  transform: scale(1.025);
}

.publication-copy h3 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32;
}

.publication-copy h3 a {
  color: #25313a;
}

.publication-copy h3 a:hover {
  color: var(--accent-dark);
}

.publication-copy p {
  margin: 7px 0;
  color: #55616a;
  font-size: 13px;
  line-height: 1.58;
}

.publication-copy .authors {
  color: #39444c;
  line-height: 1.5;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.publication-meta span {
  color: #526f82;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: #aab8c1;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 3px;
}

.paper-links a {
  font-size: 12px;
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 136px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 42px;
  padding: 12px 0 27px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 132px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #aebfca;
}

.timeline-date {
  padding-top: 1px;
  color: #607989;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.timeline-item h3 {
  margin: 0;
  color: #25313a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.timeline-item p {
  margin: 5px 0 0;
  color: #59656e;
  font-size: 13px;
  line-height: 1.6;
}

.timeline-item .timeline-role {
  margin-top: 2px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 13px 13px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(31, 49, 63, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: #b7c7d1;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
}

.project-kicker {
  color: #526f82;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 5px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.3;
}

.project-card p {
  margin: 0 0 14px;
  color: #5f6b74;
  font-size: 12px;
  line-height: 1.55;
}

.project-link {
  margin-top: auto;
  color: #416b87;
  font-size: 11px;
  font-weight: 800;
}

.section-drip-nav {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: calc(50% + 482px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transform: translateY(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.section-drip-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 1px;
  background: #dfe5e9;
}

.section-drip-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #788691;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-drip-nav a::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1px solid #cbd6dc;
  border-radius: 10px 10px 10px 2px;
  background: var(--paper);
  transform: rotate(-45deg);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.section-drip-nav a:hover,
.section-drip-nav a:focus-visible,
.section-drip-nav a.active {
  color: var(--accent-dark);
  text-decoration: none;
}

.section-drip-nav a:hover::before,
.section-drip-nav a.active::before {
  border-color: var(--accent);
  background: #9eb5c4;
  transform: rotate(-45deg) scale(1.1);
}

.section-drip-nav.is-footer-visible {
  visibility: hidden;
  opacity: 0;
}

.mountain-footer {
  width: min(880px, calc(100% - 40px));
  margin: 76px auto 0;
}

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

.mountain-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 20px 48px;
  color: var(--ink);
  text-align: center;
}

.mountain-sub {
  max-width: 610px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.mountain-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 21px;
  border: 1px solid #cbd8df;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.mountain-cta:hover {
  border-color: #a9bcc8;
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.mountain-cta svg {
  width: 15px;
  height: 15px;
}

.mountain-footnote {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.mountain-footnote span {
  display: block;
}

.mountain-updated {
  color: #8a96a0;
}

.back-to-top {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  visibility: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(48, 71, 87, 0.84);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  transform: translateY(10px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(32, 55, 71, 0.96);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 19px;
  height: 19px;
}

.toast-message {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  padding: 8px 15px;
  border: 1px solid #d5e0e6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #304654;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  box-shadow: 0 8px 26px rgba(31, 49, 63, 0.11);
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .section-drip-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 30px, 620px);
    padding-top: 20px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: auto;
    padding: 27px 0 50px;
  }

  .hero-copy {
    order: 2;
  }

  .profile-wrap {
    order: 1;
    width: min(74vw, 270px);
    margin: 0 auto;
  }

  .profile-wrap img {
    height: 350px;
  }

  h1 {
    font-size: 43px;
  }

  .section-block {
    padding-top: 56px;
  }

  .news-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .publication-visual img {
    aspect-ratio: 16 / 9;
  }

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

  .project-card {
    display: grid;
    grid-template-columns: 115px 1fr;
    column-gap: 13px;
  }

  .project-card img {
    grid-row: 1 / 6;
    width: 115px;
    height: 100%;
    min-height: 130px;
    margin: 0;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 6px 0 27px 30px;
  }

  .timeline-item::before {
    top: 12px;
    left: 4px;
  }

  .timeline-date {
    text-align: left;
  }

}

@media (max-width: 440px) {
  body {
    font-size: 14px;
  }

  .site-shell {
    width: calc(100% - 24px);
  }

  .contact-links {
    gap: 6px;
  }

  .research-tags {
    gap: 5px;
  }

  .section-heading-row {
    gap: 10px;
  }

  .section-index {
    display: none;
  }

  .project-card {
    display: block;
  }

  .project-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-bottom: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
