/* =========================================================
   Theorem Bridge Solution
   styles.css
   Mobile-first, modern enterprise design system
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand
     Adopted from Future Bridge Solutions visual system:
     deep teal-navy + warm coral accent, airy off-white surfaces. */
  --navy: #1E3D52;
  --navy-deep: #0A1F44;
  /* Sampled from assets/home/home-impact-bg.png copy space — letterbox + scrim blend */
  --home-impact-fill: #122137;
  --blue: #1E5AA5;
  --accent: #4A90E2;

  /* Coral accent — matches the bridge mark from the previous brand */
  --coral: #E25555;
  --coral-600: #C8423E;
  --coral-soft: rgba(226, 85, 85, 0.12);

  --white: #FFFFFF;
  --bg: #F7F8FA;
  --border: #E5E7EB;
  --text: #1F2937;
  --muted: #6B7280;

  /* Tints */
  --navy-700: #163243;
  --navy-600: #1a3849;
  --blue-50: #eaf1fb;
  --blue-100: #d6e4f6;
  --accent-soft: rgba(74, 144, 226, 0.12);

  /* Type */
  --font-sans: 'Inter', Helvetica, Arial, sans-serif;
  --font-display: 'Manrope', 'Inter', Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 25px 60px rgba(10, 31, 68, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 720ms;

  /* Header */
  --header-h: 72px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--navy);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: -0.012em;
  line-height: 1.18;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 0 0 14px;
}

.eyebrow--light {
  color: var(--accent);
}

.text-accent {
  background: linear-gradient(120deg, var(--accent), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--blue);
}

.text-link:hover {
  color: var(--navy);
}

.text-link--light {
  color: var(--white);
}

.text-link--light:hover {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.btn-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.hero-actions--resource {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.btn-on-hero {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45),
    0 8px 20px rgba(30, 90, 165, 0.32);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 90, 165, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 90, 165, 0.36);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Glass lives on ::before so backdrop-filter is not on a fixed-position ancestor
     of the mobile drawer (that would cage position:fixed to this sticky box). */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: background var(--t-med) var(--ease);
}

.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.96);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Slightly stronger bar while the mobile drawer is open (readability over dimmed page). */
body.mobile-nav-open .site-header::before {
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: clamp(160px, 42vw, 320px);
  object-fit: contain;
  flex-shrink: 1;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand-tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .brand-tagline {
    display: none;
  }
}

.brand:hover .brand-logo {
  opacity: 0.92;
}

/* Nav */
.primary-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text);
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.nav-link--button {
  font-family: inherit;
}

.nav-link:hover,
.nav-item.is-open > .nav-link {
  color: var(--blue);
  background: var(--blue-50);
}

.caret {
  width: 10px;
  height: 8px;
  transition: transform var(--t-fast) var(--ease);
}

.nav-item.is-open .caret {
  transform: rotate(180deg);
}

.nav-cta .btn {
  margin-left: 8px;
}

/* Mega menu */
.mega-panel,
.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    visibility var(--t-fast) var(--ease);
  z-index: 90;
  pointer-events: none;
}

.has-mega .mega-panel {
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(1100px, calc(100vw - 40px));
  padding: 32px;
}

.has-mega.is-open .mega-panel,
.has-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.has-mega.is-open .mega-panel {
  transform: translate(-50%, 0);
}

.has-dropdown .dropdown-panel {
  right: 0;
  min-width: 240px;
  padding: 10px;
}

.has-dropdown.is-open .dropdown-panel {
  transform: translateY(0);
}

.dropdown-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
}

.dropdown-list a:hover {
  background: var(--blue-50);
  color: var(--blue);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 36px;
  padding: 0;
}

.mega-intro h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.mega-lead {
  color: var(--muted);
  font-size: 0.95rem;
}

.mega-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mega-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.mega-links a:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
  transform: translateY(-1px);
}

.mega-link-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.96rem;
}

.mega-link-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ---------- Services mega (CBTS-style click + hover rail) ---------- */
.has-mega-services,
.has-mega-resources {
  position: static;
}

@media (min-width: 1280px) {
  .site-header:has(.has-mega-services.is-open),
  .site-header:has(.has-mega-resources.is-open) {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
  }
}

.has-mega-services .mega-panel.mega-panel--cbts,
.has-mega-resources .mega-panel.mega-panel--cbts {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  top: var(--header-h);
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 28px 56px rgba(10, 31, 68, 0.12);
  transform: translateY(-14px);
  z-index: 150;
  max-height: min(78vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 240ms var(--ease), transform 320ms var(--ease),
    visibility 240ms var(--ease);
}

.has-mega-services.is-open .mega-panel.mega-panel--cbts,
.has-mega-resources.is-open .mega-panel.mega-panel--cbts {
  transform: translateY(0);
  z-index: 180;
}

.mega-cbts-dismiss {
  position: absolute;
  top: 14px;
  right: max(20px, calc((100% - var(--container)) / 2 + 8px));
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.mega-cbts-dismiss:hover {
  color: var(--navy);
  background: rgba(10, 31, 68, 0.06);
}

.mega-cbts-dismiss svg {
  width: 18px;
  height: 18px;
}

.mega-cbts-inner {
  flex: 1;
  min-height: 0;
  padding: 24px 0 28px;
  overflow: auto;
}

.mega-cbts-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 280px);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.mega-cbts-rail {
  background: linear-gradient(180deg, #eef2f6 0%, #e8ecf1 100%);
  border-radius: var(--radius-sm);
  padding: 20px 16px 20px 18px;
  border: 1px solid rgba(10, 31, 68, 0.06);
}

.mega-cbts-rail-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.mega-cbts-cats {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-cbts-cats li {
  margin: 0;
}

.mega-cbts-cat {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color 180ms var(--ease), background 180ms var(--ease),
    font-weight 180ms var(--ease);
}

.mega-cbts-cat::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 220ms var(--ease), transform 280ms var(--ease);
}

.mega-cbts-cat:hover,
.mega-cbts-cat:focus-visible {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.mega-cbts-cat.is-active {
  font-weight: 700;
  color: var(--navy);
}

.mega-cbts-cat.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.mega-cbts-body {
  position: relative;
  min-width: 0;
  padding-top: 4px;
}

.mega-cbts-pane {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 280ms var(--ease),
    visibility 220ms var(--ease);
}

.mega-cbts-pane.is-active {
  position: relative;
  inset: auto;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-cbts-pane-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  transition: color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}

.mega-cbts-pane-head:hover {
  color: var(--navy);
  gap: 14px;
}

.mega-cbts-pane-arrow {
  font-size: 1.1em;
  line-height: 1;
}

.mega-cbts-pane-lead {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52ch;
}

.mega-cbts-subgrid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.mega-cbts-subgrid li {
  margin: 0;
}

.mega-cbts-subgrid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 2px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), border-color 180ms var(--ease),
    transform 180ms var(--ease);
}

.mega-cbts-subgrid a:hover {
  background: var(--blue-50);
  border-color: var(--blue-100);
  transform: translateY(-1px);
}

.mega-cbts-subgrid a:hover .mega-cbts-sub-title {
  color: var(--navy);
}

.mega-cbts-sub-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms var(--ease);
}

.mega-cbts-sub-title::after {
  content: '→';
  font-size: 0.85em;
  opacity: 0.75;
}

