/* ============================================================================
   BlikCode — website template, site-level patterns.
   Builds ONLY on design-system tokens (colors_and_type.css) and pairs with the
   kit (kit.css). New blocks use the bc- prefix; kit blocks keep bk-.
   Voice/visual: editorial precision meets technical authority. No AI framing.
   ============================================================================ */

/* ---- real-site header overrides (kit header, AI-free nav) ----------------- */
.bk-header__inner { gap: 28px; }
.bk-nav { gap: 26px; margin-left: 14px; }
.bk-nav a { font-size: 14.5px; }
.bc-cta-sm { padding: 10px 18px !important; font-size: 14px !important; }

/* ---- generic small page utilities ---------------------------------------- */
.bc-rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.bc-eyebrow-accent .bk-tick { color: var(--accent); }
.bc-measure { max-width: 62ch; }
.bc-balance { text-wrap: balance; }

/* ---- bracket motif (citation brackets framing a block) -------------------- */
.bc-bracket { position: relative; }
.bc-bracket::before, .bc-bracket::after {
  content: ""; position: absolute; top: 0; width: 16px; height: 100%;
  border: 1.5px solid var(--accent); pointer-events: none;
}
.bc-bracket::before { left: -22px; border-right: 0; }
.bc-bracket::after  { right: -22px; border-left: 0; }

/* ============================================================================
   HERO — homepage (ink ground)
   ============================================================================ */
.bc-hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px); }
.bc-hero__head {
  font-family: var(--font-display); font-weight: 900; font-stretch: 116%;
  font-size: clamp(52px, 11vw, 168px); line-height: .9; letter-spacing: -.045em;
  margin: 26px 0 0; text-wrap: balance;
}
.bc-hero__img {
  display: inline-flex; vertical-align: -0.14em;
  width: 1.5em; height: .86em; margin: 0 .08em; border-radius: 8px;
}
.bc-hero__lower {
  display: flex; gap: clamp(28px, 5vw, 80px); flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 44px); align-items: flex-start;
}
.bc-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.bc-hero__meta {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: clamp(36px, 6vw, 64px);
  padding-top: 26px; border-top: 1px solid var(--border);
}
.bc-hero__metaitem { display: flex; flex-direction: column; gap: 4px; }
.bc-hero__metaitem b {
  font-family: var(--font-display); font-weight: 900; font-stretch: 110%;
  font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.bc-hero__metaitem span { font-size: 13px; color: var(--fg-muted); }

/* ============================================================================
   PROBLEM — fragmentation statement
   ============================================================================ */
.bc-statement {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
}
.bc-statement__big {
  font-family: var(--font-display); font-weight: 800; font-stretch: 106%;
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance; margin: 0;
}
.bc-statement__big .bk-mark { border-radius: 2px; }
.bc-statement__aside { color: var(--fg-muted); }

/* fragmentation chips row */
.bc-frag {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(36px, 5vw, 56px);
}
.bc-frag__chip {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-muted); white-space: nowrap;
  border: 1px solid var(--border); border-radius: var(--r-pill); padding: 9px 16px;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.bc-frag__chip:hover { color: var(--fg); border-color: var(--border-strong); }
.bc-frag__chip .d { color: var(--accent); margin-right: 8px; }
.bk-work__vtag { white-space: nowrap; }

/* ============================================================================
   NUMBERED EDITORIAL LIST — homepage services (4 blocks) & method
   ============================================================================ */
.bc-grid4 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.bc-grid4 > * { border-bottom: 1px solid var(--border); }
.bc-cell {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(26px, 2.4vw, 38px) clamp(22px, 1.8vw, 30px) clamp(30px, 3vw, 44px) 0;
  border-right: 1px solid var(--border);
}
.bc-grid4 > .bc-cell:nth-child(4n) { border-right: 0; }
.bc-cell__n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--accent);
}
.bc-cell h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 105%;
  font-size: clamp(20px, 1.5vw, 25px); letter-spacing: -.02em; line-height: 1.06; margin: 0;
}
.bc-cell p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.bc-cell__more {
  margin-top: auto; font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .1em; display: inline-flex; gap: 7px;
  align-items: center; color: var(--fg); padding-top: 8px;
}
.bc-cell__more .bk-arr { transition: transform var(--dur-base) var(--ease-out); }
.bc-cell:hover .bc-cell__more .bk-arr { transform: translateX(4px); }

