:root {
  --text: #202428;
  --text-soft: #505963;
  --muted: #707982;
  --line: #dde2e6;
  --line-strong: #c8d0d6;
  --surface: #f5f7f8;
  --surface-blue: #eef4f6;
  --accent: #2d6f75;
  --accent-dark: #1f5055;
  --compromise: #dfeadd;
  --reframe: #dcecf0;
  --white: #ffffff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.project-container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-container {
  width: min(790px, calc(100% - 40px));
  margin: 0 auto;
}

.project-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.back-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.section-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.section-links a {
  color: var(--text-soft);
  font-size: 12px;
  text-decoration: none;
}

.section-links a:hover {
  color: var(--accent);
}

.project-hero {
  padding: 86px 0 70px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 20% 20%, #dcecf0, transparent 36%),
    radial-gradient(circle at 80% 70%, #dfeadd, transparent 34%);
  border-bottom: 1px solid var(--line);
}

.project-hero-content {
  max-width: 980px;
}

.venue-label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 10px;
  color: var(--accent-dark);
  background: var(--surface-blue);
  border: 1px solid #ccdfe3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-hero h1 {
  max-width: 960px;
  margin: 0 auto 30px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.author-list {
  margin-bottom: 9px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.author-list strong {
  color: var(--text);
}

.author-list sup,
.affiliations sup {
  color: var(--accent);
  font-size: 0.7em;
}

.affiliations {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

.resource-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-button {
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.resource-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.resource-button.primary {
  color: var(--white);
  background: var(--text);
  border-color: var(--text);
}

.resource-button.primary:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.button-icon {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.hero-summary {
  max-width: 700px;
  margin: 34px auto 0;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.teaser-section {
  padding: 62px 0 22px;
}

.teaser-figure {
  margin: 0;
}

.teaser-figure img {
  width: 100%;
  height: auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 12px 36px rgba(29, 47, 56, 0.08);
}

.teaser-figure figcaption,
.result-figure figcaption {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.project-section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.project-section h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.narrow-container > h2 {
  text-align: center;
}

.abstract-text {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.85;
}

.abstract-text strong {
  color: var(--text);
}

.stats-section {
  color: var(--white);
  background: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.stat-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-tint {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 15px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dataset-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.dataset-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 58px;
}

.dataset-card-header span {
  display: inline-block;
  padding: 4px 8px;
  color: var(--accent-dark);
  background: var(--surface-blue);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.dataset-card-header strong {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.9;
}

.dataset-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}

.dataset-card p {
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 13px;
}

.subset-bar {
  height: 5px;
  margin-top: auto;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.subset-bar span {
  height: 100%;
  display: block;
  background: var(--accent);
}

.advisor-share {
  width: 50.8%;
}

.agent-share {
  width: 49.2%;
}

.alternative-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.alternative-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.option-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.option-badge.compromise {
  background: var(--compromise);
}

.option-badge.reframe {
  background: var(--reframe);
}

.alternative-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.alternative-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 52px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  list-style: none;
}

.method-grid li {
  min-height: 220px;
  padding: 24px;
}

.method-grid li + li {
  border-left: 1px solid var(--line);
}

.step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.method-grid h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.choice-diagram {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 80px minmax(400px, 1.3fr);
  align-items: center;
  gap: 20px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.choice-column {
  display: grid;
  gap: 10px;
}

.choice-column > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.original-options > p,
.expanded-options > p {
  grid-column: 1 / -1;
}

.expanded-options {
  grid-template-columns: repeat(4, 1fr);
}

.choice-box {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.choice-box strong {
  font-family: var(--serif);
  font-size: 28px;
}

.choice-box span {
  color: var(--muted);
  font-size: 9px;
}

.compromise-box {
  background: var(--compromise);
}

.reframe-box {
  background: var(--reframe);
}

.diagram-arrow {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 40px;
  text-align: center;
}

.finding-list {
  border-top: 1px solid var(--line-strong);
}

.finding {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.finding-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.finding-copy h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.3;
}

.finding-copy p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.mini-chart {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.chart-group + .chart-group {
  margin-top: 22px;
}

.chart-group > span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
}

.chart-row {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.chart-row small {
  color: var(--muted);
  font-size: 8px;
}

.chart-row i {
  height: 6px;
  display: block;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.chart-row b {
  height: 100%;
  display: block;
  background: var(--muted);
}

.chart-row.accent b {
  background: var(--accent);
}

.chart-row strong {
  font-size: 8px;
  text-align: right;
}

.bar-50 {
  width: 50%;
}

.bar-686 {
  width: 68.6%;
}

.bar-503 {
  width: 50.3%;
}

.bar-647 {
  width: 64.7%;
}

.preference-table-wrap {
  margin-top: 50px;
  overflow-x: auto;
}

.preference-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 13px;
}

.preference-table caption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.preference-table th,
.preference-table td {
  padding: 14px 18px;
  border: 1px solid var(--line);
  text-align: center;
}

.preference-table th:first-child {
  text-align: left;
}

.preference-table thead th {
  color: var(--text-soft);
  background: var(--surface);
  font-size: 11px;
}

.highlight-row {
  background: var(--surface-blue);
}

.result-figure {
  margin: 62px 0 0;
}

.result-figure img {
  width: 100%;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.conclusion {
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.65;
}

.limitations {
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.limitations summary {
  padding: 17px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.limitations div {
  padding: 0 0 15px;
}

.limitations p {
  color: var(--text-soft);
  font-size: 13px;
}

.citation-section {
  background: var(--surface);
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.resource-card-grid > a {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.resource-card-grid > a:hover {
  border-color: var(--accent);
}

.resource-card-grid strong {
  font-family: var(--serif);
  font-size: 21px;
}

.resource-card-grid span {
  color: var(--accent);
  font-size: 11px;
}

.citation-block {
  margin-top: 38px;
  color: var(--white);
  background: var(--text);
  border-radius: 6px;
  overflow: hidden;
}

.citation-block h3 {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.citation-block pre {
  max-width: 100%;
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
}

.project-footer {
  padding: 26px 0;
  color: var(--muted);
  background: var(--white);
}

.project-footer .project-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
}

.project-footer p {
  margin-bottom: 0;
}

.project-footer a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .method-grid li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .choice-diagram {
    grid-template-columns: 1fr;
  }

  .diagram-arrow {
    transform: rotate(90deg);
  }

  .finding {
    grid-template-columns: 50px 1fr;
  }

  .mini-chart {
    grid-column: 2;
  }
}

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

  .project-hero {
    padding: 62px 0 54px;
  }

  .project-hero h1 {
    font-size: 40px;
  }

  .author-list {
    font-size: 13px;
  }

  .hero-summary {
    font-size: 18px;
  }

  .teaser-figure img {
    padding: 10px;
  }

  .project-section {
    padding: 58px 0;
  }

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

  .stat-item {
    min-height: 120px;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .dataset-grid,
  .alternative-grid,
  .resource-card-grid {
    grid-template-columns: 1fr;
  }

  .dataset-card-header {
    margin-bottom: 36px;
  }

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

  .project-footer .project-container {
    display: block;
  }

  .project-footer a {
    display: inline-block;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .project-container,
  .narrow-container {
    width: min(100% - 28px, 1080px);
  }

  .project-hero h1 {
    font-size: 35px;
  }

  .resource-button {
    min-width: 96px;
  }

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

  .method-grid li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .method-grid li {
    min-height: auto;
  }

  .step-number {
    margin-bottom: 28px;
  }

  .finding {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mini-chart {
    grid-column: 1;
  }
}

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