/* ==========================================================================
   PROJECTS — "The portfolio". Only ongoing.html loads this file; the
   breadcrumb, section heads and buttons come from css/inner.css.

   §P1 the hero and its drawing · §P2 the finder · §P3 chips + results
   head · §P4 the card · §P5 empty state · narrow · motion
   ========================================================================== */

/* --- §P1  The hero ---------------------------------------------------------------------
   The words on the left; on the right, the drawing of the portfolio (below). */
.pfh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
  background: #071324;
  color: var(--c-ivory);
}
.pfh__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 70% 78%, rgb(208 173 103 / .14), transparent 70%),
    radial-gradient(70% 60% at 72% 40%, #12294a 0%, transparent 70%),
    linear-gradient(180deg, #08101f 0%, #0b1a30 52%, #0a1628 76%, #071324 100%);
}
.pfh__sky::before {                           /* the blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(208 173 103 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(208 173 103 / .06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 24% 46%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 24% 46%, #000, transparent 78%);
}

.pfh__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);   /* words 40%, skyline 60% */
  align-items: end;
  gap: var(--sp-lg) clamp(24px, 2.6vw, 48px);
  min-height: inherit;
  padding-block: clamp(120px, 15svh, 170px) clamp(150px, 19svh, 210px);
}
.pfh__copy { display: grid; justify-items: start; gap: var(--sp-sm); align-self: center; padding-block-end: 4vh; padding-inline-start: clamp(0px, 3vw, 56px); }

.pfh .crumbs__list { gap: 10px; color: var(--c-mist); }
.pfh .crumbs__list li + li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-inline-end: 10px;
  vertical-align: middle;
  background: var(--c-gold);
}
.pfh .crumbs__link { color: var(--c-ivory); }
.pfh .crumbs__link:hover { color: var(--c-gold); }
.pfh [aria-current="page"] { color: var(--c-gold); }

.pfh__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-gold);
}
.pfh__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.pfh__h {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(48px, min(6vw, 11svh), 108px);
  font-weight: var(--fw-medium);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--c-ivory);
}
.pfh__h em { font-style: italic; color: var(--c-gold); }
.pfh__rule {
  width: min(300px, 60%);
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  box-shadow: 0 0 14px rgb(208 173 103 / .5);
  transform-origin: left center;
}
.pfh__lead { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-mist); }

/* the drawing: "the villa by moonlight" — a front-elevation sketch in the manner of an
   architect's presentation drawing: board-marked concrete with stipple shading,
   diagonal cast shadows, big glazing behind a projecting frame, bare trees either
   side. Set at night: sand-ivory concrete, warm gold interiors, ivory-ink trees and
   a moon to cast the shadows. It draws itself in as the page arrives — gold pencil
   lines, the concrete inked up from the ground, the trees growing branch by branch,
   the lights coming on — then the trees sway and moonlight slides across. */
