/*
Theme Name: KBT Custom
Theme URI: https://kingdombuilttech.com
Author: Kingdom Built Tech
Description: Custom WordPress theme for Kingdom Built Tech — AI/ML solutions for Defense, Aviation, Healthcare & Real Estate
Version: 2.0.5
License: GNU General Public License v2 or later
Text Domain: kbt-theme
*/

/* ============================================================
   TOKENS & CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --kbt-navy:        #0d0d0d;
  --kbt-navy-mid:    #141414;
  --kbt-navy-light:  #1c1c1c;
  --kbt-black:       #050505;
  --kbt-gold:        #f1c16c;
  --kbt-gold-dark:   #a97e34;
  --kbt-gold-pale:   #f7d89a;
  --kbt-gold-glow:   rgba(241,193,108,0.12);
  --kbt-gold-border: rgba(241,193,108,0.25);
  --kbt-white:       #ffffff;
  --kbt-gray-100:    #e8e8e8;
  --kbt-gray-400:    #a0a0a0;
  --kbt-gray-600:    #606060;

  /* Typography */
  --font-display:  'Rajdhani', sans-serif;
  --font-body:     'Nunito Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;
  --text-5xl:  5.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   700ms;
  --duration-reveal: 1000ms;

  /* Z-index */
  --z-cursor:  9999;
  --z-overlay: 9000;
  --z-header:  1000;
  --z-above:   100;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--kbt-navy);
  color: var(--kbt-gray-100);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body.cursor-loading { cursor: wait; }

a {
  color: var(--kbt-gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--kbt-gold-pale); }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--kbt-white);
}

p { color: var(--kbt-gray-100); line-height: 1.75; }

strong { color: var(--kbt-gray-100); font-weight: 600; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.kbt-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: normal;
}

.kbt-cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--kbt-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.15s var(--ease-out),
              height 0.15s var(--ease-out),
              background 0.15s var(--ease-out),
              opacity 0.15s;
  box-shadow: 0 0 8px var(--kbt-gold), 0 0 20px rgba(241,193,108,0.4);
}

.kbt-cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(241,193,108,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              border-color 0.25s,
              background 0.25s,
              opacity 0.25s;
}

/* Crosshair lines */
.kbt-cursor__ring::before,
.kbt-cursor__ring::after {
  content: '';
  position: absolute;
  background: rgba(241,193,108,0.4);
  transition: opacity 0.2s;
  opacity: 0;
}

.kbt-cursor__ring::before {
  width: 1px;
  height: 8px;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
}

.kbt-cursor__ring::after {
  width: 8px;
  height: 1px;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
}

/* Hover states */
.kbt-cursor.is-hovering .kbt-cursor__dot {
  width: 10px;
  height: 10px;
  background: var(--kbt-gold-pale);
  box-shadow: 0 0 16px var(--kbt-gold), 0 0 40px rgba(241,193,108,0.5);
}

.kbt-cursor.is-hovering .kbt-cursor__ring {
  width: 56px;
  height: 56px;
  border-color: var(--kbt-gold);
  background: rgba(241,193,108,0.05);
}

.kbt-cursor.is-hovering .kbt-cursor__ring::before,
.kbt-cursor.is-hovering .kbt-cursor__ring::after {
  opacity: 1;
}

.kbt-cursor.is-clicking .kbt-cursor__ring {
  width: 28px;
  height: 28px;
}

/* Corner tick marks on ring */
.kbt-cursor__ticks {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.kbt-cursor.is-hovering .kbt-cursor__ticks { opacity: 1; }

.kbt-cursor__ticks span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--kbt-gold);
  border-style: solid;
}

.kbt-cursor__ticks span:nth-child(1) { top: -2px; left: -2px; border-width: 1.5px 0 0 1.5px; }
.kbt-cursor__ticks span:nth-child(2) { top: -2px; right: -2px; border-width: 1.5px 1.5px 0 0; }
.kbt-cursor__ticks span:nth-child(3) { bottom: -2px; left: -2px; border-width: 0 0 1.5px 1.5px; }
.kbt-cursor__ticks span:nth-child(4) { bottom: -2px; right: -2px; border-width: 0 1.5px 1.5px 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.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; }

.text-center { text-align: center; }
.text-gold { color: var(--kbt-gold); }

