body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Tab content for video demos */
.tabs li {
  cursor: pointer;
}

.tab-content {
  padding: 1rem 0;
}

/* Video comparison styling */
video {
  border-radius: 6px;
}

/* Result tables */
.table th, .table td {
  vertical-align: middle;
}

/* Method phase boxes */
.box {
  border-radius: 8px;
}

/* ── Overview video ──────────────────────────────────────────────────── */
.cv-overview-video {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

/* ── Real-robot demos ────────────────────────────────────────────────── */
/* Clips vary in source aspect (one is 1280x720, the rest 406x720), so a
   fixed portrait box keeps every pair the same size. */
.rr-pair {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Sized to sit alongside the simulation clips without dominating the page */
.rr-item {
  flex: 0 1 380px;
  min-width: 0;
}

.rr-item video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  background: #000;
  border-radius: 6px;
}

@media screen and (max-width: 768px) {
  .rr-pair {
    gap: .75rem;
  }
}

/* ── Cinematic hero ──────────────────────────────────────────────────── */
.cv-hero {
  background: radial-gradient(120% 120% at 20% 0%, #2b3440 0%, #161b22 55%, #0d1117 100%);
  color: #fff;
  padding: 4.5rem 1.5rem 2.25rem;
  overflow-x: hidden;
}

.cv-hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
}

.cv-hero-text {
  flex: 1 1 320px;
  min-width: 0;
}

.cv-hero-text > * {
  overflow-wrap: break-word;
}

.cv-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: #7ee2a8;
  margin-bottom: 1rem;
}

.cv-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}

.cv-authors {
  font-size: 1.05rem;
  color: #e6edf3;
  margin-bottom: .3rem;
}

.cv-affil {
  font-size: .95rem;
  color: #9aa7b4;
  margin-bottom: 1.75rem;
}

.cv-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.cv-btn:hover {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transform: translateY(-1px);
}

.cv-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

/* Portrait clips sit side by side — their vertical shape suits the pairing */
.cv-hero-demo {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
}

.cv-clip {
  position: relative;
  margin: 0;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.cv-clip video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.cv-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  border: 2px solid transparent;
}

.cv-clip.is-fail::after { border-color: #e5534b; }
.cv-clip.is-pass::after { border-color: #3fb950; }

.cv-clip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem .6rem .55rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
  display: flex;
  flex-direction: column;
  gap: .1rem;
  text-align: left;
}

.cv-tag {
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}

.cv-outcome {
  font-size: .74rem;
  font-weight: 600;
}

.is-fail .cv-outcome { color: #ff8983; }
.is-pass .cv-outcome { color: #64dd7c; }

.cv-hero-note {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: .9rem;
  color: #8b98a5;
}

@media screen and (max-width: 900px) {
  .cv-hero {
    padding: 3rem 1.25rem 2rem;
  }

  .cv-hero-inner {
    flex-direction: column;
    gap: 2.25rem;
    text-align: center;
  }

  .cv-buttons {
    justify-content: center;
  }

  .cv-clip {
    width: 44vw;
    max-width: 190px;
  }

  .cv-hero-note {
    margin-top: 1.75rem;
  }
}
