/* Project gallery on /about (src/site/projects/Projects.astro). */
.pj { position: relative; z-index: 2; background: var(--pa-canvas); color: var(--pa-ink); }
.pj h2 { font: 800 clamp(30px, 4vw, 52px)/1.06 "Inter Tight", var(--pa-font-ui); letter-spacing: -.03em; margin: 8px 0 0; color: #eef4f4; }

/* ---------- B: pinned horizontal gallery ---------- */
.pjb { height: calc(var(--n) * 90vh + 60vh); }
.pjb-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); padding: 96px 0 30px; transition: background .8s var(--pa-ease); }
.pjb-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 0 max(32px, calc((100vw - 1200px) / 2)); }
.pjb-sub { max-width: 44ch; color: var(--pa-ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.pjb-track { display: flex; gap: 4vw; align-items: center; padding: 0 12vw; will-change: transform; }
.pjb-panel { flex: none; width: 76vw; max-width: 1180px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  transform-origin: center; transition: opacity .4s; }
.pjb-meta { display: grid; gap: 12px; }
.pjb-n { font: 800 88px/0.9 "Inter Tight", var(--pa-font-ui); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklch, var(--ac) 80%, white); }
.pjb-tag { font: 500 var(--pa-fs-xs) var(--pa-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.pjb-meta h3 { font: 700 30px/1.12 var(--pa-font-ui); letter-spacing: -.02em; margin: 0; color: #eef4f4; }
.pjb-meta p { margin: 0; color: var(--pa-ink-2); line-height: 1.55; }
.pjb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.pjb-facts span { display: grid; gap: 2px; font-size: 12.5px; color: var(--pa-ink-3); line-height: 1.35; }
.pjb-facts b { font: 800 26px/1 "Inter Tight", var(--pa-font-ui); color: #eef4f4; }
.pjb-meta .pa-btn { justify-self: start; }
.pjb-frame { display: block; border-radius: 14px; overflow: hidden; background: #0f1414; border: 1px solid var(--pa-line-strong);
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgba(255,255,255,.03), 0 0 90px -30px color-mix(in oklch, var(--ac) 60%, transparent); }
.pjb-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #1b2122; border-bottom: 1px solid var(--pa-line); }
.pjb-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4446; }
.pjb-bar span { margin: 0 auto; padding: 4px 16px; border-radius: 6px; background: #121718; font: 500 11.5px var(--pa-font-mono); color: var(--pa-ink-3); }
.pjb-shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pjb-shot img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; will-change: transform; }
.pjb-shot img[data-tall="1"] { height: auto; object-fit: initial; }
.pjb-progress { position: relative; display: flex; justify-content: space-between; margin: 0 max(32px, calc((100vw - 1200px) / 2)); padding-top: 14px; border-top: 1px solid var(--pa-line); }
.pjb-progress > span { position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--pa-link); }
.pjb-progress em { font: 500 12px var(--pa-font-mono); font-style: normal; color: var(--pa-ink-3); transition: color .3s; }
.pjb-progress em.on { color: var(--pa-ink); }
@media (max-width: 860px) {
  .pjb { height: auto; }
  .pjb-stage { position: static; height: auto; padding: 72px 0 40px; display: block; }
  .pjb-head { display: block; padding: 0 20px; } .pjb-sub { margin-top: 12px; }
  .pjb-track { flex-direction: column; padding: 32px 20px 0; gap: 56px; transform: none !important; }
  .pjb-panel { width: 100%; grid-template-columns: 1fr; gap: 18px; transform: none !important; opacity: 1 !important; }
  .pjb-n { font-size: 56px; } .pjb-progress { display: none; }
}
