html {
  background-color: #ffffff;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #ffffff;
  color: #363636;
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-body {
  color: #363636;
}

.title {
  color: #363636 !important;
}

.publication-title {
  color: #363636 !important;
}

.publication-authors {
  color: #363636;
}

.content {
  color: #4a4a4a;
}

.content p {
  color: #4a4a4a;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: #363636 !important;
}

.has-text-justified {
  color: #4a4a4a;
}

.nav-item {
  background-color: #f5f5f5;
  border: 1px solid #dbdbdb;
  color: #363636;
}

.nav-tabs .nav-link.active {
  background-color: #3273dc;
  color: #ffffff;
  font-weight: 500;
}

.footer {
  background-color: #f5f7fa;
  color: #7a7a7a;
  border-top: 1px solid #e8eaed;
  padding: 2rem 1.5rem;
}

.footer a {
  color: #3273dc;
}

.footer .content p {
  color: #7a7a7a;
  font-size: 0.9em;
  line-height: 1.6;
}

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

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

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

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


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

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

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

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors a {
   color: #3273dc !important;
}

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

.publication-authors .affiliation-link {
  color: #4a4a4a !important;
  text-decoration: none !important;
  font-weight: inherit !important;
}

.publication-authors .affiliation-link:hover {
  color: #4a4a4a !important;
  text-decoration: none !important;
  font-weight: inherit !important;
}

.publication-authors.affiliations {
  margin-top: 20px;
}

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

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

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

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

li { 
  cursor: pointer;
}

.nav-item {
  overflow: hidden;
  text-align: center;
  width: 100%;
  background-color: #f8f9fc;
  float: left;
  border: 1px solid #e4e7ef;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  color: #363636;
}

.nav-item:hover {
  background-color: #eef1f8;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #3273dc 0%, #2760c0 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav a {
  color: #4a4a4a;
  text-decoration: none;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  padding: 12px 0;
  display: block;
}
.nav a:hover {
  color: #3273dc;
  font-weight: 500;
  text-decoration: none;
}

.b-dics__slider {
  color: #363636;
}
.b-dics__slider:after {
  width: 2px;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.content-row {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
}

.demo-scene-panel {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
  color: #363636;
  border-radius: 7px;
  border: #dbdbdb 1px solid;
  background-color: #f5f5f5;
  width: 220px;
  margin-left: 8px;
  margin-right: 8px;
}

.method-caption {
  text-align: left;
  margin: 20px 0 0 0;
  padding: 18px 24px;
  font-style: normal;
  color: #4a4a4a;
  font-size: 1.05em;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eeeeee;
  font-family: 'Google Sans', sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.method-caption:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.method-caption strong {
  color: #3273dc;
  font-weight: 600;
}

.method-caption em {
  color: #363636;
  font-weight: 500;
}

.tldr-caption {
  text-align: left;
  margin: 20px 0;
  padding: 20px 28px;
  background: #f5f7fa;
  border-left: 4px solid #3273dc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1em;
  line-height: 1.7;
  color: #4a4a4a;
  position: relative;
  transition: all 0.3s ease;
}

.tldr-caption:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tldr-caption::before {
  content: "TL;DR";
  position: absolute;
  top: -8px;
  left: 20px;
  background: #3273dc;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tldr-caption strong {
  color: #3273dc;
  font-weight: 600;
}

/* Mobile responsive title */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  
  .publication-title img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px !important;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 1.2rem !important;
    line-height: 1.25;
  }
  
  .publication-title img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 4px !important;
  }
}

/* Mobile responsive TL;DR caption */
@media screen and (max-width: 768px) {
  .tldr-caption {
    font-size: 1rem;
    padding: 16px 20px;
    margin: 15px 0;
  }
  
  .tldr-caption::before {
    font-size: 0.75em;
    padding: 3px 10px;
  }
}

@media screen and (max-width: 480px) {
  .tldr-caption {
    font-size: 0.9rem;
    padding: 14px 16px;
    margin: 12px 0;
  }
  
  .tldr-caption::before {
    font-size: 0.7em;
    padding: 2px 8px;
  }
}


