/* ============================================================
   BRAINY NEURALS · CASE STUDY — AUTOMATED BASKETBALL VIDEO ANALYSIS
   Review build v1 · all styles scoped under .bn-case-bball
   Sections: 01 tokens · 02 standalone shim · 03 base · 04 utilities
             05 header · 06 hero · 07 sections+prose · 08 figures/SVG
             09 tables · 10 quotes · 11 bands · 12 CTA system
             13 content modules · 14 footer · 15 sticky · 16 modals
             17 motion · 18 responsive · 19 reduced motion
   ============================================================ */

/* —— 01 · custom properties ————————————————————————————— */
.bn-case-bball {
  --paper: #FFFFFF;
  --bone: #FAFAF8;
  --bone-d: #F4EFE6;
  --ink: #0A0A0B;
  --ink-2: #1A1A1D;
  --ink-3: #26262A;
  --line: rgba(10, 10, 11, 0.14);
  --line-d: rgba(244, 239, 230, 0.14);
  --blue: #0655FF;
  --blue-2: #0443CC;
  --blue-3: #0334B8;
  --signal: #B5FF3C;
  --rust: #C2410C;
  --rust-soft: #FFA075;
  --txt-2: rgba(10, 10, 11, 0.6);
  --txt-2d: rgba(244, 239, 230, 0.75);
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --serif: "IBM Plex Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1320px;
  --gutter: 32px;
  --shadow-panel: 0 30px 60px -30px rgba(10, 10, 11, 0.35), 0 2px 6px rgba(10, 10, 11, 0.06);
}

/* —— 02 · standalone-preview shim ————————————————————————
   DELETE AT WORDPRESS MIGRATION — the theme/Elementor owns <body>.
   Kept out of the .bn-case-bball scope on purpose, clearly marked. */
