/* =====================================================================
   GOOD HUNTER — MASTER STYLESHEET
   =====================================================================
   This file is organized top to bottom in the order things appear on
   a page: Design tokens -> Reset -> Typography -> Layout utilities ->
   Header/Nav -> Buttons -> Hero -> Sections -> Cards -> Footer ->
   Animations -> Responsive breakpoints.

   HOW TO FIND WHAT YOU NEED:
   Every major block below has a big comment banner like this one.
   See EDITING-GUIDE.md in the project root for a plain-English map
   of exactly what to change and where.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS (COLORS, FONTS, SPACING)
   ---------------------------------------------------------------------
   [EDIT ZONE] This is the single most important block in the whole
   site. Change a value here and it updates everywhere automatically.
   --------------------------------------------------------------------- */
:root {
  /* Brand colors — sampled directly from your logo file */
  --color-brand: #0d47a1;          /* Primary brand blue (from logo icon) */
  --color-brand-dark: #082a63;     /* Deep navy for dark sections/footer */
  --color-brand-light: #3b7ddd;    /* Lighter blue for hover/accents */
  --color-accent: #00c2a8;         /* Secondary accent (teal) for highlights/CTAs — change to taste */
  --color-cursor: #8fb4ff;         /* Soft periwinkle blue for the custom cursor + hero graphic — change to taste */

  --color-ink: #0b0f19;            /* Near-black text */
  --color-ink-soft: #4a5568;       /* Secondary/muted text */
  --color-paper: #ffffff;          /* Page background */
  --color-paper-soft: #f5f7fb;     /* Alternate section background */
  --color-line: #e5e9f2;           /* Hairline borders/dividers */

  /* Typography — swap Google Fonts links in <head> if you change these */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; /* Section headings */
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;            /* Body copy */
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;                /* Page-hero headlines, eyebrows, breadcrumbs, tags — the "terminal" accent type, used in BOTH light and dark modes */

  --fs-hero: clamp(2.6rem, 6vw, 5.6rem);
  --fs-h1: clamp(2.2rem, 4.4vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --header-h: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1s;
}

/* ---------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.text-muted { color: var(--color-ink-soft); }
.text-invert { color: #fff; }
.text-invert-soft { color: rgba(255,255,255,0.72); }

/* ---------------------------------------------------------------------
   4. LAYOUT UTILITIES
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-dark { background: var(--color-brand-dark); color: #fff; }
.section-soft { background: var(--color-paper-soft); }
/* h1-h3 set an explicit ink color globally, which otherwise wins over the
   inherited white text on any dark section -- force white here so headings
   stay readable on the blue background. */
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.75rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--color-ink-soft); }
.section-dark .section-head p { color: rgba(255,255,255,0.72); }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

/* ---------------------------------------------------------------------
   5. HEADER / NAVIGATION
   ---------------------------------------------------------------------
   [EDIT ZONE] Structure lives in each page's <header>. This is styling
   only — see EDITING-GUIDE.md for how to add/remove menu items.
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  background: rgba(255,255,255,0.92);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand-logo img { height: 34px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 2.25rem; }
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding-block: 0.35rem;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0%;
  background: var(--color-brand);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after { width: 100%; }
.nav-menu a.is-active { color: var(--color-brand); }

.nav-cta { display: flex; align-items: center; gap: 1.5rem; }

/* Shown only inside the open mobile menu (see §13 responsive), hidden on desktop
   since the desktop nav-cta button already covers this. Uses a descendant
   selector (higher specificity than .btn) so it reliably wins regardless of
   CSS source order. */
.nav-menu .nav-menu-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 6px;
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--color-ink);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(13,71,161,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(13,71,161,0.6); }

.btn-accent {
  background: var(--color-accent);
  color: #06231f;
}
.btn-accent:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-line);
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-brand); color: var(--color-brand); }

.btn-ghost-invert {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-ghost-invert:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.85rem; }
.btn-icon { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-icon { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--color-brand-dark);
  color: #fff;
}