/* Mobile responsive author names and links */
@media screen and (max-width: 768px) {
  .publication-authors {
    font-size: 0.9rem !important;
    line-height: 1.4;
  }
  
  .author-block {
    margin-bottom: 4px;
  }
  
  .publication-links .link-block {
    margin: 3px 2px;
  }
  
  .publication-links .button {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
}

@media screen and (max-width: 480px) {
  .publication-authors {
    font-size: 0.8rem !important;
    line-height: 1.3;
  }
  
  .author-block {
    margin-bottom: 3px;
    display: inline-block;
    margin-right: 8px;
  }
  
  .publication-links .link-block {
    margin: 2px 1px;
    width: 100%;
  }
  
  .publication-links .button {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
    width: 100%;
  }
  
  .publication-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

pre.bibtex-container {
  background: #f5f7fa;
  border: 1px solid #dbdbdb;
  border-left: 3px solid #3273dc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  padding: 20px;
  color: #4a4a4a;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}

pre.bibtex-container code {
  font-family: 'Courier New', Courier, monospace;
  background: none;
  color: inherit;
  font-size: 0.9em;
  text-align: left;
}

/* Unified media styling for consistent width across all videos and figures */
.media-container {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  display: block;
}

.media-container video,
.media-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

video {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.content img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.b-dics {
  margin: 30px auto !important;
}

#References .content a {
  color: #3273dc !important;
  font-weight: 500;
  text-decoration: none;
}

#References .content a:hover {
  color: #2160c4 !important;
  text-decoration: underline;
}

/* Responsive navigation for example selectors */
@media (max-width: 768px) {
  .responsive-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .responsive-nav::-webkit-scrollbar {
    display: none;
  }

  .responsive-nav .nav-item {
    flex-shrink: 0;
  }
}

/* =====================================================
   YouTube Driving Videos Section
   ===================================================== */

.yt-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.yt-carousel {
  flex: 1;
  min-width: 0;
  position: relative;
  background: #000;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.yt-carousel-inner {
  position: relative;
  width: 100%;
}

.yt-slide {
  display: none;
}

.yt-slide.active {
  display: block;
  animation: ytFadeIn 0.3s ease;
}

@keyframes ytFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.yt-slide video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  max-width: 100%;
  margin: 0;
}

.yt-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #dbdbdb;
  border-radius: 50%;
  background: #fff;
  color: #4a4a4a;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.yt-arrow:hover {
  background: #3273dc;
  border-color: #3273dc;
  color: #fff;
  box-shadow: 0 2px 8px rgba(50, 115, 220, 0.3);
}

.yt-carousel-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 4px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.82em;
  font-weight: 500;
  color: #fff;
}

#yt-category-tabs .nav-link i {
  margin-right: 6px;
  font-size: 0.9em;
  opacity: 0.85;
}

#yt-category-tabs .nav-link.active i {
  opacity: 1;
}

.yt-section-desc {
  text-align: left;
  margin: 0 0 20px;
  padding: 16px 22px;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.98em;
  line-height: 1.6;
  color: #4a4a4a;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.yt-section-desc strong {
  color: #3273dc;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .yt-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .yt-arrow-left { left: 6px; }
  .yt-arrow-right { right: 6px; }
}

/* =====================================================
   Latent Action Visualization Section
   ===================================================== */

.viz-toggle-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.viz-toggle {
  padding: 10px 24px;
  border: 2px solid #dbdbdb;
  border-radius: 24px;
  background: #fff;
  color: #4a4a4a;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.viz-toggle:hover {
  border-color: #3273dc;
  color: #3273dc;
}

.viz-toggle.active {
  background: #3273dc;
  border-color: #3273dc;
  color: #fff;
  box-shadow: 0 2px 8px rgba(50, 115, 220, 0.3);
}

.viz-toggle i {
  margin-right: 6px;
}

.viz-plot-wrapper {
  position: relative;
  background: #f5f7fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px 12px 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#viz-plot {
  width: 100%;
  height: 560px;
}

#viz-plot .modebar {
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

#viz-plot .modebar:hover {
  opacity: 0.9;
}

.viz-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}

.viz-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e8eaed;
  border-top-color: #3273dc;
  border-radius: 50%;
  animation: vizSpin 0.8s linear infinite;
}

@keyframes vizSpin {
  to { transform: rotate(360deg); }
}

.viz-loader-text {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9em;
  color: #7a7a7a;
}

