.hero-wire-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 28%, rgba(249, 115, 22, 0.2), transparent 30%),
    radial-gradient(circle at 58% 16%, rgba(13, 59, 130, 0.16), transparent 28%),
    linear-gradient(180deg, #eaf4ff 0%, #f7fbff 62%, #ffffff 100%);
  overflow: hidden;
}

.hero-wire-bg::before,
.hero-wire-bg::after {
  content: '';
  position: absolute;
  inset: -18% -8%;
  opacity: 0.68;
  transform-origin: center;
}

.hero-wire-bg::before {
  background-image:
    linear-gradient(115deg, rgba(13, 59, 130, 0.2) 1px, transparent 1px),
    linear-gradient(63deg, rgba(13, 59, 130, 0.14) 1px, transparent 1px);
  background-size: 82px 82px, 82px 82px;
  animation: wire-drift 18s linear infinite;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, black 42%, black 100%);
}

.hero-wire-bg::after {
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(249, 115, 22, 0.22) 9%, transparent 10% 100%),
    linear-gradient(118deg, transparent 0 42%, rgba(13, 59, 130, 0.18) 43%, transparent 44% 100%);
  background-size: 260px 260px;
  animation: scan-lines 9s ease-in-out infinite alternate;
  mask-image: linear-gradient(90deg, transparent 0%, black 36%, black 100%);
}

.hero-wire,
.hero-pulse {
  position: absolute;
  border-radius: 999px;
}

.hero-wire {
  width: 42vw;
  height: 42vw;
  min-width: 360px;
  min-height: 360px;
  border: 1px solid rgba(13, 59, 130, 0.16);
  right: -8vw;
  top: 5rem;
  animation: orbit-soft 14s ease-in-out infinite alternate;
}

.hero-wire-two {
  width: 30vw;
  height: 30vw;
  min-width: 260px;
  min-height: 260px;
  right: 8vw;
  top: 8rem;
  border-color: rgba(249, 115, 22, 0.16);
  animation-duration: 11s;
  animation-direction: alternate-reverse;
}

.hero-pulse {
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(249, 115, 22, 0.12), 0 0 28px rgba(249, 115, 22, 0.55);
  right: 20vw;
  top: 9rem;
  animation: pulse-node 3.6s ease-in-out infinite;
}

.hero-pulse-two {
  width: 7px;
  height: 7px;
  background: var(--primary);
  box-shadow: 0 0 0 9px rgba(13, 59, 130, 0.1), 0 0 24px rgba(13, 59, 130, 0.42);
  right: 8vw;
  top: 26rem;
  animation-delay: 1.4s;
}

@keyframes wire-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-36px, 24px, 0) rotate(2deg);
  }
}

@keyframes scan-lines {
  from {
    transform: translate3d(0, 0, 0) skewY(-4deg);
    opacity: 0.25;
  }
  to {
    transform: translate3d(60px, -28px, 0) skewY(-4deg);
    opacity: 0.48;
  }
}

@keyframes orbit-soft {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(-24px, 18px, 0) rotate(8deg) scale(1.04);
  }
}

@keyframes pulse-node {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .hero-wire-bg::before,
  .hero-wire-bg::after,
  .hero-wire,
  .hero-pulse {
    opacity: 0.28;
  }
}

/* ============================================================
   Scroll reveal — replaces framer-motion in main.js
   ============================================================ */
[data-rr-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
[data-rr-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* For users with reduced motion, just show content immediately. */
@media (prefers-reduced-motion: reduce) {
  [data-rr-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Industry rotator — active card visual on the front page
   ============================================================ */
[data-rr-industry-card] {
  cursor: pointer;
}
[data-rr-industry-card]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Prose fallback for page.php (no Tailwind Typography plugin).
   Keeps default WP content readable inside the theme typography.
   ============================================================ */
.prose {
  color: var(--foreground);
  line-height: 1.7;
}
.prose p { margin: 0 0 1.25em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--foreground); margin: 1.8em 0 0.6em; }
.prose h2 { font-size: 1.75rem; font-weight: 600; }
.prose h3 { font-size: 1.35rem; font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.85; }
.prose ul, .prose ol { margin: 0 0 1.25em 1.4em; padding-left: 0.5em; }
.prose ul li, .prose ol li { margin: 0.35em 0; }
.prose strong { color: var(--foreground); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 0 0.5em 1.2em;
  margin: 1.5em 0;
  color: var(--muted-foreground);
  font-style: italic;
}
.prose code {
  background: var(--secondary);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}
.prose img { border-radius: 12px; margin: 1.5em 0; max-width: 100%; height: auto; }
.prose-lg p, .prose-lg ul, .prose-lg ol { font-size: 1.05rem; }

/* ============================================================
   Mobile menu open state
   ============================================================ */
[data-rr-mobile-menu].is-open {
  display: block;
}

/* ============================================================
   Form submission states
   ============================================================ */
[data-rr-form-status].is-success {
  color: rgb(21 128 61);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: block;
}
[data-rr-form-status].is-error {
  color: var(--destructive);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: block;
}

/* ============================================================
   <details> arrow tweak — Safari shows a default marker
   ============================================================ */
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* ============================================================
   Sticky header offset for in-page anchor links
   ============================================================ */
:target { scroll-margin-top: 96px; }
