/* ════════════════════════════════════════════════════════════════
   KFI 2026 - Professional Redesign
   Executive consulting firm website
   Color: Deep navy + emerald + warm gold accent
   ════════════════════════════════════════════════════════════════ */

:root {
  --navy-900: #0b1c3d;
  --navy-800: #112a5b;
  --navy-700: #1a3a78;
  --navy-600: #244c95;
  --navy-50:  #f1f5fc;
  --navy-100: #e3ebf7;

  --emerald-700: #4d7c0f;
  --emerald-600: #6b9124;
  --emerald-500: #8ab931;
  --emerald-400: #a3c952;
  --emerald-50:  #f1f9e8;

  --gold-500:   #c8861d;
  --gold-400:   #e0a429;
  --gold-300:   #f0c46a;

  --ink-900:    #0f172a;
  --ink-700:    #334155;
  --ink-500:    #64748b;
  --ink-400:    #94a3b8;
  --ink-300:    #cbd5e1;
  --ink-200:    #e2e8f0;
  --ink-100:    #f1f5f9;
  --ink-50:     #f8fafc;

  --paper:      #ffffff;
  --bg:         #fbfcfe;
  --bg-alt:     #f4f7fb;

  --silver: #c0c0c0;
  --brand:  #8ab931;
  --ink-950: #0e1118;

  --shadow-sm:  0 2px 6px rgba(11, 28, 61, 0.06);
  --shadow-md:  0 8px 24px rgba(11, 28, 61, 0.08);
  --shadow-lg:  0 20px 50px rgba(11, 28, 61, 0.12);
  --shadow-xl:  0 30px 80px rgba(11, 28, 61, 0.18);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --container:  min(1200px, 92vw);
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-700);
  font-family: "Inter", "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
a { color: var(--navy-600); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--emerald-600); }
img { max-width: 100%; display: block; }

.container { width: var(--container); margin: 0 auto; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gold-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--gold-500);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 8px 18px rgba(200, 134, 29, 0.22);
  letter-spacing: 0.01em;
  font-family: inherit;
}
.btn:hover, .btn:focus-visible {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(200, 134, 29, 0.32);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border: 2px solid var(--navy-300, var(--ink-300));
  box-shadow: none;
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.btn-light:hover {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(11, 28, 61, 0.18);
}
.btn-white:hover {
  background: var(--gold-500);
  color: #fff;
  border-color: var(--gold-500);
}

/* ─── Header / Navigation ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-900);
  border-bottom: 1px solid #2f3440;
}

.nav-wrap,
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.kfi-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.kfi-text {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--silver);
}

.kfi-divider {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--silver);
}

.kfi-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kfi-execution {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--brand);
  font-size: 1.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.kfi-tagline {
  color: var(--silver);
  font-size: 0.95rem;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.nav,
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav ul,
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a,
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav a.nav-active,
.nav a.active,
.main-nav a.active {
  color: var(--brand);
}

.btn-nav {
  background: var(--gold-500) !important;
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  border: 2px solid var(--gold-500) !important;
  text-decoration: none !important;
}
.btn-nav:hover {
  background: var(--gold-400) !important;
  border-color: var(--gold-400) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.nav-item-mega { position: static; }
.nav-item-mega > a { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-arrow { font-size: 0.7rem; transition: transform 0.18s ease; display: inline-block; }
.nav-item-mega.is-mega-hover .nav-arrow,
.nav-item-mega:focus-within .nav-arrow { transform: rotate(180deg); }

/* Mobile-only + toggle (hidden on desktop) */
.nav-mega-toggle { display: none; }

/* Mega menu panel — fixed to the viewport so it always spans the full width
   regardless of which parent <li> is hovered, and never goes off-screen.
   The parent <li> uses JS (mouseenter/mouseleave) to toggle the
   .is-mega-hover class since position: fixed removes the panel from the
   parent's positioning context (CSS :hover wouldn't work across the gap). */
.nav-mega-panel {
  display: none;
  position: fixed;
  top: 76px; /* matches .topbar min-height */
  left: 0;
  right: 0;
  width: 100vw;
  background: #11141c;
  border-top: 1px solid #2f3440;
  border-bottom: 1px solid #2f3440;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 199;
  padding: 1.6rem 0 1.8rem;
  box-sizing: border-box;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.nav-mega-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.nav-mega-panel-4col .nav-mega-inner { grid-template-columns: repeat(4, 1fr); }
.nav-mega-panel-2col .nav-mega-inner { grid-template-columns: repeat(2, 1fr); }
.nav-mega-col { min-width: 0; }
.nav-mega-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ab931;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #2f3440;
}
.nav-mega-heading a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease;
}
.nav-mega-heading a:hover {
  color: #fff;
}
.nav-mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.nav-mega-col a {
  display: block;
  padding: 0.45rem 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: normal;
  line-height: 1.4;
}
.nav-mega-col a:hover {
  color: #fff;
  background: rgba(138, 185, 49, 0.1);
  text-decoration: none;
}

/* Show mega panel when the parent <li> has .is-mega-hover (set by JS) */
.nav-item-mega.is-mega-hover .nav-mega-panel { display: block; }

