/* builds.css: Builds hub. Loads after styles.css and uses its tokens. Every class starts with b- */
.b-list { display: flex; flex-direction: column; gap: 1rem; }
.b-card { border: 1px solid var(--hairline); border-radius: 14px; background: var(--white); overflow: hidden; transition: border-color .25s, box-shadow .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.b-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.b-card.open { border-color: var(--ink); box-shadow: 0 24px 50px -28px rgba(30,45,66,.35); transform: none; }

.b-head { display: grid; grid-template-columns: clamp(8rem, 19vw, 12.5rem) minmax(0, 1fr); gap: 1.1rem 1.6rem; padding: 1rem; align-items: center; }
.b-head.no-thumb { grid-template-columns: minmax(0, 1fr); }
.b-card.flip .b-head { grid-template-columns: minmax(0, 1fr) clamp(8rem, 19vw, 12.5rem); }
.b-card.flip .b-thumb { order: 2; }

.b-thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: var(--mist); cursor: zoom-in; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.b-thumb:hover { transform: rotate(-1.2deg) scale(1.02); }
.b-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.b-thumb img.svg { object-fit: contain; object-position: center; padding: .5rem; }
.b-num { position: absolute; left: .45rem; bottom: .35rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; line-height: 1; color: var(--white); background: var(--ink); border-radius: 6px; padding: .2rem .35rem; }

.b-copy { min-width: 0; display: flex; flex-direction: column; gap: .4rem; padding: .2rem .3rem; }
.b-meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.b-badge { flex: none; border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; padding: .15rem .5rem; }
.b-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.b-hook { color: var(--steel); font-size: .94rem; line-height: 1.55; max-width: 64ch; text-wrap: pretty; }
.b-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.b-chip { font-size: .72rem; background: var(--mist); padding: .18rem .55rem; border-radius: 999px; }
.b-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--hairline); }
.b-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.b-link { font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--mist); border: 1px solid transparent; border-radius: 999px; padding: .32rem .8rem; text-decoration: none; transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s; }
.b-link:hover { background: var(--mist-deep); transform: translateY(-1px); }
.b-link.demo { background: var(--accent); color: #fff; }
.b-link.demo:hover { background: var(--steel); }
.b-btn { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border-radius: 999px; border: none; font-family: var(--body); font-size: .82rem; font-weight: 700; background: var(--ink); color: var(--white); cursor: pointer; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.b-btn:hover { transform: scale(1.05) rotate(-1.5deg); }
.b-btn i { font-style: normal; display: inline-block; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.b-card.open .b-btn i { transform: rotate(45deg); }

.b-walk { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.2rem 1.8rem; padding: 1.1rem; background: var(--mist); border-top: 1px solid var(--hairline); }
.b-walk.no-media { grid-template-columns: minmax(0, 1fr); }
.b-card.open .b-walk { display: grid; animation: b-in .45s cubic-bezier(.34,1.3,.5,1); }
@keyframes b-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.b-fig { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.b-media { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 16rem; padding: 0; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: var(--white); cursor: zoom-in; }
.b-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .5s ease, transform .9s cubic-bezier(.3,.8,.2,1); }
.b-media img.svg, .b-media .b-dia { object-fit: contain; object-position: center; padding: .6rem; }
.b-dia { opacity: 0; }
.b-dia.on { opacity: 1; }
.b-vis.off { opacity: 0; transform: scale(1.04); }
.b-zoom { position: absolute; right: .5rem; bottom: .5rem; font-family: var(--mono); font-size: .55rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--white); border-radius: 999px; padding: .25rem .55rem; opacity: 0; transition: opacity .2s; }
.b-media:hover .b-zoom, .b-media:focus-visible .b-zoom { opacity: 1; }
.b-cap { font-size: .76rem; color: var(--steel); line-height: 1.45; }

.b-panel { min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.b-ptop { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.b-mono { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.b-x { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--hairline); background: var(--white); font-size: 1.05rem; line-height: 1; color: var(--ink); cursor: pointer; transform: rotate(45deg); transition: transform .45s cubic-bezier(.34,1.56,.64,1), border-color .2s; }
.b-x:hover { transform: rotate(135deg); border-color: var(--ink); }
.b-step-h { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.025em; line-height: 1.1; }
.b-step-t { font-size: .98rem; line-height: 1.65; max-width: 58ch; text-wrap: pretty; }
.b-step-t.b-in { animation: b-in .4s ease; }
.b-end { margin-top: .1rem; }
.b-links[hidden] { display: none; }
.b-nav { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.b-back { background: none; border: none; padding: .35rem 0; font-family: var(--body); font-size: .84rem; font-weight: 700; color: var(--steel); cursor: pointer; }
.b-back:hover { color: var(--ink); }
.b-back:disabled { opacity: .35; cursor: default; }
.b-dots { display: flex; gap: 5px; }
.b-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--hairline); cursor: pointer; transition: width .45s cubic-bezier(.34,1.56,.64,1), background .25s; }
.b-dot.on { width: 22px; background: var(--ink); }
.b-next { flex: none; white-space: nowrap; padding: .45rem .95rem; border-radius: 999px; border: none; background: var(--ink); color: var(--white); font-family: var(--body); font-size: .82rem; font-weight: 700; cursor: pointer; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.b-next:hover { transform: scale(1.05); }

.b-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,19,31,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: clamp(1rem, 4vw, 3rem); cursor: zoom-out; animation: b-in .25s ease; }
.b-lightbox img { max-width: 100%; max-height: 82vh; width: auto; border-radius: 10px; background: #fff; }
.b-lb-cap { color: #fff; font-size: .85rem; text-align: center; }

@media (max-width: 720px) {
  .b-walk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .b-head, .b-card.flip .b-head { grid-template-columns: minmax(0, 1fr); }
  .b-card.flip .b-thumb { order: 0; }
  .b-thumb { aspect-ratio: 16 / 7; }
}
@media (prefers-reduced-motion: reduce) { .b-card, .b-btn, .b-thumb, .b-media img, .b-dot { transition: none; } .b-card.open .b-walk, .b-step-t.b-in, .b-lightbox { animation: none; } }
