body.theme-blueprint {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body.theme-blueprint h1,
body.theme-blueprint h2,
body.theme-blueprint .logo,
body.theme-blueprint .cta-band h2 {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}


/* =========================================
   HERO — BLUEPRINT BACKGROUND
   ========================================= */

body.theme-blueprint .hero {
  background: var(--black);
  background-image: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #2a2a2a 100%
  );

  /* CHANGED: centre hero */
  text-align: center;

  padding: 100px 24px;

  position: relative;
  overflow: hidden;
}


/* =========================================
   BLUEPRINT GRID
   ========================================= */

body.theme-blueprint .hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  animation: grid-pan 30s linear infinite;

  pointer-events: none;
}


/* =========================================
   SUBTLE TECH PARTICLES
   ========================================= */

body.theme-blueprint .hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      2px 2px at 15% 25%,
      rgba(255,255,255,0.6),
      transparent
    ),
    radial-gradient(
      2px 2px at 80% 15%,
      rgba(255,255,255,0.45),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 55% 70%,
      rgba(255,255,255,0.4),
      transparent
    ),
    radial-gradient(
      2px 2px at 90% 55%,
      rgba(255,255,255,0.45),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 30% 80%,
      rgba(255,255,255,0.35),
      transparent
    ),
    radial-gradient(
      2px 2px at 8% 60%,
      rgba(255,255,255,0.4),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 65% 35%,
      rgba(255,255,255,0.35),
      transparent
    );

  animation: twinkle 3.5s ease-in-out infinite alternate;

  pointer-events: none;
}


@keyframes grid-pan {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 480px 480px;
  }
}


@keyframes twinkle {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}


/* =========================================
   HERO CONTAINER
   ========================================= */

body.theme-blueprint .hero .container {
  position: relative;

  z-index: 2;
}


/* =========================================
   HERO GRID
   Remove split layout and centre content
   ========================================= */

body.theme-blueprint .hero-grid {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
}


/* =========================================
   HERO CONTENT
   ========================================= */

body.theme-blueprint .hero-content {
  width: 100%;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Keep existing logo size */
body.theme-blueprint .hero-content .hero-logo {
  margin: 0 0 24px;
}


/* Keep existing paragraph size */
body.theme-blueprint .hero-content p {
  margin: 0 0 32px;

  max-width: 520px;

  text-align: center;
}


/* Centre buttons */
body.theme-blueprint .hero-content .btn-group {
  justify-content: center;
}


/* =========================================
   REMOVE OLD NETWORK GRAPHIC
   ========================================= */

body.theme-blueprint .hero-visual {
  display: none !important;
}

body.theme-blueprint .hero-network {
  display: none !important;
}


/* =========================================
   CIRCUIT FRAME
   ========================================= */

/*
   This creates a technical circuit pattern
   around the ENTIRE hero rather than one
   network graphic in the middle.
*/

body.theme-blueprint .hero-circuit-frame {
  position: absolute;

  inset: 24px;

  z-index: 1;

  pointer-events: none;

  border: 1px solid rgba(255,255,255,0.08);

  overflow: hidden;
}


/* Main circuit traces */

body.theme-blueprint .hero-circuit-frame::before {
  content: "";

  position: absolute;

  inset: 0;

  background:

    /* TOP */
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 8%,
      rgba(255,255,255,0.45) 8%,
      rgba(255,255,255,0.45) 18%,
      transparent 18%,
      transparent 32%,
      rgba(255,255,255,0.35) 32%,
      rgba(255,255,255,0.35) 47%,
      transparent 47%,
      transparent 64%,
      rgba(255,255,255,0.4) 64%,
      rgba(255,255,255,0.4) 79%,
      transparent 79%
    ) top / 100% 1px no-repeat,

    /* BOTTOM */
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 16%,
      rgba(255,255,255,0.3) 16%,
      rgba(255,255,255,0.3) 29%,
      transparent 29%,
      transparent 45%,
      rgba(255,255,255,0.45) 45%,
      rgba(255,255,255,0.45) 60%,
      transparent 60%,
      transparent 76%,
      rgba(255,255,255,0.35) 76%,
      rgba(255,255,255,0.35) 91%,
      transparent 91%
    ) bottom / 100% 1px no-repeat,

    /* LEFT */
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 12%,
      rgba(255,255,255,0.35) 12%,
      rgba(255,255,255,0.35) 27%,
      transparent 27%,
      transparent 43%,
      rgba(255,255,255,0.45) 43%,
      rgba(255,255,255,0.45) 61%,
      transparent 61%,
      transparent 76%,
      rgba(255,255,255,0.3) 76%,
      rgba(255,255,255,0.3) 90%,
      transparent 90%
    ) left / 1px 100% no-repeat,

    /* RIGHT */
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 8%,
      rgba(255,255,255,0.4) 8%,
      rgba(255,255,255,0.4) 22%,
      transparent 22%,
      transparent 39%,
      rgba(255,255,255,0.3) 39%,
      rgba(255,255,255,0.3) 55%,
      transparent 55%,
      transparent 71%,
      rgba(255,255,255,0.45) 71%,
      rgba(255,255,255,0.45) 87%,
      transparent 87%
    ) right / 1px 100% no-repeat;

  opacity: 0.7;

  animation: circuit-frame-pulse 4s ease-in-out infinite;
}


