/* Smooth scroll for in-page anchors */
html {
  scroll-behavior: smooth;
}

/* Generic video wrapper for overlays */
#problem .video-wrapper,
#method .video-wrapper {
  position: relative;
}

/* Progress bar reused */
#problem .video-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

#problem .video-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d1b2, #3273dc);
  transition: width 40ms linear;
}

#problem .video-restart-btn {
  position: absolute;
  top: 1.0rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(1.1) blur(2px);
}

#problem .video-restart-btn:hover { background: rgba(0, 0, 0, 0.6); }
#problem .video-restart-btn:active { transform: scale(0.96); }

#problem .video-restart-btn i { font-size: 16px; }
body {
  font-family: 'Noto Sans', sans-serif;
}


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

.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 {
}

.publication-banner {
  max-height: parent;

}

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

.publication-header .hero-body {
}

.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-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

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

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

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

/* Ensure author names center under avatar by matching container width */
.publication-authors .author-block {
  width: 128px;
  text-align: center;
}

/* Mobile author tiles use 96px avatars */
.is-hidden-tablet .author-block {
  width: 96px;
  text-align: center;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.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%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  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-video-column {
}

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

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

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


.has-bg-img { 
  background: url('/static/images/toss.jpeg')center center;
   background-size:cover; }



.overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.4); /* 40% opacity black */
z-index: 1; /* Make sure it's behind the text */
transition: opacity 1.0s;
}
  
.hero-body,
.hero-head,
.hero-foot {
  z-index: 2; /* Ensure text is above the overlay */
  transition: opacity 1.0s;
}

/* Responsive hero video */
.hero.video .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero.video .hero-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Make sections fill the viewport height and center content */
.fullheight-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Method video progress bar */
#method .video-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#method .video-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d1b2, #3273dc);
  border-radius: 0 3px 3px 0;
  transition: width 40ms linear;
}

/* Restart button */
#method .video-restart-btn {
  position: absolute;
  top: 1.0rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(1.1) blur(2px);
}

#method .video-restart-btn:hover { background: rgba(0, 0, 0, 0.6); }

#method .video-restart-btn:active {
  transform: scale(0.96);
}

#method .video-restart-btn i { font-size: 16px; }

/* Responsive width for method video */
#method #method-video {
  width: 80%;
}

@media screen and (max-width: 768px) {
  #method #method-video {
    width: 100%;
  }
}

/* Simulation grid swipe animations */
#simulation #sim-grid {
  position: relative;
  overflow: hidden;
}

/* Simulation: polished nav and crossfade */
#simulation .sim-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#simulation .sim-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.08);
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease;
  cursor: pointer;
}

#simulation .sim-nav-btn:hover { box-shadow: 0 6px 18px rgba(10, 10, 10, 0.12); }
#simulation .sim-nav-btn:active { transform: scale(0.96); }

#simulation .sim-embodiment-label {
  min-width: 220px; /* Reserve width to prevent layout shift across labels */
  text-align: center;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 10px;
  background: #f5f7fa;
  color: #243b53;
  box-shadow: inset 0 0 0 1px rgba(36, 59, 83, 0.08);
}

@media screen and (max-width: 768px) {
  #simulation .sim-embodiment-label { min-width: 160px; }
}

/* Video tile polish */
#simulation video.sim-task-video {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
  will-change: transform;
}

#simulation video.sim-task-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
}

/* Show controls on hover for simulation videos */
#simulation video.sim-task-video::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#simulation video.sim-task-video:hover::-webkit-media-controls {
  opacity: 1;
}

/* Hide volume controls for simulation videos */
#simulation video.sim-task-video::-webkit-media-controls-volume-slider,
#simulation video.sim-task-video::-webkit-media-controls-mute-button {
  display: none;
}

/* Swipe transitions for video grid */
#simulation #sim-grid .column {
  transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 450ms cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px; /* Prevent layout shift by maintaining column height */
}

#simulation #sim-grid .column video {
  display: block;
  visibility: visible;
}

/* Fixed-aspect wrapper to avoid layout shift on media swap */
#simulation .sim-tile {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

#simulation .sim-tile > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RW Results layout and controls */
#rw-results .rw-box {
  position: relative;
  background: #000;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 1rem;
}

#rw-results .video-restart-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(1.1) blur(2px);
}

#rw-results .video-restart-btn:hover { background: rgba(0, 0, 0, 0.6); }
#rw-results .video-restart-btn:active { transform: scale(0.96); }
#rw-results .video-restart-btn i { font-size: 16px; }

#rw-results .sim-tile {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square */
  overflow: hidden;
  border-radius: 14px;
}

#rw-results .sim-tile > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Show controls on hover for real-world videos */
#rw-results video.rw-video::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#rw-results video.rw-video:hover::-webkit-media-controls {
  opacity: 1;
}

/* Hide volume controls for real-world videos */
#rw-results video.rw-video::-webkit-media-controls-volume-slider,
#rw-results video.rw-video::-webkit-media-controls-mute-button {
  display: none;
}

/* Show controls on hover for additional RW videos (lemon, lightbulb) */
#rw-results video.rw-video-auto::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#rw-results video.rw-video-auto:hover::-webkit-media-controls {
  opacity: 1;
}

/* Hide volume controls for additional RW videos */
#rw-results video.rw-video-auto::-webkit-media-controls-volume-slider,
#rw-results video.rw-video-auto::-webkit-media-controls-mute-button {
  display: none;
}

/* Show controls on hover for lemon trial videos */
#rw-results video.lemon-video::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#rw-results video.lemon-video:hover::-webkit-media-controls {
  opacity: 1;
}

/* Hide volume controls for lemon trial videos */
#rw-results video.lemon-video::-webkit-media-controls-volume-slider,
#rw-results video.lemon-video::-webkit-media-controls-mute-button {
  display: none;
}

/* Toggle button hover effect */
#lemon-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* Show controls on hover for lightbulb trial videos */
#rw-results video.lightbulb-video::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#rw-results video.lightbulb-video:hover::-webkit-media-controls {
  opacity: 1;
}

/* Hide volume controls for lightbulb trial videos */
#rw-results video.lightbulb-video::-webkit-media-controls-volume-slider,
#rw-results video.lightbulb-video::-webkit-media-controls-mute-button {
  display: none;
}

/* Toggle button hover effect for lightbulb */
#lightbulb-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
}

/* Auto-aspect rounded tile for standalone RW demos */
#rw-results .tile-auto {
  border-radius: 14px;
  overflow: hidden;
}

#rw-results .tile-auto > video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Slide out left */
#simulation .sim-slide-out-left {
  transform: translateX(-120px);
  opacity: 0;
}

/* Slide out right */
#simulation .sim-slide-out-right {
  transform: translateX(120px);
  opacity: 0;
}

/* Slide in from left (start position off-screen left) */
#simulation .sim-slide-in-left {
  transform: translateX(-120px);
  opacity: 0;
}

/* Slide in from right (start position off-screen right) */
#simulation .sim-slide-in-right {
  transform: translateX(120px);
  opacity: 0;
}

/* Utility: temporarily disable transitions to reposition instantly */
#simulation .sim-no-transition { transition: none !important; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #simulation #sim-grid .column { transition: none !important; }
  #simulation .sim-slide-out-left,
  #simulation .sim-slide-out-right,
  #simulation .sim-slide-in-left,
  #simulation .sim-slide-in-right { 
    transform: none !important; 
    opacity: 1 !important; 
  }
}