/* =============================================================
   Build & Integrate — composed conversion layout on NC tokens
   Loaded after styles.css; reuses :root design tokens.
   Namespace: .bi-*
   ============================================================= */

/* Page accent — orange/yellow pulled from the logo mark, used in place of
   the site's cyan/violet/green/gold accents on this page only. */
:root {
  --bi-orange: #FF4900;
  --bi-yellow: #E6C619;
}

/* ---------- Scroll reveal (opt-in, see js/reveal.js) ----------
   Only applies once <html> gets .nc-reveal, so with JS off, reduced
   motion, or no IntersectionObserver everything stays visible. */
html.nc-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.nc-reveal [data-reveal].is-in { opacity: 1; transform: none; }

.bi-section {
  padding: calc(var(--space-8) + var(--space-4)) var(--gutter) var(--space-6);
  scroll-margin-top: calc(var(--header-height) + var(--space-3));
}
.bi-section--tight { padding-top: var(--space-7); }

/* ---------- Shared type ---------- */
.bi-h2 {
  font-family: var(--font-title); font-weight: 700;
  font-size: var(--fs-h2);
  letter-spacing: -0.025em; line-height: 0.99;
  margin: var(--space-3) 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.bi-h2--wide { max-width: 30ch; }
.bi-h2 em { font-style: normal; }
.bi-sub {
  font-size: var(--fs-lead); line-height: 1.55; color: var(--color-ink-60);
  max-width: 62ch; margin: var(--space-3) 0 0; text-wrap: pretty;
}
.bi-head--center { text-align: center; }
.bi-head--center .bi-h2 { margin-inline: auto; }
.bi-head--center .bi-sub { margin-inline: auto; }

.bi-chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 8px 16px; border: 1px solid var(--border-ink);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 6%, var(--color-paper));
  font-family: var(--font-title); font-size: var(--fs-sm); font-weight: 500;
  color: var(--color-ink); white-space: nowrap;
}
/* =============================================================
   Hero
   ============================================================= */
.bi-hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding: calc(var(--header-height) + var(--space-8)) var(--gutter) var(--space-8);
  /* The corner-seam accent centres its gradient exactly on the hero's
     bottom-left corner, so the clip boundary would otherwise cut straight
     through the blob's hottest point. The margin lets that (still
     transparent-at-edge) box bleed past the padding box before the hard
     clip applies, same fix as the corner accent on other case pages. */
  overflow-clip-margin: 420px;
}
/* Literal copy of home's hero glow recipe (css/styles.css .hero__glow /
   --lime / --violet), per the "Background glow gradient" rule — position,
   size (vw/vh, this hero is shorter than home's), timing, keyframe
   percentage steps, hue-drift deltas, alphas and stop percentages are all
   identical to home's; only the two hues (36deg orange, 97deg yellow, from
   docs/_as/colors.html) and the pastel oklch register (L 0.9, C ~0.1–0.12,
   not this page's actual accent lightness) are page-specific — see
   css/resources.css for the confirmed-working reference. Three gradient
   chips in colors.html (blend + two solids) means blob 2 and blob 3 each
   fade a single hue on its own rather than blending both. */
.bi-hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  top: -24%; right: -42%; width: 100vw; height: 100vh;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.12 var(--g-h1, 36deg) / 0.85),
    oklch(0.9 0.1 var(--g-h2, 97deg) / 0.4) 46%,
    transparent 72%
  );
  animation:
    bi-glow-morph 11s ease-in-out infinite,
    bi-glow-float 17s ease-in-out infinite;
}
@keyframes bi-glow-morph {
  0%, 100% { --g-h1: 36deg; --g-h2: 97deg; --g-w: 44%; --g-h: 54%; --g-x: 46%; --g-y: 54%; }
  30%      { --g-h1: 72deg; --g-h2: 119deg; --g-w: 66%; --g-h: 42%; --g-x: 60%; --g-y: 40%; }
  62%      { --g-h1: 10deg; --g-h2: 71deg; --g-w: 42%; --g-h: 64%; --g-x: 40%; --g-y: 60%; }
}
@keyframes bi-glow-float {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);    filter: hue-rotate(0deg)  saturate(1); }
  50%      { transform: scale(1.22) translate3d(-8%, 6%, 0); filter: hue-rotate(14deg) saturate(1.1); }
}

