/* Revisions based on paper-project-page feedback. */
.hero h1 {
  font-size: clamp(32px, 3.45vw, 50px);
  line-height: 1.1;
}

#abstract h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#abstract .abstract {
  font-size: 15px;
  line-height: 1.75;
}

.orbit-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(940px, calc(100% - 40px));
  padding: 14px;
  margin-top: 8px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.orbit-viewer {
  position: relative;
  overflow: hidden;
  max-height: 285px;
  aspect-ratio: 8 / 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(34, 53, 84, .07);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.orbit-viewer.dragging { cursor: grabbing; }

.orbit-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center;
}

.orbit-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(18, 22, 30, .58);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: .78;
  transition: opacity .2s ease;
  backdrop-filter: blur(6px);
}

.orbit-viewer.dragging .orbit-hint { opacity: 0; }

.teaser {
  margin-top: 32px;
}

.teaser h2 {
  margin: 0 0 24px;
  text-align: center;
  font-family: "Nunito Sans", sans-serif;
  font-size: 39px;
  letter-spacing: -.035em;
}

.teaser-result {
  padding: 16px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.teaser-result img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  border-radius: 9px;
}

.framework {
  margin-top: 0;
  text-align: center;
}

.framework > img {
  display: block;
  width: 100%;
  height: auto;
}

.framework figcaption {
  max-width: 940px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.table-wrap table th,
.table-wrap table td,
.table-wrap table td:nth-child(2) {
  text-align: center !important;
  vertical-align: middle !important;
}

.abstract-teaser {
  width: min(547px, calc(100vw - 40px));
  margin: 0 50% 38px;
  transform: translateX(-50%);
  padding: 16px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.abstract-teaser img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 293px;
  object-fit: contain;
  border-radius: 9px;
}

.abstract-teaser p {
  max-width: 890px;
  margin: 18px auto 2px;
  text-align: center;
  color: #555d68;
  font-size: 16px;
}

@media (max-width: 620px) {
  .hero h1 { font-size: 30px; }
  #abstract h2 { font-size: 28px; }
  #abstract .abstract { font-size: 14px; }
  .orbit-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: calc(100% - 20px); padding: 8px; }
  .teaser h2 { font-size: 32px; }
  .teaser-result { padding: 7px; }
  .teaser-result img { height: auto; }
  .framework figcaption { font-size: 12px; }
  .abstract-teaser { width: calc(100vw - 20px); padding: 7px; margin-bottom: 28px; }
  .abstract-teaser p { padding: 0 8px; font-size: 14px; }
}
