/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CRYPTICTRACE — Production CSS v2
   Theme: Dark · Precise · Technical · Premium
   Improvements:
   - Removed blank space / dead areas throughout
   - Fixed "What We Do" + "What We Operate" with
     structured content and proper grid layouts
   - Added Team section styles
   - Tightened spacing system-wide
   - Improved typography hierarchy
   - Fixed responsive overflow issues
   - Added about-metrics, cert-row, section-sub
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── DESIGN TOKENS */
:root {
  /* Backgrounds */
  --bg-base:    #08080f;
  --bg-surface: #0e0e18;
  --bg-raised:  #141422;
  --bg-border:  rgba(255,255,255,0.07);

  /* Text */
  --text-primary:   #eeeef6;
  --text-secondary: #7a7a99;
  --text-muted:     #44445e;

  /* Brand accent — red from logo dot */
  --red:        #d42b2b;
  --red-light:  #f03434;
  --red-dim:    rgba(212,43,43,0.12);

  /* Utility */
  --white:  #ffffff;
  --green:  #22c55e;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --t-fast:   0.18s;
  --t-base:   0.32s;
  --t-slow:   0.56s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; border: none; background: none; }
ul { list-style: none; }

::selection { background: rgba(212,43,43,0.25); color: var(--white); }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── CUSTOM CURSOR (desktop only) */
#cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#cursor-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  transition: transform 0.15s var(--ease-out), opacity 0.2s;
}

body.cursor-active #cursor-dot { transform: scale(2.5); opacity: 0.6; }

@media (hover: none) { #cursor { display: none; } button { cursor: pointer; } }

/* ── SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: var(--red);
  width: 0%;
  z-index: 9998;
  transition: width 0.1s linear;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRELOADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#preloader {
  position: fixed; inset: 0;
  z-index: 99999;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s var(--ease-in), visibility 0.7s;
}

#preloader.out { opacity: 0; visibility: hidden; pointer-events: none; }

.pre-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  position: relative; z-index: 1;
}

.pre-logo-img { height: 52px; width: auto; }

.pre-bar-wrap {
  width: 180px; height: 1px;
  background: var(--bg-raised);
  overflow: hidden;
}

.pre-bar {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.1s linear;
}

.pre-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pre-counter {
  position: absolute;
  bottom: var(--sp-5); right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOP STRIP
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#top-strip {
  background: var(--red);
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
}

.strip-track { width: 100%; overflow: hidden; }

.strip-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.strip-item {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.strip-item::after { content: '·'; color: rgba(255,255,255,0.4); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVBAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,8,15,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bg-border);
  transition: background var(--t-base);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: 62px;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Logo: icon + wordmark */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 60px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: var(--sp-4);
  margin-left: auto;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--t-base) var(--ease-out);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: var(--sp-3); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text-primary);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
}

.hamburger.open span:first-child { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE NAV
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mob-nav {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg-base);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.mob-nav.open { transform: translateX(0); }

.mob-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 96px var(--sp-5) var(--sp-5);
}

.mob-links { display: flex; flex-direction: column; gap: var(--sp-1); }

.mob-link {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--bg-border);
  transition: color var(--t-fast);
}

.mob-link:hover { color: var(--red); }

.mob-n {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 24px;
}

.mob-footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mob-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.18); color: var(--text-primary); }

.btn-arrow { display: inline-block; transition: transform var(--t-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(2px) translateY(-2px); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION SHARED STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-5);
}

/* FIX: removed excessive top padding that caused blank spaces */
.section-header {
  margin-bottom: var(--sp-8);
}

.section-header.centered { text-align: center; }

/* Eyebrow label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.eyebrow-n { color: var(--red); }

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.title-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Section subtitle — FIX: was missing, now used in Services and Process */
.section-sub {
  margin-top: var(--sp-3);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

/* Reveal animation */
.reveal, .reveal-slow {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-slow {
  transition-delay: 0.12s;
}

.reveal.visible, .reveal-slow.visible {
  opacity: 1;
  transform: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Subtle canvas background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.35;
}

/* Faint grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-5) var(--sp-10);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  flex: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.tag-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.headline-accent {
  color: var(--red);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 420px;
  font-weight: 300;
  margin-bottom: var(--sp-5);
}

.hero-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Terminal */
.hero-terminal {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-raised);
}

.t-dots { display: flex; gap: 6px; }
.t-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-border);
}
.t-dots span:first-child { background: #ff5f57; }
.t-dots span:nth-child(2) { background: #febc2e; }
.t-dots span:last-child  { background: #28c840; }

.t-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  min-height: 180px;
}

.t-line { display: flex; align-items: flex-start; gap: 8px; }

.t-prompt { color: var(--red); flex-shrink: 0; }
.t-cmd    { color: var(--text-primary); }
.t-out    { color: var(--text-secondary); font-style: italic; }
.t-ok     { color: var(--green); }
.t-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--text-primary);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--bg-border);
}

