/* Site-wide fixes that can't live in the Webflow export.

   1) Depixel reveal (js/depixel-reveal.js) appends canvas.asset-dither to each
   image's parent, but only sizes it (inline width/height) once the image nears
   the viewport. Until then a canvas falls back to its default 300x150 box, and
   in narrow hosts (the about timeline, small cards) it pokes past the right
   edge, widening the page on phones (the fixed navbar then stretches with it).
   Zero until placed; the inline size set by place() wins as soon as it runs. */
.asset-dither { width: 0; height: 0; }

/* 2) viewport-fit=cover: keep fixed UI clear of the notch, the status bar and
   the home bar. env() is 0 on desktops and non-notched screens, so nothing moves there. */
.navbar.w-nav {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
@media screen and (max-width: 991px) {
  .nav-menu-2.w-nav-menu {
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
@media screen and (max-width: 479px) {
  .nav-menu-2.w-nav-menu {
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}