.mega-cbts-sub-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.mega-cbts-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mega-cbts-spotlight {
  position: relative;
  min-width: 0;
  padding-top: 4px;
}

.mega-cbts-spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 320ms var(--ease),
    visibility 240ms var(--ease);
}

.mega-cbts-spot.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-cbts-spot-visual {
  height: 132px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mega-cbts-spot-visual--a {
  background: linear-gradient(135deg, #1e3d52 0%, #2a6bb5 55%, #4a90e2 100%);
}

.mega-cbts-spot-visual--b {
  background: linear-gradient(135deg, #0a1f44 0%, #1e5aa5 50%, #3d7dcc 100%);
}

.mega-cbts-spot-visual--c {
  background: linear-gradient(135deg, #163243 0%, #1e5aa5 45%, #5ab0e8 100%);
}

.mega-cbts-spot-visual--d {
  background: linear-gradient(135deg, #1a3849 0%, #c8423e 35%, #e25555 100%);
}

.mega-cbts-spot-visual--e {
  background: linear-gradient(135deg, #0f2740 0%, #1e5aa5 40%, #6b9fe8 100%);
}

.mega-cbts-spot-visual--f {
  background: linear-gradient(135deg, #1e3d52 0%, #4a6fa5 50%, #8ab8ff 100%);
}

.mega-cbts-spot-visual span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Services mega: spotlight photography (scoped so Resources can use its own art below) */
#mega-services-panel .mega-cbts-spot-visual {
  background-color: var(--navy-deep);
}

#mega-services-panel .mega-cbts-spot-visual--a,
#mega-services-panel .mega-cbts-spot-visual--b,
#mega-services-panel .mega-cbts-spot-visual--c,
#mega-services-panel .mega-cbts-spot-visual--d,
#mega-services-panel .mega-cbts-spot-visual--e,
#mega-services-panel .mega-cbts-spot-visual--f {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    none;
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

#mega-services-panel .mega-cbts-spot-visual--a {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/services-application-rationalization.jpg');
}

#mega-services-panel .mega-cbts-spot-visual--b {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/services-infrastructure-rationalization.jpg');
}

#mega-services-panel .mega-cbts-spot-visual--c {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/services-cost-optimization.jpg');
}

#mega-services-panel .mega-cbts-spot-visual--d {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/services-security-risk-reduction.jpg');
}

#mega-services-panel .mega-cbts-spot-visual--e {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/services-organizational-transformation.jpg');
}

#mega-services-panel .mega-cbts-spot-visual--f {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/services-ai-future-readiness.jpg');
}

/* Resources mega: spotlight photography (--f is AI brief in markup order) */
#mega-resources-panel .mega-cbts-spot-visual {
  background-color: var(--navy-deep);
}

#mega-resources-panel .mega-cbts-spot-visual--a,
#mega-resources-panel .mega-cbts-spot-visual--b,
#mega-resources-panel .mega-cbts-spot-visual--c,
#mega-resources-panel .mega-cbts-spot-visual--d,
#mega-resources-panel .mega-cbts-spot-visual--e,
#mega-resources-panel .mega-cbts-spot-visual--f {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    none;
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

#mega-resources-panel .mega-cbts-spot-visual--a {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/resources-company-overview.jpg');
}

#mega-resources-panel .mega-cbts-spot-visual--b {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/resources-application-checklist.jpg');
}

#mega-resources-panel .mega-cbts-spot-visual--c {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/resources-infrastructure-guide.jpg');
}

#mega-resources-panel .mega-cbts-spot-visual--d {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/resources-case-studies.jpg');
}

#mega-resources-panel .mega-cbts-spot-visual--e {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/resources-insights.jpg');
}

#mega-resources-panel .mega-cbts-spot-visual--f {
  background-image: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.15) 0%,
      rgba(10, 31, 68, 0.7) 100%
    ),
    url('assets/mega/resources-ai-readiness-brief.jpg');
}

.mega-cbts-spot-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.35;
}

