:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --border: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --dark: #0b1220;
  --shadow: 0 12px 28px rgba(2, 6, 23, .08);
  --radius: 14px;
  --max: 1120px;
  --accent: #bb0000;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

.has-text-justified {
  text-align: justify;
}

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

.nav {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.01em;
}

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

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.navlinks a {
  padding: 6px 10px;
  border-radius: 10px;
}

.navlinks a:hover {
  background: var(--soft);
  text-decoration: none;
  color: var(--fg);
}

.hero-wrap {
  background:
    radial-gradient(900px 260px at 15% 0%, rgba(187, 0, 0, .10), transparent 60%),
    radial-gradient(900px 260px at 85% 0%, rgba(187, 0, 0, .07), transparent 60%),
    linear-gradient(180deg, var(--soft), #ffffff 55%);
  border-bottom: 1px solid var(--border);
}

.hero {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 18px 40px;
  text-align: center;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
}

.title {
  margin: 0 auto;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.22;
  font-weight: 700;
  max-width: 980px;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.authors-wrapper {
  margin: 20px auto 0;
  max-width: 980px;
  text-align: center;
}

.authors {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.team-label {
  margin: 14px auto 0;
  color: var(--fg);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
}

.affiliations {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.6;
  text-align: center;
}

.affil-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 18px auto 0;
  flex-wrap: wrap;
}

.affil-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.affil-logo.osu {
  height: 42px;
}

.publication-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(2, 6, 23, .06);
  transition: filter .15s ease, transform .15s ease;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary {
  background: #fff;
  color: var(--dark);
}

.button.secondary:hover {
  color: var(--dark);
  background: var(--soft);
}

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

section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 18px;
  scroll-margin-top: 74px;
}

section.narrow {
  max-width: var(--max);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.section-heading::before {
  content: "";
  width: 68px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

h2 {
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -.2px;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -.2px;
}

.section-intro {
  color: var(--muted);
  max-width: none;
}

section p {
  margin: 0 0 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

figure {
  margin: 0;
}

.figure-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.figure-media {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.paper-fig {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform .35s ease;
}

.figure-media:hover .paper-fig {
  transform: scale(1.02);
}

.overview-figure {
  margin-top: 24px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 550;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.task-grid .card {
  border-left: 3px solid var(--accent);
}

.task-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  text-align: center;
}

.stat-value {
  display: block;
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.crit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.crit-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.crit-list li b {
  color: var(--fg);
}

.crit-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.note {
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, .75);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, .05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.note b {
  color: var(--fg);
}

.leaderboard-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 14px;
}

.leaderboard-header {
  background: var(--dark);
  color: #fff;
  padding: 22px 24px;
}

.leaderboard-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.01em;
}

.leaderboard-header p {
  margin: 0;
  opacity: .95;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.result-panel {
  margin-bottom: 28px;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: #fff;
}

.score-notes {
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.subsection-title {
  margin: 28px 0 10px;
}

.results-note {
  margin-top: 14px;
}

.codeblock {
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
  overflow: auto;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 600;
  color: #0b1220;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 28px 18px;
  color: var(--muted2);
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .navlinks {
    display: none;
  }

  .col-6,
  .col-4 {
    grid-column: span 12;
  }

  .task-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav,
  .hero,
  section,
  .footer-inner {
    max-width: 100%;
  }

  .hero {
    padding-top: 42px;
  }

  .mark {
    font-size: 36px;
  }

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

  .publication-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
  }

  .has-text-justified {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}