/* Section spacing */
.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* ============================================================
   TYPOGRAPHY COMPONENTS
   ============================================================ */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kbt-gold);
}

.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--kbt-gold);
}

.heading-xl {
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.05;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.15;
}

.heading-sm {
  font-size: clamp(1.125rem, 2vw, var(--text-xl));
  font-weight: 600;
  line-height: 1.3;
}

.heading-accent {
  color: var(--kbt-gold);
}

.lead {
  font-size: var(--text-lg);
  color: var(--kbt-gray-400);
  line-height: 1.7;
  max-width: 60ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
}

.btn:hover::before { transform: translateX(0); }

.btn--primary {
  background: var(--kbt-gold);
  color: var(--kbt-black);
}

.btn--primary:hover {
  background: var(--kbt-gold-pale);
  color: var(--kbt-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(241,193,108,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--kbt-gold);
  border: 1.5px solid var(--kbt-gold-border);
}

.btn--outline:hover {
  background: var(--kbt-gold-glow);
  border-color: var(--kbt-gold);
  color: var(--kbt-gold);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--kbt-gray-400);
  border: 1px solid var(--kbt-gray-600);
}

.btn--ghost:hover {
  color: var(--kbt-white);
  border-color: var(--kbt-gray-400);
}

.btn svg, .btn i { width: 16px; height: 16px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--kbt-gold), transparent);
  transform: scaleX(0);
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
  border-color: rgba(241,193,108,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(241,193,108,0.06);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  color: var(--kbt-gold);
  font-size: 1.25rem;
  transition: background var(--duration-base);
}

.card:hover .card__icon {
  background: rgba(241,193,108,0.18);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--kbt-white);
  margin-bottom: var(--space-3);
}

.card__body {
  color: var(--kbt-gray-400);
  font-size: var(--text-sm);
  line-height: 1.75;
}

/* ============================================================
   DIVIDERS & DECORATIVE ELEMENTS
   ============================================================ */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--kbt-gold), var(--kbt-gold-dark));
  border-radius: 2px;
  margin-bottom: var(--space-6);
}

.divider--center { margin-left: auto; margin-right: auto; }

/* Circuit grid pattern (SVG background) */
.bg-grid {
  background-image:
    linear-gradient(rgba(241,193,108,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,193,108,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Glowing orb behind sections */
.bg-orb {
  position: relative;
}

.bg-orb::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241,193,108,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SITE HEADER & TOP NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: background var(--duration-base),
              backdrop-filter var(--duration-base),
              box-shadow var(--duration-base);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(241,193,108,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-8);
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}

.site-logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav > ul > li > a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
  position: relative;
}

.primary-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 1px;
  background: var(--kbt-gold);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: var(--kbt-white);
}

.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  list-style: none;
}

.primary-nav > ul > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.primary-nav .sub-menu li a:hover {
  color: var(--kbt-gold);
  background: var(--kbt-gold-glow);
}

/* Dropdown chevron */
.primary-nav > ul > li.menu-item-has-children > a {
  padding-right: var(--space-6);
}

.primary-nav > ul > li.menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--duration-fast);
}

.primary-nav > ul > li.menu-item-has-children:hover > a::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Nav CTA */
.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--kbt-gray-400);
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--kbt-black);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: none;
  cursor: none;
  color: var(--kbt-gray-400);
  transition: color var(--duration-fast);
}

.mobile-menu__close:hover { color: var(--kbt-gold); }

.mobile-menu nav ul {
  text-align: center;
  list-style: none;
}

.mobile-menu nav ul li {
  margin-bottom: var(--space-4);
}

.mobile-menu nav ul li a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--kbt-white);
  letter-spacing: -0.02em;
  transition: color var(--duration-fast);
}

.mobile-menu nav ul li a:hover { color: var(--kbt-gold); }

.mobile-menu nav .sub-menu { margin-top: var(--space-2); }

.mobile-menu nav .sub-menu li { margin-bottom: var(--space-2); }

.mobile-menu nav .sub-menu li a {
  font-size: var(--text-lg);
  color: var(--kbt-gray-400);
}

/* Body top clearance for fixed header */
body { padding-top: 80px; }

/* ============================================================
   ANCHOR NAV — floating bottom in-page navigation
   ============================================================ */
.anchor-nav {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-above);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  pointer-events: none;
}

/* Visible after slight scroll */
.anchor-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.anchor-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(241,193,108,0.2);
  border-radius: 999px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(241,193,108,0.05);
  white-space: nowrap;
}

