/* ══════════════════════════════════════════════════════════════════════
   NORTHPULSE · DESIGN SYSTEM
   Single stylesheet — consolidates style.css + premium.css + nav-override.css
   Aesthetic: deep-space dark UI, hairline structure, serif display signature,
   restrained electric-blue accents. Inspired by Linear / Vercel / Stripe rigor,
   kept on NorthPulse's existing "operational signal" identity.

   ⚠️ Hooks consumed by JS are preserved verbatim:
   main.js   → #bg-canvas, #cursor, #cursor-ring, .reveal, .nav-links a
   i18n.js   → .nav-right, #nav-book-cta, .nav-links li a, #np-lang-selector,
               .np-lang-btn, #footer-copy, [data-i18n]
   cookies.js→ #cookie-banner, #cookie-modal, #cookie-icon, #ck-analytics,
               #ck-marketing
   chatbot.js→ #np-btn (Pulsie) — only cosmetic polish here
   ══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

/* ─────────────────────────────────────────────────────────────────────
   1 · TOKENS
   Legacy variable names are kept so existing pages/inline styles don't break.
   ───────────────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg: #020409;
  --navy: #06091a;
  --surface: #070b1a;
  --surface-2: #0b1326;
  --surface-glass: rgba(7, 12, 28, 0.55);
  --surface-glass-2: rgba(12, 20, 48, 0.66);

  /* Accents */
  --blue: #2563eb;
  --glow: #3b82f6;
  --light: #93c5fd;
  --violet: #8b5cf6;
  --gold: #c9a84c;

  /* Text */
  --white: #eef1fa;
  --text: #d7def0;
  --muted: #8a99bd;
  --faint: #5c6c92;

  /* Lines */
  --border: rgba(99, 150, 246, 0.11);
  --borderB: rgba(99, 150, 246, 0.28);
  --line-soft: rgba(99, 150, 246, 0.06);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --font-logo: 'Syne', var(--font-body);

  /* Fluid spacing scale */
  --pad-x: clamp(1.4rem, 5vw, 4rem);
  --sec-y: clamp(3.25rem, 7vw, 6rem);
  --sec-y-sm: clamp(2.25rem, 4.5vw, 3.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
  --t: 0.3s;
  --t-slow: 0.6s;

  /* Radius */
  --r: 4px;
  --r-lg: 8px;

  /* Layout */
  --nav-h: 64px;
  --maxw: 1280px;
}

/* ─────────────────────────────────────────────────────────────────────
   2 · RESET & BASE
   ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;                /* main.js takes over the cursor */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(37, 99, 235, 0.35); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────────
   3 · CANVAS BACKGROUND + CURSOR (main.js owns the live styling)
   ───────────────────────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.cursor { width: 4px; height: 4px; border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); }
.cursor-ring { position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); }

/* ─────────────────────────────────────────────────────────────────────
   4 · NAVIGATION (authoritative — supersedes old nav rules)
   ───────────────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--pad-x); gap: 0;
  background: rgba(2, 4, 9, 0.72);
  backdrop-filter: saturate(150%) blur(22px);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
#main-nav.scrolled {
  background: rgba(2, 4, 9, 0.92);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: clamp(1rem, 3vw, 2.5rem);
  flex-shrink: 0;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 6px; }
.nav-logo-text {
  font-family: var(--font-logo);
  font-weight: 800; font-size: 15px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white);
  transition: color var(--t-fast);
}
.nav-logo:hover .nav-logo-text { color: var(--light); }

.nav-links {
  display: flex; gap: 0; list-style: none;
  flex: 1; justify-content: center;
}
.nav-links a {
  position: relative;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0 1.1rem; height: var(--nav-h);
  display: flex; align-items: center;
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: ''; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 18px;
  height: 1px; background: var(--light);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }

.nav-right { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; }

/* Language selector (built by i18n.js) */
#np-lang-selector {
  display: flex; align-items: center; height: var(--nav-h);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.np-lang-btn {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0 13px; height: var(--nav-h);
  border: none; border-right: 1px solid var(--line-soft);
  background: transparent; color: var(--faint);
  cursor: pointer; transition: color var(--t-fast), background var(--t-fast);
}
.np-lang-btn:last-child { border-right: none; }
.np-lang-btn:hover { color: var(--light); background: rgba(37, 99, 235, 0.08); }
.np-lang-btn.active { color: var(--white); background: rgba(37, 99, 235, 0.16); }