/* Animated gradient-mesh background — this is the "motion graphic".
   [EDIT ZONE] Swap this whole element for a <video> or Lottie animation;
   see EDITING-GUIDE.md "Hero background / motion graphics" section. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 15% 20%, rgba(59,125,221,0.55), transparent 60%),
    radial-gradient(50% 50% at 85% 15%, rgba(0,194,168,0.35), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(13,71,161,0.9), transparent 70%),
    linear-gradient(180deg, #081c3a 0%, #082a63 60%, #06152e 100%);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 60% at 50% 40%, black, transparent);
}
@keyframes heroDrift {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.08) translate(-1.5%, 1.5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}
.hero-text { min-width: 0; }
.hero-eyebrow {
  color: var(--color-accent);
}
.hero-eyebrow::before { background: var(--color-accent); }
.hero h1 { color: #fff; margin-top: 1.25rem; max-width: 18ch; font-size: var(--fs-hero); }
.hero p.lede {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #fff;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }
/* stat-num/stat-label default to white for the dark hero strip; this
   modifier is for stat groups placed on a light section background. */
.stat-group-light .stat-label { color: var(--color-ink-soft); }
.stat-group-light .stat-num { color: var(--color-brand); }

/* ---------------------------------------------------------------------
   Animated hero graphic
   ---------------------------------------------------------------------
   [EDIT ZONE] Desktop-only decorative visual next to the hero text —
   your logo icon at the center, with pulsing rings and a small network
   of orbiting nodes around it. All motion is CSS keyframes (no video,
   no JS animation loop), so it's cheap on any connection. Hidden below
   1080px — see the responsive section for that breakpoint.
   --------------------------------------------------------------------- */
.hero-visual { display: none; }
.hero-visual-svg { width: 100%; height: auto; overflow: visible; }

