:root {
  --text: #303030;
  --muted: #5c5c5c;
  --soft: #f7f8fa;
  --line: #e4e6ea;
  --blue: #1e8ee9;
  --blue-dark: #116fbe;
  --pill: #363636;
  --white: #ffffff;
  --green: #2f7c62;
  --rust: #a45d3d;
  --gold: #c79631;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Lato, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

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

.narrow {
  width: min(850px, calc(100% - 40px));
}

.hero {
  padding: 20px 0 16px;
  text-align: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 12px;
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0;
}

.title-line-1 {
  white-space: nowrap;
}

.title-subtitle {
  font-weight: 400;
}

.authors {
  max-width: 1000px;
  margin: 0 auto 8px;
  color: var(--blue);
  font-size: clamp(0.85rem, 2.3vw, 1.45rem);
  line-height: 1.35;
}

.authors a {
  color: var(--blue);
}

.affiliation {
  margin: 0;
  font-size: clamp(0.85rem, 2.3vw, 1.45rem);
  font-weight: 400;
}

.linkbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.demo-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--white);
  padding: 0 22px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.pill:hover {
  background: #252525;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.pill svg,
.pill i {
  width: 21px;
  font-size: 21px;
  line-height: 1;
  text-align: center;
}

.pill svg {
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tldr {
  width: min(1320px, calc(100% - 40px));
  padding: 48px 0 10px;
  text-align: center;
}

.tldr h2,
.paper-section h2 {
  margin: 0 0 22px;
  text-align: center;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
}

.paper-section h2 {
  font-size: clamp(calc(2rem - 2pt), calc(4vw - 2pt), calc(3rem - 2pt));
}

.tldr h2 {
  margin-bottom: 8px;
  font-size: clamp(calc(1.65rem - 2pt), calc(3.2vw - 2pt), calc(2.5rem - 2pt));
}

.tldr p,
.tldr-summary {
  max-width: 100%;
  margin: 0 auto;
  color: #4d4d4d;
  font-size: clamp(0.75rem, 2vw, 1.25rem);
  line-height: 1.72;
}

.tldr-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tldr-summary-line {
  display: block;
}

.tldr-demo {
  width: 80%;
  margin: 18px auto 0;
}

.tldr-demo-frame {
  width: 100%;
  display: block;
  line-height: 0;
  overflow: hidden;
  border: calc(2px + 2pt) solid var(--line);
  border-radius: 8px;
  background: #000;
}

.tldr-demo-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  object-fit: contain;
  pointer-events: none;
}

.material-demo {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.interactive-viewer-section .material-demo > h2,
#interactive-viewer .material-demo > h2 {
  margin-bottom: 18px;
}

.material-demo-intro,
.material-demo-copy {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #4d4d4d;
  font-size: 1.2rem;
  line-height: 1.68;
  text-align: center;
}

.material-demo-intro {
  margin-bottom: 12px;
  text-align: left;
}

.material-demo-copy {
  margin-top: 16px;
}

.material-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfc;
  padding: 16px;
}

.material-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.object-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.object-control h3,
.material-heading,
.motion-heading {
  margin: 0;
  color: #242424;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.object-count-row {
  display: flex;
  gap: 8px;
}

.object-count-button {
  width: 48px;
  height: 42px;
  border: 3px solid #cfd4dc;
  border-radius: 8px;
  background: var(--white);
  color: #262626;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 900;
}

.object-count-button.is-active,
.object-count-button[aria-pressed="true"] {
  border-color: #202020;
  background: #303030;
  color: var(--white);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(1px);
}

.object-count-button.is-disabled,
.object-count-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.material-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.material-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  border: 3px solid #cfd4dc;
  border-radius: 8px;
  background: var(--white);
  color: #262626;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.material-button:hover {
  border-color: #303030;
  box-shadow: 0 10px 20px rgba(35, 35, 35, 0.14);
  transform: translateY(-2px);
}

.material-button.is-active {
  border-color: #303030;
}

.material-button.is-active {
  background: #f3f5f7;
}

.material-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: contain;
}

.material-count {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #303030;
  color: var(--white);
  font-size: 0.95rem;
}

.motion-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.motion-preview {
  width: 100%;
}

