/* =====================================================================
   O'Brien & Panchuk — V1 "Quiet Authority"
   Single source of truth. No stacked overrides.
   ===================================================================== */


/* ---------- 1. TOKENS ---------- */
:root {
  /* Surfaces */
  --surface: #F4F7FB;
  --surface-2: #EEF2F7;
  --paper: #FFFFFF;
  --paper-soft: #FAFBFD;
  --cream: #F8F6F0;

  /* Ink */
  --ink: #0E1B2D;
  --ink2: #4A5868;
  --ink3: #7A8696;
  --white: #FFFFFF;

  /* Accents */
  --blue: #4A9ECD;
  --blue-deep: #3D7A9E;
  --blue-button: #1F4A75;
  --blue-button-hover: #2A5C8C;
  --gold: #C5944A;
  --gold-warm: #D4A358;
  --green: #3D7A7E;
  --rose: #C97373;

  /* Hairlines & shadows */
  --hairline: rgba(40, 60, 90, 0.08);
  --hairline-strong: rgba(40, 60, 90, 0.14);
  --shadow-sm: 0 2px 6px rgba(20, 40, 60, 0.06);
  --shadow-md: 0 8px 24px -10px rgba(20, 40, 60, 0.14), 0 2px 6px rgba(20, 40, 60, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(20, 40, 60, 0.22), 0 6px 18px rgba(20, 40, 60, 0.08);

  /* Type */
  --hd: 'Montserrat', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --hd-opsz: "opsz" 144;
  --bd: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 56px; --sp-10: 80px; --sp-11: 112px; --sp-12: 160px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 250ms;
  --t-base: 450ms;
  --t-slow: 700ms;

  /* Layout */
  --container: 1160px;
  --article-w: 1148px; /* match .nav max-width — image + body align to nav pill */
  --nav-h: 64px;
  --nav-h-mobile: 56px;
}

/* ---------- 2. BASE / RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--surface);
  background-color: var(--surface);
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* iOS 26/27: allow rubber-band so the canvas paints under the home indicator. */
  overscroll-behavior-y: auto;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: 100lvh;
  min-height: calc(100dvh + 1px);
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--surface);
  background: var(--surface);
  /* Flat base. Motion lives on .site-ambient-bloom (fixed). Sections stay transparent. */
  font-family: var(--bd);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: 100lvh;
  min-height: calc(100dvh + 1px);
  /* clip, not hidden: hidden can compute overflow-y to auto and clip the footer bleed. */
  overflow-x: clip;
  overscroll-behavior-y: auto;
}

#site {
  position: relative;
  z-index: 1;
  min-height: 100lvh;
  min-height: calc(100dvh + 1px);
}

/* Subtle drifting brand blooms over the page canvas */
.site-ambient-bloom {
  position: fixed;
  inset: -18%;
  bottom: calc(-18% - env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 44% 40% at 18% 22%, rgba(74, 158, 205, 0.26), transparent 68%),
    radial-gradient(ellipse 38% 34% at 82% 18%, rgba(91, 182, 232, 0.20), transparent 68%),
    radial-gradient(ellipse 42% 38% at 76% 72%, rgba(197, 148, 74, 0.12), transparent 70%),
    radial-gradient(ellipse 48% 42% at 24% 78%, rgba(255, 255, 255, 0.38), transparent 72%),
    radial-gradient(ellipse 55% 38% at 50% 100%, rgba(74, 158, 205, 0.14), transparent 70%);
  animation: ambientBloomDrift 24s ease-in-out infinite alternate;
  opacity: 1;
}
@keyframes ambientBloomDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(1.8%, -1.2%, 0) scale(1.035); }
  66%  { transform: translate3d(-1.2%, 1.6%, 0) scale(1.02); }
  100% { transform: translate3d(0.6%, 0.8%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .site-ambient-bloom,
  .hero-stage-bloom { animation: none; }
  .hero-stage-media { will-change: auto; }
  .hero-stage-media .hero-vid { transform: none; }
}

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

a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(74, 158, 205, 0.25); color: var(--ink); }

/* ---------- 3. TYPE PRIMITIVES ---------- */
h1, h2, h3, h4, h5 { font-family: var(--hd); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-feature-settings: "kern", "liga", "calt"; }

.h1, h1 { font-size: clamp(40px, 5.8vw, 76px); line-height: 1.04; letter-spacing: -0.028em; }
.h2, h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.018em; }
.h3, h3 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; letter-spacing: -0.008em; font-weight: 600; }
h4 { font-size: 15px; line-height: 1.25; }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

.label {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: var(--sp-3);
}

.sub {
  font-family: var(--bd);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink2);
  max-width: 720px;
}

.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
/* Section header rhythm: label -> h2 -> sub.
   .label already has margin-bottom: var(--sp-3) (12px).
   Provide explicit gap between h2 and the sub/p that follows so the
   intro block reads as three layers, not two stacked lines. */
.center .h2,
.center h2,
.center .label + .h2,
.center .label + h2 { margin-bottom: var(--sp-5); }
.center .h2 + .sub,
.center h2 + .sub,
.center .h2 + p,
.center h2 + p { margin-top: 0; }

/* Section rhythm: space between intro block (eyebrow + h2 + sub) and the grid/content that follows */
section .center + .g2,
section .center + .g3,
section .center + .g4,
section .center + .fw-grid,
section .center + .case-grid,
section .center + .case-grid-wrap,
section .center + .svc-grid,
section .center + .blog-grid,
section .center + .approach-grid,
section .center + .eng-grid,
section .center + .floc,
section .center + .tl,
section .center + .card,
section .center + .card-strong,
section .center + .grid,
section .center + .stats-grid {
  margin-top: var(--sp-9);
}
/* Also leave room before the CTA / "see more" row that closes a section */
section .g2 + .center,
section .g3 + .center,
section .fw-grid + .center,
section .case-grid + .center,
section .svc-grid + .center,
section .blog-grid + .center,
section .approach-grid + .center,
section .case-overflow + .center {
  margin-top: var(--sp-9);
}

.body { font-size: 16px; line-height: 1.65; color: var(--ink2); }

/* Anthropic-style hairline divider */
.rule { height: 1px; background: var(--hairline); margin: var(--sp-7) 0; }

/* No-break gold accent on inline H1 span */
.nb { white-space: nowrap; }

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; position: relative; }

/* Section band classes are now visual no-ops — the body bg is the single
   canvas. Sections separate naturally via content, spacing, and glass cards.
   Kept for backward-compat with existing markup. */
.cream-band,
.engagement-band {
  background: transparent;
}

.fade {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.fade.vis, .fade.vis-hero {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: auto;
}
/* Hero social proof stays visible — never re-blur on scroll */
.hero-social-proof.fade,
.nwp-wizard.fade {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Grids */
.g2, .svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

/* Case study grids: taller, denser cards need more breathing room */
#results .g3 { gap: var(--sp-7); }
#results .case-overflow { margin-top: var(--sp-7); }


/* ---------- 5. NAV ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 24px);
  max-width: 1148px;
  height: var(--nav-h);
  padding: 0 18px 0 22px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 12px 30px -8px rgba(20, 40, 60, 0.10),
    0 2px 8px rgba(20, 40, 60, 0.04);
  isolation: isolate;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 44px -10px rgba(20, 40, 60, 0.16),
    0 4px 12px rgba(20, 40, 60, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 24px;
}

/* Brand morph — text-only when at top, logo-only when scrolled */
.nav-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  flex: 0 0 auto;
  text-decoration: none;
  isolation: isolate;
}
.nav-brand .brand-word {
  position: relative;
  display: inline-block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  /* shimmer treatment matching the client portal — gradient clipped to text */
  background: linear-gradient(120deg,
    var(--ink) 0%, var(--ink) 35%,
    rgba(80, 100, 130, 0.55) 42%,
    var(--ink2) 50%,
    rgba(80, 100, 130, 0.55) 58%,
    var(--ink) 65%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: brandShimmer 5s ease-in-out infinite;
  transform: scale(1) translateX(0);
  transform-origin: left center;
  opacity: 1;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
@keyframes brandShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand .brand-word { animation: none; }
}
.nav-brand .brand-word em { color: inherit; font-style: italic; font-weight: 600; }
.nav-brand .brand-logo {
  position: absolute;
  left: 0; top: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(calc(-50% + 2px)) scale(0);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--t-base) var(--ease-pop), opacity var(--t-fast) var(--ease);
}
.nav.scrolled .nav-brand .brand-word { transform: scale(0.45) translateX(-10px); opacity: 0; }
.nav.scrolled .nav-brand .brand-logo { transform: translateY(calc(-50% + 2px)) scale(1); opacity: 1; }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  font-family: var(--bd);
  font-weight: 500;
  font-size: 14.5px;
  color: rgba(16, 34, 54, 0.78);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  letter-spacing: 0.005em;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(16, 34, 54, 0.06); }
.nav-links a.active { color: var(--ink); font-weight: 600; background: rgba(16, 34, 54, 0.07); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-portal {
  font-family: var(--bd);
  font-weight: 500;
  font-size: 14px;
  color: rgba(16, 34, 54, 0.78);
  padding: 7px 6px;
  transition: color var(--t-fast) var(--ease);
}
.nav-portal:hover { color: var(--ink); }

.nav-cta {
  font-family: var(--bd);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  background: var(--blue-button);
  padding: 11px 22px;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  box-shadow: 0 1px 2px rgba(31, 74, 117, 0.25), 0 6px 18px -4px rgba(31, 74, 117, 0.38);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav-cta:hover {
  background: var(--blue-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(31, 74, 117, 0.30), 0 10px 24px -4px rgba(31, 74, 117, 0.48);
}

.nav-signin { position: relative; }
.nav-signin-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.nav-signin-btn.nav-portal,
button.nav-portal {
  font-family: inherit;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  color: rgba(16, 34, 54, 0.78);
  padding: 9px 16px;
}
.nav-signin-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 196px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 34, 54, 0.12);
  box-shadow: 0 16px 40px rgba(14, 27, 45, 0.16);
  z-index: 40;
}
.nav-signin.is-open .nav-signin-menu,
.nav-signin:hover .nav-signin-menu,
.nav-signin:focus-within .nav-signin-menu { display: grid; gap: 4px; }
.nav-signin-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0E1B2D;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav-signin-menu a:hover { background: rgba(31, 74, 117, 0.08); }
.nav-signin-menu a span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(14, 27, 45, 0.5);
}

.nav-mobile-tools {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-call {
  font-family: var(--bd);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  background: var(--blue-button);
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 64px;
  box-shadow: 0 1px 2px rgba(31, 74, 117, 0.25), 0 6px 18px -4px rgba(31, 74, 117, 0.38);
}
.nav-call:hover { background: var(--blue-button-hover); }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 11px;
  color: var(--ink);
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity 200ms var(--ease), width var(--t-fast) var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 21px; width: 14px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: calc(var(--nav-h-mobile) + 16px);
  left: 8px; right: 8px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r);
  padding: 14px 16px 18px;
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 18px 44px -10px rgba(20, 40, 60, 0.18);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile-label {
  margin: 10px 16px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3, #5a6b7c);
}
.nav-mobile a {
  display: flex;
  align-items: center;
  font-size: 18px;
  padding: 14px 16px;
  min-height: 50px;
  border-radius: 11px;
  font-weight: 500;
  color: var(--ink);
}
.nav-mobile a span {
  margin-left: auto;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3, #5a6b7c);
}
.nav-mobile a:hover, .nav-mobile a:active { background: rgba(16, 34, 54, 0.05); }
.nav-mobile .mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 18px;
  min-height: 54px;
  margin-top: 8px;
  font-weight: 600;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
}


/* ---------- 6. BUTTONS ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bd);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 26px;
  min-height: 52px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue-button);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(31, 74, 117, 0.25), 0 8px 22px -4px rgba(31, 74, 117, 0.38);
}
.btn-primary:hover {
  background: var(--blue-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(31, 74, 117, 0.30), 0 14px 32px -4px rgba(31, 74, 117, 0.48);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { background: rgba(16, 34, 54, 0.05); border-color: rgba(16, 34, 54, 0.25); }
.btn-ghost { background: transparent; color: var(--ink2); }
.btn-ghost:hover { color: var(--ink); }

/* Buttons over video (white text + glass) */
.hero-ctas .btn-secondary {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero-ctas .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.55);
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.see-more-btn:hover { background: var(--paper); border-color: rgba(16, 34, 54, 0.2); transform: translateY(-1px); }