.menu-btn,
.nav-toggle {
  display: none;
  border: 1px solid #3d4657;
  background: #141926;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-close-btn { display: none; }
.nav-backdrop { display: none; }

/* ─── Detail page breadcrumb ──────────────────────────────── */
.detail-hero {
  background: linear-gradient(135deg, #8ab931 0%, #9ec944 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  margin-bottom: 0;
}
.detail-hero + .section,
.detail-hero + .detail-main,
.detail-hero + .detail-section { margin-top: 0; }
.detail-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.75rem 0 0; letter-spacing: -0.015em; }
.detail-hero p { color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; max-width: 820px; margin: 1.1rem 0 0; line-height: 1.65; }

/* Sub-landing hero: same starting color on the left, gradients to green on the right */
.sub-landing-hero {
  background: linear-gradient(90deg, #1d3b6b 0%, #1d3b6b 35%, #2d8a4e 70%, #8ab931 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sub-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.10) 0, transparent 30%),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.06) 0, transparent 35%);
  z-index: -1;
}
.sub-landing-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.75rem 0 0; letter-spacing: -0.015em; }
.sub-landing-hero p { color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; max-width: 820px; margin: 1.1rem 0 0; line-height: 1.65; }
.sub-landing-hero .crumb a { color: rgba(255, 255, 255, 0.85); }
.sub-landing-hero .crumb-sep { color: rgba(255, 255, 255, 0.55); }

/* Detail content area that follows the green hero */
.detail-main {
  padding: 4rem 0 5rem;
  background: var(--bg);
}

.industry-overview {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, #f8fbef 0%, #ffffff 100%);
}

.industry-highlight-card {
  border-top: 4px solid var(--emerald-500);
  padding: 1.35rem 1.3rem;
}

.industry-highlight-card h3 {
  font-size: 1.08rem;
  margin: 0 0 0.55rem;
  color: var(--navy-900);
}

.industry-highlight-card p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.6;
}

.crumb { margin: 0 0 1.4rem; font-size: 0.95rem; padding-top: 0.25rem; }
.crumb a { color: #fff; text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb-sep { color: rgba(255,255,255,0.75); margin: 0 0.4rem; font-weight: 500; }

/* Breadcrumb on light backgrounds (landing pages) */
.crumb-light {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.crumb-light a {
  color: var(--ink-500);
  text-decoration: none;
  transition: color 0.18s ease;
}
.crumb-light a:hover { color: var(--emerald-600); }
.crumb-light .crumb-current {
  color: var(--navy-900);
}
.crumb-light .crumb-sep {
  color: var(--ink-400);
  margin: 0 0.1rem;
}

/* ─── Hero — gradient with geometric shapes ──────────────── */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(138, 185, 49, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(200, 134, 29, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #0b1c3d 0%, #11305f 45%, #0b1c3d 100%);
}
.hero.hero-short {
  min-height: 480px;
}
.hero.hero-short .hero-inner { padding: 5rem 0 4rem; }
.hero p.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero p.crumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.18s ease;
}
.hero p.crumb a:hover { color: #fff; }
.hero p.crumb .crumb-sep { color: rgba(255, 255, 255, 0.45); margin: 0 0.2rem; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0, transparent 280px),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.05) 0, transparent 320px);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, transparent 70%, rgba(138, 185, 49, 0.1) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero::before,
.hero::after {
  pointer-events: none;
}
.hero::after {
  /* Decorative geometric shapes */
  z-index: -1;
}
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-shapes span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138, 185, 49, 0.35), rgba(138, 185, 49, 0.05));
  filter: blur(2px);
  opacity: 0.55;
  animation: heroFloat 18s ease-in-out infinite;
}
.hero-shapes span:nth-child(1) {
  width: 360px; height: 360px;
  top: -90px; right: -60px;
  border-radius: 50%;
}
.hero-shapes span:nth-child(2) {
  width: 240px; height: 240px;
  bottom: 60px; right: 18%;
  background: linear-gradient(135deg, rgba(200, 134, 29, 0.3), rgba(200, 134, 29, 0.05));
  animation-delay: -6s;
}
.hero-shapes span:nth-child(3) {
  width: 180px; height: 180px;
  top: 30%; right: 8%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
  animation-delay: -12s;
}
.hero-shapes span:nth-child(4) {
  width: 520px; height: 520px;
  bottom: -260px; left: -160px;
  background: linear-gradient(135deg, rgba(138, 185, 49, 0.18), rgba(11, 28, 61, 0));
  border-radius: 50%;
  animation-delay: -3s;
}
.hero-shapes::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 30%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(138, 185, 49, 0.3);
  border-radius: 24px;
  transform: rotate(35deg);
  box-shadow: 0 0 60px rgba(138, 185, 49, 0.18);
}
.hero-shapes::before {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 6%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(8px); }
}

.hero-inner {
  padding: 6rem 0 5rem;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.eyebrow.on-light {
  background: var(--emerald-50);
  border-color: var(--emerald-500);
  color: var(--emerald-700);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 640px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 640px;
}
.hero-stat-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-300);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  margin-top: 0.45rem;
  display: block;
  line-height: 1.4;
}

/* ─── Section system ──────────────────────────────────────── */
.section {
  padding: 6rem 0;
}
.section-tight { padding: 4rem 0; }
.section-light { background: var(--bg-alt); }
.section-dark {
  background: var(--navy-900);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.8); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--emerald-600);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  margin: 0 0 1rem;
  color: var(--navy-900);
}
.section-sub {
  color: var(--ink-500);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}
