/* Mu Cheng Technology - Hero Video (stable add-on) */

/* Hero video background */
.hero--video{
  background:none !important;
  overflow:hidden;
  position:relative; /* ensure absolute video anchors to hero */
}

.hero--video .hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  filter:brightness(.82) contrast(1.05);
}

/* Keep overlay and text above the video */
.hero--video::before{ z-index:1; }
.hero--video .container{ position:relative; z-index:2; }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero--video .hero-video{ display:none; }
  .hero--video{
    /* fallback to original background image if any is defined in your main CSS */
    background: var(--hero-fallback, none) !important;
  }
}

/* ===== Hero 標題：縮小並固定在畫面下方（影片版） ===== */
.hero--video .container{
  /* Push content to the bottom */
  padding: 0 0 clamp(24px, 5vh, 56px) 0 !important;
}

.hero--video h1{
  /* ✅ 再小一點：原本 clamp(28px, 3.2vw, 56px) */
  font-size: clamp(18px, 2.0vw, 34px) !important;
  line-height: 1.12;
  margin: 0 !important;
  font-weight: 900;
}

.hero--video .breadcrumbs{
  margin-top: 8px !important;
  font-size: 12px !important;
  letter-spacing: 1.2px !important;
}