@media (max-width: 920px) {
  .bc-grid4 { grid-template-columns: 1fr 1fr; }
  .bc-grid4 > .bc-cell:nth-child(4n) { border-right: 1px solid var(--border); }
  .bc-grid4 > .bc-cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .bc-grid4 { grid-template-columns: 1fr; }
  .bc-grid4 > .bc-cell { border-right: 0 !important; }
}

/* ============================================================================
   SURFACES — taxonomy grid (six generic surface types)
   ============================================================================ */
.bc-surfaces {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.bc-surface {
  background: var(--bg); padding: clamp(24px, 2.2vw, 34px);
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
  transition: background var(--dur-base) var(--ease-out);
}
.bc-surface:hover { background: var(--surface); }
.bc-surface__top { display: flex; align-items: center; justify-content: space-between; }
.bc-surface__ico {
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.bc-surface__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--fg-subtle); }
.bc-surface h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(19px, 1.4vw, 23px); letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 0;
}
.bc-surface p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
@media (max-width: 880px) { .bc-surfaces { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bc-surfaces { grid-template-columns: 1fr; } }

/* ============================================================================
   INDUSTRIES — vertical cards
   ============================================================================ */
.bc-verticals {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.bc-vert {
  position: relative; background: var(--bg); padding: clamp(26px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: 12px; min-height: 230px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.bc-vert:hover { background: var(--surface); }
.bc-vert__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--fg-subtle); }
.bc-vert h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 106%;
  font-size: clamp(22px, 1.7vw, 28px); letter-spacing: -.025em; line-height: 1.02; margin: 8px 0 0;
}
.bc-vert p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.bc-vert__go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg);
}
.bc-vert__go .bk-arr { transition: transform var(--dur-base) var(--ease-out); color: var(--accent); }
.bc-vert:hover .bk-arr { transform: translateX(4px); }
@media (max-width: 920px) { .bc-verticals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bc-verticals { grid-template-columns: 1fr; } }

/* ============================================================================
   METHOD — four steps (Map / Identify / Build / Measure)
   ============================================================================ */
.bc-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.bc-step {
  position: relative; padding: clamp(28px, 3vw, 48px) clamp(20px, 2vw, 32px) 0 0;
  border-top: 2px solid var(--fg);
}
.bc-step + .bc-step { padding-left: clamp(20px, 2vw, 32px); }
.bc-step__n {
  font-family: var(--font-display); font-weight: 900; font-stretch: 110%;
  font-size: clamp(40px, 4vw, 64px); line-height: .9; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.bc-step h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 105%;
  font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -.02em; margin: 20px 0 10px;
}
.bc-step p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
@media (max-width: 880px) {
  .bc-method { grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 32px); }
  .bc-step + .bc-step { padding-left: 0; }
  .bc-step:nth-child(n+3) { margin-top: 8px; }
}
@media (max-width: 520px) { .bc-method { grid-template-columns: 1fr; } }

/* ============================================================================
   FINAL CTA band
   ============================================================================ */
.bc-finalcta { text-align: left; }
.bc-finalcta__head {
  font-family: var(--font-display); font-weight: 900; font-stretch: 114%;
  font-size: clamp(40px, 7vw, 104px); line-height: .92; letter-spacing: -.045em;
  margin: 0; text-wrap: balance; max-width: 16ch;
}
.bc-finalcta__row {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
}
.bc-finalcta__note { color: var(--fg-muted); max-width: 40ch; font-size: 15px; }

/* ============================================================================
   PAGE HERO — subpages (industries, services, about, work, insights)
   ============================================================================ */