/* Book a call */
.nav-cta {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0 1.4rem; height: var(--nav-h);
  border: none; border-left: 1px solid var(--borderB);
  background: rgba(37, 99, 235, 0.12); color: var(--light);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-cta:hover { background: var(--blue); color: #fff; }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px; margin-left: 0.4rem;
}
.nav-mobile-toggle span {
  width: 20px; height: 1.5px; background: var(--white);
  display: block; transition: transform var(--t), opacity var(--t);
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────────────
   5 · LAYOUT PRIMITIVES
   ───────────────────────────────────────────────────────────────────── */
.page-content { position: relative; z-index: 1; }
.np-space-hero-shell {
  position: relative; z-index: 1;
  background: #000008;
  border-bottom: 1px solid var(--border);
}
#np-space-hero-host { display: block; width: 100%; }
.page-content > section:first-child { border-top: 0; }

.section, .sec { padding: var(--sec-y) var(--pad-x); border-top: 1px solid var(--border); position: relative; }
.sec-sm { padding: var(--sec-y-sm) var(--pad-x); border-top: 1px solid var(--border); }
.section-hero { padding: clamp(3rem, 6vw, 5rem) var(--pad-x) var(--sec-y); }
.wrap { max-width: var(--maxw); margin-inline: auto; }
.measure { max-width: 620px; }
.measure-sm { max-width: 480px; }

.intro { max-width: 600px; margin-bottom: clamp(2.4rem, 5vw, 3.5rem); }
.intro-center { text-align: center; margin-inline: auto; }
.intro-center .slbl { justify-content: center; }

.home-hero {
  min-height: clamp(520px, 82vh, 840px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x); position: relative; overflow: hidden;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Spacing utilities */
.mt-2 { margin-top: clamp(2rem, 4vw, 2.75rem); }
.mt-3 { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--borderB), transparent); }

/* ─────────────────────────────────────────────────────────────────────
   6 · TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────── */
.slbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--light); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 12px;
}
.slbl::before { content: ''; width: 20px; height: 1px; background: var(--light); flex-shrink: 0; }

.sh1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(48px, 8vw, 104px); line-height: 0.94; letter-spacing: -2px; margin-bottom: 1.5rem; color: var(--white); }
.sh2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -1.2px; margin-bottom: 1.25rem; color: var(--white); }
.sh3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 0.7rem; color: var(--white); }
.sh1 em, .sh2 em, .sh3 em { font-style: italic; color: var(--light); }

.body-text { font-size: clamp(15px, 1.1vw, 17px); color: var(--text); line-height: 1.75; opacity: 0.82; }
.body-sm { font-size: 14px; color: var(--text); line-height: 1.7; opacity: 0.74; }

.eyebrow {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
}

/* ─────────────────────────────────────────────────────────────────────
   7 · BUTTONS
   ───────────────────────────────────────────────────────────────────── */
