/* One shared technical atmosphere for all page heroes.
   The FIELD JOURNAL / blog header is the visual reference for every page. */

@keyframes heroTechDrift {
  0%   { transform: translate3d(-14px, 5px, 0); }
  100% { transform: translate3d(14px, -5px, 0); }
}

@keyframes heroTechPulse {
  0%, 100% { opacity: .38; }
  50%      { opacity: .82; }
}

/* Keep the same floating coordinate lines and fine points on every hero. */
.service-page-hero,
.gisx .gx-hero,
.comnav-page .comnav-hero,
.portfolio-page .portfolio-hero,
.blog-page .blog-hero,
.about-profile-page .about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-page-hero::before,
.comnav-page .comnav-hero::before {
  z-index: -1;
}

.service-page-hero::after,
.gisx .gx-hero::after,
.comnav-page .comnav-hero::after,
.portfolio-page .portfolio-hero::after,
.blog-page .blog-hero::after,
.about-profile-page .about-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(128,217,224,.10) 44px, transparent 45px 86px),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(128,217,224,.10) 44px, transparent 45px 86px),
    radial-gradient(circle at 16% 28%, rgba(242,173,102,.82) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 31% 67%, rgba(128,217,224,.76) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 77% 23%, rgba(128,217,224,.70) 0 1.2px, transparent 2.1px);
  opacity: .7;
  animation: heroTechDrift 9s ease-in-out infinite alternate, heroTechPulse 5s ease-in-out infinite;
}

/* These existing content wrappers stay above the decorative overlay. */
.service-page-hero .service-hero-grid,
.gisx .gx-hero-grid,
.comnav-page .comnav-hero-container,
.portfolio-page .portfolio-hero-grid,
.blog-page .blog-atlas-layout,
.about-profile-page .about-hero-grid {
  position: relative;
  z-index: 1;
}

@media (max-width: 650px) {
  .service-page-hero::after,
  .gisx .gx-hero::after,
  .comnav-page .comnav-hero::after,
  .portfolio-page .portfolio-hero::after,
  .blog-page .blog-hero::after,
  .about-profile-page .about-hero::after {
    opacity: .58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page-hero::after,
  .gisx .gx-hero::after,
  .comnav-page .comnav-hero::after,
  .portfolio-page .portfolio-hero::after,
  .blog-page .blog-hero::after,
  .about-profile-page .about-hero::after {
    animation: none !important;
  }
}

/* Shared typography for the introductory copy in all nine page heroes.
   Only text styling is unified; wording, components, artwork, and layout are untouched. */
:is(
  .service-page-hero > .container > div:first-child,
  .gisx .gx-hero-grid > div:first-child,
  .comnav-page .comnav-hero-copy,
  .portfolio-page .portfolio-hero-copy,
  .blog-page .blog-atlas-copy,
  .about-profile-page .about-intro
) :is(.eyebrow, .gx-kicker, .comnav-kicker, .portfolio-kicker, .blog-atlas-kicker, .about-kicker) {
  color: #b8d9e6 !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
  letter-spacing: 1.1px !important;
}

:is(
  .service-page-hero > .container > div:first-child,
  .gisx .gx-hero-grid > div:first-child,
  .comnav-page .comnav-hero-copy,
  .portfolio-page .portfolio-hero-copy,
  .blog-page .blog-atlas-copy,
  .about-profile-page .about-intro
) h1 {
  color: #f4f9fb !important;
  font-family: inherit !important;
  font-size: clamp(32px, 4.1vw, 52px) !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  letter-spacing: -.55px !important;
}

:is(
  .service-page-hero > .container > div:first-child,
  .gisx .gx-hero-grid > div:first-child,
  .comnav-page .comnav-hero-copy,
  .portfolio-page .portfolio-hero-copy,
  .blog-page .blog-atlas-copy,
  .about-profile-page .about-intro
) h1 span {
  display: block !important;
  color: #f2ad66 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-decoration: none !important;
}

:is(
  .service-page-hero > .container > div:first-child,
  .gisx .gx-hero-grid > div:first-child,
  .comnav-page .comnav-hero-copy,
  .portfolio-page .portfolio-hero-copy,
  .blog-page .blog-atlas-copy,
  .about-profile-page .about-intro
) > :is(p, .gx-lead, .comnav-intro, .about-lead) {
  color: #c9d9df !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 2.35 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 650px) {
  :is(
    .service-page-hero > .container > div:first-child,
    .gisx .gx-hero-grid > div:first-child,
    .comnav-page .comnav-hero-copy,
    .portfolio-page .portfolio-hero-copy,
    .blog-page .blog-atlas-copy,
    .about-profile-page .about-intro
  ) h1 {
    font-size: clamp(28px, 7.4vw, 36px) !important;
    line-height: 1.6 !important;
    letter-spacing: -.3px !important;
  }

  :is(
    .service-page-hero > .container > div:first-child,
    .gisx .gx-hero-grid > div:first-child,
    .comnav-page .comnav-hero-copy,
    .portfolio-page .portfolio-hero-copy,
    .blog-page .blog-atlas-copy,
    .about-profile-page .about-intro
  ) > :is(p, .gx-lead, .comnav-intro, .about-lead) {
    font-size: 12px !important;
    line-height: 2.3 !important;
  }
}


/* Equal introductory section height across the nine primary navigation pages. */
:where(
  .service-page-hero,
  .gx-hero,
  .comnav-hero,
  .portfolio-hero,
  .blog-hero,
  .about-hero
) {
  box-sizing: border-box;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  :where(
    .service-page-hero,
    .gx-hero,
    .comnav-hero,
    .portfolio-hero,
    .blog-hero,
    .about-hero
  ) {
    min-height: 100svh;
  }
}


/* Keep the Articles hero navy and suppress only its extra static grid.
   The shared animated ::after coordinate layer remains identical to the other pages. */
.blog-page section.page-hero.blog-hero {
  background-color: var(--navy) !important;
  background-image: none !important;
}
.blog-page section.page-hero.blog-hero::before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  animation: none !important;
}