/* ---------- 7. HERO STAGE (video + glass social proof → white canvas) ---------- */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
  /* Pull under nav float gap (nav is top: 12px) so video bleeds to viewport edge */
  margin-top: -12px;
  padding-top: 12px;
}

.hero-stage-media {
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #081018;
  transform: none;
}

.hero-stage-bloom {
  position: absolute;
  inset: -25%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 34% at 22% 58%, rgba(74, 158, 205, 0.32), transparent 68%),
    radial-gradient(ellipse 34% 30% at 78% 62%, rgba(91, 182, 232, 0.24), transparent 68%),
    radial-gradient(ellipse 40% 36% at 50% 88%, rgba(255, 255, 255, 0.42), transparent 72%),
    radial-gradient(ellipse 28% 24% at 68% 38%, rgba(197, 148, 74, 0.16), transparent 70%);
  animation: stageBloomPulse 20s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
  opacity: 0.75;
}
@keyframes stageBloomPulse {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.05); opacity: 0.82; }
  100% { transform: translate3d(-1.5%, 2%, 0) scale(1.03); opacity: 0.7; }
}

.hero-stage-media .hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-stage-media .hero-vid.is-active,
.hero-stage-media .hero-vid[data-idx="0"] { opacity: 1; }

/* Sub-pages still using .hero-bg (legacy inline video) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-bg .hero-vid.is-active,
.hero-bg .hero-vid[data-idx="0"] { opacity: 1; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, rgba(6, 14, 26, 0.22) 0%, rgba(6, 14, 26, 0.32) 60%, rgba(6, 14, 26, 0.44) 90%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.18) 0%, rgba(6, 14, 26, 0.28) 60%, rgba(6, 14, 26, 0.48) 100%);
}

/* Progressive dissolve: video → page canvas (must sit above video, below social proof) */
.hero-stage-dissolve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(244, 247, 251, 0) 0%,
    rgba(244, 247, 251, 0.28) 38%,
    rgba(244, 247, 251, 0.62) 68%,
    rgba(244, 247, 251, 0.92) 88%,
    var(--surface) 100%);
}

/* Sub-pages (approach, results, careers) — shorter hero over shared video stage */
.hero-stage--sub .hero-stage-media,
.hero-stage--sub > .hero-scrim {
  /* Bleed past nav float gap + safe-area so no light hairline at viewport top */
  top: calc(-12px - env(safe-area-inset-top, 0px) - 2px);
}
.hero-stage--sub .hero {
  min-height: 0;
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 52px;
}
.hero-stage--sub .hero-stage-dissolve {
  display: none;
}

.hero-stage > .hero-scrim {
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  max-width: none;
  width: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, rgba(6, 14, 26, 0.20) 0%, rgba(6, 14, 26, 0.28) 60%, rgba(6, 14, 26, 0.36) 90%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.14) 0%, rgba(6, 14, 26, 0.22) 55%, rgba(6, 14, 26, 0.08) 88%, transparent 100%);
}
.hero-stage--sub > .hero-scrim {
  background:
    radial-gradient(ellipse 100% 80% at 50% 40%, rgba(6, 14, 26, 0.24) 0%, rgba(6, 14, 26, 0.32) 55%, transparent 85%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.18) 0%, rgba(6, 14, 26, 0.28) 75%, rgba(6, 14, 26, 0.38) 100%);
}

/* Stage heroes — excluded from L2 no-video fallbacks via .hero--stage */
.hero.hero--stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  overflow: visible;
  isolation: auto;
  text-align: center;
}
.hero-stage:not(.hero-stage--sub) .hero.hero--stage {
  min-height: 86vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 0;
}
.hero-stage--sub .hero.hero--stage {
  min-height: 0;
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 52px;
}
.hero.hero--stage > .hero-content {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.hero-stage--sub .hero h1 .nb {
  color: #ffffff;
}
/* Never use shimmer text-fill on video heroes — clips as a white box */
.hero h1 .shimmer,
.hero h1 .shimmer--hero {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  animation: none;
}
.hero-stage--sub .hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 8px 36px rgba(0, 0, 0, 0.45);
}
.hero-stage--sub .hero-tag,
.hero-stage--sub .hero-sub {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero-stage--sub .hero-tag {
  font-size: clamp(17px, 1.7vw, 20px);
  max-width: 640px;
}
.hero-stage--sub .hero-tag--detail {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.86);
  margin-top: 14px;
  max-width: 680px;
}
.hero-stage--sub .hero-tag strong {
  color: #fff;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 86vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, rgba(6, 14, 26, 0.20) 0%, rgba(6, 14, 26, 0.28) 60%, rgba(6, 14, 26, 0.36) 90%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.14) 0%, rgba(6, 14, 26, 0.22) 55%, rgba(6, 14, 26, 0.08) 88%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 32px;
  width: 100%;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  padding: 7px 14px 7px 10px;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 28px;
  transition: background var(--t-fast) var(--ease);
}
.hero-pill:hover { background: rgba(255, 255, 255, 0.22); }
.hero-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(197, 148, 74, 0.35); }
.hero-pill svg { width: 14px; height: 14px; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; fill: none; }

.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.024em;
  max-width: 840px;
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
  text-wrap: balance; /* spread lines evenly so the long headline doesn't dump on line 1 */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 8px 36px rgba(0, 0, 0, 0.45);
}
.hero h1 .nb {
  color: #ffffff;
  white-space: nowrap;
}

.hero-tag {
  font-family: var(--bd);
  font-weight: 400;
  font-size: clamp(19px, 2.0vw, 24px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin: 22px auto 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}


/* ---------- 8. HERO SOCIAL PROOF (light glass band — dark ink text) ---------- */
.hero-social-proof {
  position: relative;
  margin-top: 0;
  isolation: isolate;
  z-index: 2;
}

.hero-social-proof-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(36px) saturate(1.28);
  backdrop-filter: blur(36px) saturate(1.28);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.52) 22%,
    rgba(255, 255, 255, 0.68) 48%,
    rgba(244, 247, 251, 0.88) 72%,
    var(--surface) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 48px rgba(8, 16, 24, 0.06);
}

.proof-bg {
  display: none;
}
/* Dark ink on light glass — quotes + stats share the same readable register */
.hero-social-proof .quote-text {
  color: var(--ink);
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.55);
}
.hero-social-proof .quote-attr {
  color: var(--ink2);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.45);
}
.hero-social-proof .stat-bar {
  border-top: 1px solid rgba(16, 34, 54, 0.08);
  padding: 28px 32px 36px;
  margin-top: 8px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-social-proof .quote-glass {
  padding-top: 56px;
  padding-bottom: 8px;
}
.hero-social-proof .stat-num {
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.5);
}
.hero-social-proof .stat-label { color: var(--ink2); }
.hero-social-proof .stat { border-left-color: rgba(16, 34, 54, 0.10); }
.hero-social-proof .quote-dot,
.hero-social-proof .quote-dots span,
.hero-social-proof .quote-dots button { background: rgba(16, 34, 54, 0.16); }
.hero-social-proof .quote-dot.active,
.hero-social-proof .quote-dots .active { background: var(--ink); }
.quote-glass, .stat-bar {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.quote-glass {
  padding-top: 44px;
  padding-bottom: 22px;
  text-align: center;
}
.quote-slider { position: relative; }
/* Stack slides via CSS grid so the container auto-sizes to the TALLEST
   slide. No absolute/relative toggle, no min-height jolt on slide change. */
.quote-slides {
  display: grid;
  grid-template-areas: "qslide";
}
.quote-slide {
  grid-area: qslide;
  opacity: 0;
  pointer-events: none;
}
.quote-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.quote-text {
  font-family: var(--hd);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  text-shadow: none;
  max-width: 820px;
  margin: 0 auto 10px;
}
.quote-attr {
  font-family: var(--bd);
  font-size: 14px;
  color: var(--ink2);
  margin: 0;
}

/* Word-by-word blur fade-in reveal */
.quote-text .qw {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
  will-change: opacity, filter, transform;
}
.quote-slide.active .quote-text .qw {
  animation: qwReveal 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.quote-attr {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(4px);
}
.quote-slide.active .quote-attr {
  animation: qwReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--attr-delay, 600ms));
}
@keyframes qwReveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ============================================================
   HERO TEXT — Apple-style word reveal on page load
   - Each word fades in with a subtle blur clear + upward slide
   - Staggered: title words → tag words → CTAs
   - Driven by JS that wraps each word in <span class="hw" style="--i:N">
   ============================================================ */
.hero h1.hero-anim,
.hero-tag.hero-anim {
  opacity: 1; /* container is visible; words handle their own reveal */
}
.hero h1 .hw,
.hero-tag .hw {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(16px);
  animation: heroReveal 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 75ms + 120ms);
  will-change: opacity, filter, transform;
}
.hero h1 .hw .nb,
.hero h1 .hw > span {
  display: inline-block;
}
.hero-tag .hw {
  animation-duration: 950ms;
  animation-delay: calc(var(--i, 0) * 38ms + var(--tag-start, 720ms));
}
.hero-ctas.hero-anim {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  animation: heroReveal 1000ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--ctas-start, 1100ms);
}
@keyframes heroReveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hw,
  .hero-tag .hw,
  .hero-ctas.hero-anim {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

/* Apple iOS-style pill page indicators */
.quote-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.quote-dots span, .quote-dots button, .quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(20, 40, 60, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1),
              background 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.quote-dots .active, .quote-dots span.active, .quote-dots button.active, .quote-dot.active {
  width: 22px;
  background: var(--ink);
  transform: none;
}

.stat-bar {
  padding-top: 24px;
  padding-bottom: 44px;
  border-top: 1px solid rgba(20, 40, 60, 0.10);
  margin-top: 8px;
}
.stat-strip {
  display: flex;
  align-items: stretch;
}
.stat {
  flex: 1 1 0;
  padding: 8px 16px;
  text-align: center;
  border-left: 1px solid rgba(20, 40, 60, 0.10);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--hd);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  color: var(--ink);
  text-shadow: none;
}
.stat-label {
  font-family: var(--bd);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-top: 8px;
}

/* Results page — aggregate stats below case grid */
#results .stat-bar {
  margin-top: 56px;
  padding: 44px 0 4px;
  border-top: 1px solid rgba(20, 40, 60, 0.12);
}
#results .stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 100%;
}
#results .stat {
  flex: none;
  padding: 12px 20px;
  border-left: 1px solid rgba(20, 40, 60, 0.10);
}
#results .stat:first-child { border-left: 0; }
#results .stat-num { font-size: clamp(26px, 3vw, 38px); }
#results .stat-label {
  font-size: 11px;
  letter-spacing: 0.11em;
  line-height: 1.45;
  max-width: 12em;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  #results .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }
  #results .stat:nth-child(odd) { border-left: 0; }
  #results .stat:nth-child(n+3) {
    border-top: 1px solid rgba(20, 40, 60, 0.10);
    padding-top: 20px;
  }
}


