@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #10192d;
  --ink-soft: #4d617f;
  --line: rgba(22, 39, 70, 0.1);
  --line-dark: rgba(213, 226, 250, 0.12);
  --white: #ffffff;
  --offwhite: #f6f8fc;
  --offwhite-2: #eef3fb;
  --dark: #10223f;
  --dark-2: #132b50;
  --dark-3: #173663;
  --gold: #f1c75b;
  --shadow: 0 18px 50px rgba(17, 31, 58, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 76px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.v31-narrow {
  width: min(1080px, 92%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(224, 185, 79, 0.26);
  background: linear-gradient(165deg, #fff4c7 0%, #ffe7a4 58%, #fff1ca 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(98, 81, 23, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.wordmark {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  color: #223357;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0f1e3d;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 22, 34, 0.74);
  color: #121824;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 600;
  transition: color 200ms ease, border-color 200ms ease;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0a101d;
  transform: translateX(-102%);
  transition: transform 220ms ease;
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #ffffff;
  border-color: #203764;
}

.nav-cta:hover::before,
.nav-cta:focus-visible::before {
  transform: translateX(0);
  background: linear-gradient(135deg, #27467d 0%, #1a2f58 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #dce5ff;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 199, 91, 0.55);
}

.btn-primary {
  border: 0;
  color: #151820;
  background: linear-gradient(135deg, var(--gold), #ffe8a9 65%);
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.06;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.v31-hero {
  padding: 42px 0 24px;
  background: linear-gradient(180deg, #f5f8ff 0%, #eef4fc 100%);
}

.v31-hero-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,255,0.98) 100%);
}

.v31-hero-copy {
  position: relative;
  padding: 62px 58px 58px;
  overflow: hidden;
}

.v31-hero-copy > *:not(.v31-hero-logo-bg) {
  position: relative;
  z-index: 1;
}

.v31-hero-logo-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(640px, 95%);
  opacity: 0.16;
  filter: blur(1px) saturate(1.08);
  pointer-events: none;
  z-index: 0;
}

.v31-kicker {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #62759b;
}

.v31-hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: -0.05em;
  max-width: 680px;
  margin-bottom: 18px;
}

.v31-sub {
  max-width: 630px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.v31-note {
  max-width: 560px;
  margin-top: 18px;
  color: #687b9c;
  font-size: 0.95rem;
}

.v31-hero-aside {
  padding: 28px;
  background: linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 62%, var(--dark-3) 100%);
  color: #ecf3ff;
  display: flex;
  align-items: center;
}

.v31-aside-card {
  width: 100%;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.04);
}

.v31-aside-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a8bde3;
  text-transform: uppercase;
}

.v31-aside-card h2 {
  font-size: 1.8rem;
  line-height: 1.08;
  margin-bottom: 12px;
}

.v31-aside-card p {
  margin: 0;
  color: #d4def4;
}

.v31-capability-band {
  padding: 0 0 34px;
  background: linear-gradient(180deg, #eef4fc 0%, #ffffff 100%);
}

.v31-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.v31-capability-card {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(15, 27, 49, 0.05);
}

.v31-capability-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #6b7dff 0%, #8f63ff 52%, #d24bc8 100%);
}

.v31-capability-label,
.v31-pillar-label,
.v31-proof-kicker,
.v31-case-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.v31-capability-label {
  color: #23365a;
}

.v31-capability-card p {
  margin: 0;
  color: #4b5f7d;
}

.v31-section {
  padding: 76px 0;
}

.v31-section-light {
  background: #ffffff;
}

.v31-section-light-alt {
  background: #f7f9fd;
}

.v31-section-dark {
  background: linear-gradient(165deg, #16335f 0%, #112949 100%);
  color: #edf4ff;
}

.v31-center-head {
  text-align: center;
  margin-bottom: 28px;
}

.v31-center-head h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.04em;
}

.v31-center-head p {
  max-width: 720px;
  margin: 0 auto;
  color: #5f7091;
  font-size: 1rem;
}

.v31-section-dark .v31-center-head p {
  color: #d1def6;
}

.v31-logo-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,248,255,0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.v31-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.v31-logo-chip {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(18, 38, 75, 0.08);
}

.v31-statement-card {
  width: 100%;
  margin: 0 0 28px;
  padding: 24px 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
}