.bc-pagehero { padding-block: clamp(40px, 6vw, 92px) clamp(32px, 4vw, 56px); }
.bc-crumb {
  display: flex; gap: 10px; align-items: center; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-subtle);
  margin-bottom: 22px;
}
.bc-crumb a { color: var(--fg-muted); text-decoration: none; }
.bc-crumb a:hover { color: var(--accent); }
.bc-crumb .sep { color: var(--fg-subtle); }
.bc-pagehero__head {
  font-family: var(--font-display); font-weight: 900; font-stretch: 113%;
  font-size: clamp(40px, 7vw, 104px); line-height: .92; letter-spacing: -.04em;
  margin: 0; text-wrap: balance; max-width: 17ch;
}
.bc-pagehero__lower {
  display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap;
  margin-top: clamp(26px, 3.5vw, 40px); align-items: flex-start;
}

/* ============================================================================
   WHY / specialist-approach two-column
   ============================================================================ */
.bc-why {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.bc-why h2 { max-width: 14ch; }
.bc-points { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.bc-point {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border);
}
.bc-point__ico { color: var(--accent); flex: none; margin-top: 2px; }
.bc-point h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.bc-point p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
@media (max-width: 820px) { .bc-why { grid-template-columns: 1fr; } }

/* ============================================================================
   CONSIDERATIONS — Technical / Content / Authority (industry pages)
   ============================================================================ */
.bc-considerations { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.bc-consider { display: flex; flex-direction: column; gap: 14px; }
.bc-consider__h {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.bc-consider h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 105%;
  font-size: clamp(19px, 1.4vw, 23px); letter-spacing: -.02em; margin: 2px 0 0;
}
.bc-consider ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 11px; }
.bc-consider li { display: flex; gap: 11px; font-size: 14.5px; color: var(--fg-muted); line-height: 1.45; }
.bc-consider li .t { color: var(--accent); flex: none; font-family: var(--font-mono); }
@media (max-width: 820px) { .bc-considerations { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================================
   SERVICE DETAIL — services page (reusable templated block)
   ============================================================================ */
.bc-svc-detail {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--border);
}
.bc-svc-detail:first-of-type { border-top: 0; }
.bc-svc-detail__n {
  font-family: var(--font-display); font-weight: 900; font-stretch: 110%;
  font-size: clamp(30px, 3vw, 46px); letter-spacing: -.03em; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: .9;
}
.bc-svc-detail h2 { margin: 16px 0 0; max-width: 13ch; }
.bc-svc-detail__lede { font-size: var(--fs-body-lg); color: var(--fg-muted); line-height: 1.6; margin: 0 0 22px; max-width: 52ch; }
.bc-capgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.bc-cap { background: var(--bg); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.bc-cap__h { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.bc-cap__h .t { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.bc-cap p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.45; margin: 0; }
@media (max-width: 860px) { .bc-svc-detail { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 480px) { .bc-capgrid { grid-template-columns: 1fr; } }

/* ============================================================================
   ABOUT — narrative timeline & principles
   ============================================================================ */
.bc-lead-statement {
  font-family: var(--font-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(26px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.03em;
  text-wrap: balance; margin: 0; max-width: 20ch;
}
.bc-lead-statement .bk-mark { border-radius: 2px; }
.bc-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.bc-tl {
  padding: clamp(26px, 3vw, 44px) clamp(18px, 1.8vw, 28px) 0 0;
  border-top: 2px solid var(--fg);
}
.bc-tl + .bc-tl { padding-left: clamp(18px, 1.8vw, 28px); }
.bc-tl__yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.bc-tl h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 105%;
  font-size: clamp(19px, 1.5vw, 24px); letter-spacing: -.02em; margin: 16px 0 10px;
}
.bc-tl p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
@media (max-width: 880px) { .bc-timeline { grid-template-columns: 1fr 1fr; gap: 0 28px; } .bc-tl + .bc-tl { padding-left: 0; } .bc-tl:nth-child(n+3) { margin-top: 8px; } }
@media (max-width: 520px) { .bc-timeline { grid-template-columns: 1fr; } }

.bc-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.bc-principle { display: flex; flex-direction: column; gap: 12px; }
.bc-principle__ico { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.bc-principle h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 105%; font-size: 22px; letter-spacing: -.02em; margin: 0; }
.bc-principle p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
@media (max-width: 820px) { .bc-principles { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================================
   INSIGHTS list (full-width article rows)
   ============================================================================ */
.bc-articles { border-top: 1px solid var(--border); }
.bc-article {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px);
  align-items: center; padding: clamp(22px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.bc-article__tag { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); white-space: nowrap; }
.bc-article h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 104%; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.05; margin: 0; transition: color var(--dur-base); }
.bc-article:hover h3 { color: var(--accent); }
.bc-article__meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
@media (max-width: 720px) { .bc-article { grid-template-columns: 1fr; gap: 10px; } .bc-article__meta { display: none; } }

/* ---- contact / dual-column closing on about ---- */
.bc-split {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 820px) { .bc-split { grid-template-columns: 1fr; } }

/* ============================================================================
   STATIC BUILD — state classes replacing the prototype's JS-driven inline
   styles (header scroll ground, burger icon swap). Tokens only.
   ============================================================================ */
.bk-header { background: var(--bg); }
.bk-header.is-scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); }

.bk-burger .bc-ico-close { display: none; }
.bk-burger.is-open .bc-ico-close { display: inline-flex; }
.bk-burger.is-open .bc-ico-menu { display: none; }

/* Fix carried over from the prototype: .bc-vert / .bk-pgrid__cell card grounds
   and the ghost-button hover text use var(--bg), but .bk-ground-ink never
   redefines --bg — leaving cream cards with cream (invisible) headings on ink
   sections. Scope --bg to each ground so cards always match their section,
   mirroring how .bc-surfaces renders on cream. */
.bk-ground-ink { --bg: var(--ink); }
.bk-ground-cream { --bg: var(--cream); }

/* Below ~480px the authored 52px floor makes "discoverability." (≈440px wide)
   overflow the viewport and force horizontal scroll on real phones. Scale the
   hero headline with the viewport in that range only — at ≥480px the authored
   clamp() is untouched. */
@media (max-width: 479px) {
  .bc-hero__head { font-size: clamp(34px, 11.4vw - 4px, 52px); }
}

/* About-page contact inputs (the prototype defined these inline). Focus state
   borrowed from kit's .bk-news input for accessibility. */
.bc-input {
  font-family: var(--font-sans); font-size: 16px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: transparent; color: var(--fg); outline: none; width: 100%;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.bc-input:focus { border-color: var(--fg); box-shadow: 0 0 0 3px var(--accent); }
.bc-input::placeholder { color: var(--fg-subtle); }
textarea.bc-input { resize: vertical; }

/* hidden attribute must win over inline display (form success blocks) */
[hidden] { display: none !important; }

/* Readability: small lime text on cream grounds was ~1:1 contrast.
   Article tags become lime chips with ink text (mirrors .bk-mark and
   .bk-work__vtag); considerations headers switch to ink text over a lime
   rule. Large decorative numerals keep the pure lime accent. */
.bc-article__tag {
  color: var(--lime-ink);
  background: var(--accent);
  padding: 4px 9px;
  border-radius: var(--r-xs);
  width: fit-content;
}
.bc-consider__h {
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
}

/* Lime icon tiles on cream grounds: filled lime with ink strokes — the lime
   outline icons were near-invisible on cream. On ink grounds the original
   lime outlines stay; they read perfectly there. */
.bk-ground-cream .bc-surface__ico,
.bk-ground-cream .bc-principle__ico,
.bk-ground-cream .bk-pillar__ico {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--lime-ink);
}
.bk-ground-cream .bc-point__ico {
  background: var(--accent);
  color: var(--lime-ink);
  border-radius: var(--r-circle);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