.mega-cbts-spot-desc {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.mega-cbts-spot-cta {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mega-cbts-spot-cta:hover {
  gap: 10px;
}

@media (max-width: 1100px) and (min-width: 1024px) {
  .mega-cbts-layout {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 240px);
    gap: 18px;
  }

  .mega-cbts-subgrid {
    gap: 8px 14px;
  }
}

@media (max-width: 1279px) {
  .has-mega-services .mega-panel.mega-panel--cbts,
  .has-mega-resources .mega-panel.mega-panel--cbts {
    position: static;
    max-height: none;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: var(--radius);
    overflow: visible;
  }

  .has-mega-services.is-open .mega-panel.mega-panel--cbts,
  .has-mega-resources.is-open .mega-panel.mega-panel--cbts {
    transform: none;
  }

  .mega-cbts-dismiss {
    top: 8px;
    right: 8px;
  }

  .mega-cbts-inner {
    padding: 12px 0 8px;
  }

  .mega-cbts-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mega-cbts-rail {
    padding: 14px;
  }

  .mega-cbts-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mega-cbts-cat {
    font-size: 0.82rem;
    padding: 10px 8px;
  }

  .mega-cbts-body {
    min-height: 0;
  }

  .mega-cbts-pane {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .mega-cbts-pane.is-active {
    display: block;
  }

  .mega-cbts-subgrid {
    grid-template-columns: 1fr;
  }

  .mega-cbts-spot {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .mega-cbts-spot.is-active {
    display: block;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 220;
  margin-left: auto;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.nav-drawer-close {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Allow hero-visual floats to extend past the band (client-approved) */
  overflow: visible;
  background: radial-gradient(120% 80% at 80% 0%, #163b7a 0%, var(--navy) 55%, #07173a 100%);
  color: var(--white);
  padding: 96px 0 140px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hero-glow--a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -160px;
  right: -120px;
}

.hero-glow--b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #2c7bd0, transparent 70%);
  bottom: -160px;
  left: -120px;
  opacity: 0.4;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), transparent 75%);
}

.hero-inner {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.075rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.18);
}

/* Hero visual */
.hero-visual {
  --hv-main-offset: 56px;
  /* Shared vertical anchor: main top edge + Posture card “floats” on this line */
  --hv-stack-y: 56px;
  position: relative;
  overflow: visible;
  height: 500px;
}

.hv-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  color: var(--white);
}

.hv-card--main {
  top: var(--hv-stack-y);
  left: var(--hv-main-offset);
  right: 28px;
  padding: 22px;
  z-index: 1;
}

.hv-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.hv-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hv-dot:nth-child(1) {
  background: #ff6058;
}
.hv-dot:nth-child(2) {
  background: #ffbd2e;
}
.hv-dot:nth-child(3) {
  background: #28c840;
}

.hv-card-title {
  margin-left: auto;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.hv-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.hv-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.hv-stat-trend {
  font-size: 0.78rem;
  font-weight: 600;
}

.trend-down {
  color: #6ee7b7;
}

.trend-up {
  color: #93c5fd;
}

.hv-chart {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px;
  height: 120px;
  margin-bottom: 14px;
}

.hv-chart-line {
  vector-effect: non-scaling-stroke;
}

.hv-chart svg {
  width: 100%;
  height: 100%;
}

.hv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.swatch-keep {
  background: #4ade80;
}
.swatch-consolidate {
  background: var(--accent);
}
.swatch-retire {
  background: #f87171;
}

.hv-card--mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  width: 220px;
}

/* Posture — centered on main top edge so it reads as floating on the dashboard */
.hv-card--shield {
  top: var(--hv-stack-y);
  left: max(-40px, calc(var(--hv-main-offset) - 56px));
  right: auto;
  bottom: auto;
  z-index: 3;
  transform: translateY(-52%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.hv-card--shield:hover {
  transform: translateY(calc(-52% - 5px));
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Dependencies — pulled down/right off the dashboard so chart + legend stay clear */
.hv-card--nodes {
  bottom: -28px;
  right: -72px;
  width: 240px;
  z-index: 2;
}

.hv-shield {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hv-shield svg {
  width: 22px;
  height: 22px;
}

.hv-mini-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.hv-mini-value {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2px 0 0;
}

.hv-nodes {
  position: relative;
  width: 76px;
  height: 56px;
  flex-shrink: 0;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
}

.node-1 {
  top: 14px;
  left: 8px;
}
.node-2 {
  top: 24px;
  left: 36px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.node-3 {
  top: 6px;
  right: 8px;
}
.node-4 {
  bottom: 4px;
  right: 14px;
}
.node-5 {
  bottom: 4px;
  left: 14px;
}

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
  fill: none;
}

/* ---------- Value bar (floats between hero and next section) ---------- */
.value-bar {
  background: transparent;
  border-bottom: 1px solid var(--border);
  /* Pull the card up over the hero; cap keeps small screens from covering CTAs */
  margin-top: clamp(-40px, -7vw, -104px);
  padding: 0 0 64px;
  position: relative;
  z-index: 12;
}

.value-grid {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 6px -1px rgba(10, 31, 68, 0.06),
    0 22px 44px -12px rgba(10, 31, 68, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

/* Let the copy column shrink inside flex so the card cannot overflow the viewport */
.value-item > div:not(.value-icon) {
  min-width: 0;
  flex: 1;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-title {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
  font-size: 0.98rem;
  overflow-wrap: break-word;
}

.value-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: break-word;
}

/* ---------- Home impact banner (full-bleed hero art + copy) ---------- */
.home-impact {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  min-height: clamp(380px, min(52vw, 44vh), 560px);
  background: var(--home-impact-fill);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.home-impact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--home-impact-fill);
}

.home-impact__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Full artwork visible; --home-impact-fill fills letterboxing */
  object-fit: contain;
  object-position: right center;
}

.home-impact__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Same hue as --home-impact-fill (rgb 18,33,55) so overlay does not show a seam */
  background: linear-gradient(
    90deg,
    rgba(18, 33, 55, 0.72) 0%,
    rgba(18, 33, 55, 0.48) 28%,
    rgba(18, 33, 55, 0.22) 52%,
    rgba(18, 33, 55, 0.06) 72%,
    transparent 100%
  );
}

/* Same horizontal band as .hero-inner: full .container, not a narrow nested max-width */
.home-impact .home-impact__inner {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}

.home-impact__copy {
  max-width: min(40rem, 100%);
}

.home-impact__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw + 0.6rem, 2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-impact__list {
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-impact__list li {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 3px solid rgba(74, 144, 226, 0.95);
  line-height: 1.35;
}

.home-impact__list a {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  font-size: clamp(0.95rem, 0.4vw + 0.88rem, 1.05rem);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.home-impact__list a:hover {
  color: #fff;
}

.home-impact__list a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
  border-radius: 2px;
}

.home-impact__inline-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
  border-radius: 2px;
}

.home-impact__tagline {
  margin: 0;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.home-impact__inline-cta {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #b8d9ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 217, 255, 0.45);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.home-impact__inline-cta:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 640px) {
  .home-impact__scrim {
    background: linear-gradient(
      180deg,
      rgba(18, 33, 55, 0.78) 0%,
      rgba(18, 33, 55, 0.42) 42%,
      rgba(18, 33, 55, 0.1) 72%,
      transparent 100%
    );
  }
}

@media (min-width: 900px) {
  .home-impact__scrim {
    background: linear-gradient(
      90deg,
      rgba(18, 33, 55, 0.68) 0%,
      rgba(18, 33, 55, 0.4) 34%,
      rgba(18, 33, 55, 0.12) 56%,
      transparent 78%
    );
  }
}

/* ---------- Section base ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head--center {
  margin: 0 auto 56px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-title--light {
  color: var(--white);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-50);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card__body {
  padding: 28px;
}

a.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(30, 90, 165, 0.25);
  position: relative;
}

.service-card__body .service-icon {
  margin-top: -36px;
  border: 3px solid var(--white);
  box-shadow: 0 10px 22px rgba(30, 90, 165, 0.28);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  position: relative;
}

.service-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  position: relative;
}

/* ---------- Content carousel (home: services & resources) ---------- */
.content-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 20px;
}

.content-carousel__viewport {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-lg);
  outline: none;
}

.content-carousel__btn--prev {
  grid-column: 1;
  grid-row: 1;
}

.content-carousel__btn--next {
  grid-column: 3;
  grid-row: 1;
}

.content-carousel__viewport:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.content-carousel__track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.content-carousel__slide {
  flex-shrink: 0;
  box-sizing: border-box;
}

.content-carousel__slide .service-card,
.content-carousel__slide .resource-card {
  height: 100%;
}

.content-carousel__btn {
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.content-carousel__btn:hover:not(:disabled) {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue);
}

.content-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.content-carousel__dots {
  grid-column: 1 / -1;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.content-carousel__dots li {
  margin: 0;
  padding: 0;
}

.content-carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.content-carousel__dot:hover {
  background: var(--blue-100);
}

.content-carousel__dot.is-active {
  background: var(--blue);
  transform: scale(1.15);
}

@media (min-width: 768px) {
  .content-carousel {
    column-gap: 16px;
  }

  .content-carousel__btn {
    width: 50px;
    height: 50px;
  }
}

/* ---------- Service detail pages (services/*.html) ---------- */
.service-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.service-breadcrumb a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.service-breadcrumb a:hover {
  text-decoration: underline;
}

.service-breadcrumb [aria-current='page'] {
  color: var(--text);
  font-weight: 500;
}

.service-breadcrumb--on-hero {
  color: rgba(255, 255, 255, 0.72);
}

.service-breadcrumb--on-hero a {
  color: var(--accent);
}

.service-breadcrumb--on-hero a:hover {
  color: var(--white);
  text-decoration: underline;
}

.service-breadcrumb--on-hero [aria-current='page'] {
  color: var(--white);
}

.service-page-hero {
  padding-top: 8px;
}

.service-page-hero--bg {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 520px);
  padding: 40px 0 48px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .service-page-hero--bg {
    min-height: min(78vh, 600px);
    padding: 48px 0 56px;
    align-items: center;
  }
}

.service-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-page-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.07);
  filter: blur(2.5px) brightness(0.72) saturate(0.9);
  animation: heroPhotoSettle 1100ms var(--ease) both;
}

.service-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Strong left scrim (where copy sits) + softer falloff — tames busy photos */
  background:
    linear-gradient(
      90deg,
      rgba(4, 12, 32, 0.97) 0%,
      rgba(6, 18, 45, 0.93) min(28rem, 55vw),
      rgba(10, 28, 62, 0.72) 62%,
      rgba(10, 31, 68, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 32, 0.35) 0%,
      transparent 38%,
      rgba(4, 12, 32, 0.45) 100%
    );
  pointer-events: none;
}

