/*
  BRUNNER BAU — concept demo stylesheet.
  ---------------------------------------------------------------------------
  Design language: INDUSTRIAL STRUCTURED.
  Concrete-dark canvas (#1b1c1e), signal yellow (#f2c200) and a light concrete
  counter surface. Heavy modular grid, zero corner radius, oversized project
  numbers as a graphic device, hazard-stripe dividers and hard-edged wipes
  instead of fades.

  Fully self-contained: every selector is prefixed `bb-` (or scoped under the
  `.bb` body class), so nothing leaks in or out of the Appvolution site.
*/

.bb {
  /* concrete */
  --base: #1b1c1e;
  --base-2: #232427;
  --base-3: #2b2c30;
  --base-4: #141517;
  /* light concrete counter surface */
  --light: #e3e2dd;
  --light-2: #d2d1ca;
  --light-3: #c2c1b9;
  /* signal */
  --signal: #f2c200;
  --signal-2: #ffd424;
  --signal-dim: rgba(242, 194, 0, .16);
  /* ink */
  --ink: #f4f3ef;
  --ink-2: #a9aaa8;
  /* --ink-3 carries the small mono caps (form labels, KPI terms, step rail,
     footnotes). It has to clear 4.5:1 on the lightest surface it ever sits on,
     which is --base-3 in the hovered choice rows, not just on --base. */
  --ink-3: #94959a;
  --dark: #1b1c1e;
  --dark-2: #4c4d50;
  /* lines */
  --line: rgba(255, 255, 255, .13);
  --line-2: rgba(255, 255, 255, .26);
  --line-dark: rgba(27, 28, 30, .18);
  --line-dark-2: rgba(27, 28, 30, .38);

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: 1320px;
  --gut: clamp(18px, 4vw, 60px);

  margin: var(--appv-bar-h) 0 0;
  color: var(--ink);
  background: var(--base);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.bb *, .bb *::before, .bb *::after { box-sizing: border-box; }
:where(.bb) img { display: block; max-width: 100%; height: auto; }
/* :where() keeps the reset at zero specificity so button and link classes can
   still set their own colour — otherwise every label would disappear. */
:where(.bb) a { color: inherit; text-decoration: none; }
:where(.bb) p { margin: 0 0 1em; }
.bb ul, .bb ol { margin: 0; padding: 0; list-style: none; }
.bb :focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.bb .skip {
  position: fixed; left: 14px; top: -90px; z-index: 200; padding: 12px 20px;
  color: #1b1c1e; background: var(--signal);
  font-family: var(--mono); font-size: .78rem; font-weight: 600; text-transform: uppercase;
  transition: top .16s linear;
}
.bb .skip:focus { top: calc(var(--appv-bar-h) + 12px); }

.bb-shell { width: min(100% - var(--gut) * 2, var(--shell)); margin-inline: auto; }

/* ------------------------------------------------------------- typography */

.bb h1, .bb h2, .bb h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
}
.bb h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
/* Long German compounds ("Zusammenfassung") must never push the page sideways. */
.bb h1, .bb h2, .bb h3 { overflow-wrap: break-word; }
.bb h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
.bb h3 { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.15; letter-spacing: -.02em; }

.bb-mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.bb-tag {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px 5px;
  color: var(--dark); background: var(--signal);
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.bb-tag--light { background: var(--signal); }
.bb-footnote { margin: 18px 0 0; color: var(--ink-3); font-size: .68rem; letter-spacing: .08em; line-height: 1.7; text-transform: none; }
.bb-section--light .bb-footnote { color: var(--dark-2); }

/* ---------------------------------------------------------------- buttons */

.bb-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px; border: 2px solid var(--signal); border-radius: 0;
  color: var(--dark); background: var(--signal); cursor: pointer; overflow: hidden;
  font-family: var(--display); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.bb-btn > * { position: relative; z-index: 1; }
.bb-btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--dark);
  clip-path: inset(0 100% 0 0);
}
.bb-btn:hover { color: var(--signal); }
.bb-btn:hover::before { clip-path: inset(0 0 0 0); }
.bb-btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-2); }
.bb-btn--ghost::before { background: var(--signal); }
.bb-btn--ghost:hover { color: var(--dark); border-color: var(--signal); }
.bb-btn--lg { min-height: 58px; padding: 16px 32px; font-size: .88rem; }
.bb-btn--sm { min-height: 42px; padding: 10px 18px; font-size: .72rem; letter-spacing: .09em; }
.bb-btn--block { display: flex; width: 100%; }
.bb-section--light .bb-btn--ghost { color: var(--dark); border-color: var(--line-dark-2); }
.bb-section--light .bb-btn--ghost::before { background: var(--dark); }
.bb-section--light .bb-btn--ghost:hover { color: var(--signal); border-color: var(--dark); }

