body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* anchor targets clear the sticky header */
section[id] {
  scroll-margin-top: 72px;
}

/* faint grid backdrop for the hero, tuned for a light background.
   Drawn on ::before so the mask fades only the grid, not the hero content. */
.grid-backdrop {
  position: relative;
  isolation: isolate;
}
.grid-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 30, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 30, 74, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
}

.cell {
  font-family: 'JetBrains Mono', monospace;
}

/* mobile nav panel: overlays the page so closing it does not shift the scroll target */
#mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.25s;
  overflow: hidden;
}
#mobile-menu.closed {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}
#mobile-menu.open {
  max-height: 340px;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 8px 16px rgba(11, 30, 74, 0.08);
}
