/* work.css — all-work page: title + grid (newest→oldest) + a floating combinator filter */

.work-head { padding-block: clamp(7rem, 16vh, 10rem) clamp(2rem, 5vh, 3rem); }
.work-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.04em;
  color: var(--sand); margin: 0;
}
.work-sub {
  margin: clamp(1.3rem, 3vh, 2.2rem) 0 0;
  font-family: var(--font-ui); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* grid of project thumbnails (reuses each project's img over its gradient) */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem);
  padding-bottom: clamp(7rem, 16vh, 10rem);   /* room so the floating bar never covers the last row */
}
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 11px; border: 0;                 /* no border — just the image */
  background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s var(--ease);
}
.work-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(15, 11, 5, 0.82)); transition: background 0.5s var(--ease); }
.work-card__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(0.9rem, 1.6vw, 1.3rem); display: flex; flex-direction: column; gap: 0.25rem; }
.work-card__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: -0.02em; color: var(--sand); }
.work-card__svcs { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--sand-dim); }
.work-card__sector { font-weight: 500; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-soft); margin-top: 0.15rem; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.6); }
.work-card:hover .work-card__shade { background: linear-gradient(180deg, rgba(220, 168, 92, 0.08) 20%, rgba(15, 11, 5, 0.85)); }
/* the .work-card display rule overrides the [hidden] attribute, so make hiding explicit */
.work-card[hidden] { display: none; }
/* filter microinteraction: staggered card entrance + title fade-in */
.work-card.card-in { animation: workCardIn 0.55s var(--ease-out) both; animation-delay: var(--stagger, 0ms); }
@keyframes workCardIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.work-title.swap { animation: workTitleIn 0.5s var(--ease-out); }
@keyframes workTitleIn { from { opacity: 0.25; filter: blur(6px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .work-card.card-in { animation: none; }
  .work-title.swap { animation: none; }
}

.work-empty { color: var(--muted); padding: 2rem 0 8rem; }

/* ---- floating combinator filter: fixed, bottom-centered, above the edge-fade ---- */
.work-combobar {
  position: fixed; left: 50%; bottom: clamp(1.1rem, 3.5vh, 2.2rem); transform: translateX(-50%);
  z-index: 7600;   /* above the bottom edge-fade (z7000) */
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: calc(100vw - 2rem);
  font-family: var(--font-display); font-weight: 300; font-size: clamp(0.92rem, 1.4vw, 1.15rem);
  letter-spacing: -0.01em; color: var(--sand);
  background: rgba(20, 15, 7, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.7rem 1.1rem; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}
.work-combobar__txt { white-space: nowrap; opacity: 0.92; }
.combo { display: inline-flex; }
.combo-select {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-family: inherit; color: var(--amber-soft);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--amber-soft);
  padding: 0 1.2em 0.05em 0.1em; cursor: pointer; max-width: 42vw; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D29A66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.05em center; background-size: 0.6em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.combo-select:hover, .combo-select:focus { color: var(--sand); border-bottom-color: var(--sand); outline: none; }
.combo-select option { background: var(--ink-2); color: var(--sand); font-size: 1rem; }
.work-combobar__reset {
  margin-left: 0.2rem; width: 22px; height: 22px; flex: 0 0 auto; display: inline-grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(236, 220, 190, 0.1); color: var(--sand-dim);
  font-size: 0.7rem; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.work-combobar__reset:hover { background: var(--amber-soft); color: var(--ink); }
.work-combobar__reset[hidden] { display: none; }
@media (max-width: 560px) { .work-combobar { font-size: 0.86rem; gap: 0.35rem; padding: 0.6rem 0.9rem; } .combo-select { max-width: 34vw; } }
