/* ──────────────────────────────────────────────────────────────────────
   Gibrid.AI — atmospheric global canvas
   A single fixed background layer that travels with the page and gives
   it depth. NO gradients — only thin geometric lines + the body's dot
   pattern. The layer is decorative (aria-hidden), pure CSS, no SVG file.

   Visual idea: an enormous, faint contour map. Three nested ring shapes
   anchored to the upper-left, plus a thin grid texture, plus a single
   sapphire pin in the corner. Everything sits behind the content at
   opacity ~0.05.
   ────────────────────────────────────────────────────────────────────── */

/* Layer wrapper — fixed, behind everything, decorative */
.gibrid-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* The body's own dot pattern is still drawn underneath this layer.   */
}

/* Subtle "graph paper" grid — very faint, only visible against deep black. */
.gibrid-canvas::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    /* vertical lines every 96px */
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    /* horizontal lines every 96px */
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 30%, transparent 75%);
}

/* Three nested rings — far-upper-left anchor, very thin strokes. */
.gibrid-canvas::after {
  content: '';
  position: absolute;
  top: -240px;
  left: -240px;
  width: 1400px;
  height: 1400px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.06);
  box-shadow:
    0 0 0 1px transparent,
    inset 0 0 0 220px transparent,
    /* second ring */
    0 0 0 0 transparent;
}

/* Two more rings via additional helper element (avoid relying on more
   pseudo-elements). Implemented in HTML as <div class="ring2"></div>. */
.gibrid-canvas .ring {
  position: absolute;
  top: -240px;
  left: -240px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.06);
  pointer-events: none;
}
.gibrid-canvas .ring.r2 { width: 1000px; height: 1000px; top: -100px; left: -100px; border-color: rgba(96, 165, 250, 0.05); }
.gibrid-canvas .ring.r3 { width:  640px; height:  640px; top:   50px; left:   50px; border-color: rgba(96, 165, 250, 0.04); }

/* Single sapphire pin — the only colour beat in the canvas */
.gibrid-canvas .pin {
  position: absolute;
  top: 28%;
  right: 8%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  opacity: 0.55;
  box-shadow:
    0 0 14px 4px rgba(96, 165, 250, 0.35),
    0 0 36px 10px rgba(96, 165, 250, 0.10);
}

@media (max-width: 700px) {
  .gibrid-canvas::after { width: 800px; height: 800px; top: -180px; left: -180px; }
  .gibrid-canvas .ring.r2 { width: 600px; height: 600px; top: -100px; left: -60px; }
  .gibrid-canvas .ring.r3 { width: 420px; height: 420px; top:   40px; left:   30px; }
}

@media (prefers-reduced-motion: reduce) {
  .gibrid-canvas, .gibrid-canvas * { animation: none !important; transition: none !important; }
}
