/* Mobile first: compact two-level header, no hidden links or oversized emoji arrow. */
header nav{align-items:center}
header .hooponopono-nav{white-space:nowrap}
@media(min-width:751px) and (max-width:1100px){
 header{gap:12px;padding-left:3%;padding-right:3%}
 header nav{gap:14px;font-size:13px}
 header .contact-header{padding:8px 10px}
}
@media(max-width:750px){
 header{position:fixed;display:flex;flex-wrap:wrap;align-items:center;gap:0;padding:6px 5% 7px;min-height:0}
 header .brand{order:0;flex:0 0 45px;width:45px;height:45px}
 header .brand img{width:45px;height:45px;object-fit:contain}
 header nav{order:1;width:100%;margin:0;display:flex;justify-content:flex-start;align-items:center;gap:clamp(12px,4vw,24px);min-height:35px;font-size:clamp(11px,3.2vw,13px);overflow:visible}
 header nav>a:not(.contact-header),header .ways-toggle{white-space:nowrap;min-height:35px}
 header .ways-dropdown{left:0;right:auto;min-width:min(290px,88vw);max-width:88vw}
 header .contact-header{position:absolute;right:5%;top:9px;min-height:36px;padding:6px 15px;font-size:13px;line-height:1.2}
 header .contact-header span{display:none}
 .stage{min-height:650px}
 .opening .hero-copy{top:27%;left:7%;right:7%}
 .opening .story-skip{top:120px;right:7%;z-index:5}
 .opening .film-control{top:170px;right:7%;bottom:auto;z-index:6;font-size:13px;padding:10px 14px}
 .opening .hero-copy h1{font-size:clamp(37px,9vw,60px)}
 .opening .intro-sub{font-size:16px}
}
@media(max-width:370px){
 header nav{gap:9px;font-size:11px}
 header .contact-header{padding:6px 12px}
 .opening .film-control{top:165px}
}
@media(min-width:751px) and (max-width:1024px){
 .opening .film-control{bottom:55px}
 .opening .stage{min-height:700px}
}
/* Small screens: show the whole rainbow immediately beneath the header,
   then the introduction. No empty hero spacer and no side cropping. */
@media(max-width:750px){
  .opening .stage{
    height:auto!important;
    min-height:0!important;
    background:linear-gradient(180deg,#47372f,#3b302b);
  }
  .opening .hero-film.landscape{
    position:absolute;
    top:105px;
    bottom:auto;
    left:0;
    right:0;
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    object-fit:contain;
    object-position:center;
    transform:none!important;
    will-change:auto;
    background:transparent;
  }
  .opening .shade{pointer-events:none;background:none}
  .opening .hero-copy{
    position:relative;
    top:auto!important;
    left:auto;
    right:auto;
    max-width:none;
    margin:0 7%;
    padding:calc(105px + 56.25vw + 22px) 0 86px;
    text-shadow:none;
  }
  .opening .hero-copy h1{font-size:clamp(36px,9vw,58px);margin-bottom:18px}
  .opening .hero-copy .eyebrow{margin-bottom:16px}
  .opening .intro-sub{font-size:15px;line-height:1.5}
  .opening .story-skip{top:auto;bottom:22px;right:7%;z-index:5;color:#fff}
  .opening .film-control{
    top:calc(105px + 56.25vw - 44px);
    bottom:auto;
    right:7%;
    z-index:6;
    font-size:12px;
    padding:6px 11px;
  }
  .opening .scroll-note{bottom:18px;left:7%;font-size:12px}
}
@media(max-width:370px){
  .opening .hero-copy{padding-bottom:110px}
}
@media(min-width:751px) and (max-width:1024px) and (orientation:portrait){
  .opening .stage{height:auto!important;min-height:0!important;background:#453a31}
  .opening .hero-film.landscape{position:absolute;top:95px;bottom:auto;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;transform:none!important;background:transparent}
  .opening .hero-copy{position:relative;top:auto!important;left:auto;right:auto;margin:0 8%;max-width:750px;padding:calc(95px + 56.25vw + 26px) 0 100px}
  .opening .shade{background:none;pointer-events:none}
  .opening .film-control{top:calc(95px + 56.25vw - 45px);bottom:auto}
}

/* In an unavailable video, do not collapse the hero or hide the control. */
.hero-film{background:#493d33}
.film-control{z-index:6;max-width:calc(100% - 24px)}