.viz-loader-bar {
  width: 200px;
  height: 4px;
  background: #e8eaed;
  border-radius: 2px;
  overflow: hidden;
}

.viz-loader-fill {
  height: 100%;
  width: 0%;
  background: #3273dc;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Intro overlay — first-interaction onboarding over the plot */

.viz-intro-overlay {
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 247, 250, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  z-index: 20;
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  font-family: 'Google Sans', sans-serif;
}

.viz-intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.viz-intro-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 28px 40px 22px;
  max-width: 520px;
  text-align: center;
  animation: vizIntroBreathe 1.6s ease-in-out infinite;
}

.viz-intro-overlay:hover .viz-intro-card,
.viz-intro-overlay:hover .viz-intro-cta {
  animation-play-state: paused;
}

@keyframes vizIntroBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 16px 44px rgba(50, 115, 220, 0.22);
  }
}

.viz-intro-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #363636;
  margin-bottom: 18px;
}

.viz-intro-title i {
  color: #3273dc;
  margin-right: 8px;
}

.viz-intro-hints {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.viz-intro-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1em;
  color: #5a5a5a;
}

.viz-intro-hint i {
  color: #3273dc;
  width: 20px;
  text-align: center;
  font-size: 1.05em;
}

.viz-intro-hint strong {
  color: #363636;
  font-weight: 600;
}

.viz-intro-cta {
  font-size: 0.85em;
  color: #7a7a7a;
  letter-spacing: 0.02em;
  padding-top: 12px;
  border-top: 1px dashed #e8eaed;
  animation: vizIntroCtaPulse 1.2s ease-in-out infinite;
}

@keyframes vizIntroCtaPulse {
  0%, 100% {
    opacity: 0.6;
    color: #7a7a7a;
  }
  50% {
    opacity: 1;
    color: #3273dc;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz-intro-card,
  .viz-intro-cta {
    animation: none;
  }
}

.viz-instructions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 14px 0 6px;
  font-size: 1em;
  color: #5a5a5a;
  font-family: 'Google Sans', sans-serif;
}

.viz-instructions i {
  margin-right: 7px;
  color: #3273dc;
}

.viz-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1.5px solid #dbdbdb;
  border-radius: 18px;
  background: #fff;
  color: #7a7a7a;
  font-size: 1em;
  font-family: 'Google Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.viz-clear-btn:hover {
  border-color: #3273dc;
  color: #3273dc;
  background: #eef3ff;
}

.viz-clear-btn i {
  font-size: 0.9em;
}

/* Floating overlay (detail panel inside the plot) */

.viz-overlay {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 420px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(50, 115, 220, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 16px;
  text-align: left;
  animation: vizFadeIn 0.25s ease;
}

.viz-overlay.is-visible {
  display: block;
}

@keyframes vizFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.viz-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.viz-overlay-close:hover {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  transform: scale(1.08);
}

.viz-overlay .viz-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  padding-right: 20px;
}

.viz-overlay-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.viz-overlay-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  display: block;
}

.viz-overlay .viz-anim-toolbar {
  margin-bottom: 0;
  padding: 8px 10px;
  gap: 8px;
}

.viz-overlay .viz-anim-btn {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.viz-overlay .viz-anim-label {
  font-size: 0.78em;
  min-width: 55px;
}

.viz-overlay .viz-anim-speed {
  display: none;
}

/* Panels (area selection) */

.viz-panel {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: left;
  animation: vizSlideIn 0.35s ease;
}

.viz-panel.is-visible {
  display: block;
}

@keyframes vizSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.viz-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.viz-panel-header h3 {
  margin: 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15em;
  font-weight: 600;
  color: #363636;
}

.viz-close-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.viz-close-btn:hover {
  background: #e0e0e0;
  color: #333;
}

.viz-area-count {
  font-size: 0.85em;
  color: #7a7a7a;
  font-family: 'Google Sans', sans-serif;
}

/* Badges (shared) */

.viz-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.viz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72em;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
}

.viz-badge-batch {
  background: #eef3ff;
  color: #3273dc;
}

.viz-badge-timestep {
  background: #f0faf0;
  color: #2d8a4e;
}

.viz-badge-translation {
  background: #fff8e1;
  color: #b8860b;
}

