/* Brands (v3 Wall): the index, the profile, a group's full wall. Bare tiles, no media-type counts, no shelf arrows. Tokens only (tokens.css). */

/* ---------- shared: back link, title, controls ---------- */
.bk-page { padding: var(--s-4) var(--gutter) var(--s-9); }
.bk-back { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); margin-left: calc(var(--s-3) * -1); padding: 0 var(--s-3) 0 var(--s-2); border-radius: var(--r-control); color: var(--text-3); font-size: var(--t-13); font-weight: var(--w-medium); text-decoration: none; transition: color var(--dur-hover) linear; }
.bk-back:hover { color: var(--text-1); }
.bk-back .ic { width: var(--icon-s); height: var(--icon-s); }
.bk-h { margin: var(--s-2) 0 0; font-size: var(--t-40); font-weight: var(--w-semibold); line-height: 1.1; letter-spacing: var(--track-display); text-wrap: balance; }
.bk-h .lead { margin-left: var(--s-2); font-size: var(--t-16); font-weight: var(--w-regular); letter-spacing: 0; color: var(--text-3); }
.bk-h em { font-style: normal; color: var(--text-2); }
.bctl { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-5); }
.bsearch { display: flex; align-items: center; gap: var(--s-3); height: var(--field-h); width: min(var(--field-max), 100%); padding: 0 var(--s-4); border-radius: var(--r-control); background: var(--surface-2); color: var(--text-3); transition: background var(--dur-hover) linear; }
.bsearch:hover { background: var(--surface-3); }
.bsearch:focus-within { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-gap); color: var(--text-1); }
.bsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font-size: var(--t-14); color: var(--text-1); }
.bsearch input::placeholder { color: var(--text-3); opacity: 1; }
.bsearch input::-webkit-search-cancel-button { display: none; }
.bfilter { display: flex; align-items: flex-start; gap: var(--s-4); margin-top: var(--s-4); }
.bf-l { font-size: var(--t-12); font-weight: var(--w-medium); color: var(--text-3); padding-top: var(--s-2); width: 48px; flex: none; }
.bf-c { display: flex; flex-wrap: wrap; gap: var(--s-2); min-width: 0; }