.section-head.left .section-sub { margin: 0; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-500);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-50), #d8edc4);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--emerald-700);
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--navy-900);
}
.card p { color: var(--ink-500); margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* ─── Service / Industry cards ─────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-top: 4px solid var(--emerald-500);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-500);
  color: inherit;
}
.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-300);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.service-card-icon svg { width: 30px; height: 30px; }
.service-card h3 {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 0 0 0.6rem;
}
.service-card p { color: var(--ink-500); font-size: 0.95rem; margin: 0 0 1.2rem; }
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.service-card ul li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.service-card ul li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--emerald-500);
  border-radius: 999px;
  flex-shrink: 0;
}
.service-card .card-cta {
  margin-top: auto;
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card .card-cta::after { content: "→"; transition: transform 0.18s ease; }
.service-card:hover .card-cta::after { transform: translateX(4px); }

/* ─── Banner (green hero for sub-pages) ───────────────────── */
.banner {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  padding: 5.5rem 0 5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(138, 185, 49, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(200, 134, 29, 0.15) 0%, transparent 50%);
  z-index: -1;
}
.banner h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.banner .cta-duo { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Back link */
.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-500);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ink-200);
}
.back-nav:hover {
  background: var(--navy-50);
  color: var(--navy-900);
  border-color: var(--navy-900);
}

/* ─── Detail panel (used in About, etc.) ───────────────────── */
.panel {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.6rem; margin: 0 0 1rem; color: var(--navy-900); }
.panel h3 { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; color: var(--navy-900); }
.panel p { color: var(--ink-700); margin: 0 0 0.85rem; line-height: 1.7; }

.panel-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.panel-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11,28,61,0.85) 100%);
  color: #fff;
  font-size: 0.9rem;
}

/* ─── Detail page panels (services sub-pages, case-studies) ── */
.detail-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.detail-panel {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.detail-panel > h2 {
  font-size: 1.65rem;
  margin: 0 0 0.8rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.detail-panel > h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--navy-900);
  font-weight: 700;
}
.detail-panel > p {
  color: var(--ink-700);
  line-height: 1.7;
  margin: 0 0 0.95rem;
}
.detail-panel > p.article-lede {
  font-size: 1.12rem;
  color: var(--ink-800);
  font-weight: 500;
  line-height: 1.6;
  border-left: 3px solid var(--emerald-500);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
}

.detail-list {
  list-style: none;
  margin: 0.5rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.detail-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-700);
  line-height: 1.6;
  font-size: 0.97rem;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  box-shadow: 0 0 0 3px rgba(138, 185, 49, 0.18);
}
.detail-list li strong { color: var(--navy-900); font-weight: 700; }

.signature-callout {
  margin: 1.5rem 0 1.2rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(138, 185, 49, 0.08), rgba(200, 134, 29, 0.06));
  border-left: 4px solid var(--gold-500);
  border-radius: 10px;
  color: var(--ink-700);
  font-size: 0.96rem;
  line-height: 1.6;
}
.signature-callout strong { color: var(--navy-900); font-weight: 700; }

.detail-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-200);
}

.detail-media {
  margin: 0 0 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-50);
  box-shadow: var(--shadow-md);
}
.detail-media img {
  width: 100%;
  height: auto;
  display: block;
}
.detail-media--contain img { object-fit: contain; background: #fff; }
.detail-media figcaption {
  padding: 0.85rem 1rem;
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.5;
  font-style: italic;
}

.side-links {
  display: grid;
  gap: 0.5rem;
  margin: 0.6rem 0 1.4rem;
}
.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.18s ease;
}
.side-links a::after {
  content: "→";
  color: var(--emerald-600);
  font-weight: 700;
  transition: transform 0.18s ease;
}
.side-links a:hover {
  background: #fff;
  border-color: var(--emerald-500);
  transform: translateX(2px);
}
.side-links a:hover::after { transform: translateX(3px); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, var(--emerald-50), #d8edc4);
  color: var(--emerald-700);
  border: 1px solid rgba(138, 185, 49, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─── Why KFI feature grid ────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}
.feature-item-centered {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
  justify-self: center;
}

.card-cta-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.card-cta-link:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-800);
}

/* ─── Careers cards (icon-based, no numbers) ─────────────── */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.career-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}
.career-card:hover {
  border-color: var(--emerald-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.career-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1c3d 0%, #1a3a78 60%, #6b9124 130%);
  display: inline-grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(11, 28, 61, 0.18);
}
.career-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}
.career-card h3 {
  font-size: 1.18rem;
  margin: 0 0 0.55rem;
  color: var(--navy-900);
}
.career-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Team picture on Careers */
.careers-team-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.careers-team-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.careers-team-figure figcaption {
  padding: 1rem 1.2rem;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.92rem;
}

/* Careers application form */
.careers-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.2rem;
}
.careers-form .req { color: #c0392b; margin-left: 2px; }
.careers-form .form-field-check { margin-top: 0.3rem; }
.careers-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink-700);
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.5;
}
.careers-form .check-label input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--emerald-500);
}
.careers-form .form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.feature-item:hover {
  border-color: var(--emerald-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-item .num {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.feature-item h4 { font-size: 1.1rem; margin: 0 0 0.45rem; color: var(--navy-900); }
.feature-item p { margin: 0; color: var(--ink-500); font-size: 0.93rem; line-height: 1.6; }

/* ─── Stats strip ─────────────────────────────────────────── */
.stats-strip {
  background: var(--navy-900);
  color: #fff;
  padding: 3rem 0;
}
.stats-strip .grid { gap: 2rem; text-align: center; }
.stat-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-300);
  display: block;
}
.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: block;
}

/* ─── Visual gallery (3 image cards) ──────────────────────── */
.visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }

.visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  margin: 0;
}
.visual-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.visual-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.visual-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.visual-card:hover .visual-card-img img { transform: scale(1.05); }
.visual-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.visual-card h3 { font-size: 1.1rem; margin: 0; color: var(--navy-900); line-height: 1.35; }
.visual-card p { color: var(--ink-500); font-size: 0.92rem; margin: 0; line-height: 1.55; }

