/* Colours and selection from the hub (Timo 2026-11-04 17:57: "the red … is a color AI would use"; highlights like the hub
   and the site's buttons, bars like the KPI dashboard): purple, the KPI orange and green, grey; a picked column is the
   hub's flat selection, not a tinted box. */
/* Charts inside a blog post (blog/charts.py; Timo 2026-11-04 17:34 "visuals and graphics in there … charts all the time").
   One figure per chart: hairline frame like the case cards, the kicker in violet, the numbers in Very Vogue, everything
   grows in once (.bc.in from the small observer at the end of the post). */
.bc { --v: #9850F3; --g: #1fc26a; --a: #f08a2e; --d: rgba(255,255,255,.22); --l: rgba(255,255,255,.62);
  margin: 36px 0 40px; padding: 18px 20px 0; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.10); outline: 1px solid rgba(255,255,255,.05);
  outline-offset: 4px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.7);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.008) 55%, rgba(255,255,255,.018)), rgba(6,6,8,.6); border-radius: 12px; }
.bc .t-v { --c: var(--v); } .bc .t-g { --c: var(--g); } .bc .t-a { --c: var(--a); } .bc .t-d { --c: var(--d); }
.bc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bc-k { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.45); white-space: nowrap; order: 2; }
.bc-t { color: #fff; font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; }
.bc-t b, .bc-b b { color: #fff; font-weight: 500; }
.bc-d { margin: 12px 0 0 !important; font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.45; }
.bc-f { margin: 14px -20px 0 !important; padding: 10px 20px 11px; border-top: 1px solid rgba(255,255,255,.08); font-size: 10.5px; color: rgba(255,255,255,.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5; }
.bc > .bc-b:last-child { padding-bottom: 18px; }
/* the soft colour of the card in its corner (KPI reference 3) */
.bc::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 0% 0%, var(--glow, rgba(152,80,243,.13)), transparent 65%); }
.bc.g-a { --glow: rgba(240,138,46,.11); } .bc.g-g { --glow: rgba(31,194,106,.10); } .bc.g-d { --glow: rgba(255,255,255,.04); }
.bc > * { position: relative; }
.bc-sv, .bc-big span { font-family: 'Very Vogue Display', serif; font-style: italic; font-weight: 400; color: var(--v);
  text-shadow: 0 0 18px rgba(152,80,243,.35); line-height: 1; letter-spacing: -.01em; }
/* motion: everything starts a little back and arrives once */
.bc [style*="--i"] { transition: opacity .5s ease calc(var(--i) * 45ms), transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 45ms); }
.bc:not(.in) [style*="--i"] { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .bc [style*="--i"], .bc-track i { transition: none !important; } .bc:not(.in) [style*="--i"] { opacity: 1; transform: none; } }

