:root {
  --ink: #111827;
  --muted: #586174;
  --blue: #2f5eea;
  --blue-dark: #173a96;
  --cyan: #0aa6c8;
  --green: #12ad76;
  --orange: #ff8c25;
  --paper: #f6f9fe;
  --paper-strong: #edf4ff;
  --line: #d9e2f1;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 55, 100, 0.13);
  --md-shadow-1: 0 1px 2px rgba(31, 55, 100, 0.12), 0 1px 3px rgba(31, 55, 100, 0.08);
  --md-shadow-2: 0 6px 18px rgba(31, 55, 100, 0.12), 0 2px 6px rgba(31, 55, 100, 0.08);
  --md-shadow-3: 0 14px 36px rgba(31, 55, 100, 0.16);
  --hero-bg: #ffffff;
  --card-bg: #ffffff;
  --figure-bg: #f8fafc;
  --table-bg: #ffffff;
  --table-head: #f3f6fb;
  --table-row: #ffffff;
  --table-row-alt: #f8fafc;
  --table-text: #1f2937;
}

[data-theme="dark"] {
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --blue: #8b8cff;
  --blue-dark: #d4d4ff;
  --cyan: #38bdf8;
  --green: #43d796;
  --orange: #ffad5c;
  --paper: #111113;
  --paper-strong: #18181b;
  --line: #303038;
  --white: #09090b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --md-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.32), 0 1px 3px rgba(0, 0, 0, 0.2);
  --md-shadow-2: 0 8px 22px rgba(0, 0, 0, 0.34);
  --md-shadow-3: 0 18px 48px rgba(0, 0, 0, 0.42);
  --hero-bg: #09090b;
  --card-bg: #18181b;
  --figure-bg: #202024;
  --table-bg: #111113;
  --table-head: #1f1f24;
  --table-row: #151518;
  --table-row-alt: #1b1b20;
  --table-text: #f4f4f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 180ms ease, color 180ms ease;
}

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

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

.material-symbols-rounded {
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-size: 1.12rem;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  vertical-align: middle;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 17px 22px;
  border-bottom: 1px solid rgba(217, 226, 241, 0.8);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--blue);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.theme-toggle {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: var(--card-bg);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(40px, 6vw, 78px);
  background: var(--hero-bg);
  text-align: center;
}

.hero > *:not(.hero-bg-animation) {
  position: relative;
  z-index: 2;
}

.hero-bg-animation {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.82;
  pointer-events: none;
}

.hero-bg-animation::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 24%),
    radial-gradient(circle at 18% 72%, color-mix(in srgb, var(--green) 13%, transparent), transparent 18%),
    radial-gradient(circle at 84% 24%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 18%);
}

.hero-bg-animation svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.hero-bg-animation path {
  stroke: color-mix(in srgb, var(--blue) 28%, transparent);
  stroke-width: 2;
  stroke-dasharray: 12 16;
  animation: path-flow 8s linear infinite;
}

.hero-bg-animation path:nth-child(2) {
  stroke: color-mix(in srgb, var(--green) 32%, transparent);
  animation-duration: 10s;
}

.hero-bg-animation path:nth-child(3) {
  stroke: color-mix(in srgb, var(--cyan) 32%, transparent);
  animation-duration: 11s;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed color-mix(in srgb, var(--blue) 24%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: slow-spin 28s linear infinite;
}

.orbit-one {
  width: min(760px, 72vw);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(520px, 52vw);
  aspect-ratio: 1;
  animation-direction: reverse;
  animation-duration: 22s;
}

.bg-token,
.bg-node {
  position: absolute;
  border: 1px solid var(--line);
  box-shadow: var(--md-shadow-1);
}

.bg-token {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--card-bg) 72%, transparent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  animation: float-token 6s ease-in-out infinite;
}

.cad-bg {
  left: 9%;
  top: 36%;
}

.text-bg {
  right: 12%;
  top: 24%;
  animation-delay: 1.1s;
}

.image-bg {
  right: 16%;
  bottom: 27%;
  animation-delay: 2s;
}

.bg-node {
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-node 3.8s ease-in-out infinite;
}

.node-one {
  left: 28%;
  top: 58%;
  background: var(--green);
}

.node-two {
  left: 47%;
  top: 42%;
  animation-delay: 0.6s;
}

.node-three {
  right: 29%;
  top: 32%;
  background: var(--cyan);
  animation-delay: 1.2s;
}

.node-four {
  right: 24%;
  bottom: 31%;
  background: var(--orange);
  animation-delay: 1.8s;
}

@keyframes path-flow {
  to {
    stroke-dashoffset: -140;
  }
}