.motion-image {
  display: block;
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.motion-update-button {
  display: grid;
  width: 88px;
  height: 46px;
  place-items: center;
  flex: 0 0 88px;
  border: 3px solid #0b4f8f;
  border-radius: 8px;
  background: #e4f4ff;
  color: #073b6f;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.motion-update-button:hover {
  border-color: #073b6f;
  background: #d2ecff;
  color: #073b6f;
  box-shadow: 0 14px 28px rgba(13, 95, 168, 0.22);
  transform: translateY(-2px);
}

.motion-update-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-update-button.is-spinning svg {
  animation: motion-spin 420ms ease;
}

.generate-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: auto;
}

.generate-note {
  margin: 8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.generate-button {
  display: inline-grid;
  grid-template-columns: 46px auto;
  min-height: 68px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 5px solid #0b4f8f;
  border-radius: 8px;
  background: #e4f4ff;
  color: #073b6f;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.generate-button:hover {
  border-color: #073b6f;
  background: #d2ecff;
  box-shadow: 0 14px 28px rgba(13, 95, 168, 0.22);
  transform: translateY(-2px);
}

.generate-button:active {
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.generate-button.is-prompted {
  animation: generate-prompt 620ms ease;
}

.generate-button.is-blank-triple {
  animation: generate-blank-triple 2s ease;
}

.generate-button.is-blank-triple .generate-icon,
.generate-button.is-blank-triple span {
  animation: generate-blank-content 2s ease;
}

.generate-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

@keyframes motion-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes generate-prompt {
  0%,
  100% {
    background: #e4f4ff;
    box-shadow: none;
    transform: translateY(0);
  }
  40% {
    background: #bfe5ff;
    box-shadow: 0 16px 32px rgba(13, 95, 168, 0.3);
    transform: translateY(-2px);
  }
}

@keyframes generate-blank-content {
  0%,
  11%,
  22%,
  33%,
  44%,
  55%,
  66%,
  77%,
  88%,
  100% {
    opacity: 1;
  }

  5.5%,
  16.5%,
  27.5% {
    opacity: 0;
  }
}

@keyframes generate-blank-triple {
  0%,
  11%,
  22%,
  33%,
  44%,
  55%,
  66%,
  77%,
  88%,
  100% {
    background: #e4f4ff;
    border-color: #0b4f8f;
    box-shadow: none;
    transform: translateY(0);
  }

  5.5%,
  16.5%,
  27.5% {
    background: #ffffff;
    border-color: #cfd4dc;
    box-shadow: none;
    transform: translateY(0);
  }
}

.material-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  aspect-ratio: 800 / 666;
}

.material-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.material-demo-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.material-demo-video.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.paper-section {
  padding: 72px 0;
}

.alt-section {
  background: var(--soft);
}

.paper-section p {
  margin: 0;
  color: #4d4d4d;
  font-size: 1.16rem;
  line-height: 1.72;
}

#abstract p {
  text-align: justify;
}

main > section:not(.tldr):nth-child(even) {
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

main > section:not(.tldr):nth-child(odd) {
  width: 100%;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

main > section.tldr + section.paper-section {
  border-top: none;
}

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

#highlights .container {
  width: min(1320px, calc(100% - 40px));
}

#highlights .method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#highlights .method-grid article > p {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
}

#highlights .method-grid .step {
  flex-shrink: 0;
  margin-top: 2px;
}

#highlights .contribution-text {
  flex: 1;
  min-width: 0;
}

.method-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.step {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #202020;
  color: var(--white);
  font-weight: 760;
}

.method-grid h3 {
  margin: 17px 0 8px;
  color: #242424;
  font-size: 1.25rem;
}

.method-grid p {
  font-size: 1rem;
  line-height: 1.62;
}

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

.architecture-figure {
  max-width: 1080px;
  margin: 0 auto;
}

.architecture-figure img {
  display: block;
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.architecture-figure figcaption {
  width: 100%;
  max-width: 1080px;
  margin: 22px auto 0;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: justify;
}

.test-set-copy {
  width: 100%;
  max-width: 1080px;
  margin: 30px auto 22px;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: justify;
}

.test-set-toolbar {
  display: flex;
  justify-content: center;
}

.test-set-browser {
  display: grid;
  width: min(100%, 690px);
  gap: 12px;
}

.test-set-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}

