* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: "adobe-garamond-pro", serif;
  background: #fff;
  color: #000;
}

.page {
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ── Title ── */
.title {
  text-align: center;
  font-family: "trajan-pro-3";
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  white-space: nowrap;
}

/* ── Authors ── */
.authors {
  text-align: center;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.8rem;
  line-height: 2.2;
  margin-bottom: 1rem;
}

.authors a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.authors a:hover {
  background: #000;
  color: #fff;
}

/* ── Affiliations ── */
.affiliations {
  text-align: center;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.6rem;
}

/* ── Equal contribution note ── */
.equal-note {
  text-align: center;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.25rem;
  color: #555;
  margin-top: 0.4rem;
}

/* ── Buttons ── */
.buttons {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 2.2rem;
  border: 1.5px solid #000;
  font-family: "trajan-pro-3", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}

.btn:hover {
  background: #000;
  color: #fff;
}

/* ── Interactive Section ── */
.interactive-section {
  margin: 5rem auto 0;
  padding: 0 2rem;
}

.section-heading {
  text-align: center;
  font-family: "trajan-pro-3", serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.section-text {
  text-align: justify;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.7rem;
  line-height: 1.7;
  max-width: 1500px;
  margin: 0 auto 2.5rem;
  color: #333;
}

.hl {
  background: #e8e8e8;
  color: #111;
  padding: 0.05em 0.3em;
  margin: 0 0.04em;
}

.viz-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.viz-panel {
  text-align: center;
}

.viz-title {
  font-family: "trajan-pro-3", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.viz-panel canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.4rem;
}

.slider-end {
  font-family: "trajan-pro-3", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.slider-caption {
  text-align: center;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #888;
}

#curvatureSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 480px;
  height: 2px;
  background: #000;
  outline: none;
  cursor: pointer;
}

#curvatureSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

#curvatureSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* ── Method Section ── */
.method-section {
  margin: 5rem auto 0;
  padding: 0 2rem;
}

.method-figure {
  text-align: center;
  margin: 0 auto;
}

.method-figure img {
  display: block;
  max-width: 100%;
  width: 1450px;
  margin: 0 auto;
}

.method-labels {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto 0.8rem;
  padding: 0;
}

.method-label {
  flex: 1;
  text-align: center;
  font-family: "trajan-pro-3", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}

.figure-note {
  text-align: center;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.451rem;
  font-style: italic;
  color: #888;
  margin-top: 0.8rem;
}

/* ── Results Section ── */
.results-section {
  margin: 5rem auto 0;
  padding: 0 2rem;
}

.results-figure {
  text-align: center;
  margin: 0 auto;
}

.results-figure img {
  display: block;
  max-width: 100%;
  width: 1500px;
  margin: 0 auto;
}

.results-labels {
  display: flex;
  justify-content: space-between;
  gap: 0;
  max-width: 1500px;
  margin: 0 auto 0.8rem;
  padding: 0;
}

.results-label {
  flex: 1;
  text-align: center;
  font-family: "trajan-pro-3", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

/* ── Benchmarks Section ── */
.benchmarks-section {
  margin: 5rem auto 0;
  padding: 0 2rem;
}

.tables-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  margin: 0 auto 3rem;
  max-width: 1600px;
}

.bench-table {
  flex: 1;
  max-width: 480px;
}

.bench-caption {
  font-family: "trajan-pro-3", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.8rem;
  color: #000;
}

.bench-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: "adobe-garamond-pro", serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

.bench-table thead th {
  border-bottom: 2px solid #000;
  padding: 0.3rem 0.6rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bench-table thead th:nth-child(2),
.bench-table thead th:nth-child(3) {
  text-align: right;
}

.bench-table tbody td {
  padding: 0.2rem 0.6rem;
  border-bottom: 1px solid #eee;
}

.bench-table tbody td:nth-child(2),
.bench-table tbody td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bench-table .group-header td {
  padding-top: 0.6rem;
  font-weight: 700;
  font-style: italic;
  border-bottom: 1px solid #ccc;
  font-size: 1rem;
}

.bench-table .ours td {
  background: #e8e8e8;
  border-bottom: 2px solid #000;
}

.samples-figure {
  text-align: center;
  margin: 0 auto;
}

.samples-figure img {
  display: block;
  max-width: 100%;
  width: 1500px;
  margin: 0 auto;
}

/* ── Citation Section ── */
.cite-section {
  margin: 5rem auto 4rem;
  padding: 0 2rem;
}

.bibtex {
  max-width: 1400px;
  margin: 0 auto;
  background: #f5f5f5;
  border-left: 4px solid #000;
  padding: 2.5rem 3rem;
  overflow-x: auto;
}

.bibtex code {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #222;
  white-space: pre;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1100px) {
  .title {
    font-size: 2rem;
    white-space: normal;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .section-text {
    font-size: 1.3rem;
  }
}

/* ── Responsive: Phone ── */
@media (max-width: 700px) {
  .page {
    padding: 2rem 1rem;
  }

  .title {
    font-size: 1.3rem;
    white-space: normal;
    letter-spacing: 0.02em;
  }

  .authors {
    font-size: 1rem;
    line-height: 1.8;
  }

  .affiliations {
    font-size: 0.95rem;
  }

  .equal-note {
    font-size: 0.9rem;
  }

  .buttons {
    gap: 0.8rem;
  }

  .btn {
    padding: 0.4rem 1.4rem;
    font-size: 0.8rem;
  }

  .section-heading {
    font-size: 1.2rem;
    letter-spacing: 0.04em;
  }

  .section-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hl {
    padding: 0.02em 0.15em;
  }

  .interactive-section,
  .method-section,
  .results-section,
  .benchmarks-section,
  .cite-section {
    margin-top: 3rem;
    padding: 0 0.8rem;
  }

  .viz-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .viz-title {
    font-size: 0.9rem;
  }

  .slider-row {
    gap: 0.6rem;
  }

  .slider-end {
    font-size: 0.8rem;
  }

  .slider-caption {
    font-size: 0.95rem;
  }

  #curvatureSlider {
    width: 180px;
  }

  .method-labels {
    padding: 0;
    margin-bottom: 0.5rem;
  }

  .method-label {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .figure-note {
    font-size: 0.9rem;
  }

  .results-labels {
    max-width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
  }

  .results-label {
    font-size: 0.65rem;
    letter-spacing: 0.03em;
  }

  .tables-row {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .bench-table {
    max-width: 100%;
  }

  .bench-caption {
    font-size: 0.95rem;
  }

  .bench-table table {
    font-size: 0.9rem;
  }

  .bench-table thead th {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }

  .bench-table tbody td {
    padding: 0.15rem 0.4rem;
  }

  .samples-figure img {
    width: 100%;
  }

  .bibtex {
    max-width: 100%;
    padding: 1rem 1rem;
  }

  .bibtex code {
    font-size: 0.7rem;
    line-height: 1.6;
  }
}