.service-page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.service-page-hero-lead {
  color: rgba(255, 255, 255, 0.95);
  max-width: 40rem;
}

.service-page-hero--bg .service-page-hero-lead {
  font-weight: 500;
}

/* Readable type over photographic heroes */
.service-page-hero--bg .section-title--light {
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.65),
    0 1px 4px rgba(0, 0, 0, 0.9);
}

.service-page-hero--bg .service-page-hero-lead {
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.75),
    0 1px 3px rgba(0, 0, 0, 0.95);
}

.service-page-hero--bg .service-breadcrumb--on-hero {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.service-page-hero--bg .service-breadcrumb--on-hero a {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.service-page-hero--bg .eyebrow--light {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.service-page-hero--bg .text-link--light {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.service-page-hero--bg .service-icon {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .service-page-hero-bg-img {
    animation: none;
    transform: none;
    filter: brightness(0.65) saturate(0.9);
  }
}

.service-hero-top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.service-hero-top .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-page-hero h1,
.service-page-hero .section-title {
  max-width: 18ch;
}

.service-hero-top .section-title {
  max-width: min(32ch, 100%);
}

/* ---- Overview band: copy + stats card ---- */
.service-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .service-overview-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 56px;
    align-items: center;
  }
}

.service-overview-copy .section-title {
  margin-bottom: 18px;
}

.service-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
  box-shadow: var(--shadow-sm);
}

.service-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
}

.service-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.service-stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Feature cards (What you get) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
  position: relative;
}

a.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.feature-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--blue-50);
  color: var(--blue);
  border: 1px solid var(--blue-100);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.feature-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* ---- Numbered step cards (How we engage) ---- */
.service-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: steps;
}

@media (min-width: 640px) {
  .service-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .service-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.service-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow: hidden;
}

.service-step::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--accent));
}

.service-step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.service-step-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.service-step-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* ---- Related service cards ---- */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}

.related-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(30, 90, 165, 0.25);
}

.related-icon svg {
  width: 22px;
  height: 22px;
}

.related-body {
  min-width: 0;
}

.related-title {
  font-size: 1rem;
  margin: 0 0 2px;
  color: var(--navy);
}

.related-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}

.related-arrow {
  color: var(--blue);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.related-arrow svg {
  width: 14px;
  height: 14px;
}

.related-card:hover .related-arrow {
  transform: translateX(2px);
  background: var(--blue-100);
}

/* ---- Contact form (contact.html) ---- */
.contact-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.contact-point-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  flex-shrink: 0;
  margin-top: 8px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
    padding: 28px;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

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

.contact-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.contact-form__submit .contact-form__submit-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 9.5rem;
}

.contact-form__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  width: 0;
  margin: 0;
  overflow: hidden;
  transition: opacity var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}

.contact-form.is-submitting .contact-form__spinner {
  opacity: 1;
  width: 18px;
  animation: contact-form-spin 0.65s linear infinite;
}

.contact-form.is-submitting .contact-form__submit {
  cursor: wait;
  opacity: 0.92;
}

.contact-form.is-submitting .contact-field input,
.contact-form.is-submitting .contact-field select,
.contact-form.is-submitting .contact-field textarea {
  opacity: 0.7;
  pointer-events: none;
}

@keyframes contact-form-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form.is-submitting .contact-form__spinner {
    animation: none;
    border-top-color: var(--white);
    border-right-color: var(--white);
  }
}

.contact-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-form-status[hidden] {
  display: none !important;
}

.contact-form-status.is-success {
  color: var(--navy-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.contact-form-status.is-error {
  color: var(--navy-deep);
  background: var(--coral-soft);
  border: 1px solid rgba(200, 66, 62, 0.35);
}

/* Contact page: hero (brand art on white), then message form */
.main--contact-minimal .service-page-hero-bg {
  background: #fff;
}

.main--contact-minimal .service-page-hero-bg-img {
  object-fit: contain;
  /* Bias art toward the right so the bridge sits clear of the headline column */
  object-position: 88% 50%;
  transform: none;
  filter: none;
}

.main--contact-minimal .contact-form-section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.main--contact-minimal .contact-form-section--compact {
  padding-top: 56px;
  padding-bottom: 64px;
}

/* ---------- Why rationalization ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.why-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.why-points {
  display: grid;
  gap: 18px;
}

.why-points li {
  display: flex;
  gap: 14px;
}

.why-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-bullet svg {
  width: 14px;
  height: 14px;
}

.why-point-title {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}

.why-point-desc {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.why-visual {
  position: relative;
}

.why-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.why-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.why-panel-title {
  font-weight: 700;
  color: var(--navy);
}

.why-panel-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.why-bars {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.why-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  align-items: center;
  gap: 10px;
}

.why-bar-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.why-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.why-bar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  transform-origin: left center;
  animation: barGrow 1.1s var(--ease) both;
}

.why-bar-fill.before {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.why-bar-fill.after {
  background: linear-gradient(90deg, var(--blue), var(--accent));
}

@keyframes barGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.why-legend {
  display: flex;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.why-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.why-legend i.before {
  background: #94a3b8;
}

.why-legend i.after {
  background: var(--blue);
}

/* ---------- Approach photo strip (home) ---------- */
.approach-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 36px;
  padding: 0;
  list-style: none;
}

.approach-strip__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.06);
}

.approach-strip__item img {
  width: 100%;
  height: clamp(96px, 13vw, 140px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.approach-strip__cap {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(180deg, var(--blue-50), var(--white));
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .approach-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .approach-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 44px;
  }

  .approach-strip__item img {
    height: clamp(100px, 11vw, 152px);
  }
}

/* ---------- Process / Approach ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step::marker {
  content: none;
}

.process-step {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.process-num {
  display: inline-block;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.process-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process-desc {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Case study ---------- */
.section-dark {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.case-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.case-bg__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 0;
}

.case-bg__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 18, 40, 0.94) 0%,
    rgba(6, 18, 40, 0.72) 36%,
    rgba(6, 18, 40, 0.35) 68%,
    rgba(6, 18, 40, 0.55) 100%
  );
}

.case-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85), transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85), transparent);
}

.case-glow {
  position: absolute;
  z-index: 2;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.45), transparent 70%);
  filter: blur(60px);
  top: -120px;
  right: -120px;
}

.case-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.case-lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 560px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.case-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.case-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.resource-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f7fafc, #e6eef9);
  padding: 18px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.resource-thumb__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.resource-thumb:has(.resource-thumb__photo)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(247, 250, 252, 0.75) 45%,
    rgba(230, 238, 249, 0.92) 100%
  );
}

.resource-thumb:has(.resource-thumb__photo) .resource-tag,
.resource-thumb:has(.resource-thumb__photo) .resource-thumb-inner {
  position: relative;
  z-index: 2;
}

.resource-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d33;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
}

.resource-thumb-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  width: 100%;
  box-shadow: 0 10px 24px rgba(10, 31, 68, 0.1);
  transform: rotate(-1.5deg);
}

.resource-thumb-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 2px;
  line-height: 1.2;
}

.resource-thumb-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.resource-thumb-lines {
  display: grid;
  gap: 5px;
}

.resource-thumb-lines span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-50), var(--blue-100));
}

.resource-thumb-lines span:nth-child(2) {
  width: 80%;
}

