/* One semantic introduction and one continuous cinematic background.
   The contents wrapper leaves the desktop positioning context unchanged. */
.hero-stage{display:contents;}

@media(max-width:620px){
  .site-header{
    position:relative;
    height:calc(74px + env(safe-area-inset-top,0px));
    padding-top:env(safe-area-inset-top,0px);
    padding-left:max(20px,env(safe-area-inset-left,0px));
    padding-right:max(20px,env(safe-area-inset-right,0px));
  }
  .site-header nav{top:100%;}
  .hero{
    --hero-left:max(20px,env(safe-area-inset-left,0px));
    --hero-right:max(20px,env(safe-area-inset-right,0px));
    --mobile-art-height:clamp(236px,64vw,276px);
    display:block;min-height:0;height:auto;max-height:none;
    padding:20px 0 22px;overflow:hidden;background:#0c1719;
  }
  .hero-content.container{
    width:100%;max-width:none;margin:0;
    padding:0 var(--hero-right) 0 var(--hero-left);text-align:center;
  }
  .hero-content>.eyebrow{
    justify-content:center;max-width:none;min-height:32px;
    font-size:10px;line-height:1.6;letter-spacing:.8px;
  }
  .baybayin-signature{
    flex-direction:column;justify-content:center;gap:0;min-height:48px;
    max-width:none;margin-top:8px;
  }
  .baybayin-script{font-size:23px;line-height:1.35;max-width:100%;}
  .baybayin-meaning{
    display:flex;align-items:baseline;gap:8px;border:0;padding:0;
  }
  .hero .frontier-title{
    width:100%;max-width:100%;
    margin:calc(var(--mobile-art-height) - 50px) 0 12px;
  }
  .hero .frontier-title img{display:block;width:100%;height:auto;object-fit:contain;}
  .hero .filipino-made{
    justify-content:center;min-height:32px;
    margin:0 auto 14px;padding:7px 10px;
  }
  .hero-description{
    font-size:14px;line-height:1.7;min-height:48px;max-width:390px;
    margin-inline:auto;color:#e0e8dd;text-shadow:0 2px 5px #000,0 0 15px #000;
  }
  .hero .hero-actions{
    flex-direction:row;width:100%;max-width:none;
    margin-top:24px;gap:22px;padding-inline:8px;
  }
  .hero .button-ornate{
    flex:1 1 0;min-width:0;width:auto;min-height:64px;
    font-size:11px;line-height:1.4;padding:9px 8px;letter-spacing:.3px;gap:5px;
  }
  .hero-actions .button-label{min-width:0;overflow-wrap:normal;}
  .hero-caption{
    justify-content:center;min-height:34px;
    margin-top:20px;line-height:1.7;gap:3px 6px;color:#c5d2c7;
  }

  /* The scene extends behind the entire introduction. A smaller, complete
     figure sits inside that same background, with its face above the title. */
  .hero-stage .hero-visual{inset:0;height:100%;width:100%;z-index:-3;}
  .hero-stage .master-scene{
    object-position:72% top;filter:brightness(.9);
  }
  .hero-stage .hero-shade{
    background:linear-gradient(180deg,#071710d9 0%,#071710aa 13%,#07171022 22%,#07171015 31%,#071710a8 54%,#091715ed 78%,#0c1719 100%);
  }
  .hero-stage .hero-figures{
    position:absolute;top:78px;bottom:auto;z-index:1;
    left:max(12px,env(safe-area-inset-left,0px));
    right:max(12px,env(safe-area-inset-right,0px));
    width:auto;height:var(--mobile-art-height);margin:0;
  }
  .hero-stage .master-figure{filter:drop-shadow(0 10px 12px #0009);}
  .hero-stage .master-caption{
    position:relative;inset:auto;max-width:none;min-height:38px;
    margin:14px var(--hero-right) 0 var(--hero-left);
    display:flex;align-items:center;justify-content:space-between;gap:10px;
  }
  .hero-stage .master-caption h2{flex:0 1 auto;min-width:0;}
  .hero-stage .master-skill-plaque{
    flex:0 1 auto;max-width:62%;min-width:0;min-height:38px;
    font-size:9px;line-height:1.4;overflow-wrap:anywhere;
  }
  .hero-stage .master-skill-plaque img{flex-shrink:0;}
  .hero-stage .hero-controls{
    position:relative;inset:auto;transform:none;width:fit-content;
    max-width:100%;margin:2px auto 0;
  }
  .hero-stage .master-dot{width:38px;height:44px;}
  .hero-stage .master-status{
    position:relative;inset:auto;max-width:none;
    margin:10px var(--hero-right) 0 var(--hero-left);
  }
}

@media(max-width:360px){
  .hero-description{min-height:72px;}
  .hero .hero-actions{flex-direction:row;gap:20px;}
  .hero .button-ornate{min-height:64px;font-size:10px;padding-inline:6px;}
  .hero-stage .master-caption{gap:8px;}
  .hero-stage .master-skill-plaque{padding-inline:7px;}
}