@keyframes slow-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes float-token {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-node {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.conference,
.section-kicker {
  margin-bottom: 13px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 16px;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: clamp(4.2rem, 10vw, 8.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  max-width: 980px;
  margin: 0 auto 16px;
  color: var(--ink);
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.35vw, 2.15rem);
  font-weight: 700;
  line-height: 1.22;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 920px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
}

.authors a {
  color: var(--blue-dark);
  font-weight: 800;
}

.authors a:hover {
  color: var(--blue);
}

.affiliations,
.author-note {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
}

.author-note {
  margin-bottom: 22px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-bottom: clamp(34px, 6vw, 68px);
}

.resource-links a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--blue-dark);
  background: var(--card-bg);
  box-shadow: var(--md-shadow-1);
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--card-bg));
  box-shadow: var(--md-shadow-2);
  transform: translateY(-2px);
}

.resource-links a::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  content: attr(data-tooltip);
  min-width: max-content;
  padding: 8px 11px;
  border-radius: 8px;
  color: #ffffff;
  background: #202124;
  box-shadow: var(--md-shadow-2);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.resource-links a::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 20;
  content: "";
  border: 6px solid transparent;
  border-top-color: #202124;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 140ms ease;
}

.resource-links a:hover::after,
.resource-links a:hover::before,
.resource-links a:focus-visible::after,
.resource-links a:focus-visible::before {
  opacity: 1;
}

.resource-links a:hover::after,
.resource-links a:focus-visible::after {
  transform: translate(-50%, 0);
}

.contrastive-banner {
  position: relative;
  width: min(1120px, 100%);
  min-height: 260px;
  margin: 0 auto clamp(34px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 34%),
    var(--card-bg);
  box-shadow: var(--md-shadow-3);
}

.banner-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.align-path {
  stroke: color-mix(in srgb, var(--blue) 38%, transparent);
  stroke-width: 3;
  stroke-dasharray: 9 12;
}

.path-cad {
  stroke: color-mix(in srgb, var(--green) 58%, transparent);
}

.path-image {
  stroke: color-mix(in srgb, var(--cyan) 48%, transparent);
}

.banner-node,
.banner-core,
.banner-loss {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  box-shadow: 0 12px 36px rgba(31, 55, 100, 0.08);
}

.banner-node {
  width: 210px;
  padding: 16px;
  text-align: left;
}

.cad-node {
  top: 82px;
  left: 38px;
}

.text-node {
  top: 34px;
  right: 38px;
}

.image-node {
  right: 38px;
  bottom: 34px;
}

.banner-node span,
.banner-loss span {
  display: block;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner-node strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.banner-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 230px;
  min-height: 88px;
  place-items: center;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transform: translate(-50%, -50%);
}

.banner-core span {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.flow-dot {
  position: absolute;
  z-index: 3;
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 18%, transparent);
}

.dot-cad {
  offset-path: path("M180 130 C300 58 390 58 500 130");
  animation: follow-path 3.2s linear infinite;
}

.dot-text {
  background: var(--blue);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--blue) 18%, transparent);
  offset-path: path("M820 62 C690 62 610 78 500 130");
  animation: follow-path 3.2s linear infinite 0.7s;
}

.dot-image {
  background: var(--cyan);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--cyan) 18%, transparent);
  offset-path: path("M820 198 C690 198 610 182 500 130");
  animation: follow-path 3.2s linear infinite 1.35s;
}

.banner-loss {
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 10px;
  padding: 10px;
  transform: translateX(-50%);
}

.banner-loss span {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 10%, var(--card-bg));
  white-space: nowrap;
}

@keyframes follow-path {
  from {
    offset-distance: 0%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  to {
    offset-distance: 100%;
    opacity: 0;
  }
}

.section {
  padding: clamp(66px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

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

.section > h2,
.section > .section-kicker,
.section > .section-copy {
  width: min(1080px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy {
  max-width: 860px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.75;
}

.contribution-grid,
.stats-grid,
.hero-stats {
  display: grid;
  width: min(1120px, 100%);
  margin: 34px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contribution-grid article,
.stats-grid article,
.hero-stats article,
.figure-card,
.table-wrap,
.score-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 12px 36px rgba(31, 55, 100, 0.08);
}

.hero-stats article {
  min-height: 132px;
  padding: 24px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  line-height: 1.45;
}

.contribution-grid article {
  padding: 22px;
}

.contribution-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 1.1rem;
}

.contribution-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.figure-card {
  width: min(1180px, 100%);
  margin: 32px auto 0;
  overflow: hidden;
}

.figure-heading {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--card-bg);
}

.figure-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.figure-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

figure {
  margin: 0;
}

.figure-card figure {
  padding: clamp(14px, 2.4vw, 28px);
  background: var(--figure-bg);
}

.figure-card img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.figure-card:first-of-type img {
  max-height: 460px;
}

.stats-grid {
  margin-bottom: 28px;
}

.stats-grid article {
  min-height: 154px;
  padding: 24px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  line-height: 1.5;
}

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

.results-section .section-kicker {
  color: var(--blue);
}

.results-section .section-kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--blue);
}

.results-section .section-copy {
  color: var(--muted);
}

.result-tabs {
  display: flex;
  width: fit-content;
  margin: 38px auto 34px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(31, 55, 100, 0.08);
}

.tab-button {
  min-width: 132px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 34%, transparent);
}