/* ---------- 9. CARDS (shared base) ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 36px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover {
  box-shadow: 0 18px 44px -14px rgba(20, 40, 60, 0.18), 0 4px 12px rgba(20, 40, 60, 0.06);
  border-color: rgba(40, 60, 90, 0.14);
}

/* Framework cards (architecture) */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
/* ICP bridge: four persona routes — 4-up on desktop (CMO S3) */
.icp-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 1100px) {
  .icp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .icp-grid { grid-template-columns: 1fr; }
}
.fw-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(var(--hue, 74, 158, 205), 0.18), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(var(--hue, 74, 158, 205), 0.10), transparent 60%),
    var(--paper);
  border: 1px solid rgba(var(--hue, 74, 158, 205), 0.18);
}
.fw-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(var(--hue), 0.50) 50%, transparent 100%);
}
.fw-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fw-card-n {
  font-family: var(--hd);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgb(var(--hue)), rgba(var(--hue), 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fw-card-icon { width: 36px; height: 36px; color: rgb(var(--hue)); }
.fw-card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fw-card-title { font-family: var(--hd); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.012em; }
.fw-card-desc { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 0 0 12px 0; }
.fw-card-detail { font-size: 14px; line-height: 1.65; color: var(--ink3); margin: 0 0 18px 0; }
.fw-card-arrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: rgb(var(--hue)); }

/* Service cards (capabilities) — horizontal layout: icon left, content right.
   Hybrid blue + gold treatment, identical across all cards. */
.svc-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  min-height: 0;
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(var(--hue, 74, 158, 205), 0.14), transparent 60%),
    radial-gradient(ellipse 100% 70% at 100% 100%, rgba(var(--hue, 74, 158, 205), 0.10), transparent 60%),
    var(--paper);
  border: 1px solid rgba(var(--hue, 74, 127, 165), 0.18);
}
.svc-halo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 25%, rgba(var(--hue, 74, 158, 205), 0.12), transparent 72%),
    radial-gradient(circle at 78% 78%, rgba(var(--hue, 74, 158, 205), 0.09), transparent 72%),
    linear-gradient(135deg, rgba(var(--hue, 74, 158, 205), 0.05), rgba(var(--hue, 74, 158, 205), 0.025));
  border: 1px solid rgba(var(--hue, 74, 158, 205), 0.11);
  box-shadow:
    0 4px 12px -10px rgba(var(--hue, 74, 158, 205), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.svc-viz { width: 36px; height: 36px; color: var(--blue-deep); }
.svc-viz svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-viz svg { width: 100%; height: 100%; }
.svc-content { flex: 1; min-width: 0; }
.svc-content .h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.25; }
.svc-content .body { font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Case (results) cards */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(var(--hue), 0.24), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(var(--hue), 0.12), transparent 60%),
    var(--paper);
  border: 1px solid rgba(var(--hue), 0.20);
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--case-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.85);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 18%, rgba(0,0,0,0.5) 48%, transparent 78%);
  mask-image: linear-gradient(to bottom, black 0%, black 18%, rgba(0,0,0,0.5) 48%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.92) 92%);
  pointer-events: none;
  z-index: 1;
}
.case-card > * { position: relative; z-index: 2; }
.case-overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px 0;
}
.case-pill {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
}
.case-icon { width: 28px; height: 28px; color: rgb(var(--hue)); opacity: 0.85; }
.case-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.case-amount {
  font-family: var(--hd);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  color: var(--ink);
  padding: 16px 36px 0;
  letter-spacing: -0.018em;
}
.case-context {
  font-family: var(--bd);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink2);
  text-transform: uppercase;
  padding: 8px 36px 0;
}
.case-body { padding: 22px 36px 32px; }
.case-body .body { font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.case-quote-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.case-quote {
  font-family: var(--hd);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 4px 0;
}
.case-attr { font-size: 12px; color: var(--ink3); font-style: normal; }

/* Approach (how it works) cards */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); margin-top: 36px; }
.approach-card {
  background:
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(var(--hue), 0.18), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(var(--hue), 0.08), transparent 60%),
    var(--paper);
  border: 1px solid rgba(var(--hue), 0.18);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.approach-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.approach-step { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; justify-content: space-between; }
.approach-step .approach-step-icon { margin-left: auto; }
.approach-step-n {
  font-family: var(--hd);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgb(var(--hue)), rgba(var(--hue), 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.approach-step-icon { width: 28px; height: 28px; color: rgb(var(--hue)); }
.approach-step-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.approach-card h3 { font-size: 18px; margin-bottom: 8px; }
.approach-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink2); }

/* Approach sub-page "timeline" cards (.tl / .tl-step) — visual parity with homepage .approach-card */
.tl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: 36px;
  counter-reset: tl-counter;
}
/* Legacy connector SVG — must not consume a grid cell */
.tl-svg { display: none; }
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num icon"
    "text text";
  align-items: center;
  column-gap: 12px;
  row-gap: 14px;
  padding: 24px 22px 26px;
  background:
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(74, 158, 205, 0.12), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(74, 158, 205, 0.06), transparent 60%),
    var(--paper);
  border: 1px solid rgba(74, 158, 205, 0.16);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  counter-increment: tl-counter;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.tl-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tl-step::before {
  content: counter(tl-counter, decimal-leading-zero);
  grid-area: num;
  font-family: var(--hd);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-button));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.tl-step .icon {
  grid-area: icon;
  width: 28px;
  height: 28px;
  color: var(--blue-deep);
  margin-left: auto;
}
.tl-step .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tl-step-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-step-text h3 {
  font-family: var(--hd);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0;
}
.tl-step-text p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink2);
  margin: 0;
}

/* Location cards — static map images (no iframe scroll trap) */
.loc-card { padding: 0; overflow: hidden; }
.loc-map {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.loc-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  display: block;
  pointer-events: none;
}
.loc-map:focus-visible {
  outline: 2px solid rgba(31, 74, 117, 0.55);
  outline-offset: -2px;
}
.loc-attr {
  font-family: var(--bd);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink3);
  opacity: 0.62;
  margin: 0 0 10px;
}
.loc-attr a { color: inherit; text-decoration: none; }
.loc-attr a:hover { text-decoration: underline; }
.loc-body { padding: 22px 24px; }
.loc-btns { display: flex; gap: 8px; margin-top: 12px; }
.loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  background: rgba(74, 158, 205, 0.08);
  border: 1px solid rgba(74, 158, 205, 0.22);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--t-fast) var(--ease);
}
.loc-btn:hover { background: rgba(74, 158, 205, 0.16); }
.loc-btn svg { width: 14px; height: 14px; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(74, 158, 205, 0.10), transparent 60%),
    var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(74, 158, 205, 0.22); }
.blog-card.hidden { display: none; }
.blog-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; display: block; }
.blog-body { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.blog-tag {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  font-family: var(--bd);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--hue));
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(var(--hue), 0.32);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(10px) saturate(1.10);
  backdrop-filter: blur(10px) saturate(1.10);
  margin-bottom: 12px;
}
.blog-title { font-family: var(--hd); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.blog-excerpt { font-size: 14px; line-height: 1.55; color: var(--ink2); flex: 1; margin: 0 0 14px 0; }
.blog-link { font-family: var(--bd); font-weight: 500; font-size: 14px; color: var(--blue-deep); border-bottom: 1px solid rgba(31, 74, 117, 0.30); padding-bottom: 2px; align-self: flex-start; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.blog-link:hover { color: var(--blue-button-hover); border-color: rgba(31, 74, 117, 0.55); }

/* Partner cards */
#partners .card { text-align: center; align-items: center; }
#partners .card .photo { margin: 0 auto 18px; }
#partners .card .body { max-width: 480px; margin-left: auto; margin-right: auto; }
.partner-name { font-family: var(--hd); font-weight: 600; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.partner-title { font-family: var(--bd); font-weight: 500; font-size: 13px; color: var(--ink2); letter-spacing: 0.01em; margin-bottom: 12px; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.partner-tag {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink2);
  background: rgba(74, 158, 205, 0.08);
  border: 1px solid rgba(74, 158, 205, 0.18);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }


/* ---------- 10. ENGAGEMENT SECTION ---------- */
.engagement-intro { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.engagement-intro .label { margin-bottom: 14px; }
.engagement-intro .h2 { margin: 0 auto 18px; max-width: 780px; }
.engagement-intro .sub { font-size: 18px; line-height: 1.6; max-width: 820px; margin-left: auto; margin-right: auto; }

.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-bottom: 56px; }
.eng-card {
  position: relative;
  background:
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(var(--hue), 0.24), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(var(--hue), 0.14), transparent 60%),
    var(--paper);
  border: 1px solid rgba(var(--hue), 0.20);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 30px 28px;
  overflow: hidden;
}
.eng-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(var(--hue), 0.50) 50%, transparent 100%);
}
.eng-icon { width: 32px; height: 32px; color: rgb(var(--hue)); margin-bottom: 18px; }
.eng-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.eng-title { font-family: var(--hd); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.012em; }
.eng-desc { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 0; }
.eng-desc strong { color: var(--ink); font-weight: 600; }

.diagnostic-cta {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(31, 74, 117, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(74, 158, 205, 0.10), transparent 65%),
    var(--paper);
  border: 1px solid rgba(74, 127, 165, 0.14);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 48px 56px;
  text-align: center;
  width: 100%;
  margin: 0;
}
.diagnostic-cta .label { margin-bottom: 14px; }
.diagnostic-cta h3 { font-family: var(--hd); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.012em; }
.diagnostic-cta .body { font-size: 16px; line-height: 1.65; color: var(--ink2); margin: 0 auto 28px; max-width: 820px; }
.diagnostic-cta .cta-row, .diagnostic-cta .hero-ctas, .diagnostic-cta .btn-group { justify-content: center; }
.diagnostic-pricing { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.diagnostic-price { font-family: var(--hd); font-weight: 600; font-size: 28px; color: var(--ink); }
.diagnostic-meta { font-size: 14px; color: var(--ink3); }


/* ---------- 11. PREFOOTER ---------- */
.prefooter { padding: 96px 24px; }
.prefooter-card {
  max-width: var(--container);
  margin: 0 auto;
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(31, 74, 117, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(74, 158, 205, 0.10), transparent 65%),
    var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 56px 48px;
  text-align: center;
}
.prefooter-card .label { margin-bottom: 14px; }
.prefooter-card .h2 { margin-bottom: 18px; }
.prefooter-card .sub { max-width: 640px; margin: 0 auto 28px; }
.prefooter-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Final CTA (sub-pages: results / blog / etc.) — clean hierarchy, no card frame */
.cta-final {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 0;
}
.cta-final > .label {
  display: inline-block;
  margin-bottom: 18px;
}
.cta-final > .h2 {
  margin: 0 0 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final > .sub {
  font-family: var(--bd);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--ink2);
  max-width: 620px;
  margin: 0 auto 32px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.cta-quiet {
  font-family: var(--hd);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink3);
  max-width: 480px;
  margin: 0 auto 22px;
}
.cta-contacts {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px -16px rgba(20, 40, 60, 0.18);
}
.cta-contacts a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--bd);
  transition: color var(--t-base) var(--ease);
}
.cta-contacts a:hover { color: var(--blue-deep); }
.cta-contacts .cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
}
.cta-contacts .cta-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cta-contacts .cta-sep {
  color: var(--ink3);
  font-weight: 400;
  user-select: none;
}
.cta-contacts .cta-email {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
}
@media (max-width: 720px) {
  .cta-final > .sub { font-size: 15.5px; }
  .cta-actions { margin-bottom: 32px; }
  .cta-contacts {
    flex-direction: column;
    gap: 10px;
    padding: 16px 22px;
    border-radius: var(--r-lg);
  }
  .cta-contacts .cta-sep { display: none; }
  .cta-contacts a { gap: 6px; }
}

/* Aggregate stats below case grid on results page */
.agg-stats { margin-top: 64px; }
.agg-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 36px 40px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(31, 74, 117, 0.10), transparent 65%),
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(197, 148, 74, 0.08), transparent 65%),
    var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
}
.agg-stats-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--hairline);
  padding: 0 12px;
}
.agg-stats-inner > div:last-child { border-right: 0; }
.agg-num {
  font-family: var(--hd);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.agg-label {
  font-family: var(--bd);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .agg-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 28px 24px; }
  .agg-stats-inner > div { padding: 0 8px; }
  .agg-stats-inner > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  .agg-stats-inner { grid-template-columns: 1fr; gap: 22px; }
  .agg-stats-inner > div { border-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
  .agg-stats-inner > div:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Contact section header (was prefooter title — consolidated above chat card) */
#contact .section.center > .label { display: inline-block; margin-bottom: 14px; }
#contact .section.center > .h2 { margin: 0 auto 14px; max-width: 880px; }
#contact .section.center > .sub {
  font-family: var(--bd);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--ink2);
  max-width: 680px;
  margin: 0 auto 36px;
}


/* ---------- 12. FOOTER ---------- */
.footer {
  position: relative;
  overflow: visible;
  background: var(--surface);
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 72px 24px 0;
  color: var(--ink2);
  width: 100%;
  max-width: none;
  /* Paint into the iOS home-indicator chin (viewport-fit=cover). */
  box-shadow: 0 calc(env(safe-area-inset-bottom, 0px) + 48px) 0 var(--surface);
}
.footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: calc(env(safe-area-inset-bottom, 0px) + 64px);
  background: var(--surface);
  pointer-events: none;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-brand { max-width: 420px; }