.btn-p, .btn-g {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 15px 32px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn-p {
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  box-shadow: 0 0 0 rgba(37, 99, 235, 0);
}
.btn-p:hover {
  background: var(--glow); border-color: var(--glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.32);
}
.btn-g {
  background: transparent; color: var(--white);
  border: 1px solid var(--borderB); opacity: 0.92;
}
.btn-g:hover { border-color: var(--light); background: rgba(37, 99, 235, 0.06); opacity: 1; transform: translateY(-2px); }

/* ─────────────────────────────────────────────────────────────────────
   8 · HERO ACCENTS (text hero below the space scene)
   ───────────────────────────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--light);
  border: 1px solid var(--borderB); padding: 7px 15px;
  margin-bottom: 2rem; background: rgba(37, 99, 235, 0.06);
  border-radius: 999px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); animation: blink-dot 2.4s infinite; }
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.pulse-scan { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glow), transparent); animation: scan 3.5s linear infinite; opacity: 0.3; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.hero-pulse-wrap { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; overflow: hidden; pointer-events: none; }
.hero-pulse-wrap svg { width: 100%; height: 100%; }
@keyframes pglow { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; filter: drop-shadow(0 0 6px var(--glow)); } }

/* ─────────────────────────────────────────────────────────────────────
   9 · PROOF BAR
   ───────────────────────────────────────────────────────────────────── */
.proof-bar {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2rem) var(--pad-x);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: rgba(6, 10, 28, 0.4);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.proof-item { text-align: center; }
.proof-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4vw, 46px); letter-spacing: -2px;
  line-height: 1; display: block;
  background: linear-gradient(135deg, #ffffff, var(--light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(147, 197, 253, 0.3));
}
.proof-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-top: 6px; display: block; }
.proof-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────
   10 · SERVICE CARDS (glass + aurora hover)
   ───────────────────────────────────────────────────────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.svc-card {
  position: relative; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
  padding: clamp(1.8rem, 3vw, 2.75rem);
  background: var(--surface-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background var(--t), transform var(--t) var(--ease), box-shadow var(--t);
}
.svc-card:hover {
  background: var(--surface-glass-2);
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(37, 99, 235, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0; transition: opacity var(--t);
}
.svc-card:hover::before { opacity: 1; }
/* Aurora border on hover */
.svc-card::after {
  content: ''; position: absolute; inset: -1px; padding: 1px; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(59,130,246,0.32) 50%, rgba(139,92,246,0.22) 65%, transparent 80%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t);
  animation: aurora 5s ease infinite; pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }
@keyframes aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.svc-card-num { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; color: var(--faint); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px; }
.svc-card-num::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.svc-card-icon {
  width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem; color: var(--glow);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.svc-card:hover .svc-card-icon { border-color: var(--borderB); background: rgba(37, 99, 235, 0.08); transform: translateY(-2px); }
.svc-card-title { font-family: var(--font-display); font-weight: 600; font-size: 25px; margin-bottom: 0.7rem; color: var(--white); letter-spacing: -0.3px; }
.svc-card-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 1.3rem; }
.svc-card-link { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--light); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.svc-card-link::after { content: '→'; transition: transform var(--t-fast); }
.svc-card:hover .svc-card-link::after { transform: translateX(5px); }

/* ─────────────────────────────────────────────────────────────────────
   11 · PROCESS GRID
   ───────────────────────────────────────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border: 1px solid var(--border); background: var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}
.process-step {
  position: relative; padding: clamp(1.6rem, 2.5vw, 2.5rem) clamp(1.4rem, 2vw, 2rem);
  background: rgba(6, 10, 28, 0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background var(--t);
}
.process-step:hover { background: rgba(12, 20, 48, 0.66); }
.process-step::after {
  content: ''; position: absolute; top: 50%; right: -5px; width: 8px; height: 8px;
  border-top: 1px solid var(--borderB); border-right: 1px solid var(--borderB);
  transform: translateY(-50%) rotate(45deg); background: var(--bg); z-index: 2;
}
.process-step:last-child::after { display: none; }
.step-n { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--glow); margin-bottom: 1rem; }
.step-t { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-bottom: 0.6rem; color: var(--white); }
.step-d { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─────────────────────────────────────────────────────────────────────
   12 · CREDIBILITY (replaces invented testimonial)
   Metrics row + guarantee/promise card.
   ───────────────────────────────────────────────────────────────────── */
.metric-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); background: var(--border); gap: 1px;
}
.metric { background: var(--surface-glass); padding: clamp(1.6rem, 2.6vw, 2.4rem); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background var(--t); }
.metric:hover { background: var(--surface-glass-2); }
.metric-num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.5vw, 56px);
  letter-spacing: -2px; line-height: 1; display: block; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, var(--light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(147, 197, 253, 0.28));
}
.metric-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