@media (prefers-reduced-motion: no-preference) {
  .bb-btn::before { transition: clip-path .2s cubic-bezier(.2, .8, .3, 1); }
}

.bb-link {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px;
  border-bottom: 2px solid var(--signal); color: var(--signal);
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.bb-link i { font-style: normal; }
.bb-link:hover { color: var(--signal-2); border-color: var(--signal-2); }
.bb-link--dark { color: var(--dark); border-color: var(--dark); }
.bb-link--dark:hover { color: var(--dark); border-color: var(--signal); }
.bb-link--back { margin-bottom: 26px; color: var(--ink-2); border-color: var(--line-2); }
.bb-link--back:hover { color: var(--signal); border-color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .bb-link i { transition: transform .18s linear; }
  .bb-link:hover i { transform: translateX(5px); }
  .bb-link--back:hover i { transform: translateX(-5px); }
}

/* --------------------------------------------------------- hazard stripes */

.bb-stripe {
  height: 16px;
  background: repeating-linear-gradient(115deg, var(--signal) 0 16px, var(--base) 16px 32px);
}

/* ----------------------------------------------------------------- header */

.bb-head {
  position: sticky; top: var(--appv-bar-h); z-index: 90;
  background: rgba(20, 21, 23, .94); border-bottom: 2px solid var(--signal);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bb-head__inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }

.bb-logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--ink); }
.bb-logo__mark { display: grid; place-items: center; width: 38px; height: 34px; color: var(--signal); }
.bb-logo__mark svg { width: 30px; height: 26px; }
.bb-logo__text { display: flex; flex-direction: column; line-height: 1; }
.bb-logo__text b { font-size: 1.24rem; font-weight: 700; letter-spacing: -.03em; }
.bb-logo__text i {
  font-family: var(--mono); font-size: .58rem; font-style: normal; font-weight: 500;
  letter-spacing: .3em; color: var(--ink-3);
}

.bb-nav { display: flex; gap: 2px; margin-left: auto; }
.bb-nav a {
  padding: 10px 14px; color: var(--ink-2);
  font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
.bb-nav a:hover { color: var(--ink); background: var(--base-3); }
.bb-nav a[aria-current] { color: var(--dark); background: var(--signal); }

.bb-head__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bb-tel {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .06em; color: var(--ink-2); white-space: nowrap;
}
.bb-tel:hover { color: var(--signal); }
.bb-tel__short { display: none; }

.bb-burger {
  display: none; width: 46px; height: 46px; padding: 0; flex: 0 0 auto;
  border: 2px solid var(--line-2); border-radius: 0; background: none; cursor: pointer;
}
.bb-burger span, .bb-burger::before, .bb-burger::after {
  content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink);
}
.bb-burger[aria-expanded="true"] { border-color: var(--signal); background: var(--signal); }
.bb-burger[aria-expanded="true"] span,
.bb-burger[aria-expanded="true"]::before,
.bb-burger[aria-expanded="true"]::after { background: var(--dark); }

.bb-mobile { display: none; padding: 14px var(--gut) 24px; border-top: 1px solid var(--line); background: var(--base-4); }
.bb-mobile.is-open { display: block; }
.bb-mobile a {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em;
}
.bb-mobile a[aria-current] { color: var(--signal); }
.bb-mobile .bb-btn { margin-top: 18px; border-bottom: 2px solid var(--signal); font-size: .78rem; }

/* ------------------------------------------------------------------- hero */

.bb-hero { position: relative; overflow: hidden; background: var(--base-4); }
.bb-hero__media { position: absolute; inset: 0; }
.bb-hero__media picture { display: block; height: 100%; }
.bb-hero__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) contrast(1.08) brightness(.5); }
.bb-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 21, 23, .96) 0%, rgba(20, 21, 23, .74) 46%, rgba(20, 21, 23, .3) 100%);
}
.bb-hero__inner { position: relative; z-index: 2; padding: clamp(56px, 10vw, 130px) 0 clamp(40px, 6vw, 74px); }
.bb-hero h1 { max-width: 15ch; }
.bb-hero h1 span { color: var(--signal); }
.bb-hero__lead {
  max-width: 54ch; margin: 26px 0 0; color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65;
}
.bb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.bb-hero__strip {
  display: flex; flex-wrap: wrap; gap: 0; margin: 44px 0 0; padding: 0;
  border-top: 2px solid var(--signal);
}
.bb-hero__strip span {
  padding: 12px 18px 12px 0; margin-right: 18px; color: var(--ink-2);
  border-right: 1px solid var(--line);
}
.bb-hero__strip span:last-child { border-right: 0; margin-right: 0; }