.pfh__art { display: grid; justify-items: center; align-self: end; min-width: 0; }
.pfe {
  position: relative;
  width: min(100%, calc(64svh * 1000 / 520));
  aspect-ratio: 1000 / 520;
}
.pfe__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* the moon and the trees */
.el-moon { filter: drop-shadow(0 0 14px rgb(243 223 174 / .45)); }
.el-tl { fill: none; stroke-linecap: round; }
.el-tree--front .el-tl { stroke: #ece4d2; stroke-opacity: .88; }
.el-tree--back .el-tl { stroke: var(--c-mist); stroke-opacity: .32; }
.el-tl0 { stroke-width: 5.2; } .el-tl1 { stroke-width: 3.2; } .el-tl2 { stroke-width: 2.1; } .el-tl3 { stroke-width: 1.4; }
.el-tl4 { stroke-width: 1; } .el-tl5 { stroke-width: .72; } .el-tl6 { stroke-width: .52; } .el-tl7 { stroke-width: .4; }
.el-tree { transform-box: fill-box; transform-origin: 50% 100%; }

/* the building */
.el-cons { fill: none; stroke: var(--c-gold); stroke-width: .9; stroke-opacity: .85; }
.el-conc { fill: #d2c9b7; }
.el-glass { fill: #0c2036; }
.el-lit { fill: url(#el-warm); }
.el-in { fill: none; stroke: #2a2014; stroke-opacity: .55; stroke-width: 1; }
.el-in--solid { fill: #1b1a1c; fill-opacity: .55; stroke: none; }
.el-lamp { fill: #fff2cf; filter: drop-shadow(0 0 5px #f3c97a); }
.el-refl { fill: #fff; fill-opacity: .06; }
.el-mull { fill: none; stroke: #0a1626; stroke-width: 2.6; }
.el-st { fill: url(#el-st); }
.el-st path, #el-st path { fill: #13283d; fill-opacity: .4; }
#el-st-d path { fill: #0f2238; fill-opacity: .55; }
.el-joint { fill: none; stroke: #13283d; stroke-opacity: .22; stroke-width: .8; }
.el-tie { fill: #13283d; fill-opacity: .38; }
.el-stairs { fill: none; stroke: #13283d; stroke-opacity: .5; stroke-width: 1; }
.el-sh { fill: #13283d; fill-opacity: .28; }
.el-fin { fill: #1a2c40; }
.el-fin-edge { fill: none; stroke: var(--c-mist); stroke-opacity: .35; stroke-width: .8; }
.el-ink { fill: none; stroke: #0f2238; stroke-opacity: .7; stroke-width: 1; }
.el-sweep { pointer-events: none; }
.el-sweep__move { opacity: 0; }
.el-accent { fill: var(--c-gold); filter: drop-shadow(0 0 6px rgb(240 200 120 / .8)); }
.el-ground { fill: none; stroke: var(--c-gold); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgb(208 173 103 / .6)); }
.el-ann { fill: none; stroke: var(--c-gold); stroke-opacity: .6; stroke-width: .8; }
.el-ann--lead { stroke-opacity: .32; stroke-dasharray: 3 3; }
.el-txt { fill: var(--c-gold); font: 600 9.5px var(--font-body); letter-spacing: .14em; }
.el-txt--c { text-anchor: middle; }
.el-title { text-transform: uppercase; letter-spacing: .22em; fill-opacity: .8; }

/* depth: the moon and far trees, the house, the near trees, each moved a little by the mouse */
.el-far { transform: translate(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 3px)); }
.el-mid { transform: translate(calc(var(--mx, 0) * -4px), calc(var(--my, 0) * -2px)); }
.el-near { transform: translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -5px)); }

/* --- it draws itself in --------------------------------------------------------------- */
.pfe [pathLength] { stroke-dasharray: 1 1; }
.js:not(.page-in) .pfe [pathLength] { stroke-dashoffset: 1; }
.js:not(.page-in) :is(.el-moon, .el-halo, .el-glass, .el-conc, .el-lit, .el-inside, .el-refl, .el-mull, .el-st, .el-ao, .el-joint, .el-tie, .el-stairs, .el-shadow, .el-fin, .el-fin-edge, .el-ink, .el-accent, .el-anno) { opacity: 0; }
.page-in .el-halo { animation: el-fade 2.4s ease-out both, el-breathe 6s ease-in-out 3s infinite alternate; }
.page-in .el-moon { animation: el-fade 1.6s ease-out .1s both; }
.page-in .el-ground { animation: el-draw 1.2s cubic-bezier(.65, 0, .35, 1) .2s both; }
.page-in .el-cons { animation: el-draw 1.7s cubic-bezier(.6, 0, .3, 1) .45s both; }
.page-in .el-tree--back .el-tl { animation: el-draw .5s ease-out calc(1.3s + var(--l) * .2s) both; }
.page-in .el-tree--front .el-tl { animation: el-draw .5s ease-out calc(1.6s + var(--l) * .2s) both; }
.page-in .el-solid { animation: el-wipe 1.3s cubic-bezier(.65, 0, .35, 1) 1.8s both; }
.page-in :is(.el-conc, .el-glass, .el-fin, .el-fin-edge) { animation: el-fade .4s ease-out 1.8s both; }
.page-in :is(.el-ink, .el-joint, .el-mull, .el-stairs) { animation: el-fade .9s ease-out 2.5s both; }
.page-in :is(.el-st, .el-ao, .el-tie, .el-refl) { animation: el-fade 1.1s ease-out 2.7s both; }
.page-in .el-shadow { animation: el-fade 1.2s ease-out 2.9s both; }
.page-in .el-lit { animation: el-fade .7s ease-out calc(3.1s + var(--w)) both, el-glow 5s ease-in-out calc(5s + var(--w) * 3) infinite alternate; }
.page-in .el-inside { animation: el-fade 1s ease-out 3.7s both; }
.page-in .el-accent { animation: el-pop .6s cubic-bezier(.34, 1.56, .64, 1) 3.8s both, el-pulse 3.2s ease-in-out 4.6s infinite; }
.page-in .el-accent--2 { animation-delay: 3.95s, 6.2s; }
.page-in .el-anno { animation: el-fade 1.2s ease-out 3.4s both; }
.page-in .el-tree--front { animation: el-sway 7s ease-in-out 4s infinite alternate; }
.page-in .el-tree--back { animation: el-sway-s 9s ease-in-out 4.5s infinite alternate; }
.page-in .el-sweep__move { animation: el-sweep 10s ease-in-out 5s infinite; }
.el-accent { transform-box: fill-box; transform-origin: center; }
@keyframes el-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes el-fade { from { opacity: 0; } }
@keyframes el-wipe { from { clip-path: inset(100% -40px 0 -40px); } to { clip-path: inset(-60px -40px 0 -40px); } }
@keyframes el-glow { from { opacity: 1; } to { opacity: .78; } }
@keyframes el-breathe { to { opacity: .7; } }
@keyframes el-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes el-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes el-sway { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
@keyframes el-sway-s { from { transform: rotate(.5deg); } to { transform: rotate(-.5deg); } }
@keyframes el-sweep {
  0%   { opacity: 0; transform: translateX(0); }
  12%  { opacity: 1; }
  55%  { opacity: 1; }
  70%, 100% { opacity: 0; transform: translateX(1100px); }
}

/* the words arrive */
.js:not(.page-in) .pfh [data-in] { opacity: 0; }
.page-in .pfh [data-in] { animation: phero-rise 1.1s var(--ease-css) both; }
.page-in .pfh [data-in="2"] { animation-delay: .12s; }
.page-in .pfh [data-in="3"] { animation-delay: .24s; }
.page-in .pfh [data-in="4"] { animation-delay: .4s; }
.js:not(.page-in) .pfh__rule { transform: scaleX(0); }
.page-in .pfh__rule { animation: phero-line 1.4s cubic-bezier(.65, 0, .35, 1) .34s both; }

/* --- §P2  The finder ------------------------------------------------------------------
   An ivory bar riding the seam between the hero and the grid: search, the
   three selects and the live count. It stays in place and scrolls with the
   page. */
.s-projects {
  --h: auto;
  --bg: var(--c-ivory);
  overflow: visible;
  padding-block-end: var(--section-gap);
}
.pf-finder {
  position: relative;
  z-index: 20;
  margin-block-start: calc(-1 * clamp(44px, 5vw, 52px));
}

.filters {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.4fr) auto;
  align-items: center;
  min-height: clamp(88px, 7vw, 104px);
  padding: 10px 10px 10px clamp(18px, 2vw, 28px);
  border: 1px solid rgb(23 62 98 / .1);
  border-radius: 22px;
  background: rgb(251 248 241 / .97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 6px rgb(var(--scrim) / .06), 0 30px 60px -30px rgb(var(--scrim) / .45);
}
.filters::before {                            /* the gold seam */
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.filters__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters__field { display: grid; gap: 6px; min-width: 0; padding-inline: clamp(14px, 1.6vw, 24px); }
.filters__field + .filters__field,
.filters__fields { border-inline-start: 1px solid rgb(23 62 98 / .1); }
.filters__fields .filters__field:first-child { border-inline-start: 0; }
.filters__field--search { padding-inline-start: 0; }
.filters__label {
  font-size: 10.5px;
  font-weight: var(--fw-semi);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
}
.filters__control { position: relative; display: flex; align-items: center; }
.filters__select,
.filters__input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-text);
  font-weight: var(--fw-semi);
  color: var(--c-navy);
  outline: none;
}
.filters__select { appearance: none; padding-inline-end: 28px; cursor: pointer; text-overflow: ellipsis; }
.filters__caret { position: absolute; right: 2px; width: 14px; height: 14px; color: var(--c-gold-ink); pointer-events: none; transition: rotate var(--dur-fast) var(--ease-css); }
.filters__control:focus-within .filters__caret { rotate: 180deg; }
.filters__control--search { gap: 12px; }
.filters__icon { flex: none; width: 19px; height: 19px; color: var(--c-gold-ink); }
.filters__input::placeholder { color: rgb(23 62 98 / .45); font-weight: var(--fw-medium); }
.filters__input::-webkit-search-cancel-button { filter: grayscale(1); }
.filters__field:focus-within .filters__label { color: var(--c-navy); }

.filters__total {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 96px;
  height: 100%;
  min-height: 64px;
  padding-inline: 18px;
  border-radius: 14px;
  background: var(--c-navy);
  color: var(--c-ivory);
  line-height: 1;
}
.filters__total b { font-family: var(--font-display); font-size: 34px; font-weight: var(--fw-medium); color: var(--c-gold); font-variant-numeric: lining-nums tabular-nums; }
.filters__total span { margin-block-start: 4px; font-size: 10px; font-weight: var(--fw-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--c-mist); }
.filters__total.is-bump b { animation: pf-bump .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pf-bump { 40% { scale: 1.25; } }

.filters__toggle { display: none; }
.filters__submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.s-projects:not(.is-enhanced) .filters__submit {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  min-height: 52px;
  padding-inline: 24px;
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-ivory);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.s-projects:not(.is-enhanced) .filters__total { display: none; }

/* --- §P3  Quick chips and the results head ------------------------------------------- */
.pj-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-block: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  padding-block-end: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--rule);
}
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 18px 8px;
  border: 1px solid rgb(23 62 98 / .16);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  color: var(--c-navy);
  transition: background-color var(--dur-fast) var(--ease-css), border-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.pj-chip b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 6px;
  border-radius: var(--r-pill);
  background: rgb(23 62 98 / .07);
  font-size: 11.5px;
  font-weight: var(--fw-bold);
  color: var(--c-navy);
}
.pj-chip:hover { border-color: var(--c-navy); }
.pj-chip.is-active { border-color: var(--c-navy); background: var(--c-navy); color: var(--c-ivory); }
.pj-chip.is-active b { background: var(--c-gold); color: var(--c-navy); }

.results__head { display: flex; align-items: baseline; gap: var(--sp-sm); }
.results__h {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--c-navy);
}
.results__h [data-result-count] { color: var(--c-gold-ink); font-variant-numeric: lining-nums; }
.results__clear,
.results__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  color: var(--c-gold-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.results__clear svg { width: 14px; height: 14px; }
.results__clear:hover,
.results__reset:hover { color: var(--c-navy); }

/* --- §P4  The card ----------------------------------------------------------------------
   An ivory plate: the picture inset with its status and number, then the
   name, where and what. On a fine pointer it tilts towards the cursor with a
   sheen (js/projects-filter.js sets --rx / --ry / --mx / --my). */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
}
.pjcard[hidden] { display: none; }
.pjcard { perspective: 1200px; }
.pjcard__link {
  position: relative;
  display: grid;
  height: 100%;
  padding: 12px;
  border: 1px solid rgb(23 62 98 / .1);
  border-radius: 22px;
  background: #fbf8f1;
  box-shadow: 0 1px 2px rgb(var(--scrim) / .05), 0 18px 40px -30px rgb(var(--scrim) / .35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-css), box-shadow .5s var(--ease-css), border-color .5s var(--ease-css), translate .5s var(--ease-css);
}
.pjcard__link:hover,
.pjcard__link:focus-visible {
  translate: 0 -6px;
  border-color: rgb(208 173 103 / .55);
  box-shadow: 0 2px 6px rgb(var(--scrim) / .06), 0 40px 70px -36px rgb(var(--scrim) / .5);
}
.pjcard.is-tilting .pjcard__link { transition: transform .12s linear, box-shadow .5s var(--ease-css), border-color .5s var(--ease-css), translate .5s var(--ease-css); }

.pjcard__frame {
  position: relative;
  display: block;
  aspect-ratio: 10 / 11;
  overflow: hidden;
  border-radius: 14px;
  background: var(--c-sand);
}
.pjcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-css);
}
.pjcard__link:hover .pjcard__img { transform: scale(1.06); }
.pjcard__frame::after {                       /* a soft foot so the chips read */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(var(--scrim) / .35), transparent 30%, transparent 70%, rgb(var(--scrim) / .25));
  pointer-events: none;
}

.pjcard__status {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  border-radius: var(--r-pill);
  background: rgb(11 25 40 / .72);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ivory);
}
.pjcard__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 8px var(--c-gold); }
.pjcard__status[data-s="upcoming"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-gold); }
.pjcard__status[data-s="ready"]::before { background: var(--c-ivory); box-shadow: 0 0 8px rgb(248 245 239 / .8); }
.pjcard__status[data-s="handed-over"]::before { background: var(--c-mist); box-shadow: none; }

.pjcard__num {
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--fw-medium);
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--c-ivory);
  text-shadow: 0 2px 16px rgb(var(--scrim) / .6);
}
.pjcard__go {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-navy);
  box-shadow: 0 10px 24px -8px rgb(var(--scrim) / .55);
  opacity: 0;
  scale: .6;
  transition: opacity .4s var(--ease-css), scale .5s cubic-bezier(.34, 1.56, .64, 1);
}
.pjcard__go svg { width: 22px; height: 10px; }
.pjcard__link:hover .pjcard__go,
.pjcard__link:focus-visible .pjcard__go { opacity: 1; scale: 1; }
.pjcard__sheen {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(60% 50% at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .22), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease-css);
  pointer-events: none;
}
.pjcard.is-tilting .pjcard__sheen { opacity: 1; }

.pjcard__body { display: grid; align-content: start; gap: 10px; padding: 18px 8px 6px; }
.pjcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pjcard__type { font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.pjcard__place { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-small); color: var(--c-slate); }
.pjcard__place svg { width: 14px; height: 14px; color: var(--c-gold-ink); }
.pjcard__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2vw, 32px);
  font-weight: var(--fw-medium);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--c-navy);
  transition: color var(--dur-fast) var(--ease-css);
}
.pjcard__link:hover .pjcard__title { color: var(--c-gold-ink); }
.pjcard__specs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, auto);
  justify-content: start;
  margin-block-start: 4px;
  padding-block: 14px 2px;
  border-top: 1px solid var(--rule);
}
.pjspec { display: grid; gap: 4px; padding-inline: 16px; }
.pjspec:first-child { padding-inline-start: 0; }
.pjspec + .pjspec { border-inline-start: 1px solid var(--rule); }
.pjspec__k { font-size: 10px; font-weight: var(--fw-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); }
.pjspec__v { font-size: var(--fs-small); font-weight: var(--fw-semi); color: var(--c-ink); white-space: nowrap; }
.pjcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 6px;
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-navy);
}
.pjcard__cta svg { width: 24px; height: 10px; transition: translate var(--dur-fast) var(--ease-css); }
.pjcard__link:hover .pjcard__cta svg { translate: 6px 0; }