/* bars: label, value and a barcode under it (KPI "Performance by Category") */
.bc-rows { display: grid; gap: 14px; }
.bc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: baseline; }
.bc-l { color: rgba(255,255,255,.78); font-size: 13.5px; }
.bc-v { color: #fff; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; }
.bc-comb { grid-column: 1 / -1; display: flex; gap: 2px; height: 16px; }
.bc-comb i { flex: 1; background: rgba(255,255,255,.07); }
.bc-comb i.on { background: var(--c); transition: opacity .25s ease calc(var(--j) * 14ms + .1s); }
.bc:not(.in) .bc-comb i.on, .bc:not(.in) .bc-vb i.on, .bc:not(.in) .bc-gcomb i { opacity: 0; }
.bc-vb i.on, .bc-gcomb i { transition: opacity .25s ease calc(var(--j) * 18ms + .1s); }

/* KPI tiles */
.bc-tiles { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.bc--kpi .bc-tiles[style*="--n:1"] { grid-template-columns: 1fr; }
.bc-tile { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 14px 14px 14px; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(90% 80% at 0% 0%, var(--glow, rgba(152,80,243,.14)), transparent 70%), rgba(255,255,255,.015); }
.bc-tile.g-a { --glow: rgba(240,138,46,.12); } .bc-tile.g-g { --glow: rgba(31,194,106,.11); } .bc-tile.g-d { --glow: rgba(255,255,255,.035); }
.bc-th { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,.78); }
.bc-flag { font-size: 11px; font-weight: 500; color: var(--c); white-space: nowrap; }
.bc-val { font-size: 30px; font-weight: 500; letter-spacing: -.5px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.bc-td { margin: 0 !important; font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.45; }
.bc-tile .bc-comb { height: 22px; margin-top: 4px; }
.bc-split { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; }
.bc-split > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bc-vb { display: flex; gap: 3px; height: 78px; flex: none; width: 46%; max-width: 230px; }
.bc-vb i { flex: 1; background: rgba(255,255,255,.07); } .bc-vb i.on { background: var(--c); }

/* gauge: comb scale, needle, box */
.bc-split-g { align-items: center; }
.bc-gw { flex: 1; max-width: 430px; min-width: 0; }
.bc-gauge { position: relative; height: 96px; }
.bc-gcomb { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; gap: 2px; align-items: flex-end; }
.bc-gcomb i { flex: 1; background: rgba(255,255,255,.08); } .bc-gcomb i.on { background: rgba(255,255,255,.34); }
.bc-needle { position: absolute; bottom: 0; width: 2px; height: 62px; background: var(--c); transform: translateX(-1px); }
.bc-needle::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #09090b; border: 2px solid var(--c); }
.bc-box { position: absolute; top: 0; transform: translateX(-50%); font-size: 11.5px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.16); background: #09090b; white-space: nowrap; color: #fff; }
.bc-gax { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.4); margin-top: 5px; }
.bc--gauge .bc-val { font-size: 34px; }
.bc:not(.in) .bc-needle { transform: translateX(-1px) scaleY(0); } .bc-needle { transform-origin: bottom; transition: transform .9s cubic-bezier(.16,1,.3,1) .3s; }
.bc:not(.in) .bc-box { opacity: 0; } .bc-box { transition: opacity .4s ease 1s; }

/* spikes (KPI "Sales Conversion Ratio") */
.bc-spk { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bc-spk > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bc-spk i { display: block; width: 6px; height: var(--h); background: rgba(255,255,255,.16); transform-origin: bottom; transition: transform .7s cubic-bezier(.16,1,.3,1) calc(var(--i) * 80ms + .1s) !important; }
.bc-spk i:not(.t-d) { background: var(--c); }
.bc:not(.in) .bc-spk i { transform: scaleY(0); }
.bc-spk b { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; white-space: nowrap; } .bc-spk b.on { color: #fff; }
.bc-spk span { font-size: 11px; color: rgba(255,255,255,.45); text-align: center; line-height: 1.25; min-height: 2.5em; }

/* stack */
.bc-stk { display: flex; gap: 2px; height: 14px; margin: 14px 0 10px; }
.bc-stk i { display: block; height: 100%; min-width: 2px; background: var(--c); transform-origin: left; transition: transform .9s cubic-bezier(.16,1,.3,1) .15s !important; }
.bc-stk i.t-d { background: rgba(255,255,255,.18); }
.bc:not(.in) .bc-stk i { transform: scaleX(0); }
.bc-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: rgba(255,255,255,.6); }
.bc-lg span { display: inline-flex; align-items: center; gap: 6px; } .bc-lg b { color: #fff; font-weight: 500; }
.bc-lg i { width: 9px; height: 9px; display: inline-block; background: var(--c); } .bc-lg i.t-d { background: rgba(255,255,255,.25); }
.bc-lg i.hatch { background: repeating-linear-gradient(135deg, rgba(152,80,243,.8) 0 1.5px, transparent 1.5px 4px); }
.bc-lg i.lnv { height: 2px; background: #9850F3; }

/* split: big number + one square per unit */
.bc--split .bc-b { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.bc-big span { font-size: clamp(64px, 8vw, 96px); display: block; }
.bc-big p { margin: 8px 0 0 !important; max-width: 15em; color: rgba(255,255,255,.7); }
.bc-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(22px, 1fr)); gap: 6px; max-width: 360px; }
.bc-cells i { aspect-ratio: 1; border-radius: 4px; background: var(--c); }
.bc-cells i.t-d { background: none; border: 1px dashed rgba(255,255,255,.3); }
.bc-legend { list-style: none; padding: 0 !important; margin: 16px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.bc-legend li { margin: 0 !important; display: flex; align-items: center; gap: 7px; }
.bc-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.bc-legend i.t-d { background: none; border: 1px dashed rgba(255,255,255,.4); }

/* stats */
.bc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.bc-stat { padding: 16px 16px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.02); }
.bc-stat .bc-sv { font-size: clamp(40px, 4.4vw, 54px); display: block; margin-bottom: 10px; }
.bc-stat b { display: block; color: #fff; font-weight: 500; }
.bc-stat p { margin: 4px 0 0 !important; font-size: 13px; color: rgba(255,255,255,.5); }

/* dots on one axis */
.bc-axis { position: relative; height: 92px; margin: 0 10px; }
.bc-line { position: absolute; left: 0; right: 0; top: 60px; height: 1px; background: rgba(255,255,255,.22); }
.bc-dot { position: absolute; top: 53px; left: var(--x); width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 3px #0d0b12; }
.bc-mark { position: absolute; left: var(--x); top: 0; bottom: 18px; border-left: 1px dashed rgba(255,255,255,.4); }
.bc-mark b { position: absolute; top: 0; left: 8px; white-space: nowrap; font-size: 12px; color: #fff; font-weight: 500; }
.bc-ticks { position: relative; height: 18px; margin: 0 10px; font-size: 12px; color: rgba(255,255,255,.45); }
.bc-ticks span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.bc-ticks span:first-child { transform: none; } .bc-ticks span:last-child { transform: translateX(-100%); }

/* compare */
.bc-cmp { display: grid; }
.bc-cr { display: grid; grid-template-columns: minmax(120px, 1.3fr) repeat(var(--cols), 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); align-items: center; }
.bc-ch { border-top: 0; padding-top: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.bc-cr > span:not(:first-child) { text-align: center; }
.bc-cr > span:first-child { color: rgba(255,255,255,.8); }
.bc-cr > span { color: rgba(255,255,255,.62); }
.bc-cr > span.bc-pick { color: #fff; background: rgba(255,255,255,.07); border-radius: 7px; padding: 7px 6px; margin: -7px 0; }
.bc-ch > span.bc-pick { color: #fff; background: none; padding: 0; margin: 0; position: relative; }
.bc-ch > span.bc-pick::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 22px; height: 2px; margin-left: -11px; border-radius: 2px; background: var(--v); }
.bc .c-ok { color: var(--g); } .bc .c-warn { color: var(--a); } .bc .c-weak { color: rgba(255,255,255,.38); } .bc .c-no { color: rgba(255,255,255,.3); }
.bc .c-strong { color: #fff; font-weight: 500; }

/* steps */
.bc-steps { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: s; }
.bc-steps li { margin: 0 !important; padding: 14px 14px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; position: relative; background: rgba(255,255,255,.02); }
.bc-steps li span { display: block; font-family: 'Very Vogue Display', serif; font-style: italic; color: var(--v); font-size: 26px; line-height: 1; margin-bottom: 10px; }
.bc-steps li b { display: block; color: #fff; font-weight: 500; margin-bottom: 4px; }
.bc-steps li p { margin: 0 !important; font-size: 13px; color: rgba(255,255,255,.55); }

/* timeline */
.bc-tl { list-style: none; padding: 0 0 0 22px !important; margin: 0 !important; position: relative; }
.bc-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--v), rgba(152,80,243,.1)); }
.bc-tl li { margin: 0 0 16px !important; position: relative; }
.bc-tl li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #0d0b12; border: 2px solid var(--v); }
.bc-tl time { display: block; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .04em; }
.bc-tl b { color: #fff; font-weight: 500; }
.bc-tl p { margin: 2px 0 0 !important; font-size: 13px; color: rgba(255,255,255,.55); }

/* scale */
.bc-scale { position: relative; padding-top: 40px; }
.bc-zones { display: flex; gap: 3px; }
.bc-zones span { height: 7px; border-radius: 7px; background: var(--c); position: relative; }
.bc-zones b { position: absolute; top: 20px; left: 0; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); white-space: nowrap; }
.bc-zones em { position: absolute; top: 20px; right: -3px; transform: translateX(50%); font-size: 11px; font-style: normal; color: rgba(255,255,255,.4); }
.bc-zones span:not(:first-child) b { left: 6px; }
.bc-scale { padding-bottom: 34px; }
.bc-pin { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.bc-pin b { background: rgba(13,11,18,.92); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 500; font-size: 12px; padding: 4px 9px; border-radius: 4px; white-space: nowrap; }
.bc-pin::after { content: ""; width: 2px; height: 22px; background: #fff; margin-top: 2px; }

/* quadrant */
.bc-quad { position: relative; aspect-ratio: 16 / 10; margin: 10px 4px 4px; border-left: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) 50% 0 / 1px 100% no-repeat, linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.07)) 0 50% / 100% 1px no-repeat; }
.bc-quad em { position: absolute; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.bc-xl { left: 8px; bottom: -22px; } .bc-xr { right: 0; bottom: -22px; } .bc-yb { left: 8px; bottom: 6px; } .bc-yt { left: 8px; top: 4px; }
.bc-q { position: absolute; left: var(--x); bottom: var(--y); transform: translate(-50%, 50%); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.bc-q i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px #0d0b12; }
.bc-q b { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.8); }
.bc-q.t-v b { color: #fff; }
.bc--quadrant .bc-b { padding-bottom: 20px; }

@media (max-width: 640px) {
  .bc { padding: 16px 14px 0; margin: 30px 0; }
  .bc-f { margin: 12px -14px 0 !important; padding: 9px 14px 10px; }
  .bc-tiles { grid-template-columns: 1fr; }
  .bc-split-g { flex-direction: column; align-items: stretch; } .bc-gw { max-width: none; }
  .bc-spk { gap: 4px; } .bc-spk span { font-size: 10px; }
  .bc-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .bc-row .bc-track { grid-column: 1 / -1; grid-row: 2; }
  .bc--split .bc-b { grid-template-columns: 1fr; gap: 18px; }
  .bc-cr { grid-template-columns: 1.1fr repeat(var(--cols), 1fr); font-size: 13px; }
  .bc-q b { font-size: 11px; }
}
.bc--split .bc-b > *, .bc-b > * { min-width: 0; }
.bc-dot { top: calc(53px - var(--lift, 0) * 19px); }
.bc-pin ~ .bc-zones em { display: none; }   /* the pin carries the value; a boundary number under it collided with the labels */
.bc-zones span:last-child:not(:first-child) b { left: auto; right: 0; }

/* line: the website's "87 %" chart (stat.css .st-ch), drawn in once */
.bc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bc-svg text { font-size: 10px; letter-spacing: .06em; font-family: inherit; }
.bc-svg text:not(.end) { fill: rgba(255,255,255,.45); }
.bc-svg .ax { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.bc-svg .gr { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.bc-svg .ln { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) var(--d, 0s); }
.bc-svg .ln.us { stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(152,80,243,.6)); }
.bc:not(.in) .bc-svg .ln { stroke-dashoffset: var(--len); }
.bc-svg :is(.area, .fill, .dot, .end, .pt) { transition: opacity .6s ease calc(var(--d, 0s) + 1.2s); }
.bc:not(.in) .bc-svg :is(.area, .fill, .dot, .end, .pt) { opacity: 0; }
.bc-svg .end { font-size: 11.5px; letter-spacing: 0; }
.bc-svg .end.gap { fill: #fff; font-size: 13px; font-weight: 500; }
.bc-svg .end.us { font-size: 13px; font-weight: 500; }
.bc-svg .end.v { font-size: 11px; font-weight: 500; }
.bc-svg .xl, .bc-svg .yl { font-size: 9.5px; letter-spacing: .1em; }
@media (max-width: 640px) { .bc-svg text { font-size: 15px; } .bc-svg .end, .bc-svg .end.gap, .bc-svg .end.us { font-size: 16px; } .bc-svg .yl { display: none; } }

