/* AdaDexGrasp project page */
:root {
  --page: #ffffff;
  --ink: #17181a;
  --muted: #666b72;
  --blue: #356ae6;
  --blue-dark: #2553bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Google Sans", "Noto Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

section[id] {
  scroll-margin-top: 76px;
}

.hero {
  width: min(1152px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(62px, 7vw, 92px) 0 58px;
  text-align: center;
}

.venue {
  margin: 20px 0 0;
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 570;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h1 strong,
h1 span {
  display: block;
}

h1 strong {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 1.06em;
  font-weight: 790;
}

h1 span:last-child {
  color: #3d4147;
}

@media (min-width: 900px) {
  h1 span {
    white-space: nowrap;
  }
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  max-width: 900px;
  margin: 30px auto 0;
  font-size: 14px;
  font-weight: 670;
  line-height: 1.5;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.author-notes {
  margin: 7px 0 0;
  color: #858a91;
  font-size: 11px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 16px;
  background: #f2f2f2;
  color: #53565a;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease;
}

.button span {
  margin-left: 8px;
  font-size: 15px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: #f2f2f2;
  color: #53565a;
}

.button-secondary {
  background: #f2f2f2;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #ececec;
}

.content-section {
  width: min(1152px, calc(100% - 48px));
  margin: 0 auto;
}

.video-section {
  padding: 0 0 64px;
}

.video-shell {
  overflow: hidden;
  background: #0d1014;
  border-radius: 8px;
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 714;
  background: #000;
}

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

.section-heading {
  margin: 0 0 30px;
  text-align: center;
}

.section-heading h2,
.compact-heading h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

figure {
  margin: 0;
}

.paper-figure {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.initial-pose-crop {
  position: relative;
  aspect-ratio: 1700 / 735;
  overflow: hidden;
}

.initial-pose-crop img {
  position: absolute;
  top: -3.4%;
  left: -1.18%;
  width: 117.647%;
  max-width: none;
  margin: 0;
}

.visual-stack {
  display: grid;
  gap: 58px;
}

.visual-block {
  display: grid;
  gap: 16px;
}

.subsection-title {
  margin: 0;
  color: #e67979;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

.results-table-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid #202124;
  border-bottom: 1.5px solid #202124;
  color: #202124;
  font-family: "Castoro", Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1.45vw, 16px);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  table-layout: fixed;
}

.results-table th,
.results-table td {
  padding: 6px 10px;
  text-align: center;
}

.results-table thead th {
  background: transparent;
  border-bottom: 1px solid #202124;
  color: inherit;
  font-weight: 500;
}

.results-table thead th:first-child {
  width: 40%;
}

.results-table tbody th {
  font-weight: 400;
  text-align: center;
}

.results-table .ours-row th {
  color: inherit;
  font-weight: 400;
}

.citation-section {
  padding: 58px 0 76px;
}

.compact-heading {
  margin-bottom: 30px;
  text-align: center;
}

.citation-section pre {
  margin: 0;
  padding: clamp(18px, 2.5vw, 28px);
  overflow-x: hidden;
  background: #f2f2f2;
  color: #2f2f2f;
  border-radius: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(10px, 1.15vw, 12px);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .hero,
  .content-section {
    width: calc(100% - 28px);
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    letter-spacing: -0.045em;
  }

  .authors {
    margin-top: 27px;
    font-size: 13px;
  }

  .video-section {
    padding-bottom: 48px;
  }

  .video-shell {
    border-radius: 6px;
  }

  .media-section {
    padding: 44px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .visual-stack {
    gap: 44px;
  }

  .results-table th,
  .results-table td {
    padding: 8px 5px;
  }

  .citation-section {
    padding: 60px 0 68px;
  }

}

@media (max-width: 440px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
