.tobor-hero-slider {
  position: relative;
  width: 100%;
  min-height: 900px;
  overflow: hidden;
  background: #171717;
  color: #171717;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.tobor-hero-slider *, .tobor-hero-slider *::before, .tobor-hero-slider *::after { box-sizing: border-box; }
.tobor-hero-slider__slides, .tobor-hero-slider__slide { width: 100%; min-height: 900px; }
.tobor-hero-slider__slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 480ms ease, visibility 480ms ease; }
.tobor-hero-slider__slide.is-active { position: relative; visibility: visible; opacity: 1; pointer-events: auto; z-index: 1; }
.tobor-hero-slider__media { position: absolute; inset: 0; overflow: hidden; background: #f8f7f0; }
.tobor-hero-slider__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.tobor-hero-slider__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.tobor-hero-slider__image--overlay { pointer-events: none; }
.tobor-hero-slider__slide.is-h2-plus .tobor-hero-slider__image:not(.tobor-hero-slider__image--overlay) { height: 89.58%; top: -8.23%; }
.tobor-hero-slider__slide.is-h2-plus .tobor-hero-slider__image--overlay { width: 119.8%; height: 120.88%; left: -9.91%; top: .05%; }
.tobor-hero-slider__tint { position: absolute; inset: 0; background: transparent; }
.tobor-hero-slider__cta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  min-height: 183px;
  background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(221,221,221,.5));
  box-shadow: inset -2px -2px 4px rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}
.tobor-hero-slider__cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 608px;
  gap: 32px;
  width: min(1248px, calc(100% - 192px));
  min-height: 183px;
  margin: 0 auto;
  padding: 24px 0 28px;
}
.tobor-hero-slider__heading { display: flex; align-items: flex-start; min-width: 0; }
.tobor-hero-slider h2 { margin: 0; color: #171717; font-size: 48px; font-weight: 700; line-height: 56px; letter-spacing: 0; }
.tobor-hero-slider__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; padding-top: 10px; }
.tobor-hero-slider .tobor-hero-slider__copy p { width: 100%; margin: 0; color: #171717; font-size: 20px; font-weight: 400; line-height: 28px; letter-spacing: 0; }
.tobor-hero-slider__actions { display: flex; flex-wrap: wrap; gap: 17px; }
.tobor-hero-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid #171717;
  border-radius: 128px;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.tobor-hero-slider__button:hover, .tobor-hero-slider__button:focus { color: #171717; text-decoration: none; }
.tobor-hero-slider__button--primary { border-color: #99c300; background: #99c300; }
.tobor-hero-slider__button--primary:hover, .tobor-hero-slider__button--primary:focus { border-color: #7da300; background: #7da300; }
.tobor-hero-slider__button--secondary:hover, .tobor-hero-slider__button--secondary:focus { background: rgba(255,255,255,.35); }
.tobor-hero-slider__controls { position: absolute; top: 355px; right: 32px; left: 32px; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
.tobor-hero-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: transparent;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 180ms ease;
}
.tobor-hero-slider__arrow:hover, .tobor-hero-slider__arrow:focus { background: rgba(255,255,255,.16); }
.tobor-hero-slider__arrow img { display: block; width: 24px; height: 24px; max-width: none; }
.tobor-hero-slider__arrow--prev img { transform: rotate(180deg); }
.tobor-hero-slider__dots { position: absolute; bottom: 12px; left: 50%; z-index: 4; display: none; gap: 8px; transform: translateX(-50%); }
.tobor-hero-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(23,23,23,.35); }
.tobor-hero-slider__dots button.is-active { width: 24px; border-radius: 8px; background: #506ccd; }

/* Desktop: the banner fills the viewport under the fixed chrome, so the glass CTA
   panel (already pinned to the bottom) sits on the fold — same composition as
   .tobor-hero-banner on /unitree-teleoperation/. --tobor-page-offset is the marquee
   bar + header total published by the child theme's js/tobor-header-offset.js; it is
   the offset that never changes, unlike --tobor-header-offset which drops the bar's
   height on scroll and would make the banner grow under the reader. */
@media (min-width: 1025px) {
  .tobor-hero-slider,
  .tobor-hero-slider__slides,
  .tobor-hero-slider__slide {
    height: calc(100vh - var(--tobor-page-offset, 140px));
    /* Short viewports keep a usable banner rather than crushing the panel. */
    min-height: 640px;
  }

  /* Centre the arrows in the image area above the panel instead of at the 355px
     the 900px-tall frame put them at. */
  .tobor-hero-slider__controls {
    top: calc((100% - 183px) / 2 - 25px);
  }
}

@media (max-width: 1024px) {
  .tobor-hero-slider, .tobor-hero-slider__slides, .tobor-hero-slider__slide { min-height: 980px; }
  .tobor-hero-slider__cta-inner { grid-template-columns: 1fr 1fr; width: calc(100% - 64px); }
  .tobor-hero-slider h2 { font-size: 40px; line-height: 48px; }
  .tobor-hero-slider__controls { top: 280px; }
}

@media (max-width: 767px) {
  .tobor-hero-slider, .tobor-hero-slider__slides, .tobor-hero-slider__slide { min-height: 796px; }
  .tobor-hero-slider__media { bottom: 0; }
  .tobor-hero-slider__image { object-position: center top; }
  .tobor-hero-slider__video { object-position: center top; }
  .tobor-hero-slider__slide.is-h2-plus .tobor-hero-slider__image:not(.tobor-hero-slider__image--overlay) { inset: 0; width: 100%; height: 100%; }
  .tobor-hero-slider__slide.is-h2-plus .tobor-hero-slider__image--overlay { inset: 0; width: 100%; height: 100%; }
  .tobor-hero-slider__cta { min-height: 381px; }
  .tobor-hero-slider__cta-inner { display: flex; flex-direction: column; gap: 17px; width: calc(100% - 32px); min-height: 381px; padding: 16px 0; }
  .tobor-hero-slider__heading { justify-content: center; text-align: center; }
  .tobor-hero-slider h2 { font-size: 32px; line-height: 40px; }
  .tobor-hero-slider__copy { align-items: center; padding-top: 0; text-align: center; }
  .tobor-hero-slider__actions { flex-direction: column; width: 100%; }
  .tobor-hero-slider__button { width: 100%; }
  .tobor-hero-slider__controls { top: 240px; right: 16px; left: 16px; }
  .tobor-hero-slider__arrow { width: 44px; height: 44px; padding: 9px; }
  .tobor-hero-slider__dots { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .tobor-hero-slider__slide { transition: none; }
}
