/* Shared mobile nav drawer + animation. Overrides each page's own nav CSS
   (site.css and the inline copies) so the menu behaves the same everywhere.
   Desktop (>980px) is untouched. */
.nav-backdrop{position:fixed;inset:0;z-index:85;background:rgba(10,11,16,0.48);opacity:0;pointer-events:none;transition:opacity .3s ease}
.nav-backdrop.show{opacity:1;pointer-events:auto}

/* Animated hamburger: JS swaps the glyph for three bars that morph to an X */
.n-mob .n-bars{position:relative;display:block;width:22px;height:16px;pointer-events:none}
.n-mob .n-bars span{position:absolute;left:0;width:100%;height:2.4px;border-radius:3px;background:var(--ink,#1a1a1a);transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease}
.n-mob .n-bars span:nth-child(1){top:0}
.n-mob .n-bars span:nth-child(2){top:6.8px}
.n-mob .n-bars span:nth-child(3){top:13.6px}
.n-mob.is-open .n-bars span:nth-child(1){transform:translateY(6.8px) rotate(45deg)}
.n-mob.is-open .n-bars span:nth-child(2){opacity:0;transform:translateX(-8px)}
.n-mob.is-open .n-bars span:nth-child(3){transform:translateY(-6.8px) rotate(-45deg)}

@media(max-width:1240px){
  .n-links{
    display:flex!important;position:fixed!important;top:0!important;right:0!important;left:auto!important;bottom:0!important;
    width:min(84vw,330px)!important;height:100vh!important;height:100dvh!important;
    flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    gap:4px!important;padding:98px 20px 28px!important;
    background:rgba(250,248,245,0.98)!important;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);
    border-left:1px solid var(--border,rgba(26,26,26,0.08))!important;border-bottom:0!important;border-radius:0!important;
    box-shadow:-24px 0 60px rgba(0,0,0,0.18)!important;
    transform:translateX(105%)!important;transition:transform .34s cubic-bezier(.4,0,.2,1)!important;
    z-index:90!important;overflow-y:auto!important;overscroll-behavior:contain}
  .n-links.open{transform:translateX(0)!important}
  .n-links a{padding:15px 16px!important;font-size:16px!important;border-radius:10px!important;opacity:0;transform:translateX(12px);transition:opacity .25s ease,transform .25s ease}
  .n-links.open a{opacity:1;transform:none}
  .n-links.open a:nth-child(1){transition-delay:.08s}
  .n-links.open a:nth-child(2){transition-delay:.11s}
  .n-links.open a:nth-child(3){transition-delay:.14s}
  .n-links.open a:nth-child(4){transition-delay:.17s}
  .n-links.open a:nth-child(5){transition-delay:.20s}
  .n-links.open a:nth-child(6){transition-delay:.23s}
  .n-links.open a:nth-child(7){transition-delay:.26s}
  .n-links.open a:nth-child(8){transition-delay:.29s}
  .n-links.open a:nth-child(9){transition-delay:.32s}
  .n-links.open a:nth-child(10){transition-delay:.35s}
  .n-links.open a:nth-child(11){transition-delay:.38s}
  .n-links a.n-cta{margin:12px 0 0!important;text-align:center;justify-content:center;color:#fff!important}
  .n-mob{display:flex!important;z-index:101;position:relative}
}
@media(max-width:1240px) and (prefers-reduced-motion:reduce){
  .n-links,.n-links a,.nav-backdrop,.n-mob .n-bars span{transition:none!important}
  .n-links a{opacity:1;transform:none}
}

/* Keep each nav label on one line (the drawer takes over below 1240px) */
.n-links a{white-space:nowrap}

/* While the drawer is open, fade out the page's fixed bottom bar so it does
   not cover the drawer's own buttons */
.home-sticky{transition:opacity .25s ease}
body.nav-open .home-sticky{opacity:0!important;pointer-events:none!important}

/* Keep the Apex logo at its true aspect ratio: never let the crowded nav
   shrink it (a flex item) or clamp it with the global img max-width */
.n-logo{flex:0 0 auto}
.n-logo img{max-width:none;flex:0 0 auto}
