:root {
  --text: #222222;
  --muted: #666666;
  --link: #176a63;
  --line: #dddddd;
  --soft: #f6f6f6;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

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

.paper-header {
  padding: 68px 0 34px;
  text-align: center;
}

.status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
}

.paper-title {
  margin: 0 auto 20px;
  font-size: 27px;
  line-height: 1.35;
}

.authors {
  margin-bottom: 20px;
  color: var(--link);
  font-size: 18px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.paper-links a {
  min-width: 112px;
  padding: 8px 14px;
  border: 1px solid #444444;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.paper-links a {
  color: #ffffff;
  background: #333333;
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.demo-section {
  padding-top: 24px;
  border-top: 0;
}

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

h2 {
  margin-bottom: 26px;
  text-align: center;
  font-size: 31px;
  line-height: 1.25;
}

h3 {
  margin: 38px 0 18px;
  font-size: 22px;
  line-height: 1.3;
}

.main-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  border: 1px solid #cccccc;
}

.caption,
figcaption,
.note {
  margin: 9px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.text-section p {
  margin-bottom: 16px;
  text-align: justify;
}

.text-section p:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 860px;
  margin: -7px auto 30px;
  color: #444444;
  text-align: center;
}

figure {
  margin: 0;
}

.full-figure img {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d4d4d4;
}

.result-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.result-figures img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #dddddd;
}

.note {
  margin-top: 22px;
}

.video-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111111;
  border: 1px solid #d0d0d0;
}

.maniskill-grid video {
  aspect-ratio: 20 / 9;
}

.metaworld-grid video {
  aspect-ratio: 1 / 1;
}

.video-grid figcaption {
  margin-top: 7px;
  color: var(--text);
  font-size: 14px;
}

.subsection-title {
  margin-top: 54px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.real-grid {
  margin-top: 10px;
}

footer {
  padding: 28px 0;
  color: #777777;
  background: #f1f1f1;
  border-top: 1px solid #dddddd;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 860px) {
  h1 {
    font-size: 46px;
  }

  .paper-title {
    font-size: 23px;
  }

  .result-figures {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .wide,
  .narrow {
    width: min(100% - 26px, 1120px);
  }

  .paper-header {
    padding: 44px 0 26px;
  }

  h1 {
    font-size: 40px;
  }

  .paper-title {
    font-size: 20px;
  }

  .section {
    padding: 44px 0;
  }

  h2 {
    margin-bottom: 21px;
    font-size: 27px;
  }

  .video-grid-two,
  .video-grid-three,
  .video-grid-four {
    grid-template-columns: 1fr;
  }

  .text-section p {
    text-align: left;
  }
}
