:root {
  --bg: #f5f5f1;
  --paper: #ffffff;
  --ink: #17242c;
  --muted: #626b70;
  --line: #d9ddda;
  --line-dark: #34434a;
  --blue: #246487;
  --blue-soft: #e8f0f3;
  --orange: #d86a49;
  --orange-soft: #f8ede8;
  --green: #15947e;
  --green-soft: #e7f2ef;
  --purple: #9b78a5;
  --dark: #17262e;
  --shell: 1160px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

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

*::selection {
  color: white;
  background: var(--blue);
}

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

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

button,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 0.6rem 0.85rem;
  color: white;
  background: var(--ink);
  border-radius: 7px;
  font-weight: 700;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid #63a6c7;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(23 36 44 / 10%);
  background: rgb(245 245 241 / 92%);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  fill: var(--bg);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #4e585d;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a {
  transition: color 160ms ease;
}

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

.cinematic-banner {
  max-width: var(--shell);
  margin-top: 24px;
}

.cinematic-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e6e6e0;
  border: 1px solid rgb(23 36 44 / 10%);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgb(23 36 44 / 8%);
}

.cinematic-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cinematic-banner + .paper-header {
  padding-top: 32px;
}

.paper-header {
  padding-top: 54px;
  padding-bottom: 31px;
  text-align: center;
}

.section-label,
.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.paper-header h1 {
  max-width: 1020px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  font-weight: 760;
  letter-spacing: -0.044em;
  line-height: 1.03;
}

.paper-header h1 span {
  color: var(--blue);
}

.authors {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
}

.authors sup { margin-left: 2px; font-size: 10px; font-weight: 500; }
.authors { line-height: 1.8; }
.affiliations { margin-top: 8px; color: var(--muted); font-size: 13px; }
.advising-note { margin-top: 3px; color: var(--muted); font-size: 11px; }
.institution-logo { display: block; width: 180px; margin: 10px auto; }
.institution-logo img { width: 100%; height: auto; }
.paper-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.paper-link { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 13px; font-weight: 700; }
.primary-paper-link { background: var(--ink); color: white; border-color: var(--ink); }
.paper-link:hover { border-color: var(--blue); background: var(--blue); color: white; }

.paper-summary {
  max-width: 710px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-media {
  padding-bottom: 60px;
}

.media-heading,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 365px);
  align-items: end;
  gap: 40px;
  margin-bottom: 23px;
}

.media-heading > p,
.section-heading > p {
  color: var(--muted);
}