/* Bottom-left blob: orange on its own, home's lime formula and delta shape. */
.bi-hero__glow--b {
  top: auto; right: auto;
  bottom: -20%; left: -22%; width: 60vw; height: 60vh;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.12 var(--g-h1, 36deg) / 0.4),
    transparent 66%
  );
  animation:
    bi-glow-morph-b 14s ease-in-out -5s infinite,
    bi-glow-float-b 21s ease-in-out -9s infinite;
}
@keyframes bi-glow-morph-b {
  0%, 100% { --g-h1: 36deg; --g-w: 46%; --g-h: 46%; --g-x: 50%; --g-y: 50%; }
  40%      { --g-h1: 68deg; --g-w: 68%; --g-h: 56%; --g-x: 60%; --g-y: 42%; }
  72%      { --g-h1: 14deg; --g-w: 42%; --g-h: 66%; --g-x: 40%; --g-y: 58%; }
}
@keyframes bi-glow-float-b {
  0%, 100% { transform: scale(1.06) translate3d(0, 0, 0);    filter: hue-rotate(0deg)   saturate(1); }
  50%      { transform: scale(0.84) translate3d(9%, -7%, 0); filter: hue-rotate(-12deg) saturate(1.12); }
}

/* Top-centre blob: yellow on its own, home's violet slot (position +
   timing) carrying a single-hue fade instead of a blend. */
.bi-hero__glow--c {
  top: -26%; left: 52%; right: auto; bottom: auto;
  width: 44vw; height: 44vh;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.1 var(--g-h1, 97deg) / 0.28),
    transparent 64%
  );
  animation:
    bi-glow-morph-c 18s ease-in-out -7s infinite,
    bi-glow-float-c 26s ease-in-out -13s infinite;
}
@keyframes bi-glow-morph-c {
  0%, 100% { --g-h1: 97deg; --g-w: 48%; --g-h: 48%; --g-x: 50%; --g-y: 50%; }
  38%      { --g-h1: 73deg; --g-w: 70%; --g-h: 42%; --g-x: 40%; --g-y: 58%; }
  70%      { --g-h1: 117deg; --g-w: 42%; --g-h: 60%; --g-x: 60%; --g-y: 44%; }
}
@keyframes bi-glow-float-c {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);     filter: hue-rotate(0deg)   saturate(1);   opacity: 1; }
  45%      { transform: scale(1.28) translate3d(-9%, 5%, 0);   filter: hue-rotate(-10deg) saturate(1.1); opacity: 0.7; }
}

/* Mandatory corner-seam accent: centred exactly on the hero's bottom-right
   corner (box + offset both in vw, offset = -half the box) — a quiet echo
   of the orange wash at the section boundary. */
.bi-hero__glow--corner {
  top: auto; left: auto;
  bottom: -37vw; right: -37vw; width: 74vw; height: 74vw;
  background: radial-gradient(
    var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
    oklch(0.9 0.12 var(--g-h1, 36deg) / 0.15),
    transparent 60%
  );
  animation:
    bi-glow-morph-corner 8s ease-in-out -4s infinite,
    bi-glow-float-corner 11s ease-in-out -8s infinite;
}
@keyframes bi-glow-morph-corner {
  0%, 100% { --g-h1: 36deg; --g-w: 46%; --g-h: 46%; --g-x: 50%; --g-y: 50%; }
  50%      { --g-h1: 58deg; --g-w: 55%; --g-h: 37%; --g-x: 40%; --g-y: 60%; }
}
@keyframes bi-glow-float-corner {
  0%, 100% { transform: scale(1)    translate3d(0, 0, 0);   filter: saturate(1); }
  50%      { transform: scale(1.15) translate3d(9%, -6%, 0); filter: saturate(1.05); }
}