.footer-mark { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-mark img { width: 32px; height: 32px; border-radius: 50%; }
.footer-mark span { font-family: var(--hd); font-weight: 600; font-size: 18px; color: var(--ink); }
.footer-mark span em { color: var(--gold); font-style: italic; font-weight: 400; }
.footer-tag { font-size: 14.5px; line-height: 1.6; color: var(--ink2); margin-bottom: 24px; }
.footer-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.floc { display: flex; flex-direction: column; gap: 4px; }
.floc-label { font-family: var(--bd); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.floc-addr { font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.floc a { font-size: 14px; color: var(--ink); border-bottom: 1px solid rgba(16, 34, 54, 0.18); align-self: flex-start; padding-bottom: 1px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-family: var(--bd); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink2); padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 0 max(24px, env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink3);
  width: 100%;
}


/* ---------- 13. CONTACT / CHAT CARD ---------- */
#contact { overflow: visible; }
#contact .h2 { font-size: clamp(22px, 2.4vw, 32px); text-align: center; margin-bottom: 20px; }
#contact .h2::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  border-radius: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(74, 158, 205, 0.65), rgba(197, 148, 74, 0.65));
}
/* V1 chat card — light glass with subtle blue+gold radials matching the
   page's body wash, so the container blends with the surrounding page
   instead of feeling like a dark V2 element dropped in. */
#contact .card {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid rgba(74, 127, 165, 0.24);
  box-shadow:
    0 30px 80px -28px rgba(20, 40, 60, 0.18),
    0 6px 18px rgba(20, 40, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(ellipse 80% 65% at 0% 0%, rgba(74, 158, 205, 0.22), transparent 60%),
    radial-gradient(ellipse 75% 65% at 100% 0%, rgba(212, 148, 92, 0.18), transparent 60%),
    radial-gradient(ellipse 90% 65% at 100% 100%, rgba(197, 148, 74, 0.14), transparent 65%),
    radial-gradient(ellipse 110% 80% at 30% 100%, rgba(74, 158, 205, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(1.10);
  backdrop-filter: blur(20px) saturate(1.10);
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
/* ----- Chat container: grain + breathing room ----- */
#contact .card { padding: 32px 36px; }
#contact #qual-messages { scrollbar-width: thin; scrollbar-color: rgba(20, 40, 60, 0.22) transparent; }
#contact #qual-messages::-webkit-scrollbar { width: 6px; }
#contact #qual-messages::-webkit-scrollbar-track { background: transparent; }
#contact #qual-messages::-webkit-scrollbar-thumb { background: rgba(20, 40, 60, 0.22); border-radius: 999px; }
#contact #qual-messages::-webkit-scrollbar-thumb:hover { background: rgba(20, 40, 60, 0.34); }
#contact .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 220px 220px;
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
#contact .card > * { position: relative; z-index: 1; }

#contact #qual-chat { display: flex; flex-direction: column; height: 500px; max-height: 64vh; position: relative; }
#contact #qual-messages { flex: 1; overflow-y: auto; padding: 8px 4px 12px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }

/* ----- Chat bubbles (left-aligned editorial flow, fully rounded, shimmer reveal) ----- */
#qual-chat .message-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
  max-width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}
#qual-chat .message-bubble * { text-align: left; }
#qual-chat .typing-row,
#qual-chat .action-btn-wrap { text-align: left; }
#qual-chat .message-row.action-buttons { margin-top: 6px; padding-left: 44px; }

#qual-chat .msg-av {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
}
#qual-chat .message-row.has-av .msg-av,
#qual-chat .typing-row.has-av .msg-av { opacity: 1; }
#qual-chat .msg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
#qual-chat .message-row.user .msg-av { display: none; }
#qual-chat .message-row.user { padding-left: 44px; }

#qual-chat .message-bubble {
  max-width: 86%;
  padding: 13px 18px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 1.5;
  text-align: left; /* override .section.center cascade */
  word-wrap: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  animation: msgShimmer 720ms cubic-bezier(0.22, 0.7, 0.22, 1) both;
}
#qual-chat .message-bubble.assistant {
  background:
    radial-gradient(ellipse 120% 100% at 0% 0%, rgba(74, 158, 205, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(40, 60, 90, 0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#qual-chat .message-bubble.user {
  background: linear-gradient(135deg, rgba(74, 158, 205, 0.95), rgba(31, 74, 117, 0.95));
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.20);
}
#qual-chat .message-bubble strong { font-weight: 600; color: var(--ink); }
#qual-chat .message-bubble.user strong { color: var(--white); }

@keyframes msgShimmer {
  0%   { opacity: 0; transform: translateY(6px); filter: blur(8px); }
  55%  { opacity: 0.85; filter: blur(2px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

#qual-chat .typing-row { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
#qual-chat .typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(40, 60, 90, 0.10);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: msgShimmer 600ms cubic-bezier(0.22, 0.7, 0.22, 1) both;
}
#qual-chat .typing-indicator span {
  width: 7px; height: 7px;
  background: rgba(40, 60, 90, 0.55);
  border-radius: 50%;
  display: inline-block;
  animation: qcTypingDot 1.2s infinite ease-in-out;
}
#qual-chat .typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
#qual-chat .typing-indicator span:nth-child(3) { animation-delay: 0.36s; }
@keyframes qcTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#qual-chat .action-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  width: 100%;
  padding: 4px 0 0;
}
#qual-chat .action-btn {
  appearance: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(40, 60, 90, 0.18);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  cursor: pointer;
  line-height: 1.2;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  -webkit-backdrop-filter: blur(10px) saturate(1.10);
  backdrop-filter: blur(10px) saturate(1.10);
}
#qual-chat .action-btn:hover { background: rgba(255, 255, 255, 0.92); border-color: rgba(40, 60, 90, 0.30); }
#qual-chat .action-btn:active { transform: scale(0.98); }
#qual-chat .action-btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #0B1523;
  font-weight: 600;
  padding: 12px 28px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35);
}
#qual-chat .action-btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: #0B1523;
}


/* ---------- 14. MOBILE (single block) ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-mobile-tools { display: flex; }
  .hamburger { display: flex; margin-left: 0; }
  .nav-inner { gap: 10px; }

  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .fw-grid { grid-template-columns: repeat(2, 1fr); }
  .eng-grid { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body { font-size: 17px; }

  section { padding: 64px 0; }

  /* Tighter section rhythm on mobile */
  section .center + .g2,
  section .center + .g3,
  section .center + .g4,
  section .center + .fw-grid,
  section .center + .case-grid,
  section .center + .case-grid-wrap,
  section .center + .svc-grid,
  section .center + .blog-grid,
  section .center + .approach-grid,
  section .center + .eng-grid,
  section .center + .floc,
  section .center + .tl,
  section .center + .card,
  section .center + .card-strong,
  section .center + .grid,
  section .center + .stats-grid { margin-top: var(--sp-7); }
  section .g2 + .center,
  section .g3 + .center,
  section .fw-grid + .center,
  section .case-grid + .center,
  section .svc-grid + .center,
  section .blog-grid + .center,
  section .approach-grid + .center,
  section .case-overflow + .center { margin-top: var(--sp-8); }

  /* Nav mobile sizing */
  .nav {
    top: 8px;
    left: 8px; right: 8px;
    transform: none;
    width: calc(100% - 16px);
    max-width: none;
    height: var(--nav-h-mobile);
    padding: 0 8px 0 14px;
    border-radius: var(--r);
  }
  .nav-inner { justify-content: space-between; gap: 10px; }
  .nav-brand .brand-word { font-size: 16px; }
  .nav-brand .brand-logo { width: 28px; height: 28px; }

  /* Hero — bigger viewport floor so content doesn't squish, 2-column CTAs */
  .hero {
    min-height: 88vh;
    padding-top: calc(var(--nav-h-mobile) + 64px);
    padding-bottom: 0;
  }
  .hero-content { padding: 0 20px 28px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
  .hero-tag { font-size: 17px; line-height: 1.4; margin-top: 18px; }
  .hero-pill { font-size: 11px; padding: 6px 12px 6px 8px; margin-bottom: 22px; }
  .hero-ctas {
    gap: 10px;
    margin-top: 28px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

  /* Social proof */
  .hero-social-proof-section { margin-top: -12px; }
  .quote-glass { padding: 32px 18px 18px; }
  .quote-text { font-size: 18px; line-height: 1.4; }
  .stat-bar { padding: 20px 12px 32px; }
  .stat-strip { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; padding: 14px 8px; border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid rgba(16, 34, 54, 0.10); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(16, 34, 54, 0.10); }
  .hero-social-proof .stat:nth-child(2n) { border-left-color: rgba(16, 34, 54, 0.10); }
  .hero-social-proof .stat:nth-child(n+3) { border-top-color: rgba(16, 34, 54, 0.10); }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 11px; }

  /* H2/H3 */
  .h2, h2 { font-size: clamp(26px, 6vw, 34px); }
  .h3, h3 { font-size: 18px; }

  /* Cards / Grids */
  .g2, .g3, .svc-grid { grid-template-columns: 1fr; }
  .fw-grid, .approach-grid, .blog-grid, .eng-grid, .tl { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  /* Location cards keep the map edge-to-edge on mobile (body padding lives on .loc-body) */
  .loc-card { padding: 0; }
  /* Mobile card typography: keep title dominant relative to body + arrow.
     Title 22px > Desc 16px > Arrow 14px (ratios ~1.38 / 1 / 0.875). */
  .fw-card-title { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
  .fw-card-desc { font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
  .fw-card-arrow { font-size: 14px; }
  .fw-card-n { font-size: 36px; }
  /* Approach cards on mobile: number stays left, icon pushes to the right edge */
  .approach-step { justify-content: space-between; }
  .approach-step-icon { margin-left: auto; }
  .svc-card { padding: 20px 18px; min-height: 0; gap: 14px; flex-direction: row; align-items: center; }
  .svc-halo { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; }
  .svc-viz { width: 30px; height: 30px; }
  .svc-content .h3 { font-size: 17px; margin-bottom: 4px; }
  .svc-content .body { font-size: 14px; line-height: 1.5; }

  /* Chat: edge-to-edge container on mobile, hide scrollbar */
  #contact .card { padding: 24px 0 0; border-radius: 18px; }
  #contact .card-header,
  #contact .card > h2,
  #contact .card > .h2,
  #contact .card > .label,
  #contact .card > p,
  #contact .card > .body { padding-left: 18px; padding-right: 18px; }
  #contact #qual-chat { padding: 0; }
  #contact #qual-messages {
    padding: 12px 18px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #contact #qual-messages::-webkit-scrollbar { width: 0; height: 0; display: none; }
  #qual-chat .action-btn-wrap { padding: 4px 18px 0; box-sizing: border-box; }

  /* Buttons */
  .btn-primary, .btn-secondary, .btn-ghost { min-height: 54px; font-size: 16px; padding: 16px 24px; }

  /* Engagement / diagnostic */
  .engagement-intro { margin: 0 0 40px 0; }
  .engagement-intro .sub { font-size: 17px; }
  .diagnostic-cta { padding: 32px 24px; }

  /* Prefooter */
  .prefooter { padding: 64px 16px; }
  .prefooter-card { padding: 40px 24px; }

  /* Footer */
  .footer { padding: 56px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-locations { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; }
  .hero-tag { font-size: 16px; }
  .h2, h2 { font-size: 26px; }
  .quote-text { font-size: 17px; }
  .stat-num { font-size: 26px; }
  .footer-cols { grid-template-columns: 1fr; }
}


/* =====================================================================
   14b. BG IFRAME (decorative background page slot)
   ===================================================================== */
#bg-frame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(-80px - env(safe-area-inset-bottom, 0px));
  width: 100%;
  height: auto;
  min-height: calc(100lvh + 1px);
  min-height: calc(100dvh + 1px + env(safe-area-inset-bottom, 0px));
  border: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}


/* =====================================================================
   15. SUB-PAGE TEMPLATES
   ===================================================================== */

/* ---- Generic L2 hero (no video) — used by approach, careers, results ----
   Applies to: explicit .hero-l2, .hero.hero--l2, and ANY .hero that has no
   .hero-bg child (so sub-pages can use either class without breaking). */
.hero-l2:not(:has(.hero-bg)),
.hero.hero--l2:not(:has(.hero-bg)),
.hero:not(:has(.hero-bg)):not(.hero--stage) {
  display: block;
  position: relative;
  min-height: 50vh;
  padding: calc(var(--nav-h) + 96px) 24px 64px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(74, 158, 205, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(197, 148, 74, 0.12), transparent 60%);
  border-bottom: 1px solid var(--hairline);
}
.hero-l2:not(:has(.hero-bg)) > *:not(.hero-scrim),
.hero.hero--l2:not(:has(.hero-bg)) > *:not(.hero-scrim),
.hero:not(:has(.hero-bg)):not(.hero--stage) > *:not(.hero-scrim) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* Legacy: scrim still inside .hero on old pages */
.hero > .hero-scrim {
  max-width: none;
  width: 100%;
  margin: 0;
  left: 0;
  right: 0;
}

/* ---- L2 hero WITH video bg (looping single video) ---- */
.hero-l2:has(.hero-bg) {
  position: relative;
  min-height: 60vh;
  padding: calc(var(--nav-h) + 96px) 24px 64px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  display: block;
  border-bottom: 1px solid var(--hairline);
}
.hero-l2:has(.hero-bg) > .hero-bg {
  max-width: none;
  margin: 0;
}
.hero-l2:has(.hero-bg) > *:not(.hero-bg) {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.hero-l2:has(.hero-bg) h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
  font-size: clamp(36px, 5.2vw, 64px);
  max-width: 880px;
  margin: 0 auto 18px;
  letter-spacing: -0.024em;
}
.hero-l2:has(.hero-bg) .hero-hook {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  max-width: 760px;
}
.hero-l2:has(.hero-bg) .hero-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.hero-l2:has(.hero-bg) .hero-pill:hover { background: rgba(255, 255, 255, 0.22); }
.hero-l2:has(.hero-bg) .hero-pill svg { stroke: rgba(255, 255, 255, 0.85); }
.hero-l2:has(.hero-bg) .hero-vid { opacity: 1; }
.hero-l2 h1,
.hero.hero--l2 h1,
.hero:not(:has(.hero-bg)):not(.hero--stage) h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  max-width: 880px;
  margin: 0 auto 18px;
  letter-spacing: -0.024em;
  text-shadow: none;
}
.hero-l2 .hero-sub,
.hero.hero--l2 .hero-sub,
.hero:not(:has(.hero-bg)):not(.hero--stage) .hero-sub {
  font-family: var(--bd);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink2);
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero-l2 .hero-detail,
.hero.hero--l2 .hero-detail,
.hero:not(:has(.hero-bg)):not(.hero--stage) .hero-detail {
  font-size: 14.5px;
  color: var(--ink3);
  margin: 0 auto 24px;
  max-width: 640px;
}
.hero-l2 .hero-hook,
.hero.hero--l2 .hero-hook,
.hero:not(:has(.hero-bg)):not(.hero--stage) .hero-hook {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 20px;
  max-width: 760px;
}
/* .hero-sub: full-sentence subtitle for sub-pages (no uppercase, larger size).
   Distinct from .hero-hook (tiny eyebrow-style label). Used on approach pages. */
.hero-l2 .hero-sub,
.hero.hero--l2 .hero-sub,
.hero:not(:has(.hero-bg)):not(.hero--stage) .hero-sub {
  display: block;
  font-family: var(--bd);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink2);
  margin: 0 auto 22px;
  max-width: 760px;
}
.hero-l2:has(.hero-bg) .hero-sub {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }

/* Shimmer accent — body sections use ink; hero-on-video uses white */
.shimmer {
  background: linear-gradient(120deg,
    var(--ink) 0%, var(--ink) 38%,
    var(--blue-deep) 50%,
    var(--ink) 62%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none !important;
  animation: brandShimmer 5s ease-in-out infinite;
}
.hero h1 .shimmer,
.shimmer--hero {
  background: linear-gradient(120deg,
    #fff 0%, #fff 38%,
    rgba(255, 255, 255, 0.42) 50%,
    #fff 62%, #fff 100%);
}

/* ---- Card variants ---- */
.card-strong {
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(74, 158, 205, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(197, 148, 74, 0.08), transparent 60%),
    var(--paper);
  border: 1px solid rgba(74, 127, 165, 0.16);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 36px 32px;
}

.divider { height: 1px; background: var(--hairline); margin: var(--sp-8) auto; max-width: 200px; }

/* ---- Section-alt (lighter band) ---- */
/* All section-tint pseudo-elements are stripped — body bg is the only canvas. */
.section-alt,
.bg-cream,
.bg-alt,
.bg-default { background: transparent; }

/* ---- Approach framework cards (sub-page; visual parity with homepage .fw-card) ---- */
.fw-layer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(74, 158, 205, 0.10), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(74, 158, 205, 0.05), transparent 60%),
    var(--paper);
  border: 1px solid rgba(74, 158, 205, 0.16);
}
.fw-layer:last-child { border-bottom: 1px solid rgba(74, 158, 205, 0.16); }
.fw-layer::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(74, 158, 205, 0.45) 50%, transparent 100%);
  pointer-events: none;
}
.fw-icon { width: 36px; height: 36px; color: var(--blue-deep); flex: none; }
.fw-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fw-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.fw-num {
  font-family: var(--hd);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-button));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.fw-title,
