/* Final adjustments after full mobile and landscape regression tests.
   This file loads last to avoid older shell styles overriding work carousel sizing. */
html body #chapters #work .work-grid {
 box-sizing:border-box !important;
 width:100% !important;
 min-width:0 !important;
 max-width:100% !important;
 padding-left:0 !important;
 padding-right:0 !important;
 scroll-padding-inline:0 !important;
 gap:clamp(18px,2.5vw,28px) !important;
}
html body #chapters #work .work-grid > .work {
 box-sizing:border-box !important;
 flex:0 0 100% !important;
 width:100% !important;
 min-width:100% !important;
 max-width:100% !important;
 margin-left:0 !important;
 margin-right:0 !important;
 scroll-snap-align:start;
}
@media(orientation:portrait) and (max-width:330px) and (max-height:600px){
  html body #chapters #home .chapter-content {
    padding-top:0 !important;
    padding-bottom:0 !important;
  }
  html body #chapters #home .chapter-content-inner {
    row-gap:2px !important;
    gap:2px !important;
  }
  html body #chapters #home .hero-identity {gap:0 !important;}
  html body #chapters #home .hero-name {font-size:23px !important;line-height:1 !important;}
  html body #chapters #home .hero-role {font-size:10px !important;line-height:1.12 !important;}
  html body #chapters #home h1 {
    font-size:33px !important;
    line-height:1 !important;
    margin:0 !important;
  }
  html body #chapters #home .chapter-content-inner > p {
    font-size:12px !important;
    line-height:1.32 !important;
    margin:0 !important;
  }
  html body #chapters #home .chips {
    gap:3px !important;
    margin:0 !important;
  }
  html body #chapters #home .chip {
    font-size:9.5px !important;
    line-height:1.1 !important;
    padding:3px 6px !important;
  }
  html body #chapters #home .cta {
    min-height:42px !important;
    margin-top:0 !important;
  }
  html body #chapters #home .hero-secondary {
    font-size:11px !important;
    min-height:25px !important;
    margin-top:0 !important;
    padding:1px 0 !important;
  }
}