/* Mandatory mobile override: desktop's percentage-based blob positions
   clip away on a narrow screen — static fallback wash plus a full
   repositioning of all three blobs, home's own numbers with this page's
   hue substituted in. */
@media (max-width: 900px) {
  .bi-hero {
    background:
      radial-gradient(120% 70% at 85% 0%, oklch(0.9 0.12 36 / 0.28), transparent 62%),
      radial-gradient(90% 55% at 10% 35%, oklch(0.9 0.1 97 / 0.19), transparent 58%),
      radial-gradient(80% 50% at 70% 18%, oklch(0.9 0.12 36 / 0.08), transparent 55%),
      var(--color-paper);
  }
  .bi-hero__glow {
    top: -8%; right: -28%; width: 100vh; height: 100vh; opacity: 1;
    background: radial-gradient(
      var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
      oklch(0.9 0.12 var(--g-h1, 36deg) / 0.45),
      oklch(0.9 0.1 var(--g-h2, 97deg) / 0.22) 42%,
      transparent 70%
    );
  }
  .bi-hero__glow--b {
    top: auto; right: auto;
    bottom: 18%; left: -35%; width: 85vh; height: 85vh;
    background: radial-gradient(
      var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
      oklch(0.9 0.12 var(--g-h1, 36deg) / 0.28),
      transparent 68%
    );
  }
  .bi-hero__glow--c {
    top: 4%; left: 42%; width: 65vh; height: 65vh;
    background: radial-gradient(
      var(--g-w, 50%) var(--g-h, 50%) at var(--g-x, 50%) var(--g-y, 50%),
      oklch(0.9 0.1 var(--g-h1, 97deg) / 0.16),
      transparent 66%
    );
  }
}
/* Centered masthead: eyebrow + display headline, full width above the fold */
.bi-hero__masthead {
  position: relative; z-index: 2;
  max-width: var(--bi-max, var(--container-inner)); margin-inline: auto;
  text-align: center;
}
.bi-hero__title {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  line-height: 0.94; letter-spacing: -0.035em;
  max-width: 26ch; margin: var(--space-4) auto 0;
  text-wrap: balance;
}
.bi-hero__title-intro { display: block; color: var(--color-ink); }
.bi-hero__title em { font-style: normal; display: block; color: var(--color-ink); }

.bi-hero__grid {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: var(--space-5) auto 0;
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-7); align-items: center;
}
.bi-hero__col { text-align: center; }
.bi-hero__lead {
  font-size: var(--fs-lead); line-height: 1.6; color: var(--color-ink-70);
  max-width: 68ch; margin: 0 auto; text-wrap: pretty;
}
.bi-hero__cta { margin-top: var(--space-6); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.bi-hero__reassure {
  margin: var(--space-3) auto 0; font-size: var(--fs-sm); color: var(--color-ink-45);
  max-width: 46ch; line-height: 1.5;
}
.bi-hero__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bi-map + .bi-hero__chips { margin-top: calc(var(--space-3) - var(--space-7)); }

/* ---------- Hero visual: operation map ---------- */
.bi-map {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  background: var(--color-ink); color: var(--color-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: 0 48px 90px -46px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.bi-map__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-ink-elevated);
}
.bi-map__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.bi-map__dot:first-child { background: var(--bi-orange); }
.bi-map__file {
  margin-left: 6px; font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.02em; color: var(--color-on-dark-muted);
}
.bi-map__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-label-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bi-orange);
}
.bi-map__pulse {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: bi-pulse 1.8s ease-in-out infinite;
}
.bi-map__canvas { display: block; width: 100%; height: auto; padding: 0 var(--space-3); }
.bi-map__legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--color-ink-elevated) 70%, transparent);
}
.bi-map__key {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-title); font-size: 0.6875rem; font-weight: 500;
  color: var(--color-on-dark-muted);
}
.bi-map__key::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.bi-map__key--ours::before { background: var(--bi-orange); }
.bi-map__key--out::before { background: var(--bi-yellow); }

