/* Menu icons. Stroke icons follow the drawer color. The drawer stays dark, so bulk glyphs stay dark on the light tile. */
#ns-app .ns-drawer__link .ns-ico{display:grid;place-items:center;width:24px;height:24px;flex:none;color:inherit;}
#ns-app .ns-drawer__link .ns-ico svg{display:block;width:22px;height:22px;overflow:visible;}
#ns-app .ns-drawer__link .ns-ico-bulk,
#ns-app .ns-drawer__project .ns-ico-bulk{display:none;}
#ns-app .ns-drawer__link[aria-current="page"] .ns-ico-line,
#ns-app .ns-drawer__project:hover .ns-ico-line,
#ns-app .ns-drawer__project:focus-visible .ns-ico-line,
#ns-app .ns-drawer__project[aria-current="page"] .ns-ico-line{display:none;}
#ns-app .ns-drawer__link[aria-current="page"] .ns-ico-bulk,
#ns-app .ns-drawer__project:hover .ns-ico-bulk,
#ns-app .ns-drawer__project:focus-visible .ns-ico-bulk,
#ns-app .ns-drawer__project[aria-current="page"] .ns-ico-bulk{display:grid;}
#ns-app .ns-drawer .ns-ico svg.ns-stroke,
#ns-app .ns-drawer .ns-ico svg.ns-stroke *{
  fill:none!important;
  stroke:currentColor!important;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#ns-app .ns-drawer .ns-ico-line svg.ns-stroke,
#ns-app .ns-drawer .ns-ico-line svg.ns-stroke *{stroke-width:1.85px!important;}
#ns-app .ns-drawer .ns-ico-bulk svg.ns-stroke,
#ns-app .ns-drawer .ns-ico-bulk svg.ns-stroke *{stroke-width:2.45px!important;}
#ns-app .ns-drawer .ns-ico svg.ns-fill{fill:none!important;stroke:none!important;}
#ns-app .ns-drawer .ns-ico svg.ns-fill > path:not(.ns-glyph){fill:currentColor!important;stroke:none!important;stroke-width:0!important;}
#ns-app .ns-drawer .ns-ico svg.ns-fill .ns-glyph{fill:none!important;stroke:#0B0B0B!important;stroke-width:2.3px!important;}
#ns-app .ns-drawer .ns-ico svg.ns-fill .ns-glyph-dot{fill:#0B0B0B!important;stroke:none!important;}
#ns-app .ns-drawer__nav .ns-drawer__project,
#ns-app .ns-drawer__project,
#ns-app .ns-drawer__project .ns-ico,
#ns-app .ns-drawer__project svg,
#ns-app .ns-drawer__project svg *{color:#007AFF!important;}
#ns-app .ns-drawer__project svg.ns-stroke,
#ns-app .ns-drawer__project svg.ns-stroke *{stroke:#007AFF!important;fill:none!important;}
#ns-app .ns-drawer__project svg.ns-fill > path{fill:#007AFF!important;stroke:none!important;}
#ns-app .ns-drawer__link[data-section="contact"]{display:none!important;}

/* Eye, no circle, cropped to the eye so it reads at icon size. */
svg.ns-eye{display:inline-block;width:22px;height:22px;flex:none;vertical-align:-5px;overflow:visible;}
.ns-stone-stat-icon, .ns-stone-views svg.ns-eye, .ns-live-views svg.ns-eye{width:22px!important;height:22px!important;}

/* Phones only. Home and contact keep their type. Slides 2–4 fit the screen by
   using the leftover space, not by shrinking the type. Scroll chapters are not
   forced to an empty viewport. */
@media (max-width: 760px){
  html body #ns-app#ns-app :is(#home, #portfolio, #software-engineering, #icon-bench, #contact){
    height:100svh!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
    box-sizing:border-box!important;
  }
  html body #ns-app#ns-app :is(#who, #process, #testimonials, #blog, #saga){
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    scroll-snap-align:none!important;
    scroll-snap-stop:normal!important;
  }

  html body #ns-app #portfolio{
    padding-top:max(68px, calc(env(safe-area-inset-top, 0px) + 52px))!important;
    padding-bottom:14px!important;
    align-content:center!important;
  }
  html body #ns-app #portfolio .stage{
    width:min(78vw, 52svh)!important;
    height:auto!important;
    aspect-ratio:1!important;
    max-height:52svh!important;
    margin-inline:auto!important;
  }
  html body #ns-app #portfolio .pf-copy,
  html body #ns-app #portfolio .screen-content{
    min-height:0!important;
    height:auto!important;
  }

  html body #ns-app .ns-software,
  html body #ns-app .ns-icon-bench{
    padding-top:max(68px, calc(env(safe-area-inset-top, 0px) + 52px))!important;
    padding-bottom:14px!important;
    align-content:center!important;
  }
  html body #ns-app .ns-se-inner,
  html body #ns-app .ns-icon-bench-inner{
    grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;
    align-content:center!important;
    gap:14px!important;
  }
  html body #ns-app .ns-se-description,
  html body #ns-app .ns-icon-bench-description{margin-top:10px!important;margin-bottom:0!important;}
  html body #ns-app .ns-se-tags,
  html body #ns-app .ns-icon-bench-tags{margin-top:10px!important;}
  html body #ns-app .ns-se-art{
    width:min(100%, 520px)!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:1.16/1!important;
    margin-inline:auto!important;
  }
  html body #ns-app .ns-icon-bench-card{
    width:100%!important;
    max-height:none!important;
    overflow:visible!important;
  }

  html body #ns-app #contact{
    padding-bottom:0!important;
  }
  html body #ns-app #contact > .ns-site-footer{
    position:absolute!important;
    left:16px!important;
    right:16px!important;
    bottom:22px!important;
    margin:0!important;
    z-index:14!important;
  }
  html body #ns-app #blog .blog-summary{margin-bottom:12px!important;}
  html body #ns-app #blog #ns-shared-cta-3{margin-top:0!important;}
}