:root {
  --ink: #1b3140;
  --ink-soft: #304d60;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --paper: #f7f4ed;
  --paper-deep: #edf0ef;
  --white: #ffffff;
  --muted: #68767c;
  --muted-dark: #71818a;
  --line: rgba(27, 49, 64, 0.14);
  --line-dark: rgba(27, 49, 64, 0.15);
  --mint: #d8eaf2;
  --mint-deep: #3f708f;
  --lime: #eee2c2;
  --coral: #c7624c;
  --gold: #d2a64d;
  --blue: #779bb3;
  --violet: #ccc8de;
  --shadow-sm: 0 12px 32px rgba(31, 58, 75, 0.08);
  --shadow-lg: 0 30px 90px rgba(31, 58, 75, 0.15);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --shell: min(1180px, calc(100vw - 48px));
  --section-space: clamp(64px, 7.5vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-color: var(--mint-deep) var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(211, 190, 160, 0.2), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(120, 154, 178, 0.12), transparent 24rem),
    var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
}

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

::selection {
  color: var(--ink);
  background: var(--mint);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: rgba(247, 244, 237, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mint-deep);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 220ms ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--mint-deep);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  transition: color 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--ink) !important;
  background: transparent;
  transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition:
    transform 200ms ease,
    background-color 200ms ease;
}

.hero {
  position: relative;
  min-height: auto;
  padding: 96px 20px 60px;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.hero::after {
  display: none;
}

.hero-grid-pattern {
  display: none;
}

.hero-aurora {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: block;
  width: var(--shell);
  min-height: 0;
}

.section-kicker,
.card-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(42px, 6.2vw, 80px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--mint-deep);
}

.hero-name {
  max-width: 940px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  gap: 10px;
}

.hero-actions .button {
  min-width: 132px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--mint-deep);
  box-shadow: 0 10px 30px rgba(63, 112, 143, 0.16);
}

.button-primary:hover {
  background: #315f79;
  box-shadow: 0 14px 36px rgba(63, 112, 143, 0.24);
}

.button-quiet {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.button-quiet:hover {
  color: var(--ink);
  background: var(--white);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta span + span::before {
  content: none;
}

.hero-meta sup {
  font-size: 0.68em;
  line-height: 0;
}

.hero-showcase {
  position: relative;
  z-index: 3;
  width: var(--shell);
  margin: 0 auto 28px;
}

.paper-figure {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.showcase-topline {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.flow-label {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.flow-label i {
  width: 6px;
  height: 6px;
  background: var(--mint-deep);
  border-radius: 50%;
}

.flow-label:nth-of-type(2) i {
  background: var(--gold);
}

.flow-label:nth-of-type(3) i {
  background: var(--coral);
}

.flow-line {
  flex: 1;
  height: 1px;
  margin: 0 14px;
  background: linear-gradient(90deg, rgba(27, 49, 64, 0.06), rgba(27, 49, 64, 0.22), rgba(27, 49, 64, 0.06));
}

.showcase-note {
  margin-left: auto;
  padding-left: 28px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: visible;
  cursor: zoom-in;
  background: transparent;
  border: 0;
  border-radius: inherit;
}

.image-button picture {
  display: block;
  border-radius: inherit;
}

.image-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
  transition: filter 240ms ease;
}

.image-button:hover img {
  filter: saturate(1.02) contrast(1.015);
}

.image-button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.hero-image-button {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.zoom-hint svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.image-button:hover .zoom-hint,
.image-button:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .zoom-hint {
    display: none;
  }
}

.section {
  position: relative;
  padding: var(--section-space) 0;
  scroll-margin-top: 0;
}

#data {
  padding-block: var(--section-space);
}

#data .section-heading {
  display: block;
  margin-bottom: 28px;
}

#data .data-summary {
  margin-bottom: 22px;
}

#data .data-stat {
  padding-block: 20px;
}

#data .data-stat strong {
  font-size: clamp(25px, 2.5vw, 34px);
}

#data .data-figure {
  width: var(--shell);
  margin-bottom: 22px;
}

#data .evaluation-grid {
  gap: 14px;
  margin-top: 0;
}

#data .evaluation-card {
  padding: 24px;
}

#data .evaluation-card .card-label {
  margin-bottom: 10px;
}

#data .construction-flow,
#data .criteria-list {
  margin-bottom: 10px;
}

#data .criteria-list div {
  padding-block: 9px;
}

#data .evaluation-card p {
  font-size: 14px;
  line-height: 1.6;
}

#data .evaluation-card p + p {
  margin-top: 12px;
}

.section-tinted {
  background: transparent;
}

.section-dark {
  color: var(--ink);
  background: transparent;
}

.split-heading {
  display: block;
  max-width: none;
  margin-bottom: 28px;
}