.hv-ring { fill: none; stroke: rgba(255,255,255,0.16); }
.hv-ring-outer {
  stroke-dasharray: 2 10;
  transform-origin: 220px 220px;
  animation: hvSpin 50s linear infinite;
}
.hv-ring-mid {
  stroke: var(--color-cursor);
  stroke-opacity: 0.22;
  transform-origin: 220px 220px;
  animation: hvPulseRing 5s ease-in-out infinite;
}
.hv-glow {
  fill: url(#hv-glow-gradient);
  transform-origin: 220px 220px;
  animation: hvPulseRing 5s ease-in-out infinite reverse;
}
.hv-line { stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.hv-node {
  fill: var(--color-cursor);
  filter: drop-shadow(0 0 4px rgba(143,180,255,0.8));
  animation: hvTwinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.hv-icon {
  transform-origin: 220px 220px;
  animation: hvFloat 6s ease-in-out infinite;
}

@keyframes hvSpin {
  to { transform: rotate(360deg); }
}
@keyframes hvPulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.7; }
}
@keyframes hvTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes hvFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,0.4); overflow: hidden; }
.scroll-cue .line::after {
  content: "";
  display: block;
  width: 100%; height: 40%;
  background: #fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------------------------------------------------------------------
   SERVICE VISUALS — reusable animated CSS/SVG graphics
   ---------------------------------------------------------------------
   [EDIT ZONE: MOTION GRAPHIC] These replace stock photography in the
   "image placeholder" slots on services.html/industries pages, each
   services/*.html and industries/*.html page, plus the team/office
   photo slots on about.html.

   Every icon glyph (.svi-icon) is real, MIT-licensed artwork from
   Tabler Icons (https://tabler.io/icons, github.com/tabler/tabler-icons)
   — not hand-drawn — so it's guaranteed correctly proportioned and
   centered. Only the surrounding ring/glow frame and the CSS motion are
   custom. To swap a graphic for a real photo instead: delete the inner
   <svg>...</svg> and drop an <img> in its place; the outer .sv wrapper
   can stay (it just frames/sizes things) or be removed.
   --------------------------------------------------------------------- */
.sv {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .card.sv (two classes) beats the plain .card background rule defined
   later in the file regardless of source order. */
.card.sv { background: linear-gradient(160deg, var(--color-brand-dark), var(--color-brand) 130%); }
.sv-svg { width: 78%; max-width: 320px; height: auto; overflow: visible; }

/* The decorative ring + glow disc sit behind every icon, centered on the
   200x200 viewBox (cx/cy 100,100) — purely decorative, so being abstract
   rather than photorealistic is fine; the icon on top is the real artwork. */
.svi-glow { fill: rgba(255,255,255,0.09); }
.svi-ring {
  fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 1.5; stroke-dasharray: 2 10;
  transform-origin: 100px 100px; animation: hvSpin 50s linear infinite;
}

/* The icon sits on an outer <g transform="translate(52,52) scale(4)">
   that centers a 24x24 glyph dead-center in the 200x200 canvas
   ((200 - 24*4) / 2 = 52). .svi-icon is a SEPARATE, nested <g> inside
   that one — animating transform (scale/rotate/translate) via CSS on
   the SAME element that carries the translate/scale attribute would
   silently replace the attribute's transform entirely (a CSS `transform`
   animation overrides an SVG `transform` attribute rather than
   combining with it), snapping the icon to the top-left corner. Nesting
   avoids that: the outer <g> keeps the icon positioned, the inner
   .svi-icon only ever gets a CSS transform, never an attribute one. */
.svi-icon {
  fill: none; stroke: var(--color-accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(0,194,168,0.45));
  transform-box: fill-box; transform-origin: 50% 50%;
}

/* Animation variants — mix into .svi-icon depending on what suits the glyph.
   transform-box:fill-box + transform-origin:50% 50% (set above) means
   these self-center regardless of the outer group's scale, so no pixel
   math is needed here. */
.svi-pulse { animation: svIconPulse 3.2s ease-in-out infinite; }
.svi-float { animation: svIconFloat 4.5s ease-in-out infinite; }
.svi-spin { animation: svIconSpin 5s linear infinite; }
@keyframes svIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes svIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes svIconSpin {
  to { transform: rotate(360deg); }
}

/* Draw-in animation for line-based icons (activity, trending-up). Uses
   pathLength="1" on the <path> in HTML so this one keyframe set works
   for any path regardless of its real geometric length. */
.svi-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: svIconDraw 3.2s ease-in-out infinite; }
@keyframes svIconDraw {
  0%, 8% { stroke-dashoffset: 1; }
  55%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}

/* Individual team-member placeholder avatar (About page leadership grid) —
   sits on the light .team-photo background, so uses brand-blue tones
   instead of the white-on-dark palette above. Same real "user" icon,
   translate(30,30) scale(2.5) centers a 24x24 glyph in a 120x120 canvas. */
.sv-avatar .sv-svg { width: 66%; max-width: 96px; }
.sv-avatar-ring { fill: none; stroke: var(--color-brand); stroke-opacity: 0.25; stroke-dasharray: 3 7; transform-origin: 60px 60px; animation: hvSpin 30s linear infinite; }
.sv-avatar-bg { fill: rgba(13,71,161,0.08); transform-origin: 60px 60px; animation: hvPulseRing 4s ease-in-out infinite; }
.sv-avatar-icon { fill: none; stroke: var(--color-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------
   8. PARTNER / CERTIFICATION CHIPS (About page)
   --------------------------------------------------------------------- */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.trust-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 1.25rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
a.trust-logo-chip:hover { border-color: var(--color-brand); color: var(--color-brand); }
/* Placeholder variant — dashed border signals "not a real logo yet" (used until a chip is confirmed) */
.trust-logo-chip.is-placeholder { border-style: dashed; }

/* ---------------------------------------------------------------------
   9. CARDS (SERVICES / VALUES / TEAM / RESOURCES)
   --------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px; /* matches the dark theme's sharper "tactical" corners so nothing changes shape between modes */
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(13,20,40,0.25);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(13,71,161,0.08);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--color-ink-soft); font-size: 0.98rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 600;
  color: var(--color-brand);
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.card-dark:hover { border-color: rgba(255,255,255,0.3); }
.card-dark .card-icon { background: rgba(255,255,255,0.1); color: var(--color-accent); }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.65); }

