:root {
  --bg: #0e0e0e;
  --bg-low: #131313;
  --bg-high: #201f1f;
  --bg-top: #262626;
  --text: #ffffff;
  --muted: #adaaaa;
  --primary: #94aaff;
  --primary-dim: #3467ff;
  --tertiary: #69daff;
  --line: rgba(73, 72, 71, 0.15);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(20px);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.brand-icon {
  color: var(--primary);
  font-size: 0.85rem;
}
.brand-text {
  color: var(--primary);
  font-size: 1.2rem;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-desktop a { color: var(--muted); }
.nav-desktop a:hover { color: var(--primary); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.language-switch a {
  min-width: 34px;
  padding: 0.72rem 0.62rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.08em;
}
.language-switch a.active,
.language-switch a:hover {
  color: #00257c;
  background: var(--primary);
}
.cta-top {
  background: var(--primary);
  color: #00257c;
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-tactical {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-photo-layer,
.hero-photo-layer img,
.hero-photo-overlay {
  position: absolute;
  inset: 0;
}
.hero-photo-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}
.hero-photo-overlay {
  background: linear-gradient(90deg, rgba(14,14,14,0.96) 0%, rgba(14,14,14,0.9) 38%, rgba(14,14,14,0.65) 62%, rgba(14,14,14,0.88) 100%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid-bg div {
  position: absolute;
  background: rgba(148, 170, 255, 0.08);
}
.hero-grid-bg div:nth-child(1) { right: 8%; top: 8%; width: 12px; height: 240px; }
.hero-grid-bg div:nth-child(2) { right: 14%; top: 18%; width: 70px; height: 360px; background: rgba(148, 170, 255, 0.14); }
.hero-grid-bg div:nth-child(3) { right: 25%; top: 5%; width: 10px; height: 180px; background: rgba(148, 170, 255, 0.05); }
.hero-tactical-inner {
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 920px;
}
.bilingual-block + .bilingual-block {
  margin-top: 2rem;
  max-width: 760px;
}
.bilingual-es h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-lead-es {
  max-width: 58ch;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-link {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-low);
}
.lang-link.active {
  color: var(--primary);
  background: var(--bg-high);
}
.status-ribbon {
  display: block;
  width: 180px;
  height: 4px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--primary-dim), var(--primary));
  animation: pulseRibbon 2s infinite alternate;
}
@keyframes pulseRibbon {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-copy h1 {
  margin: 0 0 1.25rem;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.button-primary {
  background: linear-gradient(90deg, var(--primary-dim), var(--primary));
  color: #001b61;
}
.button-secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(73, 72, 71, 0.2);
}
.button-large {
  min-width: 240px;
}

.stats-strip {
  background: var(--bg-low);
  padding: 1.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #0a0a0a;
}
.stat-card {
  display: flex;
  gap: 16px;
  padding: 1.5rem;
  background: #000;
}
.stat-card strong {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-card span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.section-block {
  padding: 5rem 0;
}
.section-muted {
  background: var(--bg-low);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.left-heavy {
  max-width: 720px;
  margin-bottom: 2rem;
}
.split-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 2rem;
}
.center-compact {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: left;
}
.meta-log {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: #0a0a0a;
}
.capability {
  position: relative;
  padding: 2rem;
  background: var(--bg-high);
  min-height: 240px;
}
.capability-photo {
  overflow: hidden;
  padding: 0;
}
.capability-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  opacity: 0.35;
}
.capability-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.5rem 1.7rem;
  background: linear-gradient(180deg, rgba(14,14,14,0.02) 0%, rgba(14,14,14,0.88) 62%, rgba(14,14,14,0.96) 100%);
}
.capability-large { grid-column: span 8; }
.capability-highlight {
  grid-column: span 4;
  background: var(--bg-top);
}
.capability-wide { grid-column: span 8; }
.capability:not(.capability-large):not(.capability-highlight):not(.capability-wide) { grid-column: span 4; }
.accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}
.capability h3,
.deployment-card h3,
.protocol-step h3 {
  margin: 0 0 0.85rem;
  font-size: 1.7rem;
}
.capability p,
.deployment-card p,
.protocol-step p,
.cta-band-inner p,
.footer-copy { color: var(--muted); }

.deployments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #0a0a0a;
}
.deployment-card {
  padding: 2rem;
  background: var(--bg-low);
}
.deploy-tag {
  margin: 0 0 1.25rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.deploy-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.deploy-status i {
  width: 8px;
  height: 8px;
  background: var(--primary);
  display: inline-block;
  animation: pulseRibbon 1.5s infinite alternate;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.protocol-step {
  position: relative;
  padding-top: 2rem;
}
.protocol-step span {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(255,255,255,0.06);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}
.protocol-step h3 {
  position: relative;
  margin-top: 2rem;
}

.cta-band {
  border-top: 1px solid rgba(148, 170, 255, 0.06);
  border-bottom: 1px solid rgba(148, 170, 255, 0.06);
  background: var(--bg-low);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band-inner h2 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.footer-tactical {
  padding: 3rem 0 5rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}
.footer-copy {
  max-width: 340px;
  font-size: 0.9rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

.blog-hero {
  min-height: 58vh;
}

.stats-grid-blog {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #0a0a0a;
}

.blog-card {
  background: var(--bg-low);
  border: 1px solid var(--line);
}

.featured-post {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body h3 {
  margin: 0 0 0.85rem;
  font-size: 1.7rem;
  line-height: 1.05;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-cta-inner {
  background: transparent;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1040px) {
  .stats-grid,
  .deployments-grid,
  .protocol-grid,
  .footer-inner,
  .cta-band-inner,
  .stats-grid-blog {
    grid-template-columns: 1fr;
    display: grid;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-post {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .capability-large,
  .capability-highlight,
  .capability-wide,
  .capability:not(.capability-large):not(.capability-highlight):not(.capability-wide) {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .nav-desktop,
  .topbar-actions {
    display: none;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .hero-tactical {
    padding: 3rem 0 2rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 3.2rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button,
  .button-large {
    width: 100%;
  }

  .split-head {
    display: block;
  }

  .footer-links {
    grid-template-columns: repeat(2, auto);
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(14, 14, 14, 0.96);
    border-top: 1px solid var(--bg-low);
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mobile-nav a.active {
    color: var(--primary);
    background: var(--bg-high);
    box-shadow: inset 4px 0 0 var(--primary);
  }

  body {
    padding-bottom: 62px;
  }
}

@media (max-width: 760px) {
  .blog-grid,
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post {
    grid-column: span 1;
  }
}


.client-band {
  background: #0b0b0b;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #0a0a0a;
}

.client-tile {
  background: var(--bg-low);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 1040px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .client-grid {
    grid-template-columns: 1fr;
  }
}


.client-head {
  margin-bottom: 1.5rem;
}

.refined-client-grid {
  gap: 1px;
}

.refined-client-tile {
  min-height: 132px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
}

.client-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.refined-client-tile strong {
  color: var(--primary);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.home-blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1040px) {
  .home-blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
}


.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.post-article {
  background: var(--bg-low);
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.post-article h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.9rem;
}

.post-article p,
.post-article li {
  color: var(--muted);
  font-size: 1rem;
}

.post-article ul {
  padding-left: 1.2rem;
}

.post-sidecard {
  position: sticky;
  top: 90px;
  background: var(--bg-high);
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.post-sidecard h3 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.post-sidecard ul {
  padding-left: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

  .post-sidecard {
    position: static;
  }
}


.blog-hero {
  min-height: auto;
  padding: 2.25rem 0 1.5rem;
}

.blog-hero .hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.blog-hero .hero-lead {
  max-width: 56ch;
  font-size: 1rem;
}

.blog-hero .hero-actions {
  margin-top: 1.25rem;
}

@media (max-width: 760px) {
  .blog-hero {
    padding: 1.6rem 0 1rem;
  }

  .blog-hero .hero-copy h1 {
    font-size: 2.3rem;
  }
}


.blog-hero {
  min-height: auto !important;
  padding: 1.2rem 0 0.8rem !important;
}

.blog-hero .hero-copy {
  max-width: 760px;
}

.blog-hero .status-ribbon {
  width: 110px;
  margin-bottom: 0.8rem;
}

.blog-hero .hero-copy h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem) !important;
  margin-bottom: 0.7rem;
}

.blog-hero .hero-lead {
  font-size: 0.95rem !important;
  margin-bottom: 0;
}

.blog-hero .hero-actions {
  margin-top: 0.9rem !important;
}