.anchor-nav__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
  border-radius: 999px;
  transition: color var(--duration-fast), background var(--duration-fast);
  cursor: none;
}

.anchor-nav__link:hover {
  color: var(--kbt-white);
  background: rgba(241,193,108,0.08);
}

/* Active section highlight */
.anchor-nav__link.is-active {
  color: var(--kbt-gold);
  background: rgba(241,193,108,0.1);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}

.site-logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav > ul > li > a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
  position: relative;
}

.primary-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 1px;
  background: var(--kbt-gold);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: var(--kbt-white);
}

.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.primary-nav > ul > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.primary-nav .sub-menu li a:hover {
  color: var(--kbt-gold);
  background: var(--kbt-gold-glow);
}

/* Dropdown arrow indicator */
.primary-nav > ul > li.menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--duration-fast);
}

.primary-nav > ul > li.menu-item-has-children:hover > a::before {
  transform: translateY(-50%) rotate(180deg);
}

.primary-nav > ul > li.menu-item-has-children > a {
  padding-right: var(--space-6);
}

/* Nav CTA button */
.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--kbt-gray-400);
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--kbt-black);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav ul {
  text-align: center;
}

.mobile-menu nav ul li {
  margin-bottom: var(--space-4);
}

.mobile-menu nav ul li a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--kbt-white);
  letter-spacing: -0.02em;
  transition: color var(--duration-fast);
}

.mobile-menu nav ul li a:hover { color: var(--kbt-gold); }

.mobile-menu nav .sub-menu {
  margin-top: var(--space-2);
}

.mobile-menu nav .sub-menu li { margin-bottom: var(--space-2); }

.mobile-menu nav .sub-menu li a {
  font-size: var(--text-lg);
  color: var(--kbt-gray-400);
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--kbt-black);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,5,5,0.90) 0%,
    rgba(5,5,5,0.55) 45%,
    rgba(5,5,5,0.15) 100%
  );
  z-index: 1;
}

/* Animated scan line */
.hero__scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero__scanline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,193,108,0.3), transparent);
  animation: scanline 8s linear infinite;
  top: -1px;
}

@keyframes scanline {
  0%   { top: -1px; }
  100% { top: 100%; }
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(241,193,108,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,193,108,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 80px; /* top header clearance */
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--kbt-gold);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--kbt-gold);
}

.hero__heading {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--kbt-white);
  max-width: 16ch;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.4s forwards;
}

.hero__heading em {
  font-style: normal;
  color: var(--kbt-gold);
  position: relative;
}

.hero__heading em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kbt-gold), transparent);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--kbt-gray-400);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.8s forwards;
}

.hero__tagline {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(241,193,108,0.5);
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 1.1s forwards;
}

/* Corner frame decoration */
.hero__frame {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 3;
}

.hero__frame::before,
.hero__frame::after {
  content: '';
  position: absolute;
  border-color: rgba(241,193,108,0.2);
  border-style: solid;
  width: 40px;
  height: 40px;
}

.hero__frame::before {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}

.hero__frame::after {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kbt-gray-600);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--kbt-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-section {
  padding: var(--space-20) 0;
  position: relative;
  border-top: 1px solid rgba(241,193,108,0.08);
}

.problem-section__intro {
  max-width: 60ch;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.problem-card {
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241,193,108,0.03) 0%, transparent 60%);
}

.problem-card__number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(241,193,108,0.06);
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  letter-spacing: -0.05em;
}

.problem-card__icon {
  width: 40px;
  height: 40px;
  color: var(--kbt-gold);
  margin-bottom: var(--space-4);
}

.problem-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--kbt-white);
  margin-bottom: var(--space-3);
}

.problem-card__body {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  line-height: 1.75;
}

/* ============================================================
   WHY KBT SECTION
   ============================================================ */
.why-section {
  padding: var(--space-20) 0;
  background: var(--kbt-navy-light);
  position: relative;
  overflow: hidden;
}

.why-section__orb {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(241,193,108,0.04) 0%, transparent 65%);
  border-radius: 50%;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-content h2 { margin-bottom: var(--space-6); }
.why-content p  { margin-bottom: var(--space-8); max-width: 52ch; }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.why-stat {
  border-left: 2px solid var(--kbt-gold);
  padding-left: var(--space-4);
}

