:root {
  --ink: #19211f;
  --muted: #5e6864;
  --paper: #f8f4ec;
  --paper-strong: #efe7d8;
  --surface: #ffffff;
  --line: #ded8cc;
  --green: #2f5f55;
  --green-dark: #203f39;
  --coral: #d97850;
  --gold: #f2c35b;
  --blue: #4c7fb3;
  --shadow: 0 18px 42px rgba(31, 37, 35, 0.12);
  --shadow-soft: 0 10px 24px rgba(31, 37, 35, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body > * {
  max-width: 100%;
}

main .container {
  width: min(calc(100% - clamp(2rem, 8vw, 7rem)), 1160px) !important;
  max-width: 1160px !important;
}

main .container.is-max-desktop {
  max-width: 900px !important;
}

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

main,
section,
.container,
.hero-grid > *,
.split-layout > *,
.method-layout > *,
.real-layout > *,
.section-heading > *,
.metric,
.result-card,
.small-stats > * {
  min-width: 0;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(248, 244, 236, 0.92);
  border-bottom: 1px solid rgba(222, 216, 204, 0.88);
  backdrop-filter: blur(14px);
}

.nav-brand {
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav nav a:hover {
  color: var(--green-dark);
}

.hero-wrap {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem) 2.6rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 236, 0.88)),
    repeating-linear-gradient(90deg, rgba(47, 95, 85, 0.055) 0 1px, transparent 1px 86px);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 1.8rem);
  text-align: center;
}

.hero-wrap .container.is-widescreen {
  max-width: 1160px !important;
}

.hero-copy {
  max-width: 1080px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.85rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 1120px;
  font-size: clamp(2.65rem, 4.8vw, 4.85rem);
  overflow-wrap: normal;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 3.05rem);
}

