:root {
  --bg: #f5f7fb;
  --bg-warm: #fbfaf7;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: rgba(255, 255, 255, 0.74);
  --panel-3: rgba(248, 250, 252, 0.76);
  --border: rgba(30, 41, 59, 0.11);
  --border-soft: rgba(30, 41, 59, 0.075);
  --text: rgba(10, 18, 32, 0.96);
  --muted: rgba(48, 61, 82, 0.82);
  --muted-2: rgba(86, 99, 119, 0.72);

  --sphere: #0ea5e9;
  --baseline: #ef4444;
  --accent: #3158d4;
  --accent-2: #0f9ac4;
  --accent-soft: rgba(49, 88, 212, 0.10);

  --viz-wire: #0f172a;
  --viz-wire-soft: #64748b;
  --shadow-lg: 0 30px 90px rgba(31, 41, 55, 0.12), 0 8px 26px rgba(31, 41, 55, 0.07);
  --shadow-md: 0 16px 46px rgba(31, 41, 55, 0.09), 0 4px 16px rgba(31, 41, 55, 0.05);
  --shadow-sm: 0 8px 24px rgba(31, 41, 55, 0.065);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(900px 520px at 12% -4%, rgba(49, 88, 212, 0.13), transparent 64%),
    radial-gradient(880px 560px at 90% 8%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(720px 520px at 55% 105%, rgba(245, 158, 11, 0.07), transparent 58%),
    linear-gradient(180deg, var(--bg-warm), var(--bg) 42%, #eef3f9 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.58;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 76%);
}

a {
  color: rgba(49, 88, 212, 0.96);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: rgba(35, 70, 182, 0.98);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-container {
  max-width: 1120px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 12px;
  padding-bottom: 8px;
}

.top-nav-inner {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.nav-brand {
  font-weight: 760;
  letter-spacing: -0.02em;
  color: rgba(10, 18, 32, 0.94);
}

.nav-pill {
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(48, 61, 82, 0.88);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-pill:hover {
  text-decoration: none;
  color: rgba(12, 22, 40, 0.94);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.hero-card,
.section-card,
.viz-card,
.figure-card,
.bibtex {
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.hero-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.80) 48%, rgba(255, 255, 255, 0.70)),
    radial-gradient(460px 240px at 86% 18%, rgba(14, 165, 233, 0.12), transparent 68%);
  padding: 28px 28px 21px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), transparent);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -150px;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(49, 88, 212, 0.13), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: rgba(49, 88, 212, 0.78);
  margin-bottom: 10px;
  font-weight: 720;
}

.display-title {
  max-width: 820px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
  color: rgba(6, 14, 28, 0.97);
}

.hero-subtitle {
  margin-top: 15px;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.hero-links {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.control-primary {
  border: 0;
  background: linear-gradient(135deg, var(--paper-blue), var(--paper-purple));
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.btn.control-primary:hover {
  border-color: rgba(38, 72, 193, 0.92);
  background: linear-gradient(135deg, #3158d4, #6d28d9);
  transform: translateY(-1px);
}

.btn.control-secondary {
  color: rgba(51, 65, 85, 0.86);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(226, 232, 240, 0.95);
}

.btn.control-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow-sm);
}

.task-controls .btn {
  border-radius: 999px;
  padding-inline: 13px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.hero-metrics {
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(248, 250, 252, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 18px 42px rgba(31, 41, 55, 0.07);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-eyebrow {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(86, 99, 119, 0.74);
  font-weight: 760;
}

.metric-card {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.metric-value {
  color: rgba(9, 21, 43, 0.95);
  font-size: 27px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.metric-label,
.metric-note {
  color: rgba(72, 86, 108, 0.78);
  font-size: 12px;
  line-height: 1.3;
}

.metric-note {
  grid-column: 1 / -1;
  padding: 0 3px 2px;
}

.hero-authors {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.hero-authors .authors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.hero-authors .affiliations {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 13px;
}

.section-card {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.67);
  padding: 22px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.section-card:target {
  outline: 3px solid rgba(49, 88, 212, 0.10);
  outline-offset: 4px;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  color: rgba(8, 18, 36, 0.94);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-text {
  color: var(--muted);
  margin-bottom: 12px;
}

.tldr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 17px;
}

.tldr-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border-soft);
  border-radius: 17px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.56);
}

.tldr-k {
  font-size: 12px;
  font-weight: 780;
  color: rgba(49, 88, 212, 0.82);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.tldr-v {
  color: rgba(48, 61, 82, 0.88);
  font-size: 13px;
  line-height: 1.38;
}

.subsection-title {
  font-weight: 760;
  color: rgba(15, 23, 42, 0.88);
  font-size: 14px;
  letter-spacing: -0.01em;
  margin: 8px 0 10px 0;
}

.pill-hint {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 41, 59, 0.09);
  color: rgba(64, 78, 101, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.viz-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.60);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 16px 44px rgba(31, 41, 55, 0.08);
}

.viz-toolbar {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.54));
  flex-wrap: wrap;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 210px;
}

.control-grow {
  flex: 1;
  min-width: min(700px, 100%);
}

.control-label {
  color: rgba(86, 99, 119, 0.74);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-controls {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: nowrap;
}

.task-slider {
  flex: 1 1 520px;
  min-width: 360px;
  accent-color: var(--accent);
}

.task-readout {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}

.task-badge {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(49, 88, 212, 0.08);
  border: 1px solid rgba(49, 88, 212, 0.12);
  color: rgba(35, 70, 182, 0.88);
}

.task-name {
  font-weight: 720;
  color: rgba(15, 23, 42, 0.90);
}

.viz-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.viz-canvas {
  position: relative;
  min-height: 680px;
  background:
    radial-gradient(900px 520px at 50% 38%, rgba(49, 88, 212, 0.08), transparent 64%),
    radial-gradient(900px 540px at 55% 76%, rgba(14, 165, 233, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(239, 244, 250, 0.91));
}

#sphereCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.viz-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.viz-label {
  position: absolute;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.viz-label.left {
  left: 15px;
}

.viz-label.right {
  right: 15px;
  text-align: right;
}

.viz-label .tag {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.14);
  background: rgba(255, 255, 255, 0.70);
  color: rgba(127, 29, 29, 0.92);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.viz-label .tag.sphere {
  border-color: rgba(14, 165, 233, 0.14);
  color: rgba(12, 74, 110, 0.92);
}

.viz-label .sub {
  font-size: 12px;
  color: rgba(71, 85, 105, 0.82);
}

.viz-label .sub code {
  color: rgba(15, 23, 42, 0.78);
}

.viz-stage-labels {
  position: absolute;
  left: 15px;
  bottom: 15px;
  top: 56px;
  width: 64px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  align-items: center;
  pointer-events: none;
  opacity: 0.9;
}

.viz-stage-labels .stage {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.76);
  color: rgba(15, 23, 42, 0.82);
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.viz-stage-labels .eq {
  font-weight: 760;
  color: rgba(15, 23, 42, 0.90);
}

.viz-stage-labels .txt {
  letter-spacing: 0.01em;
}

.viz-fallback {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.86);
}

.figure-card {
  border: 1px solid rgba(30, 41, 59, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lead-figure {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.figure-title {
  font-weight: 760;
  color: rgba(15, 23, 42, 0.90);
  font-size: 14px;
  margin-bottom: 8px;
}

.figure-lead {
  margin-bottom: 11px;
}

.figure-kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kv {
  color: rgba(71, 85, 105, 0.88);
  font-size: 12px;
  line-height: 1.38;
  border-radius: 14px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.68);
  border: 1px solid rgba(30, 41, 59, 0.055);
}

.kv-k {
  display: block;
  font-weight: 780;
  color: rgba(49, 88, 212, 0.82);
  margin-bottom: 3px;
}

.kv-v {
  color: rgba(71, 85, 105, 0.90);
}

.figure-card img {
  width: 100%;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.88);
}

.figure-caption {
  margin-top: 10px;
  color: rgba(71, 85, 105, 0.82);
  font-size: 12px;
  line-height: 1.44;
}

.figures-heading {
  margin-bottom: 14px;
}

.mechanism-heading {
  margin-bottom: 16px;
}

.viz-subsection-title {
  color: rgba(8, 18, 36, 0.94);
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.viz-subsection-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--paper-blue), var(--paper-purple));
}

.bibtex {
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  padding: 14px;
  color: rgba(15, 23, 42, 0.86);
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.footer {
  opacity: 0.78;
}

code {
  color: rgba(15, 23, 42, 0.86);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 2px 6px;
}

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

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .hero-card,
  .section-card {
    padding: 18px;
    border-radius: 22px;
  }

  .display-title {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .viz-canvas {
    min-height: 520px;
  }
}

/* Reference-inspired academic project page refinement from the local comparison page. */
:root {
  --paper-blue: #2563eb;
  --paper-blue-dark: #1d4ed8;
  --paper-purple: #7c3aed;
  --paper-slate: #1e293b;
  --paper-muted: #64748b;
  --paper-line: #e2e8f0;
  --paper-section: #f8fafc;
  --paper-soft-blue: #eff6ff;
  --paper-soft-purple: #f5f3ff;
}

.page-container {
  max-width: 1040px;
}

.top-nav {
  padding-top: 10px;
}

.top-nav-inner {
  border-color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.nav-brand {
  font-weight: 800;
  color: var(--paper-slate);
}

.hero-card {
  text-align: center;
  padding: 46px 34px 28px;
  border-color: rgba(226, 232, 240, 0.92);
  background:
    radial-gradient(760px 260px at 50% -10%, rgba(37, 99, 235, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(15, 23, 42, 0.045);
}

.hero-card::after {
  right: 10%;
  top: -180px;
  width: 520px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08), transparent 64%);
}

.kicker {
  color: rgba(37, 99, 235, 0.84);
  letter-spacing: 0.105em;
  margin-bottom: 14px;
}

.display-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(34px, 4.35vw, 56px);
  font-weight: 820;
  line-height: 1.11;
  letter-spacing: -0.046em;
  color: #162033;
}

.hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
  font-size: 18px;
  color: rgba(71, 85, 105, 0.92);
}

.hero-links {
  justify-content: center;
}

.hero-metrics {
  max-width: 760px;
  margin: 2px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
}

.metric-eyebrow,
.metric-note {
  text-align: center;
}


.metric-card,
.tldr-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.metric-card:hover,
.tldr-item:hover,
.figure-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.075);
}

.metric-value {
  background: linear-gradient(135deg, var(--paper-blue), var(--paper-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 32px;
}

.hero-authors {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-authors .authors,
.hero-authors .affiliations {
  justify-content: center;
}

.section-card {
  border-color: rgba(226, 232, 240, 0.94);
  background: rgba(255, 255, 255, 0.84);
  padding: 28px;
  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.055);
}

.tldr-card,
.figures-card,
.bibtex-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(248, 250, 252, 0.84));
}

.section-heading-row {
  justify-content: center;
  text-align: center;
}

.section-title {
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 12px;
  font-size: 25px;
  font-weight: 780;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--paper-blue), var(--paper-purple));
}

.section-text {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(71, 85, 105, 0.92);
}

.pill-hint {
  background: rgba(241, 245, 249, 0.86);
  border-color: rgba(226, 232, 240, 0.92);
  color: rgba(71, 85, 105, 0.90);
}

.tldr-grid {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.tldr-item {
  padding: 16px 17px;
}

.tldr-k,
.kv-k {
  color: rgba(37, 99, 235, 0.92);
}

.interactive-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(244, 248, 253, 0.86));
}