/* SVG bits */
.bi-map__node { fill: rgba(255, 255, 255, 0.045); stroke: rgba(255, 255, 255, 0.16); }
.bi-map__node--out { fill: color-mix(in srgb, var(--bi-yellow) 9%, transparent); stroke: color-mix(in srgb, var(--bi-yellow) 42%, transparent); }
.bi-map__hub { fill: color-mix(in srgb, var(--bi-orange) 13%, transparent); stroke: color-mix(in srgb, var(--bi-orange) 55%, transparent); }
.bi-map__label { font-family: var(--font-body); font-size: 13px; fill: var(--color-on-dark); color: var(--color-on-dark); }
.bi-map__label--sm { font-size: 11.5px; fill: var(--color-on-dark-muted); color: var(--color-on-dark-muted); margin: 2px 0 0; }
.bi-map__hub-label { font-family: var(--font-title); font-size: 13px; font-weight: 700; fill: var(--bi-orange); }
.bi-map__glyph { fill: none; stroke: var(--bi-orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bi-map__tick { fill: rgba(255, 255, 255, 0.3); }
.bi-map__tick--out { fill: var(--bi-yellow); }
.bi-map__wires path {
  fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5;
  stroke-dasharray: 3 7; stroke-linecap: round;
  animation: bi-flow 1.6s linear infinite;
}
.bi-map__wires--out path {
  stroke: color-mix(in srgb, var(--bi-yellow) 60%, transparent);
  animation-duration: 1.3s;
}
.bi-map__wires path:nth-child(2) { animation-delay: -0.3s; }
.bi-map__wires path:nth-child(3) { animation-delay: -0.6s; }
.bi-map__wires path:nth-child(4) { animation-delay: -0.9s; }
.bi-map__wires path:nth-child(5) { animation-delay: -1.2s; }

/* Mobile-only vertical stack: shown in place of .bi-map__canvas below the
   swap breakpoint, where the 900-unit-wide svg scales down too far to stay
   legible. Same content, read top to bottom instead of left to right. */
.bi-map__mobile {
  display: none;
  flex-direction: column; align-items: center; gap: 10px;
  padding: var(--space-4) var(--space-4) var(--space-5);
}
.bi-map__mstack { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.bi-map__mnode {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-pill); white-space: nowrap;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-body); font-size: 0.8125rem; color: var(--color-on-dark);
}
.bi-map__mnode--out {
  background: color-mix(in srgb, var(--bi-yellow) 9%, transparent);
  border-color: color-mix(in srgb, var(--bi-yellow) 42%, transparent);
}
.bi-map__mtick { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.bi-map__mtick--out { background: var(--bi-yellow); }
.bi-map__marrow {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-ink-elevated); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bi-orange);
}
.bi-map__marrow svg { width: 16px; height: 16px; transform: rotate(90deg); }
.bi-map__mhub {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: var(--space-4); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bi-orange) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--bi-orange) 55%, transparent);
  text-align: center;
}
.bi-map__mhub .bi-map__glyph { width: 22px; height: 22px; margin-bottom: 4px; }
.bi-map__mhub-label {
  margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 0.9375rem;
  color: var(--bi-orange);
}

@keyframes bi-flow { to { stroke-dashoffset: -20; } }
@keyframes bi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

/* =============================================================
   Proof strip
   ============================================================= */
.bi-proof {
  margin-top: var(--space-8);
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--border-ink);
}
.bi-proof__label {
  text-align: center; font-family: var(--font-title); font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-45);
}

/* =============================================================
   Before / after
   ============================================================= */
