/* projects.html · the feed: a single column of wide sample project cards (JobCard rules) that stream in, filter
   pills on top, and a sticky "How a proposal works" panel with a tiny proposal that assembles itself. Teal-leaning,
   category hues on spines, eyebrows and skill chips. */

.pjh { padding: 116px 0 18px; background: linear-gradient(180deg, var(--teal-soft) 0%, #f3faf9 55%, #fff 100%); }
.pjh__in { position: relative; }
.pjh__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pjh__tag span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-m); box-shadow: 0 0 0 0 rgba(0, 174, 169, .5); }
.is-live .pjh__tag span { animation: pj-ping 2.2s ease-out infinite; }
@keyframes pj-ping { 70% { box-shadow: 0 0 0 8px rgba(0, 174, 169, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 174, 169, 0); } }
.pjh__title { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.2vw, 76px); line-height: .95; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.pjh__title em { font-style: normal; color: var(--teal); }
.pjh__lead { margin-top: 16px; max-width: 48em; font-size: 17.5px; color: var(--text); }

/* ═══ layout ═══ */
.feed { padding: 8px 0 clamp(72px, 8vw, 120px); }
.feed__in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .feed__in { grid-template-columns: minmax(0, 1fr) 336px; gap: 36px; } }
@media (min-width: 1300px) { .feed__in { grid-template-columns: minmax(0, 1fr) 360px; gap: 52px; } }

