/* PortfoliosHub V11 · Short landscape viewport scrolling fix.
   Preserves the approved brand and normal portrait/desktop behavior. */
@media (orientation:landscape) and (max-height:600px) and (max-width:1200px) {
  html,body {height:auto!important;min-height:100%;overflow-x:clip!important;overscroll-behavior-y:auto;}
  body:not(.dialog-open):not(.menu-open) {position:static!important;overflow-y:auto!important;touch-action:pan-y;-webkit-overflow-scrolling:touch;}
  .site-header {min-height:var(--nav-height);}
  /* Allow a tappable menu and its links to scroll in a short viewport. */
  .nav-links {
    position:fixed;
    top:calc(var(--nav-height) + env(safe-area-inset-top,0px));
    left:0;right:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    margin-inline:0;
    max-height:calc(100dvh - var(--nav-height) - env(safe-area-inset-top,0px));
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transform:translateY(-8px);
    padding:12px max(18px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
  }
  .nav-links.is-open {visibility:visible;opacity:1;pointer-events:auto;transform:none;}
  .nav-links a {width:100%;font-size:13px;min-height:44px;}
  .menu-toggle {display:block;min-width:44px;min-height:44px;}
  .nav-cta {display:none;}
  .brand {min-width:0;}
  .brand__name {max-width:calc(100vw - 185px);}
  .hero {min-height:0!important;height:auto!important;padding-top:calc(var(--nav-height) + 22px);padding-bottom:22px;overflow:hidden;}
  .hero__inner {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(12px,2.4vw,27px);align-items:center;}
  .hero__copy {min-width:0;padding:14px 0 28px;}
  .hero h1 {font-size:clamp(2.35rem,5.5vw,4.2rem)!important;line-height:1.04;white-space:normal;margin-bottom:14px;}
  .hero__kicker {margin-bottom:10px;font-size:9px;}
  .hero__desc {font-size:12px;line-height:1.55;}
  .hero__art {width:min(100%,225px);height:auto;min-height:0;aspect-ratio:1;margin:0 auto;align-self:center;}
  .hero__monogram {font-size:clamp(3.2rem,8vw,5rem);}
  .hero__bottom {margin-top:8px;align-items:center;flex-wrap:wrap;gap:10px;}
  .hero__availability {font-size:9px;}
  .section {padding-block:clamp(40px,7vh,65px);}
  /* Sticky pinned panels can trap content in a 320–430px-high landscape screen.
     Render the three narrative chapters in document flow instead. */
  .story {height:auto!important;min-height:0;overflow:visible;}
  .story__sticky {position:relative!important;top:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;display:block;padding:70px 0 35px;}
  .story__topline {top:14px!important;left:var(--gutter);right:var(--gutter);}
  .story__grid {display:block!important;padding:0!important;}
  .story__copy {position:static!important;height:auto!important;min-height:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,3vw,25px);margin:0;}
  .story__chapter,.story__chapter.is-active {position:static!important;inset:auto!important;opacity:1!important;transform:none!important;visibility:visible!important;pointer-events:auto!important;}
  .story__chapter h2 {font-size:clamp(1.3rem,2.7vw,2rem)!important;margin:8px 0;}
  .story__chapter p {font-size:11px!important;line-height:1.6;}
  .story__chapter-index {font-size:10px;}
  .story__steps,.story__sculpture,.story__bottom {display:none!important;}
  .skills__grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .detail-overlay {height:100dvh;}
  .detail-shell {height:100dvh;min-height:0;}
  .detail-scroll {min-height:0;overscroll-behavior:contain;touch-action:pan-y;}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:740px) {
  .hero__art {width:min(100%,150px);}
  .hero h1 {font-size:clamp(2.1rem,6vw,2.8rem)!important;}
  .story__copy {grid-template-columns:minmax(0,1fr);gap:18px;}
  .story__chapter p {max-width:65ch;}
  .skills__grid {grid-template-columns:minmax(0,1fr);}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:1200px) and (prefers-reduced-motion:reduce) {
  .story__chapter,.hero__art {animation:none!important;transition:none!important;}
}