/* Process steps */
.process-step {
  position: relative;
  padding-top: 2.5rem;
  border-top: 2px solid var(--color-line);
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-brand);
  opacity: 0.35;
}

/* Industries chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--color-paper-soft);
  border: 1px solid var(--color-line);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
a.chip:hover { border-color: var(--color-brand); color: var(--color-brand); }

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--color-line);
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
}
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.75rem; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-paper-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--color-brand);
  font-family: var(--font-display);
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.85rem; color: var(--color-ink-soft); }

/* CTA banner */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--color-brand-dark);
  color: #fff;
  text-align: center;
  border: 1px solid transparent; /* dark mode colors this in — transparent here keeps the height identical so the page doesn't shift on theme switch */
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(59,125,221,0.5), transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.72); max-width: 50ch; margin-inline: auto; margin-top: 1rem; }
.cta-banner .btn-row { margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: #060d1f;
  color: rgba(255,255,255,0.7);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 30px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.footer-social a:hover { background: var(--color-brand); border-color: var(--color-brand); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.92rem; transition: color var(--dur-fast) ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.82rem;
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }

/* ---------------------------------------------------------------------
   11. SCROLL-REVEAL ANIMATION HOOKS
   ---------------------------------------------------------------------
   Elements with [data-reveal] start hidden and are animated in by
   assets/js/main.js using GSAP ScrollTrigger. Safe to add this
   attribute to any new element you create.
   --------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
/* After the reveal animation finishes, main.js swaps the inline GSAP
   styles for this class — so hover effects (like the grid dim) can
   still change opacity afterwards. */
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal-ready [data-reveal] { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }

/* ---------------------------------------------------------------------
   Custom cursor (desktop only, decorative)
   ---------------------------------------------------------------------
   Two layers for a more dynamic feel: a small solid dot that tracks the
   mouse tightly, and a larger soft ring that trails slightly behind it
   (eased in assets/js/main.js). No mix-blend-mode here on purpose — that
   was inverting whatever text/color it passed over, which read as
   jarring. Instead the ring just glows softly in --color-cursor, so it
   never fights with the page's own colors.
   --------------------------------------------------------------------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-cursor);
  box-shadow: 0 0 12px 2px rgba(143, 180, 255, 0.65);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-fast) ease;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cursor);
  background: radial-gradient(circle, rgba(143, 180, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.cursor-ring.is-hover {
  width: 54px; height: 54px;
  border-color: #fff;
  background: radial-gradient(circle, rgba(143, 180, 255, 0.28), transparent 70%);
}
.cursor-dot.is-hover { opacity: 0.6; }

/* Marquee for logos/keywords */
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track span { padding-inline: 2rem; white-space: nowrap; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   12. PAGE HEADER (for interior pages: Services, About, Contact)
   --------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--color-brand-dark);
  color: #fff;
}
/* Page-hero headline — the mono "terminal" treatment (uppercase IBM
   Plex Mono + blinking cursor), used in BOTH light and dark modes.
   Originally built for the dark theme, promoted to the site default
   by request. */
.page-hero h1 {
  color: #fff;
  margin-top: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  max-width: 24ch;
}
.page-hero h1::after {
  content: "_";
  color: var(--color-accent);
  margin-left: 0.1em;
  animation: drkBlink 1.1s steps(1) infinite;
}
@keyframes drkBlink { 50% { opacity: 0; } }
.page-hero p { margin-top: 1.25rem; max-width: 52ch; color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: #fff; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; grid-column: span 2; }
.form-field.half { grid-column: span 1; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-paper-soft);
  transition: border-color var(--dur-fast) ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.25rem; border-top: 1px solid var(--color-line); }