/* ─── Owner profile block ─────────────────────────────────── */
.owner-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.owner-headshot-wrap {
  position: relative;
  max-width: 360px;
}
.owner-headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.owner-headshot-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-500), var(--gold-400));
  transform: rotate(-3deg) translate(-12px, 12px);
  z-index: -1;
}

/* Full-length photo variant for Sumeet Kumar on the About page */
.owner-block-fullphoto {
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3.5rem;
}
.owner-fullphoto-wrap {
  position: relative;
  max-width: 360px;
}
.owner-fullphoto {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.owner-fullphoto-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-500), var(--gold-400));
  transform: rotate(-3deg) translate(-12px, 12px);
  z-index: -1;
}

/* Approach list — bullets used in About panels and Sumeet section */
.approach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.approach-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-700);
  line-height: 1.6;
  font-size: 0.95rem;
}
.approach-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  box-shadow: 0 0 0 2.5px rgba(138, 185, 49, 0.16);
}
.approach-list li strong { color: var(--navy-900); }

.owner-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.owner-cred {
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* ─── Industries visual cards ─────────────────────────────── */
.industry-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.industry-card-img {
  height: 180px;
  overflow: hidden;
}
.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.industry-card:hover .industry-card-img img { transform: scale(1.06); }
.industry-card-body { padding: 1.4rem; }
.industry-card h3 { font-size: 1.2rem; margin: 0 0 0.45rem; color: var(--navy-900); }
.industry-card p { color: var(--ink-500); font-size: 0.93rem; margin: 0 0 1rem; line-height: 1.55; }
.industry-card p.industry-tagline {
  color: var(--emerald-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}
.industry-card .card-cta {
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Industries landing — block layout for Outcome / What This Means / Our Approach */
.industry-block {
  max-width: 880px;
  margin: 0 auto;
}
.industry-subhead {
  color: var(--emerald-700);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.industry-subhead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-700));
  border-radius: 999px;
}
.industry-block p {
  color: var(--ink-700);
  line-height: 1.7;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.industry-block p.approach-close {
  font-style: italic;
  color: var(--ink-800);
  border-left: 3px solid var(--emerald-500);
  padding-left: 1rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
}
.industry-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.industry-bullets li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 1rem;
}
.industry-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  box-shadow: 0 0 0 3px rgba(138, 185, 49, 0.18);
}
.industry-bullets li strong { color: var(--navy-900); font-weight: 700; }

/* Inline panel hero image (industries detail) */
.industry-hero-img {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}
.industry-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(11, 28, 61, 0.18), transparent 50%);
  pointer-events: none;
}

/* ─── Case study cards (with thumbnail) ───────────────────── */
.cs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.cs-card-img {
  height: 140px;
  overflow: hidden;
}
.cs-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cs-card:hover .cs-card-img img { transform: scale(1.05); }
.cs-card-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.cs-card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--navy-900); line-height: 1.3; }
.cs-card p { color: var(--ink-500); font-size: 0.9rem; margin: 0 0 0.85rem; flex: 1; line-height: 1.55; }
.cs-card .card-cta { color: var(--emerald-700); font-weight: 600; font-size: 0.85rem; }

.cs-sector-group { margin-bottom: 3rem; scroll-margin-top: 120px; }
.cs-sector-group h3 {
  font-size: 1.3rem;
  color: var(--navy-900);
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink-200);
}
.cs-sector-group .eyebrow { margin-bottom: 0.4rem; }

/* Oval category labels for case study groups */
.cs-cat-oval {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  background: var(--emerald-50, #f1f7ec);
  color: var(--emerald-700, #4d7c0f);
  border: 1px solid var(--emerald-500, #8ab931);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

/* ─── Testimonial carousel ────────────────────────────────── */
.testimonial-carousel {
  --cards-per-view: 3;
  --carousel-gap: 1.25rem;
  position: relative;
  padding: 0 3rem;
}
.testimonial-viewport { overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.45s ease;
}
.testimonial-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--cards-per-view) - 1))) / var(--cards-per-view));
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  color: var(--emerald-500);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.3;
}
.testimonial-quote {
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
  flex: 1;
  font-style: italic;
}
.testimonial-author { color: var(--navy-900); font-weight: 700; font-size: 1rem; margin: 0; }
.testimonial-role { color: var(--ink-500); font-size: 0.85rem; margin: 0.15rem 0 0; }

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  font-size: 1.1rem;
}
.testimonial-nav:hover { background: var(--navy-900); color: #fff; }
.testimonial-nav--prev { left: 0; }
.testimonial-nav--next { right: 0; }
.testimonial-nav[disabled] { opacity: 0.4; cursor: default; }
.testimonial-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 1.5rem; }
.testimonial-dot {
  width: 10px; height: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-300);
  cursor: pointer;
  transition: all 0.2s ease;
}
.testimonial-dot.is-active { background: var(--emerald-500); width: 28px; border-radius: 999px; }