.hero-summary {
  max-width: 860px;
  margin: 1.05rem auto 0;
  color: #35413d;
  font-size: clamp(1.16rem, 1.85vw, 1.42rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-copy p,
.section-copy p,
.section-heading p,
.result-card p,
.paper-figure figcaption {
  overflow-wrap: anywhere;
}

.author-list,
.affiliation-list {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.72rem;
  max-width: 920px;
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.author-list span:not(:last-child)::after {
  content: ",";
}

.author-list sup,
.affiliation-list sup {
  margin-left: 0.08rem;
  color: var(--coral);
  font-size: 0.68em;
  font-weight: 900;
}

.affiliation-list sup {
  margin-right: 0.12rem;
}

.affiliation-list {
  gap: 0.38rem 0.62rem;
  margin-top: 0.55rem;
  color: #6a746f;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
}

.affiliation-list span {
  display: inline-flex;
}

.affiliation-list span:not(:last-child)::after {
  content: "·";
  margin-left: 0.62rem;
  color: #9aa29e;
}

.venue {
  display: inline-flex;
  margin: 0;
  padding: 0.34rem 0.68rem;
  color: var(--green-dark);
  background: rgba(242, 195, 91, 0.28);
  border: 1px solid rgba(242, 195, 91, 0.52);
  border-radius: 999px;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: clamp(0.85rem, 1.8vw, 1.25rem) 0 clamp(0.8rem, 1.8vw, 1.2rem);
}

.paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.66rem;
  min-width: 7.6rem;
  min-height: 3rem;
  padding: 0.78rem 1.25rem;
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid rgba(47, 95, 85, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.paper-button i {
  flex: 0 0 auto;
  margin-right: 0;
  font-size: 1.16em;
}

.paper-button:hover {
  color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.paper-button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.paper-button.primary:hover {
  color: #fff;
  background: var(--green-dark);
}

.paper-button.disabled {
  color: #6f7773;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  cursor: default;
}

.paper-button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.hero-visual {
  width: min(100%, 1160px);
  margin: 0.15rem auto 0;
  justify-self: stretch;
}

.hero-visual img,
.paper-figure img {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual img {
  aspect-ratio: 1687 / 880;
  object-fit: contain;
}

.section-block .container.is-widescreen {
  max-width: 1160px !important;
}

.abstract-band {
  padding: clamp(2.3rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.abstract-band .container {
  padding-left: clamp(1rem, 4vw, 2.2rem);
  border-left: 5px solid var(--green);
}

.abstract-band p {
  margin: 0;
  color: #33403c;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.72;
}

.abstract-band p + p {
  margin-top: 0.9rem;
}

.metric-band {
  padding: 1.1rem clamp(1rem, 3vw, 2rem);
  background: var(--green-dark);
  color: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.metric {
  min-height: 7rem;
  padding: 1.2rem 1rem;
  background: var(--green-dark);
}

.metric-value {
  display: block;
  color: var(--gold);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 0.38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-block {
  padding: clamp(3.6rem, 7vw, 6.5rem) clamp(1rem, 3vw, 2rem);
  background: var(--surface);
}

.section-block.paper-tint {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lead {
  color: #26332f;
  font-size: clamp(1.16rem, 1.9vw, 1.34rem);
  line-height: 1.62;
}

.section-block p {
  color: #4b5753;
  font-size: clamp(1.06rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.takeaway-grid article {
  min-height: 8.5rem;
  padding: 1.05rem;
  background: linear-gradient(180deg, #fff, #fbf8f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.takeaway-grid strong,
.mechanism-steps strong {
  display: block;
  color: var(--green-dark);
  font-size: 1rem;
}

.takeaway-grid span {
  display: block;
  margin-top: 0.42rem;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.2rem);
}

.split-layout.reverse {
  grid-template-columns: minmax(430px, 1.18fr) minmax(300px, 0.82fr);
}

.section-copy {
  max-width: 620px;
}

.method-layout,
.real-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(500px, 1.22fr);
  align-items: start;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.method-heading {
  align-items: start;
  margin-bottom: 1.35rem;
}

.real-heading {
  align-items: start;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.real-heading h2 {
  max-width: 920px;
}

.real-evidence-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(560px, 1.08fr);
  align-items: stretch;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.real-stat-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.method-showcase {
  margin-top: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.method-showcase img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.method-explainer {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(580px, 1.18fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: start;
}

.method-flow {
  display: grid;
  gap: 0.85rem;
}

.method-flow article {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.method-flow article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--green-dark);
  background: rgba(242, 195, 91, 0.32);
  border: 1px solid rgba(242, 195, 91, 0.65);
  border-radius: 999px;
  font-weight: 900;
}

.method-flow strong {
  display: block;
  color: var(--green-dark);
  font-size: 1rem;
}

.method-flow p {
  margin: 0.2rem 0 0;
  font-size: 0.96rem;
}

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

.method-formulas .formula-card {
  min-width: 0;
}

.formula-panel {
  display: grid;
  gap: 0.85rem;
}

.formula-card {
  min-width: 0;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.formula-card > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.formula-card p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.equation {
  overflow: visible;
  color: var(--green-dark);
  background: #fbf8f1;
  border: 1px solid rgba(222, 216, 204, 0.75);
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 0.94rem;
}

.equation mjx-container {
  max-width: 100% !important;
  overflow: visible !important;
}

.equation mjx-container[display="true"] {
  margin: 0.25em 0 !important;
}

.equation mjx-container svg {
  max-width: 100%;
  height: auto;
}

.method-figure,
.real-figure {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.real-figure {
  position: relative;
  margin-top: clamp(4.6rem, 8vw, 6rem);
}

.method-figure img,
.real-figure img,
.paper-figure.wide img {
  width: 100%;
  max-height: none;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.feature-list div {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(222, 216, 204, 0.88);
}

.feature-list strong {
  color: var(--green-dark);
  font-size: 1rem;
}

.feature-list span {
  color: var(--muted);
}

.mechanism-steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.mechanism-steps article {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: 0.85rem;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: var(--radius);
}

.mechanism-steps article > span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--green-dark);
  background: rgba(242, 195, 91, 0.32);
  border: 1px solid rgba(242, 195, 91, 0.65);
  border-radius: 999px;
  font-weight: 900;
}

.mechanism-steps p {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.paper-figure {
  margin: 0;
}

.paper-figure.method-showcase {
  margin-top: clamp(0.9rem, 1.8vw, 1.35rem);
  margin-bottom: clamp(1.2rem, 2.3vw, 1.7rem);
}

.paper-figure.real-figure {
  margin-top: clamp(1.8rem, 3.2vw, 2.4rem);
}

.paper-figure.displacement-figure {
  margin-top: clamp(1.7rem, 3vw, 2.3rem);
}

.paper-figure figcaption {
  margin: 0.68rem 0 0;
  color: #68716d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading.compact {
  align-items: center;
}

.section-heading p {
  max-width: 620px;
  margin: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.result-card {
  min-height: 14rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.result-card.highlight {
  border-color: rgba(217, 120, 80, 0.46);
  background: linear-gradient(180deg, #fff, #fff7f1);
}

.result-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin: 0.3rem 0 0.42rem;
  color: var(--green-dark);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
}

.result-card p {
  margin: 0;
  font-size: 0.98rem;
}

.text-emphasis {
  text-decoration-line: underline;
  text-decoration-color: rgba(217, 120, 80, 0.68);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
}

.comparison-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 1.35rem;
  padding: 0.95rem 1rem;
  color: #31413c;
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
}

.comparison-callout strong {
  color: var(--coral);
  white-space: nowrap;
}

.comparison-callout span {
  color: var(--muted);
}

.table-card {
  margin: 0 0 clamp(1.7rem, 3vw, 2.3rem);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.table-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: #f8f4ec;
  border-bottom: 1px solid var(--line);
}

.table-card-header span {
  color: var(--green-dark);
  font-weight: 900;
}

.table-card-header small {
  color: var(--muted);
  font-weight: 700;
}

.academic-table th small {
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 800;
}

.table-wrap {
  overflow-x: visible;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
}

.academic-table th,
.academic-table td {
  padding: 0.72rem 0.72rem;
  border-bottom: 1px solid rgba(222, 216, 204, 0.82);
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.28;
}

.academic-table th:first-child,
.academic-table td:first-child {
  text-align: left;
}

.academic-table tbody tr:last-child th,
.academic-table tbody tr:last-child td {
  border-bottom: 0;
}

.academic-table thead th {
  color: var(--green-dark);
  background: #fffaf2;
  font-weight: 900;
}

.academic-table tbody th {
  color: #24312d;
  font-weight: 850;
}

.academic-table tbody tr:hover {
  background: #fbf8f1;
}

.academic-table .best-row {
  background: rgba(47, 95, 85, 0.08);
}

.academic-table .summary-row {
  background: rgba(47, 95, 85, 0.08);
}

.academic-table .best-row th,
.academic-table .best-row td {
  color: var(--green-dark);
  font-weight: 900;
}

.academic-table .best-cell {
  color: var(--green-dark);
  font-weight: 900;
}

.compact-table {
  margin-bottom: 0;
}

.result-table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
  align-items: start;
  margin-bottom: clamp(1.7rem, 3vw, 2.3rem);
}

.result-table-grid .academic-table {
  font-size: clamp(0.74rem, 0.82vw, 0.86rem);
}

.result-table-grid .academic-table th,
.result-table-grid .academic-table td {
  padding: 0.58rem 0.48rem;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(640px, 1.3fr);
  align-items: start;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.analysis-notes {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.analysis-notes article {
  padding: 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.analysis-notes strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.98rem;
}

.analysis-notes span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.label-source-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 1rem;
  color: #53615c;
  background: #fbf8f1;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.label-source-key strong {
  color: var(--green-dark);
  font-weight: 900;
}

.figure-stack {
  display: grid;
  gap: clamp(1.2rem, 2.3vw, 1.7rem);
  margin-top: clamp(1.7rem, 3vw, 2.3rem);
}

.figure-pair {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.simulation-details {
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(460px, 0.95fr);
  align-items: start;
  gap: clamp(1.2rem, 2.3vw, 1.7rem);
  margin-top: clamp(1.7rem, 3vw, 2.3rem);
}

.rlbench50-showcase {
  margin-top: clamp(1.7rem, 3vw, 2.3rem);
}

.rollout-comparison {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.rollout-card {
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.rollout-card h3 {
  margin: 0 0 0.85rem;
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

.video-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.video-pair figure {
  min-width: 0;
  margin: 0;
}

.video-pair span {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.video-pair video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #111a18;
  border: 1px solid rgba(222, 216, 204, 0.9);
  border-radius: var(--radius);
}

.paper-figure.wide img {
  max-height: 900px;
  object-fit: contain;
}

.rlbench50-showcase .paper-figure.wide img {
  width: 100%;
  max-height: none;
}

.displacement-figure img {
  max-height: none;
}

.small-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.small-stats div {
  min-height: 6.2rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.small-stats strong {
  display: block;
  color: var(--coral);
  font-size: 1.65rem;
  line-height: 1;
}

.small-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.note {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
}

.cite-block {
  background: var(--green-dark);
  color: #fff;
}

.cite-block h2,
.cite-block .section-kicker {
  color: #fff;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  min-width: 6.1rem;
  padding: 0.62rem 1.08rem;
  color: var(--green-dark);
  background: var(--gold);
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
}

.copy-bibtex-btn i {
  flex: 0 0 auto;
}

.copy-bibtex-btn.copied {
  color: #fff;
  background: var(--coral);
}

pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  color: #f8f4ec;
  background: #162b27;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  padding: 1.4rem clamp(1rem, 3vw, 2rem);
  color: #69736f;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .split-layout,
  .split-layout.reverse,
  .method-layout,
  .method-explainer,
  .real-layout,
  .real-evidence-grid,
  .analysis-layout,
  .rollout-grid,
  .result-table-grid,
  .simulation-details,
  .figure-pair,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .hero-copy,
  .hero-meta,
  .section-copy {
    max-width: none;
  }

  .section-heading {
    align-items: start;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .container.is-widescreen,
  .container.is-max-desktop {
    width: min(100%, calc(100% - 1.5rem)) !important;
    max-width: min(100%, calc(100% - 1.5rem)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .site-nav nav {
    width: 100%;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .site-nav nav a {
    flex: 0 0 auto;
  }

  .hero-wrap {
    padding: 2.4rem 0.75rem 1.9rem;
  }

  .hero-grid {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .hero-meta,
  .hero-visual,
  .paper-figure,
  .paper-figure img {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .hero-meta,
  .section-copy,
  .section-heading,
  .lead,
  .hero-summary,
  .author-list {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy * {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 7vw, 2.25rem);
    line-height: 1.14;
  }

  .hero-summary {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .author-list,
  .affiliation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem 0.4rem;
    line-height: 1.75;
  }

  .author-list span,
  .affiliation-list span {
    display: inline-flex;
  }

  .author-list span:not(:last-child)::after {
    content: ",";
  }

  .affiliation-list {
    gap: 0.12rem 0.38rem;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .affiliation-list span:not(:last-child)::after {
    margin-left: 0.38rem;
  }

  .metric-grid,
  .result-grid,
  .video-pair,
  .takeaway-grid,
  .small-stats {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 5.5rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
    max-width: 100%;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .paper-button {
    min-width: 0;
    width: 100%;
  }

  .bibtex-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-callout {
    grid-template-columns: 1fr;
  }

  .method-layout,
  .method-explainer,
  .real-layout,
  .real-evidence-grid,
  .analysis-layout {
    gap: 1rem;
  }

  .paper-figure.real-figure {
    margin-top: 1.4rem;
  }

  .simulation-details {
    gap: 1rem;
  }

  .table-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .label-source-key {
    grid-template-columns: 1fr;
    padding: 0.78rem 0.85rem;
    font-size: 0.82rem;
  }

  .academic-table {
    min-width: 0;
    font-size: clamp(0.7rem, 2.6vw, 0.86rem);
  }

  .academic-table th,
  .academic-table td {
    padding: 0.52rem 0.42rem;
  }

  .equation {
    padding: 0.58rem;
    font-size: 0.82rem;
  }

  pre {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.92rem;
  }

  .author-list {
    font-size: 1rem;
  }

  .affiliation-list {
    font-size: 0.8rem;
  }

  .section-block {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
