/* Broken Gear Industries: the drafting sheet behind every page (2026-10-08, schematic pass).
   Fully namespaced (bg-*) so it can sit on the app-style demo pages. Injected by site.js.
   Three layers: a faint grid, dash-dot centre lines, and one schematic outline gear (hairline emerald,
   dashed pitch circle, one tooth dimensioned) turning slowly top-right. site.js sets --bg-fold 0..1 over
   the first 600px of scroll: the gear shrinks toward the corner and fades, the grid stays. */
.bg-gears { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --bg-fold: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px; }
.bg-gears::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,12,16,0) 40%, rgba(10,12,16,0.75) 100%); }
.bg-gear {
  position: absolute; top: -120px; right: -160px; width: 560px; height: 560px; transform-origin: 50% 50%;
  transform: translate3d(calc(var(--bg-fold) * 90px), calc(var(--bg-fold) * -70px), 0) scale(calc(1 - var(--bg-fold) * 0.5));
  opacity: calc(1 - var(--bg-fold) * 0.6);
  transition: transform 0.25s ease-out, opacity 0.25s ease-out; will-change: transform, opacity; }
.bg-gear svg { display: block; width: 100%; height: 100%; }
.bg-gear .bg-turn { animation: bg-gear-spin 140s linear infinite; transform-origin: 0 0; }
.bg-gear-2, .bg-gear-3 { display: none; }
@keyframes bg-gear-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .bg-gear { width: 320px; height: 320px; top: -80px; right: -110px; } }
@media (prefers-reduced-motion: reduce) { .bg-gear .bg-turn { animation: none; } .bg-gear { transition: none; } }