.v31-statement-card p {
  margin: 0;
  color: #f2f6ff;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.v31-pillar-grid,
.v31-proof-grid,
.v31-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v31-pillar-card,
.v31-proof-card,
.v31-case-card,
.v31-cta-card {
  border-radius: 22px;
}

.v31-pillar-card {
  padding: 24px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
}

.v31-pillar-card h3,
.v31-proof-card h3,
.v31-case-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.v31-pillar-card p {
  margin: 0;
  color: #d3def6;
}

.v31-proof-card,
.v31-case-card {
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 27, 49, 0.05);
}

.v31-proof-card p,
.v31-case-card p {
  margin: 0;
  color: #4f617f;
}

.v31-proof-source {
  display: block;
  margin-top: 14px;
  color: #7a8aa6;
  font-size: 0.88rem;
}

.v31-proof-kicker,
.v31-case-label {
  color: #61759b;
}

.v31-cta-card {
  padding: 36px 38px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
}

.v31-cta-card p {
  max-width: 760px;
  margin: 0 auto 18px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(1.24rem, 2.1vw, 1.5rem);
  line-height: 1.42;
  color: #f3f7ff;
}

.footer {
  padding: 44px 0 24px;
  background: #0c1630;
  color: #d7e3fc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer h4 {
  margin-bottom: 10px;
  color: #ffffff;
}

.footer .stack {
  display: grid;
  gap: 8px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(211, 224, 250, 0.16);
}

.footer-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(211, 224, 250, 0.12);
  color: #95a8cb;
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
}

body.motion-on .reveal:not(.visible):not(.reveal-once-seen) {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
}

body.motion-on .reveal {
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}

.reveal.visible,
.reveal-once-seen,
.reveal-once-seen.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

section.reveal .reveal,
section.reveal .reveal:not(.visible),
.reveal-once-seen .reveal,
.reveal-once-seen .reveal:not(.visible) {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

@media (max-width: 980px) {
  .nav-wrap,
  .footer-grid,
  .v31-hero-shell,
  .v31-pillar-grid,
  .v31-proof-grid,
  .v31-case-grid,
  .v31-capability-grid,
  .v31-logo-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    display: grid;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .v31-hero-copy,
  .v31-hero-aside {
    padding: 28px 22px;
  }

  .v31-logo-grid {
    display: grid;
  }
}


/* v31 style refinement */
.v31-aside-kicker,
.v31-capability-label,
.v31-pillar-label,
.v31-proof-kicker,
.v31-case-label,
.v31-logo-section-title {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}


.v31-logo-section-title {
  margin: 4px 0 14px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700;
  color: #60739b;
  text-transform: uppercase;
}

.v31-logo-section-title.federal {
  margin-top: 24px;
}

.federal-grid .v31-logo-chip {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.federal-grid .v31-logo-chip span {
  font-size: 0.76rem;
  color: #667a9e;
}

.v31-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer {
  background: #ffffff;
  color: #28405f;
  border-top: 1px solid rgba(18, 38, 75, 0.08);
}

.footer h4 {
  color: #10192d;
}

.footer-meta {
  border-top-color: rgba(18, 38, 75, 0.08);
  color: #7084a6;
}

.social-icon {
  border-color: rgba(18, 38, 75, 0.12);
}

@media (max-width: 980px) {
  .v31-case-grid {
    grid-template-columns: 1fr;
  }
}


/* v31 logo and nav polish */
.v31-logo-chip {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.v31-logo-chip:hover {
  transform: scale(0.8);
}

.federal-grid .v31-logo-chip {
  min-height: 72px;
  padding: 10px;
}

.federal-grid .v31-logo-chip img {
  max-height: 38px;
  width: auto;
}

.federal-grid .v31-logo-chip span {
  font-size: 0.68rem;
}

.federal-grid::after,
.federal-grid::before {
  display: none !important;
  content: none !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}

.nav-cta:hover span,
.nav-cta:focus-visible span {
  color: #ffffff;
}


/* v4 pillar icons */
.v31-pillar-icon {
  margin-top: 18px;
  color: #dbe7ff;
  opacity: 0.92;
}

.v31-pillar-icon svg {
  width: 68px;
  height: 68px;
}


/* v4 polish pass */
.v31-logo-chip:hover {
  transform: none;
}

.v31-logo-chip img {
  transition: transform 180ms ease;
}

.v31-logo-chip:hover img {
  transform: scale(0.8);
}

.v31-pillar-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}

.v31-pillar-icon svg {
  width: 119px;
  height: 119px;
}


/* v4 asset icons */
.v31-pillar-icon img {
  width: 119px;
  height: 119px;
  object-fit: contain;
  filter: brightness(0) invert(1) contrast(1.02);
  mix-blend-mode: screen;
}


/* v4 late polish */
.v31-logo-chip img[alt="CACI"] {
  transform: scale(0.75);
  transform-origin: center;
}

.v31-logo-chip:hover img[alt="CACI"] {
  transform: scale(0.6);
}

.v31-pillar-icon img {
  mix-blend-mode: normal;
  filter: none;
}

/* v5 supporting pages */
.subpage-body {
  background: #ffffff;
}

.subpage-hero {
  padding: 42px 0 24px;
  background: linear-gradient(180deg, #f5f8ff 0%, #eef4fc 100%);
}

.subpage-hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(22, 39, 70, 0.1);
  box-shadow: 0 18px 50px rgba(17, 31, 58, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,255,0.98) 100%);
}

.about-hero-shell {
  grid-template-columns: 1.1fr 0.9fr;
}

.subpage-hero-copy {
  padding: 54px 52px;
}

.subpage-hero-panel {
  padding: 24px;
  background: linear-gradient(165deg, #16335f 0%, #112949 100%);
  color: #edf4ff;
  display: flex;
  align-items: center;
}

.subpage-hero-panel-card {
  width: 100%;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(213, 226, 250, 0.12);
  background: rgba(255,255,255,0.05);
}

.services-grid-four,
.services-grid-four.v31-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-inline-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-inline-points span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(213, 226, 250, 0.12);
  font-size: 0.8rem;
  color: #dce6fb;
}

.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-feature-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(22, 39, 70, 0.08);
  box-shadow: 0 10px 26px rgba(15, 27, 49, 0.05);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f7ff 0%, #edf3ff 100%);
  color: #304974;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.challenge-stack {
  display: grid;
  gap: 16px;
}

