/* Page chrome for the Work and Contact pages.

   Design tokens, fonts and the primary nav come from
   portfolio-experience.css, loaded alongside this file; everything else on
   both pages — and the whole of the About page — is styled by rebuild.css's
   .rb-* system. What is left here is the Work page's hero, filter bar and
   legacy footer, plus the placeholder colour the Contact form needs. */

/* -- page hero (kicker + big heading) -- */
.page-hero {
  padding: 150px 16px 64px;
  background: var(--ink);
}

.page-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.page-hero-kicker {
  margin-bottom: 22px;
  /* --muted resolves to plain --cream (portfolio-experience.css also uses
     it inside the frozen .expertise-section, so its value can't change) —
     a real dimmed tone is set directly here instead. */
  color: rgba(255, 253, 214, 0.6);
  text-transform: uppercase;
  font: 500 10px/1.25 'Neue Montreal', Arial, sans-serif;
  letter-spacing: 0.09em;
}

.page-hero-heading {
  margin: 0;
  color: var(--cream);
  text-transform: uppercase;
  font: 500 clamp(48px, 7vw, 108px)/0.92 'Neue Montreal', Arial, sans-serif;
  letter-spacing: -0.055em;
}

.page-hero-count {
  color: var(--muted);
  text-transform: uppercase;
  font: 500 10px/1.25 'Neue Montreal', Arial, sans-serif;
  letter-spacing: 0.09em;
  padding-bottom: 8px;
}

/* -- work: filters -- */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0 16px 48px;
  background: var(--ink);
}

.work-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  text-transform: uppercase;
  font: 500 11px/1 'Neue Montreal', Arial, sans-serif;
  letter-spacing: 0.1em;
}

.work-filter-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-filter-btn.is-active { color: var(--cream); }
.work-filter-btn.is-active .work-filter-dot { opacity: 1; }
.work-filter-btn:hover { color: var(--cream); }

.work-collection {
  padding: 0 16px 130px;
  background: var(--ink);
}

.work-item.is-hidden { display: none; }

/* .52 not .32 — placeholders are exempt from the AA text bar, but .32
   composites to 2.64:1 over --ink, which is genuinely hard to read on a dark
   form. .52 gives 5.05:1 and still sits clearly below the entered value. */
input::placeholder, textarea::placeholder { color: rgba(255,253,214,.52); }

@media (max-width: 600px) {
  .page-hero { padding: calc(env(safe-area-inset-top) + 128px) 16px 48px; }
  /* Five filters at a 28px gap overflow a phone well before they wrap
     into anything readable. A single snapping row that scrolls sideways
     keeps the set legible and reads as intentional rather than as a
     wrapped pile. */
  .work-filters {
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 36px;
  }
  .work-filters::-webkit-scrollbar { display: none; }
  .work-filter-btn {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .work-collection { padding-bottom: 96px; }
}

/* Touch devices at any width — a large tablet still has no hover. */
@media (hover: none) {
  /* Hover-only feedback is unreachable here, so the tap equivalents carry
     it — see the matching block in portfolio-experience.css. */
  .work-filter-btn:active { color: var(--cream); opacity: 0.7; }

  /* "All" is the shortest filter at ~36px wide; the rest already clear 44. */
  .work-filter-btn { min-width: 44px; justify-content: center; }
}
