:root {
  color-scheme: light;

  /* Neutral colors */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1f2328;
  --ink-soft: #4a5058;
  --muted: #6b7178;
  --faint: #a7b1c5;
  --rule: #e6e8eb;
  --rule-strong: #d0d4d9;
  --line: rgba(106, 130, 176, 0.18);
  --line-strong: rgba(106, 130, 176, 0.36);
  --dark: #10141f;
  --dark-ink: #eef2fa;
  --dark-muted: #9aa6bd;

  /* Accent colors */
  --accent: #5d91dc;
  --accent-2: #8878ea;
  --accent-soft: rgba(116, 169, 239, 0.13);
  --accent-soft-2: rgba(170, 161, 233, 0.15);
  --grad: linear-gradient(96deg, #74a9ef 0%, #5d91dc 50%, #8878ea 100%);
  --grad-wide: linear-gradient(
    90deg,
    #d96f91 0%,
    #b66fc4 25%,
    #8175d8 50%,
    #b66fc4 75%,
    #d96f91 100%
  );

  /* Typography */

  --font-serif: "Charter", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman",
    "Songti SC", "Source Han Serif SC", serif;
  --font-sans: "Geist", "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "JetBrains Mono",
    Menlo, Consolas, monospace;

  /* Spacing */
  --page: 1140px;
  --prose: 800px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-gap: clamp(56px, 7vw, 92px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 380ms;
  --dur-slow: 620ms;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow: 0 1px 2px rgba(70, 105, 175, 0.05),
    0 14px 40px -22px rgba(70, 105, 175, 0.22);
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
pre {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(93, 145, 220, 0.34);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Brand bar */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  pointer-events: none;
}
.top-bar > * {
  pointer-events: auto;
}

/* Let the brand scroll with the page when side gutters are narrow. */
@media (max-width: 1320px) {
  .top-bar {
    position: absolute;
    top: 0;
  }
}

.brand {
  display: block;
  line-height: 0;
}
.brand img {

  height: clamp(40px, 5.4vw, 75px);
  width: auto;
  opacity: 1;
}

/* Hero */

.hero-bg {
  position: relative;
  overflow: hidden;

  padding: clamp(52px, 9vw, 120px) 0 clamp(44px, 7vw, 88px);
  background-color: #eef3fa;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.28) 46%,
    rgba(255, 255, 255, 0.46) 70%,
    rgba(255, 255, 255, 0.78) 88%,
    #ffffff 100%
  );
}

/* Title and authors */

.title-block {
  position: relative;
  z-index: 1; /* Above the hero background layers. */
  width: 100%;
  text-align: center;

  padding: 0 var(--gutter);
}

.hero-title {
  margin: 0 auto;
  max-width: 1000px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
}

.title-text {
  display: block;
  font-size: clamp(23px, 2.9vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  padding: 0 8px;
}

.grad {
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-wide);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-drift 11s linear infinite;
}

@keyframes grad-drift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.hero-tagline {
  display: block;
  margin: 13px auto 0;
  max-width: 900px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.42;
  color: var(--ink-soft);
  padding: 0 8px;
}

.authors {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.authors .name {
  color: var(--ink);
}

.authors sup {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  margin-left: 1px;
}

.affiliations {
  margin-top: -6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.4;
}

.affiliations .aff-num {
  margin-right: 2px;
  font-size: 11px;
  font-style: normal;
  vertical-align: super;
}

.author-note {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}

/* Resource links */

.link-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  box-shadow: var(--shadow-pill);
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pill svg.mark {
  width: 17px;
  height: 17px;
  flex: none;
  display: block;
}

.pill.arxiv {
  background: #b31b1b;
}

.pill.github {
  background: #181717;
}

.pill.modelscope {
  background: #624aff;
}

/* White text on this brand yellow has low contrast; use dark text if adjusting accessibility. */
.pill.hf {
  background: #ffd21e;
  color: #fff;
  font-weight: 650;
}

.pill.accent {
  background: #f97316;
}

/* Sections */

.section {
  /* Preserve .wrap side padding on narrow screens. */
  padding: var(--section-gap) var(--gutter) 0;
}

#abstract.section {
  padding-top: var(--section-gap);
}

.section-head {
  margin-bottom: 26px;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 33px);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule-strong);
}