.viz-badge-yaw {
  background: #fce4ec;
  color: #c62828;
}

/* Animation toolbar */

.viz-anim-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f5f7fa;
  border-radius: 10px;
  border: 1px solid #e8eaed;
}

.viz-anim-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #3273dc;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.viz-anim-btn:hover {
  background: #2160c4;
  transform: scale(1.05);
}

.viz-anim-btn.is-loading {
  position: relative;
  pointer-events: none;
}

.viz-anim-btn.is-loading i {
  opacity: 0.35;
}

.viz-anim-btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vizSpin 0.7s linear infinite;
}

.viz-anim-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.viz-anim-track input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.viz-anim-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3273dc;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.viz-anim-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3273dc;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.viz-anim-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  color: #3273dc;
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}

.viz-anim-speed {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.viz-speed-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.viz-speed-btn:hover {
  border-color: #3273dc;
  color: #3273dc;
}

#viz-anim-speed-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.78em;
  font-weight: 500;
  color: #555;
  min-width: 30px;
  text-align: center;
}


/* Area selection grid */

.viz-area-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.viz-area-pagination button {
  padding: 7px 18px;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  background: #fff;
  color: #4a4a4a;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.88em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.viz-area-pagination button:hover:not(:disabled) {
  background: #3273dc;
  border-color: #3273dc;
  color: #fff;
}

.viz-area-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.viz-area-pagination span {
  font-size: 0.88em;
  font-family: 'Google Sans', sans-serif;
  color: #555;
  font-weight: 500;
}

.viz-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.viz-frame-card {
  background: #f8f9fb;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.viz-frame-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: #3273dc;
}

.viz-frame-pair {
  display: flex;
  gap: 2px;
}

.viz-frame-card .viz-frame-pair img {
  width: 50%;
  height: auto;
  display: block;
}

.viz-frame-card img {
  width: 100%;
  height: auto;
  display: block;
}

.viz-frame-card-label {
  padding: 8px 12px;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.78em;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.viz-frame-card-label .viz-fc-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.9em;
  font-weight: 500;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .viz-toggle-container {
    flex-direction: column;
    align-items: center;
  }

  .viz-toggle {
    width: 80%;
  }

  #viz-plot {
    height: 380px;
  }

  .viz-intro-overlay {
    height: 380px;
  }

  .viz-intro-card {
    padding: 22px 24px 18px;
    max-width: 90%;
  }

  .viz-intro-title {
    font-size: 1.05em;
    margin-bottom: 14px;
  }

  .viz-intro-hint {
    font-size: 0.95em;
    gap: 10px;
  }

  .viz-instructions {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .viz-overlay {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .viz-overlay .viz-anim-toolbar {
    flex-wrap: wrap;
  }

  .viz-overlay .viz-anim-track {
    order: 3;
    width: 100%;
  }

  .viz-frame-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 480px) {
  #viz-plot {
    height: 300px;
  }

  .viz-intro-overlay {
    height: 300px;
  }

  .viz-frame-grid {
    grid-template-columns: 1fr;
  }

  .viz-panel {
    padding: 16px;
  }
}

/* =====================================================
   Industry polish pass
   ===================================================== */

:root {
  --site-nav-height: 64px;
  --lapose-ink: #111827;
  --lapose-ink-soft: #2f3a4a;
  --lapose-muted: #667085;
  --lapose-line: #d9e1ea;
  --lapose-paper: #ffffff;
  --lapose-surface: #f6f8fb;
  --lapose-blue: #2463eb;
  --lapose-teal: #0f766e;
  --lapose-green: #16803c;
  --lapose-amber: #b45309;
  --lapose-shadow: 0 20px 54px rgba(15, 23, 42, 0.10);
  --lapose-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-padding-top: 86px;
}

body {
  background: var(--lapose-surface);
  color: var(--lapose-ink);
  line-height: 1.6;
}

body::selection {
  background: rgba(36, 99, 235, 0.18);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--lapose-ink);
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 225, 234, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav a {
  text-decoration: none;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--lapose-ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
}

.site-mark:hover {
  color: var(--lapose-blue);
}

