@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #fbfdfc;
  --surface-soft: #eaf0f1;
  --text: #13242d;
  --muted: #5b6b73;
  --faint: #829098;
  --line: #d6e0e2;
  --accent: #0b587f;
  --accent-strong: #073f5d;
  --accent-soft: #d9ecf4;
  --header: rgb(244 247 246 / 86%);
  --shadow: 0 24px 70px rgb(26 63 77 / 12%);
  --panel-radius: 18px;
  --control-radius: 999px;
  --header-height: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1418;
  --surface: #111d22;
  --surface-soft: #16262d;
  --text: #eaf1f2;
  --muted: #a0afb5;
  --faint: #788a92;
  --line: #263840;
  --accent: #79c3e6;
  --accent-strong: #a6d8ee;
  --accent-soft: #173847;
  --header: rgb(12 20 24 / 86%);
  --shadow: 0 24px 70px rgb(0 0 0 / 26%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0c1418;
    --surface: #111d22;
    --surface-soft: #16262d;
    --text: #eaf1f2;
    --muted: #a0afb5;
    --faint: #788a92;
    --line: #263840;
    --accent: #79c3e6;
    --accent-strong: #a6d8ee;
    --accent-soft: #173847;
    --header: rgb(12 20 24 / 86%);
    --shadow: 0 24px 70px rgb(0 0 0 / 26%);
  }
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--control-radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 220ms ease;
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wordmark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.site-nav > a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.theme-button,
.menu-button {
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.theme-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px 7px 13px;
}

.theme-button:hover,
.menu-button:hover {
  border-color: var(--accent);
}

.theme-button:active,
.menu-button:active,
.button:active {
  transform: translateY(1px);
}

.theme-state {
  min-width: 42px;
  padding: 2px 8px;
  border-radius: var(--control-radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-align: center;
}

.menu-button {
  display: none;
  padding: 8px 14px;
}

.hero {
  display: flex;
  min-height: clamp(540px, 74dvh, 720px);
  align-items: center;
  padding-block: 56px 80px;
}

.hero-copy {
  width: min(100%, 900px);
  margin-left: clamp(0px, 5vw, 64px);
}

.role-line,
.section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-statement {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 470;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--accent-strong);
  color: #f6fbfd;
}

.button-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.intro,
.news,
.research,
.publications,
.background {
  padding-block: 96px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.intro h2,
.section-heading h2,
.news h2,
.background h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.intro-copy > p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.75;
}

.profile-links,
.paper-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.profile-links {
  margin-top: 26px;
}

.profile-links a,
.paper-links a,
.footer-links a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
}

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

.news h2 {
  margin-bottom: 40px;
  font-size: clamp(30px, 4vw, 46px);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-list article {
  min-height: 170px;
  padding: 24px 28px 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-list article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.news-list time,
.timeline-block time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.news-list p {
  max-width: 30ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.news-list a {
  color: var(--text);
  font-weight: 720;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading > p:not(.section-label) {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section-heading-compact {
  margin-bottom: 38px;
}

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

.research-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.88fr);
  gap: 34px 70px;
  padding-top: clamp(30px, 4vw, 46px);
}

.research-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.research-questions {
  display: grid;
  gap: 18px;
  align-content: start;
}

.research-questions p {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 680;
  line-height: 1.45;
}

.research-scope {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
}

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

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

.paper {
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.paper-featured {
  padding-block: 46px;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.035em;
}

.paper-meta span + span::before {
  content: "/";
  margin-right: 18px;
  color: var(--faint);
}

.paper h3 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.paper-featured h3 {
  font-size: clamp(27px, 3.8vw, 46px);
}

.authors,
.paper-summary,
.contribution-note {
  max-width: 820px;
  color: var(--muted);
}

.authors {
  margin: 18px 0 0;
  font-size: 14px;
}

.authors strong {
  color: var(--text);
}

.paper-summary {
  margin: 17px 0 0;
  font-size: 17px;
}

.paper-links {
  margin-top: 22px;
}

.contribution-note {
  margin: 14px 0 0;
  font-size: 12px;
}

.paper-with-visual {
  display: grid;
  grid-template-columns: minmax(200px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 58px);
}

.paper-with-visual > img {
  width: 100%;
  aspect-ratio: 1.52 / 1;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  object-fit: cover;
}

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

.background-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 9vw, 120px);
}

.timeline-block {
  border-top: 2px solid var(--text);
}

.timeline-block h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.timeline-block article {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.timeline-block h4 {
  margin: 9px 0 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.timeline-block p {
  max-width: 48ch;
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  padding-block: 70px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: start;
}

.footer-heading {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.footer-links {
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-copy > * {
    animation: hero-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 70ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 140ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 210ms;
  }

}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro h2 {
    max-width: 15ch;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-list article {
    min-height: 0;
    padding: 22px 0;
  }

  .news-list article + article {
    padding-left: 0;
    border-left: 0;
  }

  .news-list p {
    max-width: 54ch;
    margin-top: 10px;
  }

  .research-copy {
    grid-template-columns: 1fr;
  }

  .research-scope {
    grid-column: auto;
  }
}

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

  .shell {
    width: min(100% - 32px, 680px);
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) - 2px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    white-space: normal;
  }

  .site-header[data-open="true"] .site-nav {
    display: flex;
  }

  .site-nav > a {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .site-nav > a:hover {
    background: var(--surface-soft);
  }

  .theme-button {
    justify-content: space-between;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .hero {
    min-height: auto;
    padding-block: 48px 72px;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-statement {
    font-size: clamp(22px, 7vw, 29px);
  }

  .intro,
  .news,
  .research,
  .publications,
  .background {
    padding-block: 72px;
  }

  .research-copy {
    gap: 28px;
    padding-top: 30px;
  }

  .paper-with-visual {
    grid-template-columns: 1fr;
  }

  .paper-with-visual > img {
    width: min(100%, 420px);
  }

  .paper-meta span + span::before {
    margin-right: 10px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
