:root {
  --ink: #16211d;
  --muted: #586861;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --line: #dfe5dc;
  --moss: #355c4a;
  --moss-dark: #203b30;
  --gold: #c99a3b;
  --coral: #c96f50;
  --teal: #2c7a7b;
  --shadow: 0 18px 46px rgba(16, 31, 25, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: #131f1b;
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.logo-brand {
  flex: 0 1 340px;
}

.site-logo {
  width: min(330px, 54vw);
  height: auto;
  border-radius: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-links .nav-action {
  background: #fff;
  color: var(--moss-dark);
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #f6f4ee;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 251, 248, 0.96) 0%, rgba(251, 251, 248, 0.82) 36%, rgba(251, 251, 248, 0.1) 76%),
    linear-gradient(0deg, rgba(251, 251, 248, 0.78) 0%, rgba(251, 251, 248, 0.06) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9rem 0 8rem;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 6.4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 630px;
  margin: 1.4rem 0 0;
  color: #34433d;
  font-size: 1.15rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  background: var(--gold);
  color: #1d2118;
}

.button.secondary {
  border-color: rgba(22, 33, 29, 0.26);
  color: var(--moss-dark);
  background: rgba(255, 255, 255, 0.72);
}

.button.small {
  min-width: 110px;
  min-height: 40px;
  padding: 0.58rem 0.8rem;
  border-color: var(--line);
  color: var(--moss-dark);
  background: var(--surface);
}

.section {
  padding: 5.5rem 0;
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.research-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.overview-copy {
  border-left: 3px solid var(--gold);
  padding-left: 1.35rem;
}

.overview-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.overview-copy p + p {
  margin-top: 1rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
}

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

.foundation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.2rem;
  box-shadow: 0 12px 32px rgba(22, 33, 29, 0.07);
}

.foundation-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  color: #714313;
  background: #f5e4c4;
  font-size: 0.74rem;
  font-weight: 900;
}

.foundation-card h3 {
  font-size: 1.08rem;
}

.foundation-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.technical-diagram {
  margin: 2rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(22, 33, 29, 0.07);
}

.technical-diagram img {
  width: 100%;
  min-width: 940px;
  height: auto;
}

.generated-diagram img {
  min-width: 0;
}

.section-heading p:not(.eyebrow),
.two-column > p,
.contact-panel p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.topic-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic-grid.demo-topic-grid {
  grid-template-columns: 1fr;
}

.topic-card,
.member-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(22, 33, 29, 0.07);
}

.topic-card {
  min-height: 330px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.demo-topic-grid .topic-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
}

.demo-topic-grid .topic-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topic-number {
  width: fit-content;
  margin-bottom: 2.5rem;
  color: var(--coral);
  font-weight: 900;
}

.demo-topic-grid .topic-number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 8px;
  background: var(--moss-dark);
  color: #fff;
  font-size: 0.95rem;
}

.topic-card p,
.demo-card p,
.member-card p,
.output-item p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.topic-card a {
  margin-top: auto;
  color: var(--moss);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.demo-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-links a {
  margin-top: 0;
}

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

.demo-list,
.output-list {
  display: grid;
  gap: 0.75rem;
}

.demo-card,
.output-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.15rem;
}

.status {
  display: inline-flex;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.status.live {
  color: #11443b;
  background: #d7f0e8;
}

.status.beta {
  color: #6b410e;
  background: #f7e4bc;
}

.status.archive {
  color: #6b3126;
  background: #f4d9d1;
}

.member-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--moss-dark);
  color: #fff;
  font-weight: 900;
}

.role {
  color: var(--coral) !important;
  font-weight: 800;
  margin-top: 0.25rem !important;
}

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

.profile-grid .member-card {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 1.25rem;
}

.profile-grid .avatar {
  width: 64px;
  height: 64px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.8rem;
}

.profile-link {
  display: inline-flex;
  color: var(--moss);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.output-item {
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
}

.output-label {
  color: var(--teal);
  font-weight: 900;
}

.papers {
  display: grid;
  gap: 2.25rem;
}

.paper-year {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.paper-year h3 {
  position: sticky;
  top: 92px;
  width: 72px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--moss-dark);
  color: #fff;
  font-size: 0.98rem;
}

.paper-list {
  display: grid;
  gap: 0.75rem;
}

.paper-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(22, 33, 29, 0.06);
}

.paper-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.32;
  letter-spacing: 0;
}

.paper-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.paper-card strong {
  color: var(--moss-dark);
  font-weight: 900;
}

.venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  margin-top: 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.venue-tag::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
}

.venue-acl {
  color: #6a2d86;
  background: #f0def7;
  border-color: #e2c2ee;
}

.venue-acl-industry {
  color: #5c2d17;
  background: #f2dfce;
  border-color: #e3c4a7;
}

.venue-aaai,
.venue-icml,
.venue-iclr,
.venue-neurips {
  color: #114b58;
  background: #d9f0f2;
  border-color: #b9dde1;
}

.venue-ieee {
  color: #224a8b;
  background: #dce8fb;
  border-color: #bfd3f4;
}

.venue-journal {
  color: #315c24;
  background: #e3efd8;
  border-color: #cadfba;
}

.venue-conference,
.venue-workshop {
  color: #714313;
  background: #f5e4c4;
  border-color: #e7cc96;
}

.venue-kdd {
  color: #7a3329;
  background: #f3d8d2;
  border-color: #e8bbb1;
}

.venue-mm {
  color: #5b3a8e;
  background: #eadff8;
  border-color: #d7c2ee;
}

.contact {
  background: var(--moss-dark);
  color: #fff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.footer {
  color: rgba(255, 255, 255, 0.72);
  background: #111a17;
  padding: 1.35rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(19, 31, 27, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

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

  .nav-links a,
  .nav-links .nav-action {
    margin: 0;
    padding: 0.85rem 0.9rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 8rem 0 5rem;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .two-column,
  .research-overview,
  .foundation-grid,
  .member-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .topic-grid.demo-topic-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .site-logo {
    width: min(230px, 62vw);
  }

  .hero h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .demo-card,
  .output-item,
  .paper-year {
    grid-template-columns: 1fr;
  }

  .paper-year h3 {
    position: static;
    width: fit-content;
    padding: 0 0.8rem;
  }

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

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

  .button,
  .button.small,
  .contact-actions {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