.guarantee {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--surface-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
}
.guarantee::before {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 68%);
  top: -120px; right: -120px; pointer-events: none;
}
.guarantee-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--light); border: 1px solid var(--borderB); border-radius: 999px;
  padding: 6px 13px; margin-bottom: 1.4rem; background: rgba(37, 99, 235, 0.07);
}
.guarantee-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.guarantee-list li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.6; }
.guarantee-list .gl-ico {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--borderB); display: flex; align-items: center; justify-content: center;
  color: var(--glow); margin-top: 1px;
}
.guarantee-list strong { display: block; color: var(--white); font-weight: 500; margin-bottom: 3px; }
.guarantee-list .gl-desc { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────────────
   13 · CTA BLOCK
   ───────────────────────────────────────────────────────────────────── */
.cta-block { text-align: center; padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-block::before {
  content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────────────
   14 · TAGS · FAQ
   ───────────────────────────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); text-transform: uppercase; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 21px); color: var(--white);
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--light); }
.faq-q svg { width: 16px; height: 16px; stroke: var(--muted); flex-shrink: 0; transition: transform var(--t); }
.faq-q.open svg { transform: rotate(45deg); stroke: var(--light); }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease), padding var(--t); }
.faq-a.open { max-height: 480px; padding-bottom: 1.3rem; }

/* ─────────────────────────────────────────────────────────────────────
   15 · SERVICE / INNER PAGE LAYOUT
   ───────────────────────────────────────────────────────────────────── */
.svc-hero { padding: clamp(3rem, 6vw, 5rem) var(--pad-x) var(--sec-y); border-bottom: 1px solid var(--border); }
.svc-hero-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--light); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
.svc-hero-tag::before { content: ''; width: 20px; height: 1px; background: var(--light); }

.breadcrumb { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--faint); text-transform: uppercase; margin-bottom: 2rem; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--faint); text-decoration: none; transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--light); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.two-col-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }

.deliverable-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.deliverable-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 14px; color: var(--text); opacity: 0.85; line-height: 1.6; }
.deliverable-list li::before { content: '✓'; color: var(--glow); font-family: var(--font-mono); font-size: 12px; flex-shrink: 0; margin-top: 3px; }

.timeline-list { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: clamp(1rem, 2.5vw, 2rem); padding: 1.8rem 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-time { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--glow); text-transform: uppercase; padding-top: 4px; }
.tl-content h3, .tl-content h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 0.5rem; color: var(--white); }
.tl-meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--glow); margin-top: 0.9rem; display: block; }
.tl-content p { font-size: 13px; color: var(--muted); line-height: 1.7; }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.industry-item { background: var(--surface-glass); padding: 1.6rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background var(--t); }
.industry-item:hover { background: var(--surface-glass-2); }
.industry-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 0.4rem; color: var(--white); }
.industry-item p { font-size: 12px; color: var(--muted); line-height: 1.6; }