/* --------------------------------------------------------------- sections */

.bb-section { padding: clamp(56px, 8vw, 108px) 0; }
.bb-section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.bb-section--light { color: var(--dark); background: var(--light); }
.bb-section--light h1, .bb-section--light h2, .bb-section--light h3 { color: var(--dark); }
.bb-section--dark { background: var(--base-4); }

.bb-secthead { margin-bottom: clamp(30px, 4vw, 52px); }
.bb-secthead--row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px;
}
.bb-secthead h2 { max-width: 18ch; }

/* --------------------------------------------------------------- KPI band */

/* Column counts are fixed divisors of the item count, never `auto-fit`.
   With `auto-fit` a track only collapses when it holds no item at all — as
   soon as the items wrap, the leftover cells of the last row stay open and
   render the container colour (the gutter colour of these grids) as a large
   block. Four facts therefore run 4 / 2 / 1 columns and never leave a hole. */
.bb-kpi {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin: 0; border-top: 2px solid var(--signal);
}
@media (max-width: 1060px) { .bb-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bb-kpi { grid-template-columns: minmax(0, 1fr); } }
.bb-kpi__item {
  padding: 26px 24px 28px; border-left: 3px solid var(--signal);
  background: var(--base-2);
}
.bb-kpi__item + .bb-kpi__item { border-top: 0; }
.bb-section--light .bb-kpi__item { background: rgba(255, 255, 255, .5); }
.bb-kpi__item dt {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.bb-section--light .bb-kpi__item dt { color: var(--dark-2); }
.bb-kpi__item dd {
  margin: 6px 0 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700;
  line-height: .92; letter-spacing: -.05em;
}
.bb-kpi__item p { margin: 10px 0 0; color: var(--ink-3); font-size: .66rem; letter-spacing: .1em; }
.bb-section--light .bb-kpi__item p { color: var(--dark-2); }

/* ---------------------------------------------------------- service tiles */

.bb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line-dark); }
.bb-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 30px 26px 26px;
  background: var(--light); border-top: 4px solid transparent;
}
.bb-tile:hover { border-top-color: var(--signal); background: #edece8; }
.bb-tile__no { font-size: 2.6rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--line-dark-2); }
.bb-tile:hover .bb-tile__no { color: var(--dark); }
.bb-tile__name { font-size: 1.35rem; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.bb-tile__lead { color: var(--dark-2); font-size: .92rem; line-height: 1.6; }
.bb-tile__go {
  margin-top: auto; padding-top: 16px; color: var(--dark);
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .bb-tile, .bb-tile__no { transition: background .16s linear, border-color .16s linear, color .16s linear; }
}

/* --------------------------------------------------------- service detail */

.bb-svclist { display: grid; gap: 2px; background: var(--line); }
.bb-svc { padding: clamp(28px, 4vw, 46px) clamp(20px, 3vw, 40px); background: var(--base); }
.bb-svc__head { display: flex; align-items: baseline; gap: clamp(14px, 3vw, 34px); }
.bb-svc__no {
  flex: 0 0 auto; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600;
  line-height: 1; letter-spacing: -.06em; color: var(--signal);
}
.bb-svc__lead { max-width: 62ch; margin: 18px 0 26px; color: var(--ink-2); font-size: 1.02rem; }
.bb-svc__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 28px; }
.bb-svc__block { padding-top: 18px; border-top: 2px solid var(--signal); }
.bb-svc__label { margin: 0 0 14px; color: var(--signal); }
.bb-svc .bb-link { margin-top: 28px; }

.bb-ticks { display: grid; gap: 9px; }
.bb-ticks li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.bb-ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 3px; background: var(--signal);
}
.bb-ticks--dark li { color: var(--dark-2); }

.bb-flow { display: grid; gap: 12px; counter-reset: flow; }
.bb-flow li { display: flex; gap: 14px; align-items: flex-start; }
.bb-flow b {
  flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--base-3); color: var(--signal); font-family: var(--mono);
  font-size: .7rem; font-weight: 600;
}
.bb-flow span { color: var(--ink-2); font-size: .94rem; line-height: 1.5; }

/* --------------------------------------------------------------- 3 column */

/* Three items, three or one column — two columns would leave one open cell
   showing `--line-dark` as a block. */