.resource-thumb-lines span:nth-child(3) {
  width: 60%;
}

.resource-thumb-lines span:nth-child(4) {
  width: 70%;
}

.resource-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.resource-title {
  font-size: 1.05rem;
  margin: 0;
}

.resource-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
  flex: 1;
}

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-photo {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.5), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.team-avatar {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.team-avatar svg {
  width: 100%;
  height: 100%;
}

.team-avatar--alt {
  background: rgba(255, 255, 255, 0.15);
}

.team-body {
  padding: 24px;
}

.team-name {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.team-role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.team-bio {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #0c2655 60%, var(--blue));
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.final-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.4), transparent 70%);
  filter: blur(80px);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
}

.final-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
}

.final-cta-inner {
  position: relative;
}

.final-cta-title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 760px;
  margin: 0 auto 18px;
  font-weight: 800;
}

.final-cta-sub {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050f24;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.brand--footer {
  color: var(--white);
}

.brand-logo--footer {
  height: 52px;
  max-width: min(100%, 300px);
  filter: brightness(1.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 340px;
}

.footer-desc {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.footer-heading {
  color: var(--white);
  font-weight: 600;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact .footer-address {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Footer: center content on small screens (single-column layout) */
@media (max-width: 599px) {
  .site-footer .footer-grid {
    text-align: center;
    justify-items: center;
  }

  .site-footer .footer-brand {
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(100%, 400px);
  }

  .site-footer .footer-desc {
    max-width: 36ch;
  }

  .site-footer .footer-col {
    text-align: center;
  }

  .site-footer .footer-col ul {
    justify-items: center;
  }

  .site-footer ul.footer-contact {
    justify-items: center;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.service-page-hero-content.reveal,
.hero-copy.reveal {
  transform: translate3d(0, 18px, 0);
}

.hero-visual.reveal,
.why-visual.reveal,
.editorial-figure.reveal,
.service-stats.reveal {
  transform: translate3d(0, 22px, 0) scale(0.975);
}

@keyframes heroPhotoSettle {
  from {
    transform: scale(1.11);
  }
  to {
    transform: scale(1.07);
  }
}

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

/* ===========================================================
   Responsive
   =========================================================== */

/* Small tablets */
@media (min-width: 600px) {
  .container {
    padding: 0 28px;
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Tablets / desktop */
@media (min-width: 900px) {
  .hero {
    padding: 120px 0 140px;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }

  /* Space under Posture badge so window chrome + title stay readable */
  .hv-card--main {
    padding-top: 44px;
  }

  /* Extra offset on wide screens so floats clear the main panel entirely */
  .hv-card--nodes {
    bottom: -32px;
    right: -88px;
  }

  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .process-grid::before {
    content: '';
    position: absolute;
    top: 78px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 14px);
    z-index: 0;
  }

  .process-step {
    position: relative;
    z-index: 1;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .case-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }

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

/* Wider desktop */
@media (min-width: 1100px) {
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Collapsible nav (default behavior < 1280px) */
@media (max-width: 1279px) {
  .nav-toggle {
    display: inline-flex;
  }

  /*
   * Viewport-fixed drawer (header no longer uses backdrop-filter on the same
   * element that wraps the nav — see .site-header::before).
   * Anchor just under the header bar — do NOT use translateY(%): that shifts by
   * a fraction of drawer height, so expanding Services/Resources pulls the top
   * edge up and clips against the viewport.
   */
  .primary-nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 50%;
    right: auto;
    bottom: auto;
    /* Do not inherit desktop flex:1 — avoids a tall empty drawer on mobile */
    flex: none;
    width: min(92vw, 420px);
    max-width: 100%;
    height: fit-content;
    max-height: min(92vh, calc(100vh - var(--header-h) - 28px));
    max-height: min(92dvh, calc(100dvh - var(--header-h) - 28px));
    min-height: 0;
    background: var(--white);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    transform: translate(-50%, -8px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-med) var(--ease),
      opacity var(--t-med) var(--ease),
      visibility var(--t-med) var(--ease);
    box-shadow: 0 28px 70px rgba(10, 31, 68, 0.28);
    z-index: 320;
    pointer-events: none;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 16, 39, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease),
      visibility var(--t-med) var(--ease);
    z-index: 260;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.mobile-nav-open,
  html.mobile-nav-open {
    overflow: hidden;
  }

  /*
   * Pin the header to the viewport while the drawer is open. Sticky + overflow
   * on the document can leave the bar scrolled away; the backdrop also starts
   * below the header so the logo row stays visible and undimmed.
   */
  body.mobile-nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 300;
    box-shadow: 0 1px 0 rgba(10, 31, 68, 0.1);
  }

  .nav-drawer-close {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--navy);
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(10, 31, 68, 0.1);
  }

  .nav-drawer-close:hover {
    color: var(--blue);
    border-color: var(--blue-100);
    background: var(--blue-50);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 52px 18px 16px;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border);
  }

  /* Mobile drawer: mega/dropdown panels stay collapsed until opened */
  .primary-nav .has-mega:not(.is-open) .mega-panel,
  .primary-nav .has-dropdown:not(.is-open) .dropdown-panel {
    display: none !important;
  }

  .primary-nav .has-mega.is-open .mega-panel.mega-panel--cbts {
    display: flex !important;
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 1rem;
    border-radius: 0;
  }

  .nav-link:hover,
  .nav-item.is-open > .nav-link {
    background: transparent;
    color: var(--blue);
  }

  .mega-panel,
  .dropdown-panel {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0;
    margin: 0 0 12px;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    width: 100%;
  }

  .has-mega.is-open .mega-panel,
  .has-dropdown.is-open .dropdown-panel {
    display: block;
    transform: none;
  }

  .has-mega .mega-panel {
    width: 100%;
    padding: 18px;
  }

  .has-dropdown .dropdown-panel {
    padding: 8px;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mega-links {
    grid-template-columns: 1fr;
  }

  .mega-intro h3 {
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-top: 4px;
    margin-bottom: 0;
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .nav-cta .btn {
    width: 100%;
    margin: 0;
  }

  /*
   * Mobile drawer: compact CBTS mega (no spotlight, shorter copy) but do NOT
   * cap mega height — nested scroll was clipping content. The drawer scrolls as one.
   */
  .primary-nav .mega-panel.mega-panel--cbts {
    margin: 0 0 8px;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    border-top: 1px solid var(--border);
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-inner {
    padding: 6px 0 4px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-inner .container {
    max-width: none;
    width: 100%;
    padding: 0 4px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-spotlight {
    display: none !important;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-dismiss {
    top: 4px;
    right: 2px;
    width: 34px;
    height: 34px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-dismiss svg {
    width: 16px;
    height: 16px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-layout {
    gap: 10px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-rail {
    padding: 8px 6px 4px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-rail-title {
    font-size: 0.72rem;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-cats {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-cat {
    font-size: 0.84rem;
    padding: 10px 10px;
    text-align: left;
    width: 100%;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-body {
    padding: 0 2px 4px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-pane-lead {
    display: none;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-sub-desc {
    display: none;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-subgrid {
    gap: 6px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-subgrid a {
    padding: 10px 8px;
    border-radius: 8px;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-sub-title::after {
    display: none;
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-pane-head {
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }

  .primary-nav .mega-panel.mega-panel--cbts .mega-cbts-foot {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 0.88rem;
  }

  .primary-nav .has-mega .mega-panel {
    padding: 10px 8px 12px;
  }
}

/* Hero visual stacks under copy on small screens; reposition cards */
@media (max-width: 899px) {
  .hero {
    padding-top: max(calc(var(--header-h) + 16px), clamp(5.25rem, 12vw, 6.5rem));
    padding-bottom: clamp(4.5rem, 10vw, 6.5rem);
  }

  .hero-inner {
    min-width: 0;
    gap: clamp(24px, 5vw, 44px);
  }

  .hero-copy,
  .hero-visual {
    min-width: 0;
  }

  .hero-visual {
    height: auto;
    margin-top: 12px;
  }

  .hv-card {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .hv-card--main {
    top: auto;
    padding: 18px;
  }

  .hv-card--mini {
    width: 100%;
    max-width: 100%;
  }

  .hv-card--shield {
    left: auto;
    top: auto;
    transform: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  }

  .hv-card--shield:hover {
    transform: none;
  }

  .hv-card--nodes {
    top: auto;
    bottom: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
  }

  /* Tablet / large phone: two columns so labels stay legible */
  .hv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hv-stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hv-stat {
    min-width: 0;
    padding: 12px 8px;
  }

  .hv-stat-label {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .hv-stat-value {
    font-size: clamp(1rem, 3.6vw, 1.22rem);
  }

  .hv-stat-trend {
    font-size: 0.72rem;
  }

  .hv-legend {
    gap: 10px 14px;
  }

  .hv-chart {
    height: min(118px, 32vw);
  }
}

@media (max-width: 560px) {
  .hv-stat {
    padding: 14px 16px;
  }

  .hv-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }

  .hv-stat-value {
    font-size: 1.28rem;
  }
}

/* Very small */
@media (max-width: 380px) {
  .brand-logo {
    height: 38px;
    max-width: min(260px, 58vw);
  }

  .hero {
    padding-top: calc(var(--header-h) + 14px);
    padding-bottom: 4.75rem;
  }

  .section {
    padding: 64px 0;
  }
}

/* Phone-first polish (mobile only, keeps desktop untouched) */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  main,
  .hero,
  .hero-inner {
    max-width: 100%;
  }

  .site-header,
  .hero,
  .hero-inner {
    overflow-x: clip;
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    /* Clear sticky header; extra bottom space for overlapping value bar */
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: clamp(5.75rem, 16vw, 7.5rem);
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-title {
    overflow-wrap: anywhere;
    line-height: 1.12;
  }

  .hero-copy .eyebrow--light {
    letter-spacing: 0.09em;
    font-size: 0.72rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-sub {
    font-size: 1rem;
    max-width: none;
    margin-bottom: 24px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
  }

  /* Stack metrics: three skinny columns read poorly on phones */
  .hv-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-glow--a {
    width: 360px;
    height: 360px;
    right: -170px;
    top: -110px;
  }

  .hero-glow--b {
    width: 300px;
    height: 300px;
    left: -150px;
    bottom: -120px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head,
  .section-head--center {
    margin-bottom: 36px;
  }

  .value-grid {
    padding: 24px 22px;
    gap: 16px;
  }

  .value-bar {
    margin-top: clamp(-18px, -3vw, -12px);
    padding-bottom: 28px;
  }

  .home-impact {
    margin-top: 0;
  }

  .service-card__body,
  .resource-body,
  .team-body,
  .process-step,
  .feature-card,
  .service-step {
    padding: 20px;
  }

  .related-card {
    padding: 16px;
    gap: 12px;
  }

  .case-stats {
    grid-template-columns: 1fr;
  }

  .case-stat {
    padding: 18px;
  }

  .why-bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .why-bar-label {
    font-weight: 600;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
  }

  .home-impact {
    min-height: 0;
    padding: 36px 0;
  }

  .home-impact__title {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }

  .home-impact__list li {
    padding-left: 10px;
  }

  .hv-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hv-stat:nth-child(3) {
    grid-column: auto;
  }

  .hv-legend {
    display: grid;
    gap: 8px;
  }

  .primary-nav {
    width: calc(100% - 20px);
    max-height: min(92vh, calc(100vh - var(--header-h) - 28px));
    max-height: min(92dvh, calc(100dvh - var(--header-h) - 28px));
  }

  .nav-list {
    padding: 52px 16px 14px;
  }
}

/* Prevent horizontal scrolling across mobile/tablet widths */
@media (max-width: 1279px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    position: relative;
    overscroll-behavior-x: none;
  }

  .site-header,
  main,
  section,
  .container {
    width: 100%;
    max-width: 100%;
  }

  .primary-nav,
  .nav-list,
  .mega-panel,
  .dropdown-panel {
    max-width: 100vw;
  }

  .value-bar,
  .home-impact,
  .section-dark,
  .final-cta {
    max-width: 100vw;
  }

  .hero,
  .home-impact,
  .section-dark,
  .final-cta {
    overflow-x: hidden;
  }

  .hero-grid,
  .hero-glow,
  .case-glow,
  .final-glow {
    pointer-events: none;
  }

  /* Decorative off-canvas effects can create horizontal overflow on mobile. */
  .hero-glow,
  .case-glow,
  .final-glow {
    display: none;
  }
}

/* ---------- Capability / CBTS-style sub pages (mega menu deep links) ---------- */
.cap-page {
  --cap-teal: #2dd4bf;
  --cap-teal-dark: #14b8a6;
  --cap-navy-hero: #0a1f44;
}

/* Layered canvas so long-form capability pages feel less flat */
main#main:has(> .cap-hero) {
  --cap-teal: #2dd4bf;
  --cap-teal-dark: #14b8a6;
  background:
    radial-gradient(ellipse 52% 38% at 0% 8%, rgba(45, 212, 191, 0.065), transparent 58%),
    radial-gradient(ellipse 44% 32% at 100% 18%, rgba(30, 90, 165, 0.07), transparent 55%),
    radial-gradient(ellipse 36% 28% at 92% 85%, rgba(226, 85, 85, 0.035), transparent 60%),
    var(--white);
}

/* CBTS-style sticky jump navigation (sibling tabs + on-this-page anchors) */
.cap-nav-stack {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: 0 10px 32px rgba(10, 31, 68, 0.07);
}

.cap-nav-stack .cap-subnav-wrap {
  margin-top: clamp(-36px, -5.5vw, -18px);
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(10, 31, 68, 0.06);
}

.cap-nav-stack .cap-subnav-wrap::after {
  display: none;
}

.cap-nav-stack .cap-anchor-wrap {
  background: transparent;
}

.cap-nav-stack .cap-anchor-wrap::before {
  opacity: 0.5;
}

/* Full-width promo band (CBTS "tech talk" / outcomes strip — Theorem copy) */
.cap-promo-band {
  position: relative;
  padding: clamp(36px, 5vw, 52px) 0;
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 100% at 100% 20%, rgba(46, 163, 242, 0.14), transparent 50%),
    linear-gradient(115deg, #04122d 0%, #0a1f44 42%, #0c2748 100%);
  color: var(--white);
  overflow: hidden;
}

.cap-promo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 100%);
}

.cap-promo-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 36px);
}

.cap-promo-mark {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cap-promo-mark img {
  display: block;
  height: clamp(28px, 4vw, 36px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.cap-promo-copy {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.cap-promo-headline {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.cap-promo-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.cap-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cap-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.cap-promo-btn--outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.cap-promo-btn--outline:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.cap-promo-btn--solid {
  color: #04122d;
  border: 1px solid rgba(45, 212, 191, 0.85);
  background: linear-gradient(180deg, #5eead4 0%, var(--cap-teal) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.cap-promo-btn--solid:hover {
  color: #04122d;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

/* FAQ: CBTS-style dark panel + accordion + supporting column */
.cap-faq-shell {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding: clamp(72px, 9vw, 110px) 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(45, 212, 191, 0.1), transparent 52%),
    linear-gradient(165deg, #050f24 0%, #0a1f44 45%, #0d2649 100%);
  color: rgba(255, 255, 255, 0.92);
}

.cap-faq-shell::before {
  display: none;
}

.cap-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.cap-faq-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.cap-faq-lead {
  margin: 0 0 28px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
}

.cap-faq-lead strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.cap-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-faq-item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.cap-faq-item:hover {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.cap-faq-item[open] {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(5, 15, 40, 0.55);
}

.cap-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  position: relative;
}

.cap-faq-item summary::-webkit-details-marker {
  display: none;
}

.cap-faq-item summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cap-teal);
  border-bottom: 2px solid var(--cap-teal);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 200ms var(--ease);
}

.cap-faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.cap-faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cap-faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.cap-faq-aside {
  position: relative;
}

.cap-faq-aside-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  padding-top: clamp(140px, 22vw, 200px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cap-faq-aside-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: clamp(120px, 20vw, 180px);
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.1);
  pointer-events: none;
}

.cap-faq-aside-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(120px, 20vw, 180px);
  background: linear-gradient(180deg, rgba(5, 15, 40, 0.1) 0%, rgba(5, 15, 40, 0.92) 100%);
  pointer-events: none;
}

.cap-faq-aside-label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.95);
  margin-bottom: 12px;
}

.cap-faq-aside-quote {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.cap-faq-aside-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cap-teal);
  text-decoration: none;
}

.cap-faq-aside-cta:hover {
  color: #99f6e4;
}

.cap-hero {
  --cap-teal: #2dd4bf;
  --cap-teal-dark: #14b8a6;
  --cap-navy-hero: #0a1f44;
  position: relative;
  background: #06183f;
  color: var(--white);
  padding: clamp(48px, 8vw, 72px) 0 0;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: min(72vh, 640px);
}

/* CBTS-style looping hero background (WebM); falls back to gradient if video fails */
.cap-hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 25%, rgba(45, 212, 191, 0.22), transparent 24%),
    linear-gradient(115deg, #06183f 0%, #073c93 58%, #0057d9 100%);
  overflow: hidden;
  pointer-events: none;
}

.cap-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(1.55) brightness(1.28) contrast(1.06);
}

.cap-hero-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Keep text readable while allowing the CBTS blue motion to carry the hero. */
  background: linear-gradient(
    90deg,
    rgba(5, 17, 48, 0.42) 0%,
    rgba(8, 27, 70, 0.2) 46%,
    rgba(8, 27, 70, 0.06) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the hero video visible; slightly soften filters for reduced motion. */
  .cap-hero-video {
    filter: saturate(1.1) brightness(1.12) contrast(1.04);
  }
}

/* White arc into the hero, dipping through center like the CBTS cloud page. */
.cap-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: clamp(86px, 10vw, 132px);
  background: var(--white);
  clip-path: polygon(
    0 0,
    10% 14%,
    24% 28%,
    38% 39%,
    50% 43%,
    62% 39%,
    76% 28%,
    90% 14%,
    100% 0,
    100% 100%,
    0 100%
  );
  pointer-events: none;
  z-index: 3;
}

.cap-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-bottom: clamp(88px, 13vw, 140px);
}

.cap-hero-inner.reveal {
  opacity: 1;
  transform: none;
}

.cap-hero-copy {
  max-width: 40rem;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.cap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 12px;
}

.cap-eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cap-teal) 0%, #5eead4 100%);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

.cap-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 16px;
}

.cap-hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.96);
}

.cap-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 14px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  /* CBTS-style primary: bright blue with teal accent edge */
  background: linear-gradient(135deg, #2ea3f2 0%, var(--blue) 52%, #155a9e 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 4px solid var(--cap-teal);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), filter 200ms var(--ease);
}

.cap-hero-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  filter: brightness(1.05);
}

/* Orbit area: decorative circles sit BEHIND the clipped portrait (CBTS-style overlap) */
.cap-hero-visual-cluster {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
  aspect-ratio: 1;
  max-width: 480px;
  transform: translateY(clamp(24px, 5vw, 60px));
}

/* Lavender / purple disk — peeks from upper-left behind the portrait */
.cap-hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.cap-hero-blob--1 {
  width: 48%;
  aspect-ratio: 1;
  left: -4%;
  top: 4%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(196, 181, 253, 0.95) 0%,
    rgba(129, 140, 248, 0.55) 42%,
    rgba(99, 102, 241, 0.25) 72%,
    transparent 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 22px 56px rgba(99, 102, 241, 0.45);
  opacity: 0.88;
}

/* Large teal — lower-right, partly behind the circle */
.cap-hero-blob--2 {
  width: 54%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -2%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(94, 234, 212, 0.75) 0%,
    rgba(45, 212, 191, 0.5) 45%,
    rgba(20, 184, 166, 0.2) 78%,
    transparent 100%
  );
  box-shadow: 0 20px 50px rgba(45, 212, 191, 0.35);
  opacity: 0.9;
}

/* Smaller cyan accent — overlaps blob 2 slightly */
.cap-hero-blob--3 {
  width: 30%;
  aspect-ratio: 1;
  right: 4%;
  bottom: 14%;
  background: linear-gradient(145deg, rgba(153, 246, 228, 0.95) 0%, rgba(45, 212, 191, 0.65) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 12px 28px rgba(0, 0, 0, 0.25);
  opacity: 0.92;
  z-index: 1;
}

.cap-hero-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(86%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #0a1f44;
  /* Pop forward: bright rim + deep drop shadow */
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(45, 212, 191, 0.35),
    0 12px 28px rgba(45, 212, 191, 0.12),
    0 36px 72px rgba(0, 0, 0, 0.42),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.cap-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cap-hero-visual-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    200deg,
    rgba(5, 17, 48, 0.08) 0%,
    rgba(5, 17, 48, 0.35) 55%,
    rgba(5, 17, 48, 0.75) 100%
  );
}

.cap-hero-visual-caption {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 10%;
  z-index: 3;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.cap-hero-visual-caption span {
  display: inline-block;
  max-width: 14rem;
}

.cap-subnav-wrap {
  position: relative;
  z-index: 4;
  margin-top: clamp(-36px, -5.5vw, -18px);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(10, 31, 68, 0.07);
}

.cap-subnav-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 212, 191, 0.55) 18%,
    rgba(30, 90, 165, 0.35) 52%,
    rgba(226, 85, 85, 0.25) 78%,
    transparent 100%
  );
  opacity: 0.85;
}

.cap-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  padding: 18px 0 0;
  max-width: var(--container);
  margin: 0 auto;
}

.cap-subnav a {
  display: inline-block;
  padding: 12px 16px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  margin-bottom: -1px;
  border-radius: 10px 10px 0 0;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.cap-subnav a:hover {
  color: var(--navy);
  background: rgba(45, 212, 191, 0.08);
}

.cap-subnav a[aria-current='page'] {
  color: var(--navy);
  border-bottom-color: var(--cap-teal);
  background: rgba(30, 90, 165, 0.06);
}

/* CBTS-style in-page anchor strip (below sibling capability tabs) */
.cap-anchor-wrap {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 55%);
  border-bottom: 1px solid var(--border);
}

.cap-anchor-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 120% at 12% 0%, rgba(45, 212, 191, 0.06), transparent 52%);
  opacity: 1;
}

.cap-anchor-inner {
  position: relative;
  z-index: 1;
  padding: 18px 0 0;
  max-width: var(--container);
  margin: 0 auto;
}

.cap-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 6px 0 2px;
  margin: 0 0 -1px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.1);
}

.cap-anchor-nav a {
  display: inline-block;
  padding: 8px 14px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  border-radius: 999px;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.cap-anchor-nav a:hover {
  color: var(--navy);
  background: rgba(30, 90, 165, 0.06);
  box-shadow: 0 1px 0 rgba(10, 31, 68, 0.06);
}

.cap-anchor-nav a.is-active {
  color: var(--navy);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0.06) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.35),
    0 6px 18px rgba(10, 31, 68, 0.06);
}

.cap-anchor-section {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.cap-anchor-section + .cap-anchor-section {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cap-anchor-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  width: 4px;
  height: min(42%, 200px);
  border-radius: 0 6px 6px 0;
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.55) 0%,
    rgba(30, 90, 165, 0.35) 48%,
    rgba(226, 85, 85, 0.2) 100%
  );
  opacity: 0.65;
  pointer-events: none;
}

.cap-anchor-section--alt {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(30, 90, 165, 0.055) 1.2px, transparent 1.2px),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(45, 212, 191, 0.06), transparent 55%);
  background-size: 22px 22px, auto;
}

.cap-anchor-section--alt::before {
  opacity: 0.85;
}

/* Match .cap-main-grid column 1 so headings/prose line up with the intro block */
.cap-anchor-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.cap-anchor-section-inner > .cap-anchor-section-title {
  grid-column: 1;
  grid-row: 1;
}

.cap-anchor-section-inner > .cap-prose {
  grid-column: 1;
  grid-row: 2;
}

.cap-anchor-section-inner > .cap-section-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0;
}

