/* ============================================================
   Brainy Neurals — site-wide footer
   Editorial-engineering aesthetic. Dark footer on light body.
   Blue (#0655FF) reserved for clickable links/CTAs ONLY.
   ============================================================ */
:root {
  --ink:        #0A0A0B;
  --ink-2:      #1A1A1D;
  --ink-3:      #2A2A2E;
  --paper:      #FFFFFF;
  --bone:       #FAFAF8;
  --line:       rgba(10,10,11,0.14);
  --line-dark:  rgba(244,239,230,0.14);
  --line-dark-2:rgba(244,239,230,0.08);
  --muted:      rgba(10,10,11,0.58);
  --muted-dark: rgba(244,239,230,0.62);
  --muted-dark-2: rgba(244,239,230,0.42);
  --blue:       #0655FF;
  --blue-2:     #0444CC;
  --signal:     #B5FF3C;
  --r-sm: 4px;  --r: 8px;  --r-lg: 14px;  --r-xl: 22px;
  --container: 1320px;
  --gutter: 32px;
  --t1: cubic-bezier(.2,.7,.2,1);
  --bnf-link-hover: #7AA0FF;
}

.bnf, .bnf * { box-sizing: border-box; }
.bnf {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bnf img, .bnf svg { display: block; max-width: 100%; }
.bnf a { color: inherit; text-decoration: none; }
.bnf button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.bnf :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.bnf-wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bnf .mono, .bnf-cred, .bnf-creds-cap, .bnf-group-head, .bnf-copy { font-feature-settings: normal; }

/* ============================================================
   TIER 1 — Pre-footer CTA band
   Thin band, ink-2 tone (one step up from the ink main footer)
   with a top + bottom hairline so the two dark zones never merge.
   ============================================================ */
.bnf-cta {
  background: var(--ink-2);
  color: var(--bone);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
/* quiet engineering grid texture, masked to a whisper */
.bnf-cta::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244,239,230,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 75%);
}
.bnf-cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px;
  padding: 52px 0;
}
.bnf-cta-lead { max-width: 760px; }
.bnf-cta-h {
  font-weight: 500;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--bone);
}
.bnf-cta-h em {
  font-style: italic;
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.bnf-cta-sub {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.5;
  color: var(--muted-dark);
  margin: 0 0 26px;
  max-width: 56ch;
}
.bnf-cta-trust {
  flex-shrink: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted-dark);
  max-width: 230px;
  margin: 0;
}
.bnf-cta-trust .bnf-sig {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(181,255,60,0.10);
  flex-shrink: 0;
}
.bnf-cta-trust .bnf-dot { color: var(--muted-dark-2); margin: 0 2px; }

/* primary button — design-system pill */
.bnf-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .2s var(--t1), transform .2s var(--t1);
}
.bnf-btn .arr { transition: transform .25s var(--t1); }
.bnf-btn:hover .arr { transform: translateX(4px); }
.bnf-btn-primary { background: var(--blue); color: #fff; }
.bnf-btn-primary:hover { background: var(--blue-2); }

/* Layout: inline — headline left, button + trust grouped right */
.bnf-cta[data-layout="inline"] .bnf-cta-inner { align-items: center; }
.bnf-cta[data-layout="inline"] .bnf-cta-lead { display: flex; flex-direction: column; }
.bnf-cta[data-layout="inline"] .bnf-btn { display: none; }
.bnf-cta[data-layout="inline"] .bnf-cta-trust {
  flex-direction: column; align-items: flex-start; gap: 18px; max-width: 280px;
}
.bnf-cta[data-layout="inline"] .bnf-cta-trust::after {
  content: "Book a Call →";
  order: -1;
  background: var(--blue); color: #fff;
  font-family: "IBM Plex Sans", sans-serif; font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 999px; letter-spacing: -0.005em;
}

/* Layout: centered — everything stacked & centered */
.bnf-cta[data-layout="centered"] .bnf-cta-inner {
  flex-direction: column; text-align: center; gap: 22px; padding: 60px 0;
}
.bnf-cta[data-layout="centered"] .bnf-cta-lead {
  display: flex; flex-direction: column; align-items: center; max-width: 720px;
}
.bnf-cta[data-layout="centered"] .bnf-cta-h { font-size: clamp(28px, 3.4vw, 46px); }
.bnf-cta[data-layout="centered"] .bnf-cta-trust { max-width: none; justify-content: center; }

/* ============================================================
   TIER 2 — Main footer
   ============================================================ */
.bnf-main {
  background: var(--ink);
  color: var(--bone);
  padding: 56px 0 30px;
}

/* ---- (a) Credential strip — lighter weight than the link grid ---- */
.bnf-creds {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px;
  padding: 4px 2px 26px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
  transition: opacity .2s var(--t1);
}
.bnf-creds-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}
.bnf-cred {
  display: inline-grid; place-items: center;
  height: 56px; padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  transition: transform .25s var(--t1), box-shadow .25s var(--t1);
}
.bnf-cred img { max-height: 34px; max-width: 110px; width: auto; object-fit: contain; }
.bnf-cred:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,0.55); }
.bnf-creds-cap {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
  transition: color .2s var(--t1);
}
.bnf-creds-cap .arr { transition: transform .25s var(--t1); color: var(--bone); }
.bnf-creds-cap:hover { color: var(--bone); }
.bnf-creds-cap:hover .arr { transform: translateX(4px); }