.inline-cta-form { display: flex; gap: 0; border: 1px solid var(--borderB); border-radius: var(--r); overflow: hidden; max-width: 460px; }
.inline-cta-form input { flex: 1; padding: 14px 18px; background: rgba(6, 8, 24, 0.8); border: none; color: var(--white); font-family: var(--font-body); font-size: 13px; outline: none; }
.inline-cta-form input::placeholder { color: var(--muted); }
.inline-cta-form button { padding: 14px 22px; background: var(--blue); color: #fff; border: none; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background var(--t-fast); }
.inline-cta-form button:hover { background: var(--glow); }

/* ─────────────────────────────────────────────────────────────────────
   16 · LEGACY CARDS · STATS · TESTIMONIAL (kept for pages not yet rebuilt)
   ───────────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface-glass); padding: clamp(1.8rem, 3vw, 3rem); position: relative; overflow: hidden; transition: background var(--t); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card:hover { background: var(--surface-glass-2); }
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glow), transparent); opacity: 0; transition: opacity var(--t); }
.card:hover::after { opacity: 1; }
.card-num { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; color: var(--faint); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 8px; }
.card-num::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: clamp(2rem, 3vw, 2.5rem) var(--pad-x); border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 5vw, 58px); letter-spacing: -2px; background: linear-gradient(135deg, var(--white), var(--light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; display: block; margin-bottom: 8px; }
.stat-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.5px; color: var(--white); text-transform: uppercase; opacity: 0.7; }

.testi-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); position: relative; max-width: 760px; margin: 3rem auto 0; background: var(--surface-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.testi-quote { font-family: var(--font-display); font-size: 80px; line-height: 0.8; color: var(--borderB); position: absolute; top: -6px; left: 2.2rem; }
.testi-text { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(19px, 2vw, 22px); line-height: 1.6; color: var(--white); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testi-author { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.testi-author span { color: var(--light); }

/* ─────────────────────────────────────────────────────────────────────
   17 · CONTACT FORM
   ───────────────────────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 580px; }
.contact-form label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; display: block; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 15px 18px; border-radius: var(--r);
  background: rgba(6, 10, 30, 0.6); border: 1px solid var(--border);
  color: var(--white); font-family: var(--font-body); font-size: 14px; outline: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--light); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: rgba(8, 12, 34, 0.75);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 12px; color: var(--faint); line-height: 1.6; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form-panel { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: clamp(1.5rem, 3vw, 2.4rem); }
.contact-form .field { display: flex; flex-direction: column; }
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a99bd' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.contact-aside { display: flex; flex-direction: column; gap: clamp(1.75rem, 4vw, 2.5rem); }
.contact-card { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem 1.4rem; transition: border-color var(--t-fast), background var(--t-fast); }
.contact-card + .contact-card { margin-top: 0.8rem; }
.contact-card:hover { border-color: var(--borderB); background: rgba(37, 99, 235, 0.06); }
.contact-card .cc-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.contact-card .cc-value { font-family: var(--font-display); font-size: 22px; color: var(--light); display: block; margin-bottom: 0.2rem; }
.contact-card .cc-sub { font-size: 13px; color: var(--muted); display: block; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 0.9rem; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 0.9rem; align-items: start; }
.steps li .n { font-family: var(--font-mono); font-size: 9px; color: var(--glow); padding-top: 3px; }
.steps li p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────────────
   18 · FOOTER
   ───────────────────────────────────────────────────────────────────── */
footer { position: relative; z-index: 1; padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x); border-top: 1px solid var(--border); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); background: rgba(3, 5, 12, 0.6); }
.footer-brand img { width: 44px; height: 44px; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--font-logo); font-weight: 800; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); margin-bottom: 0.5rem; }
.footer-tagline { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; line-height: 1.7; max-width: 240px; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.footer-social a:hover { color: var(--light); border-color: var(--borderB); background: rgba(37, 99, 235, 0.08); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; color: var(--light); text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text); opacity: 0.6; text-decoration: none; margin-bottom: 0.65rem; transition: opacity var(--t-fast), color var(--t-fast); font-family: var(--font-body); }
.footer-col a:hover { opacity: 1; color: var(--light); }

.footer-bottom { position: relative; z-index: 1; padding: 1.2rem var(--pad-x); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: rgba(3, 5, 12, 0.6); }
.footer-copy { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--faint); text-transform: uppercase; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--faint); text-decoration: none; text-transform: uppercase; transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--white); }