.bb-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line-dark); }
@media (max-width: 860px) { .bb-cols3 { grid-template-columns: minmax(0, 1fr); } }
.bb-cols3__item { padding: 28px 24px; background: var(--light); }
.bb-cols3__no { display: block; margin-bottom: 12px; font-size: 1.9rem; font-weight: 600; line-height: 1; color: var(--line-dark-2); }
.bb-cols3__item h3 { margin-bottom: 10px; }
.bb-cols3__item p { margin: 0; color: var(--dark-2); font-size: .93rem; line-height: 1.6; }

/* ------------------------------------------------------------------ split */

.bb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.bb-split--reverse .bb-split__media { order: 2; }
.bb-split__copy h2 { margin-bottom: 22px; }
/* :where() drops this to the specificity of a bare element selector, so the
   yellow `.bb-tag` eyebrow inside keeps its dark ink instead of being repainted
   in body grey. Same reason for the CTA and the project body below. */
:where(.bb-split__copy) p { color: var(--ink-2); }
.bb-split__copy .bb-btn { margin-top: 22px; }
.bb-split__copy .bb-ticks { margin-top: 22px; }

.bb-frame { display: block; position: relative; overflow: hidden; background: var(--base-3); }
.bb-frame::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 8px;
  background: repeating-linear-gradient(115deg, var(--signal) 0 10px, transparent 10px 20px);
}
.bb-frame img { width: 100%; filter: grayscale(.35) contrast(1.05); }

.bb-steps { display: grid; gap: 0; margin-top: 6px; }
.bb-steps li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.bb-section--light .bb-steps li { border-top-color: var(--line-dark); }
.bb-steps li:last-child { border-bottom: 1px solid var(--line); }
.bb-steps b { flex: 0 0 auto; color: var(--signal); font-family: var(--mono); font-size: .82rem; font-weight: 600; padding-top: 3px; }
.bb-steps h3 { margin-bottom: 6px; }
.bb-steps p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* --------------------------------------------------------- project cards */

.bb-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 4px; }
.bb-pgrid--list { margin-top: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-pcard { display: flex; flex-direction: column; background: var(--base-2); border: 1px solid var(--line); }
.bb-pcard.is-hidden { display: none; }
.bb-pcard__media { position: relative; display: block; overflow: hidden; background: var(--base-3); }
.bb-pcard__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.5) contrast(1.06); }
.bb-pcard:hover .bb-pcard__img { filter: grayscale(0) contrast(1.04); }
.bb-pcard__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 58%; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 21, 23, 0) 0%, rgba(20, 21, 23, .86) 100%);
}
.bb-pcard__no {
  position: absolute; left: 14px; bottom: 6px; z-index: 2;
  font-family: var(--mono); font-size: clamp(2.5rem, 5.4vw, 3.4rem); font-weight: 700; line-height: 1;
  letter-spacing: -.03em; color: var(--signal); pointer-events: none;
}
.bb-pcard__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 22px 24px; }
.bb-pcard__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 12px; }
.bb-pcard__meta span { padding-right: 10px; margin-right: 10px; border-right: 1px solid var(--line-2); color: var(--signal); }
.bb-pcard__meta span:last-child { border-right: 0; color: var(--ink-3); }
.bb-pcard h3 { margin-bottom: 4px; font-size: 1.34rem; }
.bb-pcard h3 a:hover { color: var(--signal); }
.bb-pcard__place { margin: 0 0 18px; color: var(--ink-3); font-size: .88rem; }
.bb-pcard__kpi { display: grid; gap: 0; margin: auto 0 0; border-top: 2px solid var(--signal); }
.bb-pcard__kpi > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bb-pcard__kpi dt { color: var(--ink-3); font-size: .8rem; }
.bb-pcard__kpi dd { margin: 0; color: var(--ink); font-size: .74rem; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .bb-pcard__img { transition: filter .22s linear; }
}

/* ---------------------------------------------------------------- filters */

/* Three filter groups plus the reset button — 4 / 2 / 1 columns keeps every
   row complete, so the gutter colour never shows as an empty cell. */
.bb-filterbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
  background: var(--line); border-top: 3px solid var(--signal); border-bottom: 1px solid var(--line);
}
@media (max-width: 1060px) { .bb-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bb-filterbar { grid-template-columns: minmax(0, 1fr); } }
.bb-fgroup { padding: 18px 20px 20px; background: var(--base-2); }
.bb-fgroup__label { display: block; margin-bottom: 12px; color: var(--signal); }
.bb-fgroup__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-chip {
  padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 0; cursor: pointer;
  color: var(--ink-2); background: transparent;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em;
}
.bb-chip:hover { color: var(--ink); border-color: var(--signal); }
.bb-chip.is-on { color: var(--dark); background: var(--signal); border-color: var(--signal); font-weight: 600; }
/* The reset sits in its own filter cell instead of floating in the grid gap:
   a bare button leaves most of its cell uncovered, and that uncovered area is
   the gutter colour, not the panel colour. */