.tab-panel[hidden] {
  display: none;
}

.table-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 8px;
}

.result-block {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.result-block h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.result-block > p {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.narrow-table {
  width: min(760px, 100%);
  margin-left: 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--table-text);
  background: var(--table-bg);
}

.narrow-table table {
  min-width: 520px;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

th {
  color: var(--ink);
  background: var(--table-head);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--table-text);
  font-size: 0.96rem;
  font-weight: 650;
}

td {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  text-align: center;
}

td:first-child,
th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: inherit;
  text-align: center;
}

th:first-child {
  z-index: 2;
}

tbody tr {
  background: var(--table-row);
}

tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:not(.ours) td:nth-child(3),
tbody tr:not(.ours) td:nth-child(4),
tbody tr:not(.ours) td:nth-child(5) {
  color: var(--blue);
}

tbody tr.ours {
  background: color-mix(in srgb, var(--blue) 13%, var(--table-bg));
}

tbody tr.ours td {
  color: var(--blue-dark);
  font-weight: 800;
}

tbody tr.ours td:first-child {
  color: var(--blue);
}

.results-section .table-wrap {
  border-color: var(--line);
  background: var(--table-bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.score-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 34px auto 0;
  gap: 24px;
}

.score-grid figure {
  overflow: hidden;
  background: var(--figure-bg);
}

.score-method-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 36px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-method-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 12px 36px rgba(31, 55, 100, 0.08);
}

.score-method-grid span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-method-grid h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.score-method-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.score-benchmark {
  margin-top: 34px;
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 36px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-grid article {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--md-shadow-2);
}

.contact-grid h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.contact-grid p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.58;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 7%, var(--card-bg));
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-links a:hover {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 13%, var(--card-bg));
}

.score-visuals {
  display: grid;
  width: min(1120px, 100%);
  margin: 28px auto 0;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.score-visuals figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--figure-bg);
  box-shadow: 0 12px 36px rgba(31, 55, 100, 0.08);
}

.score-visuals img {
  width: 100%;
}

.explained-figure figcaption {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--card-bg);
  font-size: 0.98rem;
  line-height: 1.65;
}

.explained-figure figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.applications-section {
  background:
    linear-gradient(180deg, var(--white), var(--paper-strong));
}

.application-slides {
  display: grid;
  width: min(1120px, 100%);
  margin: 36px auto 0;
  gap: 20px;
}

.application-slide {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 16px 48px rgba(31, 55, 100, 0.09);
}

.slide-index {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.application-slide h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
}

.application-slide p {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.application-slide ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.experiment-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--figure-bg);
}

.experiment-panel > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.experiment-panel p {
  margin-bottom: 14px;
  font-size: 0.96rem;
  line-height: 1.6;
}

.experiment-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experiment-metrics strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 12%, var(--card-bg));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.mini-flow,
.class-pills,
.score-meter {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--figure-bg);
}

.mini-flow span,
.class-pills span,
.score-meter span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--blue) 12%, var(--card-bg));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.mini-flow i {
  width: 2px;
  height: 28px;
  margin: 0 auto;
  background: var(--green);
}

.class-pills {
  grid-template-columns: 1fr 1fr;
}

.score-meter {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.score-meter strong {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.55rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer span:first-child {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 1050px) {
  .site-header {
    justify-content: space-between;
  }

  .contribution-grid,
  .stats-grid,
  .hero-stats,
  .score-method-grid,
  .score-visuals,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contrastive-banner {
    min-height: 430px;
  }

  .cad-node,
  .text-node,
  .image-node,
  .banner-core,
  .banner-loss {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 14px auto;
  }

  .banner-lines,
  .flow-dot {
    display: none;
  }

  .banner-loss {
    width: fit-content;
  }

  .application-slide {
    grid-template-columns: 58px 1fr;
  }

  .mini-flow,
  .class-pills,
  .score-meter {
    grid-column: 2;
  }
}

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

  .hero {
    padding-top: 46px;
  }

  .contribution-grid,
  .stats-grid,
  .hero-stats,
  .score-method-grid,
  .score-visuals,
  .contact-grid,
  .application-slide {
    grid-template-columns: 1fr;
  }

  .mini-flow,
  .class-pills,
  .score-meter {
    grid-column: auto;
  }

  .banner-loss {
    flex-direction: column;
    width: calc(100% - 32px);
  }

  .result-tabs {
    width: 100%;
    border-radius: 8px;
  }

  .tab-button {
    min-width: 0;
    flex: 1;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