/* --- §P5  Nothing matches ----------------------------------------------------------------- */
.results__empty {
  display: grid;
  justify-items: center;
  gap: var(--sp-sm);
  padding: clamp(40px, 6vw, 80px) var(--sp-md);
  border: 1px dashed rgb(127 95 40 / .35);
  border-radius: 22px;
  text-align: center;
  color: var(--c-slate);
}
.results__empty[hidden] { display: none; }
.results__art { width: 140px; height: auto; color: var(--c-gold-ink); }
.results__empty p { max-width: 40ch; font-size: var(--fs-text); line-height: 1.6; }
.results__empty strong {                      /* upcoming.html: the empty state's own title */
  display: block;
  margin-block-end: 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: var(--fw-medium);
  line-height: 1.1;
  color: var(--c-navy);
}

/* --- narrow -------------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .pfh { min-height: 0; }
  .pfh__in {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 120px 150px;
    gap: clamp(36px, 7vw, 56px);
  }
  .pfh__copy { padding-block-end: 0; padding-inline-start: 0; }
  .pfe { width: 100vw; margin-inline: calc(50% - 50vw); }   /* edge to edge */

  /* the finder: search and a Filters button; the selects fold below */
  .filters {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 10px 10px 18px;
  }
  .filters__field--search .filters__label { display: none; }
  .filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 16px;
    border-radius: 14px;
    background: var(--c-navy);
    color: var(--c-ivory);
    font-size: var(--fs-label);
    font-weight: var(--fw-semi);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .filters__toggle svg { width: 18px; height: 18px; color: var(--c-gold); }
  .filters__toggle b {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-gold);
    font-size: 11px;
    color: var(--c-navy);
  }
  .filters__toggle b[hidden] { display: none; }
  .filters__fields {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-top: 1px solid rgb(23 62 98 / .1);
    padding-block-start: 6px;
  }
  .s-projects.is-enhanced .filters:not(.is-open) .filters__fields { display: none; }
  .filters__fields .filters__field { padding: 10px 4px; border-inline-start: 0; }
  .filters__fields .filters__field + .filters__field { border-top: 1px solid rgb(23 62 98 / .08); }
  .filters__total { display: none; }
  .pj-bar { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 639px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .pfh__in { padding-block: 104px 132px; }
  .el-txt { display: none; }                  /* too small to read on a phone */
  .pj-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-inline: -4px; padding: 4px; scrollbar-width: none; }
  .pj-chips::-webkit-scrollbar { display: none; }
  .pj-chip { flex: none; }
}

/* --- motion reduced --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-in .pfh [data-in],
  .page-in .pfh__rule,
  .page-in .pfe * { animation: none !important; }
  .js:not(.page-in) .pfh [data-in],
  .js:not(.page-in) :is(.el-moon, .el-halo, .el-glass, .el-conc, .el-lit, .el-inside, .el-refl, .el-mull, .el-st, .el-ao, .el-joint, .el-tie, .el-stairs, .el-shadow, .el-fin, .el-fin-edge, .el-ink, .el-accent, .el-anno) { opacity: 1; }
  .js:not(.page-in) .pfe [pathLength] { stroke-dashoffset: 0; }
  .js:not(.page-in) .pfh__rule { transform: none; }
  .pfe g,
  .pjcard__link,
  .pjcard__img { transition: none; }
}
