/* Project pages (projects/<slug>/). Tokens and pills come from style.css. */
.pj-nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; padding: 12px 16px; pointer-events: none; }
.pj-nav .pill { pointer-events: auto; }
.pj-nav nav { display: flex; gap: 2px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }

.pj-top { display: grid; gap: 14px; padding: 9svh 0 40px; }
.pj-k { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pj-h { margin: 0; font-size: clamp(48px, 7vw, 104px); line-height: .95; letter-spacing: -0.045em; font-weight: 500; }
.pj-line { margin: 0; max-width: 54ch; font-size: 19px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.pj-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.pj-live { height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 500; }

/* Versions: segmented pill, keeps its width, swaps the picture in place. */
.pj-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--pill); }
.pj-tabs button { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.pj-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px #11111114; }
.pj-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.pj-frame { margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 80px -40px #11111166, 0 0 0 1px #1111110f; }
.pj-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: #f6f6f4; border-bottom: 1px solid #1111110f; }
.pj-bar i { width: 10px; height: 10px; border-radius: 50%; background: #11111122; }
.pj-url { margin: 0 auto; padding: 0 12px; height: 24px; line-height: 24px; border-radius: 7px; background: #fff; font-size: 12px; color: var(--muted); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-full { width: 100%; height: auto; background: #fff; }
.pj-frame figcaption { padding: 12px 16px; font-size: var(--fs-s); color: var(--muted); background: #f6f6f4; border-top: 1px solid #1111110f; }

.pj-next { display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 8px 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--ink); color: inherit; text-decoration: none; }
.pj-next .pj-k { grid-column: 1; }
.pj-next-name { grid-column: 1; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.pj-next img { grid-column: 2; grid-row: 1 / 3; width: 100%; height: auto; border-radius: 14px; transition: scale .4s var(--ease-out); }
.pj-next:hover img { scale: 1.02; }
.pj-next:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }

/* Book a call at the very bottom of every project page. */
.pj-cta { display: grid; justify-items: center; gap: 12px; margin-top: 72px; padding: 56px 24px; border-radius: 24px; background: var(--hl); text-align: center; }
.pj-cta h2 { margin: 0; max-width: 18ch; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; }
.pj-cta p { margin: 0 0 8px; max-width: 44ch; font-size: 17px; }

@media (max-width: 700px) {
  main { padding: 0 14px 48px; }
  .pj-line { font-size: 17px; }
  .pj-act { flex-direction: column; align-items: stretch; }
  .pj-tabs { display: flex; } .pj-tabs button { flex: 1; }
  .pj-live { justify-content: center; height: 52px; }
  .pj-frame { border-radius: 12px; }
  .pj-next { grid-template-columns: 1fr; }
  .pj-next img { grid-column: 1; grid-row: auto; }
}