.lead-figure {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  border-color: rgba(226, 232, 240, 0.92);
}

.figure-kv {
  gap: 10px;
}

.kv {
  background: rgba(248, 250, 252, 0.88);
  border-color: rgba(226, 232, 240, 0.94);
}

.viz-card {
  border-color: rgba(226, 232, 240, 0.96);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.viz-toolbar {
  background: rgba(248, 250, 252, 0.88);
}

.figure-card {
  border-color: rgba(226, 232, 240, 0.94);
  background: rgba(255, 255, 255, 0.90);
  padding: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.figure-card img {
  box-shadow: none;
}

.figure-caption {
  color: rgba(71, 85, 105, 0.88);
  font-size: 13px;
}

.bibtex {
  background: #f1f5f9;
  border-color: var(--paper-line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.footer {
  text-align: center;
}

@media (max-width: 900px) {
  .display-title {
    font-size: clamp(30px, 6.6vw, 42px);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero-card {
    padding: 30px 18px 22px;
  }

  .display-title {
    font-size: clamp(26px, 8.4vw, 34px);
  }

  .section-card {
    padding: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .lead-figure .kv {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Prominent venue acceptance marker. */
.nav-acceptance {
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(245, 243, 255, 0.92));
  border-color: rgba(37, 99, 235, 0.18);
  font-weight: 760;
}

.acceptance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 18px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22), 0 5px 14px rgba(124, 58, 237, 0.16);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.acceptance-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(254, 243, 199, 0.96);
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 1px 3px rgba(15, 23, 42, 0.16);
}

@media (max-width: 620px) {
  .acceptance-badge {
    padding: 9px 14px;
    font-size: 13px;
  }
}


/* Keep unavailable resources visible but not styled as active calls-to-action. */
.display-title {
  font-size: clamp(31px, 3.55vw, 44px);
  line-height: 1.15;
}

.hero-links {
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.resource-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 660;
  color: rgba(37, 99, 235, 0.94);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 219, 254, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 20px rgba(37, 99, 235, 0.08);
}

a.resource-chip:hover {
  color: rgba(29, 78, 216, 0.98);
  text-decoration: none;
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(147, 197, 253, 0.98);
  transform: translateY(-1px);
}

.resource-chip.pending {
  color: rgba(71, 85, 105, 0.78);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(226, 232, 240, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.resource-chip.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--paper-blue), var(--paper-purple));
  border-color: rgba(37, 99, 235, 0.08);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.resource-icon {
  min-width: 24px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(37, 99, 235, 0.88);
  background: rgba(239, 246, 255, 0.78);
  border: 1px solid rgba(191, 219, 254, 0.78);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.resource-chip.primary .resource-icon {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.60);
}

.resource-state {
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  color: rgba(100, 116, 139, 0.86);
  background: rgba(241, 245, 249, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

@media (max-width: 900px) {
  .display-title {
    font-size: clamp(30px, 6.6vw, 42px);
  }
}

@media (max-width: 620px) {
  .display-title {
    font-size: clamp(26px, 8.4vw, 34px);
  }

  .resource-chip {
    font-size: 12px;
    padding: 7px 10px;
  }
}

@media (max-width: 760px) {
  .task-controls {
    flex-wrap: wrap;
  }

  .task-slider {
    flex-basis: 100%;
    min-width: 180px;
  }
}

/* Sequential experiment story: one result at a time. */
.figure-story {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.story-step {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.story-step-index {
  position: sticky;
  top: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(245, 243, 255, 0.92));
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 820;
  letter-spacing: 0.035em;
}

.story-step-body {
  min-width: 0;
}

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

.performance-stack {
  display: grid;
  gap: 18px;
}

.compact-figure {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ablation-table-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ablation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
  color: rgba(30, 41, 59, 0.88);
  font-size: 13px;
}

.ablation-table th,
.ablation-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.07);
}

.ablation-table th {
  color: rgba(71, 85, 105, 0.74);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 820;
  background: rgba(241, 245, 249, 0.82);
}

.ablation-table td:last-child,
.ablation-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ablation-table tr:last-child td {
  border-bottom: 0;
}

.ablation-table .best-row td {
  color: #1d4ed8;
  font-weight: 820;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.90), rgba(245, 243, 255, 0.68));
}


/* Narrow viewport fallback only; desktop/laptop remains the primary design target. */
@media (max-width: 620px) {
  .page-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .top-nav-inner {
    justify-content: center !important;
    gap: 8px;
    padding: 10px !important;
  }

  .top-nav-inner > .d-flex:first-child {
    width: 100%;
    justify-content: center;
  }

  .top-nav-inner > .d-flex:last-child {
    width: 100%;
    justify-content: center;
    gap: 4px !important;
  }

  .nav-pill {
    font-size: 12px;
    padding: 6px 8px;
  }

  .hero-card {
    padding: 26px 18px 20px;
  }

  .acceptance-badge {
    margin-bottom: 15px;
  }

  .kicker {
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
  }

  .display-title {
    font-size: clamp(24px, 7.3vw, 30px);
    line-height: 1.16;
    letter-spacing: -0.036em;
  }

  .hero-subtitle {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-links {
    margin-top: 17px;
    gap: 7px;
  }

  .resource-chip {
    font-size: 11px;
    padding: 6px 9px;
  }

  .resource-state {
    font-size: 9px;
    padding: 3px 5px;
  }

  .resource-icon {
    min-width: 21px;
    height: 16px;
    font-size: 8px;
  }

  .metric-card {
    padding: 11px 10px;
  }

  .metric-value {
    font-size: 28px;
  }

  .metric-label,
  .metric-note {
    font-size: 11px;
  }
}

/* Opening explanation should read as a concept ladder, not three parallel jargon cards. */
.lead-figure .figure-kv {
  grid-template-columns: 1fr;
}

.lead-figure .kv {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
}

.lead-figure .kv-k {
  margin-bottom: 0;
}

.math-inline-soft {
  opacity: 0.9;
}

@media (max-width: 720px) {
  .story-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-step-index {
    position: static;
    min-width: auto;
    min-height: auto;
    padding: 7px 11px;
    justify-self: start;
  }
}


/* Accessibility and motion polish. */
.nav-pill:focus-visible,
.hero-authors a:focus-visible,
.btn:focus-visible,
.form-check-input:focus-visible,
.form-range:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.08);
}

@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;
  }

  .metric-card:hover,
  .tldr-item:hover,
  .figure-card:hover,
  .nav-pill:hover,
  .btn.control-primary:hover,
  .btn.control-secondary:hover {
    transform: none;
  }
}