.why-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--kbt-gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.why-stat__label {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  line-height: 1.4;
}

.why-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pillar {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--kbt-navy);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
}

.pillar:hover {
  border-color: rgba(241,193,108,0.4);
  transform: translateX(4px);
}

.pillar__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kbt-gold);
  font-size: 1.25rem;
}

.pillar__content h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--kbt-white);
  margin-bottom: var(--space-1);
}

.pillar__content p {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  margin: 0;
}

/* ============================================================
   SERVICES PREVIEW — HOMEPAGE
   ============================================================ */
.services-preview {
  padding: var(--space-20) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.service-card {
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center bottom, rgba(241,193,108,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.service-card:hover .service-card__glow { opacity: 1; }

.service-card:hover {
  border-color: rgba(241,193,108,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: var(--kbt-gold);
  font-size: 1.5rem;
  transition: all var(--duration-base);
  margin: 15px;
}

.service-card:hover .service-card__icon {
  background: rgba(241,193,108,0.18);
  box-shadow: 0 0 20px rgba(241,193,108,0.2);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--kbt-white);
  margin-bottom: var(--space-3);
}

.service-card__body {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  line-height: 1.65;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kbt-gold);
  transition: gap var(--duration-fast);
}

.service-card__link:hover { gap: var(--space-3); }

/* ============================================================
   CLIENTS / TRUST LOGOS
   ============================================================ */
.clients-section {
  padding: var(--space-16) 0;
  border-top: 1px solid rgba(241,193,108,0.08);
  border-bottom: 1px solid rgba(241,193,108,0.08);
  background-color: var(--kbt-gray-600)!important;
}

.clients-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kbt-gray-100);
  margin-bottom: var(--space-8);
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.clients-logos img {
  max-height: 100px;
  width: auto;
  /*filter: brightness(0) invert(1) opacity(0.55);
  transition: filter var(--duration-base);*/
}

.clients-logos img:hover {
  /*filter: brightness(0) invert(1) opacity(0.85);*/
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241,193,108,0.05) 0%, transparent 50%);
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 { margin-bottom: var(--space-4); }
.cta-section p  { margin: 0 auto var(--space-10); max-width: 50ch; }

.cta-section .cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding: 120px 0 var(--space-20);
  background: var(--kbt-black);
  position: relative;
  overflow: hidden;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241,193,108,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,193,108,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero .label { margin-bottom: var(--space-4); }
.page-hero h1 { margin-bottom: var(--space-6); max-width: 18ch; }
.page-hero .lead { max-width: 55ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a { color: var(--kbt-gray-600); }
.breadcrumb a:hover { color: var(--kbt-gold); }
.breadcrumb span { color: var(--kbt-gray-600); }
.breadcrumb .current { color: var(--kbt-gold); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-mission {
  padding: var(--space-20) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-image-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-3);
}

.about-image-mosaic img {
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1;
}

.about-image-mosaic img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.about-values {
  padding: var(--space-20) 0;
  background: var(--kbt-navy-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.value-card {
  padding: var(--space-8);
  border-left: 2px solid var(--kbt-gold);
  background: var(--kbt-navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--kbt-white);
  margin-bottom: var(--space-3);
}

.value-card__body {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
}

.about-experience {
  padding: var(--space-20) 0;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.exp-stat {
  text-align: center;
  padding: var(--space-8);
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-lg);
}

.exp-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--kbt-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.exp-stat__label {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
}

/* About identity callout strip */
.about-identity {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.about-identity__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(241,193,108,0.06);
  border: 1px solid var(--kbt-gold-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
}

.about-identity__item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-identity__item > span svg {
  width: 14px;
  height: 14px;
  display: block;
  color: var(--kbt-gold);
}

.about-tagline {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241,193,108,0.5);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-intro {
  padding: var(--space-20) 0;
}

.services-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.service-detail-card {
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-detail-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--kbt-gold), var(--kbt-gold-dark));
  transition: height var(--duration-slow) var(--ease-out);
  border-radius: 0 0 2px 0;
}

.service-detail-card:hover::after { height: 100%; }

.service-detail-card:hover {
  border-color: rgba(241,193,108,0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.service-detail-card__icon {
  width: 56px;
  height: 56px;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kbt-gold);
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

.service-detail-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--kbt-white);
  margin-bottom: var(--space-4);
}

.service-detail-card__body {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
}

.service-feature::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--kbt-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-detail-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  background: linear-gradient(135deg, var(--kbt-navy-mid), var(--kbt-navy-light));
}

.service-detail-card--featured .service-detail-card__content { }
.service-detail-card--featured .service-detail-card__extra { }

/* Government Services */
.gov-section {
  padding: var(--space-20) 0;
  background: var(--kbt-navy-light);
  position: relative;
  overflow: hidden;
}

.gov-section__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(241,193,108,0.1);
  border: 1px solid var(--kbt-gold-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kbt-gold);
  margin-bottom: var(--space-6);
}