.bb-fgroup--reset { display: flex; align-items: center; }
.bb-filterbar__reset { width: 100%; margin: 0; }

.bb-resultline {
  display: flex; align-items: baseline; gap: 10px; margin: 22px 0 0;
  color: var(--ink-3); font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.bb-resultline b { color: var(--signal); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.bb-empty {
  margin: 26px 0 0; padding: 26px; border-left: 4px solid var(--signal); background: var(--base-2);
  color: var(--ink-2); font-size: .96rem;
}

/* --------------------------------------------------------- project detail */

.bb-dhead { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 66px) 0 clamp(28px, 4vw, 46px); background: var(--base-4); border-bottom: 2px solid var(--signal); }
.bb-dhead__inner { position: relative; }
.bb-dhead__no {
  position: absolute; right: 0; top: -10px; z-index: 0; pointer-events: none;
  font-family: var(--mono); font-weight: 700; font-size: clamp(5rem, 17vw, 15rem);
  line-height: .8; letter-spacing: -.06em; color: transparent;
  -webkit-text-stroke: 2px rgba(242, 194, 0, .3);
}
.bb-dhead__inner > *:not(.bb-dhead__no) { position: relative; z-index: 1; }
.bb-dhead .bb-link--back { display: flex; width: max-content; }
.bb-dhead h1 { max-width: 16ch; }
.bb-dhead__place { margin: 14px 0 0; color: var(--ink-2); font-size: 1.05rem; }

.bb-dmedia { margin: 0 auto; padding-top: clamp(26px, 4vw, 48px); }
.bb-dmedia__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Six key figures per project — 6 / 3 / 2 / 1 columns all divide evenly. */
.bb-metrics {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px; margin: 0; background: var(--line);
}
@media (max-width: 1400px) { .bb-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .bb-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .bb-metrics { grid-template-columns: minmax(0, 1fr); } }
.bb-metrics__item { padding: 22px 20px 24px; background: var(--base-2); border-left: 3px solid var(--signal); }
.bb-metrics__item dt { margin-bottom: 10px; color: var(--ink-3); }
.bb-metrics__item dd { margin: 0; font-size: 1.34rem; font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }

.bb-dbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
:where(.bb-dbody__copy) p { color: var(--dark-2); }
.bb-dbody__copy h2 { margin-bottom: 16px; }
.bb-dbody__label { margin: 30px 0 14px; padding-top: 14px; border-top: 2px solid var(--dark); color: var(--dark); }
.bb-dbody__phases .bb-dbody__label { margin-top: 0; }
.bb-phases { display: grid; gap: 0; }
.bb-phases li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.bb-phases b { flex: 0 0 auto; color: var(--dark); font-family: var(--mono); font-size: .78rem; font-weight: 600; padding-top: 3px; }
.bb-phases h3 { margin-bottom: 6px; color: var(--dark); }
.bb-phases p { margin: 0; color: var(--dark-2); font-size: .93rem; }

/* ------------------------------------------------------------------ forms */

.bb-field { display: block; }
.bb-field > span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.bb-field input[type="text"], .bb-field input[type="email"], .bb-field input[type="tel"],
.bb-field input[type="date"], .bb-field input[type="number"], .bb-field select, .bb-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 0;
  color: var(--ink); background: var(--base-4);
  font-family: var(--display); font-size: .96rem; line-height: 1.4;
}
.bb-field textarea { resize: vertical; min-height: 92px; }
.bb-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(135deg, var(--signal) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.bb-field input:focus, .bb-field select:focus, .bb-field textarea:focus { border-color: var(--signal); outline-offset: 0; }
.bb-field--wide { grid-column: 1 / -1; }
.bb-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.bb-qform .bb-field--wide { margin-top: 18px; }

.bb-check { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; cursor: pointer; font-size: .94rem; color: var(--ink-2); }
/* Hard-edged square in the same language as the radios, selects and slots —
   the native box was the last undesigned control in the form. The tick is a
   background image so no pseudo-element on a replaced input is needed. */
.bb-check input {
  flex: 0 0 auto; appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 2px 0 0; padding: 0;
  border: 2px solid var(--ink-3); border-radius: 0;
  background: var(--base-4); cursor: pointer;
}
.bb-check:hover input { border-color: var(--signal); }
.bb-check input:checked {
  border-color: var(--signal); background-color: var(--signal);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.4 3.4L13.2 5' fill='none' stroke='%231b1c1e' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat; background-size: 16px 16px;
}

.bb-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--line); }
.bb-choice__item { display: block; cursor: pointer; background: var(--base-2); }
.bb-choice__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bb-choice__item > span { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-left: 3px solid transparent; }
.bb-choice__item b { color: var(--ink-3); font-family: var(--mono); font-size: .9rem; font-weight: 600; }
.bb-choice__item i { font-style: normal; font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; }
.bb-choice__item:hover > span { background: var(--base-3); }
.bb-choice__item input:checked + span { border-left-color: var(--signal); background: var(--base-3); }
.bb-choice__item input:checked + span b { color: var(--signal); }
.bb-choice__item input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: -3px; }