.bi-ba {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4); align-items: stretch; margin-top: var(--space-6);
}
.bi-ba__col {
  display: flex; flex-direction: column;
  border-radius: var(--radius-xl); padding: var(--space-6);
}
.bi-ba__col--now {
  background: var(--color-surface-light);
  border: 1px dashed var(--border-ink-strong);
}
.bi-ba__col--after {
  position: relative; overflow: hidden;
  background: var(--color-ink); color: var(--color-on-dark);
  border: 1px solid transparent;
}
.bi-ba__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 90% at 88% 6%, color-mix(in srgb, var(--bi-orange) 34%, transparent), transparent 66%);
  animation: nc-hue 12s ease-in-out infinite alternate;
}
.bi-ba__in { position: relative; display: flex; flex-direction: column; height: 100%; }
.bi-ba__tag {
  align-self: flex-start;
  font-family: var(--font-tag); font-size: var(--fs-tag); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 8%, transparent);
  color: var(--color-ink-60);
}
.bi-ba__col--after .bi-ba__tag {
  background: color-mix(in srgb, var(--color-secondary-lime) 20%, transparent);
  color: var(--color-secondary-lime);
}
.bi-ba__title {
  font-family: var(--font-title); font-weight: 700; font-size: 1.375rem;
  letter-spacing: -0.015em; line-height: 1.2; margin: var(--space-3) 0 0;
}
.bi-ba__list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.bi-ba__item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.9375rem; line-height: 1.55; color: var(--color-ink-60);
}
.bi-ba__col--after .bi-ba__item { color: var(--color-on-dark-muted); }
.bi-ba__col--after .bi-ba__item strong { color: var(--color-on-dark); font-weight: 600; }
.bi-ba__item strong { color: var(--color-ink); font-weight: 600; }
.bi-ba__mark {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: color-mix(in srgb, var(--color-ink) 8%, transparent);
  color: var(--color-ink-60);
}
.bi-ba__mark--yes {
  background: color-mix(in srgb, var(--color-secondary-lime) 20%, transparent);
  color: var(--color-secondary-lime);
}
.bi-ba__mark svg { width: 12px; height: 12px; }
.bi-ba__foot {
  margin: auto 0 0; padding-top: var(--space-5);
  font-family: var(--font-title); font-size: 0.875rem; font-weight: 600;
  color: var(--color-ink-45);
}
.bi-ba__col--after .bi-ba__foot { color: var(--color-on-dark-muted); }
.bi-ba__bridge {
  align-self: center; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  color: var(--color-ink);
}
.bi-ba__bridge svg { width: 20px; height: 20px; }

/* =============================================================
   Capability cards
   ============================================================= */
.bi-caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.bi-cap {
  position: relative; display: flex; flex-direction: column;
  background: radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--bi-accent, var(--bi-orange)) 32%, transparent), transparent 62%), var(--color-ink);
  color: var(--color-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.bi-cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px -32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.22);
}
.bi-cap__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.bi-cap__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bi-accent, var(--bi-orange));
}
.bi-cap__icon svg { width: 21px; height: 21px; }
.bi-cap__num {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--color-on-dark-muted);
}
.bi-cap--a { --bi-accent: var(--bi-orange); }
.bi-cap--b { --bi-accent: var(--bi-yellow); }
.bi-cap--c { --bi-accent: color-mix(in srgb, var(--bi-orange) 55%, var(--bi-yellow)); }
.bi-cap--d { --bi-accent: color-mix(in srgb, var(--bi-yellow) 45%, var(--bi-orange)); }
.bi-cap__title {
  font-family: var(--font-title); font-size: 1.375rem; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.18; color: var(--color-on-dark); margin: 0 0 10px;
}
.bi-cap__body { font-size: 0.9375rem; color: var(--color-on-dark-muted); line-height: 1.6; margin: 0 0 var(--space-4); }
.bi-cap__tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: auto 0 0; padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.bi-tag {
  font-family: var(--font-title); font-size: 0.6875rem; font-weight: 500;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-on-dark-muted);
}
.bi-caps__note {
  grid-column: 1 / -1; margin: var(--space-2) 0 0;
  font-family: var(--font-title); font-size: var(--fs-md); font-weight: 600;
  color: var(--color-ink); text-align: center;
}

/* =============================================================
   Outcomes band (dark)
   ============================================================= */
