/* Final visual system for the internal pages. The home page owns its own final layer. */
body.foundation-v8:not(.phase02-home) .foundation-brand img {
  width: 191px; height: auto; max-height: 53px; object-fit: contain;
}
body.foundation-v8:not(.phase02-home) .foundation-footer__brand > img {
  width: 210px; height: auto; max-height: none; object-fit: contain;
}
body.foundation-v8:not(.phase02-home) main > section:first-child {
  --site-x: 70%; --site-y: 40%; isolation: isolate;
}
body.foundation-v8:not(.phase02-home) main > section:first-child .site-hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 31% 48% at var(--site-x) var(--site-y),rgba(145,205,225,.15),transparent 79%);
  mix-blend-mode: screen; opacity: .9; transition: opacity .35s;
}
body.foundation-v8:not(.phase02-home) main > section:first-child :is(h1,p,.btn) { position: relative; }

/* Distinct local imagery tied to each page topic. Text remains on an opaque field. */
.phase03-about .about-hero__photo { background-image: url('../client-images-2026/company.webp'); filter: saturate(.8) contrast(1.05) brightness(.82); }
.phase03-about .about-standard__photo { background-image: url('../client-images-2026/careers.webp'); filter: saturate(.78) contrast(1.05) brightness(.75); }
.phase04-cloud .cloud-hero__photo { background-image: url('../client-images-2026/cloud.webp'); filter: saturate(.84) contrast(1.04) brightness(.83); }
.phase04-cloud .cloud-environment__photo { background-image: url('../client-images-2026/cloud.webp'); }
.phase05-ai .ai-hero__photo { background-image: url('../client-images-2026/ai.webp'); filter: saturate(.84) contrast(1.05) brightness(.91); }
.phase05-ai .ai-field__photo { background-image: url('../client-images-2026/data.webp'); }
.phase06-devsecops .ds-hero__photo { background-image: url('../client-images-2026/devsecops.webp'); filter: saturate(.78) contrast(1.05) brightness(.86); }
.phase06-devsecops .ds-evidence__photo { background-image: url('../client-images-2026/cloud.webp'); }
.phase06-program .pm-hero__photo { background-image: url('../client-images-2026/program.webp'); filter: saturate(.8) contrast(1.05) brightness(.84); }
.phase06-program .pm-visibility__photo { background-image: url('../client-images-2026/careers.webp'); }
.phase09-careers .c09-hero::before {
  background-image: linear-gradient(90deg,#06101b 0%,rgba(6,16,27,.78) 15%,rgba(6,16,27,.12) 60%,rgba(6,16,27,.35) 100%),url('../client-images-2026/careers.webp');
}
.phase09-contact .ct09-hero::before { background-image: url('../client-images-2026/mission.webp'); filter: saturate(.85) contrast(1.05); }
.phase04-data .data-field__photo { background-image: url('../client-images-2026/data.webp'); }
.phase05-workflow .wf-evidence__photo { background-image: url('../client-images-2026/workflow.webp'); }
.past-performance-page .pp8-hero__photo--one { background-image: url('../client-images-2026/data.webp'); }
.past-performance-page .pp8-hero__photo--two { background-image: url('../client-images-2026/cloud.webp'); }
.past-performance-page .pp8-hero__photo--three { background-image: url('../client-images-2026/devsecops.webp'); }
.past-performance-page .pp8-hero__photo--four { background-image: url('../client-images-2026/careers.webp'); }
.past-performance-page .pp8-scale__photo { background-image: linear-gradient(0deg,rgba(5,16,27,.8),transparent 60%),url('../client-images-2026/data.webp'); }
.past-performance-page .pp8-rabbit__backdrop { background-image: linear-gradient(90deg,rgba(20,10,18,.96),rgba(7,16,27,.83) 58%,rgba(6,13,21,.96)),url('../client-images-2026/cloud.webp'); }

/* Pages with diagram-first heroes receive atmospheric photography under the diagram. */
.phase04-data .data-hero { background-image: linear-gradient(90deg,rgba(5,16,27,.98),rgba(5,16,27,.77) 60%,rgba(5,16,27,.83)),url('../client-images-2026/data.webp'); background-position: center; background-size: cover; }
.phase05-workflow .wf-hero { background-image: linear-gradient(90deg,rgba(5,16,27,.97),rgba(5,16,27,.76) 60%,rgba(5,16,27,.89)),url('../client-images-2026/workflow.webp'); background-position: center; background-size: cover; }
.phase08-federal-hub .fh-hero { background-image: linear-gradient(90deg,rgba(5,16,27,.98),rgba(5,16,27,.81) 60%,rgba(5,16,27,.9)),url('../client-images-2026/acquisition.webp'); background-position: center; background-size: cover; }
.phase08-ecosystem .eh-hero { background-image: linear-gradient(90deg,rgba(5,16,27,.97),rgba(5,16,27,.84)),url('../client-images-2026/acquisition.webp'); background-position: center; background-size: cover; }
.phase08-vehicles .vh-hero { background-image: linear-gradient(rgba(249,248,244,.91),rgba(249,248,244,.94)),url('../client-images-2026/acquisition.webp'); background-position: center; background-size: cover; }
.phase08-naics .nh-hero { background-image: linear-gradient(rgba(249,248,244,.91),rgba(249,248,244,.94)),url('../client-images-2026/data.webp'); background-position: center; background-size: cover; }
.phase08-document .dh-hero { background-image: linear-gradient(rgba(245,241,234,.89),rgba(245,241,234,.93)),url('../home-2026/statement.webp'); background-position: center; background-size: cover; }
.phase08-document .dh-hero .btn-ghost { color: #14202d; border-color: rgba(20,32,45,.28); background: rgba(255,255,255,.72); }
.phase08-document .dh-hero .btn-ghost:hover { color: #14202d; border-color: rgba(20,32,45,.48); background: #fff; }
.privacy-page .policy-hero { background-image: linear-gradient(90deg,rgba(5,16,27,.98),rgba(5,16,27,.86)),url('../client-images-2026/data.webp'); background-position: center; background-size: cover; }
.phase09-role .r09-hero { background-image: linear-gradient(90deg,rgba(5,16,27,.98),rgba(5,16,27,.84)),url('../client-images-2026/careers.webp'); background-position: center; background-size: cover; }

/* Light panels use a quiet tint and a local pointer highlight. */
body.foundation-v8:not(.phase02-home) main .site-glow {
  --spot-x: 50%; --spot-y: 50%;
  background-image: radial-gradient(ellipse 70% 105% at var(--spot-x) var(--spot-y),rgba(157,194,207,.18),transparent 78%);
}
body.foundation-v8:not(.phase02-home) main :is(.section-light,.section-cream) .site-glow { background-color: rgba(255,255,255,.64); }
body.foundation-v8:not(.phase02-home) main .site-glow:hover { box-shadow: 0 16px 34px rgba(24,54,69,.09); }
body.foundation-v8:not(.phase02-home) main :is(.fh-path,.vh-route,.nh-cred,.eh-agency,.c09-job,.ct09-path,.r09-related-card,.dh-links a) {
  border-color: rgba(27,58,73,.14); box-shadow: 0 9px 28px rgba(20,48,61,.045);
}
body.foundation-v8:not(.phase02-home) main :is(.fh-path,.vh-route,.nh-cred,.eh-agency,.c09-job,.ct09-path,.r09-related-card,.dh-links a):hover {
  border-color: rgba(55,119,142,.28); box-shadow: 0 18px 38px rgba(21,53,67,.11);
}

/* The ecosystem page now shares the home page's clean, larger logo treatment. */
.phase08-ecosystem .eh-techgrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; background: transparent; border: 0; }
.phase08-ecosystem .eh-logo-card {
  min-width: 0; min-height: 146px; padding: 22px 16px 16px;
  border: 1px solid rgba(24,58,73,.14);
  background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(236,244,246,.9));
  box-shadow: 0 10px 28px rgba(21,52,68,.075);
  transition: transform .35s var(--m10-ease),box-shadow .35s,border-color .35s;
}
.phase08-ecosystem .eh-logo-card:hover { transform: translateY(-5px); border-color: rgba(56,120,144,.35); box-shadow: 0 20px 42px rgba(21,52,68,.14); }
.phase08-ecosystem .eh-logo-card img { width: auto; max-width: 85%; height: 47px; max-height: 47px; object-fit: contain; mix-blend-mode: multiply; }
.phase08-ecosystem .eh-logo-card span { color: #50616d; }
.phase08-ecosystem .eh-rel__logo { background: linear-gradient(145deg,#fffdfa,#f2f5f5); }

/* Direct contact endings use the same readable cinematic treatment as home. */
body.foundation-v8 main > :is(.about-next,.eh-close,.ai-next,.dh-close,.c09-close,.vh-close,.data-next,.ds-cta,.fh-close,.pp8-cta,.pm-cta) {
  background-color: #071522;
  background-image: linear-gradient(90deg,rgba(5,17,28,.97),rgba(5,17,28,.87) 56%,rgba(6,20,32,.74)),url('../client-images-2026/mission.webp');
  background-position: center; background-size: cover; color: #f8fbfc;
  border-top: 1px solid rgba(203,226,237,.16);
}
body.foundation-v8 main > :is(.about-next,.eh-close,.ai-next,.dh-close,.c09-close,.vh-close,.data-next,.ds-cta,.fh-close,.pp8-cta,.pm-cta) :is(h2,h3) { color: #f9fbfc; }
body.foundation-v8 main > :is(.about-next,.eh-close,.ai-next,.dh-close,.c09-close,.vh-close,.data-next,.ds-cta,.fh-close,.pp8-cta,.pm-cta) p { color: #dbe5eb; }
body.foundation-v8 main > :is(.about-next,.eh-close,.ai-next,.dh-close,.c09-close,.vh-close,.data-next,.ds-cta,.fh-close,.pp8-cta,.pm-cta) .btn-primary { color: #fff; background: linear-gradient(125deg,#aa2925,#d34a3f); }
.phase03-about .about-next::after { background: none; opacity: .32; }
.phase03-about .about-next__aside {
  padding: 26px 28px; border: 1px solid rgba(202,227,237,.18);
  background: rgba(16,39,54,.55); backdrop-filter: blur(12px);
}
.phase03-about .about-next__aside > p { color: #e0e9ee; }
.phase03-about .about-next__aside a:not(.btn) { color: #dbe5eb; }

/* Light next-step sections remain distinct and gain a calm background. */
body.foundation-v8 main > :is(.cloud-next,.wf-next,.nh-cross,.ds-next,.pm-next) {
  background-image: linear-gradient(90deg,rgba(250,248,243,.94),rgba(247,248,246,.87)),url('../client-images-2026/data.webp');
  background-position: center; background-size: cover;
  border-top: 1px solid rgba(29,59,74,.12);
}

@media (max-width: 960px) {
  .phase08-ecosystem .eh-techgrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.foundation-v8:not(.phase02-home) main > section:first-child .site-hero-glow { opacity: .48; }
}
@media (max-width: 680px) {
  body.foundation-v8:not(.phase02-home) .foundation-brand img { width: 166px; }
  .phase08-ecosystem .eh-techgrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .phase08-ecosystem .eh-logo-card { min-height: 116px; padding: 14px 8px 12px; }
  .phase08-ecosystem .eh-logo-card img { max-width: 86%; height: 39px; max-height: 39px; }
  .phase09-careers .c09-hero::before { background-image: linear-gradient(180deg,rgba(6,16,27,.7),rgba(6,16,27,.92) 58%,#06101b),url('../client-images-2026/careers.webp'); }
  .phase09-contact .ct09-hero::before { background-image: linear-gradient(180deg,rgba(6,16,27,.72),rgba(6,16,27,.94) 58%,#06101b),url('../client-images-2026/mission.webp'); }
  .phase03-about .about-next__aside { padding: 23px 20px; }
  body.foundation-v8 main > :is(.about-next,.eh-close,.ai-next,.dh-close,.c09-close,.vh-close,.data-next,.ds-cta,.fh-close,.pp8-cta,.pm-cta) { background-image: linear-gradient(rgba(5,17,28,.92),rgba(5,17,28,.92)),url('../client-images-2026/mission.webp'); }
}
@media (max-width: 520px) {
  /* Keep both career actions above the anchored four-stat rail. */
  .phase09-careers .c09-hero__inner { padding-bottom: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  body.foundation-v8:not(.phase02-home) main > section:first-child .site-hero-glow { display: none; }
  .phase08-ecosystem .eh-logo-card { transition: none; }
}