/* Match About's base surface to the service-page hero. The shared animated ::after layer remains unchanged. */
.about-profile-page .about-hero {
  background: var(--navy) !important;
}
.about-profile-page .about-hero::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(#b8dbe512 1px, transparent 1px),
    linear-gradient(90deg, #b8dbe512 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000);
}


/* About hero: use the same animated base surface as service-page heroes when its canvas is active. */
.about-profile-page .about-hero.service-motion-host {
  background-image:
    radial-gradient(ellipse at 18% 18%, rgba(46,116,143,.26), transparent 42%),
    linear-gradient(125deg, rgba(12,34,46,.98), rgba(20,45,59,.94) 58%, rgba(25,67,82,.9)) !important;
}





/* About hero: normalize its background layers and ensure the shared canvas sits behind all intro content. */
.about-profile-page .about-hero.service-motion-host {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy) !important;
  background-image:
    radial-gradient(ellipse at 18% 18%, rgba(46,116,143,.26), transparent 42%),
    linear-gradient(125deg, rgba(12,34,46,.98), rgba(20,45,59,.94) 58%, rgba(25,67,82,.9)) !important;
}
.about-profile-page .about-hero.service-motion-host::before {
  z-index: -1 !important;
  background-image:
    linear-gradient(#b8dbe512 1px, transparent 1px),
    linear-gradient(90deg, #b8dbe512 1px, transparent 1px) !important;
  background-size: 38px 38px !important;
  mask-image: linear-gradient(90deg, transparent, #000) !important;
}
.about-profile-page .about-hero.service-motion-host::after {
  z-index: 0 !important;
}
.about-profile-page .about-hero.service-motion-host > .service-motion-canvas {
  display: block !important;
  z-index: 0 !important;
  opacity: .88 !important;
}
.about-profile-page .about-hero.service-motion-host > .about-hero-grid {
  position: relative !important;
  z-index: 1 !important;
}
@media (max-width: 700px) {
  .about-profile-page .about-hero.service-motion-host > .service-motion-canvas {
    opacity: .58 !important;
  }
}