.bi-out {
  position: relative; overflow: hidden;
  background: var(--color-surface-light); color: var(--color-ink);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-xl); padding: var(--space-8) var(--space-6);
}
.bi-out__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 85% at 14% 12%, color-mix(in srgb, var(--bi-orange) 30%, transparent), transparent 66%),
    radial-gradient(38% 80% at 88% 88%, color-mix(in srgb, var(--bi-yellow) 22%, transparent), transparent 66%);
  animation: nc-hue 11s ease-in-out infinite alternate;
}
.bi-out__in { position: relative; max-width: 1060px; margin-inline: auto; }
.bi-out__title {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em; line-height: 1.01;
  color: var(--color-ink); margin: var(--space-3) 0 0;
  max-width: 26ch; text-wrap: balance;
}
.bi-out__lead { font-size: var(--fs-md); color: var(--color-ink-60); line-height: 1.6; max-width: 58ch; margin: var(--space-3) 0 0; }
.bi-out__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3); margin-top: var(--space-7);
}
.bi-out__item {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--space-4);
  background: var(--color-paper);
  border: 1px solid var(--border-ink-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.bi-out__item:hover { border-color: rgba(10, 10, 8, 0.16); transform: translateY(-2px); }
.bi-out__item--wide { grid-column: span 2; }
.bi-out__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--color-ink);
  color: var(--bi-orange);
}
.bi-out__icon svg { width: 17px; height: 17px; }
.bi-out__name {
  font-family: var(--font-title); font-size: var(--fs-md); font-weight: 700;
  letter-spacing: -0.01em; color: var(--color-ink);
}
.bi-out__body { font-size: 0.875rem; line-height: 1.55; color: var(--color-ink-60); margin: 0; }

/* =============================================================
   Process
   ============================================================= */
.bi-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-7); }
.bi-step {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--color-ink); color: var(--color-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
/* Accent wash in the bottom-right corner of each card */
.bi-step::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -18%; bottom: -34%; width: 76%; aspect-ratio: 1;
  background: radial-gradient(50% 50% at 50% 50%,
    color-mix(in srgb, var(--bi-accent, var(--bi-orange)) 45%, transparent),
    transparent 70%);
}
.bi-step > * { position: relative; z-index: 1; }
.bi-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px -32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.18);
}
.bi-step__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--color-ink-elevated); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bi-accent, var(--bi-orange));
  margin-bottom: var(--space-4);
}
.bi-step__icon svg { width: 19px; height: 19px; }
.bi-step--a { --bi-accent: var(--bi-orange); }
.bi-step--b { --bi-accent: var(--bi-yellow); }
.bi-step--c { --bi-accent: color-mix(in srgb, var(--bi-orange) 55%, var(--bi-yellow)); }
.bi-step--d { --bi-accent: color-mix(in srgb, var(--bi-yellow) 45%, var(--bi-orange)); }
.bi-step__title {
  font-family: var(--font-title); font-size: var(--fs-step); font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 8px; color: var(--color-on-dark);
}
.bi-step__body { font-size: 0.9375rem; color: var(--color-on-dark-muted); line-height: 1.55; margin: 0 0 var(--space-4); }
.bi-step__meta {
  display: inline-flex; margin: auto 0 0; padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em;
  color: var(--color-on-dark-muted);
}

/* =============================================================
   Comparison ("not a body shop")
   ============================================================= */