.contact-info-item:first-child { border-top: none; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(13,71,161,0.08); color: var(--color-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Team grid (About page) */
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1; border-radius: var(--radius-md);
  background: var(--color-paper-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------
   12b. ENGAGEMENT LAYER
   ---------------------------------------------------------------------
   [EDIT ZONE: MOTION GRAPHIC] The "award site" polish: scroll progress
   bar, marquees, card spotlight, FAQ accordion, sticky mobile CTA.
   All optional garnish — deleting any block here only removes that
   effect, never breaks content.
   --------------------------------------------------------------------- */

/* Gradient text accent — wrap any words in <span class="text-gradient"> */
.text-gradient {
  background: linear-gradient(100deg, #8fb4ff 10%, var(--color-accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll progress bar (top of viewport, width driven by main.js §9) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--color-brand-light), var(--color-accent));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10001;
  pointer-events: none;
}

/* (The infinite-marquee styles that used to live here were removed along
   with the homepage technology-partner strip — the partner chips now
   appear only on the About page's certifications section.) */

/* Kinetic text — masked reveals for the hero headline (.line-mask/.line,
   animated by main.js §14 on page load) and for any heading marked
   data-split (split into per-word masks, revealed on scroll). The
   padding/negative-margin pair keeps descenders (g, y, p) from being
   clipped by the overflow mask. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.line-mask .line { display: block; }
.w-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.w-mask .w { display: inline-block; }

/* Ambient aurora orbs — big blurred brand-color glows drifting slowly
   behind a section's content. Add class="has-orbs" to the <section> and
   drop in .glow-orb-blue / .glow-orb-teal divs. Hidden on phones (see
   responsive section) to spare low-end GPUs. */
.has-orbs { position: relative; overflow: hidden; }
.has-orbs .container { position: relative; z-index: 1; }
.glow-orb {
  position: absolute;
  width: clamp(320px, 40vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.glow-orb-blue {
  top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(59,125,221,0.22), transparent 70%);
}
.glow-orb-teal {
  bottom: -18%; right: -10%;
  background: radial-gradient(circle, rgba(0,194,168,0.16), transparent 70%);
  animation-delay: -11s;
}
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 4vh) scale(1.15); }
}

/* Film grain over the hero — a subtle SVG-noise texture that keeps the
   big gradient from looking flat. Sits above .hero-bg, below content. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll-driven process progress line (homepage "How it works"). The
   fill scales 0 -> 1 as the section scrolls past (main.js §14), and
   each .process-step gets .is-active as the line reaches it. */
.process-track {
  height: 2px;
  background: var(--color-line);
  border-radius: 2px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.process-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-light), var(--color-accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.process-step.is-active .step-num { opacity: 1; }
.process-step:hover::before,
.process-step.is-active::before { width: 100%; }

/* Card icons wake up on hover */
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon { transition: transform var(--dur-med) var(--ease-out); }

/* Card spotlight — a soft radial glow that follows the mouse inside any
   .card (position set as --mx/--my by main.js §10). pointer-events:none
   keeps whole-card links clickable through the overlay. */
.card { position: relative; }
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(59,125,221,0.10), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card-dark::after {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0,194,168,0.13), transparent 65%);
}

/* Corner brackets (the aftrdrk "HUD frame" cue) — teal L-shapes drawn
   with 8 tiny background strips on ::before, appearing at each corner
   on hover. Identical in light and dark mode. */
.card:not(.sv)::before {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  --cb: var(--color-accent);
  background:
    linear-gradient(var(--cb), var(--cb)) top left / 14px 1.5px,
    linear-gradient(var(--cb), var(--cb)) top left / 1.5px 14px,
    linear-gradient(var(--cb), var(--cb)) top right / 14px 1.5px,
    linear-gradient(var(--cb), var(--cb)) top right / 1.5px 14px,
    linear-gradient(var(--cb), var(--cb)) bottom left / 14px 1.5px,
    linear-gradient(var(--cb), var(--cb)) bottom left / 1.5px 14px,
    linear-gradient(var(--cb), var(--cb)) bottom right / 14px 1.5px,
    linear-gradient(var(--cb), var(--cb)) bottom right / 1.5px 14px;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--dur-med) ease;
}
.card:not(.sv):hover::before { opacity: 1; }

