:root {
  --bg: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --accent: #c2410c;
  --accent-2: #0369a1;
  --green: #15803d;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.container { width: min(1100px, calc(100% - 38px)); margin: 0 auto; }

.hero {
  padding: 64px 0 34px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 18px;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #111827;
}
.authors {
  margin: 0 auto 6px;
  max-width: 1000px;
  font-size: 1.08rem;
  line-height: 1.8;
}
.author { white-space: nowrap; }
.affiliations {
  margin: 4px auto 0;
  max-width: 920px;
  color: var(--muted);
  font-size: 0.93rem;
}
.notes {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}
.venue {
  display: inline-block;
  margin: 16px 0 20px;
  padding: 6px 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 650;
  font-size: 0.92rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: #334155; }
.btn.video { background: #b91c1c; }
.btn.disabled { background: #9ca3af; cursor: default; }
.btn.disabled:hover { transform: none; }

.teaser-wrap { margin: 26px auto 0; }
.figure-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.figure-card img { display: block; width: 100%; height: auto; }
.caption {
  margin: 10px auto 0;
  max-width: 950px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.tagline {
  margin: 22px auto 0;
  max-width: 850px;
  text-align: center;
  font-size: 1.12rem;
  color: #374151;
}

section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
}
section h2 {
  margin: 0 0 20px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #111827;
}
section h3 {
  margin: 30px 0 12px;
  font-size: 1.15rem;
  color: #111827;
}
.prose {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: #374151;
}
.prose p { margin: 0 0 13px; }
.center { text-align: center; }

.video-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}
.video-shell iframe { width: 100%; height: 100%; border: 0; }

.method-figure,
.results-figure,
.tasks-figure {
  margin: 24px auto 0;
  width: min(100%, 1000px);
}
.method-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 25px auto 0;
  max-width: 980px;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 16px 17px;
}
.info-card strong { display: block; margin-bottom: 6px; color: #111827; }
.info-card p { margin: 0; color: #4b5563; font-size: 0.94rem; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 426 / 720;
  object-fit: cover;
  background: #e5e7eb;
}
.video-copy { padding: 12px 14px 14px; }
.video-copy strong { display: block; margin-bottom: 4px; }
.video-copy p { margin: 0; color: #4b5563; font-size: 0.94rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 24px auto 0;
}
.metric {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: #fff;
}
.metric .value { font-size: 1.65rem; font-weight: 750; color: var(--accent-2); line-height: 1.1; }
.metric .label { margin-top: 5px; color: var(--muted); font-size: 0.88rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px auto 0;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 18px 16px;
  text-align: center;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 760;
  color: var(--green);
  line-height: 1.15;
}
.stat-title {
  margin-top: 4px;
  font-weight: 650;
  color: #111827;
}
.stat-card p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.93rem;
}

.citation-box {
  position: relative;
  max-width: 930px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.citation-box pre {
  margin: 0;
  padding: 18px 70px 18px 18px;
  overflow-x: auto;
  font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #334155;
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 9px;
  background: white;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
}
.copy-btn:hover { background: #f1f5f9; }

footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
footer a { color: #475569; }

@media (max-width: 860px) {
  .video-grid,
  .compare-grid,
  .stats-grid,
  .method-copy,
  .metrics { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding-top: 42px; }
  .authors { font-size: 1rem; }
  section { padding: 42px 0; }
  .caption { font-size: 0.89rem; }
}


.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.compare-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compare-card video,
.wide-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e5e7eb;
}
.wide-video-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Refinements for the camera-ready project page */
.teaser-wrap {
  width: min(100%, 1000px);
}
.result-heading {
  margin: 22px 0 12px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
}
.policy-heading,
.qualitative-heading {
  margin-top: 44px;
}
.compact-video {
  width: min(100%, 920px);
  margin: 22px auto 0;
}
.weight-figure {
  width: min(100%, 1000px);
  margin: 28px auto 0;
}
.compare-grid {
  margin-top: 18px;
}
.compare-card {
  padding: 0;
}
.compare-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}


/* Downstream policy result storytelling */
.success-story {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.12fr 1.1fr;
  align-items: stretch;
  gap: 12px;
  max-width: 930px;
  margin: 22px auto 0;
}
.success-step,
.success-gain {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.success-step.highlight-step {
  border-color: #bae6fd;
  background: #f0f9ff;
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.10);
}
.success-name {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 650;
}
.success-value {
  margin-top: 2px;
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent-2);
}
.success-value.muted-value { color: #64748b; }
.success-value.mid-value { color: #b7791f; }
.success-arrow {
  align-self: center;
  color: #94a3b8;
  font-size: 1.7rem;
  font-weight: 700;
}
.success-gain {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.success-gain strong {
  font-size: 1.45rem;
  line-height: 1.05;
}
.success-gain span {
  margin-top: 6px;
  font-size: 0.83rem;
  color: #4b5563;
}

.weight-analysis {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: center;
  max-width: 1040px;
  margin: 34px auto 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}
.weight-copy { text-align: left; }
.weight-copy .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 0.80rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.weight-copy h4 {
  margin: 0 0 13px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.25;
}
.weight-copy p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.98rem;
}
.weight-takeaway {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 17px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}
.takeaway-number {
  flex: 0 0 auto;
  color: #0369a1;
  font-size: 1.45rem;
  font-weight: 800;
}
.takeaway-text {
  color: #475569;
  font-size: 0.90rem;
  line-height: 1.45;
}
.weight-figure-small {
  width: 100%;
  margin: 0;
  box-shadow: none;
}
.weight-figure-small img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .success-story {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .success-arrow {
    transform: rotate(90deg);
  }
  .weight-analysis {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
