/* =========================================================
   DEVIGO — SPLIT LAYOUTS, GRAPHICS, FINAL RESPONSIVE PASSES
   ========================================================= */

/* ---------- Generic split section (text + visual) ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse > * {
  direction: ltr;
}

/* ---------- Network / node graphic (About — "story" visual) ---------- */
.node-graphic {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  clip-path: polygon(
    var(--chamfer-lg) 0,
    100% 0,
    100% calc(100% - var(--chamfer-lg)),
    calc(100% - var(--chamfer-lg)) 100%,
    0 100%,
    0 var(--chamfer-lg)
  );
  overflow: hidden;
}
.node-graphic svg {
  width: 100%;
  height: 100%;
}
.node-graphic .n {
  fill: var(--blue-400);
}
.node-graphic .n.pulse {
  animation: node-pulse 2.6s var(--ease-in-out) infinite;
}
.node-graphic .e {
  stroke: var(--navy-700);
  stroke-width: 1;
  fill: none;
}
.node-graphic .e.flow {
  stroke: var(--blue-500);
  stroke-dasharray: 6 10;
  animation: dash-flow 6s linear infinite;
  opacity: 0.7;
}
@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.6;
    r: 3;
  }
  50% {
    opacity: 1;
    r: 5;
  }
}
@keyframes dash-flow {
  to {
    stroke-dashoffset: -160;
  }
}

/* ---------- Contact split ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--sp-9);
  align-items: start;
}
.contact-side {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

/* ---------- Mission/vision pair ---------- */
.mv-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.mv-card {
  padding: var(--sp-6);
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
}
.mv-card .eyebrow {
  margin-bottom: var(--sp-3);
}
.mv-card p {
  color: var(--ice-200);
  font-size: var(--fs-md);
}

/* ---------- About hero portrait strip (values row inline stat) ---------- */
.about-hero-visual {
  position: relative;
}

/* =========================================================
   RESPONSIVE — consolidated breakpoints
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid {
    gap: var(--sp-7);
  }
}

@media (max-width: 900px) {
  .split-layout,
  .contact-split,
  .mv-pair {
    grid-template-columns: 1fr;
  }
  .split-layout.reverse {
    direction: ltr;
  }
  .contact-side {
    position: static;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero .console {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: calc(var(--header-h) + var(--sp-6));
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
  .hero-stat-row {
    gap: var(--sp-5);
  }
  .featured-project .project-info {
    padding: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 72px;
  }
  .brand-word {
    font-size: 1.05rem;
  }
  .console-body {
    font-size: 0.74rem;
    padding: var(--sp-4);
  }
  .modal-body {
    padding: var(--sp-5);
  }
  .modal-meta {
    gap: var(--sp-4);
  }
}
