:root {
  --ink: #17201b;
  --muted: #5e6a63;
  --line: #dbe2dc;
  --paper: #ffffff;
  --soft: #f3f7f1;
  --soft-2: #eef3f6;
  --accent: #2f7d5b;
  --accent-dark: #1f5f43;
  --warm: #9b5c2e;
  --shadow: 0 18px 45px rgba(24, 35, 28, 0.12);
}

* {
  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.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(980px, calc(100% - 112px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.hero {
  background:
    linear-gradient(180deg, rgba(243, 247, 241, 0.9), rgba(255, 255, 255, 1)),
    radial-gradient(circle at 20% 20%, rgba(47, 125, 91, 0.12), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(155, 92, 46, 0.10), transparent 24%);
}

.hero-inner {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 30px;
  text-align: center;
}

.venue,
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 0.98;
  font-weight: 880;
}

.title-detail {
  max-width: 1120px;
  margin: 12px auto 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.12;
  font-weight: 740;
  white-space: nowrap;
}

.subtitle {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.author-block {
  max-width: 980px;
  margin: 28px auto 0;
}

.authors {
  margin: 0 auto;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.authors span {
  white-space: nowrap;
}

.corresponding-authors {
  margin-top: 1px;
}

.affiliations {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notes {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.notes sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
}

.mail-mark,
.mail-note {
  position: relative;
  top: -0.04em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 35, 28, 0.06);
}

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

.button.disabled {
  color: #7b847e;
  background: #eef2ef;
  box-shadow: none;
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button .icon {
  font-size: 18px;
  line-height: 1;
}

.hf-icon {
  font-size: 17px;
  line-height: 1;
}

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

.container.narrow {
  width: min(820px, calc(100% - 112px));
}

.section,
.figure-band {
  padding: 58px 0;
}

.figure-band {
  padding-top: 28px;
}

.teaser-container {
  width: min(860px, calc(100% - 112px));
}

.teaser-figure {
  max-width: 820px;
  margin: 0 auto;
}

.method-figure {
  max-width: 820px;
  margin: 0 auto 24px;
}

.section.alt {
  background: var(--soft);
}

.section-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 30px;
}

.section-heading h2,
.narrow h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow),
.narrow p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading p:not(.eyebrow) {
  max-width: none;
}

.paper-figure {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.caption {
  max-width: 900px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.feature-grid,
.metrics,
.demo-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.feature-grid article,
.metric,
.demo-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-grid article {
  padding: 22px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.metrics {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
}

.metric {
  padding: 24px;
  min-height: 126px;
}

.value {
  display: block;
  color: var(--accent-dark);
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
}

.label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.comparison figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.comparison img {
  display: block;
  width: 100%;
}

.comparison figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.demo-grid {
  grid-template-columns: repeat(4, 1fr);
}

.demo-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(47, 125, 91, 0.08), rgba(155, 92, 46, 0.08)),
    #fff;
}

pre {
  margin: 22px 0 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101812;
  color: #eaf3eb;
  font-size: 13px;
}


@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .feature-grid,
  .metrics,
  .comparison,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 52px;
  }
}

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-card h3 {
  margin: 0;
  padding: 18px 20px 4px;
  font-size: 20px;
}

.result-card p {
  margin: 0;
  padding: 0 20px 14px;
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 9px 11px;
  border-bottom: 1px solid #e8eee9;
  text-align: center;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  background: #f6f9f6;
  color: #243029;
  font-size: 13px;
  font-weight: 800;
}

.group-row td {
  background: #f6f9f6;
  color: #243029;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.ours-row td {
  background: #f5fbf6;
  color: var(--ink);
  font-weight: 400;
}

.ours-row + .ours-row td {
  background: #f5fbf6;
}

.summary-row td {
  background: #fbfdfb;
  font-weight: 400;
}

.summary-row td:first-child {
  font-weight: 400;
}

.ours-col {
  background: #f5fbf6;
}


.first-summary td {
  border-top: 2px solid #cfded3;
  padding-top: 13px;
}

.result-card tbody tr:last-child td {
  border-bottom: 0;
}

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

.summary-row td.ours-col {
  background: #f5fbf6;
}

.teaser-caption {
  font-size: 17px;
  line-height: 1.55;
}

.demo-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  object-fit: contain;
}

.demo-card figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}


.demo-card video:fullscreen,
.demo-card video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  object-fit: contain;
}

.compact-section {
  padding: 46px 0;
}

.abstract-section p {
  text-align: justify;
  text-justify: inter-word;
}

.abstract-section .narrow {
  width: min(920px, calc(100% - 36px));
}

.abstract-section p {
  text-align: justify !important;
  text-align-last: left;
  hyphens: auto;
  overflow-wrap: break-word;
}