/* style: minimal — smaller flat white chips, no border, no lift: lightest trust band */
.bnf-creds[data-style="minimal"] .bnf-cred {
  height: 46px; padding: 0 12px;
  border-color: transparent;
  border-radius: var(--r-sm);
  opacity: 0.92;
}
.bnf-creds[data-style="minimal"] .bnf-cred img { max-height: 28px; }
.bnf-creds[data-style="minimal"] .bnf-cred:hover { transform: none; box-shadow: none; opacity: 1; }
.bnf-creds[data-style="minimal"] .bnf-creds-row { gap: 14px; }

/* style: panel — one translucent inset holding white chips */
.bnf-creds[data-style="panel"] {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 26px;
}
.bnf-creds[data-style="panel"] .bnf-cred { height: 50px; }

/* ---- (b) Link grid ---- */
.bnf-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 38px 0 46px;
}

/* Per-section schemes — palette restricted to BLUE · GREEN · WHITE (no gray).
   --acc paints the decorative rule/chevron; --acc-text paints the heading
   (pure --blue fails AA as small text on black, so the blue section uses a
   light-blue label over a full-blue rule).
   Services = green, Industries = blue, Company & Resources = white. */
.bnf-group[data-group]               { --acc-text: var(--acc); }
.bnf-group[data-group="services"]    { --acc: var(--signal); --acc-text: var(--signal); }
.bnf-group[data-group="industries"]  { --acc: var(--blue);   --acc-text: #7AA0FF; }
.bnf-group[data-group="company"]     { --acc: var(--bone);   --acc-text: var(--bone); }
.bnf-group[data-group="resources"]   { --acc: var(--bone);   --acc-text: var(--bone); }

.bnf-grid .bnf-group {
  border-top: 2px solid var(--acc);
  padding-top: 18px;
}
.bnf-group-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
  color: var(--acc-text, var(--muted-dark));
  margin: 0 0 18px;
  cursor: default;
}
.bnf-group-head span:first-child { pointer-events: none; }
.bnf-chev { display: none; }

.bnf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.bnf-links a {
  display: inline-block;
  font-size: 14.5px; line-height: 1.3;
  color: var(--bone);
  text-wrap: pretty;
  transition: color .15s var(--t1);
}
.bnf-links a:hover { color: var(--bnf-link-hover); }
.bnf-svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* desktop: panels always open, head not interactive */
.bnf-group-panel { display: block; }

/* ---- (c) Bottom bar ---- */
.bnf-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.bnf-bottom-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-self: start; }
.bnf-logo img { height: 30px; width: auto; }
.bnf-geo {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark-2);
  padding-left: 18px; border-left: 1px solid var(--line-dark);
}