.test-set-row h3 {
  margin: 0;
  color: #242424;
  font-size: 1.08rem;
  font-weight: 850;
}

.test-set-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.test-set-preview {
  flex: 0 0 118px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f3f5f7;
  color: #242424;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.test-set-preview:hover,
.test-set-preview[aria-current="true"] {
  border-color: #303030;
  box-shadow: 0 10px 22px rgba(35, 35, 35, 0.16);
  transform: translateY(-1px);
}

.test-set-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.test-set-replay-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.test-set-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 10px;
}

.test-set-generation-grid {
  display: contents;
}

.test-set-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.test-set-player-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.test-set-player-header h3 {
  margin: 0;
  color: #242424;
  font-size: 1.08rem;
  font-weight: 850;
}

.test-set-player-header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.test-set-video-box {
  aspect-ratio: var(--video-ar, 16 / 9);
}

.baseline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}

.baseline-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.baseline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.baseline-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.baseline-speed-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.baseline-label {
  color: #272727;
  font-size: 0.98rem;
  font-weight: 700;
}

.baseline-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.baseline-dot,
.baseline-replay,
.baseline-select {
  min-height: 34px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.baseline-dot,
.baseline-replay {
  cursor: pointer;
}

.baseline-dot {
  min-width: 34px;
  padding: 0 10px;
}

.baseline-dot[aria-current="true"],
.baseline-replay {
  border-color: #272727;
  background: #303030;
  color: var(--white);
}

.baseline-replay {
  padding: 0 14px;
}

.baseline-select {
  width: 118px;
  padding: 0 8px;
}

.baseline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.baseline-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.baseline-card-header {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.baseline-card-header h3 {
  margin: 0;
  color: #242424;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.baseline-video-box {
  width: 100%;
  aspect-ratio: var(--video-ar, 10 / 9);
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.baseline-video-box video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.physics-adherence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.physics-adherence-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 14px;
}

.physics-adherence-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.physics-adherence-tab {
  min-height: 42px;
  border: 1px solid #cfd4dc;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.physics-adherence-tab:hover {
  border-color: #303030;
  transform: translateY(-1px);
}

.physics-adherence-tab.is-active,
.physics-adherence-tab[aria-selected="true"] {
  border-color: #272727;
  background: #303030;
  color: var(--white);
}

.physics-adherence-toolbar .baseline-actions {
  flex: 0 0 auto;
}

.physics-adherence-example {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.physics-adherence-video-box {
  --video-ar: 10 / 9;
}

.physics-adherence-video-box video {
  object-fit: cover;
}

.denoising-steps-header {
  display: grid;
  gap: 14px;
}

.denoising-steps-header h2 {
  margin-bottom: 0;
}

.denoising-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.denoising-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.denoising-tab {
  min-height: 42px;
  border: 1px solid #cfd4dc;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.denoising-tab:hover {
  border-color: #303030;
  transform: translateY(-1px);
}

.denoising-tab.is-active,
.denoising-tab[aria-selected="true"] {
  border-color: #272727;
  background: #303030;
  color: var(--white);
}

.denoising-replay {
  flex: 0 0 auto;
}

.denoising-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.denoising-card .baseline-card-header {
  justify-content: center;
  min-height: 46px;
}

.denoising-card .baseline-card-header h3 {
  font-size: 0.96rem;
  text-align: center;
}

.denoising-video-box {
  --video-ar: 10 / 9;
}

.denoising-video-box video {
  object-fit: cover;
}

.baseline-note {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: justify;
}

#baseline-comparison .baseline-note {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.baseline-note p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
}

.baseline-note p + p {
  margin-top: 16px;
}

.simulators-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: left;
}

.discussion-copy {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: justify;
}

.concurrent-works-list {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 1.2em;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: justify;
}

.concurrent-works-list li + li {
  margin-top: 14px;
}

#acknowledgements p {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.generalization-toolbar {
  margin-bottom: 18px;
}

.generalization-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.generalization-tab {
  min-height: 42px;
  border: 1px solid #cfd4dc;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.generalization-tab:hover {
  border-color: #303030;
  transform: translateY(-1px);
}

