:root {
  --bt-ink: #132d43;
  --bt-muted: #5d6f7c;
  --bt-line: rgba(19, 45, 67, .13);
  --bt-paper: #f5f8fb;
  --bt-purple: #6400aa;
  --bt-purple-dark: #31005a;
  --bt-pink: #e6007e;
  --bt-cyan: #00a0d6;
  --bt-lime: #c9f06f;
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--bt-ink);
  font-family: 'Inter', Arial, sans-serif;
}

.story-nav {
  align-items: center;
  background: rgba(247, 250, 252, .96) !important;
  border-bottom: 1px solid var(--bt-line);
  box-shadow: 0 12px 34px rgba(19, 45, 67, .08);
  display: flex !important;
  justify-content: center;
  min-height: 72px;
  padding: 0 !important;
  width: 100%;
}

.story-nav-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  padding: 0 28px;
  width: 100%;
}

.story-nav .navbar-brand {
  color: var(--bt-ink) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0;
}

.story-nav .logoblack { background: var(--bt-lime); color: #12312a; padding: 1px 3px; }
.story-nav .logogrey { background: #f7f0df; border: 1px solid rgba(38, 82, 71, .22); color: #265247; padding: 1px 3px; }

.story-back-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--bt-line);
  border-radius: 999px;
  color: var(--bt-ink) !important;
  display: inline-flex;
  font-weight: 700;
  gap: 9px;
  line-height: 1;
  padding: 12px 16px;
}