/* Four time slots — 4 / 2 / 1 columns, never three. */
.bb-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 20px; background: var(--line); }
@media (max-width: 1240px) { .bb-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bb-slots { grid-template-columns: minmax(0, 1fr); } }
.bb-slot { display: block; cursor: pointer; background: var(--base-2); }
.bb-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bb-slot > span {
  display: block; padding: 14px 16px; border: 2px solid transparent;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--ink-2);
}
.bb-slot input:checked + span { border-color: var(--signal); color: var(--signal); }
.bb-slot input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: -3px; }

.bb-field--range input[type="range"] {
  width: 100%; margin: 6px 0 0; height: 26px; background: transparent; appearance: none; cursor: pointer;
}
.bb-field--range input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--base-3); border-top: 1px solid var(--line); }
.bb-field--range input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 26px; margin-top: -10px; border: 0; border-radius: 0; background: var(--signal); }
.bb-field--range input[type="range"]::-moz-range-track { height: 6px; background: var(--base-3); }
.bb-field--range input[type="range"]::-moz-range-thumb { width: 18px; height: 26px; border: 0; border-radius: 0; background: var(--signal); }
.bb-field--range > span b { color: var(--signal); font-size: 1rem; letter-spacing: .02em; }

.bb-budget { padding: 24px 22px 26px; border-left: 3px solid var(--signal); background: var(--base-2); }
.bb-budget__scale { display: flex; justify-content: space-between; margin: 4px 0 20px; color: var(--ink-3); font-size: .62rem; }
.bb-budget__out {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 16px; border-top: 2px solid var(--signal);
}
.bb-budget__out span { color: var(--ink-3); }
.bb-budget__out strong { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.035em; }
.bb-qform .bb-budget + .bb-field { margin-top: 20px; }

/* ------------------------------------------------------------ quote flow */

.bb-quote { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2px; background: var(--line); border-top: 3px solid var(--signal); }
.bb-rail { display: grid; align-content: start; gap: 0; padding: 24px 0; background: var(--base-4); }
.bb-rail li {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px;
  border-left: 3px solid transparent; color: var(--ink-3);
  font-size: .88rem; font-weight: 600; letter-spacing: -.01em;
}
.bb-rail li b { color: var(--ink-3); font-family: var(--mono); font-size: .74rem; font-weight: 600; }
.bb-rail li.is-done { color: var(--ink-2); }
.bb-rail li.is-done b { color: var(--signal); }
.bb-rail li.is-active { color: var(--ink); border-left-color: var(--signal); background: var(--base-2); }
.bb-rail li.is-active b { color: var(--signal); }

.bb-qform { padding: clamp(24px, 3.5vw, 40px); background: var(--base); }
.bb-step { display: none; padding: 0; margin: 0; border: 0; min-width: 0; }
.bb-step.is-active { display: block; }
.bb-step legend {
  display: block; width: 100%; float: none; padding: 0 0 22px; margin: 0 0 24px;
  border-bottom: 2px solid var(--signal);
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.06; letter-spacing: -.04em;
}
.bb-qnav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

.bb-summary { margin-top: 26px; }
.bb-summary dl { display: grid; gap: 0; margin: 0; border-top: 2px solid var(--signal); }
.bb-summary dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bb-summary dt { color: var(--ink-3); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.bb-summary dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 600; text-align: right; }
.bb-summary__title { margin: 0 0 14px; color: var(--signal); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }

/* --------------------------------------------------------------- page head */