.challenge-premium-card {
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(22, 39, 70, 0.08);
  box-shadow: 0 10px 26px rgba(15, 27, 49, 0.05);
}

.challenge-premium-card p {
  color: #4f617f;
}

.challenge-premium-card a {
  color: #173663;
  font-weight: 600;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(22, 39, 70, 0.08);
  box-shadow: 0 10px 24px rgba(15, 27, 49, 0.05);
}

.signal-item span {
  color: #596b89;
}

.dark-signals .signal-item {
  background: rgba(255,255,255,0.06);
  border-color: rgba(213, 226, 250, 0.12);
}

.dark-signals .signal-item strong,
.dark-signals .signal-item span {
  color: #e7efff;
}

@media (max-width: 980px) {
  .subpage-hero-shell,
  .premium-feature-grid,
  .services-grid-four,
  .services-grid-four.v31-case-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero-copy,
  .subpage-hero-panel {
    padding: 28px 22px;
  }
}

/* v5 narrative pages */
.narrative-section {
  padding-top: 24px;
}

.narrative-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 18px;
  align-items: start;
}

.narrative-copy-card,
.narrative-visual-card {
  padding: 26px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(22, 39, 70, 0.08);
  box-shadow: 0 10px 26px rgba(15, 27, 49, 0.05);
}

.narrative-copy-card p {
  margin: 0 0 16px;
  color: #4e617f;
  font-size: 1rem;
  line-height: 1.8;
}

.narrative-copy-card p:last-child {
  margin-bottom: 0;
}

.narrative-visual-stack {
  display: grid;
  gap: 16px;
}

.narrative-visual-card h3 {
  margin-bottom: 8px;
}

.narrative-visual-card p {
  margin: 0;
  color: #566987;
}

.narrative-visual-card.image-break {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
}

.narrative-visual-card.image-break img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .narrative-layout {
    grid-template-columns: 1fr;
  }
}

/* contact form */
.contact-form-card {
  padding: 28px 28px 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(22, 39, 70, 0.08);
  box-shadow: 0 10px 26px rgba(15, 27, 49, 0.05);
}

.contact-form-card > p {
  margin-top: 0;
  color: #5a6d8b;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #21365a;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(22, 39, 70, 0.14);
  padding: 12px 14px;
  font: inherit;
  color: #13233f;
  background: #fbfdff;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(42, 82, 155, 0.45);
  box-shadow: 0 0 0 4px rgba(92, 124, 184, 0.12);
}

.contact-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

@media (max-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}