.generalization-tab.is-active,
.generalization-tab[aria-selected="true"] {
  border-color: #272727;
  background: #303030;
  color: var(--white);
}

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

.generalization-copy {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.68;
  text-align: justify;
}

.generalization-copy p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
}

.long-horizon-layout {
  display: grid;
  grid-template-columns: 490px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.long-horizon-visual {
  min-width: 0;
}

.long-horizon-toolbar {
  justify-content: flex-start;
}

.long-horizon-card {
  width: 100%;
  margin: 18px 0 0;
}

.long-horizon-video-box {
  aspect-ratio: var(--video-ar, 16 / 9);
}

.long-horizon-copy {
  max-width: 640px;
}

.long-horizon-copy p + p {
  margin-top: 16px;
}

.latex-like {
  font-family: "Cambria Math", Cambria, Georgia, "Times New Roman", serif;
  font-style: italic;
}

.result-grid figure,
.plot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.result-grid img,
.plot img {
  display: block;
  width: 100%;
  background: #fff;
}

.result-grid figcaption,
.plot figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.split h2 {
  text-align: left;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.stat-list li {
  border-left: 4px solid var(--blue);
  background: var(--white);
  padding: 13px 14px 14px;
}

.stat-list li:nth-child(2) {
  border-color: var(--green);
}

.stat-list li:nth-child(3) {
  border-color: var(--gold);
}

.stat-list strong {
  display: block;
  color: #222;
  font-size: 1.45rem;
  line-height: 1.1;
}

.stat-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.citation-box {
  position: relative;
}

.citation-copy-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 10px;
}

.copy-citation-status {
  color: #4d4d4d;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-citation-status.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.copy-citation-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #343434;
  color: var(--white);
  padding: 0;
  opacity: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.copy-citation-button:hover {
  background: #242424;
  box-shadow: 0 8px 18px rgba(35, 35, 35, 0.22);
  transform: translateY(-1px);
}

.copy-citation-button.is-copied {
  background: #0b4f8f;
}

.copy-citation-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f3f5;
  padding: 18px 64px 18px 20px;
  color: #222;
  font-size: 0.96rem;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  text-align: center;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .method-grid,
  .result-grid,
  .material-panel,
  .test-set-layout,
  .generalization-grid,
  .physics-adherence-grid,
  .long-horizon-layout,
  .split {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .test-set-generation-grid {
    grid-template-columns: 1fr;
  }

  .long-horizon-layout {
    gap: 22px;
  }

  .long-horizon-visual {
    width: min(490px, 100%);
  }

  .split h2 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 5.4vw, 2.5rem);
  }

  .authors,
  .affiliation,
  .tldr p {
    font-size: 0.85rem;
  }

  .linkbar {
    gap: 8px;
  }

  .pill {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.98rem;
  }

  .tldr {
    padding: 36px 0 10px;
  }

  .paper-section p {
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .material-demo {
    padding-bottom: 16px;
  }

  .material-panel {
    padding: 12px;
  }

  .material-buttons {
    grid-template-columns: 1fr;
  }

  .paper-section {
    padding: 54px 0;
  }

  #abstract p {
    text-align: left;
  }

  .method-grid article {
    padding: 18px;
  }

  .baseline-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .baseline-actions {
    justify-content: flex-end;
  }

  .baseline-controls {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .physics-adherence-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .physics-adherence-tabs {
    flex-direction: column;
  }

  .physics-adherence-grid {
    grid-template-columns: 1fr;
  }

  .denoising-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .denoising-tabs {
    flex-direction: column;
  }

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

  .test-set-row {
    grid-template-columns: 1fr;
  }

  .test-set-preview-grid {
    justify-content: center;
  }

  .test-set-preview {
    flex-basis: min(44vw, 118px);
  }

  .architecture-figure figcaption,
  .baseline-note,
  .generalization-copy,
  .test-set-copy,
  .discussion-copy,
  .concurrent-works-list {
    font-size: 1rem;
    line-height: 1.62;
    text-align: left;
  }

  .simulators-copy {
    text-align: left;
  }

  .material-demo-intro {
    font-size: 1.08rem;
    line-height: 1.62;
    text-align: left;
  }

  .material-demo-copy {
    font-size: 1.08rem;
    line-height: 1.62;
    text-align: center;
  }

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