.bi-vs {
  margin-top: var(--space-6);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-xl);
  background: var(--color-paper);
  overflow: hidden;
}
.bi-vs__row {
  display: grid; grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  align-items: stretch;
  border-top: 1px solid var(--border-ink);
  margin: 0;
}
.bi-vs__row:first-child { border-top: 0; }
.bi-vs__label,
.bi-vs__them,
.bi-vs__us { padding: var(--space-4) var(--space-5); margin: 0; font-size: 0.9375rem; line-height: 1.55; }
.bi-vs__label {
  font-family: var(--font-title); font-weight: 600; color: var(--color-ink);
  background: var(--color-surface-light);
}
.bi-vs__them { color: var(--color-ink-45); border-left: 1px solid var(--border-ink); }
.bi-vs__us {
  color: var(--color-on-dark); font-weight: 500;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-ink);
}
.bi-vs__head { border-top: 0; }
.bi-vs__head .bi-vs__label,
.bi-vs__hcol {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-title); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  background: var(--color-surface-light);
}
.bi-vs__hcol { border-left: 1px solid var(--border-ink); display: flex; align-items: center; gap: 8px; }
.bi-vs__hcol--them { color: var(--color-ink-45); }
.bi-vs__hcol--us {
  color: var(--bi-orange);
  background: var(--color-ink);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.bi-vs__caption { display: none; }

/* Mobile-only grouped stack: all "renting developers" rows, then all
   "working with us" rows, each as one continuous block. See the wide
   .bi-vs table above for the desktop three-column layout. */
.bi-vs__stack {
  display: none;
  margin-top: var(--space-6);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.bi-vs__group { padding: var(--space-5); }
.bi-vs__group--them { background: var(--color-surface-light); }
.bi-vs__group--us { background: var(--color-ink); color: var(--color-on-dark); }
.bi-vs__group-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-title); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--color-ink-45);
}
.bi-vs__group--us .bi-vs__group-title { color: var(--bi-orange); }
.bi-vs__glist { display: grid; gap: var(--space-4); margin: 0; }
.bi-vs__gitem { border-top: 1px solid var(--border-ink); padding-top: var(--space-4); margin: 0; }
.bi-vs__gitem:first-child { border-top: 0; padding-top: 0; }
.bi-vs__group--us .bi-vs__gitem { border-top-color: rgba(255, 255, 255, 0.12); }
.bi-vs__gitem dt {
  font-family: var(--font-title); font-weight: 600; font-size: 0.9375rem;
  color: var(--color-ink); margin: 0 0 6px;
}
.bi-vs__group--us .bi-vs__gitem dt { color: var(--color-on-dark); }
.bi-vs__gitem dd {
  margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--color-ink-60);
}
.bi-vs__group--us .bi-vs__gitem dd { color: var(--color-on-dark-muted); }

/* =============================================================
   Who it's for
   ============================================================= */
.bi-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.bi-persona {
  background: radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--bi-orange) 20%, transparent), transparent 62%), var(--color-ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg); padding: var(--space-5);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.bi-persona:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }
.bi-persona__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.08); color: var(--bi-orange);
  margin-bottom: var(--space-4);
}
.bi-persona__icon svg { width: 19px; height: 19px; }
.bi-persona__title { font-family: var(--font-title); font-size: var(--fs-card-title); font-weight: 700; letter-spacing: -0.01em; color: var(--color-on-dark); margin: 0 0 6px; }
.bi-persona__role { font-family: var(--font-tag); font-size: var(--fs-tag); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-on-dark-muted); margin: 0 0 10px; }
.bi-persona__body { font-size: 0.9375rem; color: var(--color-on-dark-muted); line-height: 1.55; margin: 0; }

/* =============================================================
   FAQ
   ============================================================= */
.bi-faq { max-width: 860px; margin: var(--space-6) auto 0; border-top: 1px solid var(--border-ink); }
.bi-faq__item { border-bottom: 1px solid var(--border-ink); }
.bi-faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0;
  font-family: var(--font-title); font-size: var(--fs-faq); font-weight: 700;
  letter-spacing: -0.01em; color: var(--color-ink);
}
.bi-faq__q::-webkit-details-marker { display: none; }
.bi-faq__icon { color: var(--bi-orange); }
.bi-faq__item[open] .bi-faq__q { color: var(--bi-orange); }
.bi-faq__a { font-size: var(--fs-md); color: var(--color-ink-60); line-height: 1.65; margin: 0; padding: 0 0 var(--space-5); max-width: 72ch; }
.bi-faq__a strong { color: var(--color-ink); font-weight: 600; }