/* Mono index numbers on every card in a 3-column grid (01, 02, 03...) —
   shown in BOTH modes so card heights never change on theme switch */
.grid-3 { counter-reset: drk; }
.grid-3 > .card { counter-increment: drk; }
.grid-3 > .card h3::before {
  content: "0" counter(drk);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
/* Opt-out: add class="drk-plain" to a grid whose cards already carry
   their own label (e.g. the About page timeline's year eyebrows) */
.grid-3.drk-plain > .card h3::before { content: none; }

/* Hover-focus grid (aftrdrk's signature): hovering any card dims its
   siblings so the active one stands alone. Both modes. */
@media (pointer: fine) {
  .grid-3:hover > .card,
  .grid-4:hover > .card { opacity: 0.45; }
  .grid-3:hover > .card:hover,
  .grid-4:hover > .card:hover { opacity: 1; }
  .grid-3 > .card,
  .grid-4 > .card { transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease, opacity var(--dur-med) ease; }
}

/* Testimonial decorative quote glyph */
.testimonial-card { position: relative; overflow: hidden; }
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -0.15em; left: 0.15em;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(13,71,161,0.07);
  pointer-events: none;
}
.testimonial-card blockquote { position: relative; }

/* Process steps — accent segment draws across the top border on hover,
   number wakes up */
.process-step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  height: 2px; width: 0%;
  background: var(--color-accent);
  transition: width 0.5s var(--ease-out);
}
.process-step:hover::before { width: 100%; }
.process-step .step-num { transition: opacity var(--dur-med) ease; }
.process-step:hover .step-num { opacity: 1; }

/* FAQ accordion (native <details>, no JS needed) */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-med) var(--ease-out);
}
.faq-item[open] { border-color: var(--color-brand); box-shadow: 0 16px 40px -24px rgba(13,20,40,0.25); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--color-brand);
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.faq-item .faq-answer { padding: 0 1.75rem 1.5rem; color: var(--color-ink-soft); font-size: 0.98rem; }

/* Sticky mobile CTA bar — hidden on desktop; slides up on phones once
   the visitor scrolls past the hero (toggled by main.js §13) */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: none;
  gap: 0.75rem;
  padding: 0.75rem var(--container-pad) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(8, 42, 99, 0.96);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar .btn { flex: 1; padding: 0.8rem 1rem; font-size: 0.9rem; }

