:root {
  --ink: #14213d;
  --ink-soft: #475569;
  --paper: #fffdf8;
  --cream: #f7f3e8;
  --mint: #dff3e8;
  --mint-strong: #117a65;
  --coral: #e9503f;
  --coral-dark: #a82f25;
  --yellow: #f5d867;
  --blue: #dcecff;
  --line: #dce2e8;
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

strong {
  color: inherit;
}

a {
  color: #1769aa;
}

.title,
.publication-title,
.publication-subtitle {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.title.is-2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
}

.eyebrow {
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.section-heading {
  margin: 0 auto 3rem;
  max-width: 860px;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0 auto;
  max-width: 760px;
}

.paper-hero {
  background:
    radial-gradient(circle at 15% 22%, rgba(245, 216, 103, 0.55), transparent 26%),
    radial-gradient(circle at 83% 35%, rgba(223, 243, 232, 0.9), transparent 27%),
    linear-gradient(135deg, #fffdf8 0%, #f5f9ff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.paper-hero::before,
.paper-hero::after {
  border: 2px solid rgba(20, 33, 61, 0.08);
  border-radius: 50%;
  content: "";
  height: 380px;
  position: absolute;
  width: 380px;
}

.paper-hero::before {
  left: -230px;
  top: -120px;
}

.paper-hero::after {
  bottom: -250px;
  right: -150px;
}

.paper-hero .hero-body {
  padding: 1.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.conference-logo {
  display: block;
  height: auto;
  margin: 0 auto 0.4rem;
  max-width: 100%;
  width: 300px;
}

.publication-title {
  font-size: clamp(3.6rem, 10vw, 7.5rem) !important;
  font-weight: 800;
  line-height: 0.92;
  margin-bottom: 1rem !important;
}

.publication-subtitle {
  font-size: clamp(1.35rem, 3.6vw, 2.25rem);
  font-weight: 600;
  margin: 0 auto 2rem;
  max-width: 900px;
}

.spotlight-badge {
  background: var(--yellow);
  border: 1px solid rgba(20, 33, 61, 0.12);
  border-radius: 999px;
  color: var(--ink);
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 auto 1rem;
  padding: 0.45rem 0.9rem;
}

.publication-authors {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.1rem;
  gap: 0.45rem 0.75rem;
  justify-content: center;
}

.publication-authors a {
  color: var(--ink);
  font-weight: 700;
}

.publication-authors a:hover {
  color: var(--coral-dark);
}

.affiliation {
  color: var(--ink-soft);
  margin: 0.35rem 0 1.5rem;
}

.publication-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.publication-links a {
  display: inline-flex;
  transition: transform 160ms ease;
}

.publication-links a:hover {
  transform: translateY(-2px);
}

.publication-links img {
  height: 24px;
}

.paper-overview-video {
  display: block;
  margin: 2.25rem auto 0;
  max-width: 900px;
  position: relative;
  width: 100%;
}

.paper-overview-video img {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(20, 33, 61, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(20, 33, 61, 0.16);
  display: block;
  height: auto;
  max-width: 100%;
  position: static;
  transform: none;
  width: 100%;
}

.hero-thesis {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-arrow {
  align-items: center;
  background: var(--coral);
  border-radius: 100%;
  color: #fff;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.quiz-section {
  background: var(--ink);
  color: #fff;
}

.quiz-section .title,
.quiz-section .section-lead {
  color: #fff;
}

.quiz-section .eyebrow {
  color: var(--yellow);
}

.quiz-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  min-height: 640px;
  overflow: hidden;
}

.quiz-media {
  align-items: center;
  background: linear-gradient(145deg, #e8f4ff, #f8f1d9);
  display: flex;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.video-frame {
  background: #0b1326;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0.65rem;
  position: relative;
  width: 100%;
}

.video-frame img {
  border-radius: 13px;
  display: block;
  height: auto;
  width: 100%;
}

@media (min-width: 901px) {
  .video-frame {
    margin: auto;
    max-width: 340px;
  }
}

.video-label {
  background: rgba(11, 19, 38, 0.87);
  border-radius: 99px;
  bottom: 1.25rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  left: 1.25rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  position: absolute;
  text-transform: uppercase;
}

.quiz-content {
  color: var(--ink);
  padding: clamp(2rem, 5vw, 4rem);
}

.quiz-kicker {
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.quiz-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 1.4rem;
}

.quiz-options {
  display: grid;
  gap: 0.48rem;
}

.quiz-option {
  align-items: flex-start;
  background: #f7f8fa;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.88rem;
  gap: 0.75rem;
  line-height: 1.4;
  padding: 0.7rem 0.85rem;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  width: 100%;
}

.quiz-option span {
  color: var(--coral-dark);
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  padding-top: 0.12rem;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  background: #fff7e7;
  border-color: var(--yellow);
  outline: none;
  transform: translateX(3px);
}

.quiz-result {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.quiz-result[hidden] {
  display: none;
}

.result-icon {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--mint-strong);
  display: inline-flex;
  font-size: 1.8rem;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 4rem;
}

.quiz-result.is-wrong .result-icon {
  background: #ffe7e3;
  color: var(--coral-dark);
}

.result-label {
  color: var(--mint-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.quiz-result.is-wrong .result-label {
  color: var(--coral-dark);
}

.result-message {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.05 !important;
}

.result-explanation {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 620px;
}

.paper-section {
  background: var(--paper);
}

.two-column-copy {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  margin-bottom: 3rem;
}

.copy-block {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.copy-block p + p,
.story-copy p + p {
  margin-top: 1.15rem;
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  display: block;
  height: auto;
  width: 100%;
}

.figure-wide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: clamp(0.5rem, 2vw, 1.1rem);
}

.paper-figure figcaption {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 1rem 0.4rem 0.3rem;
}

.paper-section .container > p + .paper-figure,
.performance-section .container > p + .paper-figure {
  margin-top: 1.5rem;
}

.abstract-section {
  background: var(--cream);
  border-bottom: 1px solid #e8e0cd;
  border-top: 1px solid #e8e0cd;
}

.abstract-copy {
  color: #303c55;
  font-family: Georgia, serif;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.9;
  margin: 2.5rem auto 0;
}

.abstract-copy p + p {
  margin-top: 1.4rem;
}

.stat-strip {
  border-top: 1px solid #d9cfb8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 3.2rem;
  padding-top: 2rem;
}

.stat-strip div {
  align-items: center;
  border-right: 1px solid #d9cfb8;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.stat-strip span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  text-align: center;
  text-transform: uppercase;
}

.figure-story {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.story-copy {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.callout {
  background: var(--mint);
  border-left: 5px solid var(--mint-strong);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  margin-top: 1.8rem;
  padding: 1.15rem 1.25rem;
}

.results-section {
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.results-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(20, 33, 61, 0.08);
  max-height: 760px;
  overflow: auto;
}

.results-table {
  font-size: 0.88rem;
  margin: 0 !important;
  min-width: 920px;
}

.results-table th,
.results-table td {
  border-color: #e7ebef !important;
  padding: 0.72rem 0.78rem !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.results-table th:first-child,
.results-table td:first-child {
  min-width: 250px;
  text-align: left !important;
}

.results-table thead th {
  background: var(--ink);
  border-color: #35415a !important;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.results-table thead tr:nth-child(2) th {
  top: 49px;
}

.results-table tbody tr:hover td {
  background: #fff9e8;
}

.best-row td {
  background: #e8f6ee;
}

.runner-row td {
  background: #edf5ff;
}

.second-best {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.group-row th {
  background: #efe9da !important;
  color: var(--ink) !important;
  font-style: italic;
  letter-spacing: 0.04em;
  position: static !important;
  text-align: center !important;
}

.table-note {
  color: var(--ink-soft);
  font-size: 0.83rem;
  margin: 1rem auto 0;
  max-width: 950px;
  text-align: center;
}

.heatmap-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 1500px;
  overflow: hidden;
  padding: 1rem;
}

.causal-section {
  background: #edf7f2;
}

.causal-intro {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.graph-figure {
  background: #fff;
  border: 1px solid #cce4d8;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.causal-equation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.7rem;
}

.causal-equation span {
  background: var(--ink);
  border-radius: 99px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
}

.method-overview {
  border-top: 1px solid #c8ded3;
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.performance-section {
  background: var(--paper);
}

.performance-heading {
  margin-bottom: 3rem;
}

.performance-figure {
  background: #fff;
}

.bibtex-section {
  background: var(--ink);
  color: #fff;
}

.bibtex-section .title,
.bibtex-section .eyebrow {
  color: #fff;
}

.bibtex-section .eyebrow {
  color: var(--yellow);
}

.bibtex-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.copy-button {
  background: var(--yellow);
  border: 0;
  border-radius: 99px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.75rem 1.15rem;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: #ffe788;
  outline: 3px solid rgba(245, 216, 103, 0.35);
}

.bibtex-code {
  background: #0b1326;
  border: 1px solid #34405a;
  border-radius: 16px;
  color: #e9f0ff;
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-x: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  white-space: pre;
}

.project-footer {
  background: #0b1326;
  color: #d8dfeb;
  padding: 2.5rem 1.5rem;
}

.project-footer strong {
  color: #fff;
}

.footer-note {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.project-footer a {
  color: var(--yellow);
}

@media (max-width: 900px) {
  .quiz-card,
  .figure-story,
  .causal-intro,
  .two-column-copy {
    grid-template-columns: 1fr;
  }

  .quiz-card {
    min-height: 0;
  }

  .quiz-media {
    padding: 1.5rem;
  }

  .video-frame {
    margin: auto;
    max-width: 620px;
  }

  .figure-story--radar .paper-figure {
    margin: auto;
    max-width: 680px;
  }

  .two-column-copy {
    gap: 1rem;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.5rem;
  }

  .stat-strip div:nth-child(even) {
    border-right: 0;
  }

  .stat-strip div:last-child {
    grid-column: 1 / -1;
  }

}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .conference-logo {
    width: 100%;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .title.is-2 {
    font-size: 1.8rem;
  }

  .section-heading {
    max-width: 100%;
  }

  .publication-authors {
    flex-direction: column;
    gap: 0.15rem;
  }

  .publication-authors span[aria-hidden="true"] {
    display: none;
  }

  .hero-thesis {
    align-items: center;
    flex-direction: column;
    gap: 0.45rem;
  }

  .hero-arrow {
    transform: rotate(90deg);
  }

  .quiz-content {
    padding: 1.5rem;
  }

  .quiz-option {
    font-size: 0.82rem;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip div {
    border-bottom: 1px solid #d9cfb8;
    border-right: 0;
    padding: 1rem;
  }

  .stat-strip div:last-child {
    border-bottom: 0;
    grid-column: auto;
  }

  .bibtex-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