.fw-head h3 {
  font-family: var(--hd);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.fw-desc { color: var(--ink2); font-size: 15px; line-height: 1.6; margin: 0; max-width: none; }
.fw-detail { color: var(--ink3); font-size: 14px; line-height: 1.65; margin: 0; }
.fw-arrow {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  margin-top: auto;
  padding-top: 6px;
}

/* ---- Contrast strip (We do X — not — Y) ---- */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}
.contrast-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.contrast-item:hover {
  border-color: rgba(74, 158, 205, 0.30);
  box-shadow: var(--shadow-md);
}
.contrast-do {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--hd);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contrast-do::before {
  content: '';
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(74, 158, 205, 0.10);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4A75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 15px 15px;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(74, 158, 205, 0.40);
}
.contrast-vs {
  font-family: var(--hd);
  font-style: italic;
  font-size: 13px;
  color: var(--ink3);
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  padding: 0 14px;
}
.contrast-vs::before,
.contrast-vs::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--hairline-strong);
}
.contrast-vs::before { right: 100%; }
.contrast-vs::after { left: 100%; }
.contrast-not {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-family: var(--bd);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.3;
  color: var(--ink3);
  letter-spacing: -0.005em;
  text-decoration: line-through;
  text-decoration-color: rgba(40, 60, 90, 0.28);
  text-decoration-thickness: 1px;
}
.contrast-not::after {
  content: '';
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(40,60,90,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  background-size: 13px 13px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(40, 60, 90, 0.04);
  border: 1px solid rgba(40, 60, 90, 0.10);
  text-decoration: none;
}

/* ---- Careers job cards ---- */
.job-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.job-title { font-family: var(--hd); font-weight: 600; font-size: 22px; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.job-card .job-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-family: var(--bd);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--hue, 31, 74, 117));
  background: rgba(var(--hue, 31, 74, 117), 0.10);
  border: 1px solid rgba(var(--hue, 31, 74, 117), 0.22);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
  box-shadow: none;
}
.job-card .job-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.job-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--bd);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--hue, 74, 158, 205));
  margin-bottom: 14px;
}
.job-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.job-tag { font-family: var(--bd); font-weight: 500; font-size: 11.5px; color: var(--ink2); background: rgba(74, 158, 205, 0.10); border: 1px solid rgba(74, 158, 205, 0.20); padding: 3px 10px; border-radius: var(--r-pill); letter-spacing: 0.02em; }
.job-desc { font-size: 14.5px; line-height: 1.65; color: var(--ink2); margin-bottom: 14px; flex: 1; }
.job-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bd);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--blue-button);
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(31, 74, 117, 0.28);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  width: fit-content;
  margin-top: auto;
}
.job-apply:hover { background: var(--blue-button-hover); transform: translateY(-1px); color: #fff; border-color: transparent; }

/* Careers — stat band + fw-style job cards */
#careers-stats .stat-bar {
  margin-top: 0;
  padding: 56px 0 24px;
  border-top: none;
}
#careers-stats .stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
#careers-stats .stat {
  padding: 28px 16px;
  border-left: 1px solid var(--hairline);
}
#careers-stats .stat:first-child { border-left: 0; }
.openings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); max-width: var(--article-w); margin-left: auto; margin-right: auto; }
.job-card.fw-card { padding: 0; overflow: hidden; }
.job-card.fw-card .fw-card-body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.job-card.fw-card .fw-card-top { padding: 24px 28px 0; }
.job-card.fw-card .job-location { margin-bottom: 14px; }
@media (max-width: 900px) {
  #careers-stats .stat-strip { grid-template-columns: repeat(2, 1fr); }
  #careers-stats .stat:nth-child(odd) { border-left: 0; }
  #careers-stats .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .openings-grid { grid-template-columns: 1fr; }
}

/* ---- Results page (case grid / extra case classes) ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.case-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.case-amt { font-family: var(--hd); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); padding: 14px 22px 0; line-height: 1.05; letter-spacing: -0.018em; }
.case-lbl { font-family: var(--bd); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); padding: 4px 22px 0; }
.case-badge { display: inline-block; font-family: var(--bd); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(197, 148, 74, 0.10); border: 1px solid rgba(197, 148, 74, 0.22); padding: 4px 10px; border-radius: var(--r-pill); }
.card-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 850ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  will-change: opacity, transform, filter;
}
.card-reveal.vis {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .card-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
.case-expand { display: block; text-align: center; padding: 12px; color: var(--ink2); font-size: 14px; }
.case-toggle { color: var(--blue-deep); cursor: pointer; }

/* ---- Page container + header (blog/insights index, careers, etc.) ---- */
.page { max-width: var(--container); margin: 0 auto; padding: 0 24px 96px; }
.page-header {
  text-align: center;
  padding: calc(var(--nav-h) + 96px) 0 48px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(74, 158, 205, 0.14), transparent 65%);
}
.page-header h1, .page-title { font-family: var(--hd); font-weight: 600; font-size: clamp(36px, 5.2vw, 60px); margin: 0 0 16px; letter-spacing: -0.024em; color: var(--ink); line-height: 1.05; }
.page-header p, .page-header .sub, .page-subtitle { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.55; color: var(--ink2); }
.page-content { max-width: var(--container); margin: 0 auto; padding: 56px 24px 96px; }

/* Filter bar (blog index) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
}
.filter-btn {
  font-family: var(--bd);
  font-weight: 500;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink2);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-btn:hover { background: var(--paper); color: var(--ink); border-color: rgba(16, 34, 54, 0.22); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Insights index card variant (.blog-card-*) */
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat { font-family: var(--bd); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 10px; }
.blog-card-title { font-family: var(--hd); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.012em; }
.blog-card-desc { font-size: 14.5px; line-height: 1.6; color: var(--ink2); flex: 1; margin: 0 0 14px 0; }
.blog-card-link { font-family: var(--bd); font-weight: 500; font-size: 14px; color: var(--ink); border-bottom: 1px solid rgba(16, 34, 54, 0.18); padding-bottom: 2px; align-self: flex-start; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.blog-card-link:hover { color: var(--blue-deep); border-color: var(--blue); }
.blog-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ---- Blog article (page-level, no enclosing card) ---- */
.glass-page {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 12px 56px;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(74, 158, 205, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(197, 148, 74, 0.08), transparent 60%);
}
.glass-inner {
  width: calc(100% - 24px);
  max-width: var(--article-w);
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.article-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -28px rgba(20, 40, 60, 0.22), 0 8px 24px rgba(20, 40, 60, 0.08);
}
.article-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.article-head { padding: 40px 0 0; width: 100%; max-width: none; margin: 0; text-align: left; }
.article-head h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 16px;
}
.cat-tag {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(74, 158, 205, 0.10);
  border: 1px solid rgba(74, 158, 205, 0.22);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.article-meta { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink3); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink3); display: inline-block; }

