
/* V15 refinements:
   - tablet and mobile rotating text sits over the hero video
   - text styling stronger in white/gold with larger size
   - tablet/iPad and mobile stock cards repositioned to avoid overlap
   - desktop stock cards refined higher inside the hero
   - hero poster image updated from the same MP4 source
*/

/* ----- tablet + mobile: copy over the video ----- */
@media (max-width:980px){
  .home-page .reference-home-hero{
    overflow:hidden!important;
  }
  .home-page .reference-home-hero .blueprint{
    display:none!important;
  }

  /* Use a controlled dark overlay only on the media for text readability. */
  .home-page .reference-home-hero .hero-video-clip:after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:2!important;
    pointer-events:none!important;
    background:
      linear-gradient(90deg,
        rgba(3,19,43,.08) 0%,
        rgba(3,19,43,.18) 16%,
        rgba(3,19,43,.52) 34%,
        rgba(3,19,43,.46) 50%,
        rgba(3,19,43,.12) 74%,
        rgba(3,19,43,0) 100%)!important;
  }

  .home-page .reference-home-hero .hero-copy{
    position:absolute!important;
    z-index:10!important;
    color:#fff!important;
    text-shadow:0 2px 6px rgba(0,0,0,.58)!important;
  }
  .home-page .reference-home-hero .hero-copy .eyebrow{
    color:#f7d487!important;
    letter-spacing:.03em!important;
    font-weight:700!important;
  }
  .home-page .reference-home-hero .hero-copy h1{
    color:#fff!important;
    letter-spacing:-.02em!important;
    font-weight:800!important;
    min-height:0!important;
    max-width:100%!important;
  }
  .home-page .reference-home-hero .hero-copy>p:not(.eyebrow){
    color:rgba(255,255,255,.95)!important;
    max-width:100%!important;
  }
  .home-page .reference-home-hero .actions{
    display:none!important;
  }
}

/* ----- tablet / iPad ranges ----- */
@media (min-width:601px) and (max-width:980px){
  .home-page .reference-home-hero{
    min-height:500px!important;
  }
  .home-page .reference-home-hero .hero-video-clip video{
    left:21%!important;
    width:79%!important;
    object-position:53% center!important;
    transform:scale(1.04)!important;
    filter:brightness(.86) contrast(1.03)!important;
  }
  .home-page .reference-home-hero .hero-copy{
    left:33%!important;
    top:108px!important;
    width:33%!important;
    max-width:270px!important;
  }
  .home-page .reference-home-hero .hero-copy .eyebrow{
    font-size:10px!important;
    margin:0 0 8px!important;
  }
  .home-page .reference-home-hero .hero-copy h1{
    font-size:clamp(28px,4.7vw,42px)!important;
    line-height:1.00!important;
    margin:2px 0 10px!important;
  }
  .home-page .reference-home-hero .hero-copy>p:not(.eyebrow){
    font-size:12px!important;
    line-height:1.35!important;
    margin:0!important;
  }

  /* Reposition stock cards safely above the quick links on iPad / tablet. */
  .home-page .reference-home-hero .stock-cards{
    left:4.5%!important;
    right:28%!important;
    bottom:66px!important;
    gap:10px!important;
    z-index:11!important;
  }
  .home-page .reference-home-hero .stock-cards>div{
    min-width:0!important;
    flex:1 1 0!important;
    height:64px!important;
  }
  .home-page .reference-home-hero .stock-cards strong{
    font-size:clamp(17px,2.6vw,22px)!important;
  }
  .home-page .reference-home-hero .stock-cards span{
    font-size:10px!important;
    line-height:1.15!important;
  }
  .home-page .reference-home-hero .video-toggle{
    left:37%!important;
    bottom:128px!important;
  }
}

/* ----- phones ----- */
@media (max-width:600px){
  .home-page .reference-home-hero{
    min-height:432px!important;
  }
  .home-page .reference-home-hero .hero-video-clip video{
    left:8%!important;
    width:92%!important;
    object-position:58% center!important;
    transform:scale(1.05)!important;
    filter:brightness(.74) contrast(1.06)!important;
  }
  .home-page .reference-home-hero .hero-copy{
    left:41%!important;
    top:102px!important;
    width:51%!important;
    max-width:none!important;
  }
  .home-page .reference-home-hero .hero-copy .eyebrow{
    font-size:8px!important;
    margin:0 0 6px!important;
  }
  .home-page .reference-home-hero .hero-copy h1{
    font-size:clamp(22px,6.2vw,28px)!important;
    line-height:1.0!important;
    margin:2px 0 7px!important;
  }
  .home-page .reference-home-hero .hero-copy>p:not(.eyebrow){
    font-size:9.5px!important;
    line-height:1.34!important;
    margin:0!important;
  }
  .home-page .reference-home-hero .stock-cards{
    left:4%!important;
    right:5%!important;
    bottom:18px!important;
    gap:10px!important;
    z-index:11!important;
  }
  .home-page .reference-home-hero .stock-cards>div{
    height:74px!important;
  }
  .home-page .reference-home-hero .stock-cards strong{
    font-size:22px!important;
  }
  .home-page .reference-home-hero .stock-cards span{
    font-size:9px!important;
    line-height:1.15!important;
  }
  .home-page .reference-home-hero .video-toggle{
    bottom:92px!important;
  }
}

/* ----- desktop fine tuning ----- */
@media (min-width:981px){
  .home-page .reference-home-hero .stock-cards{
    bottom:78px!important;
    left:43%!important;
    gap:18px!important;
  }
  .home-page .reference-home-hero .video-toggle{
    bottom:162px!important;
  }
}