/* =========================================
   CIRCUIT BUILD / SCAN EFFECT
   ========================================= */

body.theme-blueprint .hero-circuit-frame::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,0.15) 0%,
      rgba(255,255,255,0.04) 35%,
      transparent 70%
    );

  filter: blur(2px);

  animation: circuit-scan 7s linear infinite;

  pointer-events: none;
}


/* Circuit breathing */

@keyframes circuit-frame-pulse {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.75;
  }

}


/* Light travelling around frame */

@keyframes circuit-scan {

  0% {
    left: -180px;
    top: -180px;
  }

  25% {
    left: calc(100% - 20px);
    top: -180px;
  }

  50% {
    left: calc(100% - 20px);
    top: calc(100% - 20px);
  }

  75% {
    left: -180px;
    top: calc(100% - 20px);
  }

  100% {
    left: -180px;
    top: -180px;
  }

}


/* =========================================
   CIRCUIT CORNER DETAILS
   ========================================= */

body.theme-blueprint .hero-circuit-frame {
  box-shadow:
    inset 0 0 40px rgba(255,255,255,0.015);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 900px) {

  body.theme-blueprint .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.theme-blueprint .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  body.theme-blueprint .hero-content .btn-group {
    justify-content: center;
  }

  body.theme-blueprint .hero-circuit-frame {
    inset: 14px;
  }

}

/* Dark tech panel for the "What We Do" section */
body.theme-blueprint .tech-panel {
  background: var(--black);
}

body.theme-blueprint .tech-panel .section-title {
  color: var(--white);
}

body.theme-blueprint .tech-panel .section-sub {
  color: var(--mid-grey);
}

/* Circuit-panel cards */
body.theme-blueprint .card {
  background: var(--charcoal);
  border: 1px solid #2a2a2a;
  border-image: none;
  border-radius: 4px;
  box-shadow: none;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

body.theme-blueprint .card::before,
body.theme-blueprint .card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--light-grey);
  pointer-events: none;
}

body.theme-blueprint .card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

body.theme-blueprint .card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

body.theme-blueprint .card:hover {
  transform: translateY(-4px);
  border-color: var(--mid-grey);
}

body.theme-blueprint .card h3 {
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
}

body.theme-blueprint .card p {
  color: var(--light-grey);
}

body.theme-blueprint .journey,
body.theme-blueprint .clients {
  border-top: 1px solid #eaeaea;
}