/* ============================================
   SceneSmith - Visual Design System
   ============================================ */

:root {
  --primary: #0f2b46;
  --primary-light: #163d5e;
  --accent: #00b4d8;
  --accent-glow: #00d4ff;
  --accent-warm: #f77f00;
  --accent-warm-light: #fcbf49;
  --surface-dark: #0a1628;
  --surface-mid: #f0f4f8;
  --surface-light: #f8fafb;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-light: #94a3b8;
  --border-subtle: rgba(0, 180, 216, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ---- Sticky Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.12);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.site-nav.is-visible {
  transform: translateY(0);
}

.site-nav .nav-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
}

.site-nav .nav-brand {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .nav-brand img {
  height: 1.3em;
}

.site-nav .nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.site-nav .nav-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: #fff;
  background: rgba(0, 180, 216, 0.15);
}

/* Nav dropdown */
.nav-dropdown {
  position: static;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: #fff;
  background: rgba(0, 180, 216, 0.15);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 100%;
  min-width: 220px;
  padding: 0.5rem 0;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  background: none !important;
  border-radius: 0;
}

.nav-dropdown-content a:hover {
  color: #fff !important;
  background: rgba(0, 180, 216, 0.12) !important;
}

/* ---- Hero Section with Background Video ---- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--surface-dark);
}

/* Background video */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay: gradient from semi-transparent to dark at bottom for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.35) 0%,
      rgba(10, 22, 40, 0.2) 40%,
      rgba(10, 22, 40, 0.5) 70%,
      rgba(10, 22, 40, 0.85) 100%);
  pointer-events: none;
}

/* Floating orbs — hidden on desktop (video plays), shown on mobile */
.hero-orb {
  display: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 3;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -80px;
  right: 10%;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--accent-warm);
  bottom: -40px;
  left: 5%;
  animation-delay: -3s;
  animation-duration: 10s;
}

.hero-orb-3 {
  width: 150px;
  height: 150px;
  background: #7c3aed;
  top: 30%;
  left: 15%;
  animation-delay: -5s;
  animation-duration: 12s;
  opacity: 0.15;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Content positioned at bottom of hero */
.hero-content-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 1.5rem 3rem;
}

