/* ══════════════════════════════════════════════════════════
   Grid — Blueprint aesthetic background utilities
   Shared across all Groteska sites.
   ══════════════════════════════════════════════════════════ */

/* ── Scan Lines Overlay ── */
.scan-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(59, 130, 196, 0.008) 3px,
      rgba(59, 130, 196, 0.008) 4px
    );
}

/* ── Blueprint Grid Background ── */
.blueprint-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 196, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(59, 130, 196, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 196, 0.13) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 128px 128px, 128px 128px;
}

/* ── Registration Marks ── */
.reg-mark {
  position: fixed;
  width: 20px;
  height: 20px;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-standard) 2s forwards;
}
.reg-mark::before,
.reg-mark::after {
  content: '';
  position: absolute;
  background: rgba(59, 130, 196, 0.2);
}
.reg-mark::before { width: 1px; height: 100%; left: 50%; }
.reg-mark::after { height: 1px; width: 100%; top: 50%; }
.reg-mark--tl { top: 16px; left: 16px; }
.reg-mark--tr { top: 16px; right: 16px; }
.reg-mark--bl { bottom: 16px; left: 16px; }
.reg-mark--br { bottom: 16px; right: 16px; }

/* ── Coordinate Annotations ── */
.coord {
  position: fixed;
  z-index: 10;
  display: flex;
  font-family: var(--font-family-mono);
  font-size: 9px;
  font-weight: 400;
  color: rgba(59, 130, 196, 0.18);
  letter-spacing: 0.06em;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-standard) 2.2s forwards;
}
.coord--y {
  left: 8px; top: 80px; bottom: 60px;
  flex-direction: column;
  justify-content: space-between;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.coord--x {
  bottom: 8px; left: 48px; right: 48px;
  justify-content: space-between;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .coord { display: none; }
}

@media (max-width: 480px) {
  .reg-mark { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reg-mark, .coord { opacity: 1; animation: none; }
}

/* ── Print ── */
@media print {
  .scan-overlay, .reg-mark, .coord { display: none; }
}