.story-back-link:hover { background: #eef6df; color: var(--bt-ink) !important; text-decoration: none; }

.bt-hero {
  align-items: center;
  background-color: #11031d;
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 760px;
  overflow: hidden;
  position: relative;
}

.bt-hero::before {
  background: linear-gradient(90deg, rgba(20, 2, 34, .98) 0%, rgba(20, 2, 34, .91) 43%, rgba(20, 2, 34, .58) 72%, rgba(20, 2, 34, .82) 100%);
  content: '';
  inset: 0;
  position: absolute;
}

.bt-hero-grid {
  align-items: end;
  display: grid;
  gap: clamp(36px, 6vw, 84px);
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  padding: 138px 0 84px;
  position: relative;
  z-index: 1;
}

.bt-kicker,
.story-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.bt-kicker { color: #ebbfff; }
.story-eyebrow { color: var(--bt-purple); }

.bt-hero h1 {
  color: #fff;
  font-size: clamp(48px, 6.3vw, 88px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
  margin: 0 0 24px;
  max-width: 900px;
}

.bt-hero-copy > p {
  color: rgba(255, 255, 255, .78);
  font-size: 20px;
  line-height: 1.65;
  margin: 0;
  max-width: 800px;
}

.bt-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bt-tags span { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; padding: 10px 14px; }

.bt-hero-meta {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
  padding: 24px;
}

.bt-logo-wrap { align-items: center; background: #fff; border-radius: 14px; display: flex; height: 112px; justify-content: center; margin-bottom: 20px; }
.bt-logo-wrap img { height: 82px; width: 82px; }
.bt-facts { display: grid; gap: 13px; }
.bt-facts div { border-top: 1px solid var(--bt-line); padding-top: 13px; }
.bt-facts span { color: var(--bt-muted); display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 4px; text-transform: uppercase; }
.bt-facts strong { color: var(--bt-ink); display: block; font-size: 15px; font-weight: 800; line-height: 1.35; }

.bt-section { background: #fff; padding: clamp(72px, 7vw, 112px) 0; }
.bt-section.soft { background: var(--bt-paper); }
.bt-section.dark { background: #14031f; color: #fff; }
.bt-section.dark .story-eyebrow { color: #e7b6ff; }

.bt-two-col { align-items: start; display: grid; gap: clamp(36px, 6vw, 80px); grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); }
.bt-heading { color: var(--bt-ink); font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.03; margin: 0; }
.dark .bt-heading { color: #fff; }
.bt-lede { color: var(--bt-muted); font-size: 19px; line-height: 1.72; margin: 0 0 18px; }
.dark .bt-lede { color: rgba(255, 255, 255, .72); }

.bt-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 42px; }
.bt-card { background: #fff; border: 1px solid var(--bt-line); border-radius: 16px; box-shadow: 0 16px 40px rgba(19, 45, 67, .07); padding: 24px; }
.bt-card span { color: var(--bt-purple); display: block; font-size: 11px; font-weight: 800; letter-spacing: .11em; margin-bottom: 18px; text-transform: uppercase; }
.bt-card h3 { color: var(--bt-ink); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.bt-card p { color: var(--bt-muted); font-size: 14px; line-height: 1.58; margin: 0; }

.bt-programmes { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
.bt-programme { background: #fff; border: 1px solid var(--bt-line); border-radius: 18px; box-shadow: 0 18px 48px rgba(19, 45, 67, .08); padding: 30px; position: relative; }
.bt-programme::before { background: var(--bt-purple); border-radius: 18px 18px 0 0; content: ''; height: 5px; inset: 0 0 auto; position: absolute; }
.bt-programme:nth-child(2)::before { background: var(--bt-cyan); }
.bt-programme small { color: var(--bt-purple); display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; margin-bottom: 16px; text-transform: uppercase; }
.bt-programme h3 { color: var(--bt-ink); font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.bt-programme p { color: var(--bt-muted); font-size: 15px; line-height: 1.65; margin: 0; }
.bt-programme ul { color: var(--bt-muted); margin: 18px 0 0; padding-left: 20px; }
.bt-programme li { margin-bottom: 8px; }

.bt-proof { background: #fff; border: 1px solid var(--bt-line); border-radius: 18px; box-shadow: 0 18px 48px rgba(19, 45, 67, .08); margin: 44px 0 0; overflow: hidden; }
.bt-proof img { display: block; height: auto; width: 100%; }
.bt-proof figcaption { color: var(--bt-muted); font-size: 14px; font-weight: 700; line-height: 1.5; padding: 18px 20px 20px; }
.bt-proof-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
.bt-proof-grid .bt-proof { margin: 0; }
.dark .bt-proof { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); box-shadow: none; }
.dark .bt-proof figcaption { color: rgba(255, 255, 255, .72); }

.bt-list { color: var(--bt-muted); font-size: 16px; line-height: 1.65; margin: 20px 0 0; padding-left: 22px; }
.bt-list li { margin-bottom: 10px; }

.team-map { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
.team-column { background: #fff; border: 1px solid var(--bt-line); border-radius: 18px; padding: 28px; }
.team-column h3 { color: var(--bt-ink); font-size: 26px; margin: 0 0 8px; }
.team-column > p { color: var(--bt-muted); margin: 0 0 24px; }
.team-lead { background: var(--bt-purple); border-radius: 12px; color: #fff; font-weight: 800; padding: 16px; text-align: center; }
.team-branches { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.team-branches span { background: var(--bt-paper); border: 1px solid var(--bt-line); border-radius: 10px; color: var(--bt-ink); font-size: 13px; font-weight: 700; padding: 14px 10px; text-align: center; }

.impact-panel { background: linear-gradient(135deg, var(--bt-purple-dark), var(--bt-purple) 64%, #8b1fc6); border-radius: 24px; color: #fff; display: grid; gap: 30px; grid-template-columns: .8fr 1.2fr; overflow: hidden; padding: clamp(32px, 5vw, 64px); }
.impact-panel .bt-heading { color: #fff; }
.impact-copy p { color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.7; }
.impact-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.impact-item { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 22px; }
.impact-item strong { display: block; font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.impact-item span { color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.5; }
.impact-note { color: rgba(255, 255, 255, .62); font-size: 12px; margin: 20px 0 0; }

.case-rail-section { background: #eff4f8; border-top: 1px solid var(--bt-line); padding: 76px 0 88px; }
.case-rail-header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 28px; }
.case-rail-heading h2 { color: var(--bt-ink); font-size: clamp(36px, 4vw, 54px); letter-spacing: -.04em; margin: 0; }
.case-rail-header p { color: var(--bt-muted); max-width: 520px; }
.case-rail { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-rail-card { background: #fff; border: 1px solid var(--bt-line); border-radius: 14px; color: var(--bt-ink); overflow: hidden; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease; }
.case-rail-card:hover { box-shadow: 0 18px 40px rgba(19, 45, 67, .12); color: var(--bt-ink); transform: translateY(-4px); }
.case-rail-card figure { margin: 0; }
.case-rail-card img { display: block; height: auto; width: 100%; }
.case-rail-copy { padding: 18px; }
.case-rail-copy strong { display: block; font-size: 19px; margin-bottom: 6px; }
.case-rail-copy span { color: var(--bt-muted); display: block; font-size: 13px; line-height: 1.5; }

.story-footer { background: #0d2336; color: rgba(255, 255, 255, .7); padding: 32px 0; }
.story-footer .footer-bottom { border: 0 !important; padding: 0 !important; }

@media (max-width: 991px) {
  .bt-hero-grid, .bt-two-col, .impact-panel { grid-template-columns: 1fr; }
  .bt-hero { min-height: auto; }
  .bt-hero-grid { padding: 120px 0 72px; }
  .bt-hero-meta { max-width: 520px; }
  .bt-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .story-nav-inner { padding: 0 18px; }
  .story-back-link { padding: 10px 12px; }
  .bt-hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .bt-hero-copy > p { font-size: 18px; }
  .bt-programmes, .bt-proof-grid, .team-map { grid-template-columns: 1fr; }
  .case-rail-header { display: block; }
}

@media (max-width: 520px) {
  .story-nav .navbar-brand { font-size: 16px; }
  .story-back-link { font-size: 12px; }
  .bt-card-grid, .impact-grid, .case-rail { grid-template-columns: 1fr; }
  .bt-card, .bt-programme, .team-column { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-rail-card { transition: none; }
  .case-rail-card:hover { transform: none; }
}