.site-mark-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lapose-blue), var(--lapose-teal));
  box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.10);
}

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.site-nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--lapose-muted);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav-links .site-nav-disabled {
  padding: 8px 10px;
  border-radius: 6px;
  color: #9ca3af;
  cursor: not-allowed;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.58;
  white-space: nowrap;
}

.site-nav-links a:hover {
  background: rgba(36, 99, 235, 0.08);
  color: var(--lapose-blue);
}

.site-nav-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--lapose-ink);
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
}

.site-nav-paper:hover {
  background: var(--lapose-blue);
  color: #fff;
}

.project-hero {
  position: relative;
  min-height: calc(100vh - var(--site-nav-height));
  min-height: calc(100svh - var(--site-nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 8vh, 104px) 20px clamp(64px, 8vh, 96px);
  background: #0b111b;
}

.project-hero-video,
.project-hero-scrim,
.project-hero-grid {
  position: absolute;
  inset: 0;
}

.project-hero-video {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.04) brightness(0.82);
}

.project-hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 12, 22, 0.92) 0%, rgba(7, 12, 22, 0.78) 42%, rgba(7, 12, 22, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 12, 22, 0.78) 0%, rgba(7, 12, 22, 0.12) 58%, rgba(7, 12, 22, 0.40) 100%);
}

.project-hero-grid {
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.90);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.venue-pill span + span {
  position: relative;
  padding-left: 10px;
}

.venue-pill span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #5eead4;
  transform: translateY(-50%);
}

.project-title {
  margin: 0;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 6rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.project-subtitle {
  margin: 14px 0 0;
  max-width: 840px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.85rem;
  line-height: 1.18;
  font-weight: 800;
}

.project-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-action-primary {
  background: #fff;
  border-color: #fff;
  color: var(--lapose-ink);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.hero-action-primary:hover {
  background: #eff6ff;
  color: var(--lapose-blue);
}

.hero-action-disabled,
.hero-action-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.48);
  cursor: not-allowed;
  pointer-events: none;
}

.hero-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  max-width: 880px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem !important;
  line-height: 1.45;
}

.author-row-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
}