/* Global delivery — its own full-width row above the bottom bar, centered */
.bnf-geo-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.bnf-geo-tick {
  width: 7px; height: 7px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(181,255,60,0.45);
  animation: bnf-breathe 2.4s var(--t1) infinite;
}
@keyframes bnf-breathe {
  0%   { box-shadow: 0 0 0 0 rgba(181,255,60,0.45); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(181,255,60,0); opacity: 0.65; }
  100% { box-shadow: 0 0 0 0 rgba(181,255,60,0); opacity: 1; }
}
.bnf-geo-label {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-dark);
}

.bnf-social { display: inline-flex; align-items: center; gap: 8px; }
.bnf-soc {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  transition: background .2s var(--t1), border-color .2s var(--t1);
}
.bnf-soc img {
  width: 16px; height: 16px;
  filter: invert(1) brightness(1.2);
  opacity: 0.8;
  transition: opacity .2s var(--t1), filter .2s var(--t1);
}
.bnf-soc:hover { background: var(--blue); border-color: var(--blue); }
.bnf-soc:hover img { opacity: 1; }

.bnf-copy {
  justify-self: center;
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.03em;
  color: var(--muted-dark-2);
  white-space: nowrap;
}
.bnf-legal {
  justify-self: end;
  display: flex; gap: 22px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.03em;
}
.bnf-legal a { color: var(--muted-dark); transition: color .15s var(--t1); }
.bnf-legal a:hover { color: var(--bone); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .bnf-grid { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
}

@media (max-width: 900px) {
  .bnf-cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px 0; }
  .bnf-cta-trust { max-width: none; flex-direction: row; }
  .bnf-cta[data-layout="inline"] .bnf-cta-trust::after { order: 0; }

  /* credential strip scrolls horizontally instead of wrapping */
  .bnf-creds { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bnf-creds-row {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    padding-bottom: 6px; gap: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .bnf-cred { flex: 0 0 auto; }

  /* grid → accordions; accent moves to a left rule + colored heading/chevron */
  .bnf-grid { grid-template-columns: 1fr; gap: 0; padding: 26px 0 8px; }
  .bnf-grid .bnf-group {
    border-top: none; padding-top: 0;
    border-bottom: 1px solid var(--line-dark);
    border-left: 2px solid var(--acc);
    padding-left: 14px;
  }
  .bnf-group-head {
    cursor: pointer;
    min-height: 56px; margin: 0;
    padding: 6px 2px;
    font-size: 12px;
    color: var(--acc-text, var(--bone));
  }
  .bnf-chev {
    display: block;
    width: 11px; height: 11px;
    border-right: 1.5px solid var(--acc, var(--muted-dark));
    border-bottom: 1.5px solid var(--acc, var(--muted-dark));
    transform: rotate(45deg);
    transition: transform .3s var(--t1);
    margin-right: 4px;
  }
  .bnf-group[data-open="true"] .bnf-chev { transform: rotate(-135deg); }
  .bnf-group-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s var(--t1), opacity .25s var(--t1), padding .35s var(--t1);
  }
  .bnf-group[data-open="true"] .bnf-group-panel {
    max-height: 720px; opacity: 1; padding-bottom: 22px;
  }
  .bnf-svc-cols { grid-template-columns: 1fr; gap: 12px; }
  .bnf-links a { padding: 5px 0; }

  /* bottom bar stacks */
  .bnf-bottom { grid-template-columns: 1fr; justify-items: start; gap: 22px; padding-top: 30px; }
  .bnf-bottom-brand,
  .bnf-copy,
  .bnf-legal { justify-self: start; }
  .bnf-copy { white-space: normal; }
  .bnf-legal { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .bnf-bottom-brand { gap: 14px; }
  .bnf-geo { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bnf *, .bnf *::before, .bnf *::after { transition-duration: .001ms !important; }
  .bnf-geo-tick { animation: none !important; box-shadow: 0 0 0 4px rgba(181,255,60,0.12) !important; }
}

  /*html, body { margin: 0; }*/
  /*body {*/
  /*  background: var(--ink);*/
  /*  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;*/
  /*  -webkit-font-smoothing: antialiased;*/
  /*}*/