.section-title > .title-text {
  flex: 0 0 auto;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.section-led {
  max-width: var(--prose);
  margin: 0 auto;
  text-align: left;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.section-led strong {
  color: var(--ink);
  font-weight: 600;
}

.section-body {
  max-width: 780px;
  margin: 0 auto;
}

.section-body p + p {
  margin-top: 16px;
}

.abstract {
  text-align: left;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.abstract strong {
  color: var(--ink);
  font-weight: 600;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  padding: 24px 26px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.card h3 {
  margin: 14px 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.64;
  text-align: left;
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.architecture-principles {
  margin-top: clamp(30px, 4vw, 46px);
}

/* Demo video */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.demo-item {
  min-width: 0;
}

.demo h3 {
  margin: 0 0 12px;
  text-align: center;
}

.demo-item p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.demo-item .demo-fallback {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.demo-fallback + p {
  margin-top: 6px;
}

.video-frame {
  position: relative;
  margin: 0 auto;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fd 100%);
  overflow: hidden;
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

/* Architecture figures */

.figure {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: #fcfcfd;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  padding: 24px;
  overflow-x: auto;
}

.figure svg {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
}

.paper-figure {
  margin: 32px auto 0;
  max-width: 1000px;
  text-align: center;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
}

.paper-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.figure-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1100px;
  margin: 32px auto 0;
}

.figure-row .paper-figure {
  margin: 0;
  max-width: none;
}

@media (max-width: 760px) {
  .figure-row {
    grid-template-columns: 1fr;
  }
}

/* Status table */

.status-wrap {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fcfcfd;
  overflow: hidden;
}

.status {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.status th {
  text-align: left;
  padding: 15px 16px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
  background: #fff;
}

.status td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
  color: var(--ink-soft);
}

.status tr:last-child td {
  border-bottom: 0;
}

.status td:last-child {
  white-space: nowrap;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.state.is-done::before {
  background: #4f9e77;
}

.state.is-partial::before {
  background: #d99a34;
}

.state.is-none::before {
  background: rgba(107, 113, 120, 0.32);
}

/* Unmeasured result. */
.state.is-pending {
  color: var(--muted);
}

.state.is-pending::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(107, 113, 120, 0.45);
}

.status.eval td:nth-child(1) {
  width: 26%;
  font-weight: 600;
  color: var(--ink);
}

.status.eval td:nth-child(2) {
  width: 56%;
}

/* Benchmark results */

.results-block {
  max-width: 1000px;
  margin: 0 auto 34px;
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.results-head h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.results-head p {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.results-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.results {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.results thead th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule-strong);
  background: #f7f9fc;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.results thead th.model,
.results tbody th {
  text-align: left;
}

.results tbody th {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.results tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

.results tbody tr:last-child th,
.results tbody tr:last-child td {
  border-bottom: 0;
}

.results tbody tr:hover th,
.results tbody tr:hover td {
  background: #fafbfd;
}

.results tbody tr.group th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  background: #f7f9fc;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results .best {
  color: var(--ink);
  font-weight: 700;
}

.results .second {
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}

.results .model-name {
  margin-right: 7px;
}

.model-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.results tr.is-ours .model-tag {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.results-note {
  max-width: 1000px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: right;
}

@media (max-width: 760px) {
  .results-head {
    display: block;
  }

  .results-head p {
    margin-top: 3px;
    text-align: left;
  }

  .results-note {
    text-align: left;
  }
}

/* BibTeX */

.bib {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fd 100%);
  padding: 16px 22px 20px;
  overflow-x: auto;
}

.bib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bib-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.bib pre {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  white-space: pre;
  text-align: left;
}

.bib .k {
  color: var(--accent);
}

.copy {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.copy:hover {
  color: var(--accent);
  border-color: var(--line-strong);
}

/* Closing CTA */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-top: var(--section-gap);
  min-height: clamp(520px, 76vh, 820px);
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #0d1119;

  background-image:
    linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.58) 10%,
      rgba(255, 255, 255, 0) 24%
    ),
    linear-gradient(
      0deg,
      rgba(10, 14, 26, 0.8) 0%,
      rgba(10, 14, 26, 0.58) 34%,
      rgba(10, 14, 26, 0.26) 62%,
      rgba(10, 14, 26, 0) 80%
    ),
    url("../images/cta-background.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.cta-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(36px, 6vw, 64px);
}

.cta-mark {
  display: block;
  margin: 0 auto 22px;
  width: 120px;
  height: 120px;
  object-fit: contain;

  filter: drop-shadow(0 6px 22px rgba(10, 20, 40, 0.45));
}

.cta h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 62px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-shadow: 0 2px 14px rgba(10, 20, 40, 0.35);
}

.cta p {
  margin: 16px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color var(--dur) var(--ease);
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn.is-primary {
  background: #fff;
  color: #16233c;
  box-shadow: 0 6px 22px rgba(10, 25, 50, 0.28);
}

.cta-btn.is-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cta-btn.is-ghost:hover {
  border-color: #fff;
}

.cta p.cta-closing {
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(14px, 1.25vw, 16px);
  letter-spacing: 0.01em;
}

/* Footer */

.foot {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(18px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
}

/* Keep separators outside links so hover underlines exclude them. */
.foot span + span::before {
  content: "·";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.32);
}

.foot a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}
.foot a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive layout */

@media (max-width: 1140px) {
  :root {
    --gutter: clamp(40px, 9vw, 96px);
  }
}

@media (max-width: 860px) {

  .hero-bg {
    min-height: clamp(420px, 60vh, 620px);
  }

  .section-title {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  :root {
    --gutter: clamp(24px, 8vw, 96px);
  }

  .top-bar {
    padding: 10px 14px;
  }

  .title-block {
    padding-bottom: 32px;
  }

  .authors {
    font-size: 16.5px;
  }

  .affiliations {
    font-size: 14.5px;
  }

  .pill {
    font-size: 14px;
    padding: 9px 15px;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .section-title {
    justify-content: center;
    text-align: center;
  }

  .figure {
    padding: 16px;
  }

  .status td:last-child {
    white-space: normal;
  }

}

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

}

@media print {
  .top-bar {
    position: static;
  }
}