.project-hero .publication-authors a {
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.project-hero .publication-authors a:hover {
  color: #bfdbfe !important;
  text-decoration: none;
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.teaser-section,
.method-section,
.results-section,
.citation-section {
  background: var(--lapose-paper);
}

.content-section,
.viz-section,
#youtube-driving,
.acknowledgements-section {
  background: var(--lapose-surface);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
}

.section-heading.is-centered {
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--lapose-teal);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading .title {
  margin-bottom: 0;
  color: var(--lapose-ink) !important;
  font-family: 'Google Sans', sans-serif;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-intro {
  margin: 14px auto 0;
  max-width: 720px;
  color: var(--lapose-muted);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

.feature-video-frame,
.method-figure,
.results-panel,
.wild-video-panel,
.viz-plot-wrapper,
.bibtex-shell {
  border: 1px solid var(--lapose-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--lapose-shadow-soft);
}

.feature-video-frame {
  overflow: hidden;
  margin: 0;
}

.feature-video-frame video {
  width: 100%;
  max-width: none;
  border-radius: 0;
  background: #05070b;
}

.tldr-caption {
  margin: 0;
  border: none;
  border-top: 1px solid var(--lapose-line);
  border-left: 4px solid var(--lapose-teal);
  border-radius: 0;
  background: #fbfcff;
  box-shadow: none;
  color: var(--lapose-ink-soft);
}

.tldr-caption::before {
  background: var(--lapose-teal);
}

.tldr-caption:hover {
  transform: none;
  box-shadow: none;
}

.abstract-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 34px;
  border: 1px solid var(--lapose-line);
  border-left: 4px solid var(--lapose-blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--lapose-shadow-soft);
}

.abstract-panel p {
  margin-bottom: 0;
  color: var(--lapose-ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
  text-align: left;
}

.proof-grid,
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px auto 0;
}

.proof-card,
.stage-card {
  padding: 22px;
  border: 1px solid var(--lapose-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.proof-card:nth-child(1) {
  border-top: 4px solid var(--lapose-blue);
}

.proof-card:nth-child(2) {
  border-top: 4px solid var(--lapose-teal);
}

.proof-card:nth-child(3) {
  border-top: 4px solid var(--lapose-amber);
}

.proof-metric,
.stage-index {
  display: block;
  margin-bottom: 10px;
  color: var(--lapose-blue);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-card:nth-child(2) .proof-metric,
.stage-card:nth-child(2) .stage-index {
  color: var(--lapose-teal);
}

.proof-card:nth-child(3) .proof-metric,
.stage-card:nth-child(3) .stage-index {
  color: var(--lapose-amber);
}

.proof-card h3,
.stage-card h3 {
  margin: 0 0 8px;
  color: var(--lapose-ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.proof-card p,
.stage-card p {
  margin: 0;
  color: var(--lapose-muted);
  font-size: 0.95rem;
  line-height: 1.62;
  text-align: left;
}

.stage-grid {
  margin-bottom: 24px;
}

.stage-card {
  position: relative;
  overflow: hidden;
}

.stage-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lapose-blue), var(--lapose-teal), var(--lapose-amber));
}

.method-figure {
  --method-figure-inset: 28px;
  max-width: 1040px;
  overflow: hidden;
  padding: 24px var(--method-figure-inset) 0;
}

.media-container.method-figure img {
  max-width: none;
  margin: 0 auto 22px;
  border-radius: 6px;
}

.method-caption {
  margin: 0;
  padding: 22px 26px;
  border: 0;
  border-top: 1px solid var(--lapose-line);
  border-radius: 0;
  background: #fbfcff;
  color: var(--lapose-ink-soft);
  box-shadow: none;
}

.method-caption:hover {
  transform: none;
  box-shadow: none;
}

.method-caption strong {
  color: var(--lapose-blue);
}

.method-figure .method-caption {
  margin-right: calc(-1 * var(--method-figure-inset));
  margin-left: calc(-1 * var(--method-figure-inset));
  padding-right: var(--method-figure-inset);
  padding-left: var(--method-figure-inset);
}

.viz-caption {
  max-width: 920px;
  margin: 0 auto 26px;
  border: 1px solid var(--lapose-line);
  border-left: 4px solid var(--lapose-green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.viz-toggle {
  border: 1px solid var(--lapose-line);
  border-radius: 999px;
  color: var(--lapose-ink-soft);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.viz-toggle:hover {
  border-color: var(--lapose-blue);
  color: var(--lapose-blue);
}

.viz-toggle.active {
  background: var(--lapose-ink);
  border-color: var(--lapose-ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.16);
}

.viz-plot-wrapper {
  background: #fff;
  padding: 18px 14px 10px;
}

.viz-intro-card {
  border-radius: 8px;
  box-shadow: var(--lapose-shadow);
}

.viz-clear-btn,
.viz-area-pagination button,
.viz-speed-btn {
  border-radius: 999px;
}

.viz-anim-btn {
  background: var(--lapose-blue);
}

.viz-anim-btn:hover {
  background: #1d4ed8;
}

.results-panel,
.wild-video-panel {
  overflow: hidden;
  margin-top: 8px;
}

.results-panel .nav,
.wild-video-panel .nav {
  background: #f8fafc;
  border-bottom: 1px solid var(--lapose-line);
}

.nav-item {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-tabs .nav-link {
  border: 0;
  border-radius: 0;
  color: var(--lapose-muted);
  font-family: 'Google Sans', sans-serif;
  font-weight: 800;
}

.nav-tabs .nav-link:hover {
  background: rgba(36, 99, 235, 0.08);
  color: var(--lapose-blue);
  text-decoration: none;
}

.nav-tabs .nav-link.active {
  background: #fff;
  color: var(--lapose-blue);
  box-shadow: inset 0 -3px 0 var(--lapose-blue);
}

.dataset-video {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0;
  border-radius: 0;
  background: #05070b;
}

.yt-section-desc {
  max-width: 920px;
  margin: 0 auto 22px;
  padding: 18px 22px;
  border: 1px solid var(--lapose-line);
  border-left: 4px solid var(--lapose-amber);
  border-radius: 8px;
  background: #fff;
  color: var(--lapose-ink-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.yt-section-desc strong {
  color: var(--lapose-amber);
}

.yt-carousel-wrapper {
  gap: 16px;
  padding: 18px;
  margin-top: 0;
  background: #fff;
}

.yt-carousel {
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.yt-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--lapose-line);
  background: #fff;
  color: var(--lapose-ink-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.yt-arrow:hover {
  background: var(--lapose-blue);
  border-color: var(--lapose-blue);
  box-shadow: 0 12px 24px rgba(36, 99, 235, 0.24);
}

.yt-carousel-counter {
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bibtex-shell {
  position: relative;
  overflow: hidden;
  background: #fff;
}

pre.bibtex-container {
  margin: 0;
  padding: 30px 128px 30px 28px;
  border: 0;
  border-left: 4px solid var(--lapose-blue);
  border-radius: 0;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
  color: #1f2937;
  box-shadow: none;
  font-size: 0.92rem;
  line-height: 1.7;
}

pre.bibtex-container code {
  color: inherit;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.copy-bibtex-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(36, 99, 235, 0.18);
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.copy-bibtex-btn:hover {
  background: #1d4ed8;
}

.acknowledgements-copy {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid var(--lapose-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lapose-ink-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--lapose-line);
  background: #101827;
}

.footer .footer-copy {
  max-width: 860px;
  margin: 0 auto;
}

.footer .footer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.footer a {
  color: #93c5fd;
}

.footer a:hover {
  color: #fff;
}

@media screen and (max-width: 1024px) {
  .site-nav {
    padding: 10px 18px;
    gap: 12px;
  }

  .site-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav-links::-webkit-scrollbar {
    display: none;
  }

  .project-title {
    font-size: 5rem;
  }

  .project-subtitle {
    font-size: 1.55rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --site-nav-height: 58px;
  }

  .site-nav {
    min-height: 58px;
    padding: 8px 12px;
  }

  .site-mark span:last-child {
    display: none;
  }

  .site-nav-paper {
    width: 40px;
    padding: 0;
  }

  .site-nav-paper span {
    display: none;
  }

  .site-nav-links a {
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .project-hero {
    min-height: calc(100vh - var(--site-nav-height));
    min-height: calc(100svh - var(--site-nav-height));
    padding: 72px 18px 46px;
  }

  .project-hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 12, 22, 0.92) 0%, rgba(7, 12, 22, 0.78) 100%),
      linear-gradient(0deg, rgba(7, 12, 22, 0.72) 0%, rgba(7, 12, 22, 0.18) 100%);
  }

  .venue-pill {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
  }

  .venue-pill span + span {
    padding-left: 0;
  }

  .venue-pill span + span::before {
    display: none;
  }

  .project-title {
    font-size: 3.7rem;
  }

  .project-subtitle {
    font-size: 1.28rem;
  }

  .project-lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-action {
    min-height: 42px;
    padding: 0 13px;
    font-size: 0.88rem;
  }

  .hero-authors {
    margin-top: 24px;
    font-size: 0.88rem !important;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

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

  .section-heading .title {
    font-size: 1.75rem !important;
  }

  .abstract-panel,
  .method-caption,
  .tldr-caption,
  .yt-section-desc,
  .acknowledgements-copy {
    padding: 20px;
  }

  .proof-grid,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .yt-carousel-wrapper {
    gap: 10px;
    padding: 12px;
  }

  .yt-arrow {
    width: 38px;
    height: 38px;
  }

  .copy-bibtex-btn {
    position: static;
    margin: 14px 14px 0 auto;
    background: var(--lapose-blue);
  }

  pre.bibtex-container {
    padding: 20px;
    font-size: 0.82rem;
  }
}

@media screen and (max-width: 480px) {
  .project-hero {
    min-height: calc(100vh - var(--site-nav-height));
    min-height: calc(100svh - var(--site-nav-height));
    padding-top: 66px;
    padding-bottom: 44px;
  }

  .project-title {
    font-size: 3rem;
  }

  .project-subtitle {
    font-size: 1.12rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action {
    width: 100%;
  }

  .hero-authors {
    gap: 6px 10px;
  }

  .hero-affiliations {
    font-size: 0.82rem;
  }

  .viz-toggle {
    width: 100%;
  }

  .yt-carousel-wrapper {
    position: relative;
    display: block;
  }

  .yt-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
  }

  .yt-carousel-wrapper .yt-arrow:first-child {
    left: 18px;
  }

  .yt-carousel-wrapper .yt-arrow:last-child {
    right: 18px;
  }
}