.article-divider { height: 1px; background: var(--hairline); margin: 28px 0 0; width: 100%; max-width: none; }

.article-content { padding: 32px 0 48px; width: 100%; max-width: none; margin: 0; }
.article-body {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.1em 0; color: var(--ink); }
.article-body h2 {
  font-family: var(--hd);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.article-body h3 {
  font-family: var(--hd);
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 22px);
  color: var(--ink);
  margin: 1.6em 0 0.5em;
}
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.1em; color: var(--ink); }
.article-body li { margin-bottom: 0.5em; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--blue-deep); text-decoration: underline; text-decoration-color: rgba(74, 158, 205, 0.4); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease); }
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 20px;
  margin: 1.6em 0;
  font-family: var(--hd);
  font-style: italic;
  font-size: 1.05em;
  color: var(--ink);
  background: rgba(197, 148, 74, 0.05);
  border-radius: 0 var(--r) var(--r) 0;
}
.article-body code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.92em; background: rgba(74, 127, 165, 0.10); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
.article-body pre { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; }

.key-takeaway {
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(197, 148, 74, 0.18), transparent 65%),
    rgba(197, 148, 74, 0.06);
  border: 1px solid rgba(197, 148, 74, 0.28);
  border-radius: var(--r);
  padding: 20px 22px;
  margin: 1.6em 0;
  font-family: var(--bd);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
}
.key-takeaway::before {
  content: 'Key Takeaway';
  display: block;
  font-family: var(--bd);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Related articles */
.related-section { max-width: var(--article-w); width: calc(100% - 24px); margin: 0 auto; padding: 64px 0 0; }
.related-title { font-family: var(--hd); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 24px; color: var(--ink); text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(40, 60, 90, 0.14); }
.related-card img { width: 100%; height: 110px; object-fit: cover; }
.related-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.related-card-cat { font-family: var(--bd); font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }
.related-card-title { font-family: var(--hd); font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.related-card-link { font-family: var(--bd); font-weight: 500; font-size: 12.5px; color: var(--ink2); margin-top: auto; }

/* CTA banner (end of article) */
.cta-banner {
  max-width: var(--article-w);
  width: calc(100% - 24px);
  margin: 56px auto 0;
  padding: 0;
}
.cta-inner {
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(74, 158, 205, 0.18), transparent 65%),
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(197, 148, 74, 0.14), transparent 65%),
    var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 44px 36px;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-inner p { color: var(--ink2); margin-bottom: 22px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* Animation helpers used in blog articles */
.anim-in { opacity: 0; transform: translateY(10px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.anim-in.vis, .anim-in.d2.vis { opacity: 1; transform: none; }
.anim-in.d2 { transition-delay: 100ms; }
/* Safety: when an .anim-in lives inside a .fade.vis container (or any .glass-inner)
   it should become visible even if the JS observer didn't target it directly */
.fade.vis .anim-in,
.glass-inner .anim-in { opacity: 1; transform: none; }

/* ---- Mobile overrides for sub-page templates ---- */
@media (max-width: 768px) {
  .hero-l2,
  .hero.hero--l2,
  .hero:not(:has(.hero-bg)):not(.hero--stage) {
    padding: calc(var(--nav-h-mobile) + 72px) 20px 40px;
    min-height: 0;
  }
  .hero-l2 h1,
  .hero.hero--l2 h1,
  .hero:not(:has(.hero-bg)):not(.hero--stage) h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero-l2 .hero-sub,
  .hero.hero--l2 .hero-sub,
  .hero:not(:has(.hero-bg)):not(.hero--stage) .hero-sub { font-size: 17px; }

  .contrast-item { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .contrast-not { justify-content: flex-start; }
  .contrast-vs { padding: 4px 0; font-size: 12px; align-self: start; justify-self: start; }
  .contrast-vs::before, .contrast-vs::after { display: none; }

  .fw-layer { gap: 12px; }
  .fw-num { font-size: 36px; }
  .fw-title, .fw-head h3 { font-size: 20px; }

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

  .page-header { padding: calc(var(--nav-h-mobile) + 72px) 20px 40px; }

  .glass-page { padding: calc(var(--nav-h-mobile) + 40px) 12px 40px; }
  .glass-inner { width: calc(100% - 24px); }
  .article-head { padding: 24px 0 0; }
  .article-head h1 { font-size: clamp(26px, 7vw, 34px); }
  .article-content { padding: 22px 0 36px; }
  .article-divider { margin: 22px 0 0; }
  .article-body { font-size: 17px; line-height: 1.72; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 19px; }
  .related-section { padding: 48px 16px 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 0 16px; }
  .cta-inner { padding: 32px 22px; }
}

@media (max-width: 430px) {
  .related-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   SOCIAL PROOF SECTION — glass band inside hero-stage
   ============================================================ */
.hero-social-proof-section {
  position: relative;
  margin: -24px 0 0;
  padding: 0 0 64px;
  z-index: 4;
  background: transparent;
}
.hero-social-proof-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(244, 247, 251, 0) 0%,
    var(--surface) 72%);
}
.hero-social-proof-section .hero-social-proof {
  position: relative;
  z-index: 2;
}

#icp-bridge {
  position: relative;
  margin-top: -32px;
  padding-top: 48px;
  padding-bottom: 96px;
  background: transparent;
}
#tnw-architecture.tnw-flow {
  margin-top: var(--sp-10);
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

@media (max-width: 900px) {
  .hero-stage-dissolve { height: 48%; }
  .hero-social-proof-section {
    padding: 0 0 40px;
    margin-top: -12px;
  }
  .hero-social-proof-glass {
    -webkit-backdrop-filter: blur(28px) saturate(1.22);
    backdrop-filter: blur(28px) saturate(1.22);
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.52) 28%,
      rgba(244, 247, 251, 0.88) 58%,
      var(--surface) 100%);
  }
  .hero-social-proof .quote-glass { padding-top: 40px; }
  .hero-social-proof .stat-bar {
    padding: 22px 18px 28px;
    margin-left: 0;
    margin-right: 0;
  }
  #icp-bridge { padding-top: 48px; margin-top: 0; }

  /* Track Record: cards become a horizontal snap-scroll row on mobile.
     touch-action: pan-x means the scroller only consumes horizontal touch
     gestures — vertical swipes bypass it and scroll the page as expected.
     This prevents the scroller from trapping vertical motion. */
  #results .g3 {
    display: flex;
    flex-direction: row;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 24px 18px;
    margin-left: -24px;
    margin-right: -24px;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }
  #results .g3::-webkit-scrollbar { display: none; }
  #results .case-card {
    flex: 0 0 82%;
    max-width: 360px;
    min-width: 0;
    scroll-snap-align: start;
  }
  /* Right-edge breathing room after the last card */
  #results .g3::after {
    content: '';
    flex: 0 0 8px;
  }
  /* CTA below the scroll gets its own breathing room */
  #results .case-cta-row { margin-top: 24px; }
}


/* ============================================================
   V1 CAPABILITIES — GOLD HALO TREATMENT
   The .svc-card body keeps its per-card hue tint (blue/green
   progression), but the icon square (.svc-halo) gets a fixed
   gold-dominant treatment for warmth and visual punctuation.
   ============================================================ */
#services .svc-halo,
.svc-card .svc-halo {
  background:
    radial-gradient(circle at 25% 22%, rgba(var(--hue), 0.28), transparent 72%),
    radial-gradient(circle at 78% 80%, rgba(var(--hue), 0.18), transparent 72%),
    linear-gradient(135deg, rgba(var(--hue), 0.13), rgba(var(--hue), 0.07));
  border: 1px solid rgba(var(--hue), 0.22);
  box-shadow:
    0 6px 16px -12px rgba(var(--hue), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
/* Icon stays in the card's hue but deepened enough to read clearly on the
   much lighter halo. contrast + brightness pull the stroke toward a darker
   tone without redefining each per-card hue. */
#services .svc-viz,
.svc-card .svc-viz {
  color: rgb(var(--hue));
  filter: contrast(1.22) brightness(0.70) saturate(1.15);
}


/* ============================================================
   V1 CASE STUDY — IMAGE VISIBILITY BUMP
   Slightly more visible background image on case cards so the
   photo registers as part of the story, not just texture.
   ============================================================ */
.case-card::before {
  opacity: 0.36;
  filter: saturate(0.92) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 28%, rgba(0,0,0,0.55) 58%, transparent 88%);
  mask-image: linear-gradient(to bottom, black 0%, black 28%, rgba(0,0,0,0.55) 58%, transparent 88%);
}
.case-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.88) 92%);
}


/* ============================================================
   HOMEPAGE TIMELINE (.tl-home)
   Editorial timeline (no circles, no continuous connector line).
   Big numbers act as the visual anchors. Each step is separated
   from the next by a subtle hairline divider instead of a
   continuous line cutting through the entire section.
   ============================================================ */
.tl-home {
  list-style: none;
  margin: 48px 0 56px; /* extra bottom margin separates the timeline from the CTA below */
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.tl-home-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 8px 22px 8px 24px;
}
/* Subtle vertical hairline BETWEEN columns — never on the first item.
   Color drives off --tl-divider so the token swaps per-theme (light/dark). */
.tl-home {
  --tl-divider: 16, 34, 54; /* default light theme — overridden in dark themes via cascade */
}
.tl-home-step + .tl-home-step::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(var(--tl-divider), 0) 0%,
    rgba(var(--tl-divider), 0.12) 18%,
    rgba(var(--tl-divider), 0.12) 82%,
    rgba(var(--tl-divider), 0) 100%);
  pointer-events: none;
}
.tl-home-marker {
  display: flex;
  align-items: center;
  justify-content: space-between; /* number left, icon to the right edge of the column */
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
}
.tl-home-n {
  font-family: var(--hd);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgb(var(--hue, 74, 158, 205)), rgba(var(--hue, 74, 158, 205), 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tl-home-icon {
  width: 34px;
  height: 34px;
  color: rgb(var(--hue, 74, 158, 205));
  opacity: 0.85;
  margin-left: auto; /* pin to right edge of the column */
}
.tl-home-icon svg { width: 100%; height: 100%; }
.tl-home-body { max-width: 280px; }
.tl-home-title {
  font-family: var(--hd);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 8px;
}
.tl-home-desc {
  font-family: var(--bd);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink2);
  margin: 0;
}
@media (max-width: 900px) {
  .tl-home {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 36px 0 44px;
  }
  .tl-home-step {
    padding: 22px 0;
  }
  /* On mobile, the hairline divider runs HORIZONTAL between items */
  .tl-home-step + .tl-home-step::before {
    top: 0;
    bottom: auto;
    left: 8%;
    right: 8%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(var(--tl-divider), 0) 0%,
      rgba(var(--tl-divider), 0.14) 14%,
      rgba(var(--tl-divider), 0.14) 86%,
      rgba(var(--tl-divider), 0) 100%);
  }
  .tl-home-marker { margin-bottom: 12px; }
  .tl-home-n { font-size: 48px; }
  .tl-home-body { max-width: none; }
}


/* ============================================================
   V1 INSIGHTS — EDGE-TO-EDGE FADED IMAGE CARDS
   Same visual template as .case-card: full-bleed faded
   background image with white wash so the title reads.
   Activated by adding .blog-card-img + --blog-img on the card.
   ============================================================ */
.blog-card-img {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(var(--hue), 0.22), transparent 60%),
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(var(--hue), 0.10), transparent 60%),
    var(--paper);
  border: 1px solid rgba(var(--hue), 0.18);
  text-decoration: none;
}
.blog-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--blog-img, none);
  background-size: cover;
  background-position: center top;
  opacity: 0.52;
  filter: saturate(0.94) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 32%, rgba(0,0,0,0.55) 62%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 0%, black 32%, rgba(0,0,0,0.55) 62%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Image stays clean at top, white wash starts later and ends denser so
     the title and excerpt sit firmly in the white area at the bottom. */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0)   52%,
    rgba(255, 255, 255, 0.62) 70%,
    rgba(255, 255, 255, 0.94) 86%,
    rgba(255, 255, 255, 0.98) 100%);
  pointer-events: none;
  z-index: 1;
}
.blog-card-img > * { position: relative; z-index: 2; }
.blog-card-img .blog-body {
  flex: 0 0 auto; /* override base .blog-body { flex: 1 } so margin-top: auto actually pushes body to bottom */
  margin-top: auto;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Excerpt no longer needs to stretch — kill the inherited flex: 1 */
.blog-card-img .blog-excerpt { flex: 0 0 auto; }
.blog-card-img:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--hue), 0.28); }
/* Pill is lifted out of the flow and pinned to the card's top-left corner
   so it floats over the image while the title/excerpt sit cleanly below. */