/* ---------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------------------- */
@media (min-width: 1081px) {
  .hero-content { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { display: block; }
}

@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--container-pad);
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility var(--dur-fast) ease;
  }
  .nav-menu.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-menu a { font-size: 1.05rem; }
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu .nav-menu-cta { display: inline-flex; margin-top: 0.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.half { grid-column: span 1; }
  .hero-stats { gap: 2rem; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .mobile-cta-bar { display: flex; }
  .glow-orb { display: none; }
}

/* ---------------------------------------------------------------------
   14. REDUCED MOTION (accessibility)
   ---------------------------------------------------------------------
   Visitors with "reduce motion" enabled in their OS get a still site:
   marquees, spinners, pulses, and hover flourishes all stop. main.js
   checks the same media query to skip smooth-scroll, parallax, and
   magnetic-button effects.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; transform: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue { display: none; }
}

/* =====================================================================
   15. DARK MODE (site-wide)
   =====================================================================
   The dark "security operations" skin inspired by aftrdrk.com — first
   built for the Cybersecurity page and promoted to the whole site as
   its dark mode. Near-black navy backgrounds, IBM Plex Mono accents,
   tactical corner brackets, hover-focus card grids — all in Good
   Hunter's palette (teal accent instead of aftrdrk's red).

   HOW IT SWITCHES: a tiny script in every page's <head> puts class
   "theme-drk" on <html> — following the visitor's saved choice from
   the floating toggle (localStorage key "gh-theme"), or their OS
   dark-mode setting if they've never chosen. Every rule below is
   scoped to .theme-drk, so removing that class = instant light mode.
   Pre-dark-mode file copies live in /_backup/2026-07-09-pre-darkmode/.
   ===================================================================== */
.theme-drk {
  --drk-bg: #050b18;                       /* near-black, navy-flavored */
  --drk-bg-2: #081124;                     /* one step lighter, for alternating sections */
  --drk-card: rgba(255, 255, 255, 0.03);
  --drk-border: rgba(255, 255, 255, 0.1);
  --drk-text: rgba(255, 255, 255, 0.62);
  /* (--font-mono now lives in :root — the mono type is the site default
     in both modes, not a dark-only treatment) */
  background: var(--drk-bg);
  color-scheme: dark;                      /* native widgets (selects, scrollbars) go dark too */
}
.theme-drk body {
  background: var(--drk-bg);
  color: rgba(255, 255, 255, 0.72);
}

/* --- Header: dark glass, inverted logo, light nav --- */
.theme-drk .site-header,
.theme-drk .site-header.is-scrolled {
  background: rgba(5, 11, 24, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--drk-border);
}
.theme-drk .brand-logo img { filter: brightness(0) invert(1); }
.theme-drk .nav-menu a { color: rgba(255, 255, 255, 0.82); }
.theme-drk .nav-menu a.is-active { color: var(--color-cursor); }
.theme-drk .nav-menu a::after { background: var(--color-accent); }
.theme-drk .nav-toggle span { background: #fff; }
.theme-drk .btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.theme-drk .btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* --- Page hero: grid lines, glow, mono uppercase headline --- */
.theme-drk .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 90% at 72% 10%, rgba(59, 125, 221, 0.22), transparent 60%),
    radial-gradient(40% 60% at 15% 100%, rgba(0, 194, 168, 0.08), transparent 65%),
    var(--drk-bg);
}
.theme-drk .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 80% at 60% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(75% 80% at 60% 30%, black, transparent);
}
.theme-drk .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.theme-drk .page-hero .container { position: relative; z-index: 1; }
/* (The mono uppercase h1 + blinking cursor moved to the base .page-hero
   rules — that treatment is now the site default in both modes.) */

/* Status / capability tag row under the hero subhead (cybersecurity
   page). White-on-navy styling works on the page-hero in both modes,
   so it shows everywhere. */
.drk-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.drk-sep { color: rgba(255, 255, 255, 0.25); }
.drk-status { display: inline-flex; align-items: center; gap: 0.5em; color: var(--color-accent); }
.drk-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(0, 194, 168, 0.9);
  animation: drkPulse 1.8s ease-in-out infinite;
}
@keyframes drkPulse { 50% { opacity: 0.25; } }

/* --- Sections & typography on dark --- */
.theme-drk .section { background: var(--drk-bg); }
.theme-drk .section-soft { background: var(--drk-bg-2); }
/* (.section-dark keeps its brand-navy background — it reads as a blue
   accent band in the middle of the dark page.) */
.theme-drk h2, .theme-drk h3 { color: #fff; }
.theme-drk .section-head p,
.theme-drk .text-muted { color: var(--drk-text); }
.theme-drk .eyebrow { color: var(--color-cursor); }
/* (eyebrow/breadcrumb mono font now set in their base rules) */

/* --- Cards: dark panels, tactical corner brackets, numbered --- */
.theme-drk .card:not(.sv) {
  background: var(--drk-card);
  border: 1px solid var(--drk-border);
}
.theme-drk .card:not(.sv):hover {
  border-color: rgba(0, 194, 168, 0.55);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
.theme-drk .card p { color: var(--drk-text); }
.theme-drk .card-icon { background: rgba(255, 255, 255, 0.07); color: var(--color-accent); }
.theme-drk .card-link { color: var(--color-cursor); }

/* Teal spotlight instead of blue on dark */
.theme-drk .card::after {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 194, 168, 0.08), transparent 65%);
}

/* (Corner brackets, the 01/02/03 card numbering, and the hover-focus
   grid all moved to §12b — they're now identical in light and dark
   mode, so card sizes never shift when the theme switches.) */

/* CTA banner gets a hairline frame so it doesn't melt into the page */
.theme-drk .cta-banner { border: 1px solid var(--drk-border); }