.cap-section-figure img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cap-aside-figure {
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: 0 10px 28px rgba(10, 31, 68, 0.08);
}

.cap-aside-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cap-anchor-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.2;
}

.cap-anchor-section-title::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 1.05em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cap-teal) 0%, var(--blue) 55%, rgba(226, 85, 85, 0.75) 100%);
  box-shadow: 0 2px 10px rgba(45, 212, 191, 0.35);
}

.cap-main {
  padding: clamp(64px, 8vw, 88px) 0 clamp(80px, 9vw, 104px);
}

.cap-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.cap-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

.cap-flag svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cap-main-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 20px;
  padding-bottom: 6px;
}

.cap-main-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(5.5rem, 42%);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cap-teal) 0%, var(--blue) 55%, rgba(226, 85, 85, 0.65) 100%);
  box-shadow: 0 2px 12px rgba(45, 212, 191, 0.25);
}

.cap-prose {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.cap-prose p {
  margin: 0 0 1rem;
}

.cap-main .cap-prose > p:first-of-type {
  font-size: 1.06rem;
  color: #4b5563;
  line-height: 1.68;
}

.cap-anchor-section .cap-prose > p:first-of-type {
  border-left: 3px solid rgba(45, 212, 191, 0.55);
  padding-left: 1rem;
  margin-left: 0.1rem;
  color: #4b5563;
}

.cap-aside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, var(--bg) 48%, #f0f4fa 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cap-teal);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    var(--shadow-sm),
    0 18px 40px rgba(10, 31, 68, 0.06);
}