.blog-card-img .blog-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-block;
  width: auto;
  margin-bottom: 0;
  color: rgb(var(--hue));
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(var(--hue), 0.34);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(10px) saturate(1.10);
  backdrop-filter: blur(10px) saturate(1.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 16px -10px rgba(var(--hue), 0.40);
}
/* "Read article" link reads as a single accent (blue) across every card
   so the row feels unified — only the pill carries the per-card hue. */
.blog-card-img .blog-link {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  color: var(--blue-deep);
  border-bottom-color: rgba(31, 74, 117, 0.32);
}
.blog-card-img .blog-link:hover {
  color: var(--blue-button-hover);
  border-bottom-color: rgba(31, 74, 117, 0.55);
}


/* ============================================================
   TRUST ROW + REFERRAL CALLOUT  (added 2026-05-12)
   ============================================================ */
.trust-row{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:14px;
  margin:64px auto 0;
  max-width:var(--container);
  padding:0 12px;
}
.trust-badge{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:14px 10px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.52));
  border:1px solid rgba(31, 74, 117, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 8px 22px -16px rgba(20, 38, 64, 0.40);
  text-align:center;
  transition:transform .25s ease, box-shadow .25s ease;
}
.trust-badge:hover{
  transform:translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 14px 30px -18px rgba(20, 38, 64, 0.55);
}
.trust-mark{
  font-family:var(--display, var(--hd));
  font-weight:700;
  font-size:15px;
  letter-spacing:0.04em;
  color:var(--blue-deep, #1f4a75);
  line-height:1;
}
.trust-meta{
  display:block;
  margin-top:6px;
  font-size:10.5px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--ink2, rgba(20,38,64,0.62));
  line-height:1.25;
}
.trust-seal {
  display: block;
  width: 38px; height: 38px;
  margin: 0 auto 8px;
  color: var(--blue-deep, #1f4a75);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.trust-badge:hover .trust-seal { opacity: 1; transform: scale(1.04); }

@media (max-width:780px){
  .trust-row{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin-top:44px; }
  .trust-badge{ padding:12px 8px; }
}
@media (max-width:420px){
  .trust-row{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

.referral-callout{
  margin:54px auto 0;
  max-width:var(--container);
  padding:36px 36px 32px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
  border:1px solid rgba(31, 74, 117, 0.14);
  text-align:center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 22px 50px -28px rgba(20, 38, 64, 0.38);
  position:relative;
}
.referral-callout::before{
  content:"\201C";
  position:absolute;
  top:-22px;
  left:50%;
  transform:translateX(-50%);
  font-family:var(--display, var(--hd));
  font-size:78px;
  line-height:1;
  color:rgba(31, 74, 117, 0.18);
  pointer-events:none;
}
.referral-eyebrow{
  display:block;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--ink2, rgba(20,38,64,0.55));
  margin-bottom:14px;
}
.referral-quote{
  font-family:var(--display, var(--hd));
  font-size:clamp(19px, 2.1vw, 24px);
  line-height:1.45;
  color:var(--ink, #142640);
  font-style:italic;
  letter-spacing:-0.005em;
  margin:0 0 14px;
}
.referral-attr{
  display:block;
  font-size:13px;
  letter-spacing:0.06em;
  color:var(--ink2, rgba(20,38,64,0.62));
}
@media (max-width:600px){
  .referral-callout{ padding:30px 22px 26px; margin-top:40px; }
}

/* ============================================================
   NET WORTH PROJECTION MODULE  (rebuilt 2026-05-12 — V1 light)
   v3: stepped wizard pattern (modeled on ai-genesis.ai ROI calc)
   ============================================================ */
#projection {
  position: relative;
  padding: 88px 0 100px;
  background: transparent;
}
#projection .center { text-align: center; }
#projection .h2 { font-family: var(--display, var(--hd), "Playfair Display", Georgia, serif); font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: #142640; margin: 0 0 12px; }
#projection .sub { font-size: 16px; line-height: 1.55; color: rgba(20, 38, 64, 0.66); max-width: 580px; margin: 0 auto; }

.proj-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #1f4a75;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 74, 117, 0.25);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}

/* === WIZARD CARD === */
.nwp-wizard {
  max-width: 720px;
  margin: 40px auto 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 74, 117, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 30px 70px -32px rgba(20, 38, 64, 0.28);
  overflow: hidden;
}
.nwp-wizard[data-step="3"] .nwp-progress {
  visibility: hidden;
  pointer-events: none;
}
.nwp-wizard[data-step="3"] .nwp-stage { padding: 28px 28px 32px; }

/* Progress bar */
.nwp-progress {
  position: relative;
  height: 4px; width: 100%;
  background: rgba(31, 74, 117, 0.08);
}
.nwp-progress-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #1f4a75, #d4945c);
  border-radius: 0 999px 999px 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stage — only the active step sets height; smooth resize via JS */
.nwp-stage {
  position: relative;
  padding: 28px 28px 32px;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Inactive steps: out of flow so Q1–Q3 stay compact */
.nwp-step {
  position: absolute;
  inset: 28px 28px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.nwp-step.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Step header */
.nwp-step-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.nwp-q {
  font-family: var(--display, "Playfair Display", Georgia, serif);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  color: #142640;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.nwp-step-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 38, 64, 0.45);
  white-space: nowrap;
}

/* Options grid */
.nwp-options {
  display: grid;
  gap: 10px;
}
.nwp-options-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nwp-opt {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 74, 117, 0.14);
  color: #142640;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.nwp-opt:hover {
  background: rgba(31, 74, 117, 0.05);
  border-color: rgba(31, 74, 117, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -16px rgba(20, 38, 64, 0.35);
}
.nwp-opt:active { transform: scale(0.98); }
.nwp-opt.is-picked {
  background: linear-gradient(180deg, rgba(31, 74, 117, 0.10), rgba(212, 148, 92, 0.06));
  border-color: rgba(31, 74, 117, 0.42);
}
.nwp-opt-hint {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(20, 38, 64, 0.5);
}

/* Back link */
.nwp-back {
  appearance: none;
  background: transparent; border: 0;
  margin-top: 18px;
  padding: 8px 0;
  font: inherit;
  font-size: 13px;
  color: rgba(20, 38, 64, 0.45);
  cursor: pointer;
  transition: color 0.2s ease;
}
.nwp-back:hover { color: rgba(20, 38, 64, 0.75); }

/* === RESULT === */
.nwp-result { text-align: center; }
.nwp-result-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20, 38, 64, 0.5);
  margin-bottom: 10px;
}
.nwp-result-num {
  font-family: var(--display, "Playfair Display", Georgia, serif);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  padding: 0.06em 0.04em;
  min-height: 1.15em;
  min-width: 4.5ch;
  background: linear-gradient(135deg, #1f4a75, #d4945c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 4px 0 14px;
  font-variant-numeric: tabular-nums;
}
.nwp-result-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(20, 38, 64, 0.62);
  max-width: 480px;
  margin: 0 auto 14px;
}
.nwp-result-sub strong { color: #142640; font-weight: 600; }
.nwp-result-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(31, 74, 117, 0.78);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 74, 117, 0.05);
  border: 1px solid rgba(31, 74, 117, 0.14);
  margin: 0 0 22px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

/* Mode toggle — sits between Q1 heading and option grid */
.nwp-mode-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(31, 74, 117, 0.05);
  border: 1px solid rgba(31, 74, 117, 0.10);
}
.nwp-mode {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(20, 38, 64, 0.55);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nwp-mode:hover { color: rgba(20, 38, 64, 0.85); }
.nwp-mode.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1f4a75, #2d6a9b);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 6px 14px -8px rgba(31, 74, 117, 0.55);
}

/* ROI v5: result unit + secondary exit CTA + wide 5th option */
.nwp-result-unit {
  font-size: 14px;
  font-weight: 500;
  color: rgba(20, 38, 64, 0.55);
  letter-spacing: 0.01em;
  margin: -6px 0 14px;
}
.nwp-opt-wide {
  grid-column: 1 / -1;
}
.nwp-result-secondary {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(20, 38, 64, 0.55);
  text-decoration: none;
  border-bottom: 1px dashed rgba(20, 38, 64, 0.22);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.nwp-result-secondary:hover {
  color: rgba(31, 74, 117, 0.95);
  border-bottom-color: rgba(31, 74, 117, 0.55);
}
.nwp-result-proof:hover {
  color: rgba(31, 74, 117, 0.95);
  background: rgba(31, 74, 117, 0.09);
  border-color: rgba(31, 74, 117, 0.28);
  transform: translateY(-1px);
}

.nwp-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.nwp-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  padding: 16px 12px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid rgba(31, 74, 117, 0.10);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.nwp-result-stat[data-scenario="federal"] { border-color: rgba(74, 158, 205, 0.22); }
.nwp-result-stat-hero {
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.95), rgba(255, 240, 218, 0.6));
  border-color: rgba(212, 148, 92, 0.42);
  box-shadow: 0 10px 24px -18px rgba(212, 148, 92, 0.5);
}
.nwp-result-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 38, 64, 0.55);
  margin-bottom: 8px;
}
.nwp-result-stat[data-scenario="standard"] .nwp-result-stat-label { color: rgb(110, 110, 120); }
.nwp-result-stat[data-scenario="federal"]  .nwp-result-stat-label { color: rgb(45, 120, 165); }
.nwp-result-stat[data-scenario="op"]       .nwp-result-stat-label { color: rgb(168, 116, 64); }
.nwp-result-stat-num {
  font-family: var(--display, "Playfair Display", Georgia, serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #142640;
  font-variant-numeric: tabular-nums;
  min-width: 4.5ch;
  line-height: 1.1;
}
.nwp-result-stat[data-scenario="op"] .nwp-result-stat-num { color: rgb(168, 116, 64); }
.nwp-result-stat-foot {
  margin-top: auto;
  padding-top: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  max-width: 100%;
  color: rgba(20, 38, 64, 0.52);
  letter-spacing: 0.02em;
}

.nwp-result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  margin-bottom: 18px;
}
.nwp-recalc {
  appearance: none; background: transparent; border: 0;
  font: inherit; font-size: 12.5px;
  color: rgba(20, 38, 64, 0.45);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s ease;
}
.nwp-recalc:hover { color: rgba(20, 38, 64, 0.75); }

/* Disclaimer */
.nwp-disclaimer-wrap {
  margin: 6px auto 0;
  max-width: 520px;
}
.nwp-disclaimer-summary {
  cursor: pointer; list-style: none;
  text-align: center;
  font-size: 11.5px; letter-spacing: 0.04em;
  color: rgba(20, 38, 64, 0.45);
  padding: 8px 14px;
  transition: color 0.2s ease;
}
.nwp-disclaimer-summary::-webkit-details-marker { display: none; }
.nwp-disclaimer-summary::after { content: " ▾"; opacity: 0.6; }
.nwp-disclaimer-wrap[open] .nwp-disclaimer-summary::after { content: " ▴"; }
.nwp-disclaimer-summary:hover { color: rgba(20, 38, 64, 0.75); }
.nwp-disclaimer {
  font-size: 12px; line-height: 1.55;
  color: rgba(20, 38, 64, 0.55);
  text-align: center; font-style: italic;
  margin: 6px 0 0; padding: 0 12px;
}

/* === MOBILE === */
@media (max-width: 700px) {
  #projection { padding: 60px 0 76px; }
  .nwp-wizard { margin: 32px 16px 0; border-radius: 22px; }
  .nwp-stage { padding: 22px 18px 26px; }
  .nwp-step { inset: 22px 18px 26px; }
  .nwp-step.is-active { inset: auto; }
  .nwp-options-2col { grid-template-columns: 1fr; }
  .nwp-opt { padding: 15px 16px; font-size: 14.5px; }
  .nwp-q { font-size: 19px; }
  .nwp-result-num { font-size: clamp(54px, 16vw, 84px); }
  .nwp-result-grid { grid-template-columns: 1fr; gap: 8px; }
  .nwp-result-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 14px 16px; gap: 10px; }
  .nwp-result-stat-label { margin-bottom: 0; }
  .nwp-result-stat-num { font-size: 20px; }
  .nwp-result-stat-foot { grid-column: 1 / -1; text-align: left; margin-top: 2px; }
  .nwp-result-sub { font-size: 13.5px; }
}



