/* ==========================================================================
   FMMC Project Page — style.css
   CVPR 2026 · Pure static, GitHub Pages compatible
   ========================================================================== */

/* 0. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

sup {
  font-size: 0.68em;
  vertical-align: super;
  line-height: 0;
}

/* 1. Layout
   -------------------------------------------------------------------------- */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 60px 0;
  border-top: 1px solid #f0f0f0;
  scroll-margin-top: 68px;
}

.section > h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: #0a0a0a;
}

.subsec-h {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin: 40px 0 14px;
}

/* 2. Sticky nav
   -------------------------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececec;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 15px;
  color: #111;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #111;
  text-decoration: none;
}

/* 3. Hero
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 68px 0 52px;
  max-width: 820px;
  margin: 0 auto;
  scroll-margin-top: 0;
}

.venue-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(24px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.paper-full-title {
  font-size: 17px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 30px;
  font-style: italic;
}

.author-block {
  font-size: 16.5px;
  margin-bottom: 10px;
  color: #1a1a1a;
  line-height: 1.8;
}

.author-name {
  font-weight: 600;
  color: #111;
}

.affil-block {
  font-size: 13.5px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-bottom: 8px;
}

.equal-note {
  font-size: 12.5px;
  color: #999;
  margin-bottom: 36px;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid #111;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1;
}

.btn:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: #aaa;
  border-color: #ddd;
  cursor: default;
}

.btn-ghost:hover {
  background: transparent;
  color: #aaa;
  border-color: #ddd;
}

.btn-outline {
  background: transparent;
  color: #111;
  border-color: #bbb;
}

.btn-outline:hover {
  background: #f5f5f5;
  color: #111;
  border-color: #999;
}

/* 4. Teaser
   -------------------------------------------------------------------------- */
.teaser {
  padding: 8px 0 52px;
}

/* 5. Figures & placeholders
   -------------------------------------------------------------------------- */
.figure-wrap {
  margin-bottom: 0;
}

.fig-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #e4e4e4;
}

.fig-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  background: #f7f8f9;
  border: 1.5px dashed #c8ccd2;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
}

.fig-ph.fig-ph--short {
  min-height: 130px;
  gap: 6px;
}

.ph-icon {
  margin-bottom: 4px;
  line-height: 0;
}

.ph-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.ph-hint {
  font-size: 12.5px;
  color: #999;
  line-height: 1.65;
}

.ph-suggest {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #bbb;
}

.fig-caption {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin-top: 12px;
  padding: 0 2px;
}

/* 6. Abstract
   -------------------------------------------------------------------------- */
.abstract-body {
  max-width: 780px;
}

.abstract-body p {
  font-size: 15.5px;
  line-height: 1.8;
  color: #222;
}

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

/* 7. Method
   -------------------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.mcard {
  background: #f8f9fa;
  border: 1px solid #e6e8ea;
  border-radius: 12px;
  padding: 22px 24px;
  transition: box-shadow 0.18s;
}

.mcard:hover {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}

.mcard-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2563eb;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mcard h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.3;
}

.mcard p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
}

/* 8. Results
   -------------------------------------------------------------------------- */
.results-lead {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  max-width: 780px;
}

/* 9. Resources
   -------------------------------------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rcard {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid #e6e8ea;
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

a.rcard:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-color: #c4c8ce;
  text-decoration: none;
}

.rcard-muted {
  opacity: 0.5;
  cursor: default;
}

.rcard-icon {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #555;
}

.rcard-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
}

.rcard-sub {
  font-size: 11.5px;
  color: #999;
}

/* 10. Citation
   -------------------------------------------------------------------------- */
.cite-intro {
  font-size: 14.5px;
  color: #555;
  margin-bottom: 16px;
}

.bibtex-wrap {
  position: relative;
  border: 1px solid #e0e2e6;
  border-radius: 10px;
  background: #f8f9fa;
  overflow: hidden;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 500;
  background: #fff;
  color: #333;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: inherit;
}

.copy-btn:hover {
  background: #f4f4f5;
}

.copy-btn.copied {
  color: #16a34a;
  border-color: #86efac;
  background: #f0fdf4;
}

#bibtex-block {
  display: block;
  padding: 20px 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #2d2d2d;
  overflow-x: auto;
  white-space: pre;
  background: transparent;
  margin: 0;
  border: none;
}

.bibtex-note {
  margin-top: 11px;
  font-size: 12.5px;
  color: #aaa;
}

/* 11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid #ececec;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: #bbb;
  margin-top: 16px;
}

/* 12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .page-wrap {
    padding: 0 18px;
  }

  .nav-inner {
    padding: 0 18px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 48px 0 36px;
  }

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

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 44px 0;
  }
}

@media (max-width: 500px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 24px;
  }

  .affil-block {
    flex-direction: column;
    gap: 4px;
  }

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

  .btn-row {
    gap: 7px;
  }

  .btn {
    font-size: 13px;
    padding: 7px 14px;
  }
}

/* 13. Result table images
   -------------------------------------------------------------------------- */
.table-figure {
  margin-bottom: 36px;
}

.table-scroll-wrap {
  overflow-x: auto;
}

.table-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
  margin: 0 auto;
  background: #fff;
}

.table-cap {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-top: 10px;
}

.results-lead {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  max-width: 780px;
  margin-bottom: 28px;
}

.ablation-lead {
  font-size: 14.5px;
  color: #555;
  line-height: 1.7;
  max-width: 780px;
  margin-bottom: 24px;
}
