/* Keep the existing hero artwork available until playback starts. */
.m1-home .hero-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center;z-index:0;pointer-events:none;opacity:0;
  filter:saturate(.78) brightness(.86)
}
.m1-home .hero-video-ready .hero-video{opacity:1}
.m1-home .hero-video-ready:before{animation:none;visibility:hidden}
@media(prefers-reduced-motion:no-preference){
  .m1-home .hero-video{transition:opacity 300ms ease}
}
@media(prefers-reduced-motion:reduce){
  .m1-home .hero-video-ready .hero-video{display:none}
  .m1-home .hero-video-ready:before{visibility:visible}
}

.m1-home .hero-video-ready:after{
  background:
    radial-gradient(ellipse at 50% 44%,#08080854 0%,transparent 68%),
    linear-gradient(0deg,#09090b 0%,#09090b 8%,#09090b70 37%,#09090b24 76%,#09090b65 100%)
}
.m1-home .hero .hero-logo{
  filter:drop-shadow(0 2px 2px #000e) drop-shadow(0 9px 15px #000a)
}
.m1-home .hero .kicker{
  color:var(--ink);
  text-shadow:0 1px 3px #000,0 2px 9px #000b
}
@media(prefers-reduced-motion:reduce){
  .m1-home .hero-video-ready:after{
    background:linear-gradient(0deg,#09090b 0%,#09090b 10%,#09090b85 34%,#09090b30 75%,#09090b65)
  }
}

/* Match the final pixels of the hero to the first section below it. */
.m1-home .hero:after,
.m1-home .hero-video-ready:after{
  background:
    linear-gradient(to bottom,transparent 42%,#08080830 58%,#08080880 75%,#080808d9 90%,var(--bg) 100%),
    radial-gradient(ellipse at 50% 44%,#08080854 0%,transparent 68%),
    linear-gradient(to bottom,#09090b65 0%,transparent 48%)
}

.m1-home .hero-controls{
  position:absolute;right:clamp(14px,3vw,40px);bottom:16px;z-index:3;display:flex;gap:7px
}
.m1-home .hero .hero-controls button{
  position:static;display:grid;place-items:center;width:44px;height:44px;min-height:0;
  padding:0;border:1px solid #ffffff30;border-radius:50%;
  background:#101010a8;color:#f3efea;cursor:pointer
}
.m1-home .hero .hero-controls button:hover{background:#171717e6;border-color:#ffffff80;color:white}
.m1-home .hero .hero-controls button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.m1-home .hero .hero-controls button[hidden]{display:none}
.hero-sound-toggle .sound-on-icon,.hero-sound-toggle.is-audible .sound-muted-icon{display:none}
.hero-sound-toggle.is-audible .sound-on-icon{display:inline}
@media(prefers-reduced-motion:reduce){.m1-home .hero-controls{display:none}}

/* Keep the whole first screen on the hero, including the shared header. */
.m1-home .hero{min-height:calc(100vh - 74px);min-height:calc(100svh - 74px)}
.m1-home .hero .hero-inner{width:min(1120px,94%);padding:clamp(24px,5vh,54px) 0 clamp(64px,8vh,92px)}
.m1-home .hero .hero-logo{
  width:min(64vw,940px,112svh);max-width:100%!important;height:auto;
  margin:0 auto
}
.m1-home .hero .kicker{font-size:clamp(.8rem,1.15vw,1.15rem);letter-spacing:.2em}
.m1-home .hero .actions{gap:12px;margin-top:clamp(12px,2.5vh,26px)}
.m1-home .hero .actions .btn{
  min-height:54px;padding:12px clamp(18px,2vw,30px);
  font-size:clamp(.95rem,1.15vw,1.1rem)!important
}
.m1-home .hero .actions .btn span{display:inline-block}
.m1-home .hero .actions .btn-secondary{box-shadow:0 3px 0 #332a24,0 7px 18px #0003}
@media(max-width:850px){
  .m1-home .hero{min-height:calc(100vh - 67px);min-height:calc(100svh - 67px)}
  .m1-home .hero .hero-logo{width:min(100%,660px,112svh)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .m1-home .hero .actions .btn span{transition:transform 200ms ease-out}
  .m1-home .hero .actions .btn:hover{transform:translateY(-3px);box-shadow:0 3px 0 #71320b,0 12px 26px #ff650f40}
  .m1-home .hero .actions .btn:hover span{transform:translateX(4px)}
  .m1-home .hero .actions .btn-secondary:hover{box-shadow:0 3px 0 #332a24,0 12px 26px #0008}
  .m1-home .hero .actions .btn-secondary:hover span{transform:translateY(4px)}
  .m1-home .hero .actions .btn:active{transform:translateY(1px);box-shadow:0 1px 0 #71320b}
}
