/* QA only: Home portfolio hero */
body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-content>.eyebrow,
body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-content>h1,
body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-content>.lead{display:none!important}
body[data-page="home"] .kv-home-portfolio-hero .enhanced-message{display:none;flex-direction:column}
body[data-page="home"] .kv-home-portfolio-hero .enhanced-message.active{display:flex}
body[data-page="home"] .kv-home-portfolio-hero .enhanced-message::before,
body[data-page="home"] .kv-home-portfolio-hero .enhanced-message::after,
body[data-page="home"] .kv-home-portfolio-hero [data-showcase-message]::before,
body[data-page="home"] .kv-home-portfolio-hero [data-showcase-message]::after{content:none!important;display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important}
body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-dots{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-dots::-webkit-scrollbar{display:none}
body[data-page="home"] .kv-home-portfolio-hero [data-showcase-slide] img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;transform:none!important}
body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-orbit{display:none!important}

/* Desktop/tablet restored to the previous approved behaviour. */
@media(min-width:641px){
  body[data-page="home"] .kv-home-portfolio-hero{position:relative!important;width:min(1240px,calc(100% - 48px))!important;height:540px!important;min-height:540px!important;margin:28px auto 24px!important;overflow:hidden!important;border:1px solid rgba(213,169,75,.32)!important;border-radius:26px!important;background:#071321!important;box-shadow:0 22px 60px rgba(0,0,0,.30)!important}
  body[data-page="home"] .kv-home-portfolio-hero [data-showcase-slide]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important;border-radius:0!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-shade{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background:linear-gradient(180deg,rgba(3,9,16,.02) 0%,rgba(3,9,16,.04) 47%,rgba(4,12,22,.78) 70%,rgba(5,16,29,.98) 100%)!important;pointer-events:none!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-content{position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:auto!important;min-height:0!important;padding:30px 38px 26px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,330px)!important;grid-template-areas:"message action" "dots dots"!important;column-gap:34px!important;row-gap:16px!important;align-items:end!important;background:linear-gradient(180deg,rgba(5,16,29,0) 0%,rgba(5,16,29,.82) 18%,rgba(5,16,29,.97) 100%)!important;z-index:5!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message-stage{grid-area:message!important;display:block!important;width:100%!important;max-width:760px!important;min-height:0!important;height:auto!important;margin:0!important;overflow:visible!important;opacity:1!important;visibility:visible!important;z-index:7!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message{gap:8px!important;opacity:0!important;visibility:hidden!important;transform:none!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message.active{display:flex!important;opacity:1!important;visibility:visible!important;transform:none!important;position:relative!important;z-index:8!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message strong{display:block!important;color:#edc761!important;font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(1.72rem,2.5vw,2.75rem)!important;line-height:1.02!important;font-weight:500!important;letter-spacing:-.022em!important;opacity:1!important;visibility:visible!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message span{display:block!important;color:#c1cad7!important;font-size:.94rem!important;line-height:1.45!important;max-width:720px!important;opacity:1!important;visibility:visible!important}
  body[data-page="home"] .kv-home-portfolio-hero .hero-actions{grid-area:action!important;width:100%!important;margin:0!important;align-self:end!important;z-index:8!important}
  body[data-page="home"] .kv-home-portfolio-hero .kv-carousel-hero-link{width:100%!important;min-height:52px!important;padding:13px 18px!important;border-radius:14px!important;font-size:.86rem!important;line-height:1.22!important;font-weight:800!important;text-align:center!important;white-space:normal!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-dots{grid-area:dots!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;gap:8px!important;justify-content:center!important;z-index:8!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-dot{flex:0 0 auto!important}
}

@media(max-width:900px) and (min-width:641px){
  body[data-page="home"] .kv-home-portfolio-hero{width:calc(100% - 32px)!important;height:500px!important;min-height:500px!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-hero-content{padding:24px 26px 22px!important;grid-template-columns:minmax(0,1fr) minmax(190px,260px)!important;column-gap:22px!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message strong{font-size:clamp(1.45rem,3.2vw,2.15rem)!important}
  body[data-page="home"] .kv-home-portfolio-hero .enhanced-message span{font-size:.86rem!important}
}

/* Mobile only: fixed frame, CTA anchored low, copy grows upward with a safe gap. */
@media(max-width:640px){
  html body[data-page="home"] main .kv-home-portfolio-hero{
    position:relative!important;
    width:calc(100% - 24px)!important;
    height:462px!important;
    min-height:462px!important;
    max-height:462px!important;
    margin:10px auto 4px!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;border-radius:0!important;
    background:#071321!important;
    box-shadow:none!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero [data-showcase-slide]{
    position:absolute!important;
    left:0!important;right:0!important;top:0!important;bottom:auto!important;
    width:100%!important;
    height:246px!important;min-height:246px!important;max-height:246px!important;
    overflow:hidden!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero [data-showcase-slide] img{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center 46%!important;transform:none!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-hero-shade{
    position:absolute!important;left:0!important;right:0!important;top:0!important;bottom:auto!important;width:100%!important;height:246px!important;inset:0 0 auto 0!important;background:linear-gradient(180deg,rgba(4,11,19,.02) 0%,rgba(4,11,19,.08) 66%,rgba(7,19,33,.62) 100%)!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-hero-content{
    position:absolute!important;
    left:0!important;right:0!important;top:246px!important;bottom:0!important;
    width:100%!important;height:216px!important;min-height:216px!important;max-height:216px!important;
    margin:0!important;padding:12px 16px 14px!important;
    display:block!important;
    background:linear-gradient(180deg,#071321 0%,#071522 100%)!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    z-index:20!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-message-stage{
    position:absolute!important;
    left:16px!important;right:16px!important;top:auto!important;bottom:70px!important;
    width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;
    display:flex!important;align-items:flex-end!important;
    overflow:visible!important;
    opacity:1!important;visibility:visible!important;
    transform:none!important;background:none!important;backdrop-filter:none!important;
    z-index:22!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-message{
    position:relative!important;inset:auto!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;gap:6px!important;transform:none!important;opacity:0!important;visibility:hidden!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-message.active{display:flex!important;opacity:1!important;visibility:visible!important}
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-message strong{
    display:block!important;margin:0!important;color:#edc761!important;font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(1.36rem,6.1vw,1.70rem)!important;line-height:1.04!important;font-weight:500!important;letter-spacing:-.018em!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-message span{
    display:block!important;margin:0!important;color:#b9c3d1!important;font-size:.80rem!important;line-height:1.32!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .hero-actions{
    position:absolute!important;
    left:16px!important;right:16px!important;top:auto!important;bottom:14px!important;
    display:flex!important;width:auto!important;height:46px!important;min-height:46px!important;max-height:46px!important;
    margin:0!important;padding:0!important;transform:none!important;z-index:23!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .hero-actions .kv-carousel-hero-link{
    display:flex!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 13px!important;justify-content:center!important;text-align:center!important;white-space:normal!important;font-size:.82rem!important;line-height:1.15!important;
  }
  html body[data-page="home"] main .kv-home-portfolio-hero .enhanced-hero-dots{display:none!important}
  html body[data-page="home"] .stats-band{margin-top:0!important;padding-top:8px!important}
}
