:root {
  --bg: #eef2f6;        /* cool basemap paper */
  --alt: #e4eaf0;       /* alternating section */
  --surface: #ffffff;   /* cards */
  --ink: #14222e;       /* deep slate ink (map labels) */
  --muted: #57697a;     /* slate grey */
  --line: #d3dce4;      /* cool hairline */
  --accent: #15619f;    /* cartographic azure (primary) */
  --accent-hover: #1c78c0;
  --accent-2: #0e8c8c;  /* teal, data-viz micro-labels only */
  --maxw: 1040px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(238, 242, 246, 0.95);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-weight: 800; letter-spacing: 0.5px; font-size: 0.95rem;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1.5px solid var(--accent); border-radius: 5px; color: var(--accent);
}
.nav { display: flex; gap: 28px; align-items: center; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.2px; }
.nav a { color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav-cta { color: var(--accent) !important; font-weight: 700; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 78px;
  background: linear-gradient(180deg, #f3f6f9 0%, #e8eef3 100%);
}
.topo {
  position: absolute; top: -64px; right: -56px;
  width: 730px; max-width: 82vw; aspect-ratio: 760 / 540;
  background: url("contours.svg") no-repeat center / contain;
  opacity: 0.22; z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.6px; font-size: 0.76rem;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.45rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 620px; margin-top: 22px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 0.95rem; transition: all 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.stat-row {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 54px; max-width: 720px;
}
.stat-row li { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 14px; }
.stat-row strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-row span { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Sectors strip */
.sectors { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--alt); }
.sectors .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center;
  padding: 18px 24px; color: var(--muted);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 600;
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--alt); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
.section-sub { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 38px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 2px rgba(20,34,46,0.04), 0 10px 26px rgba(20,34,46,0.05);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 1px 2px rgba(20,34,46,0.05), 0 16px 34px rgba(20,34,46,0.10); }
.card-tag {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--accent-2); font-weight: 700; margin-bottom: 12px;
}
.card h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); }
.card p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.stack li {
  font-size: 0.76rem; color: var(--ink); background: #eaf0f5;
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 4px;
}
.outcome { color: var(--ink) !important; font-size: 0.91rem !important; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px !important; }
.card-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 0.84rem; text-transform: uppercase; letter-spacing: 1px; }
.card-link:hover { color: var(--accent-hover); }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 38px; }
.cap { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(20,34,46,0.04); }
.cap h4 { font-size: 1.02rem; color: var(--accent); margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 0.95rem; }

/* About */
.about { max-width: 720px; }
.about p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.about .cta-row { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--alt); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 28px 24px; color: var(--muted); font-size: 0.88rem; }

/* Responsive */
@media (max-width: 760px) {
  .nav { gap: 0; }
  .nav a:not(.nav-cta) { display: none; }
  .topo { width: 420px; top: -40px; right: -120px; opacity: 0.16; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .cards, .cap-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 54px; }
}

/* Project card images (added once screenshots exist) */
.card img { width: 100%; height: 170px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); margin-bottom: 16px; }

/* Case study pages */
.case { max-width: 760px; margin: 0 auto; padding: 0 24px 48px; }
.case-hero { padding: 24px 0 8px; }
.case-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--ink); letter-spacing: -0.5px; line-height: 1.12; margin-top: 6px; }
.case-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin-top: 14px; }
.case section { padding: 22px 0 4px; }
.case h2 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.case p { color: #33424e; font-size: 1.02rem; line-height: 1.7; }
.case .stack { margin-top: 14px; }
.ph { border: 1px dashed #b9c6d2; border-radius: 6px; background: #e7edf2; color: var(--muted); font-size: 0.85rem; padding: 44px 16px; text-align: center; margin: 22px 0; }
.back-link { display: inline-block; margin-top: 30px; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.back-link:hover { color: var(--accent-hover); }
.case img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); margin: 22px 0; }