body { margin: 0; padding: 0; background: #FFFFFF; }

/* —— 03 · base (scoped) ————————————————————————————————— */
.bn-case-bball,
.bn-case-bball *,
.bn-case-bball *::before,
.bn-case-bball *::after { box-sizing: border-box; }
.bn-case-bball {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bn-case-bball h1, .bn-case-bball h2, .bn-case-bball h3,
.bn-case-bball p, .bn-case-bball figure, .bn-case-bball blockquote,
.bn-case-bball ul, .bn-case-bball ol { margin: 0; padding: 0; }
.bn-case-bball ul, .bn-case-bball ol { list-style: none; }
.bn-case-bball img, .bn-case-bball svg { max-width: 100%; height: auto; }
.bn-case-bball a { /*color: var(--ink);*/ text-decoration: none; }
/*.bn-case-bball a:hover { color: var(--ink); }*/
.bn-case-bball :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.bn-case-bball .bn-band-ink :focus-visible,
.bn-case-bball .bn-band-blue :focus-visible,
.bn-case-bball .bn-footer :focus-visible { outline-color: #FFFFFF; }
.bn-case-bball button { font-family: inherit; border: none; background: none; }

/* —— 04 · utilities ————————————————————————————————————— */
.bn-case-bball .bn-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.bn-case-bball .bn-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bn-case-bball .bn-skip {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; font: 600 14px/1 var(--sans);
  padding: 14px 22px; border-radius: 8px; transition: top 0.2s var(--ease);
}
.bn-case-bball .bn-skip:focus-visible { top: 16px; color: #fff; }

/* review-flag system — every generated-verify review marker carries
   .bn-verify (strip selector) + .bn-flag (HTML chip skin).
   One-pass strip at publish: remove all elements matching .bn-verify */
.bn-case-bball .bn-flag {
  display: inline;
  font: 600 10.5px/1.6 var(--mono);
  letter-spacing: 0.02em;
  color: var(--rust);
  background: rgba(194, 65, 12, 0.06);
  border: 1px solid rgba(194, 65, 12, 0.38);
  border-radius: 4px;
  padding: 1.5px 6px;
  margin-inline: 3px;
  position: relative;
  top: -1.5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.bn-case-bball .bn-band-ink .bn-flag,
.bn-case-bball .bn-band-blue .bn-flag,
.bn-case-bball .bn-on-dark .bn-flag {
  color: var(--rust-soft);
  border-color: rgba(255, 160, 117, 0.45);
  background: rgba(255, 160, 117, 0.08);
}
.bn-case-bball svg .sv-flag { font-family: var(--mono); font-weight: 600; letter-spacing: 0.02em; }

/* buttons */
.bn-case-bball .bn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 600 15.5px/1.2 var(--sans); letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.bn-case-bball .bn-btn--sm { min-height: 44px; padding: 9px 20px; font-size: 13.5px; }
.bn-case-bball .bn-btn--blue { background: var(--blue); color: #fff; }
.bn-case-bball .bn-btn--blue:hover { background: var(--blue-2); color: #fff; }
.bn-case-bball .bn-btn--ink { background: var(--ink); color: #fff; }
.bn-case-bball .bn-btn--ink:hover { background: var(--ink-2); color: #fff; }
.bn-case-bball .bn-btn--white { background: #fff; color: var(--ink); }
.bn-case-bball .bn-btn--white:hover { background: var(--bone-d); color: var(--ink); }
.bn-case-bball .bn-btn--ghost { background: transparent; color: var(--ink); border-color: rgba(10, 10, 11, 0.3); }
.bn-case-bball .bn-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.bn-case-bball .bn-arr { display: inline-block; transition: transform 0.25s var(--ease); }
.bn-case-bball .bn-btn:hover .bn-arr,
.bn-case-bball a:hover > .bn-arr { transform: translateX(4px); }

/* mono micro label with blue square tick */
.bn-case-bball .bn-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--txt-2);
}
.bn-case-bball .bn-kicker::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

/* —— 05 · header ————————————————————————————————————————— */
.bn-case-bball .bn-header {
  position: sticky; top: 0; z-index: 960;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.bn-case-bball .bn-header-inner {
  position: relative; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bn-case-bball .bn-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.bn-case-bball .bn-logo img { width: 34px; height: 24px; display: block; }
.bn-case-bball .bn-logo-word { font: 600 15.5px/1 var(--sans); letter-spacing: -0.01em; }
.bn-case-bball .bn-nav ul { display: flex; gap: 2px; }
.bn-case-bball .bn-nav a {
  display: inline-block; padding: 12px 14px; border-radius: 8px;
  font: 500 13.5px/1.2 var(--sans); color: rgba(10, 10, 11, 0.78);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bn-case-bball .bn-nav a:hover { background: rgba(10, 10, 11, 0.05); color: var(--ink); }
.bn-case-bball .bn-header-right { display: flex; align-items: center; gap: 16px; }
.bn-case-bball .bn-progress-stage {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--txt-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.bn-case-bball .bn-stage-dot { width: 6px; height: 6px; background: var(--blue); flex: none; }
.bn-case-bball .bn-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
}
.bn-case-bball .bn-progress-bar { height: 100%; width: 0%; background: var(--blue); }

/* —— 06 · hero ——————————————————————————————————————————— */
.bn-case-bball .bn-s-hero { padding: 0 0 96px; }
.bn-case-bball .bn-utility {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 64px; border-bottom: 1px solid var(--line);
  font: 500 12.5px/1.4 var(--mono); color: var(--txt-2);
}
.bn-case-bball .bn-crumbs ol { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bn-case-bball .bn-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.bn-case-bball .bn-crumbs li + li::before { content: "/"; color: rgba(10, 10, 11, 0.3); }
.bn-case-bball .bn-crumbs a { color: var(--txt-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.bn-case-bball .bn-crumbs a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.bn-case-bball .bn-crumbs [aria-current="page"] { color: var(--ink); }
.bn-case-bball .bn-utility-meta { display: flex; align-items: center; gap: 18px; }
.bn-case-bball .bn-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.bn-case-bball .bn-share:hover { border-color: var(--ink); }
.bn-case-bball .bn-share [data-share-state] { color: var(--blue); }
.bn-case-bball .bn-h1 {
  margin-top: 28px; max-width: 1160px;
  font: 500 clamp(38px, 5.2vw, 76px)/1.04 var(--sans);
  letter-spacing: -0.035em; text-wrap: balance;
}
.bn-case-bball .bn-h1 em { font: italic 400 0.97em var(--serif); letter-spacing: -0.02em; color: var(--blue); }
.bn-case-bball .bn-byline { margin-top: 26px; font: 500 13px/1.6 var(--mono); color: var(--txt-2); }
.bn-case-bball .bn-author {
  margin-top: 22px; max-width: 780px;
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.bn-case-bball .bn-author-photo { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.bn-case-bball .bn-author-name { font: 600 17px/1.3 var(--sans); }
.bn-case-bball .bn-author-role { margin-top: 2px; font: 400 14px/1.5 var(--sans); color: var(--txt-2); }
.bn-case-bball .bn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bn-case-bball .bn-chip {
  font: 500 11.5px/1 var(--mono); color: rgba(10, 10, 11, 0.72);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
}
.bn-case-bball .bn-author-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 24px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(10, 10, 11, 0.3); text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bn-case-bball .bn-author-link:hover { color: var(--blue); text-decoration-color: var(--blue); }
.bn-case-bball .bn-author-link svg { width: 14px; height: 14px; fill: currentColor; }
.bn-case-bball .bn-capsule {
  position: relative; margin-top: 52px; max-width: 900px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 36px; font-size: 19px; line-height: 1.62; color: rgba(10, 10, 11, 0.88);
}
.bn-case-bball .bn-capsule::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 8px; height: 8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
}
.bn-case-bball .bn-anchor { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.bn-case-bball .bn-anchor > a {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 15px/1.3 var(--mono); color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(10, 10, 11, 0.3); text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.bn-case-bball .bn-anchor > a:hover { color: var(--blue); text-decoration-color: var(--blue); }
.bn-case-bball .bn-anchor-sub { font: 400 13px/1.5 var(--sans); color: var(--txt-2); }
.bn-case-bball .bn-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-top: 30px; }
.bn-case-bball .bn-hero-grid .bn-h1 { margin-top: 0; font-size: clamp(34px, 3.5vw, 56px); }
.bn-case-bball .bn-hero-grid .bn-author { max-width: none; }
.bn-case-bball .bn-hero-grid .bn-capsule { margin-top: 40px; max-width: none; padding: 28px 30px; font-size: 17.5px; }
.bn-case-bball .bn-hero-fig { margin: 0; }
.bn-case-bball .bn-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-top: 36px; }
.bn-case-bball .bn-split .bn-prose { margin-top: 0; }
.bn-case-bball .bn-side-art { margin: 0; background: var(--bone); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bn-case-bball .bn-side-art svg { display: block; width: 100%; height: auto; }
.bn-case-bball .bn-band-ink .bn-side-art { background: rgba(244, 239, 230, 0.03); border-color: var(--line-d); }
.bn-case-bball .bn-problem-glyph { width: 44px; height: 44px; display: block; }
.bn-case-bball .bn-stack-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bn-case-bball .bn-stack-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: rgba(10, 10, 11, 0.72); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 9px 13px; }
.bn-case-bball .bn-stack-chip svg { display: block; }
.bn-case-bball .bn-badge-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.bn-case-bball .bn-badge-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 26px; display: flex; align-items: center; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.bn-case-bball .bn-badge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-panel); }
.bn-case-bball .bn-badge-card img { display: block; max-height: 56px; width: auto; }

/* —— 07 · sections + prose ———————————————————————————————— */
.bn-case-bball .bn-sec { padding: 112px 0; }
.bn-case-bball .bn-sec--tight { padding: 84px 0; }
.bn-case-bball .bn-sec--flush { padding-top: 0; }
.bn-case-bball .bn-table-scroll--narrow { max-width: 720px; }
.bn-case-bball .bn-share-actions { display: flex; align-items: center; gap: 14px; }
.bn-case-bball .bn-footer .bn-logo-word { color: #FFFFFF; }
.bn-case-bball .bn-h2 {
  font: 500 clamp(30px, 3.6vw, 52px)/1.08 var(--sans);
  letter-spacing: -0.03em; text-wrap: balance; max-width: 940px;
}
.bn-case-bball .bn-h2 em { font: italic 400 0.97em var(--serif); color: var(--blue); }
.bn-case-bball .bn-band-ink .bn-h2, .bn-case-bball .bn-band-blue .bn-h2 { color: #fff; }
.bn-case-bball .bn-band-ink .bn-h2 em { color: #5B8BFF; }
.bn-case-bball .bn-band-blue .bn-h2 em { color: #fff; }
.bn-case-bball .bn-prose { margin-top: 36px; }
.bn-case-bball .bn-prose p { max-width: 780px; font-size: 17.5px; line-height: 1.66; color: rgba(10, 10, 11, 0.84); }
.bn-case-bball .bn-prose p + p { margin-top: 22px; }
.bn-case-bball .bn-prose strong { font-weight: 600; color: var(--ink); }
.bn-case-bball .bn-prose a, .bn-case-bball .bn-faq-a a {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(10, 10, 11, 0.4); text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.bn-case-bball .bn-prose a:hover, .bn-case-bball .bn-faq-a a:hover {
  color: var(--blue); text-decoration-color: var(--blue); text-decoration-thickness: 2px;
}
.bn-case-bball .bn-band-ink .bn-prose p { color: var(--txt-2d); }
.bn-case-bball .bn-band-ink .bn-prose strong { color: #fff; }
.bn-case-bball .bn-band-ink .bn-prose a { color: #fff; text-decoration-color: rgba(244, 239, 230, 0.4); }
.bn-case-bball .bn-band-ink .bn-prose a:hover { color: #fff; text-decoration-color: var(--signal); }

/* —— 08 · figures + inline SVG diagrams ——————————————————— */
.bn-case-bball .bn-figure {
  margin: 52px 0 0; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.bn-case-bball .bn-figure svg { display: block; width: 100%; height: auto; }
.bn-case-bball .bn-figure img { display: block; width: 100%; height: auto; }
.bn-case-bball .bn-figcap {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 22px; border-top: 1px solid var(--line); background: var(--bone);
  font: 500 12.5px/1.6 var(--mono); color: var(--txt-2);
}
.bn-case-bball .bn-figcap::before { content: ""; width: 6px; height: 6px; background: var(--blue); flex: none; position: relative; top: -1px; }
.bn-case-bball svg .sv-m { font-family: var(--mono); }
.bn-case-bball svg .sv-s { font-family: var(--sans); }
.bn-case-bball svg .sv-lane { font-family: var(--mono); font-weight: 600; letter-spacing: 0.2em; }

/* —— 09 · tables ————————————————————————————————————————— */
.bn-case-bball .bn-table-scroll {
  margin-top: 52px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow-x: auto;
}
.bn-case-bball table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bn-case-bball th {
  font: 600 11px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-align: left; color: var(--txt-2); background: var(--bone);
  padding: 15px 22px; border-bottom: 1px solid rgba(10, 10, 11, 0.55);
}
.bn-case-bball td {
  padding: 17px 22px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.55; color: rgba(10, 10, 11, 0.84);
}
.bn-case-bball tbody tr:last-child td { border-bottom: none; }
.bn-case-bball td strong { font-weight: 600; color: var(--ink); }
.bn-case-bball .bn-stats-table { min-width: 780px; }
.bn-case-bball .bn-stats-table thead th { border-bottom: 2px solid var(--blue); }
.bn-case-bball .bn-stats-table td { padding: 24px 22px; transition: background-color 0.2s var(--ease); }
.bn-case-bball .bn-stats-table tbody tr:nth-child(even) td { background: var(--bone); }
.bn-case-bball .bn-stats-table tbody tr:hover td { background: rgba(6, 85, 255, 0.05); }
.bn-case-bball .bn-stats-table td:first-child {
  font: italic 400 clamp(20px, 1.8vw, 26px)/1.25 var(--serif);
  letter-spacing: -0.01em; color: var(--ink); min-width: 200px;
  position: relative; padding-left: 46px;
}
.bn-case-bball .bn-stats-table td:first-child::before {
  content: ""; position: absolute; left: 22px; top: 33px;
  width: 8px; height: 8px; background: var(--blue);
}
.bn-case-bball .bn-compare-table { min-width: 920px; }
.bn-case-bball .bn-compare-table td:first-child,
.bn-case-bball .bn-compare-table th:first-child { min-width: 160px; }
.bn-case-bball .bn-compare-table th:last-child,
.bn-case-bball .bn-compare-table td:last-child { background: rgba(6, 85, 255, 0.045); }
.bn-case-bball .bn-f1-table { min-width: 480px; }
.bn-case-bball .bn-f1-table td:last-child { font-family: var(--mono); font-weight: 500; }
.bn-case-bball .bn-row-mean td { background: var(--bone); border-top: 1px solid rgba(10, 10, 11, 0.55); }

/* —— 10 · pull-quotes ————————————————————————————————————— */
.bn-case-bball .bn-quote { margin: 72px 0 0; max-width: 920px; }
.bn-case-bball .bn-quote-text { font: italic 400 clamp(24px, 2.5vw, 33px)/1.35 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.bn-case-bball .bn-qmark { color: var(--blue); font-style: normal; }
.bn-case-bball .bn-quote-attr {
  display: flex; align-items: center; gap: 12px; margin-top: 20px;
  font: 500 13px/1.5 var(--mono); color: var(--txt-2);
}
.bn-case-bball .bn-quote-attr::before { content: ""; width: 22px; height: 1px; background: var(--blue); flex: none; }
.bn-case-bball .bn-band-ink .bn-quote-text { color: #fff; }
.bn-case-bball .bn-band-ink .bn-qmark { color: var(--signal); }
.bn-case-bball .bn-band-ink .bn-quote-attr { color: var(--txt-2d); }
.bn-case-bball .bn-band-ink .bn-quote-attr::before { background: var(--signal); }

/* —— 11 · bands (ink + atmospheric blue) —————————————————— */
.bn-case-bball .bn-band-ink { position: relative; overflow: hidden; background: var(--ink); color: var(--bone-d); }
.bn-case-bball .bn-band-ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
}
.bn-case-bball .bn-band-ink > * { position: relative; }
.bn-case-bball .bn-band-blue {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, #0858FF, #0A48E0 55%, #0334B8);
}
.bn-case-bball .bn-band-blue::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 42%, rgba(0, 0, 0, 0.95), transparent 96%);
  mask-image: radial-gradient(closest-side at 50% 42%, rgba(0, 0, 0, 0.95), transparent 96%);
}
.bn-case-bball .bn-band-blue > * { position: relative; }
.bn-case-bball .bn-cta-hook::after {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.055) 0 1.5px, transparent 1.5px 130px);
}
.bn-case-bball .bn-pin { position: absolute; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; }
.bn-case-bball .bn-pin--white { background: #fff; top: 22%; left: 14%; }
.bn-case-bball .bn-pin--signal { background: var(--signal); bottom: 26%; right: 11%; }

/* —— 12 · CTA system ————————————————————————————————————— */
.bn-case-bball .bn-cta-band { padding: 84px 0; max-width:100%; }
.bn-case-bball .bn-cta-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px; align-items: center;
}
.bn-case-bball .bn-cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.bn-case-bball .bn-cta-head { font: 500 clamp(26px, 3vw, 40px)/1.12 var(--sans); letter-spacing: -0.025em; color: inherit; text-wrap: balance; }
.bn-case-bball .bn-cta-body { margin-top: 14px; max-width: 600px; font-size: 16.5px; line-height: 1.6; }
.bn-case-bball .bn-band-ink .bn-cta-body { color: var(--txt-2d); }
.bn-case-bball .bn-cta-card {
  margin-top: 76px; padding: 44px 48px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.bn-case-bball .bn-cta-card .bn-cta-head { font-size: clamp(24px, 2.4vw, 32px); }
.bn-case-bball .bn-cta-card .bn-cta-body { color: var(--txt-2); }
.bn-case-bball .bn-cta-card--ink { background: var(--ink); border-color: var(--ink); color: var(--bone-d); }
.bn-case-bball .bn-cta-card--ink .bn-cta-head { color: #fff; }
.bn-case-bball .bn-cta-card--ink .bn-cta-body { color: var(--txt-2d); }
.bn-case-bball .bn-cta-hook { padding: 128px 0; text-align: center; max-width:100%; }
.bn-case-bball .bn-cta-hook .bn-cta-head { max-width: 760px; margin-inline: auto; font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.03em; }
.bn-case-bball .bn-cta-hook .bn-cta-body { margin: 18px auto 0; color: rgba(255, 255, 255, 0.82); }
.bn-case-bball .bn-cta-hook .bn-btn { margin-top: 36px; }
.bn-case-bball .bn-trust-line { margin-top: 16px; font: 500 13px/1.6 var(--mono); color: rgba(255, 255, 255, 0.72); }
.bn-case-bball .bn-cta-share {
  margin-top: 72px; padding: 30px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.bn-case-bball .bn-cta-share .bn-cta-head { font-size: 21px; letter-spacing: -0.015em; }
.bn-case-bball .bn-cta-share .bn-cta-body { margin-top: 6px; font-size: 15px; color: var(--txt-2); }
.bn-case-bball .bn-copy-state { font: 600 13px/1 var(--mono); color: var(--blue); min-width: 74px; }
.bn-case-bball .bn-close-header { margin-top: 72px; font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; }
.bn-case-bball .bn-close-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.bn-case-bball .bn-close-card {
  display: flex; flex-direction: column; gap: 20px; min-height: 200px; padding: 32px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.bn-case-bball .bn-close-card:hover { background: #fff; border-color: rgba(10, 10, 11, 0.45); }
.bn-case-bball .bn-close-label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--txt-2);
}
.bn-case-bball .bn-close-label::before { content: ""; width: 7px; height: 7px; background: var(--blue); flex: none; }
.bn-case-bball .bn-close-card .bn-btn { margin-top: auto; align-self: flex-start; text-align: left; }
.bn-case-bball .bn-linkedin-follow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; min-height: 44px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.06em; color: var(--txt-2);
  transition: color 0.2s var(--ease);
}
.bn-case-bball .bn-linkedin-follow:hover { color: var(--blue); }
.bn-case-bball .bn-linkedin-follow svg { width: 16px; height: 16px; fill: currentColor; }

/* —— 13 · content modules ————————————————————————————————— */
.bn-case-bball .bn-problem {
  border-top: 1px solid var(--line); padding: 36px 0;
  display: grid; grid-template-columns: 44px minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 28px; align-items: start;
}
.bn-case-bball .bn-problem h3, .bn-case-bball .bn-problem p { padding-top: 8px; }
.bn-case-bball .bn-problems { margin-top: 56px; border-bottom: 1px solid var(--line); }
.bn-case-bball .bn-problem h3 { font: 500 21px/1.35 var(--sans); letter-spacing: -0.015em; }
.bn-case-bball .bn-problem p { font-size: 16.5px; line-height: 1.65; color: rgba(10, 10, 11, 0.84); max-width: 760px; }
.bn-case-bball .bn-lessons { margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.bn-case-bball .bn-lesson {
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  transition: background-color 0.25s var(--ease);
}
.bn-case-bball .bn-lesson:hover { background: #fff; }
.bn-case-bball .bn-lesson-lead { font: 500 20px/1.35 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.bn-case-bball .bn-lesson p + p { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: rgba(10, 10, 11, 0.78); }
.bn-case-bball .bn-faq-list { margin-top: 56px; border-bottom: 1px solid var(--line); }
.bn-case-bball .bn-faq-item {
  border-top: 1px solid var(--line); padding: 38px 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px;
}
.bn-case-bball .bn-faq-q { font: 500 21px/1.35 var(--sans); letter-spacing: -0.015em; max-width: 480px; }
.bn-case-bball .bn-faq-a p { font-size: 16px; line-height: 1.65; color: rgba(10, 10, 11, 0.8); max-width: 720px; }
.bn-case-bball .bn-v6-frame { margin: 0 0 64px; }

/* —— 14 · footer ————————————————————————————————————————— */
.bn-case-bball .bn-footer { background: var(--ink); color: var(--bone-d); }
.bn-case-bball .bn-footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr);
  gap: 48px; padding: 84px 0 64px;
}
.bn-case-bball .bn-footer h3 { font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 239, 230, 0.55); margin-bottom: 18px; }
.bn-case-bball .bn-footer a { color: var(--bone-d); transition: color 0.2s var(--ease); }
.bn-case-bball .bn-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bn-case-bball .bn-footer-links li + li { margin-top: 12px; }
.bn-case-bball .bn-footer-links a { font-size: 14.5px; }
.bn-case-bball .bn-footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--txt-2d); max-width: 300px; }
.bn-case-bball .bn-footer-social { display: flex; gap: 8px; margin-top: 22px; }
.bn-case-bball .bn-footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-d); border-radius: 10px; color: var(--bone-d);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.bn-case-bball .bn-footer-social a:hover { color: #0A66C2; border-color: rgba(244, 239, 230, 0.4); }
.bn-case-bball .bn-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.bn-case-bball .bn-newsletter-head { font: 500 20px/1.3 var(--sans); letter-spacing: -0.015em; color: #fff; }
.bn-case-bball .bn-newsletter-body { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--txt-2d); }
.bn-case-bball .bn-newsletter-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.bn-case-bball .bn-input {
  min-height: 48px; padding: 0 16px; border-radius: 8px; min-width: 0;
  font: 400 15px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line);
}
.bn-case-bball .bn-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.bn-case-bball .bn-input--dark {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff;
  flex: 1 1 200px;
}
.bn-case-bball .bn-input--dark::placeholder { color: rgba(244, 239, 230, 0.55); }
.bn-case-bball .bn-input--dark:focus-visible { outline-color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.bn-case-bball .bn-field-msg { margin-top: 10px; font: 500 13px/1.5 var(--sans); color: var(--rust); }
.bn-case-bball .bn-band-ink .bn-field-msg, .bn-case-bball .bn-footer .bn-field-msg { color: var(--rust-soft); }
.bn-case-bball .bn-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 0 34px; border-top: 1px solid var(--line-d);
  font: 500 12px/1.6 var(--mono); color: rgba(244, 239, 230, 0.55);
}
.bn-case-bball .bn-footer-legal { display: flex; gap: 22px; }
.bn-case-bball .bn-footer-legal a { color: rgba(244, 239, 230, 0.55); font: inherit; }

/* —— 15 · sticky adaptive CTA (P8) ————————————————————————— */
.bn-case-bball .bn-sticky {
  position: fixed; left: 50%; bottom: 22px; z-index: 980;
  transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink-3); border-radius: 999px; padding: 5px 6px 5px 20px;
  box-shadow: var(--shadow-panel);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  max-width: min(92vw, 640px);
}
.bn-case-bball .bn-sticky.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.bn-case-bball .bn-sticky-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; animation: bn-pulse 2.4s var(--ease) infinite; }
.bn-case-bball .bn-sticky-act {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
  background: transparent; border: 0; cursor: pointer;
  font: 600 14px/1.3 var(--sans); color: #fff; text-align: left;
}
.bn-case-bball .bn-sticky-act .bn-arr { color: #8DB0FF; }
.bn-case-bball .bn-sticky-dismiss {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  color: rgba(244, 239, 230, 0.6); font: 400 20px/1 var(--sans);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.bn-case-bball .bn-sticky-dismiss:hover { color: #fff; background: rgba(244, 239, 230, 0.1); }
@keyframes bn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 255, 60, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(181, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 255, 60, 0); }
}

/* —— 16 · modals (email gate + exit intent) ————————————————— */
.bn-case-bball .bn-modal { position: fixed; inset: 0; z-index: 995; display: none; }
.bn-case-bball .bn-modal.is-open { display: block; }
.bn-case-bball .bn-modal-overlay { position: absolute; inset: 0; background: rgba(10, 10, 11, 0.55); border: 0; padding: 0; width: 100%; height: 100%; cursor: default; }
.bn-case-bball .bn-modal-frame {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 24px; pointer-events: none;
}
.bn-case-bball .bn-modal-card {
  pointer-events: auto; position: relative; width: 100%; max-width: 540px;
  background: #fff; border-radius: 22px; padding: 44px 44px 36px;
  box-shadow: var(--shadow-panel);
}
.bn-case-bball .bn-modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--txt-2); font: 400 22px/1 var(--sans);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.bn-case-bball .bn-modal-close:hover { color: var(--ink); background: rgba(10, 10, 11, 0.06); }
.bn-case-bball .bn-modal-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1 var(--mono); letter-spacing: 0.16em; color: var(--txt-2); }
.bn-case-bball .bn-modal-kicker::before { content: ""; width: 7px; height: 7px; background: var(--blue); }
.bn-case-bball .bn-modal-head { margin-top: 16px; font: 500 26px/1.2 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.bn-case-bball .bn-modal-body { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--txt-2); }
.bn-case-bball .bn-gate-fields { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.bn-case-bball .bn-gate-fields .bn-input { width: 100%; min-height: 52px; font-size: 16px; }
.bn-case-bball .bn-gate-fields .bn-btn { width: 100%; }
.bn-case-bball .bn-gate-label { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--txt-2); }
.bn-case-bball .bn-microcopy { margin-top: 18px; font: 400 13px/1.6 var(--sans); color: var(--txt-2); }
.bn-case-bball .bn-gate-success {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  font: 500 17px/1.4 var(--sans);
}
.bn-case-bball .bn-gate-success::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

/* —— 17 · motion ————————————————————————————————————————— */
.bn-case-bball.bn-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.bn-case-bball.bn-js [data-reveal].is-in { opacity: 1; transform: none; }

/* —— 18 · responsive ————————————————————————————————————— */
@media (max-width: 1120px) {
  .bn-case-bball .bn-progress-stage { display: none; }
}
@media (max-width: 1024px) {
  .bn-case-bball .bn-sec { padding: 88px 0; }
  .bn-case-bball .bn-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .bn-case-bball .bn-split { grid-template-columns: 1fr; gap: 40px; }
  .bn-case-bball .bn-side-art { max-width: 560px; }
  .bn-case-bball .bn-cta-hook { padding: 100px 0; }
  .bn-case-bball .bn-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bn-case-bball .bn-nav { display: none; }
  .bn-case-bball .bn-cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .bn-case-bball .bn-cta-act { justify-self: start; }
  .bn-case-bball .bn-faq-item { grid-template-columns: 1fr; gap: 14px; }
  .bn-case-bball .bn-problem { grid-template-columns: 44px minmax(0, 1fr); gap: 14px 20px; }
  .bn-case-bball .bn-problem p { grid-column: 2; padding-top: 0; }
  .bn-case-bball .bn-lessons, .bn-case-bball .bn-close-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .bn-case-bball { font-size: 16px; }
  .bn-case-bball .bn-wrap { padding-inline: 22px; }
  .bn-case-bball .bn-sec { padding: 72px 0; }
  .bn-case-bball .bn-s-hero { padding-bottom: 72px; }
  .bn-case-bball .bn-utility { margin-bottom: 44px; }
  .bn-case-bball .bn-author { flex-direction: column; }
  .bn-case-bball .bn-hero-grid { gap: 36px; margin-top: 24px; }
  .bn-case-bball .bn-capsule { padding: 26px 24px; font-size: 17.5px; }
  .bn-case-bball .bn-cta-card { padding: 32px 26px; margin-top: 56px; }
  .bn-case-bball .bn-cta-band { padding: 64px 0; }
  .bn-case-bball .bn-figure { margin-top: 40px; }
  .bn-case-bball .bn-table-scroll { margin-top: 40px; }
  .bn-case-bball .bn-quote { margin-top: 52px; }
  .bn-case-bball .bn-footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 48px; }
  /* P8 mobile: bottom-fixed bar, max height 56px (body gets matching padding via JS) */
  .bn-case-bball .bn-sticky {
    left: 0; right: 0; bottom: 0; transform: translateY(16px);
    max-width: none; width: 100%; height: 56px; max-height: 56px;
    border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 0 4px 0 16px; justify-content: space-between;
  }
  .bn-case-bball .bn-sticky.is-on { transform: translateY(0); }
  .bn-case-bball .bn-sticky-act { font-size: 13px; min-height: 44px; flex: 1; }
  .bn-case-bball .bn-modal-card { padding: 34px 26px 28px; }
}

/* —— 19 · reduced motion ————————————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  .bn-case-bball *, .bn-case-bball *::before, .bn-case-bball *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bn-case-bball.bn-js [data-reveal] { opacity: 1; transform: none; }
}

/* —— 20 · cascade-final section-padding overrides ————————————
   Must remain the LAST rules: they beat the equal-specificity
   .bn-sec paddings (base + media queries) purely by source order. */
.bn-case-bball .bn-sec--flush { padding-top: 0; }
.bn-case-bball .bn-s-hero { padding-top: 0; padding-bottom: 96px; }
@media (max-width: 767px) {
  .bn-case-bball .bn-s-hero { padding-bottom: 72px; }
}



/* ============================================================
   BRAINY NEURALS · CASE STUDY — AI DIET ASSISTANT (GASTRO)
   Draft build v1 · all styles scoped under .bn-case-gi-diet
   Blocks: 01 tokens · 02 standalone shim · 03 base · 04 utilities
   05 header · 06 hero · 07 sections · 08 figures · 09 tables
   10 quotes · 11 bands · 12 CTA system · 13 content modules
   14 footer · 15 sticky · 16 modals · 17 motion · 18 responsive
   19 reduced motion · 20 cascade-final overrides
   Publish target pending confirmation (Elementor Custom HTML
   widget vs full-page swap) — scoping covers both.
   ============================================================ */

/* —— 01 · custom properties ————————————————————————————— */
.bn-case-gi-diet {
  --paper: #FFFFFF; --bone: #FAFAF8; --bone-d: #F4EFE6;
  --ink: #0A0A0B; --ink-2: #1A1A1D; --ink-3: #26262A;
  --line: rgba(10, 10, 11, 0.14); --line-d: rgba(244, 239, 230, 0.14);
  --blue: #0655FF; --blue-2: #0443CC; --blue-soft: #5B8BFF;
  --signal: #B5FF3C; --rust: #C2410C; --rust-soft: #FFA075;
  --txt-2: rgba(10, 10, 11, 0.6); --txt-2d: rgba(244, 239, 230, 0.75);
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --serif: "IBM Plex Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1320px; --gutter: 32px;
  --shadow-panel: 0 30px 60px -30px rgba(10, 10, 11, 0.35), 0 2px 6px rgba(10, 10, 11, 0.06);
}

/* —— 02 · standalone-preview shim ————————————————————————
   DELETE AT WORDPRESS MIGRATION — the theme owns body. */
body { margin: 0; padding: 0; background: #FFFFFF; }

/* —— 03 · base (scoped) ————————————————————————————————— */
.bn-case-gi-diet, .bn-case-gi-diet *, .bn-case-gi-diet *::before, .bn-case-gi-diet *::after { box-sizing: border-box; }
.bn-case-gi-diet {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    max-width: 100%;
}
.bn-case-gi-diet h1, .bn-case-gi-diet h2, .bn-case-gi-diet h3, .bn-case-gi-diet p,
.bn-case-gi-diet figure, .bn-case-gi-diet blockquote, .bn-case-gi-diet ul, .bn-case-gi-diet ol { margin: 0; padding: 0; }
.bn-case-gi-diet ul, .bn-case-gi-diet ol { list-style: none; }
.bn-case-gi-diet img, .bn-case-gi-diet svg { max-width: 100%; height: auto; }
.bn-case-gi-diet a { color: var(--ink); text-decoration: none; }
.bn-case-gi-diet a:hover { color: var(--ink); }
.bn-case-gi-diet :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.bn-case-gi-diet .bn-band-ink :focus-visible, .bn-case-gi-diet .bn-band-blue :focus-visible,
.bn-case-gi-diet .bn-footer :focus-visible { outline-color: #FFFFFF; }
.bn-case-gi-diet button { font-family: inherit; }

/* —— 04 · utilities ————————————————————————————————————— */
.bn-case-gi-diet .bn-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.bn-case-gi-diet .bn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bn-case-gi-diet .bn-skip {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; font: 600 14px/1 var(--sans);
  padding: 14px 22px; border-radius: 8px; transition: top 0.2s var(--ease);
}
.bn-case-gi-diet .bn-skip:focus-visible { top: 16px; color: #fff; }


/* buttons */
.bn-case-gi-diet .bn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 600 15.5px/1.25 var(--sans); letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.bn-case-gi-diet .bn-btn--sm { min-height: 44px; padding: 9px 20px; font-size: 13.5px; }
.bn-case-gi-diet .bn-btn--blue { background: var(--blue); color: #fff; }
.bn-case-gi-diet .bn-btn--blue:hover { background: var(--blue-2); color: #fff; }
.bn-case-gi-diet .bn-btn--ink { background: var(--ink); color: #fff; }
.bn-case-gi-diet .bn-btn--ink:hover { background: var(--ink-2); color: #fff; }
.bn-case-gi-diet .bn-btn--white { background: #fff; color: var(--ink); }
.bn-case-gi-diet .bn-btn--white:hover { background: var(--bone-d); color: var(--ink); }
.bn-case-gi-diet .bn-btn--ghost { background: transparent; color: var(--ink); border-color: rgba(10, 10, 11, 0.3); }
.bn-case-gi-diet .bn-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.bn-case-gi-diet .bn-arr { display: inline-block; transition: transform 0.25s var(--ease); }
.bn-case-gi-diet .bn-btn:hover .bn-arr, .bn-case-gi-diet a:hover > .bn-arr { transform: translateX(4px); }
.bn-case-gi-diet .bn-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.18em; color: var(--txt-2);
}
.bn-case-gi-diet .bn-kicker::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

/* —— 05 · header ————————————————————————————————————————— */
.bn-case-gi-diet .bn-header {
  position: sticky; top: 0; z-index: 960;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.bn-case-gi-diet .bn-header-inner { position: relative; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bn-case-gi-diet .bn-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.bn-case-gi-diet .bn-logo img { width: 34px; height: 24px; display: block; }
.bn-case-gi-diet .bn-logo-word { font: 600 15.5px/1 var(--sans); letter-spacing: -0.01em; }
.bn-case-gi-diet .bn-nav ul { display: flex; gap: 2px; }
.bn-case-gi-diet .bn-nav a {
  display: inline-block; padding: 12px 14px; border-radius: 8px;
  font: 500 13.5px/1.2 var(--sans); color: rgba(10, 10, 11, 0.78);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-nav a:hover { background: rgba(10, 10, 11, 0.05); color: var(--ink); }
.bn-case-gi-diet .bn-header-right { display: flex; align-items: center; gap: 16px; }
.bn-case-gi-diet .bn-gate-readout {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--txt-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.bn-case-gi-diet .bn-readout-dot { width: 6px; height: 6px; background: var(--blue); flex: none; }
.bn-case-gi-diet .bn-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.bn-case-gi-diet .bn-progress-bar { height: 100%; width: 0%; background: var(--blue); }

/* —— 06 · hero ——————————————————————————————————————————— */
.bn-case-gi-diet .bn-utility {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; margin-bottom: 56px; border-bottom: 1px solid var(--line);
  font: 500 12.5px/1.4 var(--mono); color: var(--txt-2);
}
.bn-case-gi-diet .bn-crumbs ol { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bn-case-gi-diet .bn-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.bn-case-gi-diet .bn-crumbs li + li::before { content: "›"; color: rgba(10, 10, 11, 0.3); }
.bn-case-gi-diet .bn-crumbs a { color: var(--txt-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.bn-case-gi-diet .bn-crumbs a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.bn-case-gi-diet .bn-crumbs [aria-current="page"] { color: var(--ink); }
.bn-case-gi-diet .bn-utility-meta { display: flex; align-items: center; gap: 18px; }
.bn-case-gi-diet .bn-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-share:hover { border-color: var(--ink); }
.bn-case-gi-diet .bn-share [data-share-state] { color: var(--blue); }
.bn-case-gi-diet .bn-h1 { margin-top: 26px; max-width: 1160px; font: 500 clamp(36px, 4.6vw, 70px)/1.05 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.bn-case-gi-diet .bn-h1 em { font: italic 400 0.97em var(--serif); letter-spacing: -0.02em; color: var(--blue); }
.bn-case-gi-diet .bn-byline { margin-top: 24px; font: 500 13px/1.7 var(--mono); color: var(--txt-2); }
.bn-case-gi-diet .bn-author {
  margin-top: 20px; max-width: 820px; display: flex; gap: 20px; align-items: flex-start;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.bn-case-gi-diet .bn-author-photo { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.bn-case-gi-diet .bn-author-bio { font-size: 14.5px; line-height: 1.6; color: var(--txt-2); max-width: 62ch; margin-top: 6px; }
.bn-case-gi-diet .bn-author-review {
  display: block; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 400 13.5px/1.6 var(--sans); color: var(--txt-2); max-width: 64ch;
}
.bn-case-gi-diet .bn-author-review a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.bn-case-gi-diet .bn-review-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); margin-right: 9px; vertical-align: middle;
  position: relative; top: -1px;
}
.bn-case-gi-diet .bn-author-main { min-width: 0; flex: 1; }
.bn-case-gi-diet .bn-author-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.bn-case-gi-diet .bn-author-name { font: 600 17px/1.3 var(--sans); }
.bn-case-gi-diet .bn-author-role { margin-top: 2px; font: 400 14px/1.5 var(--sans); color: var(--txt-2); }
.bn-case-gi-diet .bn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.bn-case-gi-diet .bn-cred { font: 500 11.5px/1.4 var(--mono); color: rgba(10, 10, 11, 0.74); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.bn-case-gi-diet .bn-author-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 24px;
  font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(10, 10, 11, 0.3); text-underline-offset: 4px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-author-link:hover { color: var(--blue); text-decoration-color: var(--blue); }
.bn-case-gi-diet .bn-author-link svg { width: 14px; height: 14px; fill: currentColor; }
.bn-case-gi-diet .bn-capsule {
  position: relative; margin-top: 48px; max-width: 900px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 36px; font-size: 19px; line-height: 1.62; color: rgba(10, 10, 11, 0.88);
}
.bn-case-gi-diet .bn-capsule::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.bn-case-gi-diet .bn-anchor { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.bn-case-gi-diet .bn-anchor > a {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 15px/1.3 var(--mono); color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(10, 10, 11, 0.3); text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-anchor > a:hover { color: var(--blue); text-decoration-color: var(--blue); }
.bn-case-gi-diet .bn-anchor-sub { font: 400 13.5px/1.5 var(--sans); color: var(--txt-2); }
.bn-case-gi-diet .bn-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.bn-case-gi-diet .bn-stat-card {
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color 0.25s var(--ease);
}
.bn-case-gi-diet .bn-stat-card:hover { background: #fff; }
.bn-case-gi-diet .bn-stat-fig { font: italic 400 clamp(38px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.bn-case-gi-diet .bn-stat-fig sup { font-size: 0.55em; }
.bn-case-gi-diet .bn-stat-txt { font: 400 14px/1.55 var(--sans); color: rgba(10, 10, 11, 0.78); }

/* —— 07 · sections + prose ———————————————————————————————— */
.bn-case-gi-diet .bn-sec { padding: 108px 0; }
.bn-case-gi-diet .bn-sec--tight { padding: 80px 0; }
.bn-case-gi-diet .bn-h2 { font: 500 clamp(29px, 3.5vw, 50px)/1.09 var(--sans); letter-spacing: -0.03em; text-wrap: balance; max-width: 940px; }
.bn-case-gi-diet .bn-h2 em { font: italic 400 0.97em var(--serif); color: var(--blue); }
.bn-case-gi-diet .bn-band-ink .bn-h2, .bn-case-gi-diet .bn-band-blue .bn-h2 { color: #fff; }
.bn-case-gi-diet .bn-band-ink .bn-h2 em { color: var(--blue-soft); }
.bn-case-gi-diet .bn-band-blue .bn-h2 em { color: #fff; }
.bn-case-gi-diet .bn-prose { margin-top: 34px; }
.bn-case-gi-diet .bn-prose p { max-width: 790px; font-size: 17.5px; line-height: 1.68; color: rgba(10, 10, 11, 0.84); }
.bn-case-gi-diet .bn-prose p + p { margin-top: 22px; }
.bn-case-gi-diet .bn-prose strong { font-weight: 600; color: var(--ink); }
.bn-case-gi-diet .bn-prose a, .bn-case-gi-diet .bn-faq-a a {
  color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(10, 10, 11, 0.4); text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-prose a:hover, .bn-case-gi-diet .bn-faq-a a:hover { color: var(--blue); text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.bn-case-gi-diet .bn-band-ink .bn-prose p { color: var(--txt-2d); }
.bn-case-gi-diet .bn-band-ink .bn-prose strong { color: #fff; }
.bn-case-gi-diet .bn-band-ink .bn-prose a { color: #fff; text-decoration-color: rgba(244, 239, 230, 0.45); }
.bn-case-gi-diet .bn-band-ink .bn-prose a:hover { color: #fff; text-decoration-color: var(--signal); }

/* —— 08 · figures ————————————————————————————————————————— */
.bn-case-gi-diet .bn-figure { margin: 48px 0 0; background: var(--bone); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bn-case-gi-diet .bn-figure svg, .bn-case-gi-diet .bn-figure img { display: block; width: 100%; height: auto; }
.bn-case-gi-diet .bn-figcap {
  display: flex; align-items: baseline; gap: 12px; padding: 16px 22px;
  border-top: 1px solid var(--line); background: #fff;
  font: 500 12.5px/1.6 var(--mono); color: var(--txt-2);
}
.bn-case-gi-diet .bn-figcap::before { content: ""; width: 6px; height: 6px; background: var(--blue); flex: none; position: relative; top: -1px; }
.bn-case-gi-diet .bn-band-ink .bn-figure { background: var(--ink-2); border-color: var(--line-d); }
.bn-case-gi-diet .bn-band-ink .bn-figcap { background: var(--ink); border-color: var(--line-d); color: var(--txt-2d); }
.bn-case-gi-diet svg .sv-m { font-family: var(--mono); }
.bn-case-gi-diet svg .sv-s { font-family: var(--sans); }
.bn-case-gi-diet svg .sv-lane { font-family: var(--mono); font-weight: 600; letter-spacing: 0.2em; }

/* —— 09 · tables ————————————————————————————————————————— */
.bn-case-gi-diet .bn-table-scroll { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.bn-case-gi-diet table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bn-case-gi-diet th {
  font: 600 11px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  text-align: left; color: var(--txt-2); background: var(--bone);
  padding: 15px 22px; border-bottom: 1px solid rgba(10, 10, 11, 0.55);
}
.bn-case-gi-diet td { padding: 17px 22px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; color: rgba(10, 10, 11, 0.84); }
.bn-case-gi-diet tbody tr:last-child td { border-bottom: none; }
.bn-case-gi-diet tbody tr:nth-child(even) td { background: rgba(6, 85, 255, 0.028); }
.bn-case-gi-diet td strong { font-weight: 600; color: var(--ink); }
.bn-case-gi-diet .bn-compare-table { min-width: 980px; }
.bn-case-gi-diet .bn-compare-table th:first-child, .bn-case-gi-diet .bn-compare-table td:first-child { min-width: 170px; }
.bn-case-gi-diet .bn-compare-table th:last-child { color: var(--blue); }
.bn-case-gi-diet .bn-compare-table td:last-child { background: rgba(6, 85, 255, 0.05); color: var(--ink); }
.bn-case-gi-diet .bn-compare-table tbody tr:nth-child(even) td:last-child { background: rgba(6, 85, 255, 0.075); }

/* —— 10 · pull-quotes ————————————————————————————————————— */
.bn-case-gi-diet .bn-quote { margin: 68px 0 0; max-width: 940px; }
.bn-case-gi-diet .bn-quote-text { font: italic 400 clamp(23px, 2.4vw, 32px)/1.36 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.bn-case-gi-diet .bn-qmark { color: var(--blue); font-style: normal; }
.bn-case-gi-diet .bn-quote-attr { display: flex; align-items: center; gap: 12px; margin-top: 20px; font: 500 13px/1.5 var(--mono); color: var(--txt-2); }
.bn-case-gi-diet .bn-quote-attr::before { content: ""; width: 22px; height: 1px; background: var(--blue); flex: none; }
.bn-case-gi-diet .bn-band-ink .bn-quote-text { color: #fff; }
.bn-case-gi-diet .bn-band-ink .bn-qmark { color: var(--signal); }
.bn-case-gi-diet .bn-band-ink .bn-quote-attr { color: var(--txt-2d); }
.bn-case-gi-diet .bn-band-ink .bn-quote-attr::before { background: var(--signal); }

/* —— 11 · bands ————————————————————————————————————————— */
.bn-case-gi-diet .bn-band-ink { position: relative; overflow: hidden; background: var(--ink); color: var(--bone-d); }
.bn-case-gi-diet .bn-band-ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(244, 239, 230, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 230, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
}
.bn-case-gi-diet .bn-band-ink > * { position: relative; }
.bn-case-gi-diet .bn-band-blue { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #0858FF, #0A48E0 55%, #0334B8); }
.bn-case-gi-diet .bn-band-blue::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 42%, rgba(0, 0, 0, 0.95), transparent 96%);
  mask-image: radial-gradient(closest-side at 50% 42%, rgba(0, 0, 0, 0.95), transparent 96%);
}
.bn-case-gi-diet .bn-band-blue > * { position: relative; }
.bn-case-gi-diet .bn-cta-hook::after { content: ""; position: absolute; inset: -40%; pointer-events: none; background: repeating-radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.055) 0 1.5px, transparent 1.5px 130px); }
.bn-case-gi-diet .bn-pin { position: absolute; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; }
.bn-case-gi-diet .bn-pin--white { background: #fff; top: 22%; left: 14%; }
.bn-case-gi-diet .bn-pin--signal { background: var(--signal); bottom: 26%; right: 11%; }

/* —— 12 · CTA system ————————————————————————————————————— */
.bn-case-gi-diet .bn-cta-band { padding: 80px 0; }
.bn-case-gi-diet .bn-cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.bn-case-gi-diet .bn-cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.bn-case-gi-diet .bn-cta-head { font: 500 clamp(25px, 2.9vw, 38px)/1.14 var(--sans); letter-spacing: -0.025em; color: inherit; text-wrap: balance; }
.bn-case-gi-diet .bn-cta-body { margin-top: 14px; max-width: 620px; font-size: 16.5px; line-height: 1.6; }
.bn-case-gi-diet .bn-band-ink .bn-cta-body { color: var(--txt-2d); }
.bn-case-gi-diet .bn-cta-card {
  margin-top: 68px; padding: 42px 46px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.bn-case-gi-diet .bn-cta-card .bn-cta-head { font-size: clamp(23px, 2.3vw, 31px); }
.bn-case-gi-diet .bn-cta-card .bn-cta-body { color: var(--txt-2); }
.bn-case-gi-diet .bn-cta-card--ink { background: var(--ink); border-color: var(--ink); color: var(--bone-d); }
.bn-case-gi-diet .bn-cta-card--ink .bn-cta-head { color: #fff; }
.bn-case-gi-diet .bn-cta-card--ink .bn-cta-body { color: var(--txt-2d); }
.bn-case-gi-diet .bn-cta-hook { padding: 120px 0; text-align: center; }
.bn-case-gi-diet .bn-cta-hook .bn-cta-head { max-width: 780px; margin-inline: auto; font-size: clamp(31px, 3.9vw, 52px); letter-spacing: -0.03em; }
.bn-case-gi-diet .bn-cta-hook .bn-cta-body { margin: 18px auto 0; color: rgba(255, 255, 255, 0.82); }
.bn-case-gi-diet .bn-cta-hook .bn-btn { margin-top: 34px; }
.bn-case-gi-diet .bn-trust-line { margin-top: 16px; font: 500 13px/1.6 var(--mono); color: rgba(255, 255, 255, 0.72); }
.bn-case-gi-diet .bn-cta-share {
  margin-top: 68px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.bn-case-gi-diet .bn-cta-share .bn-cta-head { font-size: 21px; letter-spacing: -0.015em; }
.bn-case-gi-diet .bn-cta-share .bn-cta-body { margin-top: 6px; font-size: 15px; color: var(--txt-2); }
.bn-case-gi-diet .bn-share-actions { display: flex; align-items: center; gap: 14px; }
.bn-case-gi-diet .bn-copy-state { font: 600 13px/1 var(--mono); color: var(--blue); min-width: 74px; }
.bn-case-gi-diet .bn-close-header { margin-top: 72px; font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -0.02em; }
.bn-case-gi-diet .bn-close-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.bn-case-gi-diet .bn-close-card {
  display: flex; flex-direction: column; gap: 20px; min-height: 196px; padding: 30px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.bn-case-gi-diet .bn-close-card:hover { background: #fff; border-color: rgba(10, 10, 11, 0.45); }
.bn-case-gi-diet .bn-close-label { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--txt-2); }
.bn-case-gi-diet .bn-close-label::before { content: ""; width: 7px; height: 7px; background: var(--blue); flex: none; }
.bn-case-gi-diet .bn-close-card .bn-btn { margin-top: auto; align-self: flex-start; text-align: left; }

/* —— 13 · content modules ————————————————————————————————— */
.bn-case-gi-diet .bn-lessons { margin-top: 48px; border-bottom: 1px solid var(--line); display:block; }
.bn-case-gi-diet .bn-lesson {
      border-top: 1px solid var(--line) !important;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 32px;
    align-items: start;
    border-radius: 0;
    background: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}
.bn-case-gi-diet .bn-lesson-lead { font: 500 21px/1.32 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.bn-case-gi-diet .bn-lesson-body {     font-size: 16.5px !important;
    line-height: 1.66 !important;
    color: rgba(10, 10, 11, 0.84) !important;
    max-width: 760px;
    margin: 0 !important;}
.bn-case-gi-diet .bn-faq-list { margin-top: 48px; border-bottom: 1px solid var(--line); }
.bn-case-gi-diet .bn-faq-item { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.bn-case-gi-diet .bn-faq-q { font: 500 21px/1.34 var(--sans); letter-spacing: -0.015em; max-width: 480px; }
.bn-case-gi-diet .bn-faq-a p { font-size: 16px; line-height: 1.66; color: rgba(10, 10, 11, 0.8); max-width: 720px; }
.bn-case-gi-diet .bn-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.bn-case-gi-diet .bn-related-card {
  display: flex; flex-direction: column; gap: 16px; min-height: 200px; padding: 28px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.bn-case-gi-diet .bn-related-card:hover { background: #fff; border-color: rgba(10, 10, 11, 0.45); color: var(--ink); }
.bn-case-gi-diet .bn-related-title { font: 500 20px/1.3 var(--sans); letter-spacing: -0.015em; }
.bn-case-gi-diet .bn-related-desc { font: 400 14.5px/1.55 var(--sans); color: var(--txt-2); }
.bn-case-gi-diet .bn-related-foot { margin-top: auto; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--blue); }
.bn-case-gi-diet .bn-related-links {
  margin-top: 28px; font: 400 15px/1.7 var(--sans); color: var(--txt-2); max-width: 74ch;
}
.bn-case-gi-diet .bn-related-links a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.bn-case-gi-diet .bn-related-hub {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; min-height: 44px;
  font: 600 14px/1 var(--mono); color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(10, 10, 11, 0.3); text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-related-hub:hover { color: var(--blue); text-decoration-color: var(--blue); }

/* —— 14 · footer ————————————————————————————————————————— */
.bn-case-gi-diet .bn-footer { background: var(--ink); color: var(--bone-d); }
.bn-case-gi-diet .bn-footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr); gap: 48px; padding: 84px 0 64px; }
.bn-case-gi-diet .bn-footer h3 { font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 239, 230, 0.55); margin-bottom: 18px; }
.bn-case-gi-diet .bn-footer a { color: var(--bone-d); transition: color 0.2s var(--ease); }
.bn-case-gi-diet .bn-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bn-case-gi-diet .bn-footer-links li + li { margin-top: 12px; }
.bn-case-gi-diet .bn-footer-links a { font-size: 14.5px; }
.bn-case-gi-diet .bn-footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--txt-2d); max-width: 300px; }
.bn-case-gi-diet .bn-footer .bn-logo-word { color: #fff; }
.bn-case-gi-diet .bn-footer-social { display: flex; gap: 8px; margin-top: 22px; }
.bn-case-gi-diet .bn-footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-d); border-radius: 10px; color: var(--bone-d);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-footer-social a:hover { color: #0A66C2; border-color: rgba(244, 239, 230, 0.4); }
.bn-case-gi-diet .bn-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.bn-case-gi-diet .bn-newsletter-head { font: 500 20px/1.3 var(--sans); letter-spacing: -0.015em; color: #fff; }
.bn-case-gi-diet .bn-newsletter-body { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--txt-2d); }
.bn-case-gi-diet .bn-newsletter-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.bn-case-gi-diet .bn-input { min-height: 48px; padding: 0 16px; border-radius: 8px; min-width: 0; font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); }
.bn-case-gi-diet .bn-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.bn-case-gi-diet .bn-input--dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; flex: 1 1 200px; }
.bn-case-gi-diet .bn-input--dark::placeholder { color: rgba(244, 239, 230, 0.55); }
.bn-case-gi-diet .bn-input--dark:focus-visible { outline-color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.bn-case-gi-diet .bn-field-msg { margin-top: 10px; font: 500 13px/1.5 var(--sans); color: var(--rust); }
.bn-case-gi-diet .bn-footer .bn-field-msg { color: var(--rust-soft); }
.bn-case-gi-diet .bn-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 0 34px; border-top: 1px solid var(--line-d);
  font: 500 12px/1.6 var(--mono); color: rgba(244, 239, 230, 0.55);
}
.bn-case-gi-diet .bn-footer-legal { display: flex; gap: 22px; }
.bn-case-gi-diet .bn-footer-legal a { color: rgba(244, 239, 230, 0.55); font: inherit; }

/* —— 15 · sticky adaptive CTA ————————————————————————————— */
.bn-case-gi-diet .bn-sticky {
  position: fixed; right: 24px; bottom: 24px; z-index: 980;
  transform: translateY(16px); display: flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink-3); border-radius: 999px;
  padding: 5px 6px 5px 20px; box-shadow: var(--shadow-panel);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  max-width: min(90vw, 560px);
}
.bn-case-gi-diet .bn-sticky.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.bn-case-gi-diet .bn-sticky-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; animation: bn-pulse 2.4s var(--ease) infinite; }
.bn-case-gi-diet .bn-sticky-act {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
  background: transparent; border: 0; cursor: pointer;
  font: 600 14px/1.3 var(--sans); color: #fff; text-align: left;
}
.bn-case-gi-diet .bn-sticky-act .bn-arr { color: var(--blue-soft); }
.bn-case-gi-diet .bn-sticky-dismiss {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  color: rgba(244, 239, 230, 0.6); font: 400 20px/1 var(--sans);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-sticky-dismiss:hover { color: #fff; background: rgba(244, 239, 230, 0.1); }
@keyframes bn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 255, 60, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(181, 255, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 255, 60, 0); }
}

/* —— 16 · modals ————————————————————————————————————————— */
.bn-case-gi-diet .bn-modal { position: fixed; inset: 0; z-index: 995; display: none; }
.bn-case-gi-diet .bn-modal.is-open { display: block; }
.bn-case-gi-diet .bn-modal-overlay { position: absolute; inset: 0; background: rgba(10, 10, 11, 0.55); border: 0; padding: 0; width: 100%; height: 100%; cursor: default; }
.bn-case-gi-diet .bn-modal-frame { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.bn-case-gi-diet .bn-modal-card { pointer-events: auto; position: relative; width: 100%; max-width: 540px; background: #fff; border-radius: 22px; padding: 44px 44px 36px; box-shadow: var(--shadow-panel); }
.bn-case-gi-diet .bn-modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--txt-2); font: 400 22px/1 var(--sans);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.bn-case-gi-diet .bn-modal-close:hover { color: var(--ink); background: rgba(10, 10, 11, 0.06); }
.bn-case-gi-diet .bn-modal-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1.4 var(--mono); letter-spacing: 0.16em; color: var(--txt-2); }
.bn-case-gi-diet .bn-modal-kicker::before { content: ""; width: 7px; height: 7px; background: var(--blue); flex: none; }
.bn-case-gi-diet .bn-modal-head { margin-top: 16px; font: 500 26px/1.2 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.bn-case-gi-diet .bn-modal-body { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--txt-2); }
/* The HTML `hidden` attribute only works via the UA stylesheet's
   [hidden]{display:none}. Any author-level `display:` rule on the same
   element beats it, which was leaving the two-step gate showing step 1,
   step 2 and the success message all at once. This reinstates it. */
.bn-case-gi-diet [hidden] { display: none !important; }
.bn-case-gi-diet .bn-gate-fields { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.bn-case-gi-diet .bn-gate-fields .bn-input { width: 100%; min-height: 52px; font-size: 16px; }
.bn-case-gi-diet .bn-gate-fields .bn-btn { width: 100%; }
.bn-case-gi-diet .bn-gate-label { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--txt-2); }
.bn-case-gi-diet .bn-microcopy { margin-top: 18px; font: 400 13px/1.6 var(--sans); color: var(--txt-2); }
.bn-case-gi-diet .bn-gate-success {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  font: 500 17px/1.4 var(--sans);
}
.bn-case-gi-diet .bn-gate-success::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }

/* —— 17 · motion ————————————————————————————————————————— */
.bn-case-gi-diet.bn-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.bn-case-gi-diet.bn-js [data-reveal].is-in { opacity: 1; transform: none; }

/* —— 18 · responsive ————————————————————————————————————— */
@media (max-width: 1180px) {
  .bn-case-gi-diet .bn-gate-readout { display: none; }
  .bn-case-gi-diet .bn-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .bn-case-gi-diet .bn-sec { padding: 86px 0; }
  .bn-case-gi-diet .bn-cta-hook { padding: 96px 0; }
  .bn-case-gi-diet .bn-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-case-gi-diet .bn-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .bn-case-gi-diet .bn-nav { display: none; }
  .bn-case-gi-diet .bn-cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .bn-case-gi-diet .bn-cta-act { justify-self: start; }
  .bn-case-gi-diet .bn-faq-item, .bn-case-gi-diet .bn-lesson { grid-template-columns: 1fr; gap: 14px; }
  .bn-case-gi-diet .bn-close-grid { grid-template-columns: 1fr; }
  .bn-case-gi-diet .bn-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-case-gi-diet .bn-author { flex-direction: column; }
}
@media (max-width: 767px) {
  .bn-case-gi-diet { font-size: 16px; }
  .bn-case-gi-diet .bn-wrap { padding-inline: 22px; }
  .bn-case-gi-diet .bn-sec { padding: 68px 0; }
  .bn-case-gi-diet .bn-utility { margin-bottom: 40px; }
  .bn-case-gi-diet .bn-capsule { padding: 26px 24px; font-size: 17.5px; }
  .bn-case-gi-diet .bn-stat-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .bn-case-gi-diet .bn-cta-card { padding: 30px 24px; margin-top: 52px; }
  .bn-case-gi-diet .bn-cta-band { padding: 62px 0; }
  .bn-case-gi-diet .bn-figure { margin-top: 38px; }
  .bn-case-gi-diet .bn-table-scroll { margin-top: 38px; }
  .bn-case-gi-diet .bn-quote { margin-top: 50px; }
  .bn-case-gi-diet .bn-footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 48px; }
  /* sticky mobile: bottom-fixed bar, max 56px tall (JS adds matching body padding) */
  .bn-case-gi-diet .bn-sticky {
    left: 0; right: 0; bottom: 0; transform: translateY(16px);
    max-width: none; width: 100%; height: 56px; max-height: 56px;
    border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 0 4px 0 16px; justify-content: space-between;
  }
  .bn-case-gi-diet .bn-sticky.is-on { transform: translateY(0); }
  .bn-case-gi-diet .bn-sticky-act { font-size: 13px; min-height: 44px; flex: 1; }
  .bn-case-gi-diet .bn-modal-card { padding: 34px 26px 28px; }
}

/* —— 19 · reduced motion ————————————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  .bn-case-gi-diet *, .bn-case-gi-diet *::before, .bn-case-gi-diet *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bn-case-gi-diet.bn-js [data-reveal] { opacity: 1; transform: none; }
}

/* —— 20 · cascade-final overrides (keep LAST — win by source order) —— */
.bn-case-gi-diet .bn-sec--flush { padding-top: 0; }
.bn-case-gi-diet .bn-s-hero { padding-top: 0; padding-bottom: 88px; }

/* —— hero backdrop ——————————————————————————————————————————
   The photo sits at full width across the top of the hero rather than
   `cover`. This hero is ~1500px tall, so cover would scale a 3:2 image
   to 2250px wide and discard 41% of it, leaving a blown-up fragment.
   `100% auto` keeps the whole frame intact at natural proportions and
   lets it dissolve into white further down, where the stat cards sit.

   The white scrim is a gradient layer inside the same background
   shorthand, so it is still one paint. It runs 50% at the top to fully
   opaque where the photo ends. Measured worst-case contrast against
   #0a0a0b is 5.4:1 at the thinnest point — clears WCAG AA for body
   text. 0.45 is the hard floor; below that small text starts failing. */
.bn-case-gi-diet .bn-s-hero { position: relative; isolation: isolate; }
.bn-case-gi-diet .bn-s-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.50) 0%,
      rgba(255,255,255,0.54) 30%,
      rgba(255,255,255,0.66) 52%,
      rgba(255,255,255,0.92) 63%,
      rgba(255,255,255,1.00) 70%),
    url("/wp-content/uploads/2026/08/hero-backdrop.webp");
  background-size: 100% 100%, 100% auto;
  background-position: top center, top center;
  background-repeat: no-repeat, no-repeat;
}
/* keep every hero child above the backdrop */
.bn-case-gi-diet .bn-s-hero > .bn-wrap { position: relative; z-index: 1; }
@media (max-width: 1023px) {
  /* the photo scales with width, so on smaller screens it covers less
     of the hero — pull the fade up to match */
  .bn-case-gi-diet .bn-s-hero::before {
    background-image:
      linear-gradient(180deg,
        rgba(255,255,255,0.56) 0%,
        rgba(255,255,255,0.68) 26%,
        rgba(255,255,255,0.92) 40%,
        rgba(255,255,255,1.00) 48%),
      url("assets/hero-backdrop.webp");
  }
}
@media (max-width: 767px) {
  /* portrait viewports stack all the text into the photo band */
  .bn-case-gi-diet .bn-s-hero::before {
    background-image:
      linear-gradient(180deg,
        rgba(255,255,255,0.62) 0%,
        rgba(255,255,255,0.80) 20%,
        rgba(255,255,255,1.00) 34%),
      url("assets/hero-backdrop.webp");
    background-size: 100% 100%, 150% auto;
    background-position: top center, top 0 left 62%;
  }
}

@media (max-width: 767px) {
  .bn-case-gi-diet .bn-s-hero { padding-bottom: 64px; }
}

.wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    display: none;
}
