/* VisionTrack real customer scenes — independent WebP files */
.scene,
.media-scene,
.card-scene {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  background-color: #071a2d;
}

.scene-1 { background-image: url('../images/real/01-mall-checkpoint.webp?v=20260801-1') !important; }
.scene-2 { background-image: url('../images/real/02-parking-patrol.webp?v=20260801-1') !important; }
.scene-3 { background-image: url('../images/real/03-common-areas.webp?v=20260801-1') !important; }
.scene-4 { background-image: url('../images/real/04-hvac-room.webp?v=20260801-1') !important; }
.scene-5 { background-image: url('../images/real/05-engine-room.webp?v=20260801-1') !important; }
.scene-6 { background-image: url('../images/real/06-electrical-room.webp?v=20260801-1') !important; }
.scene-7 { background-image: url('../images/real/07-gas-station.webp?v=20260801-1') !important; }
.scene-8 { background-image: url('../images/real/08-control-dashboard.webp?v=20260801-1') !important; }

/*
 * The hero always occupies exactly one visible viewport.
 * Explicitly reset min/max-height inherited from site.css and older compact rules.
 */
.hero {
  height: 100vh;
  min-height: 0;
  max-height: none;
}

@supports (height: 100svh) {
  .hero { height: 100svh; }
}

.hero-content {
  justify-content: flex-end;
  padding-top: 86px;
  padding-bottom: 76px;
}

.hero-panel {
  width: min(570px, 49%);
  padding: 20px 22px;
  border-radius: 20px;
}

.scene-1,
.scene-2,
.scene-4,
.scene-5,
.scene-6,
.scene-7,
.scene-8 { background-position: 58% center !important; }
.scene-3 { background-position: center center !important; }

.hero-panel h1,
.hero-panel h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.75rem, 3.15vw, 3rem);
  line-height: 1.32;
}

.hero-panel > p {
  font-size: .86rem;
  line-height: 1.82;
}

.hero-actions { margin-top: 15px; }
.hero-points { margin-top: 14px; }
.hero-controls { bottom: 12px; }

/* Wide screens with limited vertical space: compact vertically, never shorten the slide. */
@media (min-width: 1001px) and (max-height: 760px) {
  .hero-content {
    padding-top: 78px;
    padding-bottom: 66px;
  }

  .hero-panel {
    width: min(540px, 49%);
    padding: 16px 20px;
  }

  .pill { padding-block: 3px; }

  .hero-panel h1,
  .hero-panel h2 {
    margin: 9px 0 6px;
    font-size: clamp(1.6rem, 4.9vh, 2.45rem);
    line-height: 1.28;
  }

  .hero-panel > p {
    font-size: .8rem;
    line-height: 1.68;
  }

  .hero-actions { margin-top: 11px; }
  .hero-points { margin-top: 9px; }

  .hero-actions .btn {
    min-height: 40px;
    padding-inline: 16px;
  }
}

@media (min-width: 1001px) and (max-height: 640px) {
  .hero-content {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .hero-panel {
    width: min(510px, 47%);
    padding: 13px 18px;
  }

  .hero-panel h1,
  .hero-panel h2 {
    font-size: clamp(1.45rem, 4.7vh, 2.05rem);
  }

  .hero-panel > p {
    font-size: .75rem;
    line-height: 1.58;
  }

  .hero-points { display: none; }
  .hero-controls { bottom: 7px; }
}

@media (max-width: 1000px) {
  .hero {
    height: 100vh;
    min-height: 0;
    max-height: none;
  }

  @supports (height: 100svh) {
    .hero { height: 100svh; }
  }

  .hero-content { justify-content: center; }
  .hero-panel { width: min(600px, 76%); }

  .scene,
  .media-scene,
  .card-scene { background-position: 64% center !important; }
}

@media (max-width: 1000px) and (max-height: 680px) and (min-width: 721px) {
  .hero-content {
    padding-top: 74px;
    padding-bottom: 60px;
  }

  .hero-panel {
    width: min(560px, 70%);
    padding: 14px 18px;
  }

  .hero-panel h1,
  .hero-panel h2 {
    margin: 8px 0 5px;
    font-size: clamp(1.45rem, 5.2vh, 2.1rem);
  }

  .hero-panel > p {
    font-size: .76rem;
    line-height: 1.62;
  }

  .hero-actions { margin-top: 10px; }
  .hero-points { display: none; }
}

@media (max-width: 720px) {
  .hero {
    height: 100vh;
    min-height: 0;
    max-height: none;
  }

  @supports (height: 100svh) {
    .hero { height: 100svh; }
  }

  .hero-content {
    align-items: flex-end;
    justify-content: center;
    padding-top: 82px;
    padding-bottom: 72px;
  }

  .hero-panel {
    width: 100%;
    padding: 17px 16px;
    border-radius: 18px;
    background: rgba(5, 20, 39, .70);
  }

  .hero-panel h1,
  .hero-panel h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .hero-panel > p {
    font-size: .79rem;
    line-height: 1.75;
  }

  .hero-points { display: none; }
  .hero-actions { gap: 7px; }

  .hero-actions .btn {
    min-height: 42px;
    padding-inline: 14px;
    font-size: .76rem;
  }

  .hero-arrow {
    top: 42%;
    width: 36px;
    height: 36px;
  }

  .hero-controls {
    bottom: 9px;
    min-width: min(290px, calc(100% - 80px));
  }

  .scene,
  .media-scene,
  .card-scene { background-position: 70% center !important; }
}

@media (max-width: 720px) and (max-height: 700px) {
  .hero-content {
    padding-top: 72px;
    padding-bottom: 62px;
  }

  .hero-panel {
    padding: 13px 14px;
  }

  .pill { padding-block: 3px; }

  .hero-panel h1,
  .hero-panel h2 {
    margin: 8px 0 5px;
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    line-height: 1.38;
  }

  .hero-panel > p {
    font-size: .73rem;
    line-height: 1.58;
  }

  .hero-actions { margin-top: 9px; }
  .hero-actions .btn { min-height: 38px; }
}

/* Mobile landscape and unusually short browser windows. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    align-items: center;
    justify-content: flex-end;
    padding-top: 58px;
    padding-bottom: 42px;
  }

  .hero-panel {
    width: min(520px, 58%);
    padding: 10px 14px;
  }

  .pill,
  .hero-panel > p,
  .hero-points { display: none; }

  .hero-panel h1,
  .hero-panel h2 {
    margin: 0 0 7px;
    font-size: clamp(1.25rem, 5.5vh, 1.7rem);
  }

  .hero-actions { margin-top: 0; }
  .hero-actions .btn {
    min-height: 34px;
    padding-inline: 11px;
    font-size: .7rem;
  }

  .hero-controls {
    bottom: 5px;
    transform: translateX(50%) scale(.88);
    transform-origin: bottom center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }
}