/* ═══ filter pills ═══ */
.flt { display: grid; gap: 12px; }
.flt__cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; margin: 0 -2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.flt__cats::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s, transform .3s var(--spring); }
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pill:active { transform: scale(.95); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.pill[aria-pressed="true"] { background: var(--cs, var(--ink)); color: var(--cd, #fff); box-shadow: inset 0 0 0 1.5px var(--c, var(--ink)); }
.pill.is-all[aria-pressed="true"], .pill--s[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pill--s { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.flt__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.flt__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.flt__l { margin-inline-end: 4px; font-weight: 700; font-size: 13px; color: var(--muted); }
.flt__sort { display: inline-flex; align-items: center; gap: 4px; }
.flt__sort .inp { min-height: 40px; width: auto; padding-block: 6px; font-size: 15px; font-weight: 700; border-radius: 999px; }

.feed__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 16px 0 12px; }
.feed__count { margin-inline-end: auto; font-weight: 700; font-size: 14px; color: var(--muted); }
.incoming { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(5, 105, 107, .9); animation: pj-drop .6s var(--spring) both; }
.incoming:hover { background: #045759; }
.incoming__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-lifestyle-s); animation: pj-blink 1.2s ease-in-out infinite; }
@keyframes pj-drop { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes pj-blink { 50% { opacity: .3; } }

/* ═══ the card (JobCard) ═══ */
.pjs { display: grid; gap: 14px; }
.pj { position: relative; display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-s), inset 0 0 0 1px rgba(3, 21, 20, .06); overflow: hidden; transition: transform .45s var(--spring), box-shadow .3s; }
.pj:hover { transform: translateY(-2px); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(3, 21, 20, .06); }
.pj__spine { grid-row: 1 / span 2; background: var(--c); transform-origin: 50% 0; transition: transform .5s var(--spring); }
.pj__body { padding: 20px 22px 0; min-width: 0; }
.pj__side { grid-column: 2; display: grid; gap: 12px; padding: 14px 22px 20px; }
.pj__eye { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--cd); }
.pj__eye svg { width: 22px; height: 22px; padding: 3px; border-radius: 7px; background: var(--cs); fill: none; stroke: var(--cd); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pj__new { margin-inline-start: 4px; padding: 3px 9px; border-radius: 999px; background: var(--teal-m); color: #fff; font-size: 11.5px; letter-spacing: .04em; }
.pj__t { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(21px, 2vw, 27px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.pj__t a { color: inherit; text-decoration: none; }
.pj__t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pj__t a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c); }
.pj__t a:focus-visible { outline: none; }
.pj:has(.pj__t a:focus-visible) { outline: 3px solid var(--teal-m); outline-offset: 3px; }
.pj__x { margin-top: 8px; max-width: 58ch; font-size: 16px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj__sk { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pj__sk li { padding: 5px 11px; border-radius: 999px; background: var(--cs); color: var(--cd); font-weight: 700; font-size: 13px; }
.pj__b { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pj__b b { font-family: var(--display); font-size: clamp(24px, 2.3vw, 30px); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pj__b small { font-weight: 700; font-size: 13px; color: var(--muted); }
.pj__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.pj__p { padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pj__p.is-low { background: var(--cat-admin-s); color: var(--cat-admin-d); }
.pj__p.is-mid { background: var(--cat-tech-s); color: var(--cat-tech-d); }
.pj__p.is-high { background: #eceef1; color: #4b5563; }
.pj__c { font-weight: 700; color: var(--ink); }
.pj__c::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--faint); vertical-align: middle; }
.pj__go { position: relative; z-index: 2; justify-self: start; }
@media (min-width: 720px) {
  .pj { grid-template-columns: 7px minmax(0, 1fr) 228px; }
  .pj__body { padding: 22px 24px 22px 26px; }
  .pj__side { grid-column: 3; grid-row: 1; align-content: start; padding: 22px 22px 22px 0; }
  .pj__go { justify-self: stretch; }
  .pj__meta { display: grid; gap: 6px; justify-items: start; }
}
.pj:hover .pj__spine { transform: scaleX(1.6); }

/* streaming in: each card lands from above with a single sheen pass */
.js .pj { opacity: 0; transform: translateY(-16px) scale(.985); }
.js .pj.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .8s var(--spring), box-shadow .3s; }
.js .pj.is-in:hover { transform: translateY(-2px); }
.pj::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(0, 174, 169, .13) 50%, transparent 70%); transform: translateX(-110%); }
.pj.is-in::after { animation: pj-sheen 1.1s .1s ease-out both; }
@keyframes pj-sheen { to { transform: translateX(110%); } }
.js .pj.is-out { opacity: 0; transform: translateX(26px) scale(.97); transition: opacity .25s ease, transform .3s ease; }
.pj.is-fresh { box-shadow: 0 0 0 3px var(--teal-m), var(--shadow-l); }

.empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border-radius: 24px; background: var(--paper); text-align: center; }
.empty__art { position: relative; display: block; width: 120px; height: 70px; margin-bottom: 6px; }
.empty__art i { position: absolute; left: 0; right: 0; height: 18px; border-radius: 8px; background: #fff; box-shadow: inset 4px 0 0 var(--teal-m), 0 6px 14px -8px rgba(3, 21, 20, .4); }
.empty__art i:nth-child(1) { top: 0; transform: rotate(-4deg); }
.empty__art i:nth-child(2) { top: 26px; left: 10px; right: -10px; box-shadow: inset 4px 0 0 var(--cat-design), 0 6px 14px -8px rgba(3, 21, 20, .4); }
.empty__art i:nth-child(3) { top: 52px; transform: rotate(3deg); box-shadow: inset 4px 0 0 var(--orange), 0 6px 14px -8px rgba(3, 21, 20, .4); }
.empty__t { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); }
.empty__p { max-width: 30em; color: var(--muted); font-size: 16px; }
.empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.feed__note { margin-top: 18px; }

/* ═══ side panel: how a proposal works ═══ */
.how { position: relative; }
@media (min-width: 1000px) { .how { position: sticky; top: 92px; margin-top: -4px; } }
.how__card { padding: 24px; border-radius: 28px; background: linear-gradient(170deg, #e9f6f5, #f6fbfa); box-shadow: inset 0 0 0 1px rgba(5, 105, 107, .14); }
.how__title { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.pp { display: grid; gap: 8px; margin-top: 16px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-s); }
.pp__row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: 11px; opacity: .45; transition: opacity .35s, box-shadow .35s, background .35s; }
.pp__row.is-on { opacity: 1; background: #f3fbfa; box-shadow: inset 0 0 0 1.5px var(--teal-m); }
.pp__ln { display: grid; gap: 4px; flex: 1; }
.pp__ln i { height: 5px; border-radius: 3px; background: var(--ink); opacity: .55; transform-origin: 0 50%; }
.pp__ln i:nth-child(2) { width: 82%; }
.pp__ln i:nth-child(3) { width: 56%; }
.pp__row--letter.is-on .pp__ln i { animation: pj-type .9s var(--spring) both; }
.pp__row--letter.is-on .pp__ln i:nth-child(2) { animation-delay: .25s; }
.pp__row--letter.is-on .pp__ln i:nth-child(3) { animation-delay: .5s; }
@keyframes pj-type { from { transform: scaleX(0); } }
.pp__ct { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--cat-admin-s); color: var(--cat-admin-d); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.pp__row--bid { display: grid; gap: 3px; justify-content: stretch; }
.pp__bar { position: relative; display: block; height: 8px; margin-top: 16px; border-radius: 4px; background: var(--paper-2); }
.pp__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-m), var(--teal)); transform-origin: 0 50%; transform: scaleX(.9); transition: transform .9s var(--spring); }
.pp__mk { position: absolute; left: 90%; bottom: 12px; transform: translateX(-50%); padding: 1px 7px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11.5px; transition: transform .9s var(--spring); }
.pp__row--bid:not(.is-on) .pp__fill { transform: scaleX(.9); }
.pp__row--bid.is-on .pp__fill { animation: pj-bid 1.1s var(--spring) both; }
@keyframes pj-bid { from { transform: scaleX(.15); } }
.pp__ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-weight: 700; }
.pp__row--ms span { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 5px 0; border-radius: 9px; background: var(--cat-design-s); color: var(--cat-design-d); font-weight: 700; font-size: 12.5px; }
.pp__row--ms span:nth-child(2) { background: var(--cat-tech-s); color: var(--cat-tech-d); }
.pp__row--ms span:nth-child(3) { background: var(--cat-writing-s); color: var(--cat-writing-d); }
.pp__row--ms i { font-style: normal; font-size: 10px; opacity: .75; }
.pp__row--ms.is-on span { animation: pop .5s var(--spring) both; }
.pp__row--ms.is-on span:nth-child(2) { animation-delay: .12s; }
.pp__row--ms.is-on span:nth-child(3) { animation-delay: .24s; }
.pp__ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink); }
.pp__ok svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--teal-m); color: #fff; }
.pp__row--terms.is-on svg { animation: m-pop .5s var(--spring) both; }