/* Differentiator strip */
.gov-diff-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.gov-diff-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(241,193,108,0.06);
  border: 1px solid var(--kbt-gold-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
  transition: all var(--duration-fast);
}

.gov-diff-item:hover {
  color: var(--kbt-gold);
  background: rgba(241,193,108,0.1);
  border-color: rgba(241,193,108,0.4);
}

.gov-diff-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gov-diff-item > span svg {
  width: 14px;
  height: 14px;
  display: block;
  color: var(--kbt-gold);
}

/* Competency column heading */
.gov-cap-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--kbt-white);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(241,193,108,0.15);
}

.gov-cap-heading svg {
  color: var(--kbt-gold);
  flex-shrink: 0;
}

/* Three-column grid for competencies */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
  align-items: start;
}

.gov-capabilities {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.gov-capability {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.gov-capability:hover { background: rgba(241,193,108,0.04); }

.gov-capability__bullet {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.gov-capability__bullet::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--kbt-gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.gov-capability__text h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--kbt-white);
  margin-bottom: var(--space-1);
}

.gov-capability__text p {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  margin: 0;
}

/* Contract vehicles / identifiers strip */
.gov-contract-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--kbt-navy);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-xl);
}

.gov-contract-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.gov-contract-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kbt-gold);
}

.gov-contract-value {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  line-height: 1.6;
}


/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-page {
  padding: var(--space-20) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.products-page .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.products-intro {
  max-width: 60ch;
  margin-bottom: var(--space-16);
}

.product-card {
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: all var(--duration-base) var(--ease-out);
}

/* Reverse: content left, visual right */
.product-card--reverse {
  direction: rtl;
}
.product-card--reverse > * {
  direction: ltr;
}

.product-card:hover {
  border-color: rgba(241,193,108,0.4);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.product-card__visual {
  background: var(--kbt-navy-light);
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__logo {
  max-width: 240px;
  filter: brightness(1.1);
}

.product-card__content {
  padding: var(--space-12);
  direction: ltr;
}

/* Badge variants */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(241,193,108,0.1);
  border: 1px solid var(--kbt-gold-border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kbt-gold);
  margin-bottom: var(--space-6);
}

.product-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

.product-badge--dev::before {
  background: var(--kbt-gold);
  box-shadow: 0 0 8px rgba(241,193,108,0.5);
}

.product-card__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.product-card__body {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.product-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
}

.product-feature::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-sm);
  display: block;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f1c16c'%3E%3Cpath d='M13.3 4.3a1 1 0 0 0-1.4 0L6 10.2 4.1 8.3a1 1 0 0 0-1.4 1.4l2.6 2.6a1 1 0 0 0 1.4 0l6.6-6.6a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* "Dedicated site coming soon" note */
.product-coming-note {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kbt-gray-600);
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  padding: var(--space-20) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kbt-gold);
}

.contact-info_icon svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: auto;
}

.contact-info__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kbt-gray-600);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--kbt-white);
}

.contact-info__value a { color: var(--kbt-white); }
.contact-info__value a:hover { color: var(--kbt-gold); }

/* Formspree form */
.contact-form-wrap {
  background: var(--kbt-navy-mid);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.form-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--kbt-white);
  margin-bottom: var(--space-2);
}

.form-sub {
  font-size: var(--text-sm);
  color: var(--kbt-gray-400);
  margin-bottom: var(--space-8);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kbt-gray-400);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--kbt-navy);
  border: 1px solid rgba(241,193,108,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--kbt-white);
  outline: none;
  transition: border-color var(--duration-fast);
  cursor: none;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--kbt-gold);
  box-shadow: 0 0 0 3px rgba(241,193,108,0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--kbt-gray-600);
}

