/* Desktop hero: fill the visible height instead of letterboxing a fixed-ratio stage.
   The artwork shares a single group. Mobile keeps its existing grid items. */
.hero-art-group{display:contents}
@media(min-width:901px){
 .hero-v3{height:100vh;height:100svh;min-height:540px}
 .hero-v3 .hero-inner{
  position:absolute;left:50%;top:0;translate:-50% 0;
  width:min(100%,240vh);width:min(100%,240svh);height:100%;
  aspect-ratio:auto;max-width:none;min-height:0;margin:0;padding:0;
  display:block;container-type:inline-size
 }
 .hero-v3 .hero-message{position:absolute;top:22%;left:6%;width:45%;margin:0}
 .hero-v3 .hero-message h1{font-size:4.8cqi;line-height:1.48;margin:0;max-width:none}
 .hero-v3 .hero-message h1 span{white-space:nowrap}
 .hero-v3 .hero-art-group{
  display:block;position:absolute;top:12%;bottom:25%;right:8%;width:43%;
  pointer-events:none
 }
 .hero-v3 .hero-art-group .detective-layer{
  position:absolute;top:0;bottom:auto;left:0;right:auto;
  height:100%;width:64%;object-fit:contain;object-position:center bottom
 }
 .hero-v3 .hero-art-group .recruit-badge{
  position:absolute;top:50%;bottom:auto;right:0;left:auto;
  translate:0 -50%;width:46.51163%;max-width:none;aspect-ratio:1;
  container-type:normal
 }
 .hero-v3 .badge-copy{font-size:2.05cqi;line-height:1.22;padding:0 1cqi}
 .hero-v3 .recruit-title{font-size:3.8cqi;bottom:90%;margin:0}
 .hero-v3 .recruit-title small{font-size:clamp(11px,1.066667cqi,20px)}
 .hero-v3 .hero-quick-facts{bottom:1.5%;gap:2.2cqi}
 .hero-v3 .hero-quick-facts dt{font-size:max(11px,.78cqi);line-height:1.5}
 .hero-v3 .hero-quick-facts dd{font-size:max(14px,1.14cqi);line-height:1.5}
 .hero-v3 .hero-inner>.hero-button{
  bottom:calc(1.5% + max(16.5px,1.17cqi) + max(21px,1.71cqi) + 2px + max(12px,.8cqi));
  width:clamp(320px,25%,560px);min-width:0;min-height:48px;
  font-size:clamp(20px,1.55cqi,32px);padding:.45cqi 1.2cqi;
  line-height:1.6;gap:1.2cqi
 }
 .friendly-band{min-height:48px}
 .hero-v3 .intro-play-prompt{bottom:auto;top:12%;left:50%;font-size:14px}
}
/* A short laptop viewport needs smaller foreground copy, not a smaller video. */
@media(min-width:901px) and (max-height:620px){
 .hero-v3 .hero-message h1{font-size:min(4.8cqi,9svh)}
 .hero-v3 .hero-art-group{top:13%;bottom:27%}
 .hero-v3 .hero-art-group .recruit-badge{width:min(46.51163%,39svh)}
 .hero-v3 .recruit-title{font-size:min(3.8cqi,7svh)}
 .hero-v3 .badge-copy{font-size:min(2.05cqi,3.8svh)}
}

/* Final information: anchor CTA to the foreground, with a viewport safety limit.
   Intro keeps its lower CTA position so it cannot cover the filmed titles. */
@media(min-width:901px){
 .hero-v3 .hero-inner{
  --cta-height:max(48px,calc(clamp(20px,1.55cqi,32px) * 1.6 + 1.033334cqi));
  --facts-height:calc(max(16.5px,1.17cqi) + max(21px,1.71cqi) + 2px);
  --cta-facts-gap:max(12px,.8cqi);
  --final-cta-top:min(calc(max(75%,calc(22% + 21.312cqi)) + 3.5cqi),calc(100% - var(--cta-height) - var(--cta-facts-gap) - var(--facts-height) - 1.5%));
 }
 .hero-v3 .hero-inner>.hero-button{height:var(--cta-height);box-sizing:border-box}
 .hero-v3.info-visible .hero-inner>.hero-button{top:var(--final-cta-top);bottom:auto}
 .hero-v3.info-visible .hero-quick-facts{top:calc(var(--final-cta-top) + var(--cta-height) + var(--cta-facts-gap));bottom:auto}
}