/* ─── Book page ───────────────────────────────────────────── */
.book-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
}
.book-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at right, rgba(138, 185, 49, 0.18) 0%, transparent 60%);
}
.book-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.book-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.book-hero .book-subtitle {
  color: var(--gold-300);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 0.75rem;
}
.book-hero .book-byline { color: rgba(255, 255, 255, 0.9); margin: 0 0 0.3rem; }
.book-hero .book-isbn { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; margin: 0 0 1.6rem; }
.book-hero-img {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.book-cover-img-lg {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.book-hero-img:hover .book-cover-img-lg { transform: rotate(0); }

/* Book hero image (replaces the old video placeholder) */
.book-hero-image {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.book-hero-img:hover { transform: rotate(0); }

/* Dedicated video section below the hero */
.book-video-wrapper {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.book-video-wrapper .book-video-frame {
  max-width: 760px;
  margin: 0 auto;
}
.book-video-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
  color: var(--ink-500);
  font-size: 0.92rem;
}
.book-video-duration {
  background: var(--gold-100, #fff9e6);
  color: var(--gold-700, #8a6a00);
  border: 1px solid var(--gold-500, #d4a017);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.book-video-label {
  font-weight: 500;
}

/* Video placeholder where the book cover used to be */
.book-hero-video {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.book-video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(138, 185, 49, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, rgba(11, 28, 61, 0.85) 0%, rgba(17, 48, 95, 0.85) 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-video-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
}
.book-video-placeholder p {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.play-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: inline-grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 6px rgba(138, 185, 49, 0.18);
}
.play-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.06);
}

/* Book framework list (with 26, 22, icons) */
.book-framework-list {
  display: grid;
  gap: 0.85rem;
}
.book-framework-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f9fbfe;
  border-left: 4px solid var(--emerald-500);
  border-radius: 10px;
  padding: 0.95rem 1rem;
}
.book-framework-num {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-300);
  display: inline-grid;
  place-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(11, 28, 61, 0.18);
}
.book-framework-num img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
.book-framework-item h4 {
  margin: 0 0 0.25rem;
  color: var(--navy-900);
  font-size: 1.02rem;
}
.book-framework-item p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* What You'll Learn grid */
.book-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.book-learn-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.book-learn-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.1rem;
  box-shadow: 0 2px 6px rgba(138, 185, 49, 0.32);
}
.book-learn-item h4 {
  margin: 0 0 0.3rem;
  color: var(--navy-900);
  font-size: 0.98rem;
}
.book-learn-item p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Horizontal info rows (book & elsewhere) */
.horizontal-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--emerald-500);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.9rem;
}
.horizontal-info .hi-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: "Source Serif 4", Georgia, serif;
}
.horizontal-info h4 { margin: 0; color: var(--navy-900); font-size: 1.1rem; }
.horizontal-info p { margin: 0.3rem 0 0; color: var(--ink-700); font-size: 0.95rem; line-height: 1.55; }

/* ─── Bottom CTA panel ────────────────────────────────────── */
.cta-bottom {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(138, 185, 49, 0.2) 0%, transparent 50%);
}
.cta-bottom h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 0.85rem;
}
.cta-bottom p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}
.cta-bottom .cta-duo { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ─── Bottom CTA — articles/frameworks style card ────────── */
.bottom-cta {
  background: linear-gradient(135deg, var(--emerald-50) 0%, #e9efe1 100%);
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--ink-200);
}
.bottom-cta .cta-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(11, 28, 61, 0.18);
  position: relative;
  overflow: hidden;
}
.bottom-cta .cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(138, 185, 49, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.bottom-cta .cta-card > div {
  flex: 1 1 480px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.bottom-cta .cta-card .kicker {
  display: inline-block;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300, #f0c46a);
  background: rgba(240, 196, 106, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.bottom-cta .cta-card h2 {
  color: #fff;
  font-family: var(--font-display, "Source Serif 4", Georgia, serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.bottom-cta .cta-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}
.bottom-cta .cta-card .btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 1rem 1.8rem;
  font-size: 0.95rem;
}
.bottom-cta .cta-card .btn-primary {
  background: var(--gold-500);
  border-color: var(--gold-500);
}
.bottom-cta .cta-card .btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
}
@media (max-width: 720px) {
  .bottom-cta .cta-card {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    gap: 1.5rem;
  }
  .bottom-cta .cta-card > div { flex: 1 1 auto; }
  .bottom-cta .cta-card p { margin: 0 auto; }
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-950);
  color: #d3dae8;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}
.site-footer .footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.85rem;
  text-decoration: none;
}
.site-footer .footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
  max-width: 320px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  margin: 0 0 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer ul li {
  padding: 0;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: inline-block;
  padding: 0.28rem 0;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.3rem;
  font-size: 0.85rem;
}
.site-footer .footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer .footer-meta { color: rgba(255, 255, 255, 0.5); }

.site-footer .logo .kfi-text,
.site-footer .logo .kfi-divider {
  font-size: 1.9rem;
}
.site-footer .logo .kfi-execution {
  font-size: 1.2rem;
}
.site-footer .logo .kfi-tagline {
  font-size: 0.78rem;
}

@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Reveal animation ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.show { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ─── Trust strip ─────────────────────────────────────────── */
.trust-strip { padding: 3rem 0; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); background: #fff; }
.trust-strip .trust-label { color: var(--ink-500); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin: 0 0 1.5rem; text-align: center; }
.trust-items { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; align-items: center; }
.trust-item { color: var(--ink-700); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-item::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--emerald-500), var(--gold-400)); }

/* ─── Service icons with brand color palette ─────────────── */
.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1c3d 0%, #244c95 60%, #6b9124 130%);
  color: #f0c46a;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  position: relative;
  box-shadow: 0 10px 22px rgba(11, 28, 61, 0.18);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.service-card-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(138, 185, 49, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card-icon svg, .service-card-icon img {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
  stroke: #f0c46a;
}
.service-card:hover .service-card-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 14px 28px rgba(138, 185, 49, 0.35);
}
.service-card:hover .service-card-icon::before { opacity: 1; }

/* ─── Floating animation for icons / images ─────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 185, 49, 0.0); }
  50% { box-shadow: 0 0 0 12px rgba(138, 185, 49, 0.0); }
}

/* ─── Section entrance flair ──────────────────────────────── */
.section-head { position: relative; }
.section-head .section-eyebrow { display: inline-block; padding: 0.4rem 0.85rem; background: var(--emerald-50); color: var(--emerald-700); border-radius: 999px; }

/* Animated underline on section titles */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
  transform: translateX(-50%);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-head.left .section-title::after { left: 0; transform: none; }
.section-head:hover .section-title::after { width: 96px; }

/* Staggered card entrance */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.service-card, .industry-card, .cs-card, .feature-item, .insight-card, .panel, .visual-card, .horizontal-info, .testimonial-card {
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Cards stagger using nth-child */
.grid > * { animation-delay: calc(0.05s * var(--i, 0)); }
.service-grid > *, .industry-grid > *, .cs-all-grid > *, .feature-grid > *, .insights-grid > *, .visual-grid > * { animation-delay: calc(0.07s * var(--i, 0)); }

/* Visual card hover */
.visual-card { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease; }
.visual-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* Stat number ticker */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.stat-num, .hero-stat-num { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Button micro-interactions */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.45s ease, height 0.45s ease;
}
.btn:hover::before { width: 280px; height: 280px; }
.btn > * { position: relative; z-index: 1; }

/* Hero stats floating cards */
.hero-stats > div {
  transition: transform 0.3s ease;
}
.hero-stats > div:hover { transform: translateY(-3px); }

/* Hero text reveal */
.hero h1, .hero .lead, .hero .eyebrow, .hero-actions, .hero-stats > div {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .lead { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.hero-stats > div:nth-child(1) { animation-delay: 0.45s; }
.hero-stats > div:nth-child(2) { animation-delay: 0.55s; }
.hero-stats > div:nth-child(3) { animation-delay: 0.65s; }

/* Book cover tilt animation */
.book-cover-img-lg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.book-cover-img-lg:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.15);
}

/* Owner headshot hover */
.owner-headshot { transition: transform 0.4s ease; }
.owner-headshot-wrap:hover .owner-headshot { transform: scale(1.03); }

/* Horizontal info hover */
.horizontal-info { transition: all 0.3s ease; }
.horizontal-info:hover { transform: translateX(6px); border-left-color: var(--gold-500); }

/* CTA bottom subtle motion */
.cta-bottom h2 { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.cta-bottom p { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.cta-bottom .cta-duo { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

/* Smooth scroll behavior */
html { scroll-behavior: smooth; }

/* Number counter animation */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Insight cards ───────────────────────────────────────── */
.insight-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.insight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-400));
}
.insight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.insight-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1c3d 0%, #244c95 60%, #6b9124 130%);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 22px rgba(11, 28, 61, 0.18);
  position: relative;
  overflow: hidden;
}
.insight-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(240, 196, 106, 0.18), transparent 60%);
  pointer-events: none;
}
.insight-icon svg { width: 36px; height: 36px; }
.insight-icon img {
  width: 38px;
  height: 38px;
  display: block;
  filter: brightness(0) saturate(100%) invert(85%) sepia(28%) saturate(810%) hue-rotate(353deg) brightness(102%) contrast(96%);
  position: relative;
  z-index: 1;
}
.insight-card:hover .insight-icon { transform: translateY(-2px); }

