@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Work+Sans:wght@300;400;500;600&display=swap");

:root {
  --ink: #1d1f1c;
  --sand: #f7f2ea;
  --sage: #d7e2d3;
  --forest: #1f3f2d;
  --clay: #c77f57;
  --mist: rgba(29, 31, 28, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, var(--sage), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(199, 127, 87, 0.2), transparent 40%),
    linear-gradient(180deg, var(--sand), #f2ebe0 70%);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(247, 242, 234, 0.9);
  border-bottom: 1px solid var(--mist);
  z-index: 10;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--forest);
}

nav a.active,
nav a[aria-current="true"] {
  color: var(--forest);
  border-bottom-color: var(--clay);
}

main {
  flex: 1;
}

section {
  padding: 80px 24px;
  scroll-margin-top: 100px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  padding-top: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--forest);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--forest);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--forest);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(31, 63, 45, 0.2);
}

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--mist);
  border-radius: 24px;
  padding: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat span:first-child {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forest);
}

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

.card-grid.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 22px;
  min-height: 160px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project-pubs {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-pub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-pub-label {
  white-space: nowrap;
}

.project-pub-icons {
  display: inline-flex;
  gap: 4px;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.paper-link:hover,
.paper-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.paper-link::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  z-index: 3;
}

.paper-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  z-index: 3;
}

.paper-link:hover::after,
.paper-link:focus-visible::after,
.paper-link:hover::before,
.paper-link:focus-visible::before {
  opacity: 1;
}

.paper-icon {
  width: 11px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  position: relative;
  box-sizing: border-box;
}

.paper-icon::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.pub-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 220px;
}

.pub-year,
.list-item {
  scroll-margin-top: 220px;
}

.people-lead {
  margin-bottom: 32px;
}

.people-group {
  margin: 24px 0 12px;
  font-size: 1.15rem;
}

.people-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  position: relative;
  overflow: visible;
}

.person-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(31, 63, 45, 0.16);
  z-index: 999;
}

.person-card.lead {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 20px;
}

.person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(199, 127, 87, 0.2), rgba(31, 63, 45, 0.18));
  display: grid;
  place-items: center;
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.person-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.person-photo span {
  font-size: 2rem;
}

.person-meta {
  display: grid;
  gap: 4px;
}

.person-name {
  margin: 0;
  font-size: 1.05rem;
}

.person-title {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(29, 31, 28, 0.7);
}

.person-note {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(29, 31, 28, 0.6);
}

.person-bio {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -12px);
  width: min(480px, 90vw);
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--mist);
  border-radius: 14px;
  box-shadow: 0 18px 28px rgba(31, 63, 45, 0.18);
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(29, 31, 28, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
}

.person-card:hover .person-bio {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -24px);
}

.card-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(31, 63, 45, 0.16);
}

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

.news-ticker {
  --news-item-height: 72px;
  --news-gap: 16px;
  --news-step: calc(var(--news-item-height) + var(--news-gap));
  --news-visible: 2;
  height: calc(var(--news-step) * var(--news-visible) - var(--news-gap));
  overflow: hidden;
}

.news-track {
  display: flex;
  flex-direction: column;
  gap: var(--news-gap);
  will-change: transform;
}

.news-ticker .list-item {
  height: var(--news-item-height);
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-index {
  width: 24px;
  text-align: right;
  color: var(--forest);
  font-weight: 600;
  flex: 0 0 auto;
}

.news-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-date {
  font-size: 0.85rem;
  color: rgba(29, 31, 28, 0.6);
  white-space: nowrap;
  flex: 0 0 auto;
}

.list-item {
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--mist);
}

.map-embed {
  position: relative;
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.6);
  min-height: 180px;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.map-overlay {
  position: absolute;
  inset: 0;
}

.acronym-initial {
  display: inline-block;
  line-height: 1;
  border-bottom: 2px solid var(--forest);
  padding-bottom: 2px;
}

.list-numbered {
  counter-reset: pub;
}

.list-numbered .list-item {
  counter-increment: pub;
  position: relative;
  padding-left: 56px;
}

.list-numbered .list-item::before {
  content: counter(pub) ".";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 24px;
  text-align: right;
  color: var(--forest);
  font-weight: 600;
}

.pub-year {
  display: grid;
  gap: 12px;
}

.pub-year h3 {
  margin: 0;
}

.pub-venue {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(31, 63, 45, 0.12);
  color: var(--forest);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin: 0 4px 6px 0;
  border-radius: 999px;
  border: 1px solid rgba(31, 63, 45, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
}

.pub-link[href*=".pdf"],
.pub-link[href*="pdf"] {
  background: rgba(199, 127, 87, 0.2);
  border-color: rgba(199, 127, 87, 0.4);
}

.pub-link[href*="slides"] {
  background: rgba(215, 226, 211, 0.7);
  border-color: rgba(31, 63, 45, 0.18);
}

.pub-link[href*="bibtex"] {
  background: rgba(31, 63, 45, 0.12);
  border-color: rgba(31, 63, 45, 0.24);
}

.pub-link[href*="github.com"] {
  background: rgba(29, 31, 28, 0.12);
  border-color: rgba(29, 31, 28, 0.24);
}

.pub-link[href*="youtube"],
.pub-link[href*="video"],
.pub-link[href$=".mp4"] {
  background: rgba(54, 104, 169, 0.18);
  border-color: rgba(54, 104, 169, 0.4);
}

.sponsor-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sponsor-card {
  min-height: 0;
  align-items: center;
  text-align: center;
}

.sponsor-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.sponsor-logo {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo img {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
}

footer {
  padding: 40px 24px;
  border-top: 1px solid var(--mist);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-copyright {
  max-width: 1100px;
  margin: 20px auto 0;
  font-size: 0.85rem;
  color: rgba(29, 31, 28, 0.6);
}

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

  .nav-wrap {
    justify-content: center;
  }

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

  .person-card.lead {
    flex-direction: column;
    text-align: center;
  }
}
