/**
 * DAVERON V3 - Round 3 background graphic utilities (section 3.4).
 * CSS-only (no raster images), applied to a `position: relative`
 * section. Each utility paints a ::before layer behind the content
 * (z-index -1) so it never interferes with text selection or focus
 * order. Rotate combinations so no two neighbouring sections match -
 * callers pick which class(es) to add per section.
 */

[class*="dv-bg-"] { position: relative; }
[class*="dv-bg-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Prompt 3E, E1: this used to be `[class*="dv-bg-"] > *`, which matched
   every direct child indiscriminately - including ones already given
   their own position via a Tailwind .absolute/.fixed/.sticky utility
   (e.g. a raw `<img class="absolute inset-0 ...">` background photo).
   Same specificity as `.absolute`, loaded after it, so it silently won
   the tie and flipped that image back into normal document flow -
   confirmed via dv_navy_text_band()'s banner image on Cybersecurity's
   "Our Philosophy" band (the one section pairing a dv-bg-grid class on
   the <section> with a raw absolutely-positioned image child): its
   computed position read "relative", not "absolute", and the now-in-
   flow photo (auto height from its own aspect ratio, ~630px at 1440)
   inserted itself as real page content above the text card - the large
   blank-looking navy area the owner saw. :not(...) excludes elements
   that have already claimed their own position, which is every other
   use of this selector's actual intent (giving a plain, unpositioned
   child enough z-index to sit above the ::before pattern layer). */
[class*="dv-bg-"] > .section-container,
[class*="dv-bg-"] > *:not(.absolute):not(.fixed):not(.sticky) { position: relative; z-index: 1; }

/* ---- Fine architectural line grid, fades toward edges ---- */
.dv-bg-grid::before {
  background-image:
    linear-gradient(to right, rgba(237,243,246,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,243,246,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #10263e 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #10263e 40%, transparent 100%);
}
.dv-bg-grid--on-light::before {
  background-image:
    linear-gradient(to right, rgba(16,38,62,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,38,62,.06) 1px, transparent 1px);
}

/* ---- Halftone dot field, thins out left-to-right by default ---- */
.dv-bg-dots::before {
  background-image: radial-gradient(circle, rgba(255,255,255,.45) 1.3px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to right, #10263e 0%, #10263e 35%, transparent 90%);
  mask-image: linear-gradient(to right, #10263e 0%, #10263e 35%, transparent 90%);
}
.dv-bg-dots--reverse::before {
  -webkit-mask-image: linear-gradient(to left, #10263e 0%, #10263e 35%, transparent 90%);
  mask-image: linear-gradient(to left, #10263e 0%, #10263e 35%, transparent 90%);
}
.dv-bg-dots--on-light::before {
  background-image: radial-gradient(circle, rgba(22,123,140,.30) 1.3px, transparent 1.3px);
}
.dv-bg-dots--white::before {
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1.3px, transparent 1.3px);
}

/* ---- Layered radial gradient mesh, navy / teal / aqua ---- */
.dv-bg-mesh::before {
  background:
    radial-gradient(60% 55% at 15% 15%, rgba(22,123,140,.55) 0%, transparent 60%),
    radial-gradient(55% 60% at 85% 20%, rgba(255,255,255,.30) 0%, transparent 60%),
    radial-gradient(70% 65% at 50% 100%, rgba(16,38,62,.65) 0%, transparent 65%),
    var(--grad-navy);
}
.dv-bg-mesh--teal::before {
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(16,38,62,.45) 0%, transparent 60%),
    radial-gradient(55% 55% at 85% 85%, rgba(255,255,255,.35) 0%, transparent 60%),
    var(--grad-teal);
}

/* ---- Concentric rings / partial arcs ---- */
.dv-bg-rings::before {
  background-image: repeating-radial-gradient(circle at 80% 20%, rgba(255,255,255,.18) 0, rgba(255,255,255,.18) 1.5px, transparent 1.5px, transparent 42px);
}
.dv-bg-rings--on-light::before {
  background-image: repeating-radial-gradient(circle at 80% 20%, rgba(22,123,140,.14) 0, rgba(22,123,140,.14) 1.5px, transparent 1.5px, transparent 42px);
}

/* ---- Slow drifting gradient orbs (blurred circles), decorative,
   sit behind glass panels. Markup: <span class="dv-orb dv-orb--a">
   inside a position:relative container. ---- */
.dv-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .55;
  pointer-events: none;
}
.dv-orb--a { width: 320px; height: 320px; background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%); top: -60px; left: -60px; }
.dv-orb--b { width: 260px; height: 260px; background: radial-gradient(circle, var(--teal) 0%, transparent 70%); bottom: -80px; right: -40px; }

.dv-motion .dv-orb { animation: dv-orb-drift 14s ease-in-out infinite alternate; }
@keyframes dv-orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(18px, -14px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-orb { animation: none; }
}
.motion-paused .dv-orb { animation-play-state: paused; }

/* ---- Big floating 3D object PNGs (obj-orb/obj-globe/obj-cubes/...),
   reused large per section 3.5. Markup: <img class="dv-float-object"
   data-size="lg"> inside a position:relative, overflow allowed
   container so it can crop at the section edge. ---- */
.dv-float-object {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: clamp(220px, 30vw, 520px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(16,38,62,.35));
  opacity: .92;
}
.dv-float-object--sm { width: clamp(220px, 20vw, 320px); }
.dv-float-object--md { width: clamp(260px, 26vw, 420px); }
.dv-float-object--lg { width: clamp(320px, 32vw, 520px); }

.dv-motion .dv-float-object { animation: dv-float 7s ease-in-out infinite; }
@keyframes dv-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-float-object { animation: none; }
}
.motion-paused .dv-float-object { animation-play-state: paused; }

@media (max-width: 767px) {
  .dv-float-object { opacity: .5; }
}

/* =========================================================
   Prompt 3D, Stage 6 - 6 new abstract background graphics, same
   ::before-layer mechanism as the .dv-bg-* set above (CSS-only, no
   PNGs; the organic ones are small tileable inline-SVG data URIs, not
   raster images). Each has an --on-light variant for white/off-white
   sections. No shield/padlock/people/screens/code/circuit/server/robot
   shapes anywhere - abstract line/dot/arc patterns only.
   ========================================================= */
[class*="dv-gfx-"] { position: relative; }
[class*="dv-gfx-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Prompt 3E, E1: same fix as the .dv-bg- rule above, same reason. */
[class*="dv-gfx-"] > .section-container,
[class*="dv-gfx-"] > *:not(.absolute):not(.fixed):not(.sticky) { position: relative; z-index: 1; }

/* ---- Topographic contour lines ---- */
.dv-gfx-topo::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120'%3E%3Cpath d='M-10 20 Q40 0 90 20 T190 20 T290 20' stroke='rgba(255,255,255,0.35)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M-10 58 Q40 36 90 58 T190 58 T290 58' stroke='rgba(255,255,255,0.26)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M-10 96 Q40 74 90 96 T190 96 T290 96' stroke='rgba(255,255,255,0.18)' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 200px 120px;
}
.dv-gfx-topo--on-light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120'%3E%3Cpath d='M-10 20 Q40 0 90 20 T190 20 T290 20' stroke='rgba(22,123,140,0.22)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M-10 58 Q40 36 90 58 T190 58 T290 58' stroke='rgba(22,123,140,0.16)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M-10 96 Q40 74 90 96 T190 96 T290 96' stroke='rgba(22,123,140,0.11)' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 200px 120px;
}

