@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0f1a; --ink2: #1e2a3a; --steel: #2e3d52; --muted: #6b7a8d;
  --faint: #e8edf3; --accent: #00d4aa; --accent2: #0099ff;
  --rule: rgba(255,255,255,0.08);
  --rule2: rgba(255,255,255,0.12); --rule-light: rgba(10,15,26,0.08);
  --mono: 'DM Mono', monospace; --sans: 'DM Sans', sans-serif;
}

body { font-family: var(--sans); font-size: 15px; background: var(--faint); color: var(--ink); line-height: 1.6; min-height: 100vh; }

/* NAV */
.nf-nav { background: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 56px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.nf-logo { font-family: var(--mono); font-size: 13px; font-weight: 500; color: #fff; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.nf-logo-mark { width: 22px; height: 22px; border: 1.5px solid var(--accent); transform: rotate(45deg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nf-logo-mark-inner { width: 8px; height: 8px; background: var(--accent); }
.nf-nav-links { display: flex; gap: 24px; align-items: center; }
.nf-nav-links a { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.45); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; white-space: nowrap; }
.nf-nav-links a:hover { color: rgba(255,255,255,.8); }
.nf-nav-links a.active { color: var(--accent); }
.nf-nav-cta { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink) !important; background: var(--accent); padding: 7px 14px; letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s; }
.nf-nav-cta:hover { opacity: .88; }
.nf-nav-cta.active-page { box-shadow: 0 0 0 2px rgba(0,212,170,.4); }

/* PAGE HERO */
.nf-page-hero { background: var(--ink); padding: 56px 40px 52px; position: relative; overflow: hidden; }
.nf-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 40px 40px; }
.nf-hero-grid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--ink) 100%); }
.nf-breadcrumb { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; position: relative; z-index: 1; }
.nf-breadcrumb span { color: var(--accent); }
.nf-tag { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(0,212,170,.3); padding: 4px 10px; display: inline-block; margin-bottom: 20px; position: relative; z-index: 1; }
.nf-page-h1 { font-family: var(--sans); font-size: 38px; font-weight: 300; color: #fff; line-height: 1.12; letter-spacing: -.02em; max-width: 580px; position: relative; z-index: 1; margin-bottom: 16px; }
.nf-page-h1 strong { font-weight: 500; color: var(--accent); }
.nf-page-sub { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.45); max-width: 520px; line-height: 1.75; position: relative; z-index: 1; }