/* Mobile menu goes dark too */
@media (max-width: 860px) {
  .theme-drk .nav-menu {
    background: #0a1224;
    border-bottom-color: var(--drk-border);
  }
  .theme-drk .nav-menu a { color: rgba(255, 255, 255, 0.88); }
}

/* --- Site-wide component coverage (added when the theme became the
       whole site's dark mode) --- */

/* FAQ accordion (homepage) */
.theme-drk .faq-item {
  background: var(--drk-card);
  border-color: var(--drk-border);
}
.theme-drk .faq-item summary { color: #fff; }
.theme-drk .faq-item[open] { border-color: rgba(0, 194, 168, 0.55); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.9); }
.theme-drk .faq-chevron { border-color: rgba(255, 255, 255, 0.25); color: var(--color-cursor); }
.theme-drk .faq-item[open] .faq-chevron { background: var(--color-accent); border-color: var(--color-accent); color: #06231f; }
.theme-drk .faq-item .faq-answer { color: var(--drk-text); }

/* Testimonials (homepage) */
.theme-drk .testimonial-card {
  background: var(--drk-card);
  border-color: var(--drk-border);
}
.theme-drk .testimonial-card blockquote { color: #fff; }
.theme-drk .testimonial-card::before { color: rgba(255, 255, 255, 0.06); }
.theme-drk .testimonial-avatar { background: rgba(255, 255, 255, 0.08); color: var(--color-cursor); }
.theme-drk .testimonial-name { color: #fff; }
.theme-drk .testimonial-role { color: var(--drk-text); }

/* Chips (industries row, service-page tag lists) */
.theme-drk .chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}
.theme-drk a.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Partner/cert chips (About page) */
.theme-drk .trust-logo-chip { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); }
.theme-drk a.trust-logo-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Team grid + avatar placeholders (About page) */
.theme-drk .team-photo { background: rgba(255, 255, 255, 0.05); }
.theme-drk .sv-avatar-bg { fill: rgba(255, 255, 255, 0.07); }
.theme-drk .sv-avatar-icon { stroke: var(--color-cursor); }
.theme-drk .sv-avatar-ring { stroke: var(--color-cursor); }

/* Stats on light sections (About page) */
.theme-drk .stat-group-light .stat-label { color: var(--drk-text); }
.theme-drk .stat-group-light .stat-num { color: var(--color-cursor); }

/* Process steps + progress line (homepage) */
.theme-drk .process-step { border-top-color: rgba(255, 255, 255, 0.14); }
.theme-drk .process-step .step-num { color: var(--color-cursor); }
.theme-drk .process-track { background: rgba(255, 255, 255, 0.12); }

/* Contact form + info card */
.theme-drk .form-field label { color: rgba(255, 255, 255, 0.85); }
.theme-drk .form-field input,
.theme-drk .form-field select,
.theme-drk .form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.theme-drk .form-field input:focus,
.theme-drk .form-field select:focus,
.theme-drk .form-field textarea:focus { border-color: var(--color-accent); }
.theme-drk .contact-info-item { border-top-color: var(--drk-border); }
.theme-drk .contact-info-icon { background: rgba(255, 255, 255, 0.07); color: var(--color-accent); }

/* --- Floating theme toggle (markup on every page, logic in main.js §15).
       Shows a moon in light mode, a sun in dark mode. --- */
.theme-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 940;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--color-line);
  color: var(--color-ink);
  box-shadow: 0 10px 30px -12px rgba(13, 20, 40, 0.35);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--color-brand); color: var(--color-brand); transform: translateY(-2px); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .tt-sun { display: none; }
.theme-drk .theme-toggle {
  background: rgba(10, 18, 36, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-cursor);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}
.theme-drk .theme-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
.theme-drk .theme-toggle .tt-sun { display: block; }
.theme-drk .theme-toggle .tt-moon { display: none; }
@media (max-width: 860px) {
  /* Sit above the sticky mobile CTA bar on pages that have one */
  .theme-toggle.above-bar { bottom: 5.75rem; }
}