.bb-phead { padding: clamp(44px, 6vw, 92px) 0 clamp(34px, 4vw, 58px); background: var(--base-4); border-bottom: 2px solid var(--signal); }
.bb-phead h1 { max-width: 16ch; }
.bb-phead__lead { max-width: 58ch; margin: 24px 0 0; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.1rem); }
.bb-phead__note { margin: 18px 0 0; color: var(--ink-3); font-size: .66rem; }

/* -------------------------------------------------------------- timeline */

.bb-timeline { display: grid; gap: 0; border-top: 2px solid var(--signal); }
.bb-timeline li { display: flex; gap: clamp(16px, 4vw, 48px); padding: 24px 0; border-bottom: 1px solid var(--line); }
.bb-timeline b { flex: 0 0 auto; min-width: 72px; color: var(--signal); font-family: var(--mono); font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.bb-timeline h3 { margin-bottom: 8px; }
.bb-timeline p { margin: 0; max-width: 68ch; color: var(--ink-2); font-size: .95rem; }

/* ------------------------------------------------------------------ team */

/* Five people never divide into three or two columns, so below the full row
   the last card takes the leftover track. Without that the open cell would
   render `--line` as a block. In the single-column layout the span has to go
   again — it would otherwise create a second, implicit column. */
.bb-team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--line); }
@media (max-width: 1240px) {
  .bb-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bb-team .bb-person:last-child { grid-column: span 2; }
}
@media (max-width: 820px) { .bb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .bb-team { grid-template-columns: minmax(0, 1fr); }
  .bb-team .bb-person:last-child { grid-column: auto; }
}
.bb-person { padding: 26px 22px 28px; background: var(--base); border-top: 3px solid var(--signal); }
/* --base-3 on --base was 1.22:1 — invisible. --line-2 puts the numeral at the
   same visual weight as .bb-tile__no and .bb-cols3__no on the light surface. */
.bb-person__no { display: block; margin-bottom: 14px; font-size: 2rem; font-weight: 600; line-height: 1; color: var(--line-2); }
.bb-person h3 { margin-bottom: 6px; font-size: 1.2rem; }
.bb-person__role { margin: 0 0 12px; color: var(--signal); font-size: .64rem; }
.bb-person p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }

/* --------------------------------------------------------------- contact */

.bb-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.bb-contact__info h2 { margin-bottom: 22px; }
.bb-address { margin: 0 0 18px; font-size: 1.1rem; font-style: normal; line-height: 1.6; color: var(--dark); }
.bb-contact__lines { margin: 0 0 4px; font-size: .82rem; line-height: 2; color: var(--dark); text-transform: none; letter-spacing: .04em; }
.bb-contact__lines a { border-bottom: 2px solid var(--signal); }
.bb-contact__sub { margin: 30px 0 14px; padding-top: 16px; border-top: 2px solid var(--dark); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.bb-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bb-table { width: 100%; min-width: 420px; border-collapse: collapse; text-align: left; }
.bb-table th, .bb-table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.bb-table thead th { color: var(--dark); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--dark); }
.bb-table tbody th { font-size: .95rem; font-weight: 600; color: var(--dark); }
.bb-table td { color: var(--dark-2); font-size: .74rem; letter-spacing: .02em; }

.bb-cform { padding: clamp(24px, 3vw, 34px); background: var(--base); color: var(--ink); border-top: 4px solid var(--signal); }
.bb-cform h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); }
.bb-cform__lead { margin: 0 0 24px; color: var(--ink-2); font-size: .94rem; }
.bb-cform .bb-field + .bb-field { margin-top: 16px; }
.bb-cform .bb-btn { margin-top: 24px; }

/* -------------------------------------------------------------------- CTA */

.bb-cta { padding: clamp(48px, 6vw, 90px) 0; background: var(--base-4); border-top: 2px solid var(--signal); }
.bb-cta__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
:where(.bb-cta__inner) p { max-width: 56ch; color: var(--ink-2); }
:where(.bb-section--light .bb-cta__inner) p { color: var(--dark-2); }
.bb-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ----------------------------------------------------------------- footer */

.bb-foot { background: var(--base-4); }
.bb-foot .bb-shell { padding: clamp(40px, 5vw, 68px) 0 34px; }
.bb-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: clamp(20px, 3vw, 44px); }
.bb-foot__brand p { margin: 18px 0 0; max-width: 42ch; color: var(--ink-3); font-size: .9rem; }
.bb-foot__col h2 {
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--signal);
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.bb-foot__col a { display: block; padding: 5px 0; color: var(--ink-2); font-size: .92rem; }
.bb-foot__col a:hover { color: var(--signal); }
.bb-foot__col address { font-style: normal; color: var(--ink-2); font-size: .92rem; line-height: 1.7; margin-bottom: 12px; }
.bb-foot__col--contact a { font-size: .72rem; letter-spacing: .06em; }
.bb-note {
  margin: clamp(30px, 4vw, 48px) 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: .78rem; line-height: 1.7;
}
.bb-note a { color: var(--signal); border-bottom: 1px solid var(--line-2); }
.bb-note a:hover { border-color: var(--signal); }