/* ---- Concentric arcs (partial, not full rings - .dv-bg-rings already covers full rings) ---- */
.dv-gfx-arcs::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M8 150 A142 142 0 0 1 150 8' stroke='rgba(255,255,255,0.32)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M30 150 A120 120 0 0 1 150 30' stroke='rgba(255,255,255,0.24)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M52 150 A98 98 0 0 1 150 52' stroke='rgba(255,255,255,0.17)' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-repeat: repeat;
}
.dv-gfx-arcs--on-light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M8 150 A142 142 0 0 1 150 8' stroke='rgba(22,123,140,0.20)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M30 150 A120 120 0 0 1 150 30' stroke='rgba(22,123,140,0.15)' fill='none' stroke-width='1.4'/%3E%3Cpath d='M52 150 A98 98 0 0 1 150 52' stroke='rgba(22,123,140,0.11)' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-repeat: repeat;
}

/* ---- Wave lines ---- */
.dv-gfx-waves::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 C15 2 30 2 60 20 C75 38 90 38 120 20' stroke='rgba(255,255,255,0.32)' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 120px 40px;
}
.dv-gfx-waves--on-light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 C15 2 30 2 60 20 C75 38 90 38 120 20' stroke='rgba(22,123,140,0.20)' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 120px 40px;
}

/* ---- Hexagon mesh ---- */
.dv-gfx-hex::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,17 54,49 28,64 2,49 2,17' fill='none' stroke='rgba(255,255,255,0.26)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.dv-gfx-hex--on-light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,17 54,49 28,64 2,49 2,17' fill='none' stroke='rgba(22,123,140,0.18)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* ---- Diagonal hatch (pure CSS, no SVG needed) ---- */
.dv-gfx-hatch::before {
  background-image: repeating-linear-gradient(45deg, rgba(127,209,222,.20) 0, rgba(127,209,222,.20) 1.4px, transparent 1.4px, transparent 15px);
}
.dv-gfx-hatch--on-light::before {
  background-image: repeating-linear-gradient(45deg, rgba(15,98,114,.14) 0, rgba(15,98,114,.14) 1.4px, transparent 1.4px, transparent 15px);
}

/* ---- Radial rays (pure CSS conic-gradient) ---- */
.dv-gfx-rays::before {
  background-image: conic-gradient(from 0deg, rgba(255,255,255,.20) 0deg 3deg, transparent 3deg 22deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #10263e 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #10263e 0%, transparent 75%);
}
.dv-gfx-rays--on-light::before {
  background-image: conic-gradient(from 0deg, rgba(22,123,140,.16) 0deg 3deg, transparent 3deg 22deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #10263e 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #10263e 0%, transparent 75%);
}
