/* All projects (/projects): the big title, service filters and a grid of project cards,
   in the site's black, cream and blue. Built by scripts/make-projects.py. */
.pj-wrapper {
  min-height: 100vh;
  padding: 108px 4vw 90px;               /* clear of the header; the footer follows the grid */
  box-sizing: border-box;
  background: #000;
  color: var(--beige, #f7f2e2);
}
.pj-title {
  margin: 0 auto 28px;
  width: 100%;
  color: var(--blue, #1610e8);
  font-family: Area, Arial, sans-serif;
  font-weight: 900;
  font-size: 12vw;                         /* fitted to one line by fit-title.js */
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

/* filters: bracket-style chips, the chosen one in blue */
.pj-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0 0 40px; }
.pj-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(247, 242, 226, .28); background: transparent; color: inherit;
  font: 400 13px/1 Fonntsreg, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.pj-chip i { font-style: normal; font-size: 11px; opacity: .55; }
.pj-chip:hover { border-color: var(--beige, #f7f2e2); }
.pj-chip[aria-pressed="true"] { background: var(--blue, #1610e8); border-color: var(--blue, #1610e8); color: #fff; }
.pj-chip[aria-pressed="true"] i { opacity: .8; }

/* the grid */
.pj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
@media (max-width: 1199px) { .pj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .pj-wrapper { padding-top: 84px; } }

.pj-card { display: block; color: inherit; text-decoration: none; }
.pj-card[hidden] { display: none; }
.pj-img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0e0e10; }
.pj-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.pj-img::after {                           /* a thin blue line draws across on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--blue, #1610e8); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.pj-card:hover .pj-img img, .pj-card:focus-visible .pj-img img { transform: scale(1.06); }
.pj-card:hover .pj-img::after, .pj-card:focus-visible .pj-img::after { transform: scaleX(1); }
.pj-text { display: grid; gap: 3px; margin-top: 12px; text-transform: uppercase; }
.pj-text b { font: 400 15px/1.25 Fonntsbold, Arial, sans-serif; letter-spacing: .02em; }
.pj-text span { font: 400 12px/1.35 Fonntsthin, Arial, sans-serif; opacity: .8; }
.pj-tag { display: block; margin-top: 8px; font: 400 10px/1.3 Fonntsreg, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--blue, #1610e8); filter: brightness(1.6); }
@media (max-width: 767px) {
  .pj-text b { font-size: 13px; }
  .pj-text span { font-size: 11px; }
  .pj-tag { font-size: 9px; }
}
.pj-empty { text-align: center; opacity: .6; margin-top: 40px; }

/* cards rise in with the curtain (projects.js), and when a filter changes */
html.js-curtain .pj-card { opacity: 0; transform: translateY(26px); }
.pj-card.is-in { opacity: 1 !important; transform: none !important; transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: reduce) { html.js-curtain .pj-card { opacity: 1; transform: none; } }

/* Projects page (the turning circle): "See all projects", centred just above the footer */
.az-all-projects {
  position: fixed; left: 50%; bottom: 92px; z-index: 60; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(247, 242, 226, .45); color: var(--beige, #f7f2e2); text-decoration: none; white-space: nowrap;
  font: 400 13px/1 Fonntsreg, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s, color .25s, border-color .25s;
}
.az-all-projects span { transition: transform .25s; }
.az-all-projects:hover, .az-all-projects:focus-visible { background: var(--blue, #1610e8); border-color: var(--blue, #1610e8); color: #fff; }
.az-all-projects:hover span { transform: translateX(4px); }
html.menu-open .az-all-projects { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .az-all-projects { bottom: 64px; height: 38px; font-size: 12px; } }

/* and a soft black band under the logo and menu button at the top */
.pj-wrapper::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 86px; z-index: 40; pointer-events: none;
  background: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0));
}

/* phones: the filters are one compact row that scrolls sideways */
@media (max-width: 767px) {
  .pj-filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 -4vw 28px; padding: 0 4vw; gap: 8px; -webkit-overflow-scrolling: touch;
  }
  .pj-filters::-webkit-scrollbar { display: none; }
  .pj-chip { flex: none; height: 32px; padding: 0 12px; font-size: 11px; }
  .pj-title { margin-bottom: 20px; }
}

/* the page's footer sits after the grid: it shows where the page ends (not pinned over the cards) */
.footer-white.pj-footer { position: relative; inset: auto; margin-top: 0; padding: 0 0 18px; }