/* ============================================================
   INDUSTRY LANDING PAGES  (added 2026-05-12)
   ============================================================ */
.hero-eyebrow{
  display:inline-block;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--blue-deep, #1f4a75);
  background:linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
  border:1px solid rgba(31, 74, 117, 0.25);
  padding:7px 16px;
  border-radius:999px;
  margin-bottom:24px;
}
.svc-num{
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--display, var(--hd));
  font-weight:700;
  font-size:38px;
  letter-spacing:-0.01em;
  color:rgb(var(--hue));
  font-variant-numeric:tabular-nums;
}
.industry-case{
  max-width:920px;
  margin:0 auto;
  padding:48px 44px;
  border-radius:28px;
  background:
    linear-gradient(135deg, rgba(31, 74, 117, 0.06), rgba(212, 148, 92, 0.05)),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.52));
  border:1px solid rgba(31, 74, 117, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 32px 70px -36px rgba(20, 38, 64, 0.40);
  text-align:center;
}
.industry-case-label{
  display:inline-block;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--blue-deep, #1f4a75);
  margin-bottom:16px;
}
.industry-case-headline{
  font-family:var(--display, var(--hd));
  font-size:clamp(28px, 4vw, 40px);
  font-weight:700;
  color:var(--ink, #142640);
  margin:0 0 22px;
  line-height:1.2;
  letter-spacing:-0.01em;
}
.industry-case-body{
  font-size:16px;
  line-height:1.65;
  color:var(--ink2, rgba(20,38,64,0.78));
  margin:0 0 26px;
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}
.industry-case-body em{ color:var(--ink, #142640); font-style:italic; }

.faq-list{
  max-width:820px;
  margin:32px auto 0;
  padding:0 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.faq-item{
  background:linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48));
  border:1px solid rgba(31, 74, 117, 0.14);
  border-radius:16px;
  padding:0;
  overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open]{
  border-color:rgba(31, 74, 117, 0.32);
  box-shadow:0 16px 40px -22px rgba(20, 38, 64, 0.35);
}
.faq-item summary{
  cursor:pointer;
  list-style:none;
  padding:20px 56px 20px 24px;
  font-family:var(--display, var(--hd));
  font-size:17px;
  font-weight:600;
  color:var(--ink, #142640);
  line-height:1.4;
  position:relative;
  transition:color .2s ease;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  font-size:24px;
  font-weight:300;
  color:var(--blue-deep, #1f4a75);
  transition:transform .25s ease;
}
.faq-item[open] summary::after{
  content:"\2212";
  transform:translateY(-50%) rotate(180deg);
}
.faq-item p{
  margin:0;
  padding:0 24px 22px;
  font-size:15px;
  line-height:1.65;
  color:var(--ink2, rgba(20,38,64,0.72));
}
.faq-item em{ color:var(--ink, #142640); font-style:italic; }

@media (max-width:780px){
  .industry-case{ padding:36px 24px; }
  .faq-item summary{ padding:18px 48px 18px 18px; font-size:16px; }
  .faq-item p{ padding:0 18px 18px; }
}


/* ============================================================
   CLOSING CTA — redesigned pyramid pattern (May 2026)
   Used on results.html + industry sub-pages
   ============================================================ */
.cta-close { padding: 80px 0 110px; }
.cta-close .section { max-width: var(--article-w); }

.cta-card {
  position: relative;
  padding: 64px 56px 48px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(74, 158, 205, 0.10), transparent 65%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(197, 148, 74, 0.07), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(74, 127, 165, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 30px 80px -40px rgba(20, 38, 64, 0.45);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(31, 74, 117, 0.55) 30%, rgba(212, 148, 92, 0.55) 70%, transparent 100%);
  opacity: 0.85;
}

.cta-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-deep, #1f4a75);
  opacity: 0.85;
}

.cta-title {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 auto 22px;
  max-width: 720px;
  color: var(--ink, #14263c);
}

.cta-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink2, rgba(20, 38, 64, 0.72));
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cta-btn {
  min-width: 240px;
  text-align: center;
}
.cta-link {
  font-size: 13.5px;
  color: var(--ink2, rgba(20, 38, 64, 0.6));
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(20, 38, 64, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta-link:hover { color: var(--blue-deep, #1f4a75); border-color: rgba(31, 74, 117, 0.5); }

.cta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 38, 64, 0.14), transparent);
  margin: 44px auto 36px;
  max-width: 240px;
}

/* Contact tiles sit below the main CTA card — not cramped inside it */
.cta-close .cta-card {
  padding-bottom: 56px;
}
.cta-close .cta-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px auto 0;
  max-width: var(--article-w);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.cta-close .cta-referral {
  margin-top: 28px;
}

.cta-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 32px;
  max-width: 820px;
}
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 100%;
  padding: 24px 18px 22px;
  border-radius: var(--r-lg, 20px);
  background: var(--paper);
  border: 1px solid rgba(31, 74, 117, 0.14);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 74, 117, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 36px -20px rgba(20, 38, 64, 0.45);
}
.contact-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-deep, #1f4a75);
  background: rgba(74, 158, 205, 0.10);
  border: 1px solid rgba(74, 158, 205, 0.22);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-bottom: 8px;
}
.contact-value {
  font-family: var(--hd);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--blue-deep, #1f4a75);
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}
.contact-meta {
  font-size: 11.5px;
  color: var(--ink2, rgba(20, 38, 64, 0.55));
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.cta-referral {
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink2, rgba(20, 38, 64, 0.6));
  letter-spacing: 0.01em;
  margin: 8px auto 0;
  max-width: 480px;
}

@media (max-width: 720px) {
  .cta-card { padding: 44px 22px 40px; border-radius: 22px; }
  .cta-close .cta-contacts { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .cta-title { font-size: 26px; }
  .cta-body { font-size: 14.5px; margin-bottom: 28px; }
  .cta-contacts { grid-template-columns: 1fr; gap: 10px; }
  .contact-tile { padding: 18px 16px; }
  .cta-divider { margin: 36px auto 28px; }
}


/* Real-logo trust badges (May 2026) */
.trust-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; }
@media (max-width: 780px) { .trust-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-row-2 {
  grid-template-columns: repeat(2, minmax(0, 220px));
  max-width: 520px;
  justify-content: center;
  gap: 28px;
}
.trust-row-2 .trust-badge { padding: 22px 18px; }
.trust-row-2 .trust-logo { height: 52px; }
@media (max-width: 780px) {
  .trust-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; gap: 14px; }
  .trust-row-2 .trust-logo { height: 44px; }
}
.trust-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 110px;
  margin: 0 auto 8px;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: saturate(0.92);
}
.trust-badge:hover .trust-logo { opacity: 1; transform: scale(1.04); }


/* ============================================================
   V1 POLISH 2026-05-13 (panchuk lane, post-handoff cleanup)
   Single targeted patch block — safe to revert by deleting from
   here to end-of-file. Addresses 4 CEO-flagged visual blockers
   from docs/handoffs/panchuk-2026-W20.md "Top 3 next steps" #1.
   ============================================================ */

/* 1. Capability icon halos: alpha 0.28/0.18/0.13/0.07 read as
   saturated patches against the cream-band. Pulled to about 60%
   intensity. Stroke filter softened so icons stop "vibrating"
   against the lighter halo. (CEO flagged 3x in prior chat.) */
#services .svc-halo,
.svc-card .svc-halo {
  background:
    radial-gradient(circle at 25% 22%, rgba(var(--hue), 0.16), transparent 72%),
    radial-gradient(circle at 78% 80%, rgba(var(--hue), 0.10), transparent 72%),
    linear-gradient(135deg, rgba(var(--hue), 0.08), rgba(var(--hue), 0.04));
  border: 1px solid rgba(var(--hue), 0.14);
  box-shadow:
    0 6px 16px -12px rgba(var(--hue), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#services .svc-viz,
.svc-card .svc-viz {
  color: rgb(var(--hue));
  filter: contrast(1.18) brightness(0.78) saturate(0.92);
}

/* 2. Capabilities grid: 2-col on desktop with short copy left a
   visible right-side void per card. Switch to 3x2 on >=1024px
   with column-direction cards — denser reading rhythm, no empty
   space. Mobile + tablet layout (row-direction, 1-col stack)
   stays intact via the existing 2-col -> 1-col cascade. */
@media (min-width: 1024px) {
  #services .g2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  #services .svc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 24px 26px;
  }
  #services .svc-halo { flex: 0 0 56px; width: 56px; height: 56px; }
  #services .svc-content { width: 100%; }
}

/* 3. tl-home-n: line-height 0.95 with background-clip:text was
   masking the bottom of glyphs that have descenders or low
   baselines — "3" was the visible offender on both breakpoints.
   Give the gradient text mask vertical room. */
.tl-home-n {
  line-height: 1.08;
  padding-bottom: 3px;
  overflow: visible;
}

/* 4. #projection radial — removed; section-local washes caused hard seams.
   Canvas is .site-ambient-bloom (fixed) + transparent sections. */

/* =============================================================
   STACKED ICON DESIGN — approach-dark.html  #cross-border .svc-card
   Adds a vertical stack layout (icon over content), larger
   featured halo, per-hue accent, and centered text. Scoped to
   #cross-border so it never affects .svc-card grids on other
   V1 pages (services, business-services, etc.). Specificity
   (1,1,0) beats the default `.svc-card` rule at L939 AND the
   responsive override at L1897, so no !important needed.
   Added 2026-05-14 per CEO directive (panchuk lane).
   ============================================================= */
#cross-border .svc-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 32px 26px 30px;
  min-height: 0;
}
#cross-border .svc-halo {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 22%, rgba(var(--hue, 74, 158, 205), 0.32), transparent 70%),
    radial-gradient(circle at 78% 82%, rgba(var(--hue, 74, 158, 205), 0.22), transparent 72%),
    linear-gradient(135deg, rgba(var(--hue, 74, 158, 205), 0.16), rgba(var(--hue, 74, 158, 205), 0.06));
  border: 1px solid rgba(var(--hue, 74, 158, 205), 0.30);
  box-shadow:
    0 12px 28px -18px rgba(var(--hue, 74, 158, 205), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
#cross-border .svc-viz {
  width: 42px;
  height: 42px;
  color: rgb(var(--hue, 74, 158, 205));
}
#cross-border .svc-viz svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}
#cross-border .svc-content {
  flex: none;
  width: 100%;
  max-width: 280px;
}
#cross-border .svc-content .h3 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.3;
}
#cross-border .svc-content .body {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  #cross-border .svc-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px 26px;
    gap: 16px;
  }
  #cross-border .svc-halo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 20px;
  }
  #cross-border .svc-viz { width: 38px; height: 38px; }
  #cross-border .svc-content .h3 { font-size: 17px; margin-bottom: 6px; }
  #cross-border .svc-content .body { font-size: 14px; line-height: 1.55; }
}

/* Max 23 Aug: mobile menu height, Assessment dock, iOS safe-area */
.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--nav-h-mobile, 72px) - env(safe-area-inset-top, 0px) - 12px);
  padding: 6px 12px 0;
  overflow: hidden;
}
.nav-mobile-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.nav-mobile a {
  font-size: 16px;
  padding: 8px 12px;
  min-height: 40px;
}
.nav-mobile-label {
  margin: 10px 12px 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.nav-mobile-dock {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(16, 34, 54, 0.08);
}
.nav-mobile .mob-cta {
  margin-top: 0;
  padding: 14px;
  min-height: 48px;
}
.nav-mobile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.nav-mobile-split a {
  justify-content: center;
  min-height: 40px;
  background: rgba(16, 34, 54, 0.04);
}
#results .case-grid-home .case-card:nth-child(n+4) {
  display: none;
}
.how-we-work-compact {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.how-we-work-compact .sub { margin-bottom: 18px; }
