/* Northgate Cyber - single stylesheet (no inline styles, so the CSP can
   forbid them). Colours and type match the original page. */

@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #08101f;
  --band: #0b1427;
  --surface: #0e182c;
  --line: #1f2c45;
  --line-strong: #2a3a58;
  --input-line: #33415c;
  --text: #e6eaf2;
  --heading: #f2f4f1;
  --soft: #c9d1da;
  --soft-2: #c9d1de;
  --muted: #a3aec2;
  --muted-2: #b4bece;
  --faint: #8a96ab;
  --accent: #8ab4ff;
  --accent-hover: #b8d0ff;
  --primary: #2d5fe0;
  --primary-hover: #3b6cf0;
  --sister-bg: #12224a;
  --sister-line: #2d4a8a;
  --display: Manrope, Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
  --header-h: 72px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html.smooth-scroll { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--heading); font-family: var(--display); letter-spacing: -0.02em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--heading); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type primitives ---------- */
.eyebrow { margin: 0 0 12px; color: var(--accent); font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--line-strong); color: var(--heading); font-weight: 500; }
.btn-outline:hover { border-color: var(--accent); color: #fff; background: rgba(138, 180, 255, .06); }
.btn-small { padding: 11px 18px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(8, 16, 31, .94); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav-links a:not(.btn) { padding: 12px 0; color: var(--soft); text-decoration: none; transition: color .2s ease; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: transparent; color: var(--heading); font: inherit; font-weight: 600; cursor: pointer; }
.nav-toggle-icon { position: relative; width: 20px; height: 14px; }
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.nav-toggle-icon::before { top: 2px; }
.nav-toggle-icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 56px; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-eyebrow { margin: 0 0 20px; font-size: 13px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
.hero-lead { max-width: 640px; margin: 28px 0 0; color: var(--soft); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-facts { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1px solid #24324d; }
.fact-big { margin: 0; color: var(--heading); font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.fact-title { margin: 0; color: var(--heading); font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.fact-note { margin: 6px 0 0; color: #a9b4c0; font-size: 15px; }
.fact-title + .fact-note { margin-top: 4px; }

/* ---------- Credentials strip ---------- */
.creds { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; list-style: none; color: var(--muted-2); font-size: 15px; }
.creds-label { color: var(--text); font-weight: 600; }

/* ---------- Services ---------- */
.services { padding-top: 104px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head > div { flex: 1 1 520px; min-width: 0; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.section-head > p { flex: 1 1 340px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: #2f4268; transform: translateY(-2px); }
.card-num { margin: 0; color: var(--faint); font-size: 13px; font-weight: 600; }
.card h3 { margin: 0; font-size: 24px; line-height: 1.2; }
.card > p:not(.card-num) { margin: 0; color: var(--muted); }
.card ul { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding-left: 20px; color: var(--soft-2); font-size: 16px; }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-radius: var(--radius); }
.callout > div { flex: 999 1 420px; min-width: 0; }
.callout > .btn { flex: 0 1 auto; }
.callout-sister { margin-top: 20px; padding: 28px 32px; border: 1px solid var(--sister-line); background: var(--sister-bg); }
.callout-sister .eyebrow { margin: 0; font-size: 13px; }
.callout-title { margin: 8px 0 0; color: var(--heading); font-size: 20px; font-weight: 600; }
.callout-sister .callout-title + p { margin: 6px 0 0; color: var(--soft-2); }

.gov { padding-top: 20px; padding-bottom: 104px; }
.callout-gov { gap: 24px 48px; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.callout-gov > div { flex-basis: 480px; }
.callout-gov .eyebrow { margin-bottom: 10px; }
.callout-gov h2 { margin: 0; font-size: 30px; line-height: 1.2; }
.callout-gov h2 + p { margin: 14px 0 0; color: var(--muted-2); }

/* ---------- Approach ---------- */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-pad { padding-top: 104px; padding-bottom: 104px; }
.approach-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.approach-grid > div { flex: 1 1 380px; min-width: 0; }
.approach-grid .section-title + p { margin: 20px 0 0; color: var(--muted); }
.steps { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 18px; border-top: 2px solid var(--primary); }
.step-label { margin: 0; color: var(--accent); font-family: var(--display); font-size: 14px; font-weight: 600; }
.steps h3 { margin: 6px 0 8px; font-size: 22px; }
.steps h3 + p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Engagement models ---------- */
.engage { padding-top: 104px; padding-bottom: 104px; }
.engage .section-title { margin-bottom: 48px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.model { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.model h3 { margin: 0; font-size: 24px; }
.model h3 + p { margin: 0; color: var(--muted); }
.price { margin: auto 0 0; padding-top: 12px; color: var(--heading); font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }
.about-photo { flex: 0 1 300px; width: 300px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.about-copy { flex: 999 1 480px; min-width: 0; }
.about-copy p:not(.eyebrow) { margin: 16px 0 0; color: var(--soft); font-size: 18px; }
.about-copy .section-title + p { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--heading); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: 104px; padding-bottom: 104px; }
.contact-info { flex: 1 1 360px; min-width: 0; }
.contact-info .section-title + p { margin: 20px 0 0; color: var(--muted); }
.contact-info .btn { margin-top: 24px; }
.info-label { margin: 28px 0 0; font-weight: 600; }
.info-label + p { margin: 4px 0 0; }
.info-label ~ .info-label { margin-top: 18px; }
.form { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
label { font-size: 15px; font-weight: 600; }
.optional { color: var(--faint); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 44px; padding: 12px; border: 1px solid var(--input-line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 180, 255, .18); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { min-height: 48px; padding: 14px 26px; }
.form-status { margin: 0; color: var(--accent); font-weight: 600; }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 20px; }

/* ---------- 404 ---------- */
.notfound { padding-top: 120px; padding-bottom: 140px; }
.notfound h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.notfound p { max-width: 560px; margin: 20px 0 0; color: var(--soft); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  /* Compact dropdown under the Menu button; the page stays visible. */
  .nav-links {
    position: fixed; top: calc(var(--header-h) + 8px); right: var(--gutter); z-index: 60;
    display: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px;
    width: min(300px, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto;
    padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
    background: var(--surface); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .3);
    font-size: 16px;
  }
  .nav-links.open { display: flex; animation: menu-in .2s ease; }
  .nav-links a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 8px; color: var(--text); }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible { background: rgba(255, 255, 255, .06); }
  .nav-links .btn { margin-top: 6px; padding: 12px 16px; }
  .hero-grid { padding-top: 56px; padding-bottom: 72px; gap: 40px; }
  .services, .engage, .contact { padding-top: 72px; }
  .engage, .contact, .band-pad { padding-bottom: 72px; }
  .band-pad { padding-top: 72px; }
  .gov { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .hero-actions .btn, .callout > .btn { width: 100%; }
  .card, .model, .form { padding: 24px; }
  .callout-sister { padding: 24px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.smooth-scroll { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Cloudflare Turnstile slot + notice (shown by site.js only when a site key is set) */
.turnstile-slot, .turnstile-note { grid-column: 1 / -1; }
.turnstile-slot { min-height: 65px; }
.turnstile-slot[hidden], .turnstile-note[hidden] { display: none; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-note a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
