.mobile-full {
  width: 100%;
  max-width: 100%;
}
:root {
  --bg: 222 248 255;
  --ink: 18 29 43;
  --teal: 248 113 113;
  --cyan: 251 113 133;
  --glass-bg: 255 255 255 / 0.55;
  --glass-stroke: 255 255 255 / 0.35;
  --shadow: 2px 8px 26px rgba(9, 38, 62, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: rgb(var(--ink));
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0 0 12px; letter-spacing: -0.02em; }
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.main-shell {
  width: min(1280px, 96vw);
  margin: 0 auto;
}
.section.narrow { max-width: min(900px, 90vw); }

.abstract-card {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.abstract-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  font-weight: 400;
}
.abstract-card em {
  font-style: italic;
  color: #2563eb;
}
.abstract-card strong {
  color: #111;
}

.main-shell { width: min(1280px, 95vw); margin: 0 auto; }
.section { padding: 96px 0; position: relative; font-size: 20px; }
.section h2 { font-size: 32px; font-weight: 800; text-align: center; }
.section.container::before {
  content: ""; position: absolute; top: 0; left: 24px; width: calc(100% - 48px); height: 1px;
  background: rgba(15, 23, 42, 0.08);
}
.section .section-head p { color: #556; opacity: .8; text-align: center; margin-bottom: 32px; }

.qa-text {
  margin: 0;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  font-weight: 400;
  letter-spacing: 0;
}
.qa-text + .qa-text { margin-top: 12px; }
.qa-text strong { color: #111; }

@media (min-width: 1280px) {
  .container {
    width: min(1100px, 60vw);
    max-width: min(1100px, 60vw);
  }
  .main-shell { width: min(1280px, 70vw); }
  .section.narrow { max-width: calc(min(1100px, 60vw) * 0.85); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(var(--ink), .08);
  background: rgba(255,255,255,.6); backdrop-filter: blur(8px);
  color: rgb(var(--ink)); text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow); transition: all .3s cubic-bezier(.2,.8,.2,1);
  font-size: 18px; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(9, 38, 62, 0.25); }
.btn.primary { background: linear-gradient(135deg, rgb(var(--teal)) 0%, rgb(var(--cyan)) 100%); color: white; border-color: transparent; }
.btn-arxiv { background: linear-gradient(135deg, #f9a8d4, #fb7185); color: #fff; border-color: transparent; }
.btn-code { background: linear-gradient(135deg, #475569, #0f172a); color: #f8fafc; border-color: transparent; }
.btn-hf-model, .btn-hf-data { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; border-color: transparent; }

/* Glass Card */
.glass {
  background: rgba(var(--glass-bg));
  border: 1px solid rgb(var(--glass-stroke));
  box-shadow: var(--shadow); backdrop-filter: saturate(180%) blur(14px);
  border-radius: var(--radius);
}

/* Sidebar */
.sidebar {
  position: fixed; left: 20px; top: 76px; bottom: 20px; width: 240px; z-index: 40;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
body.sidebar-collapsed .sidebar { transform: translateX(-280px); }

.sidebar-inner { height: 100%; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.brand { font-weight: 900; font-size: 25px; }
.toc { display: flex; flex-direction: column; gap: 8px; }
.toc a { padding: 10px 12px; border-radius: 10px; color: rgb(var(--ink)); text-decoration: none; opacity: .8; transition: all .3s; }
.toc a:hover { background: rgba(255,255,255,.6); transform: translateX(2px); }
.toc a.active { background: linear-gradient(135deg, rgba(var(--teal), .15), rgba(var(--cyan), .15)); opacity: 1; font-weight: 700; }

.sidebar-toggle {
  position: fixed; left: 24px; top: 24px; z-index: 45; width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer; box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgb(var(--cyan)), rgb(var(--teal)));
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sidebar-toggle:active { transform: translateY(1px) scale(.98); }
.sidebar-toggle .arrow {
  width: 12px; height: 12px; border-right: 3px solid #fff; border-top: 3px solid #fff;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  transform: translateX(-2px) rotate(45deg);
}
.sidebar-toggle[aria-expanded="true"] .arrow {
  transform: translateX(2px) rotate(225deg);
}

/* Back to Top */
.back-to-top {
  position: fixed; right: 32px; bottom: 32px; z-index: 50; width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); color: white;
  background: linear-gradient(145deg, rgb(var(--cyan)), rgb(var(--teal)));
  box-shadow: 0 4px 14px rgba(248, 113, 113, 0.4);
  opacity: 0; transform: translateY(16px);
  pointer-events: none; transition: all .35s cubic-bezier(.2,.8,.2,1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(248, 113, 113, 0.5); }
.back-to-top svg { width: 24px; height: 24px; }

/* Hero Section */
.hero { min-height: 86vh; display: grid; place-items: center; padding: 60px 0 96px; }
.hero-inner { position: relative; text-align: center; width: 100%; max-width: min(1100px, 60vw); padding: 24px; }
.title { font-size: clamp(27px, 5vw, 41px); font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.title-highlight {
  display: inline-block;
  background: linear-gradient(120deg, #f87171, #fb7185, #f9a8d4, #f87171);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleGradient 8s linear infinite;
}
@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.author-block {
  margin-top: 18px;
  color: #111;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}
.author-list { margin: 0 0 12px; }
.author-link {
  color: #111;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.author-link:hover { opacity: 0.85; }
.affiliation { margin: 2px 0; color: #111; }
.affiliation:not(:last-child) { font-weight: 500; }
.affiliation.note { font-style: italic; color: #111; margin-top: 6px; }
.meta { margin-top: 18px; color: #4a5568; }
.cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.teaser-figure {
  background: transparent;
  box-shadow: none;
  border: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.teaser-image {
  width: 90%;
  max-width: 1100px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
  border-radius: 24px;
}
.teaser-image:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

/* Results Figure */
.results-figure {
  margin: 32px auto 0;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}
.results-image {
  width: 100%;
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
}
.results-image:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.2);
}

/* Experiment Results */
.exp-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  grid-template-columns: 1fr;
}
.exp-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,0.06);
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.35), transparent 28%),
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,241,0.95));
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
}
.exp-card::after {
  content: "";
  position: absolute;
  top: -64px;
  right: -56px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.65), rgba(255,255,255,0));
  pointer-events: none;
}
.exp-card > * { position: relative; z-index: 1; }
.exp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.exp-card-head h3 { margin: 10px 0 0; font-size: clamp(22px, 3vw, 30px); }
.exp-card-head-chart { align-items: center; }
.exp-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(251, 191, 36, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exp-card-lead { margin: 0; max-width: 640px; color: #475569; font-size: 16px; line-height: 1.7; }
.exp-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.exp-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 8px 20px rgba(15,23,42,0.05);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.exp-chip-sky { background: linear-gradient(135deg, rgba(224, 242, 254, 0.94), rgba(255,255,255,0.98)); }
.exp-chip-lime { background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255,255,255,0.98)); }
.exp-chip-peach { background: linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(255,255,255,0.98)); }

/* Table Styles */
.exp-table-wrap {
  position: relative;
  max-width: 100%;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.24);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.exp-table-wrap::-webkit-scrollbar { height: 10px; }
.exp-table-wrap::-webkit-scrollbar-track { background: rgba(241,245,249,0.8); }
.exp-table-wrap::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.55); border-radius: 999px; }
.exp-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.5;
}
.exp-table th, .exp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226,232,240,0.92);
  white-space: nowrap;
  text-align: center;
}
.exp-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255,255,255,0.98);
  color: #1e293b;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.exp-label-col {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 220px;
  text-align: left;
  background: rgba(255,255,255,0.99);
  box-shadow: 1px 0 0 rgba(226,232,240,0.95);
}
.exp-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  background: rgba(255,255,255,0.96);
  color: #0f172a;
  font-weight: 800;
  box-shadow: 1px 0 0 rgba(226,232,240,0.95);
}
.exp-row-title th {
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #1f2937;
  background: #fff;
  border-top: 1px solid rgba(226,232,240,0.95);
}
.exp-muted-row td, .exp-muted-row .exp-row-label { background: rgba(248,250,252,0.96); color: #64748b; }
.exp-baseline-row td, .exp-baseline-row .exp-row-label { background: rgba(239,246,255,0.92); }
.exp-highlight-row td, .exp-highlight-row .exp-row-label { background: rgba(255,251,235,0.97); }
.exp-highlight-row-strong td, .exp-highlight-row-strong .exp-row-label { background: rgba(255,251,235,0.97); }
.exp-row-divider td, .exp-row-divider .exp-row-label { border-top: 1px solid rgba(203,213,225,0.92); }
.exp-delta-row td, .exp-delta-row .exp-row-label { background: rgba(247,254,231,0.92); color: #0f9f19; font-weight: 800; }
.exp-delta-row .exp-row-label { color: #14532d; }
.exp-delta-row .negative { color: #dc2626; }
.exp-neutral-delta { color: #64748b !important; }
.exp-token-on { color: #0f766e; font-weight: 900; }
.exp-token-empty { color: #cbd5e1; }
.best { color: #111827; font-weight: 900; }
.exp-caption { margin: 16px 0 0; color: #1f2937; font-size: 15px; line-height: 1.65; }
.exp-caption strong { color: #0f172a; }

/* Chart Styles */
.exp-card-chart .exp-card-head { align-items: flex-start; }
.exp-card-chart .exp-card-head h3 { font-size: clamp(28px, 4vw, 38px); }
.exp-card-chart .exp-chip-row { margin: 14px 0 22px; }
.exp-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-legend-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(148,163,184,0.2);
  color: #334155; font-size: 12px; font-weight: 800;
}
.exp-legend-item::before {
  content: ""; display: block; width: 16px; height: 16px;
  border-radius: 5px; border: 1px solid rgba(15,23,42,0.16);
}
.exp-legend-baseline::before { background: repeating-linear-gradient(135deg, rgba(71,85,105,0.55) 0 6px, rgba(191,219,254,0.9) 6px 12px); }
.exp-legend-ours::before { background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%); }
.exp-chart-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px 16px 10px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(226,232,240,0.88);
}
.exp-average-chart, .exp-mini-chart { padding: 0; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.exp-average-title, .exp-mini-title {
  margin: 0 0 12px; color: #0f172a; font-weight: 900;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  text-align: center; justify-content: center;
}
.exp-average-title { font-size: 19px; }
.exp-mini-title {
  min-height: 34px; font-size: 14px; line-height: 1.15;
  display: flex; align-items: flex-end;
}
.exp-mini-title-sub { display: inline-block; margin-left: 4px; font-size: 11px; font-style: italic; color: #64748b; }
.exp-average-stage, .exp-mini-stage { display: grid; gap: 10px; align-items: stretch; }
.exp-average-stage { grid-template-columns: 28px minmax(0, 1fr); min-height: 468px; }
.exp-mini-stage { grid-template-columns: 28px minmax(0, 1fr); min-height: 176px; }
.exp-mini-axis {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 4px 0 2px; color: #64748b; font-size: 12px;
  line-height: 1; text-align: right; font-variant-numeric: tabular-nums;
}
.exp-mini-axis-wide { font-size: 13px; }
.exp-mini-stage .exp-mini-axis span {
  display: inline-block; white-space: nowrap;
  transform: rotate(-28deg); transform-origin: 100% 50%;
}
.exp-average-bars, .exp-mini-bars {
  position: relative; display: flex; align-items: flex-end;
  justify-content: center; gap: 14px; height: 100%;
  padding: 12px 10px 2px;
  border-left: 2px solid rgba(148,163,184,0.45);
  border-bottom: 2px solid rgba(148,163,184,0.45);
  background-image: linear-gradient(to top, rgba(148,163,184,0.1) 1px, transparent 1px);
  background-size: 100% 25%;
}
.exp-average-bars {
  gap: 12px; justify-content: flex-start;
  overflow: visible; padding: 12px 4px 0 10px; border-bottom: none;
}
.exp-average-bars::after {
  content: ""; position: absolute; left: -2px; right: 0; bottom: 24px;
  height: 2px; background: rgba(148,163,184,0.45);
}
.exp-bar-group, .exp-mini-bar-group {
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; height: 100%;
}
.exp-bar-group { flex: 0 0 52px; }
.exp-mini-bar-group { flex: 0 0 34px; }
.exp-average-bars .exp-bar-group { position: relative; padding-bottom: 30px; }
.exp-bar-value, .exp-mini-value {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px; margin-bottom: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
  color: #0f172a; font-weight: 900; line-height: 1;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.exp-bar-value { font-size: 14px; }
.exp-mini-value { font-size: 10px; letter-spacing: -0.01em; }
.exp-bar-value.is-better, .exp-mini-value.is-better {
  box-shadow: 0 0 0 1px rgba(251,191,36,0.14), 0 0 12px rgba(251,191,36,0.22), 0 4px 10px rgba(15,23,42,0.08);
}
.exp-bar-value.is-lifted, .exp-mini-value.is-lifted { margin-bottom: 16px; }
.exp-bar, .exp-mini-bar {
  position: relative; overflow: hidden; width: 100%;
  height: var(--bar-height); min-height: 18px;
  border-radius: 14px 14px 5px 5px;
  border: 1px solid rgba(15,23,42,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 10px rgba(15,23,42,0.08);
  transform-origin: bottom;
  animation: expBarGrow 0.8s cubic-bezier(.2,.8,.2,1) both;
}
.exp-bar { max-width: 52px; }
.exp-mini-bar { max-width: 20px; }
.exp-bar::after, .exp-mini-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 42%);
  pointer-events: none;
}
.exp-bar-baseline { background: repeating-linear-gradient(135deg, rgba(71,85,105,0.55) 0 6px, rgba(191,219,254,0.9) 6px 12px); }
.exp-bar-ours { background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%); }
.exp-bar-tag { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.exp-average-bars .exp-bar-tag {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%); margin-top: 0; white-space: nowrap;
}
.exp-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}
.exp-mini-chart { min-width: 0; }
@keyframes expBarGrow {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Method Section */
.method-intro { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.method-visual {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 32px; padding: 24px;
}
.method-visual-image {
  width: 100%; display: block; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.15);
}
.method-visual-note {
  background: rgba(248,250,255,0.95);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px; padding: 18px;
  font-size: 16px; line-height: 1.7; color: #0f172a;
}
.method-visual-note strong { color: #111; }
.method-visual-note em { color: #2563eb; font-style: italic; }
.method-experience {
  padding: 32px; display: flex; flex-direction: column; gap: 24px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(var(--ink), .05);
}
.method-hint {
  text-align: center; font-size: 16px; line-height: 1.7;
  font-weight: 400; color: #0f172a; letter-spacing: 0;
  max-width: 760px; margin: 0 auto; font-family: inherit;
}
.method-track { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.method-node {
  border: none; background: transparent; color: rgb(var(--ink));
  padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; cursor: pointer;
  transition: all .3s; opacity: 0.6;
}
.method-node-dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; transition: all .3s; }
.method-node:hover { opacity: 1; transform: translateY(-1px); }
.method-node.active { opacity: 1; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.method-node.active .method-node-dot { background: rgb(var(--teal)); transform: scale(1.2); }
.method-detail {
  background: rgba(255,255,255,.92); border-radius: 12px; padding: 28px;
  min-height: 200px;
}
.method-content { transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateY(5px); }
.method-content.fade-in { opacity: 1; transform: translateY(0); }
.method-detail-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: #6b7280; margin: 0; }
.method-detail h3 { margin: 8px 0; font-size: 28px; }
.method-detail p, .method-detail ul, .method-detail li { font-size: 16px; line-height: 1.7; color: #0f172a; font-weight: 400; }
.method-detail p { margin: 0 0 12px; }
.method-detail ul { margin: 0; padding-left: 24px; }
.method-detail li + li { margin-top: 4px; }

/* Visualization Section */
.variant-picker-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
.variant-picker {
  background: rgba(255,255,255,0.5); padding: 6px; border-radius: 999px;
  display: inline-flex; gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.chip {
  border: none; padding: 8px 24px; border-radius: 999px; background: transparent;
  cursor: pointer; font-weight: 600; font-size: 16px; color: #64748b;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.chip:hover { color: rgb(var(--ink)); background: rgba(255,255,255,0.5); }
.chip[aria-selected="true"] {
  color: white;
  background: linear-gradient(135deg, rgb(var(--teal)), rgb(var(--cyan)));
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
  transform: scale(1.05);
}
.anchor-lab { padding: 32px; display: flex; flex-direction: column; gap: 32px; background: rgba(248,250,255,.85); }
.anchor-panels-container { position: relative; min-height: 300px; }
.vc-panel { display: none; opacity: 0; transition: opacity 0.4s ease; }
.vc-panel.visible { display: block; opacity: 1; animation: fadeInPanel 0.5s ease forwards; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.variant-row {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 32px; align-items: center;
}
.variant-row-split { grid-template-columns: 0.5fr 1.5fr; gap: 24px; align-items: center; }
.variant-visual { margin: 0; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.variant-image { width: 100%; display: block; height: auto; }
.variant-copy { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.variant-copy-split { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.qa-block-wide { margin-top: 20px; width: 100%; }

/* QA Block Styling */
.qa-block {
  padding: 18px 20px; border-radius: 12px; background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05); margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.qa-label { font-size: 16px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.qa-label-question { color: #2563eb; }
.qa-label-answer { color: #ea580c; }
.question-block .qa-text, .answer-block .qa-text, #resultsAnswer .qa-text { font-size: 16px; line-height: 1.7; color: #0f172a; font-weight: 400; }
.qa-text-strong { color: #0f172a; }
.tag, .token { display: inline-block; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 15px; margin: 0 2px; }
.tag-think { background: #fef9c3; color: #854d0e; }
.tag-answer { background: #dcfce7; color: #166534; }
.token { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.tag-visual-token { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }

/* Image Comparison Slider */
.anchor-playground { padding: 24px; background: white; border-radius: 12px; }
.anchor-playground-head { text-align: center; margin-bottom: 24px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.compare-grid[data-mode="dual"] [data-slot="tertiary"] { display: none; }
.compare-grid[data-mode="triple"] { grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 20px; }
.compare-grid[data-mode="triple"] [data-slot="tertiary"] { display: block; }
.compare-grid[data-mode="triple"] .compare-container { max-width: 280px; margin: 0 auto; }
.compare-wrap { position: relative; }
.compare-container {
  position: relative; width: 100%;
  border-radius: 12px; overflow: hidden;
  cursor: default; user-select: none; touch-action: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.compare-container img {
  display: block; width: 100%; height: auto;
  max-height: 400px; object-fit: cover;
  pointer-events: none;
}
.img-back { width: 100%; }
.img-front-wrapper {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.img-front { width: 100%; height: 100%; object-fit: cover; }
.label-badge {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: white; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  pointer-events: none; z-index: 2;
}
.label-badge.original { left: auto; right: 12px; }
.label-badge.edited { left: 12px; right: auto; }
.handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px; pointer-events: auto; z-index: 10;
  will-change: left; cursor: ew-resize;
}
.handle-line {
  position: absolute; left: -1px; width: 2px; height: 100%;
  background: white; box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.handle-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: white; color: rgb(var(--teal));
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; pointer-events: auto;
}
.handle-circle svg { width: 20px; height: 20px; }

/* Gallery / More Results */
.results-module { padding: 32px 64px 48px; position: relative; }
.results-stage {
  overflow: hidden; padding: 20px 0;
  perspective: 1000px; min-height: 280px;
  display: flex; align-items: center;
}
.results-module::before {
  content: ''; position: absolute; top: 120px; left: 0;
  width: 100%; height: 0; pointer-events: none;
}
.results-track {
  display: flex; align-items: center; gap: 32px;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
  will-change: transform; position: relative;
}
.result-card {
  flex: 0 0 240px; height: 200px; border-radius: 16px;
  overflow: hidden; opacity: 0.45; filter: grayscale(60%);
  transform: scale(var(--scale, 0.85));
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer; position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.result-card img { width: 100%; height: 100%; object-fit: cover; }
.result-card.active {
  --scale: 1.05; opacity: 1; filter: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  z-index: 10; border: 2px solid rgba(255,255,255,0.8);
}
.results-nav {
  position: absolute; top: 140px;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  cursor: pointer; z-index: 20; transition: all 0.2s; font-size: 24px;
}
.results-nav:hover { transform: scale(1.1); background: rgb(var(--teal)); color: white; }
.results-nav.prev { left: 20px; }
.results-nav.next { right: 20px; }
.results-caption {
  margin-top: 32px; border: none;
  background: rgba(255,255,255,0.92);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.qa-block.compact { margin: 0; padding: 16px 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.qa-block.compact .qa-text { margin: 0; font-size: 16px; line-height: 1.7; }
.qa-block.compact code { font-size: 14px; }

/* Analysis Figure in Method Detail */
.analysis-figure {
  margin: 16px 0 20px;
  border-radius: 12px;
  overflow: hidden;
}
.analysis-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
.method-detail p {
  text-align: left;
}
.method-detail ul {
  text-align: left;
}

/* Results Text Content */
.results-text-content {
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  text-align: left;
}
.results-text-content p {
  margin: 0 0 12px;
}
.results-text-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
.results-text-content li {
  margin-bottom: 8px;
}
.results-text-content li + li {
  margin-top: 4px;
}
.results-text-content strong {
  color: #111;
}

/* BibTeX */
.code-block {
  margin: 32px auto 0; max-width: 780px;
  background: #f3f4f6; border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  overflow-x: auto;
}
.code-block pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px; line-height: 1.6; color: #111827; white-space: pre;
}
.code-block code { font-family: inherit; }

/* Qualitative Results Viewer */
.qual-viewer {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(248,250,255,.85);
}
.qual-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
}
.qual-image {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.15);
  transition: opacity 0.4s ease;
}
.qual-image.fade-out {
  opacity: 0;
}

/* Footer */
.footer { text-align: center; padding-bottom: 40px; }
.footer-links { margin-top: 12px; display: flex; justify-content: center; gap: 16px; }
.footer-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-icon img { width: 20px; height: 20px; opacity: 0.8; }
.footer-icon svg { width: 20px; height: 20px; fill: rgba(15,23,42,0.6); }
.footer-icon:hover { transform: translateY(-2px); background: rgba(15, 23, 42, 0.12); }

/* Responsive */
@media (max-width: 960px) {
  .container, .main-shell { max-width: 100%; width: 100%; padding: 0 16px; }
  .section, .hero { padding: 72px 0; }
  .section.narrow { max-width: 100%; }
  .hero-inner { max-width: 100%; }
  .teaser-image { width: 100%; }
  .author-block { font-size: 16px; }
  .variant-picker { flex-wrap: wrap; row-gap: 8px; }
  .anchor-lab { padding: 24px; }
  .variant-row { grid-template-columns: 1fr; }
  .variant-row-split { grid-template-columns: 1fr; }
  .variant-copy, .variant-copy-split { text-align: left; }
  .qa-block-wide { margin-top: 16px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid[data-mode="triple"] { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
  .compare-grid[data-mode="triple"] .compare-container { max-width: 100%; }
  .results-module { padding: 24px 16px 72px; }
  .results-stage { min-height: 220px; }
  .results-nav { top: auto; bottom: 16px; }
  .results-nav.prev { left: calc(50% - 80px); }
  .results-nav.next { right: calc(50% - 80px); }
  .results-caption { grid-template-columns: 1fr; }
  .result-card.active { flex: 0 0 220px; height: 180px; }
  .exp-card { padding: 20px; }
  .exp-card-head { flex-direction: column; }
  .exp-card-lead { max-width: none; }
  .exp-chart-layout { grid-template-columns: 1fr; gap: 22px; padding: 16px 12px 8px; }
  .exp-average-chart { width: min(320px, 100%); margin: 0 auto; }
  .exp-average-stage { min-height: 320px; }
  .exp-label-col { min-width: 180px; }
  .exp-table th, .exp-table td { padding: 10px 12px; }
  .exp-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
  .exp-mini-stage { grid-template-columns: 26px minmax(0, 1fr); min-height: 164px; }
  .exp-mini-bar-group { flex-basis: 36px; }
}

@media (max-width: 600px) {
  .title { font-size: 30px; }
  .cta { flex-direction: column; align-items: stretch; }
  .variant-picker { width: 100%; justify-content: center; }
  .chip { flex: 1 1 calc(50% - 8px); text-align: center; }
  .label-badge { font-size: 11px; }
  .compare-container img { max-height: 320px; }
  .results-nav { width: 44px; height: 44px; }
  .variant-copy { text-align: center; }
  .anchor-playground, .results-module { padding: 20px; }
  .exp-card { padding: 18px; border-radius: 20px; }
  .exp-card-head h3 { font-size: 26px; }
  .exp-chip, .exp-legend-item { font-size: 12px; }
  .exp-label-col { min-width: 156px; }
  .exp-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .exp-mini-stage { grid-template-columns: 24px minmax(0, 1fr); }
  .exp-average-chart { width: 100%; margin: 0; }
  .exp-average-stage { min-height: 220px; }
  .exp-mini-stage { min-height: 154px; }
  .exp-mini-bars, .exp-average-bars { gap: 12px; padding: 10px 6px 2px; }
  .exp-mini-bar-group { flex-basis: 30px; }
  .exp-mini-value { font-size: 10px; padding: 2px 4px; }
  .exp-mini-bar { max-width: 20px; }
}