.hero-section .publication-title {
  font-family: 'Google Sans', sans-serif;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-section .publication-title .accent-text {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent-warm-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .publication-authors {
  font-family: 'Google Sans', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Author name links in hero */
.hero-section .publication-authors a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
}
.hero-section .publication-authors a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Institutional logos — positioned in top corners on desktop */
.hero-logos {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  pointer-events: none;
}
.hero-logo-link {
  pointer-events: auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 6px 10px;
}
.hero-logo {
  height: 40px;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.hero-logo:hover {
  opacity: 1;
}
.hero-logo-link:first-child .hero-logo {
  height: 55px;
}

.hero-section .publication-links {
  margin-top: 1.5rem;
}

.hero-section .publication-links .button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero-section .publication-links .button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---- Stats Bar ---- */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding: 0 1.5rem;
}

.stats-bar .stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0, 180, 216, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.stat-card {
  background: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: var(--surface-light);
}

.stat-card .stat-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ---- Section Styling ---- */
.section {
  position: relative;
}

.section-alt {
  background: var(--surface-mid);
}

.section-dark {
  background: linear-gradient(180deg, var(--surface-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.section-dark .title {
  color: #fff;
}

.section-dark .content p {
  color: rgba(255, 255, 255, 0.8);
}

/* Section heading decorations */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

.title.is-3.has-text-centered {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.title.is-3.has-text-centered::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

/* ---- Section Dividers ---- */
.section-wave {
  position: relative;
}

.section-wave::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ---- Content Cards ---- */
.content-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ---- Video wrappers enhanced ---- */
.video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Carousel video wrappers should not have extra shadow/radius that breaks layout */
.results-carousel .results-item .video-wrapper {
  box-shadow: none;
  border-radius: 8px;
}

/* ---- Carousel Enhanced ---- */
.carousel {
  border-radius: var(--radius);
  overflow: visible;
}

.slick-prev:before,
.slick-next:before {
  font-family: 'slick' !important;
  color: var(--primary) !important;
  font-size: 28px;
}

.slick-prev,
.slick-next {
  opacity: 0.6;
  width: 30px;
  height: 30px;
  z-index: 100;
  transition: opacity var(--transition);
}

.slick-prev:hover,
.slick-next:hover {
  opacity: 1;
}

.results-carousel .slick-prev,
.results-carousel .slick-next {
  z-index: 100;
  opacity: 0.6;
  width: 30px;
  height: 30px;
}

.results-carousel .slick-prev {
  left: -35px;
}

.results-carousel .slick-next {
  right: -35px;
}

.results-carousel .slick-prev:before,
.results-carousel .slick-next:before {
  font-family: 'slick' !important;
  color: var(--primary);
  font-size: 28px;
  opacity: 1;
}

.results-carousel > div {
  text-align: center;
}

.results-carousel .results-item {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.results-carousel .results-item {
  padding: 0 20px;
}

.results-carousel .title.is-5 {
  min-height: 40px;
  margin-bottom: 1rem;
}

/* Slick dots styling */
.slick-dots li button:before {
  font-family: 'slick' !important;
  color: var(--accent) !important;
  font-size: 10px;
}

.slick-dots li.slick-active button:before {
  font-family: 'slick' !important;
  color: var(--primary) !important;
}

/* ---- Prompt Tooltip (Scene Construction carousel) ---- */
.prompt-tooltip-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: default;
}

.prompt-hover-hint {
  font-size: 0.75rem;
  color: var(--accent);
  font-style: normal;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.prompt-tooltip-wrap:hover .prompt-hover-hint {
  opacity: 1;
}

.prompt-tooltip-box {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: max(80%, 320px);
  max-width: 540px;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  pointer-events: none;
}

.prompt-tooltip-box::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--primary);
}

.prompt-tooltip-wrap:hover .prompt-tooltip-box {
  display: block;
}

/* Allow tooltip to overflow carousel vertically while keeping horizontal clip */
#buildup-carousel .slick-list {
  overflow-x: clip;
  overflow-y: visible;
}

/* ---- Teaser Image ---- */
.teaser-section img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition);
}

.teaser-section .content.has-text-justified {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
  margin-top: 1.5rem;
}

/* ---- Pipeline Description Cards ---- */
.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pipeline-stage {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
  transition: all var(--transition);
  position: relative;
}

.pipeline-stage:nth-child(2) { border-top-color: #3b82f6; }
.pipeline-stage:nth-child(3) { border-top-color: #8b5cf6; }
.pipeline-stage:nth-child(4) { border-top-color: var(--accent-warm); }
.pipeline-stage:nth-child(5) { border-top-color: #ef4444; }


.pipeline-stage .stage-num {
  font-family: 'Google Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.pipeline-stage:nth-child(2) .stage-num { color: #3b82f6; }
.pipeline-stage:nth-child(3) .stage-num { color: #8b5cf6; }
.pipeline-stage:nth-child(4) .stage-num { color: var(--accent-warm); }
.pipeline-stage:nth-child(5) .stage-num { color: #ef4444; }

.pipeline-stage .stage-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.pipeline-stage .stage-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ---- Agent Roles ---- */
.agent-roles {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.agent-role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.agent-role-designer {
  background: rgba(104, 192, 164, 0.12);
  color: #4a9e80;
  border: 1px solid rgba(104, 192, 164, 0.3);
}

.agent-role-critic {
  background: rgba(140, 160, 204, 0.12);
  color: #6b80b0;
  border: 1px solid rgba(140, 160, 204, 0.3);
}

.agent-role-orchestrator {
  background: rgba(249, 168, 126, 0.12);
  color: #d4845a;
  border: 1px solid rgba(249, 168, 126, 0.3);
}

/* ---- Info callout ---- */
.info-callout {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.info-callout p {
  margin: 0;
}

/* ---- Video Spinners ---- */
.video-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid rgba(0, 180, 216, 0.2);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- Video Play Indicator ---- */
.video-play-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  z-index: 3;
  pointer-events: none;
  animation: playPulse 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.video-play-indicator.hidden {
  animation: none;
  opacity: 0;
}

@keyframes playPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* ---- RBY1 Video Labels ---- */
.video-view-label {
  position: absolute;
  top: 2%;
  z-index: 3;
  pointer-events: none;
  background: rgba(10, 22, 40, 0.75);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.video-view-label-left {
  left: 10px;
}

.video-view-label-right {
  left: calc(50% + 10px);
}

/* ---- Footer Enhanced ---- */
footer.footer {
  background: linear-gradient(180deg, var(--surface-dark) 0%, #060d18 100%);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
}

footer.footer .footer-brand {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

footer.footer .footer-brand img {
  height: 1.4em;
}

footer.footer .footer-tagline {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  max-width: 400px;
}

footer.footer .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.footer .footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color var(--transition);
  text-decoration: none;
}

footer.footer .footer-links a:hover {
  color: var(--accent);
}

footer.footer .footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 1.5rem 0;
}

footer.footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  margin: 0;
}

/* ---- Loading Placeholder ---- */
.loading-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--surface-mid);
  z-index: 1;
  font-size: 18px;
  color: var(--text-light);
}

.content.is-centered {
  position: relative;
}

/* ---- Preserved legacy styles ---- */
.footer .icon-link {
  font-size: 25px;
  color: #fff;
}

.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: #555;
  width: fit-content;
  font-weight: bold;
}

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

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

.interpolation-panel {
  background: var(--surface-mid);
  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;
}

.content model-viewer {
  margin-bottom: 1em;
}

.hyper-space-wrapper {
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 20px;
}

.hyper-space-axis {
  padding: 5px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
}

.hyper-space {
  width: 100%;
  padding-bottom: calc(100% - 7%);
  box_sizing: border-box;
  touch-action: none;
  background-image: url(../figures/hyper_log_prob.png);
  background-size: contain;
  border-radius: 10px;
}

.hyper-space-cursor {
  width: 7%;
  padding-bottom: calc(7% - 6px);
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
}

.hyper-grid-wrapper {
  width: 95%;
  padding-bottom: 95%;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hyper-grid-rgb {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}

.hyper-grid-rgb img {
  position: relative;
  height: 2000%;
  width: 2000%;
  max-width: none !important;
}

.warning-button {
  margin: 2rem 0;
}

.warning-button .notification {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.level-set-slices {
  width: 100%;
  height: 250px;
  border: 1px solid #eee;
  border-radius: 20px;
}

.level-set-shapes {
  font-size: 0;
  padding-left: 5%;
}

.level-set-shapes img {
  width: 30%;
}

.level-set-interpolate {
  width: 100%;
}

.level-set-ox-shapes img {
  width: 24%;
}

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

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

/* ---- Robot eval pipeline image ---- */
#robot-eval-section .content.has-text-centered img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Hide video, show animated gradient hero on mobile */
  .hero-video-bg {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(135deg, var(--surface-dark) 0%, var(--primary) 40%, #1a3a5c 100%);
  }

  .hero-orb {
    display: block;
  }

  .hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 100%, rgba(247, 127, 0, 0.08) 0%, transparent 50%);
  }

  .hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0, 180, 216, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 180, 216, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
    animation: gridDrift 20s linear infinite;
  }

  @keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
  }

  .hero-section {
    height: 50vh;
    min-height: 400px;
  }

  .hero-content-wrapper {
    position: absolute;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    padding-bottom: 0;
  }

  .hero-section .publication-title {
    font-size: 1.8rem;
  }

  /* On mobile: hide logos (hero is too short) */
  .hero-logos {
    display: none;
  }
  .hero-section .publication-authors {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }

  .stats-bar .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .pipeline-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-stages .pipeline-stage:last-child {
    grid-column: span 2;
  }

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

  .results-carousel .slick-prev {
    left: -20px;
  }

  .results-carousel .slick-next {
    right: -20px;
  }

  .agent-roles {
    flex-direction: column;
    align-items: center;
  }

  footer.footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-bar .stats-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Hide default navbar ---- */
.navbar {
  display: none !important;
}