/* Per-card accent color variations for visual differentiation */
.insight-card:nth-child(1) .insight-icon {
  background: linear-gradient(135deg, #0b1c3d 0%, #1a3a78 60%, #6b9124 130%);
}
.insight-card:nth-child(2) .insight-icon {
  background: linear-gradient(135deg, #112a5b 0%, #244c95 60%, #8ab931 130%);
}
.insight-card:nth-child(3) .insight-icon {
  background: linear-gradient(135deg, #1a3a78 0%, #6b9124 60%, #f0c46a 150%);
}
.insight-card h3 { font-size: 1.4rem; margin: 0 0 0.6rem; color: var(--navy-900); }
.insight-card p { color: var(--ink-500); margin: 0 0 1.5rem; flex: 1; }

/* Hero CTA row for insight hero */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.btn-on-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Section heads on the insights landing (lede + sub paragraphs) */
.section-head .section-lede {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink-800);
  line-height: 1.55;
  max-width: 920px;
  margin: 0 auto 1rem;
  text-align: center;
}
.section-head .section-sub {
  font-size: 1.02rem;
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.insight-cards-grid {
  margin-top: 3rem;
}

/* ─── Articles categories ─────────────────────────────────── */
.cat-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--emerald-500);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}
.cat-card:hover { box-shadow: var(--shadow-sm); border-color: var(--emerald-500); }
.cat-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cat-card h3 { margin: 0; color: var(--navy-900); font-size: 1.2rem; }
.cat-card p { margin: 0.3rem 0 0; color: var(--ink-500); font-size: 0.92rem; }
.cat-toggle {
  background: var(--navy-900);
  color: #fff;
  border: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cat-articles {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ink-200);
}
.cat-articles.is-open { display: block; }
.cat-articles a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  color: var(--ink-700);
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.93rem;
}
.cat-articles a:last-child { border-bottom: 0; }
.cat-articles a:hover { color: var(--emerald-700); }
.cat-articles a::after { content: "→"; color: var(--ink-400); }