.split-heading h2,
.split-heading .lead {
  max-width: 820px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7.5px 12px 6.5px;
  color: var(--mint-deep);
  background: rgba(255, 250, 245, 0.7);
  border: 1px solid rgba(63, 112, 143, 0.24);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.section-dark .section-kicker {
  color: var(--mint-deep);
}

.section h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
}

.intro-grid {
  display: block;
}

.abstract-card {
  position: relative;
  width: 100%;
  padding: 28px;
  margin-inline: auto;
  overflow: hidden;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.abstract-card::after {
  display: none;
}

.abstract-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

.abstract-card p:last-child {
  margin-bottom: 0;
}

.abstract-card strong {
  font-weight: 700;
}

.card-label {
  display: block;
  margin-bottom: 25px;
  color: var(--mint-deep);
}

.contribution-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.contribution-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.contribution-card:hover {
  background: var(--white);
  box-shadow: none;
  transform: none;
}

.contribution-card .number {
  color: var(--mint-deep);
  font-family: var(--mono);
  font-size: 11px;
}

.contribution-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contribution-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section-heading {
  display: block;
  max-width: none;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 820px;
}

.section-heading .section-kicker {
  margin-bottom: 14px;
}

.section-heading p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.section-dark .section-heading p {
  color: var(--muted);
}

.figure-card {
  overflow: visible;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.paradigm-layout {
  display: block;
}

.paradigm-copy {
  max-width: none;
  margin-bottom: 28px;
}

.paradigm-copy h2 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.paradigm-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.figure-card picture {
  display: block;
  border-radius: 12px 12px 0 0;
}

.figure-card .image-button {
  border-radius: 12px 12px 0 0;
}

.figure-card img {
  border-radius: 12px 12px 0 0;
}

.figure-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
  border-radius: 0 0 12px 12px;
}

.figure-caption p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.figure-caption a,
.gallery-copy a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.figure-caption a:hover,
.gallery-copy a:hover {
  color: var(--mint-deep);
}

.showcase-caption {
  min-height: 46px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
  background: transparent;
}

.pipeline-step {
  position: relative;
  min-height: 168px;
  padding: 24px;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.pipeline-step + .pipeline-step {
  border-left: 1px solid var(--line);
}

.pipeline-step::after {
  display: none;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step:hover {
  background: var(--white);
}

.pipeline-index {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.pipeline-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  place-items: center;
  background: #eaf3f7;
  border: 1px solid rgba(63, 112, 143, 0.12);
  border-radius: 12px;
}

.pipeline-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--mint-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pipeline-step h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.pipeline-note {
  max-width: 820px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pipeline-note span {
  display: inline-block;
  margin-right: 8px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.framework-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.framework-figure {
  width: 100%;
  margin-inline: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.framework-figure .image-button,
.framework-figure picture,
.framework-figure img {
  border-radius: 0;
}

.small-caption {
  margin: 0;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.data-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.data-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px;
  background: rgba(255, 250, 245, 0.88);
}

.data-stat + .data-stat {
  border-left: 0;
}

.data-stat strong {
  color: var(--mint-deep);
  font-size: clamp(28px, 3.1vw, 43px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.data-stat span {
  color: var(--muted);
  font-size: 11px;
}

.data-figure {
  width: var(--shell);
  margin-inline: auto;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.data-figure .figure-caption-inset {
  margin: 14px -16px -16px;
  border-radius: 0 0 12px 12px;
}

.data-figure .image-button {
  border-radius: 8px;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.evaluation-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 245, 0.78);
  box-shadow: var(--shadow-sm);
}

.evaluation-card .card-label {
  color: var(--mint-deep);
}

.evaluation-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.72;
}

.construction-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.construction-flow span {
  padding: 7px 10px;
  color: var(--ink-soft);
  font-size: 10px;
  background: #edf2f4;
  border: 1px solid rgba(27, 49, 64, 0.08);
  border-radius: 8px;
}

.construction-flow i {
  color: rgba(27, 49, 64, 0.3);
  font-style: normal;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  margin-bottom: 20px;
}

.criteria-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  color: var(--ink-soft);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}

.criteria-list strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
}

.formula-note math.formula {
  color: var(--mint-deep);
  font-size: 1.05em;
  line-height: 1;
}

.result-highlight {
  display: grid;
  grid-template-columns: 0.7fr 0.85fr 1.35fr;
  gap: 0;
  margin-bottom: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.result-highlight > * {
  min-height: 145px;
  padding: 24px;
}

.result-highlight > * + * {
  border-left: 1px solid var(--line);
}

.result-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0d201a;
  color: var(--white);
}

.result-score span,
.result-score small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
}

.result-score strong {
  margin: 9px 0 3px;
  color: var(--mint);
  font-size: 56px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.result-gain {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gain-number {
  color: var(--coral);
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-gain > span:last-child {
  max-width: 180px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.result-highlight > p {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  margin-bottom: 22px;
  align-items: start;
}

.score-chart,
.metric-table-wrap {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.chart-group {
  display: grid;
  gap: 7px;
  padding-top: 18px;
}

.chart-group + .chart-group {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.chart-group-label {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chart-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.chart-model {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.chart-track {
  height: 10px;
  overflow: hidden;
  background: #edf0ec;
  border-radius: 999px;
}

.chart-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 900ms var(--ease);
}

.bar-base { background: #c7ceca; }
.bar-ours { background: var(--mint-deep); }
.bar-sft { background: var(--coral); }

.chart-row strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.table-title,
.metric-row {
  display: grid;
  grid-template-columns: 1.5fr 0.55fr 0.65fr 0.55fr;
  gap: 8px;
  align-items: center;
}

.table-title {
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.table-title span:not(:first-child),
.metric-row strong {
  text-align: right;
}

.metric-row {
  min-height: 45px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}

.metric-row > span {
  color: var(--muted);
}

.metric-row strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.metric-row strong.best {
  color: var(--coral);
  font-weight: 700;
}

.table-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.ablation-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.ablation-copy {
  padding: 20px 10px 0 0;
}

.ablation-copy .section-kicker {
  margin-bottom: 16px;
}

.ablation-copy h3 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ablation-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.ablation-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.ablation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 65px;
  gap: 12px;
  align-items: center;
  min-height: 35px;
  padding: 0 22px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.ablation-row > :not(:first-child) {
  text-align: right;
}

.ablation-row.header {
  min-height: 34px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-top: 0;
}

.ablation-row.featured {
  color: var(--ink);
  font-weight: 700;
  background: #f2faf7;
}

.ablation-row strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ablation-row .negative {
  color: var(--coral);
}

.gallery-stack {
  display: grid;
  gap: 0;
}

.task-switcher {
  width: 100%;
  margin-inline: 0;
  padding: 22px;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.task-switcher-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 2px 0 18px;
}

.task-switcher-head .card-label {
  margin-bottom: 10px;
}

.task-switcher-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.task-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  background: var(--paper-deep);
  border-radius: 999px;
}

.task-tab {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.task-tab:hover {
  color: var(--ink);
}

.task-tab.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(31, 58, 75, 0.1);
}

.task-viewport {
  overflow: visible;
  background: var(--white);
  border-radius: 10px;
}

.task-sheet {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.task-sheet.is-active {
  display: block;
  animation: none;
}

.task-switcher-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.task-switcher-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.task-switcher-foot a {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
}

.task-switcher-foot a:hover {
  color: var(--mint-deep);
}

.gallery-card {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gallery-card-reverse {
  display: block;
}

.gallery-copy {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr 1.2fr;
  gap: 8px 34px;
  padding: 26px 24px 22px;
}

.gallery-copy .card-label {
  align-self: start;
  margin-bottom: 0;
}

.gallery-copy h3 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.gallery-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gallery-copy a {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 4px;
}

.gallery-image {
  overflow: visible;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.gallery-image picture,
.gallery-image img {
  border-radius: 16px;
}

.cite-section {
  padding-bottom: 56px;
  color: var(--ink);
  background: transparent;
}

.cite-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: start;
}

.cite-copy .section-kicker {
  margin-bottom: 22px;
}

.cite-copy h2 {
  margin-bottom: 22px;
}

.cite-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.resource-links a {
  padding: 8px 11px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.resource-links a:hover {
  color: var(--white);
  background: var(--mint-deep);
  border-color: var(--mint-deep);
}

.resource-links a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.bibtex-card {
  margin-top: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.copy-button:hover {
  color: var(--mint-deep);
  border-color: var(--mint-deep);
}

.copy-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.bibtex-card pre {
  margin: 0;
  padding: 28px 24px 32px;
  overflow-x: auto;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.footer {
  padding: 48px 0;
  background: #ece7dd;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.footer-brand {
  margin-bottom: 13px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.lightbox {
  width: min(1500px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: #1f3543;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 50px 160px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(4, 10, 8, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: var(--white);
  background: rgba(8, 20, 26, 0.55);
  backdrop-filter: blur(6px);
}

.lightbox-close:hover {
  color: var(--white);
  background: rgba(8, 20, 26, 0.8);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  place-items: center;
}

.icon-button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.icon-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.lightbox-image-wrap {
  display: block;
  min-height: 0;
  padding: 22px;
  overflow: auto;
  background: #f4f5f2;
}

.lightbox-image-wrap img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 500;
  padding: 11px 16px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  background: var(--mint-deep);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--ink);
  visibility: hidden;
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
  place-items: center;
  backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--white);
}

.back-to-top svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 560ms var(--ease) var(--reveal-delay, 0ms),
    transform 560ms var(--ease) var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1040px) {
  .section {
    padding: var(--section-space) 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-content {
    align-items: center;
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-showcase {
    width: var(--shell);
    margin: 0 auto 28px;
  }

  .section-heading {
    gap: 44px;
  }

  .intro-grid,
  .chart-layout {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-step:nth-child(3) {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .pipeline-step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .pipeline-step:nth-child(2)::after,
  .pipeline-step:nth-child(3)::after {
    display: none;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  .result-highlight {
    grid-template-columns: 0.8fr 1fr;
  }

  .result-highlight > p {
    grid-column: 1 / -1;
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ablation-grid {
    grid-template-columns: 1fr;
  }

  .ablation-copy {
    max-width: 660px;
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 32px, 700px);
  }

  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 66px 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 300ms var(--ease),
      opacity 180ms ease,
      padding 300ms var(--ease),
      border-color 180ms ease;
  }

  .nav-open .nav-links {
    max-height: calc(100vh - 66px);
    padding-top: 12px;
    padding-bottom: 24px;
    border-bottom-color: var(--line);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 16px;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 0 !important;
  }

  .nav-open .nav-toggle span:not(.sr-only) {
    background: var(--ink);
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding: 72px 0 40px;
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 56px);
  }

  .hero-showcase {
    width: var(--shell);
    margin-top: 0;
  }

  .showcase-topline {
    width: 100%;
  }

  .showcase-note {
    display: none;
  }

  .split-heading {
    margin-bottom: 28px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .paradigm-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .paradigm-copy p {
    max-width: none;
  }

  .data-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .evaluation-grid {
    grid-template-columns: 1fr;
  }

  .contribution-stack {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .gallery-card,
  .gallery-card-reverse {
    grid-template-columns: 1fr;
  }

  .task-switcher-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-tabs {
    width: 100%;
  }

  .task-tab {
    flex: 1;
  }

  .gallery-card-reverse .gallery-copy {
    order: 0;
  }

  .gallery-copy {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 16px 10px;
  }

  .gallery-copy a {
    grid-column: auto;
  }

  .cite-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 8px;
  }

  #data {
    padding-block: 42px;
  }

  .hero h1 {
    letter-spacing: -0.065em;
  }

  .hero-name {
    font-size: 17px;
  }

  .hero-meta {
    flex-direction: column;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .flow-label {
    font-size: 8px;
  }

  .flow-line {
    margin: 0 8px;
  }

  .zoom-hint {
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
  }

  .zoom-hint span {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .toast {
    right: 16px;
    bottom: 68px;
  }

  .task-switcher-head {
    padding-right: 7px;
    padding-left: 7px;
  }

  .criteria-list {
    grid-template-columns: 1fr;
  }

  .task-switcher-foot {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 7px;
    padding-left: 7px;
  }

  .section {
    padding: 42px 0;
  }

  .section h2 {
    font-size: clamp(30px, 8.7vw, 34px);
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    min-height: 132px;
  }

  .pipeline-step + .pipeline-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pipeline-step::after {
    display: none;
  }

  .result-highlight {
    grid-template-columns: 1fr;
  }

  .result-highlight > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-highlight > p {
    grid-column: auto;
  }

  .chart-row {
    grid-template-columns: 92px minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .score-chart,
  .metric-table-wrap,
  .evaluation-card {
    padding: 20px;
  }

  .table-title,
  .metric-row {
    grid-template-columns: 1.3fr 0.5fr 0.55fr 0.5fr;
  }

  .ablation-row {
    padding: 0 15px;
    grid-template-columns: minmax(0, 1fr) 50px 54px;
  }

  .lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .lightbox-shell {
    max-height: calc(100vh - 16px);
  }

  .lightbox-image-wrap {
    padding: 10px;
  }

  .lightbox-image-wrap img {
    max-height: calc(100vh - 60px);
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: #fff;
  }

  .skip-link,
  .site-header,
  .hero-actions,
  .zoom-hint,
  .lightbox,
  .task-tabs,
  .task-switcher-foot,
  .copy-button,
  .figure-caption a {
    display: none !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  * {
    box-shadow: none !important;
  }

  .section {
    padding: 18px 0;
  }

  .section-heading,
  .split-heading,
  .data-summary,
  .figure-card,
  .paper-figure,
  .data-figure,
  .framework-figure,
  .evaluation-card,
  .task-switcher,
  .task-sheet {
    break-inside: avoid;
  }

  .image-button {
    position: static;
    overflow: hidden;
  }

  .data-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .data-stat:nth-child(3) {
    grid-column: auto;
  }

  h2,
  h3,
  .section-kicker {
    break-after: avoid;
  }
}