.hs { display: grid; gap: 2px; margin-top: 14px; }
.hs__b { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: 14px; background: transparent; text-align: start; cursor: pointer; transition: background .25s; }
.hs__b:hover { background: rgba(255, 255, 255, .7); }
.hs__b[aria-pressed="true"] { background: #fff; box-shadow: 0 6px 16px -10px rgba(3, 21, 20, .35); }
.hs__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(5, 105, 107, .3); font-family: var(--display); font-size: 14px; color: var(--teal); transition: background .25s, color .25s; }
.hs__b[aria-pressed="true"] .hs__n { background: var(--teal); color: #fff; box-shadow: none; }
.hs__b b { display: block; font-size: 15.5px; color: var(--ink); }
.hs__b small { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.how__id { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.45; color: var(--text); }
.how__id svg { flex: none; width: 20px; height: 20px; color: var(--teal-m); }
.how__id b { color: var(--ink); }
.how__free { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.how .link { margin-top: 4px; color: var(--teal); font-size: 15px; }

/* ═══ close band ═══ */
.pjc { padding: clamp(64px, 8vw, 112px) 0; }
.pjc__in { display: grid; gap: 28px; align-items: end; }
.pjc__title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.6vw, 64px); line-height: .98; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.pjc__lead { margin-top: 14px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, .88); }
.pjc__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .pjc__in { grid-template-columns: minmax(0, 1.4fr) auto; } }

@media (max-width: 719px) {
  .pjh { padding-top: 100px; }
  .flt__row { display: grid; gap: 8px; }
  .flt__grp { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--g) * -1); padding: 2px var(--g); }
  .flt__grp::-webkit-scrollbar { display: none; }
  .flt__cats { margin: 0 calc(var(--g) * -1); padding-inline: var(--g); }
  .feed__bar { margin-top: 10px; }
  .incoming { order: 3; width: 100%; justify-content: center; }
  .pj__side { padding-top: 12px; }
  .pj__meta { gap: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .pj, .js .pj.is-out { opacity: 1; transform: none; }
  .pj::after, .pjh__tag span, .incoming, .incoming__dot { animation: none !important; }
  .pp__row { opacity: 1; }
}

/* phone pass: 16px sort menu (no iOS zoom); small filter pills get a 40px target */
@media (max-width: 767px) {
  .flt__sort .inp { font-size: 16px; }
  .pill--s { min-height: 40px; }
}