.article-block {
  display: none;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.article-block.is-active { display: block; }
.article-block h2 { color: var(--navy-900); margin: 0 0 1rem; font-size: 1.85rem; }
.article-block h3 { color: var(--emerald-700); margin: 1.5rem 0 0.55rem; font-size: 1.2rem; }
.article-block p { line-height: 1.75; margin: 0 0 0.9rem; color: var(--ink-700); }
.article-block ul { padding-left: 1.2rem; line-height: 1.75; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink-100);
  color: var(--navy-900);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border: 0;
  cursor: pointer;
}
.article-back:hover { background: var(--navy-900); color: #fff; }

/* ─── Frameworks ──────────────────────────────────────────── */
.fw-cat {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.85rem;
}
.fw-cat-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 1rem; }
.fw-cat-head h3 { margin: 0; color: var(--navy-900); font-size: 1.15rem; }
.fw-cat-toggle {
  background: var(--emerald-500);
  color: #fff;
  border: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.fw-cat-body { display: none; margin-top: 1rem; }
.fw-cat.is-open .fw-cat-body { display: grid; gap: 0.6rem; }
.fw-item {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.fw-item:hover { background: var(--emerald-50); border-color: var(--emerald-500); }
.fw-item h4 { margin: 0; color: var(--navy-900); font-size: 1rem; }
.fw-item p { margin: 0.2rem 0 0; color: var(--ink-500); font-size: 0.85rem; }

/* ─── Contact form ────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { color: var(--navy-900); font-weight: 600; font-size: 0.9rem; }
.form-required-mark::after { content: " *"; color: var(--gold-500); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--ink-300);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: all 0.18s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(138, 185, 49, 0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.contact-list { display: grid; gap: 0.85rem; }
.contact-item {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.contact-item strong {
  color: var(--navy-900);
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.contact-item span, .contact-item a { color: var(--ink-700); font-size: 0.95rem; text-decoration: none; }

/* Contact overlap section — form panel slides up over the hero */
.contact-overlap-section {
  margin-top: -4rem;
  padding: 0 0 4rem;
  position: relative;
  z-index: 2;
}
.contact-form-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem 2rem;
  border: 1px solid var(--ink-200);
}
.contact-aside {
  display: grid;
  gap: 1.2rem;
}
.contact-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ─── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-shell, .owner-block, .owner-block-fullphoto, .contact-layout { grid-template-columns: 1fr; }
  .book-hero-grid { grid-template-columns: 1fr; }
  .book-learn-grid { grid-template-columns: 1fr; }
  .book-hero-img { max-width: 280px; margin: 2rem auto 0; }
  .visual-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 880px) {
  .section { padding: 4.5rem 0; }
  .hero { min-height: 600px; }
  .hero-inner { padding: 4.5rem 0 4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .visual-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feature-grid-2col { grid-template-columns: 1fr; }
  .careers-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-carousel { --cards-per-view: 1; padding: 0; }
  .testimonial-nav--prev { left: 0; }
  .testimonial-nav--next { right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .nav,
  .main-nav {
    position: fixed; top: 0; right: 0;
    width: 80vw; max-width: 80vw; height: 100dvh;
    background: #11141c;
    border-left: 1px solid #2f3440;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem 0.9rem 1rem;
    display: flex;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%); opacity: 0; pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 50;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.open,
  .main-nav.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .nav a,
  .main-nav a { display: block; padding: 0.8rem 0.2rem; color: #fff; }
  .nav a + a,
  .main-nav a + a,
  .main-nav li + li { border-top: 1px solid #2f3440; }
  .nav-item-mega { position: static; display: flex; align-items: center; flex-wrap: wrap; }
  .nav-item-mega > a {
    border-top: none;
    padding: 0.8rem 0.2rem;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
  }
  .nav-item-mega + a, .nav-item-mega ~ a { border-top: 1px solid #2f3440; }

  /* Show + toggle button on mobile only — sits to the right of the <a> */
  .nav-mega-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 0.2rem 0 0.5rem;
    border: 1px solid #2f3440;
    border-radius: 6px;
    background: #161b29;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-arrow { display: none; }

  /* Panel collapses inline and is toggled via JS by tapping the + icon */
  .nav-mega-panel {
    position: static;
    display: none;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    margin: 0;
  }
  .nav-mega-panel::before { display: none; }
  .nav-item-mega.is-mega-open .nav-mega-panel { display: block; }
  .nav-mega-inner { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; max-width: 100%; padding: 0 0.5rem; }
  /* 4-col panels (Industries, Case Studies) also collapse to 2-col on tablet */
  .nav-mega-panel-4col .nav-mega-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-mega-col a { padding: 0.45rem 0.2rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
  .nav-mega-col a:hover { background: transparent; color: #fff; }
  .nav-mega-heading { padding-bottom: 0.2rem; margin-bottom: 0.3rem; }
  .menu-btn,
  .nav-toggle { display: inline-flex; }
  .nav-close-btn {
    display: inline-flex; align-self: flex-end; justify-content: center; align-items: center;
    width: 2rem; height: 2rem; margin-bottom: 0.4rem;
    border: 1px solid #3d4657; border-radius: 8px;
    background: #161b29; color: #fff; font-size: 1.25rem; line-height: 1;
    cursor: pointer;
  }
  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.42);
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 30;
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .kfi-text, .kfi-divider { font-size: 1.9rem; }
  .kfi-execution { font-size: 1.15rem; }
  .kfi-tagline { font-size: 0.75rem; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .careers-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .article-block { padding: 1.5rem; }
  /* Force ALL mega menus to single column on small phones, overriding the
     2-col/3-col/4-col variants. */
  .nav-mega-inner,
  .nav-mega-inner,
  .nav-mega-panel-4col .nav-mega-inner,
  .nav-mega-panel-2col .nav-mega-inner { grid-template-columns: 1fr !important; gap: 0.5rem; padding: 0; }
}

/* --- Insights detail (articles.html, frameworks.html) ----- */
.insight-hero {
  background: linear-gradient(135deg, #f1f7ec 0%, #e9efe1 100%);
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--ink-200);
}
.insight-hero .crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.insight-hero .crumb a {
  color: var(--ink-500);
  text-decoration: none;
  transition: color 0.18s ease;
}
.insight-hero .crumb a:hover { color: var(--emerald-600); }
.insight-hero .crumb .crumb-current { color: var(--navy-900); }
.insight-hero .crumb .crumb-sep { color: var(--ink-400); margin: 0 0.1rem; }
.insight-hero .kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-600);
  background: rgba(138, 185, 49, 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.insight-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--navy-900);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  max-width: 900px;
}
.insight-hero h1 em {
  font-style: italic;
  color: var(--emerald-600);
  font-weight: 700;
}
.insight-hero .lede {
  font-size: 1.1rem;
  color: var(--ink-700);
  max-width: 760px;
  line-height: 1.65;
}

.insight-categories { padding: 4rem 0 5rem; background: #fff; }
.article-categories { display: grid; gap: 1rem; max-width: 1080px; margin: 0 auto; }

/* Frameworks page: 2 category blocks per row, 3 rows */
.fw-rows { display: grid; gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.fw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fw-cat { scroll-margin-top: 120px; }
.fw-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 1.1rem 1.4rem;
  border-radius: 14px 14px 0 0;
}
.fw-cat-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.fw-cat-head .fw-count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #fff;
}
.fw-cat-body {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 0.4rem 0.6rem;
}
.fw-topic {
  border-bottom: 1px solid var(--ink-100);
  scroll-margin-top: 120px;
}
.fw-topic:last-child { border-bottom: 0; }
.fw-topic > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
  border-radius: 8px;
  transition: background 0.18s ease;
}
.fw-topic > summary::-webkit-details-marker { display: none; }
.fw-topic > summary:hover { background: var(--ink-50); }
.fw-topic[open] > summary { color: var(--emerald-700); }
.fw-topic > summary .fw-topic-title { flex: 1; }
.fw-topic > summary .fw-topic-chev {
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  background: rgba(138, 185, 49, 0.12);
  color: var(--emerald-700);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.25s ease;
}
.fw-topic[open] > summary .fw-topic-chev { transform: rotate(45deg); background: var(--emerald-500); color: #fff; }
.fw-topic-body {
  padding: 0 0.9rem 1rem 0.9rem;
  color: var(--ink-700);
  line-height: 1.7;
  font-size: 0.96rem;
}
.fw-topic-body p { margin: 0 0 0.85rem; }
.fw-topic-body ul { margin: 0 0 0.85rem; padding-left: 1.4rem; }
.fw-topic-body li { margin: 0 0 0.35rem; }
@media (max-width: 880px) {
  .fw-row { grid-template-columns: 1fr; }
}

.article-cat {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(11, 28, 61, 0.04);
}
.article-cat:hover { border-color: var(--emerald-300, var(--emerald-500)); box-shadow: 0 6px 20px rgba(11, 28, 61, 0.08); }
.article-cat[open] {
  border-color: var(--emerald-500);
  box-shadow: 0 10px 30px rgba(11, 28, 61, 0.1);
}

.article-cat > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  transition: background 0.2s ease;
  position: relative;
}
.article-cat > summary::-webkit-details-marker { display: none; }
.article-cat > summary:hover { background: var(--ink-50); }
.article-cat[open] > summary { background: linear-gradient(90deg, rgba(138, 185, 49, 0.06), transparent 60%); border-bottom: 1px solid var(--ink-200); }

.article-cat-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--ink-100);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 28, 61, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-cat:hover .article-cat-thumb { transform: scale(1.05); box-shadow: 0 6px 16px rgba(11, 28, 61, 0.2); }

.article-cat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald-600);
  font-style: italic;
  min-width: 2.5rem;
}
.article-cat-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}
.article-cat-count {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-500);
  font-weight: 500;
  background: var(--ink-100);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.article-cat-chev {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--emerald-600);
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(138, 185, 49, 0.12);
  transition: transform 0.25s ease;
}
.article-cat[open] .article-cat-chev { transform: rotate(45deg); background: var(--emerald-500); color: #fff; }

.article-cat-body { padding: 1.8rem 1.8rem 2rem; display: grid; gap: 1.8rem; background: var(--ink-50); }
.article-item {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--emerald-500);
  transition: all 0.2s ease;
}
.article-item:hover { box-shadow: 0 4px 16px rgba(11, 28, 61, 0.06); transform: translateX(2px); }
.article-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 0.6rem;
}
.article-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 0.7rem;
  line-height: 1.3;
}
.article-item h3 a {
  color: inherit;
  text-decoration: none;
}
.article-item h3 a:hover {
  color: var(--emerald-700);
  text-decoration: underline;
}
.article-item p { color: var(--ink-700); margin: 0 0 0.8rem; line-height: 1.6; font-size: 0.96rem; }
.article-toc {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.article-toc li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-600);
  line-height: 1.5;
}
.article-toc li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--emerald-600);
  font-weight: 700;
}

@media (max-width: 720px) {
  .article-cat > summary { grid-template-columns: auto 1fr auto; gap: 0.7rem; padding: 1.1rem 1rem; }
  .article-cat-count { display: none; }
  .article-cat-num { font-size: 1.2rem; min-width: 2rem; }
  .article-cat-title { font-size: 1.05rem; }
  .article-cat-body { padding: 1.2rem 1rem 1.5rem; gap: 1.2rem; }
  .article-item { padding: 1.1rem 1.1rem; }
  .article-item h3 { font-size: 1.05rem; }
}