/* SECTIONS */
.nf-section { padding: 48px 40px; border-bottom: 1px solid var(--rule-light); background: #fff; }
.nf-section.dark { background: var(--ink); border-bottom: 1px solid var(--rule); }
.nf-section.mid  { background: var(--ink2); border-bottom: 1px solid var(--rule); }
.nf-section.faint { background: var(--faint); }
.nf-section.light { background: #fff; }
.nf-section.black { background: var(--ink); border-bottom: 1px solid var(--rule2); }
.nf-section.ink2  { background: var(--ink2); border-bottom: 1px solid var(--rule2); }
.nf-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.nf-section-title { font-family: var(--sans); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.nf-section-title.light { color: #fff; }
.nf-section-num { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nf-section-num.light { color: rgba(255,255,255,.3); }

/* BUTTONS */
.nf-btn-primary { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 12px 24px; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .2s; }
.nf-btn-primary:hover { opacity: .88; }
.nf-btn-ghost { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: rgba(255,255,255,.6); padding: 12px 24px; border: 1px solid rgba(255,255,255,.18); cursor: pointer; text-decoration: none; display: inline-block; transition: border-color .2s, color .2s; }
.nf-btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* CTA */
.nf-cta { background: var(--ink2); padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.nf-cta-text h2 { font-family: var(--sans); font-size: 24px; font-weight: 300; color: #fff; letter-spacing: -.02em; margin-bottom: 6px; }
.nf-cta-text h2 strong { font-weight: 500; }
.nf-cta-text p { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.38); letter-spacing: .05em; }

/* FOOTER */
.nf-footer { background: var(--ink); padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); flex-wrap: wrap; gap: 10px; }
.nf-footer-copy { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.22); letter-spacing: .08em; }
.nf-footer-links { display: flex; gap: 20px; }
.nf-footer-links a { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.22); letter-spacing: .08em; text-decoration: none; transition: color .2s; }
.nf-footer-links a:hover { color: rgba(255,255,255,.5); }

/* ── TABLET (641–900px) ── */
@media (min-width: 641px) and (max-width: 900px) {
  .nf-nav { padding: 0 28px; }
  .nf-page-hero { padding: 44px 28px; }
  .nf-section { padding: 36px 28px; }
  .nf-cta { padding: 36px 28px; }
  .nf-footer { padding: 18px 28px; }
  .nf-page-h1 { font-size: 32px; }
  .nf-delivery-grid, .nf-principle-grid, .nf-sovereign-grid,
  .nf-values, .nf-art-grid, .nf-contact-grid { grid-template-columns: 1fr 1fr !important; }
  .nf-engage-types { grid-template-columns: 1fr 1fr !important; }
  .nf-case-metrics { grid-template-columns: 1fr 1fr !important; }
  .nf-ms-banner { flex-direction: column; gap: 12px; }
  .nf-ms-divider { display: none; }
}

/* ── MOBILE (≤640px) ── */
@media (max-width: 640px) {
  /* Nav */
  .nf-nav { padding: 0 20px; }

  /* Hero */
  .nf-page-hero { padding: 32px 20px 32px; }
  .nf-page-h1 { font-size: 26px; }
  .nf-page-sub { font-size: 12px; }

  /* Sections */
  .nf-section { padding: 28px 20px; }
  .nf-cta { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .nf-cta .nf-btn-primary { width: 100%; text-align: center; }
  .nf-footer { padding: 18px 20px; }

  /* All multi-col grids → single column */
  .nf-pillar-grid,
  .nf-cap-grid,
  .nf-delivery-grid,
  .nf-principle-grid,
  .nf-timeline-wrap,
  .nf-case-grid,
  .nf-case-metrics,
  .nf-art-grid,
  .nf-mission,
  .nf-sovereign-grid,
  .nf-partner-grid,
  .nf-values,
  .nf-engage-types,
  .nf-engage-layout,
  .nf-field-row,
  .nf-contact-grid { grid-template-columns: 1fr !important; }

  /* Stat bar — 2 per row */
  .nf-statbar { flex-wrap: wrap; }
  .nf-stat { flex: 0 0 50%; border-bottom: 1px solid var(--rule); }

  /* Hero actions stack vertically */
  .nf-hero-actions { flex-direction: column; gap: 10px; }
  .nf-hero-actions a, .nf-hero-actions button { width: 100%; text-align: center; }

  /* Process steps stack */
  .nf-process-steps, .nf-phases { flex-direction: column; gap: 18px; }
  .nf-process-steps::before, .nf-phases::before { display: none; }
  .nf-process-step, .nf-phase { padding-top: 0; padding-left: 20px; }
  .nf-phase-dot { top: 2px; }

  /* MS banner */
  .nf-ms-banner { flex-direction: column; gap: 12px; }
  .nf-ms-divider { display: none; }

  /* Buttons full width where appropriate */
  .nf-btn-primary, .nf-btn-ghost { width: 100%; text-align: center; display: block; }
}

/* ── HAMBURGER BUTTON ── */
.nf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nf-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(255,255,255,.7);
  transition: all .25s;
}
.nf-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nf-hamburger.open span:nth-child(2) { opacity: 0; }
.nf-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.nf-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--ink2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.nf-mobile-menu.open {
  max-height: 400px;
}
.nf-mobile-menu a {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  transition: color .2s, background .2s;
  display: block;
}
.nf-mobile-menu a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nf-mobile-menu a.active { color: var(--accent); }
.nf-mobile-menu a.nf-nav-cta {
  background: var(--accent);
  color: var(--ink);
  font-weight: 500;
  border-bottom: none;
  text-align: center;
  margin: 12px 20px;
}

@media (max-width: 640px) {
  .nf-nav { padding: 0 20px; }
  .nf-nav-links { display: none; }
  .nf-hamburger { display: flex; }
  .nf-mobile-menu { display: flex; }
}

.nf-section.black .nf-section-title,
.nf-section.ink2  .nf-section-title { color: #fff; }
.nf-section.black .nf-section-num,
.nf-section.ink2  .nf-section-num   { color: rgba(255,255,255,.3); }
.nf-section.black .nf-section-title span,
.nf-section.ink2  .nf-section-title span { color: var(--accent); }