/* Layer scale: masthead 10 (minimal.css), mobile sheet within it, intro 30.
   The intro never captures pointer input; keyboard/pointer activity dismisses it. */
.page-loader { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: var(--paper); pointer-events: none; animation: loader-deadline 1100ms step-end forwards; }
.loader-network { width: clamp(7rem, 18vw, 10rem); aspect-ratio: 1; color: var(--accent); }
.loader-network svg { width: 100%; height: 100%; overflow: visible; }
.loader-edges { fill: none; stroke: currentColor; stroke-width: .8; }
.loader-nodes { fill: var(--ink); }
@keyframes loader-deadline { to { visibility: hidden; opacity: 0; } }
.menu-button-mark { position: relative; display: inline-block; width: 18px; height: 18px; margin-left: .65rem; }
.menu-button-mark i { position: absolute; left: 0; top: 6px; width: 18px; height: 1px; background: currentColor; transition: transform 220ms cubic-bezier(.22,1,.36,1); } /* taste-skill-ignore: functional two-stroke menu control, not an ornamental divider. */
.menu-button-mark i + i { top: 12px; width: 12px; left: 6px; }
#mobile-menu-button[aria-expanded="true"] .menu-button-mark i { transform: translateY(3px) rotate(45deg); }
#mobile-menu-button[aria-expanded="true"] .menu-button-mark i + i { width: 18px; left: 0; transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 767px) {
  html.menu-open { overflow: hidden; }
  .mobile-nav { position: fixed; inset: var(--masthead-height, 80px) 0 0; width: 100%; padding: 0; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-nav-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding-block: clamp(2rem, 7vh, 4rem) 1.5rem; }
  .mobile-nav-links { display: grid; gap: .75rem; }
  .mobile-nav-links a { width: fit-content; max-width: 100%; min-height: 64px; font-size: clamp(2rem, 8.8vw, 3.25rem); line-height: 1.35; }
  .mobile-nav-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
  .mobile-nav-signature { color: var(--muted); font-size: .875rem; }
  .mobile-nav-bottom button[data-theme-toggle] { width: auto; gap: .75rem; min-height: 44px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none !important; }
  .menu-button-mark i { transition: none; }
}
@media print { .page-loader, .mobile-nav { display: none !important; } }

@media (max-width: 359px) { .site-navigation { font-size: 18px; } }