/* ─────────────────────────────────────────────────────────────────────
   19 · COOKIES
   ───────────────────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.2rem var(--pad-x);
  background: rgba(5, 7, 18, 0.96); border-top: 1px solid var(--borderB);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
#cookie-banner p { font-size: 13px; color: var(--text); opacity: 0.85; line-height: 1.6; max-width: 700px; }
#cookie-banner a { color: var(--light); }
.cookie-btns { display: flex; gap: 0.7rem; flex-shrink: 0; flex-wrap: wrap; }
.cbtn { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 18px; border: none; cursor: pointer; border-radius: var(--r); transition: background var(--t-fast), border-color var(--t-fast); white-space: nowrap; }
.cbtn-accept { background: var(--blue); color: #fff; }
.cbtn-accept:hover { background: var(--glow); }
.cbtn-reject { background: transparent; color: var(--white); border: 1px solid var(--border); }
.cbtn-reject:hover { border-color: var(--borderB); }
.cbtn-config { background: transparent; color: var(--light); border: 1px solid var(--borderB); }
.cbtn-config:hover { background: rgba(37, 99, 235, 0.15); }

#cookie-modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 9001; width: 90%; max-width: 480px; padding: 2.5rem; border-radius: var(--r-lg);
  background: rgba(5, 8, 22, 0.92); border: 1px solid var(--borderB);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
#cookie-modal h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 1.5rem; color: var(--white); }
#cookie-modal label { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; font-size: 14px; color: var(--text); opacity: 0.85; cursor: pointer; }
#cookie-modal input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; }
#cookie-modal .modal-btns { display: flex; gap: 0.8rem; margin-top: 1.5rem; }

#cookie-icon {
  display: none; position: fixed; bottom: 1.2rem; right: 1.8rem; z-index: 8980;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(7, 10, 26, 0.9); border: 1px solid var(--borderB);
  align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
#cookie-icon:hover { background: rgba(37, 99, 235, 0.2); }
#cookie-icon svg { width: 16px; height: 16px; stroke: var(--light); fill: none; }

/* ─────────────────────────────────────────────────────────────────────
   20 · SCROLL REVEAL & FADE
   ───────────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade1 { opacity: 0; animation: fadeUp 0.9s 0.15s var(--ease) forwards; }
.fade2 { opacity: 0; animation: fadeUp 0.9s 0.32s var(--ease) forwards; }
.fade3 { opacity: 0; animation: fadeUp 0.9s 0.5s var(--ease) forwards; }
.fade4 { opacity: 0; animation: fadeUp 0.9s 0.68s var(--ease) forwards; }

/* ─────────────────────────────────────────────────────────────────────
   21 · PULSIE BUTTON POLISH (chatbot.js owns the markup/behaviour)
   ───────────────────────────────────────────────────────────────────── */
#np-btn { image-rendering: -webkit-optimize-contrast; }
#np-btn img { image-rendering: crisp-edges; }

/* ─────────────────────────────────────────────────────────────────────
   22 · RESPONSIVE
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; justify-content: flex-start; gap: 0;
    padding: 0.5rem 0; z-index: 99;
    background: rgba(2, 4, 9, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { height: 52px; padding: 0 var(--pad-x); border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-mobile-toggle { display: flex; }
}

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .guarantee { grid-template-columns: 1fr; }
  .two-col, .two-col-3-2 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .proof-divider { display: none; }
  .proof-item { flex: 1 0 40%; }
  .process-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .tl-item { grid-template-columns: 84px 1fr; }
  #cookie-banner { flex-direction: column; align-items: stretch; padding: 1.2rem var(--pad-x); }
  .cookie-btns { justify-content: stretch; }
  .cookie-btns .cbtn { flex: 1; text-align: center; }
  .inline-cta-form { flex-direction: column; }
  .inline-cta-form button { width: 100%; }
  .nav-cta { padding: 0 0.9rem; letter-spacing: 1.5px; }
  .np-lang-btn { padding: 0 10px; }
}

@media (max-width: 420px) {
  .nav-logo-text { display: none; }
}

/* Touch devices: drop hover-lift jitter, keep things calm */
@media (hover: none) {
  .svc-card:hover, .btn-p:hover, .btn-g:hover, .metric:hover, .card:hover { transform: none; }
}

/* Accessibility: honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   NORTHPULSE · V2 LAYER
   Premium SaaS evolution — more air, subtle glass, refined hierarchy.
   Appended after the base system so every legacy hook keeps working.
   New JS hooks: #nav-login (Client Login), portal (js/portal.js → .pt-*).
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* V2: more breathing room across the whole site */
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);
  --sec-y-sm: clamp(3rem, 6vw, 5rem);
  --r-xl: 14px;
}