.media-heading > p {
  justify-self: end;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.media-heading h2 {
  margin-top: 0;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.section-heading h2,
.abstract-grid h2 {
  margin-top: 5px;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.main-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgb(23 36 44 / 10%);
}

.main-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.chapters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px 0 14px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.chapters::-webkit-scrollbar {
  display: none;
}

.chapter {
  flex: 1 0 auto;
  min-width: 120px;
  padding: 9px 11px;
  color: #596268;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background 160ms ease;
}

.chapter:hover,
.chapter.is-active {
  color: var(--ink);
  background: #e9ebe8;
}

.chapter span {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.headline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  border-block: 1px solid var(--line);
}

.headline-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

.headline-stats > div:first-child {
  padding-left: 0;
}

.headline-stats > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.headline-stats dt {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.headline-stats dd {
  color: var(--blue);
  font-size: 31px;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1;
}

.headline-stats dd span {
  margin-left: 1px;
  font-size: 17px;
}

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

.compact-heading {
  margin-bottom: 13px;
}

.contribution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contribution-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  min-width: 0;
  padding: 30px 27px 2px;
  border-right: 1px solid var(--line);
}

.contribution-list li:first-child {
  padding-left: 0;
}

.contribution-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.contribution-icon {
  width: 49px;
  height: 49px;
  color: #2b3c45;
}

.contribution-list span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.contribution-list h3 {
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.contribution-list p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.method-section {
  color: white;
  background: var(--dark);
}

.inverse-heading .section-label {
  color: #73c7b7;
}

.inverse-heading > p {
  color: #bbc5c9;
}

.method-media {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: var(--radius);
}

.ambient-video {
  width: 100%;
}

.method-media video {
  aspect-ratio: 1200 / 504;
  object-fit: contain;
  background: white;
}

.clip-toggle {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: rgb(15 21 25 / 76%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.clip-toggle:hover {
  background: var(--blue);
  transform: scale(1.04);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 27px 0 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  padding-right: 22px;
  border-right: 1px solid var(--line-dark);
}

.method-steps li + li {
  padding-left: 22px;
}

.method-steps li:last-child {
  padding-right: 0;
  border-right: 0;
}

.method-steps > li > span {
  color: #73c7b7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.method-steps h3 {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.method-steps p {
  margin-top: 4px;
  color: #abb7bc;
  font-size: 12px;
  line-height: 1.5;
}

.task-section {
  background: var(--bg);
}

.policy-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.policy-video-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgb(23 36 44 / 6%);
}

.policy-video-frame,
.benchmark-video-wrap {
  position: relative;
  overflow: hidden;
}

.policy-video-frame {
  background: #12191e;
}

.policy-video-frame.ratio-four-three {
  aspect-ratio: 4 / 3;
}

.policy-video-frame.ratio-wide {
  aspect-ratio: 16 / 9;
}

.policy-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-context {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  color: white;
  background: rgb(15 22 27 / 75%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.policy-video-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 16px 18px 17px;
}

.policy-video-copy > div > p {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-video-copy h3 {
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: -0.022em;
}

.policy-video-copy dl {
  display: flex;
  gap: 17px;
}

.policy-video-copy dl div {
  display: flex;
  flex-direction: column-reverse;
  min-width: 57px;
}

.policy-video-copy dt {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.policy-video-copy dd {
  color: var(--blue);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.four-arm-section {
  color: white;
  background: #132129;
}

.four-arm-section .section-heading > p {
  color: #acb9be;
}

.four-arm-group + .four-arm-group {
  margin-top: 42px;
  padding-top: 37px;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.gallery-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.gallery-heading > div > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #0e2427;
  background: #73c7b7;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 850;
}

.gallery-heading h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.gallery-heading > p {
  color: #93a3a9;
  font-size: 10px;
}

.four-arm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.four-arm-card {
  overflow: hidden;
  background: #0d181e;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 11px;
}

.four-arm-frame {
  position: relative;
  overflow: hidden;
  background: #080d10;
}

.cross-view-grid .four-arm-frame {
  aspect-ratio: 8 / 3;
}

.normal-view-grid .four-arm-frame {
  aspect-ratio: 16 / 9;
}

.four-arm-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.four-arm-card h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px 12px;
  color: #eff5f5;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.four-arm-card h4 span {
  color: #829298;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.comparison-video-section {
  background: white;
}

.method-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  align-items: stretch;
}

.comparison-player-wrap {
  overflow: hidden;
  min-width: 0;
  background: #0e1519;
  border: 1px solid #cfd5d5;
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgb(23 36 44 / 8%);
}

.comparison-player-wrap video {
  width: 100%;
  aspect-ratio: 1280 / 552;
  object-fit: contain;
  background: #080c0f;
  opacity: 1;
  transition: opacity 150ms ease;
}

.comparison-player-wrap video.is-switching {
  opacity: 0.32;
}

.comparison-player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px 13px;
  color: white;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.comparison-player-caption p {
  font-size: 13px;
  font-weight: 750;
}

.comparison-player-caption span {
  color: #9fafb5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-selector {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.comparison-selector button {
  position: relative;
  display: flex;
  min-height: 51px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 13px 9px 16px;
  overflow: hidden;
  color: #3f4c52;
  background: #f4f5f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.comparison-selector button::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  background: transparent;
  border-radius: 0 3px 3px 0;
  content: "";
}

.comparison-selector button:hover {
  color: var(--blue);
  background: #edf2f3;
  border-color: #c6d5da;
}

.comparison-selector button.is-active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.comparison-selector button.is-active::before {
  background: #7fd4c3;
}

.comparison-selector span {
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.comparison-selector small {
  margin-top: 3px;
  color: #7b878b;
  font-size: 8px;
  font-weight: 690;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.comparison-selector button.is-active small {
  color: rgb(255 255 255 / 70%);
}

.comparison-section {
  background: var(--blue-soft);
  border-block: 1px solid #d4e0e4;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.metric-switch {
  display: inline-flex;
  padding: 4px;
  background: rgb(255 255 255 / 64%);
  border: 1px solid #cfdbdf;
  border-radius: 999px;
}

.metric-switch button {
  padding: 8px 13px;
  color: #57666d;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.metric-switch button.is-active {
  color: white;
  background: var(--blue);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 18px;
  color: #506067;
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend-sg,
.bar-sg i {
  background: var(--blue);
}

.legend-tuned,
.bar-tuned i {
  background: var(--orange);
}

.legend-base,
.bar-base i {
  background: #7c8a90;
}

.comparison-chart {
  position: relative;
  overflow-x: auto;
  padding: 22px 20px 13px;
  background: rgb(255 255 255 / 76%);
  border: 1px solid #cedbdf;
  border-radius: var(--radius);
}

.chart-y-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10px;
  color: #65757c;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translate(-26%, -50%) rotate(-90deg);
}

.chart-plot {
  position: relative;
  min-width: 820px;
  height: 365px;
  margin-left: 36px;
  padding-left: 42px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(25% - 1px),
    rgb(76 104 116 / 15%) calc(25% - 1px),
    rgb(76 104 116 / 15%) 25%
  );
  border-bottom: 1px solid #aebdc3;
}

.chart-ticks {
  position: absolute;
  top: -8px;
  bottom: -7px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #718188;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.chart-groups {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 16px;
}

.chart-group {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) 57px;
}

.group-bars {
  display: flex;
  height: 100%;
  align-items: end;
  justify-content: center;
  gap: 7px;
  padding: 21px 11px 0;
}

.comparison-bar {
  display: flex;
  width: 26%;
  height: 100%;
  max-width: 36px;
  flex-direction: column;
  justify-content: flex-end;
}

.comparison-bar span {
  margin-bottom: 4px;
  color: #46565d;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.comparison-bar i {
  display: block;
  width: 100%;
  height: 0;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: height 800ms cubic-bezier(0.2, 0.76, 0.25, 1);
}

.comparison-chart.is-visible .comparison-bar i {
  height: calc(var(--bar-value, 0) * 1%);
}

.chart-group > p {
  padding-top: 10px;
  color: #35454c;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.chart-group small {
  color: #738087;
  font-size: 9px;
  font-weight: 600;
}

.protocol-note {
  margin-top: 10px;
  color: #69777d;
  font-size: 10px;
}

.benchmark-section {
  background: white;
}

.benchmark-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rail-controls {
  display: flex;
  gap: 7px;
}

.rail-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  transition: color 160ms ease, background 160ms ease;
}

.rail-controls button:hover {
  color: white;
  background: var(--blue);
}

.benchmark-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) 26px minmax(0, 1.08fr) 26px minmax(0, 0.82fr) 26px minmax(0, 0.95fr);
  align-items: stretch;
  gap: 6px;
  margin-bottom: 26px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.benchmark-flow > div {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 15px;
  background: rgb(255 255 255 / 72%);
  border-radius: 9px;
}

.benchmark-flow > i {
  align-self: center;
  color: #95a09d;
  font-size: 15px;
  font-style: normal;
  text-align: center;
}

.benchmark-flow span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.benchmark-flow strong {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.benchmark-flow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.benchmark-flow .flow-output {
  background: var(--blue);
}

.benchmark-flow .flow-output span,
.benchmark-flow .flow-output strong {
  color: white;
}

.benchmark-flow .flow-output small {
  color: rgb(255 255 255 / 72%);
}

.benchmark-video-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -4px 0 13px;
  color: #68757a;
  font-size: 10px;
}

.benchmark-video-note span {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.benchmark-rail {
  display: grid;
  grid-auto-columns: min(72vw, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 1px 1px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #bac2bf transparent;
  scrollbar-width: thin;
}

.benchmark-card {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  scroll-snap-align: start;
}

.benchmark-video-wrap {
  aspect-ratio: 4 / 3;
  background: #0f1316;
}

.benchmark-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benchmark-card > div:last-child {
  display: block;
  padding: 14px 16px 15px;
}

.benchmark-card h3 {
  flex: 0 0 auto;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.benchmark-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.benchmark-card p b {
  color: var(--blue);
}

.benchmark-summary {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 45px;
  margin-top: 34px;
  padding: 36px 40px;
  color: white;
  background: var(--dark);
  border-radius: var(--radius);
}

.benchmark-summary .section-label {
  color: #73c7b7;
}

.benchmark-summary-copy h3 {
  margin-top: 7px;
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.benchmark-summary-copy > p:last-child {
  margin-top: 10px;
  color: #aebbc0;
  font-size: 12px;
}

.paired-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: stretch;
  gap: 30px;
}

.paired-chart > p {
  margin-bottom: 13px;
  color: #cbd3d6;
  font-size: 11px;
  font-weight: 700;
}

.paired-chart > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 43px;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  color: #aebbc0;
  font-size: 10px;
}

.paired-chart i {
  display: block;
  overflow: hidden;
  height: 7px;
  background: rgb(255 255 255 / 13%);
  border-radius: 999px;
}

.paired-chart em {
  display: block;
  width: 0;
  height: 100%;
  background: #87959b;
  border-radius: inherit;
  transition: width 900ms cubic-bezier(0.2, 0.76, 0.25, 1);
}

[data-animate-horizontal].is-visible em {
  width: var(--bar);
}

.paired-chart .ours {
  color: white;
}

.paired-chart .ours em {
  background: #59bca9;
}

.paired-chart b {
  color: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.shorter-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.shorter-stat strong {
  color: #73c7b7;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.shorter-stat strong span {
  font-size: 18px;
}

.shorter-stat p {
  margin-top: 7px;
  color: #aebbc0;
  font-size: 10px;
}

.transfer-section {
  background: var(--orange-soft);
  border-block: 1px solid #eadbd4;
}

.speed-note {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 7px;
  color: #8f4e39;
  background: rgb(255 255 255 / 58%);
  border: 1px solid #e5ccc1;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.transfer-route {
  padding-top: 6px;
}

.transfer-route + .transfer-route {
  margin-top: 47px;
  padding-top: 42px;
  border-top: 1px solid #ddc9bf;
}

.transfer-route-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  align-items: end;
  gap: 34px;
  margin-bottom: 18px;
}

.transfer-route-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.transfer-route-heading > div > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 850;
}

.transfer-route-heading h3 {
  margin-top: 1px;
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.transfer-route-heading > div p {
  color: #8a6f64;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.transfer-route-heading > p {
  padding-left: 18px;
  color: #75665f;
  border-left: 1px solid #ddc9bf;
  font-size: 11px;
  line-height: 1.5;
}

.transfer-route-heading > p strong {
  color: var(--orange);
  font-size: 14px;
}

.real-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.real-video-card {
  overflow: hidden;
  background: white;
  border: 1px solid #decfc8;
  border-radius: 12px;
  box-shadow: 0 11px 30px rgb(68 39 28 / 7%);
}

.real-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #151a1c;
}

.real-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.real-video-card > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
  padding: 13px 15px 14px;
}

.real-video-card p {
  grid-column: 1;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.real-video-card span {
  grid-column: 1;
  color: #8a7971;
  font-size: 9px;
  font-weight: 650;
}

.real-video-card strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--orange);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.real-video-card strong.variant-badge {
  justify-self: end;
  padding: 6px 9px;
  color: #8f4e39;
  background: #fbede7;
  border: 1px solid #efd6cc;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.abstract-section {
  background: white;
}

.abstract-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 62px;
}

.abstract-copy {
  columns: 2;
  column-gap: 38px;
  color: #4f595e;
  font-size: 13px;
  line-height: 1.7;
}

.abstract-copy p {
  break-inside: avoid;
  margin-bottom: 14px;
}

.site-footer {
  color: #c8d0d3;
  background: #121c21;
  border-top: 1px solid #23333a;
}

.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
}

.footer-brand {
  color: white;
}

.footer-inner > a:last-child {
  color: #8fcbbf;
  font-weight: 700;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms ease, transform 650ms cubic-bezier(0.2, 0.76, 0.25, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 17px;
  }

  .section {
    padding: 58px 0;
  }

  .media-heading,
  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 30px;
  }

  .contribution-list li {
    grid-template-columns: 42px 1fr;
    gap: 13px;
    padding-inline: 19px;
  }

  .contribution-icon {
    width: 40px;
    height: 40px;
  }

  .method-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .method-steps li:nth-child(2) {
    border-right: 0;
  }

  .method-steps li:nth-child(3) {
    padding-left: 0;
  }

  .policy-video-copy {
    gap: 14px;
    padding-inline: 15px;
  }

  .policy-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-video-card:last-child {
    width: calc(50% - 9px);
    grid-column: 1 / -1;
    justify-self: center;
  }

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

  .comparison-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .benchmark-summary {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .nav-inner {
    gap: 20px;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 19px 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .paper-header {
    padding-top: 50px;
    padding-bottom: 30px;
  }

  .paper-header h1 {
    font-size: clamp(2rem, 8.7vw, 2.75rem);
  }

  .paper-summary {
    font-size: 14px;
  }

  .hero-media {
    padding-bottom: 56px;
  }

  .media-heading,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .media-heading > p {
    justify-self: start;
  }

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

  .headline-stats > div,
  .headline-stats > div:first-child,
  .headline-stats > div:last-child {
    padding: 18px 15px;
  }

  .headline-stats > div:nth-child(2) {
    border-right: 0;
  }

  .headline-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .contribution-list li,
  .contribution-list li:first-child,
  .contribution-list li:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contribution-list li:last-child {
    border-bottom: 0;
  }

  .policy-video-grid {
    grid-template-columns: 1fr;
  }

  .policy-video-card:last-child {
    width: 100%;
    grid-column: auto;
  }

  .comparison-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .comparison-chart {
    padding-left: 8px;
  }

  .benchmark-rail {
    grid-auto-columns: min(82vw, 360px);
  }

  .benchmark-card > div:last-child {
    display: block;
  }

  .benchmark-card p {
    margin-top: 3px;
    text-align: left;
  }

  .benchmark-flow {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .benchmark-flow > div {
    min-height: 0;
    padding: 13px 15px;
  }

  .benchmark-flow > i {
    transform: rotate(90deg);
  }

  .transfer-route-heading {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .transfer-route-heading > p {
    padding-left: 0;
    border-left: 0;
  }

  .abstract-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .abstract-copy {
    columns: 1;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 14px;
  }

  .site-header {
    position: relative;
  }

  .nav-inner {
    display: block;
    padding-top: 13px;
  }

  .site-nav {
    margin-inline: -2px;
    padding-block: 11px 14px;
  }

  .section {
    padding: 46px 0;
  }

  .paper-header h1 {
    font-size: 1.95rem;
    letter-spacing: -0.038em;
  }

  .section-heading h2,
  .abstract-grid h2 {
    font-size: 1.68rem;
  }

  .authors {
    margin-top: 16px;
  }

  .chapter {
    min-width: 102px;
  }

  .headline-stats dd {
    font-size: 26px;
  }

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

  .method-steps li,
  .method-steps li + li,
  .method-steps li:nth-child(3) {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .method-steps li:last-child {
    border-bottom: 0;
  }

  .policy-video-grid,
  .real-video-grid {
    grid-template-columns: 1fr;
  }

  .four-arm-grid {
    grid-template-columns: 1fr;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .comparison-player-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .policy-video-copy {
    padding: 14px 15px 15px;
  }

  .metric-switch {
    width: 100%;
  }

  .metric-switch button {
    flex: 1;
    padding-inline: 9px;
    font-size: 10px;
  }

  .benchmark-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .benchmark-summary {
    padding: 27px 22px;
  }

  .paired-metrics {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .shorter-stat {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

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

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

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