.stat { flex: 1; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-num sup {
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  color: var(--text-secondary);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px; height: 36px;
  background: var(--bg-border);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}

@keyframes scroll-drop {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: bottom; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TRUSTED BAND
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#trusted {
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  overflow: hidden;
}

.trusted-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr;
}

.trusted-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-4);
  border-right: 1px solid var(--bg-border);
  white-space: nowrap;
}

.trusted-scroll { overflow: hidden; }

.trusted-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: var(--sp-3) 0;
  will-change: transform;
}

.trusted-item {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 var(--sp-5);
  flex-shrink: 0;
  transition: color var(--t-fast);
}

.trusted-item:hover { color: var(--text-secondary); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAPABILITIES GRID
   FIX: Proper 3-col layout, no dead space
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
}

.cap-card {
  background: var(--bg-base);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: background var(--t-fast);
}

.cap-card:hover { background: var(--bg-surface); }

.cap-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color var(--t-fast), color var(--t-fast);
  margin-bottom: var(--sp-1);
}

.cap-card:hover .cap-icon {
  border-color: var(--red-dim);
  color: var(--red);
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cap-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-1);
}

.cap-tags span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  padding: 3px 8px;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.cap-card:hover .cap-tags span {
  border-color: var(--red-dim);
  color: var(--red);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ABOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.about-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: var(--sp-4);
}

.about-body + .about-body { margin-top: var(--sp-3); }

/* About metrics — NEW */
.about-metrics {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--bg-border);
}

.am-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.am-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Audit block */
.audit-block {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.audit-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
  background: var(--bg-raised);
}

.audit-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

.audit-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.audit-lines { padding: var(--sp-2) 0; }

.audit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--sp-3);
  border-bottom: 1px solid var(--bg-border);
  transition: background var(--t-fast);
}

.audit-line:last-child { border-bottom: none; }
.audit-line:hover { background: var(--bg-raised); }

.al-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.al-status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
}

.al-status.secured {
  color: var(--green);
  border-color: rgba(34,197,94,0.2);
  background: rgba(34,197,94,0.05);
}

.al-status.accent {
  color: var(--red);
  border-color: var(--red-dim);
  background: var(--red-dim);
}

/* Certifications row — NEW */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  padding: 5px 10px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICES
   FIX: "What We Do" — replaced empty boxes with rows
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.services-list {
  border-top: 1px solid var(--bg-border);
}

.service-row {
  display: grid;
  grid-template-columns: 52px 1fr max-content 36px;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--bg-border);
  cursor: default;
  transition: background var(--t-fast);
}

.service-row:hover { background: var(--bg-surface); padding-left: var(--sp-2); }

.sv-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-left: var(--sp-2);
}

.sv-body { display: flex; flex-direction: column; gap: 8px; }

.sv-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}

.service-row:hover .sv-name { color: var(--red); }

.sv-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.sv-tag {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  padding: 3px 8px;
}

.sv-index {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sv-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform var(--t-base) var(--ease-out), color var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row:hover .sv-arrow {
  transform: translateX(3px) translateY(-3px);
  color: var(--red);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROCESS
   FIX: "How We Operate" — proper structured grid cards
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
}

.process-step {
  background: var(--bg-base);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  transition: background var(--t-fast);
}

.process-step:hover { background: var(--bg-surface); }

.ps-line {
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--red);
  transition: height 0.4s var(--ease-out);
}

.process-step:hover .ps-line { height: 100%; }

.ps-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--red);
  letter-spacing: 0.12em;
}

.ps-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ps-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TEAM — NEW SECTION
   Desktop: 4 col · Tablet: 2 col · Mobile: 1 col
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
}

.team-card {
  background: var(--bg-base);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: background var(--t-fast);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.4s var(--ease-out);
}

.team-card:hover { background: var(--bg-surface); }
.team-card:hover::before { width: 100%; }

/* Avatar placeholder */
.team-avatar {
  width: 52px; height: 52px;
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-raised);
  flex-shrink: 0;
  transition: border-color var(--t-fast), color var(--t-fast);
  margin-bottom: var(--sp-1);
}

