:root {
  /* Brand colours sampled from the approved logo. Darkened teal is for text. */
  --bha-navy: #06172f;
  --bha-blue: #0079d6;
  --bha-turquoise: #01cecb;
  --bha-cyan: #00d9f2;
  --bha-white: #fdfefe;
  --bha-teal-text: #006674;
  --bha-muted: #42556b;
  --bha-rule: #d3e2e9;
  --bha-wash: #eef7f9;
  --bha-font: Manrope, system-ui, sans-serif;
  --bha-serif: Georgia, 'Times New Roman', serif;
  /* Type scale: every text size on the company and BEAR pages comes from these. */
  --fs-display: clamp(2.5rem, 4.4vw, 4rem);
  --fs-h2: clamp(1.9rem, 3vw, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;
  /* Beta Lens "illustrative" banner colours. */
  --bha-warn-bg: #fff4dc;
  --bha-warn-ink: #6b4a00;
}

/* Company homepage base */
.bha-home { margin: 0; background: var(--bha-white); color: var(--bha-navy); font-family: var(--bha-font); line-height: 1.55; }
.bha-home *, .bha-home *::before, .bha-home *::after { box-sizing: border-box; }
.bha-home :is(h1, h2, h3, p) { margin: 0; }
html:has(.bha-home) { scroll-behavior: smooth; }

.bha-header, .bha-corporate, .bha-footer { font-family: var(--bha-font); color: var(--bha-navy); }
.bha-header, .bha-footer, .bha-corporate { background: var(--bha-white); }
.bha-frame { width: min(100% - 4rem, 88rem); margin-inline: auto; }

/* Masthead: approved symbol with the name and motto set as live text */
.bha-header { position: relative; z-index: 30; }
.bha-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: .75rem; border-bottom: 1px solid var(--bha-navy); }
.bha-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1.2; color: var(--bha-navy); }
.bha-brand img { flex: none; display: block; }
.bha-header .bha-masthead-logo { width: auto; height: 184px; }
.bha-brand strong { display: block; font-size: var(--fs-body); font-weight: 800; letter-spacing: .01em; }
.bha-brand small { display: block; margin-top: .2rem; color: var(--bha-teal-text); font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bha-nav { display: flex; align-items: center; gap: .25rem 2rem; }
.bha-nav a, .bha-footer nav a { font-size: var(--fs-body); font-weight: 600; text-decoration: none; color: var(--bha-navy); }
.bha-nav a { padding-block: .4rem; }
.bha-nav a[aria-current] { color: var(--bha-teal-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.bha-menu-toggle { display: none; }
.bha-header a:hover, .bha-footer a:hover { color: var(--bha-teal-text); }
.bha-header a:focus-visible, .bha-footer a:focus-visible, .bha-corporate a:focus-visible, .bha-menu-toggle:focus-visible, .bha-corporate summary:focus-visible {
  outline: 3px solid var(--bha-teal-text);
  outline-offset: 4px;
}
.bha-skip { position: absolute; left: 1rem; top: 1rem; padding: .75rem; background: white; color: var(--bha-navy); z-index: 100; }
.bha-skip:not(:focus) { clip-path: inset(50%); }

/* Shared type */
.bha-corporate a { color: inherit; text-underline-offset: .22em; }
.bha-corporate .bha-kicker { color: var(--bha-teal-text); font-weight: 800; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }
.bha-corporate h1, .bha-corporate h2 { margin: 0; font-family: var(--bha-serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.bha-corporate h1 { font-size: var(--fs-display); text-wrap: initial; }
.bha-corporate h1 em { color: var(--bha-teal-text); font-style: italic; }
.bha-corporate h2 { font-size: var(--fs-h2); }
.bha-corporate h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.bha-corporate p:not(.bha-kicker), .bha-corporate dd { color: var(--bha-muted); line-height: 1.65; margin: 1rem 0 0; }
.bha-corporate .bha-editorial p:first-child:not(.bha-kicker) { margin-top: 0; }
.bha-corporate .bha-button {
  display: inline-block;
  background: var(--bha-navy);
  color: white;
  border: 1px solid var(--bha-navy);
  padding: .8rem 1.15rem;
  border-radius: .3rem;
  font-weight: 750;
  text-decoration: none;
}
.bha-corporate .bha-button::after { content: " →"; }
.bha-corporate .bha-button:hover { background: var(--bha-teal-text); border-color: var(--bha-teal-text); }
.bha-text-link { color: var(--bha-teal-text) !important; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.bha-text-link::after { content: " →"; }

/* Hero: the original's statement-and-offer layout */
.bha-intro { padding: clamp(3rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem); }
.bha-intro-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.bha-corporate .bha-lead { font-size: var(--fs-lead); max-width: 38rem; margin-top: 1.6rem; color: #2f4459; }
.bha-corporate .bha-lead-sub { max-width: 38rem; }
.bha-lead-sub strong { color: var(--bha-navy); }
.bha-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 2rem; }
.bha-ways { border-top: 3px solid var(--bha-teal-text); padding-top: 1.5rem; }
.bha-ways ul { list-style: none; margin: 0; padding: 0; }
.bha-ways li + li { border-top: 1px solid var(--bha-rule); }
.bha-ways a { display: block; padding: 1rem 1.75rem 1rem 0; position: relative; text-decoration: none; }
.bha-ways a::after { content: "→"; position: absolute; right: .2rem; top: 1rem; color: var(--bha-teal-text); transition: transform .2s ease; }
.bha-ways a:hover::after { transform: translateX(4px); }
.bha-ways strong { display: block; font-family: var(--bha-serif); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -.02em; color: var(--bha-teal-text); }
.bha-ways span { display: block; margin-top: .3rem; color: var(--bha-muted); font-size: var(--fs-body); line-height: 1.55; }
.bha-ways a:hover strong { text-decoration: underline; text-underline-offset: .2em; }

/* Sections */
.bha-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.bha-home-pane > .bha-section { border-top: 1px solid var(--bha-rule); }
.bha-editorial { display: grid; grid-template-columns: .9fr 1.15fr; gap: clamp(1.75rem, 5vw, 5rem); }
.bha-philosophy { background: var(--bha-wash); }
.bha-proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2rem, 4vw, 3.25rem); }
.bha-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.bha-steps li { display: grid; grid-template-columns: 2.4rem 1fr; padding: .95rem 0; border-top: 1px solid var(--bha-rule); }
.bha-steps li:last-child { border-bottom: 1px solid var(--bha-rule); }
.bha-steps span { grid-row: span 2; color: var(--bha-teal-text); font: 500 var(--fs-label) 'DM Mono', monospace; padding-top: .2rem; }
.bha-steps strong { font-size: var(--fs-body); }
.bha-steps small { color: var(--bha-muted); font-size: var(--fs-small); }
.bha-screen { margin: 0; background: white; border: 1px solid var(--bha-rule); border-radius: .5rem; overflow: hidden; box-shadow: 0 18px 50px rgba(6, 23, 47, .08); }
.bha-screen img { display: block; width: 100%; height: auto; }
.bha-screen figcaption { color: var(--bha-muted); border-top: 1px solid var(--bha-rule); font-size: var(--fs-small); padding: .8rem 1rem; line-height: 1.55; }
.bha-screen figcaption a { color: var(--bha-teal-text); font-weight: 700; white-space: nowrap; }

/* Labels that separate drawn examples from platform captures */
.bha-tag { display: inline-block; padding: .15rem .5rem; border-radius: .25rem; font: 500 var(--fs-label)/1.5 'DM Mono', monospace; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: .08em; }
.bha-tag-illustrative { background: var(--bha-warn-bg); color: var(--bha-warn-ink); border: 1px dashed #c99a2e; }
.bha-tag-real { background: var(--bha-navy); color: white; }

.bha-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bha-strip { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--bha-navy); }
.bha-strip li + li { border-left: 1px solid var(--bha-rule); }
.bha-strip a { display: block; height: 100%; padding: 1rem 1rem 1.1rem; text-decoration: none; font-weight: 650; font-size: var(--fs-body); line-height: 1.35; }
.bha-strip a:hover { background: var(--bha-wash); }
.bha-strip span { display: block; margin-bottom: .35rem; color: var(--bha-teal-text); font-family: var(--bha-serif); font-size: var(--fs-h3); font-weight: 400; }

/* Systems mapping: gigamap in the Beta Lens style */
.bha-gigamap { margin: clamp(2rem, 4vw, 3rem) 0 0; padding: clamp(1rem, 2.5vw, 1.5rem); background: white; border: 1px solid var(--bha-rule); border-left: 4px solid var(--bha-teal-text); border-radius: .6rem; }
.bha-gm-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
.bha-gm-lenses { display: inline-flex; padding: 3px; border: 1px solid var(--bha-rule); border-radius: .45rem; background: var(--bha-wash); }
.bha-gm-lenses button { min-height: 40px; padding: 0 1rem; border: 0; border-radius: .35rem; background: transparent; color: var(--bha-navy); font: 700 var(--fs-small) var(--bha-font); cursor: pointer; }
.bha-gm-lenses button[aria-pressed="true"] { background: var(--bha-navy); color: white; }
.bha-corporate .bha-gm-lensnote { margin: .75rem 0 0; font-size: var(--fs-small); }
.bha-corporate .bha-gm-hint { display: none; margin: .5rem 0 0; font-size: var(--fs-small); }
.bha-gm-canvas { margin-top: .5rem; overflow-x: auto; background-color: #f8fbfc; background-image: radial-gradient(#d3e2e9 1px, transparent 1px); background-size: 18px 18px; border-radius: .4rem; }
.bha-gm-canvas svg { display: block; width: 100%; max-width: 900px; height: auto; margin-inline: auto; }
.bha-gm-ring { fill: none; stroke: #c9d7df; stroke-dasharray: 2 5; }
.bha-gm-zone { fill: #0d6b66; fill-opacity: .06; stroke: #0d6b66; stroke-opacity: .35; stroke-dasharray: 4 4; }
.bha-gm-zlabel { fill: #0d6b66; font: 500 11px 'DM Mono', monospace; letter-spacing: .05em; text-transform: uppercase; }
.bha-gm-anchor { stroke: #d6dce4; stroke-width: 1; }
.bha-gm-coupling { fill: none; stroke-width: 1.8; }
.bha-gm-map { stroke: #9aa8b5; stroke-opacity: .7; }
.bha-gm-pos { stroke: #2a60c2; stroke-opacity: .85; }
.bha-gm-neg { stroke: #c03f2b; stroke-opacity: .85; }
.bha-gm-relation { fill: none; stroke-width: 1.6; }
.bha-gm-actor { fill: color-mix(in srgb, var(--c) 40%, white); stroke-width: 1.4; }
.bha-gm-pillar { fill: color-mix(in srgb, var(--c) 18%, white); stroke-width: 2.4; }
.bha-gm-alabel { fill: #45525f; font: 500 11.5px var(--bha-font); }
.bha-gm-plabel { fill: var(--bha-navy); font: 700 12px var(--bha-font); }
.bha-gm-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: .9rem 0 0; padding: 0; font-size: var(--fs-small); color: var(--bha-muted); }
.bha-gm-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.bha-gm-legend i { width: 1.4rem; height: 0; border-top: 2.5px solid var(--c); }
.bha-gm-legend i.bha-gm-dash { border-top: 2px dashed var(--bha-muted); }
.bha-gigamap figcaption { margin-top: .9rem; color: var(--bha-muted); font-size: var(--fs-small); line-height: 1.55; }
.bha-gigamap figcaption a { color: var(--bha-teal-text); font-weight: 700; }
.bha-steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: 2rem; }
.bha-steps-row li:last-child { border-bottom: 0; }

/* High-fidelity sandboxes: Train. Learn. Execute. */
.bha-sandboxes { background: var(--bha-navy); color: white; }
.bha-sandboxes h2 { color: white; }
.bha-corporate .bha-sandboxes .bha-kicker { color: var(--bha-cyan); }
.bha-corporate .bha-sandboxes p:not(.bha-kicker) { color: #c4d6e4; }
.bha-corporate .bha-sandboxes .bha-sandbox-lead { margin-top: 0; font-family: var(--bha-serif); font-size: var(--fs-lead); line-height: 1.4; color: white; }
.bha-sandbox-lead strong { color: var(--bha-cyan); font-weight: 400; font-style: italic; }
.bha-cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; }
.bha-cycle li { padding-top: 1rem; border-top: 2px solid var(--bha-turquoise); }
.bha-cycle strong { display: block; font-family: var(--bha-serif); font-size: var(--fs-h3); font-weight: 400; letter-spacing: -.02em; }
.bha-cycle span { display: block; margin-top: .35rem; color: #c4d6e4; }
.bha-sandbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.bha-sandbox-grid figure { margin: 0; background: #0b2440; border: 1px solid #24486a; border-radius: .5rem; overflow: hidden; }
.bha-sandbox-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.bha-sandbox-grid figcaption { padding: .9rem 1rem 1.1rem; color: #c4d6e4; font-size: var(--fs-small); line-height: 1.5; }
.bha-sandbox-grid figcaption strong { display: block; margin: .6rem 0 .2rem; color: white; font-size: var(--fs-body); }
.bha-sandboxes .bha-tag-real { background: white; color: var(--bha-navy); }
.bha-sandbox-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.bha-sandboxes .bha-text-link { color: var(--bha-cyan) !important; }

/* Panes: one subject at a time, each filling the screen and pointing onward */
.bha-panes { overflow: clip; min-height: calc(100svh - 10rem); }
.bha-corporate [hidden] { display: none !important; }
.bha-next { display: inline-block; margin-top: clamp(2.25rem, 4vw, 3.5rem); padding-top: 1rem; border-top: 2px solid var(--bha-navy); color: var(--bha-navy) !important; font-weight: 750; text-decoration: none; }
.bha-next::after { content: " →"; color: var(--bha-teal-text); }
.bha-next:hover { color: var(--bha-teal-text) !important; }

.bha-shortcuts { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.bha-corporate .bha-shortcuts a { display: flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--bha-teal-text); text-decoration: none; font-weight: 650; }
.bha-corporate .bha-shortcuts a:hover { text-decoration: underline; }
.bha-shortcuts a span { display: grid; flex: 0 0 1.65rem; min-height: 1.65rem; place-items: center; background: var(--bha-wash); border-radius: .3rem; }

/* Approach: worked cascade in the Beta Lens card style */
.bha-workbench { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 2.25rem; align-items: start; }
.bha-cascade { margin: 0; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--bha-rule); border-left: 4px solid var(--bha-teal-text); border-radius: .6rem; background-color: #f6fafb; background-image: radial-gradient(#c9dde5 1px, transparent 1px); background-size: 16px 16px; }
.bha-cascade-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 1px solid var(--bha-rule); }
.bha-tree { display: block; width: 100%; height: auto; margin-block: .75rem .25rem; }
.bha-tree-narrow { display: none; }
.bha-tree-edges path { fill: none; stroke: #5b7487; stroke-width: 1.6; }
.bha-tree-shock rect { fill: var(--bha-navy); }
.bha-tree-shock text { fill: white; font: 700 15px var(--bha-font); text-anchor: middle; }
.bha-tree-node rect { fill: white; stroke: var(--pc); stroke-width: 1.5; }
.bha-tree-node path { fill: var(--pc); }
.bha-tree-node text { fill: var(--bha-navy); font: 700 15px var(--bha-font); text-anchor: middle; }
.bha-tree-narrow .bha-tree-node text { font-size: 12.5px; }
.bha-tree-converge rect { stroke-width: 3; }
.bha-tree-tier { fill: var(--bha-teal-text); font: 500 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.bha-tree-badge circle { fill: white; stroke: var(--bha-warn-ink); stroke-width: 1.5; stroke-dasharray: 3 2; }
.bha-tree-badge text { fill: var(--bha-warn-ink); font: 800 12px var(--bha-font); text-anchor: middle; }
.bha-tree-note { fill: var(--bha-muted); font: italic 13px var(--bha-serif); text-anchor: middle; }
.bha-pillar-key { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .25rem 0 0; padding: 0; }
.bha-pillar-key li { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border: 1.5px solid var(--pc); border-radius: .4rem; background: white; font-size: var(--fs-label); font-weight: 600; }
.bha-pillar-key li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--pc); }
.bha-responses { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.bha-responses > div { display: grid; grid-template-columns: 1.8rem 1fr; gap: .5rem; padding: .8rem; background: white; border: 1px dashed #c99a2e; border-radius: .45rem; }
.bha-responses b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--bha-warn-bg); color: var(--bha-warn-ink); font-size: var(--fs-label); }
.bha-corporate .bha-responses p { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
.bha-responses strong { display: block; color: var(--bha-navy); }
.bha-cascade figcaption { margin-top: 1rem; color: var(--bha-navy); font-size: var(--fs-body); line-height: 1.6; }
.bha-method-layers { padding: 1.25rem; border: 1px solid var(--bha-rule); border-radius: .6rem; background: white; }
.bha-method-layers details { border-left: 4px solid var(--bha-rule); padding-left: .8rem; }
.bha-method-layers details[open] { border-left-color: var(--bha-teal-text); background: #f4f9fb; }
.bha-method-layers details + details { margin-top: .6rem; }
.bha-method-layers summary { cursor: pointer; font-weight: 750; padding: .75rem 0; }
.bha-corporate .bha-method-layers details p { margin: 0 0 1rem; }
.bha-corporate .bha-tag-guide { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--bha-rule); font-size: var(--fs-small); line-height: 2; }
.bha-corporate .bha-principle-line { max-width: 52rem; margin-top: 2rem; font-family: var(--bha-serif); font-size: var(--fs-lead); color: var(--bha-navy); }

/* Services and team */
.bha-offer-grid, .bha-contact-list, .bear-approach-notes, .bha-people, .bha-contact-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 2rem 0 0;
}
.bha-offer-grid > div, .bha-contact-list > li, .bear-approach-notes > div, .bha-people > li, .bha-contact-routes > article { border-top: 2px solid var(--bha-rule); padding-top: .85rem; }
.bha-offer-grid dt, .bha-contact-list strong, .bear-approach-notes dt { font-weight: 750; }
.bha-offer-grid dt span { display: block; color: var(--bha-teal-text); font-family: var(--bha-serif); font-size: var(--fs-h3); font-weight: 400; }
.bha-corporate .bha-offer-grid dd, .bear-approach-notes dd { margin: .35rem 0 0; }
.bha-offer-grid dd strong, .bha-contact-list a { display: block; overflow-wrap: anywhere; }
.bha-offer-grid dd strong { color: var(--bha-navy); margin-top: .45rem; }
.bha-contact-list, .bha-people { padding: 0; list-style: none; }
.bha-contact-list span, .bha-people span { display: block; color: var(--bha-muted); font-size: var(--fs-small); margin-top: .2rem; }
.bha-contact-list a { margin-top: .45rem; color: var(--bha-teal-text); font-weight: 650; }
.bha-people a { display: block; text-decoration: none; }
.bha-people a strong { color: var(--bha-teal-text); }
.bha-people a:hover strong { text-decoration: underline; }
.bha-people a strong::after { content: " ↗"; font-size: .8em; }
.bha-used { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--bha-rule); }
.bha-used .bha-kicker { margin-bottom: .25rem !important; }
.bha-corporate .bha-associates-heading { margin-top: 2.75rem; }
.bha-corporate [tabindex="-1"]:focus { outline: none; }
.bha-contact-routes > article a { display: block; margin-top: .6rem; color: var(--bha-teal-text); font-weight: 700; }
.bha-contact-routes > article a small { color: var(--bha-muted); font-weight: 400; }
.bha-corporate .bha-contact-routes p { margin-top: .5rem; }
.bha-corporate .bha-founder { padding-top: 1rem; border-top: 1px solid var(--bha-rule); }
.bha-founder strong { color: var(--bha-navy); }
.bha-founder a { color: var(--bha-teal-text); font-weight: 650; }
.bear-approach-notes { grid-column: 1 / -1; }
.bear-approach-notes dd { color: var(--subtle); }
.red-thread-contact-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-block: 1rem; }

.bha-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--bha-navy); font-size: var(--fs-small); }
.bha-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.bha-footer-inner span, .bha-footer small { color: var(--bha-muted); }

/* BEAR page: company masthead above the BEAR section bar */
.bha-page .bha-header-inner { width: min(100% - 4rem, 88rem); margin-inline: auto; }
.bha-page .bha-subbar { display: flex; align-items: center; gap: .5rem 1.5rem; }
.bha-subbar-label { flex: none; color: var(--bha-navy); text-decoration: none; font-weight: 800; line-height: 1.15; }
.bha-subbar-label small { display: block; color: var(--bha-teal-text); font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Shared website chrome. Product screenshots, diagrams and partner artwork keep their own colours. */
.bha-page {
  --sheet: var(--bha-white);
  --text: var(--bha-navy);
  --accent: var(--bha-teal-text);
  --subtle: var(--bha-muted);
  --rule: var(--bha-rule);
  --wash: var(--bha-wash);
}
.bha-project {
  --navy: var(--bha-navy);
  --blue: var(--bha-teal-text);
  --cyan: var(--bha-cyan);
  --purple: #00529a;
  --paper: var(--bha-white);
  --muted: var(--bha-muted);
  --line: var(--bha-rule);
}
.bha-red-thread {
  --ink: var(--bha-navy);
  --cream: var(--bha-white);
  --paper: var(--bha-white);
  --red: var(--bha-teal-text);
  --red-dark: var(--bha-teal-text);
  --blue: #00529a;
  --line: var(--bha-rule);
  --muted: var(--bha-muted);
  --sheet: var(--bha-white);
  --text: var(--bha-navy);
  --accent: var(--bha-teal-text);
  --subtle: var(--bha-muted);
  --rule: var(--bha-rule);
  --wash: var(--bha-wash);
}
.bha-red-thread .nav { background: var(--bha-white); }
.bha-red-thread .hero {
  background: linear-gradient(110deg, #fdfefe 22%, #fdfefed9 56%, #fdfefe70), url("/assets/red-thread-mark.webp") right -6vw center / min(610px, 65vw) auto no-repeat;
}
.bha-red-thread .blue, .bha-red-thread .programme { background-color: var(--bha-wash); }
.bha-red-thread .offer, .bha-red-thread .profile, .bha-red-thread .programme-card { background-color: var(--bha-white); }
.bha-red-thread .final { background: var(--bha-navy); color: var(--bha-white); }
.bha-red-thread .final .eyebrow { color: var(--bha-cyan); }
.bha-red-thread .final .eyebrow:before { background: var(--bha-cyan); }
.bha-red-thread .final p { color: #d4e7f2; }
.bha-red-thread .button:after { color: #8acfff; }
.bha-red-thread .orbit { --red: #d75637; --blue: #2464a8; }
.bha-dark {
  --ink: var(--bha-navy);
  --navy: var(--bha-navy);
  --panel: #0a2543;
  --panel-2: #0d304e;
  --panel-3: #123a59;
  --line: #2b5067;
  --text: var(--bha-white);
  --muted: #b6cfdf;
  --blue: #8acfff;
  --cyan: var(--bha-cyan);
  --teal: var(--bha-turquoise);
  --gold: #8acfff;
  --gold-soft: rgba(138, 207, 255, .16);
}

@media (max-width: 64rem) {
  .bha-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bha-strip li:nth-child(4) { border-left: 0; }
  .bha-strip li:nth-child(n + 4) { border-top: 1px solid var(--bha-rule); }
  .bha-workbench { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .bha-steps-row, .bha-cycle, .bha-sandbox-grid { grid-template-columns: 1fr; }
  .bha-steps-row li:last-child { border-bottom: 1px solid var(--bha-rule); }
  .bha-frame { width: min(100% - 2.5rem, 88rem); }
  .bha-intro-grid, .bha-editorial, .bha-proof { grid-template-columns: 1fr; }
  .bha-offer-grid, .bha-contact-list, .bear-approach-notes, .bha-people, .bha-contact-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Phone and small-tablet masthead: one row, menu behind a button */
  .bha-header.bha-has-menu .bha-menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
    border: 1px solid var(--bha-navy); border-radius: .3rem; background: transparent; color: var(--bha-navy);
    font: 700 .95rem var(--bha-font); cursor: pointer;
  }
  .bha-header.bha-has-menu .bha-menu-toggle::after { content: "☰"; font-size: 1rem; }
  .bha-header.bha-menu-open .bha-menu-toggle::after { content: "✕"; }
  .bha-header-inner { flex-wrap: wrap; padding-block: .7rem; }
  .bha-header .bha-masthead-logo { height: 132px; }
  .bha-brand strong { font-size: 1rem; }
  .bha-header.bha-has-menu .bha-nav { display: none; }
  .bha-header.bha-menu-open .bha-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-top: .5rem; }
  .bha-header.bha-menu-open .bha-nav a { padding: .85rem 0; border-top: 1px solid var(--bha-rule); font-size: 1.05rem; }
  .bha-header:not(.bha-has-menu) .bha-nav { flex-wrap: wrap; gap: .25rem 1.25rem; }
  .bha-page .bha-header-inner { width: min(100% - 2.5rem, 88rem); }
}
@media (max-width: 40rem) {
  .bha-gm-canvas svg { width: 720px; max-width: none; }
  .bha-corporate .bha-gm-hint { display: block; }
  .bha-tree-wide { display: none; }
  .bha-tree-narrow { display: block; }
  .bha-responses { grid-template-columns: 1fr; }
  .bha-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bha-strip li:nth-child(n) { border-left: 0; border-top: 1px solid var(--bha-rule); }
  .bha-strip li:nth-child(even) { border-left: 1px solid var(--bha-rule); }
  .bha-strip li:nth-child(-n + 2) { border-top: 0; }
  .bha-intro { padding-top: 2rem; }
  .bha-corporate .bha-lead-sub { display: none; }
  .bha-corporate .bha-lead { margin-top: 1.1rem; }
  .bha-actions { margin-top: 1.4rem; }
  .bha-corporate h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .bha-actions .bha-button { width: 100%; text-align: center; }
  .bha-page .bha-subbar { flex-wrap: wrap; }
}
@media (max-width: 29rem) {
  .bha-offer-grid, .bha-contact-list, .bear-approach-notes, .bha-people, .bha-contact-routes { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .bha-page .site-nav { flex-wrap: wrap; justify-content: flex-start; overflow: visible; }
  .bha-page .site-menu { position: static; }
  .bha-page .site-menu .site-dropdown { left: 0; right: 0; width: auto; }
}

/* BEAR landing: solid teal italic, as on the original site */
.bha-page .landing h1 em { background: none; color: var(--bha-teal-text); -webkit-text-fill-color: currentColor; }

/* BEAR page on the same type scale and width as the company pages */
.bha-page { font-family: var(--bha-font); font-size: var(--fs-body); }
.bha-page .rotator-controls .rotator-toggle, .bha-page .detail-view svg text { font-family: var(--bha-font); }
.bha-page .site-shell { max-width: calc(88rem + 4rem); padding-inline: 2rem; }
.bha-page .landing h1 { font-size: var(--fs-display); }
.bha-page .detail-view h2, .bha-page .explore-hero h2, .bha-page .section-head h2, .bha-page .peek-copy h3 { font-size: var(--fs-h2); }
.bha-page .landing-note h2, .bha-page .detail-view h3 { font-size: var(--fs-h3); }
.bha-page .landing-intro { font-size: var(--fs-lead); }
@media (max-width: 52rem) { .bha-page .site-shell { padding-inline: 1.25rem; } }