.form-field select option {
  background: var(--kbt-navy);
  color: var(--kbt-white);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: var(--space-6);
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
}

.form-success {
  display: none;
  padding: var(--space-6);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: var(--space-4);
}

.form-success p { color: #22c55e; margin: 0; }

.form-error {
  display: none;
  padding: var(--space-3) var(--space-4);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: #ef4444;
  margin-top: var(--space-3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--kbt-black);
  border-top: 1px solid rgba(241,193,108,0.1);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(241,193,108,0.08);
}

.footer-brand .site-logo {
  margin-bottom: var(--space-6);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--kbt-gray-600);
  max-width: 32ch;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--kbt-gold-glow);
  border: 1px solid var(--kbt-gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kbt-gray-400);
  font-size: 0.875rem;
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  background: var(--kbt-gold);
  color: var(--kbt-black);
  border-color: var(--kbt-gold);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kbt-white);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--kbt-gray-600);
  transition: color var(--duration-fast);
}

.footer-col ul li a:hover { color: var(--kbt-gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--kbt-gray-600);
}

.footer-copy a { color: var(--kbt-gray-600); }
.footer-copy a:hover { color: var(--kbt-gold); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 1024px) {
  .why-grid          { grid-template-columns: 1fr; }
  .about-grid        { grid-template-columns: 1fr; }
  .gov-grid          { grid-template-columns: 1fr; }
  .gov-contract-strip { grid-template-columns: 1fr; }
  .gov-diff-strip    { gap: var(--space-2); }
  .contact-grid      { grid-template-columns: 1fr; }
  .product-card,
  .product-card--reverse { grid-template-columns: 1fr; direction: ltr; }
  .product-card__visual { min-height: 240px; }
  .experience-stats  { grid-template-columns: repeat(2, 1fr); }

  .service-detail-card--featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-20: 3.5rem;
    --space-16: 3rem;
  }

  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero__heading { font-size: clamp(2rem, 8vw, 3.5rem); }

  .problem-grid          { grid-template-columns: 1fr; }
  .grid-2, .grid-3,
  .grid-4, .values-grid,
  .services-section-grid { grid-template-columns: 1fr; }
  .services-grid         { grid-template-columns: 1fr; }
  .why-stats             { grid-template-columns: 1fr 1fr; }
  .form-grid             { grid-template-columns: 1fr; }
  .footer-top            { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom         { flex-direction: column; gap: var(--space-4); text-align: center; }
  .clients-logos         { gap: var(--space-8); }
  .cta-section .cta-actions { flex-direction: column; align-items: center; }

  .hero__frame { display: none; }

  body { cursor: auto; }
  .kbt-cursor { display: none; }
}

@media (max-width: 480px) {
  .experience-stats { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
}

/* ============================================================
   ICON SVG FIX — kbt_icon() wraps SVGs in <span aria-hidden>
   The span must be flex to centre inside icon pill boxes.
   ============================================================ */
.card__icon > span,
.service-card__icon > span,
.pillar__icon > span,
.service-detail-card__icon > span,
.problem-card__icon > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.card__icon > span svg,
.service-card__icon > span svg,
.pillar__icon > span svg,
.service-detail-card__icon > span svg,
.problem-card__icon > span svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

/* Inline icon contexts — buttons, links, labels */
.btn > span svg,
.service-card__link > span svg,
.anchor-nav__link > span svg,
.label > span svg,
.hero__label > span svg,
.hero__actions .btn > span svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Minority-owned badge in hero label row */
.mob-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(241,193,108,0.10);
    border: 1px solid rgba(241,193,108,0.40);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kbt-gold);
}

.mob-badge > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mob-badge > span svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Icon wrapper for certification strip cards */
.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--kbt-gold-glow);
    border: 1px solid var(--kbt-gold-border);
    border-radius: var(--radius-sm);
    color: var(--kbt-gold);
    flex-shrink: 0;
}

.cert-icon > span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon > span svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Footer social icons */
.footer-social a > span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a > span svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* ============================================================
   TRUST LOGOS — preserve logo structure, no flat silhouettes
   ============================================================ */
.clients-logos img {
    /*filter: grayscale(100%) brightness(1.4) opacity(0.6);*/
}

.clients-logos img:hover {
    /*filter: grayscale(100%) brightness(1.9) opacity(0.9);*/
}