/* ── Nav · Client Login (ghost) ───────────────────────────────────── */
.nav-login {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  height: 34px; display: inline-flex; align-items: center;
  padding: 0 14px; margin-right: 10px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(7, 12, 28, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-login:hover { color: var(--white); border-color: var(--borderB); background: rgba(37, 99, 235, 0.10); }
@media (max-width: 700px) { .nav-login { display: none; } .nav-links.open + .nav-right .nav-login { display: inline-flex; } }

/* ── Trusted by · sector marquee ──────────────────────────────────── */
.trusted { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trusted .slbl { text-align: center; justify-content: center; display: flex; margin-bottom: 1.8rem; }
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: np-marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--faint); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.8rem;
  transition: color var(--t);
}
.marquee-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgba(59,130,246,0.4); }
.marquee-item:hover { color: var(--light); }
@keyframes np-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ── Capabilities grid (11 disciplines) ───────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; margin-top: 2.5rem; }
.cap-card {
  background: var(--bg); padding: 1.6rem 1.5rem 1.7rem;
  position: relative; text-decoration: none; display: block;
  transition: background var(--t) var(--ease);
}
.cap-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 180px at var(--mx, 50%) 0%, rgba(37,99,235,0.10), transparent 65%);
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.cap-card:hover { background: var(--surface); }
.cap-card:hover::before { opacity: 1; }
.cap-ico { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--r); display: grid; place-items: center; color: var(--light); margin-bottom: 0.95rem; transition: border-color var(--t), transform var(--t) var(--ease); }
.cap-card:hover .cap-ico { border-color: var(--borderB); transform: translateY(-2px); }
.cap-t { font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--white); margin-bottom: 0.35rem; letter-spacing: 0.2px; }
.cap-d { font-size: 12.8px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1080px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cap-grid { grid-template-columns: 1fr; } }

/* ── Benefits · quiet glass bento ─────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.bento-card {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(12,20,48,0.30), rgba(7,12,28,0.16));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 1.9rem 1.6rem;
  transition: border-color var(--t), transform var(--t) var(--ease);
}
.bento-card:hover { border-color: var(--borderB); transform: translateY(-3px); }
.bento-num { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--light); line-height: 1; margin-bottom: 1.1rem; }
.bento-t { font-weight: 500; font-size: 15.5px; color: var(--white); margin-bottom: 0.45rem; }
.bento-d { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } }

/* ── Technologies strip ───────────────────────────────────────────── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.tech-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.6px;
  color: var(--muted); text-transform: uppercase;
  padding: 0.65rem 1.05rem; border: 1px solid var(--border); border-radius: 99px;
  background: rgba(7,12,28,0.35);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.tech-chip:hover { color: var(--light); border-color: var(--borderB); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════
   CLIENT PORTAL (pages/portal.html · js/portal.js)
   ══════════════════════════════════════════════════════════════════ */
.pt-wrap { min-height: calc(100vh - var(--nav-h)); padding: calc(var(--nav-h) + 2.5rem) var(--pad-x) 4rem; position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }

/* Login */
.pt-login { max-width: 420px; margin: clamp(2rem, 8vh, 6rem) auto 0; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2.6rem 2.3rem; background: linear-gradient(180deg, rgba(12,20,48,0.42), rgba(7,12,28,0.25)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pt-login h1 { font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--white); margin-bottom: 0.4rem; }
.pt-login .pt-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 1.8rem; line-height: 1.6; }
.pt-field { margin-bottom: 1.1rem; }
.pt-field label { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 0.45rem; }
.pt-field input, .pt-field select, .pt-field textarea {
  width: 100%; background: rgba(2,4,9,0.55); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-family: var(--font-body);
  font-size: 14px; padding: 0.78rem 0.9rem; outline: none;
  transition: border-color var(--t-fast);
}
.pt-field textarea { min-height: 96px; resize: vertical; }
.pt-field input:focus, .pt-field select:focus, .pt-field textarea:focus { border-color: var(--borderB); }
.pt-hint { font-size: 11.5px; color: var(--faint); margin-top: 1.1rem; line-height: 1.55; }

/* App shell */
.pt-app { display: none; grid-template-columns: 228px 1fr; gap: 1.6rem; align-items: start; }
.pt-app.on { display: grid; }
.pt-side { position: sticky; top: calc(var(--nav-h) + 1.5rem); border: 1px solid var(--border); border-radius: var(--r-xl); background: rgba(7,12,28,0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 0.8rem; }
.pt-side button {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  background: none; border: none; text-align: left; cursor: pointer;
  color: var(--muted); font-family: var(--font-body); font-size: 13.5px; font-weight: 400;
  padding: 0.62rem 0.8rem; border-radius: var(--r);
  transition: color var(--t-fast), background var(--t-fast);
}
.pt-side button:hover { color: var(--white); background: rgba(37,99,235,0.08); }
.pt-side button.on { color: var(--white); background: rgba(37,99,235,0.16); }
.pt-side .pt-sep { height: 1px; background: var(--line-soft); margin: 0.55rem 0.4rem; }
.pt-main { min-width: 0; }
.pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.pt-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); color: var(--white); }

