/* =====================================================================
   DOT PATTERN  (from 21st.dev / Magic UI "Dot Pattern")
   Seen in the demo: a 500px-tall panel with rounded corners, a thin
   border and a soft shadow, one centred line of large, tight text (48px,
   medium, tracking-tighter), and a grid of small dots behind it, masked
   with radial-gradient(300px circle at center, white, transparent) so
   the dots are strongest in the middle and fade out to nothing.
   Reconstructed from the component's published defaults: dots 1px in
   radius on a 16px grid, in a soft grey. It does not move.
   Socialique version: navy dots at low opacity on Linen (Cornflower on
   navy), fading out from behind one focal element. Pure CSS: the dots
   are a ::before layer, so no extra markup is needed.

   Markup:
     <section class="slq-section slq-dots"> …centred content… </section>
   Options (set on the element, e.g. style="--slq-dot-fade: 420px"):
     --slq-dot-gap   grid spacing        (default 16px)
     --slq-dot-size  dot radius          (default 1px)
     --slq-dot-fade  size of the visible circle (default 300px)
   Variants:
     .slq-dots--top    the circle sits at the top centre (behind a page title)
     .slq-dots--panel  the demo's framed panel: border, 6px corners, shadow
   ===================================================================== */

.slq-dots {
  --slq-dot-gap: 16px;
  --slq-dot-size: 1px;
  --slq-dot-fade: 300px;
  --slq-dot-color: rgba(1, 23, 51, 0.28);
  --slq-dot-at: center;
  position: relative; isolation: isolate; overflow: hidden;
}
.slq-dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--slq-dot-color) var(--slq-dot-size), transparent calc(var(--slq-dot-size) + 0.5px));
  background-size: var(--slq-dot-gap) var(--slq-dot-gap);
  background-position: center;
  -webkit-mask-image: radial-gradient(var(--slq-dot-fade) circle at var(--slq-dot-at), #fff, transparent);
          mask-image: radial-gradient(var(--slq-dot-fade) circle at var(--slq-dot-at), #fff, transparent);
}

/* Circle at the top centre, behind a page title */
.slq-dots--top { --slq-dot-at: 50% 0%; --slq-dot-fade: 420px; }

/* The demo's framed panel */
.slq-dots--panel {
  min-height: 500px; display: grid; place-items: center; text-align: center;
  background: var(--slq-linen); border: 1px solid var(--slq-line);
  border-radius: var(--slq-radius-m); box-shadow: var(--slq-shadow-lift);
}

/* On a navy section the dots turn Cornflower */
.slq-section--navy.slq-dots, .slq-lets-work.slq-dots { --slq-dot-color: rgba(126, 160, 203, 0.35); }

/* The demo's big centred line, in brand type */
.slq-dots__title { font-family: var(--slq-font-display); font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }

/* Phones: a smaller circle so the fade still shows on a narrow screen */
@media (max-width: 699.98px) {
  .slq-dots { --slq-dot-fade: 220px; }
  .slq-dots--top { --slq-dot-fade: 300px; }
  .slq-dots--panel { min-height: 360px; }
}