.team-card:hover .team-avatar {
  border-color: var(--red-dim);
  color: var(--red);
}

.team-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.team-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#cta-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}

.cta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-5);
}

.cta-content { max-width: 640px; }

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: var(--sp-3) 0;
}

.cta-sub {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
}

.cta-form {
  display: flex;
  max-width: 480px;
  border: 1px solid var(--bg-border);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.cta-input {
  flex: 1;
  padding: 12px var(--sp-2);
  background: var(--bg-base);
  border: none;
  border-right: 1px solid var(--bg-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.cta-input::placeholder { color: var(--text-muted); }

.cta-note {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-10);
}

.contact-rows { display: flex; flex-direction: column; }

.contact-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--bg-border);
}

.contact-row:first-child { border-top: 1px solid var(--bg-border); }

.cr-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 2px;
}

.cr-value {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

.cr-value a { transition: color var(--t-fast); }
.cr-value a:hover { color: var(--red); }

.soc-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid rgba(34,197,94,0.2);
  background: rgba(34,197,94,0.06);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

.form-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.form-label::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.form-group { position: relative; }

.form-input {
  width: 100%;
  padding: 11px var(--sp-2);
  background: var(--bg-base);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  outline: none;
  transition: border-color var(--t-fast);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: rgba(212,43,43,0.35); }

textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--bg-border);
}

.footer-inner { max-width: 1440px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-bottom: 1px solid var(--bg-border);
}

.footer-brand {
  padding: var(--sp-8) var(--sp-5);
  border-right: 1px solid var(--bg-border);
}

/* Logo + wordmark in footer */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
}

.footer-logo { height: 28px; width: auto; }

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  max-width: 240px;
}

.footer-socials { display: flex; gap: var(--sp-1); }

.social-link {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-display);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.social-link:hover { border-color: var(--red-dim); color: var(--red); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer-col {
  padding: var(--sp-8) var(--sp-5);
  border-right: 1px solid var(--bg-border);
}

.footer-col:last-child { border-right: none; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--bg-border);
}

.footer-col nav { display: flex; flex-direction: column; gap: 10px; }

.footer-col nav a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.footer-col nav a::before {
  content: '';
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--t-base) var(--ease-out);
  flex-shrink: 0;
}

.footer-col nav a:hover { color: var(--text-primary); }
.footer-col nav a:hover::before { width: 10px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.footer-badges span {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  padding: 3px 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BACK TO TOP + TOAST
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#back-top {
  position: fixed;
  bottom: var(--sp-4); right: var(--sp-4);
  width: 38px; height: 38px;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast), color var(--t-fast);
}

#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--red); color: var(--white); border-color: var(--red); }

#toast {
  position: fixed;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-left: 2px solid var(--red);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  z-index: 8000;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base);
  white-space: nowrap;
  max-width: 92vw;
  text-align: center;
  opacity: 0;
}

#toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   Mobile-first, no overflow, proper stacking
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 1200px — Large tablet / small laptop */
@media (max-width: 1200px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 260px 1fr; }
}

/* 1024px — Tablet landscape */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding-top: var(--sp-8);
  }

  .hero-right { max-width: 560px; }

  .about-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { border-right: none; border-bottom: 1px solid var(--bg-border); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }

  .service-row { grid-template-columns: 48px 1fr auto; }
  .sv-index { display: none; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px — Tablet portrait */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section-inner { padding: var(--sp-10) var(--sp-3); }

  .hero-inner { padding: var(--sp-8) var(--sp-3) var(--sp-8); }
  .hero-sub { max-width: 100%; }

  .capabilities-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .trusted-inner { grid-template-columns: 1fr; }
  .trusted-label {
    border-right: none;
    border-bottom: 1px solid var(--bg-border);
    padding: var(--sp-2) var(--sp-3);
  }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-col:nth-child(2) { border-right: none; }
  .footer-col { padding: var(--sp-4) var(--sp-3); }
  .footer-bottom { padding: var(--sp-3); }

  .cta-form { flex-direction: column; }
  .cta-input { border-right: none; border-bottom: 1px solid var(--bg-border); }

  .form-row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .sv-arrow { display: none; }

  .about-metrics { flex-wrap: wrap; gap: var(--sp-4); }
}

/* 480px — Mobile */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .process-steps { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--sp-3); }
  .stat-divider { width: 60px; height: 1px; }

  .team-grid { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr; }
  .footer-col { border-right: none; }
  .footer-badges { display: none; }
  .pre-counter { display: none; }

  .hero-headline { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .nav-logo-text { display: none; }
}