/* KPI cards */
.pt-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.pt-kpi { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem 1.2rem; background: rgba(7,12,28,0.40); }
.pt-kpi .n { font-family: var(--font-display); font-size: 32px; color: var(--white); line-height: 1.05; }
.pt-kpi .l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); margin-top: 0.45rem; display: block; }

/* Panels / tables / lists */
.pt-panel { border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(7,12,28,0.35); padding: 1.4rem 1.4rem; margin-bottom: 1.2rem; }
.pt-panel h3 { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 0.9rem; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pt-table th { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); font-weight: 400; }
.pt-table td { padding: 0.75rem 0.7rem; border-bottom: 1px solid var(--line-soft); color: var(--text); vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: none; }
.pt-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.pt-badge.ok   { color: #86efac; border-color: rgba(134,239,172,0.35); background: rgba(34,197,94,0.08); }
.pt-badge.warn { color: #fcd34d; border-color: rgba(252,211,77,0.35); background: rgba(234,179,8,0.08); }
.pt-badge.bad  { color: #fca5a5; border-color: rgba(252,165,165,0.35); background: rgba(220,80,80,0.08); }
.pt-badge.info { color: var(--light); border-color: var(--borderB); background: rgba(37,99,235,0.10); }

.pt-btn { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--white); background: linear-gradient(135deg, var(--blue), #1e40af); border: none; border-radius: var(--r); padding: 0.62rem 1.05rem; cursor: pointer; transition: filter var(--t-fast), transform var(--t-fast) var(--ease); }
.pt-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.pt-btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.pt-btn.ghost:hover { color: var(--white); border-color: var(--borderB); }
.pt-btn.sm { padding: 0.4rem 0.7rem; font-size: 9px; }
.pt-btn.danger { background: transparent; border: 1px solid rgba(252,165,165,0.35); color: #fca5a5; }

.pt-list { display: grid; gap: 0.9rem; }
.pt-item { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; background: rgba(7,12,28,0.32); display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; transition: border-color var(--t); }
.pt-item:hover { border-color: var(--borderB); }
.pt-item .t { font-weight: 500; font-size: 14.5px; color: var(--white); }
.pt-item .d { font-size: 12.5px; color: var(--muted); margin-top: 0.2rem; line-height: 1.5; }

/* Messages */
.pt-thread { display: flex; flex-direction: column; gap: 0.7rem; max-height: 420px; overflow-y: auto; padding: 0.3rem 0.1rem 0.8rem; }
.pt-msg { max-width: 78%; padding: 0.7rem 0.95rem; border-radius: var(--r-lg); font-size: 13.5px; line-height: 1.55; }
.pt-msg.me { align-self: flex-end; background: rgba(37,99,235,0.22); border: 1px solid var(--borderB); color: var(--white); }
.pt-msg.team { align-self: flex-start; background: rgba(7,12,28,0.55); border: 1px solid var(--border); color: var(--text); }
.pt-msg .who { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.pt-compose { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.pt-compose input { flex: 1; }

/* Timeline */
.pt-tl { position: relative; padding-left: 1.4rem; }
.pt-tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, var(--borderB), transparent); }
.pt-tl .tli { position: relative; padding: 0 0 1.4rem 0.8rem; }
.pt-tl .tli::before { content: ''; position: absolute; left: -1.4rem; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--glow); }
.pt-tl .when { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); }
.pt-tl .what { font-size: 14px; color: var(--white); font-weight: 500; margin-top: 0.2rem; }
.pt-tl .sub { font-size: 12.5px; color: var(--muted); margin-top: 0.15rem; }

.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) {
  .pt-app.on { grid-template-columns: 1fr; }
  .pt-side { position: static; display: flex; flex-wrap: wrap; gap: 0.2rem; }
  .pt-side button { width: auto; }
  .pt-side .pt-sep { display: none; }
  .pt-kpis { grid-template-columns: 1fr 1fr; }
  .pt-grid2 { grid-template-columns: 1fr; }
}