/* Closing CTA — page accent instead of the shared green glow */
.cta__glow {
  background: radial-gradient(42% 90% at 50% 45%, color-mix(in srgb, var(--bi-orange) 40%, transparent), transparent 68%);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1080px) {
  .bi-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-5); }
  .bi-map + .bi-hero__chips { margin-top: calc(var(--space-3) - var(--space-6)); }
  .bi-map { max-width: 760px; margin-inline: auto; }
  .bi-out__grid { grid-template-columns: repeat(2, 1fr); }
  .bi-out__item--wide { grid-column: auto; }
  .bi-steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .bi-who { grid-template-columns: 1fr; gap: var(--space-3); }
}

@media (max-width: 900px) {
  .bi-ba { grid-template-columns: 1fr; gap: 0; }
  .bi-ba__bridge {
    position: relative; z-index: 2;
    justify-self: center;
    transform: rotate(90deg);
  }
  .bi-caps { grid-template-columns: 1fr; gap: var(--space-3); }

  /* Comparison collapses from the three-column table to two grouped
     stacked blocks: every "renting developers" row, then every
     "working with us" row. */
  .bi-vs { display: none; }
  .bi-vs__stack { display: block; }

  /* Below this width the 900-unit-wide svg diagram scales down too far to
     stay legible — swap it for the vertical stacked version. */
  .bi-map__canvas { display: none; }
  .bi-map__mobile { display: flex; }
}

@media (max-width: 620px) {
  .bi-section { padding-top: var(--space-6); padding-bottom: var(--space-4); }
  .bi-section--tight { padding-top: var(--space-5); }
  .bi-hero { padding-top: calc(var(--header-height) + var(--space-6)); padding-bottom: var(--space-6); }
  .bi-hero__title { font-size: clamp(1.75rem, 8.4vw, 2.5rem); margin-top: var(--space-3); }
  .bi-hero__grid { margin-top: var(--space-4); }
  .bi-hero__lead { font-size: var(--fs-md); }
  .bi-hero__cta { margin-top: var(--space-4); }
  .bi-hero__cta .btn { width: 100%; }

  .bi-h2 { font-size: clamp(1.75rem, 7vw, 2.125rem); margin-top: var(--space-2); }
  .bi-sub { font-size: var(--fs-md); margin-top: var(--space-2); }

  .bi-map__canvas { padding: 0 var(--space-2); }
  .bi-map__legend { gap: var(--space-1) var(--space-3); }

  .bi-ba { margin-top: var(--space-4); }
  .bi-ba__col { padding: var(--space-4); border-radius: var(--radius-lg); }
  .bi-ba__title { font-size: 1.1875rem; }
  .bi-ba__list { margin-top: var(--space-4); }
  .bi-ba__bridge { width: 40px; height: 40px; }
  .bi-ba__bridge svg { width: 18px; height: 18px; }

  .bi-caps, .bi-who, .bi-steps { margin-top: var(--space-4); }
  .bi-cap { padding: var(--space-4); border-radius: var(--radius-lg); }
  .bi-cap__title { font-size: 1.1875rem; }
  .bi-persona { padding: var(--space-4); }

  .bi-steps { grid-template-columns: 1fr; }
  .bi-step { padding: var(--space-4); border-radius: var(--radius-lg); }

  .bi-out { padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); }
  .bi-out__title { font-size: clamp(1.5rem, 7vw, 1.875rem); }
  .bi-out__grid { grid-template-columns: 1fr; margin-top: var(--space-5); }

  .bi-vs__stack { margin-top: var(--space-4); border-radius: var(--radius-lg); }
  .bi-vs__group { padding: var(--space-4); }

  .bi-faq { margin-top: var(--space-4); }
  .bi-proof { margin-top: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .bi-hero__glow,
  .bi-hero__glow--b,
  .bi-hero__glow--c,
  .bi-hero__glow--corner,
  .bi-ba__glow,
  .bi-out__glow,
  .bi-map__wires path,
  .bi-map__pulse { animation: none; }
  .bi-map__wires path { stroke-dasharray: none; }
}