/* ------------------------------------------------------- reveal: hard wipe

   The wipe runs on a hard-edged mask, not on `clip-path`. Chromium folds a
   target's own clip-path into the rectangle IntersectionObserver measures, so
   a clipped element reports ratio 0 forever — the observer would never fire
   and the content would stay invisible. A mask is paint-only: geometry, hit
   testing and the observer keep working. */

@media (prefers-reduced-motion: no-preference) {
  html.appv-demo [data-reveal] {
    opacity: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 0 50%, rgba(0, 0, 0, 0) 50% 100%);
    mask-image: linear-gradient(90deg, #000 0 50%, rgba(0, 0, 0, 0) 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  html.appv-demo [data-reveal].is-in {
    opacity: 1;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    transition: -webkit-mask-position .36s cubic-bezier(.2, .9, .3, 1),
                mask-position .36s cubic-bezier(.2, .9, .3, 1),
                opacity 0s linear;
  }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .bb-quote { grid-template-columns: 190px minmax(0, 1fr); }
  .bb-foot__grid { grid-template-columns: 1fr 1fr; }
  .bb-pgrid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .bb-tiles, .bb-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .bb-nav a { padding: 9px 10px; font-size: .74rem; }
  .bb-tel { display: none; }
}

@media (max-width: 900px) {
  .bb-head__inner { min-height: 66px; gap: 12px; }
  .bb-nav { display: none; }
  .bb-burger { display: block; }
  .bb-head__actions .bb-btn--sm { display: none; }
  .bb-split, .bb-dbody, .bb-contact, .bb-cta__inner { grid-template-columns: minmax(0, 1fr); }
  .bb-split--reverse .bb-split__media { order: 0; }
  .bb-cta__actions { justify-content: flex-start; }
  .bb-quote { grid-template-columns: minmax(0, 1fr); }
  /* Wrapping beats scrolling here: every step of the quote request stays
     visible, and nothing can push the document sideways. */
  .bb-rail { display: flex; flex-wrap: wrap; padding: 0; }
  .bb-rail li { flex: 1 1 auto; border-left: 0; border-bottom: 3px solid transparent; padding: 14px 16px; }
  .bb-rail li.is-active { border-left: 0; border-bottom-color: var(--signal); }
  .bb-hero h1 { max-width: none; }
  .bb-hero::after { background: linear-gradient(180deg, rgba(20, 21, 23, .58) 0%, rgba(20, 21, 23, .88) 52%, rgba(20, 21, 23, .96) 100%); }
  .bb-hero__img { filter: grayscale(.45) contrast(1.08) brightness(.62); }
}

@media (max-width: 640px) {
  .bb-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .bb-tiles, .bb-choice, .bb-pgrid, .bb-pgrid--list { grid-template-columns: minmax(0, 1fr); }
  .bb-svc__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bb-hero__strip span { padding-right: 12px; margin-right: 12px; }
  .bb-dhead__no { top: auto; bottom: -8px; opacity: .55; }
  .bb-pcard__no { font-size: 3.2rem; bottom: -12px; }
  .bb-kpi__item dd { font-size: 2.4rem; }
  .bb-btn { font-size: .74rem; padding: 12px 18px; }
  .bb-btn--lg { font-size: .78rem; padding: 15px 22px; }
  .bb-timeline li { flex-direction: column; gap: 6px; }
  .bb-timeline b { min-width: 0; }
  .bb-resultline b { font-size: 1.3rem; }
}

@media (max-width: 380px) {
  .bb h1 { font-size: clamp(1.9rem, 9.6vw, 2.5rem); }
  .bb h2 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
}

@media (max-width: 420px) {
  .bb-logo__text b { font-size: 1.06rem; }
  .bb-logo__text i { font-size: .52rem; letter-spacing: .24em; }
  .bb-hero__strip { font-size: .64rem; }
  .bb-qform { padding: 20px 16px 24px; }
  .bb-summary dd { text-align: left; }
}

@media print {
  .bb-head, .bb-mobile, .bb-burger, .bb-stripe, .bb-cta { display: none !important; }
  .bb { color: #000; background: #fff; }
}