/* ---------- the brands index ---------- */
.bwrap { padding-top: var(--s-5); }
.bgrid { position: relative; contain: layout; }
.bcell { position: absolute; left: 0; top: 0; will-change: transform; }
.bcell.static { position: relative; will-change: auto; }
.bcard { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface-1); border-radius: var(--r-card); padding: var(--s-2); transition: background var(--dur-quick) var(--ease-out); min-width: 0; outline: 0; }
.bcard:hover { background: var(--surface-2); }
.bcard:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-gap); }
.bmark { position: relative; display: block; height: 152px; flex: none; overflow: hidden; border-radius: var(--r-tile); background: var(--surface-2); }
.bmark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bmark.is-logo { background: var(--c0, #fff); }
.bmark.is-logo img { object-fit: contain; object-position: center; padding: 14%; }
.bgrid:not(.compact) .bcard:not(.row) .bmark { flex: 1 0 152px; }
.bgrid:not(.compact) .bcard:not(.row) .bbody { flex: none; }
.bmark.big { width: 100%; height: auto; aspect-ratio: 1; }
.bbody { min-width: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; padding: var(--s-3) var(--s-2) var(--s-2); gap: 6px; }
.btop { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.bname { font: var(--w-semibold) var(--t-16)/1.25 var(--font); letter-spacing: var(--track-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bcount { font-size: var(--t-12); color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.bone { flex: none; font-size: var(--t-13); line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bone .bgroups { color: var(--text-3); }
.bfoot { margin-top: auto; min-height: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-width: 0; }
.kchips { display: none; }                     /* media-type counts ("14 images · 2 videos") are cut */
.bsector { font-size: var(--t-12); color: var(--text-3); white-space: nowrap; }
.bidx .bwrap .bnone, .bnf .bnone { padding-top: var(--s-8); }
.bnear { margin-top: calc(var(--s-2) * -1); }
.bnear a { text-underline-offset: 3px; }
.bnf .bnone .fixes { margin-top: var(--s-2); justify-content: flex-start; }
.bnf .state.empty { justify-items: start; text-align: left; padding-left: 0; }
.bnf .state p { max-width: 520px; }
.bnf .btn { text-decoration: none; }

/* narrow: the index becomes a list, mark at the left */
.bgrid.compact .bcard, .bsim .bcard.row { flex-direction: row; }
.bgrid.compact .bmark { width: 104px; height: 100%; }
.bgrid.compact .bbody { padding: var(--s-1) var(--s-2) var(--s-1) var(--s-4); gap: var(--s-1); justify-content: center; }
.bgrid.compact .bone { -webkit-line-clamp: 1; }
.bgrid.compact .bfoot { margin-top: 2px; }

/* ---------- the profile ---------- */
.bp-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-top: var(--s-4); }
.bp-head.has-hero { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.bp-id { min-width: 0; max-width: 46em; }
.bp-id .bk-h { margin-top: 0; }
.bp-one { font-size: var(--t-16); line-height: 1.5; color: var(--text-2); margin-top: var(--s-3); text-wrap: pretty; }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5); margin-top: var(--s-4); font-size: var(--t-13); color: var(--text-3); }
.bp-meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); text-underline-offset: 3px; text-decoration-color: var(--text-3); }
.bp-meta a:hover { color: var(--text-1); text-decoration-color: var(--text-1); }
.bp-meta a .ic { width: 12px; height: 12px; }
.bp-counts { margin-top: var(--s-2); font-size: var(--t-13); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bp-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.bp-ag { margin-top: var(--s-4); font-size: var(--t-13); color: var(--text-3); }
.bp-why { background: var(--surface-1); padding: var(--s-5); border-radius: var(--r-card); margin-top: var(--s-6); }
.bp-why h2 { font: var(--w-medium) var(--t-12)/1 var(--font); color: var(--text-3); margin-bottom: var(--s-3); }
.bp-why p { font-size: var(--t-14); line-height: 1.55; color: var(--text-1); text-wrap: pretty; }
/* the brand's strongest piece, big, at its own shape (height capped, width follows the ratio) */
.bp-hero { --hh: min(78vh, 720px); position: relative; display: block; justify-self: start; width: min(100%, calc(var(--hh) / var(--r))); aspect-ratio: 1 / var(--r); overflow: hidden; border-radius: var(--r-tile); background: var(--c, var(--surface-1)); outline: 0; text-decoration: none; }
.bp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bp-hero.vector { background: #fff; }
.bp-hero.vector img { object-fit: contain; object-position: center; padding: 8%; box-sizing: border-box; }
.bp-hero::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-tile); pointer-events: none; box-shadow: inset 0 0 0 1px var(--hover-ring); opacity: 0; transition: opacity var(--dur-quick) var(--ease-out); }
.bp-hero:hover::after { opacity: 1; }
.bp-hero:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-gap); }
.bp-groups { padding-top: var(--s-8); }
.bp-grp { margin-bottom: var(--s-8); }
.bp-gh { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); font-size: var(--t-16); font-weight: var(--w-semibold); letter-spacing: var(--track-display); line-height: 1.25; color: var(--text-1); }
.bp-gn { font-size: var(--t-13); font-weight: var(--w-regular); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bp-show { display: block; margin: var(--s-5) auto 0; min-height: var(--tap); padding: 0 var(--s-5); border: 0; border-radius: var(--r-control); background: var(--surface-2); color: var(--text-1); font: var(--w-medium) var(--t-13)/1 var(--font); cursor: pointer; transition: background var(--dur-hover) linear; }
.bp-show:hover { background: var(--surface-3); }
.bp-show:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-gap); }
.bp-sim { padding-top: var(--s-4); }
.bp-sim-h { font-size: var(--t-20); font-weight: var(--w-semibold); letter-spacing: var(--track-display); margin-bottom: var(--s-4); }
.bsim { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: var(--gutter); }
.bsim .bcell.static { height: 276px; }


@media (max-width: 1180px) {
  .bp-head.has-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .bp-hero { --hh: min(70vh, 640px); }
}
@media (max-width: 699px) {
  .bk-h { font-size: var(--t-28); }
  .bwrap { padding-top: var(--s-4); }
  .bfilter { margin-top: var(--s-3); gap: var(--s-3); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .bfilter .bf-c { flex-wrap: nowrap; }
  .bfilter .chip { flex: none; }
  .bf-l { display: none; }
  .bctl { gap: var(--s-3); margin-top: var(--s-4); }
  .bctl .sel { margin-left: auto; }
  .bp-head, .bp-head.has-hero { gap: var(--s-5); padding-top: var(--s-2); }
  .bp-hero { --hh: min(60vh, 520px); }
  .bp-meta { gap: var(--s-1) var(--s-4); margin-top: var(--s-3); }
  .bp-why { margin-top: var(--s-5); padding: var(--s-4); }
  .bp-groups { padding-top: var(--s-6); }
  .bp-grp { margin-bottom: var(--s-6); }
  .bsim { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .bsim .bcell.static { height: 116px; }
  .bsim .bcard { flex-direction: row; }
  .bsim .bmark { width: 104px; height: 100%; }
  .bsim .bbody { padding: var(--s-1) var(--s-2) var(--s-1) var(--s-4); gap: var(--s-1); justify-content: center; }
  .bsim .bone { -webkit-line-clamp: 1; }
}
@media (prefers-reduced-motion: reduce) { .bcard,  }
