/* Version1.2: text and scene have separate layout regions.
   Use the structure in hero-section-example.tsx; keep your existing branding.
   The scene keeps one shared floor and consistent relative proportions at every screen size. */
.finn-robotics-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(840px, 100svh);
  padding: clamp(124px, 14vh, 160px) max(clamp(28px, 5vw, 88px), calc((100vw - 1440px) / 2)) 108px;
}
.finn-robotics-intro { position: relative; z-index: 5; width: min(42vw, 520px); margin: 0; text-align: left; }
.finn-robotics-stage {
  position: absolute;
  top: 54%;
  right: max(2%, calc((100% - 1440px) / 2));
  z-index: 2;
  width: min(760px, 51vw);
  aspect-ratio: 3 / 2;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 1119px) {
  .finn-robotics-home {
    justify-content: flex-start;
    align-items: center;
    min-height: 0;
    padding: 116px clamp(28px, 4.5vw, 48px) 36px;
  }
  .finn-robotics-intro { width: min(620px, 100%); text-align: center; }
  .finn-robotics-stage { position: relative; inset: auto; width: min(700px, 100%); margin: 22px auto 0; transform: none; }
}
@media (max-width: 619px) {
  .finn-robotics-home { padding: 100px clamp(18px, 5vw, 28px) 24px; }
  .finn-robotics-intro { width: min(460px, 100%); }
  .finn-robotics-stage { width: min(430px, 100%); margin-top: 12px; }
}

/* Hero bottom controls & credits */
.hero-bottom {
  position: absolute;
  z-index: 8;
  inset: auto max(clamp(28px, 5vw, 88px), calc((100vw - 1440px) / 2)) 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}
.scene-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .85;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.scene-caption:hover {
  opacity: 1;
  color: #2563eb;
}
.scene-caption::before {
  flex: 0 0 auto;
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.dark .scene-caption {
  color: #94a3b8;
}
.dark .scene-caption:hover {
  color: #60a5fa;
}
.dark .scene-caption::before {
  background: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, .2);
}
.motion-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}
.motion-toggle:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(99, 102, 241, 0.5);
  color: #1e293b;
}
.dark .motion-toggle {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
}
.dark .motion-toggle:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(99, 102, 241, 0.5);
  color: #f8fafc;
}
.scroll-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}
.scroll-link:hover {
  color: #2563eb;
  transform: translateX(-50%) translateY(3px);
}
.dark .scroll-link {
  color: #94a3b8;
}
.dark .scroll-link:hover {
  color: #60a5fa;
}

@media (max-width: 1119px) {
  .hero-bottom {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 20px;
    padding: 0 4px;
  }
}
@media (max-width: 619px) {
  .hero-bottom {
    margin-top: 14px;
    min-height: 40px;
  }
  .scene-caption {
    max-width: 160px;
    gap: 6px;
    font-size: 9px;
    letter-spacing: .065em;
  }
  .motion-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    min-height: 0;
  }
  .motion-toggle span {
    display: none;
  }
  .scroll-link {
    width: 32px;
    height: 36px;
  }
}

