:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --soft: #f4f4f5;
  --soft-2: #f8f8f8;
  --ink: #18181b;
  --muted: #71717a;
  --quiet: #a1a1aa;
  --line: #e4e4e7;
  --dark: #2d174f;
  --accent: #7c3aed;
  --accent-2: #d946ef;
  --sun: #f4b740;
  --sky: #8b5cf6;
  --shadow: 0 18px 44px rgba(45, 23, 79, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(244, 244, 245, 0.9);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: #52525b;
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.language-switch {
  display: inline-flex;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
}

.language-switch a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #71717a;
  font-size: 12px;
  font-weight: 650;
}

.language-switch a.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(24, 24, 27, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #52525b;
}

.hero {
  background: transparent;
}

.hero {
  padding: clamp(56px, 9vw, 104px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(52px, 9vw, 104px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.affiliation,
.section-kicker,
.meta,
.venue {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.affiliation {
  margin: 0 0 22px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-slogan {
  max-width: 820px;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.12;
}

.hero-slogan span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.lead {
  max-width: 700px;
  margin-bottom: 34px;
  color: #52525b;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  border-color: #d4d4d8;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.button.primary:hover {
  background: #6d28d9;
}

.portrait-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  text-align: center;
}

.portrait-panel img {
  width: clamp(176px, 22vw, 220px);
  height: clamp(176px, 22vw, 220px);
  border-radius: 999px;
  object-fit: cover;
  object-position: center 12%;
  outline: none;
}

.portrait-panel div {
  margin-top: 26px;
}

.portrait-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(23px, 2.4vw, 30px);
  letter-spacing: -0.035em;
}

.portrait-panel p {
  margin-bottom: 3px;
  color: #52525b;
  font-size: 17px;
  line-height: 1.35;
}

.portrait-panel a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.35);
  text-underline-offset: 4px;
}

.section {
  padding: clamp(46px, 6vw, 68px) 0;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 8vw, 86px);
}

.intro-copy {
  color: #52525b;
  font-size: 18px;
  line-height: 1.78;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

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

.section-bar h2 {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-bar a {
  color: var(--accent);
  font-size: 14px;
  transition: color 180ms ease;
}

.section-bar a:hover {
  color: var(--ink);
}

.research-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.research-grid article,
.news-grid article,
.project-grid article,
.people-grid article {
  border-radius: 18px;
  background: var(--soft);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.research-grid article {
  padding: 24px;
}

.research-grid article:hover,
.news-grid article:hover,
.project-grid article:hover,
.people-grid article:hover {
  background: #f0f0f1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.research-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.research-grid p,
.news-grid p,
.project-grid p,
.people-grid p {
  margin-bottom: 0;
  color: #71717a;
  font-size: 14px;
  line-height: 1.7;
}

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

.news-grid article {
  position: relative;
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(246, 189, 63, 0.16);
}

.meta {
  margin-bottom: 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.news-grid h3 {
  margin-bottom: 2px;
  font-size: 15px;
}

.news-grid p:not(.meta) {
  grid-column: 3;
  font-size: 13px;
}

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

.project-grid article {
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.project-carousel {
  position: relative;
  overflow: hidden;
  margin: -8px -8px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f6f6f7;
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 10;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.carousel-track img.is-active {
  opacity: 1;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(24, 24, 27, 0.12);
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.carousel-control:hover {
  background: var(--accent);
  color: #ffffff;
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c4c4cc;
}

.carousel-dots button.is-active {
  width: 18px;
  background: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tags span {
  color: var(--sky);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

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

.publication-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.publication-list article:first-child {
  border-top: 1px solid var(--line);
}

.venue {
  margin-bottom: 10px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.publication-list h3 {
  max-width: 900px;
  margin-bottom: 8px;
  font-size: 17px;
}

.publication-authors {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.people-grid article {
  padding: 26px;
}

.people-grid article:last-child {
  grid-column: span 2;
}

.student-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #71717a;
  font-size: 14px;
  line-height: 1.65;
}

.student-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}

.student-list span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.join-section {
  padding: clamp(58px, 7vw, 76px) 0;
  background:
    linear-gradient(135deg, #2d174f 0%, #5b21b6 100%);
  color: #ffffff;
}

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(38px, 8vw, 86px);
  align-items: start;
}

.join-section h2 {
  max-width: 680px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 38px);
}

.join-section p {
  max-width: 680px;
  color: #d9cff0;
  font-size: 17px;
  line-height: 1.76;
}

.join-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 680px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.join-section li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1eafe;
  font-size: 14px;
}

.join-section li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--sun);
}

.contact-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-card .section-kicker {
  color: #f5c2ff;
}

.contact-card p {
  font-size: 15px;
}

.contact-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(246, 189, 63, 0.65);
  text-underline-offset: 4px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.75fr;
  gap: clamp(34px, 7vw, 78px);
  padding: 46px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.site-footer h4 {
  color: #7b968d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #71717a;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.footer-links a {
  color: var(--accent);
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--ink);
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.copyright p,
.copyright a {
  margin-bottom: 0;
  color: #a1a1aa;
  font-size: 12px;
}

@media (max-width: 920px) {
  .hero-grid,
  .intro-grid,
  .join-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    justify-self: center;
  }

  .research-grid,
  .project-grid,
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container,
  .nav-wrap {
    width: min(100% - 32px, 1120px);
  }

  .nav-wrap {
    padding: 16px 0;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .language-switch {
    margin: 8px 0 0;
    align-self: flex-start;
  }

  .language-switch a {
    padding: 7px 12px;
  }

  .hero {
    padding: 38px 0 50px;
  }

  h1 {
    font-size: clamp(36px, 10.6vw, 46px);
  }

  .hero-slogan {
    font-size: clamp(31px, 8.2vw, 38px);
  }

  .hero-slogan span {
    white-space: normal;
  }

  .lead {
    font-size: 17px;
  }

  .button-row {
    gap: 10px;
  }

  .button {
    flex: 1 1 auto;
  }

  .section {
    padding: 42px 0;
  }

  .research-grid,
  .news-grid,
  .project-grid,
  .people-grid,
  .join-section ul {
    grid-template-columns: 1fr;
  }

  .people-grid article:last-child {
    grid-column: span 1;
  }

  .student-list li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .news-grid article {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
  }

  .news-grid .meta {
    grid-column: 2;
  }

  .news-grid h3,
  .news-grid p:not(.meta) {
    grid-column: 2;
  }

  .portrait-panel img {
    width: 180px;
    height: 180px;
  }

  .copyright {
    flex-direction: column;
  }
}