.cap-aside::after {
  content: '';
  position: absolute;
  right: -28%;
  top: -40%;
  width: 55%;
  height: 95%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.cap-aside > * {
  position: relative;
  z-index: 1;
}

.cap-aside-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.cap-aside-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.35;
}

.cap-aside-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.cap-aside-visual {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border-radius: var(--radius-sm);
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, transparent 42%),
    linear-gradient(135deg, var(--blue-50) 0%, var(--white) 52%, var(--blue-100) 100%);
  border: 1px solid rgba(30, 90, 165, 0.12);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cap-header-simple .nav-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.cap-header-simple .nav-link {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .cap-hero {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .cap-hero-inner {
    grid-template-columns: 1fr;
  }

  .cap-hero-visual-cluster {
    justify-self: center;
    width: min(100%, 360px);
    max-width: 360px;
    transform: none;
  }

  .cap-hero-visual {
    width: min(86%, 280px);
  }

  .cap-hero-blob--1 {
    width: 46%;
    left: -2%;
    top: 6%;
  }

  .cap-hero-blob--2 {
    width: 52%;
    right: -8%;
    bottom: 0;
  }

  .cap-hero-blob--3 {
    width: 32%;
    right: 6%;
    bottom: 12%;
  }

  .cap-hero::after {
    left: -8%;
    right: -8%;
    height: clamp(72px, 14vw, 120px);
  }

  .cap-subnav-wrap {
    margin-top: 0;
  }

  .cap-nav-stack .cap-subnav-wrap {
    margin-top: 0;
  }

  .cap-faq-grid {
    grid-template-columns: 1fr;
  }

  .cap-promo-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cap-promo-actions {
    width: 100%;
  }

  .cap-promo-btn {
    flex: 1 1 auto;
    min-width: min(100%, 200px);
  }

  .cap-anchor-section::before {
    display: none;
  }

  .cap-main-grid {
    grid-template-columns: 1fr;
  }

  .cap-anchor-section-inner {
    grid-template-columns: 1fr;
  }

  .cap-anchor-section-inner > .cap-anchor-section-title,
  .cap-anchor-section-inner > .cap-prose {
    grid-column: 1;
    grid-row: auto;
  }

  .cap-anchor-section-inner > .cap-section-figure {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: none;
  }

  .cap-section-figure img {
    max-width: none;
  }

  .cap-subnav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .cap-subnav a {
    white-space: nowrap;
  }

  .cap-anchor-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .cap-anchor-nav a {
    white-space: nowrap;
  }
}

/* ---- Editorial photography (about, approach, etc.) ---- */
.editorial-split {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.editorial-figure {
  margin: 0;
}

.editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow: 0 6px 28px rgba(10, 31, 68, 0.07);
  filter: saturate(0.96);
}

.editorial-figure--compact img {
  aspect-ratio: 4 / 3;
}

.editorial-figure-caption {
  margin: 14px 2px 0;
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 44em;
}

.section-lead--narrow {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.editorial-dual-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: 1fr;
  margin-top: clamp(8px, 2vw, 16px);
}

@media (min-width: 720px) {
  .editorial-dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About page: slightly tighter editorial rhythm */
.page-about .editorial-photo-pair .section-head--center {
  margin-bottom: clamp(36px, 5vw, 48px);
}

.page-about .editorial-photo-pair .section-title {
  max-width: min(38ch, 100%);
  margin-left: auto;
  margin-right: auto;
}
