/* ==========================================================================
   Work archive — Figma "Work" 5099:9 (1920, dark).
   Hero: "OUR WORK" (left) + intro & booking pill (right) · a "filter" control ·
   a 2-up grid of landscape tiles (848×506) titled "Name – Industry".
   ========================================================================== */
figure.card-img { margin: 0; }

.section--work-archive { padding-top: clamp(96px, 9.0625vw, 174px); padding-bottom: clamp(72px, 10vh, 130px); }

/* ---- Hero ---------------------------------------------------------------- */
.work-archive__hero { margin-bottom: clamp(28px, 4.2vw, 81px); }          /* Figma: CTA pill bottom y580 → filter y668 */
.work-archive__hero-row {
  display: grid; grid-template-columns: 860fr 849fr;                 /* the .grid-2 split: intro column at x971 */
  column-gap: var(--col-gap); align-items: start;
}
/* design: "OUR WORK" 97px @1920 (≈5.05vw) — smaller than the homepage hero (7vw) */
.work-archive__title { margin-top: 29px; font-size: clamp(46px, 5vw, 96px); line-height: 1.01; text-transform: uppercase; }   /* 96 at 1920, y346 */
.work-archive__hero-aside { max-width: 696px; padding-top: 28px; }                          /* rule y315 (eyebrow y287 + 28) */
.work-archive__hero-aside::before { content: ""; display: block; width: 125px; border-top: 2px solid var(--accent); margin-bottom: 36px; }   /* Figma rule, intro y353 */
.work-archive__intro { margin: 0; color: var(--fg); font-size: var(--fs-body); line-height: var(--lh-body); }
.work-archive__cta { margin-top: clamp(28px, 3vw, 40px); }

/* ---- Filter -------------------------------------------------------------- */
.work-archive__filter { position: relative; z-index: 10; margin-bottom: clamp(28px, 3.4vh, 44px); }   /* above the grid: its reveal transform makes it a stacking context, so the menu's own z-index can't lift it over the tiles */
.work-archive__filter-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 254px; height: 46px; justify-content: space-between;         /* Figma 254 × 46, 2px green outline; grows for a long choice */
  white-space: nowrap; text-align: left; gap: 24px; max-width: 100%;
  padding: 0 22px; border: 2px solid var(--accent); border-radius: var(--radius-pill, 999px);
  background: transparent; color: var(--fg); cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 24px; text-transform: capitalize;
  transition: border-color .2s ease, background-color .2s ease;
}
.work-archive__filter-btn:hover { background: rgba(99,249,162,.08); }
.work-archive__filter-chev { color: var(--accent); }
.work-archive__filter-chev { transition: transform .25s ease; }
.work-archive__filter-btn[aria-expanded="true"] .work-archive__filter-chev { transform: rotate(180deg); }
.work-archive__filter-menu {
  position: absolute; z-index: 6; top: calc(100% + 8px); left: 0; min-width: 220px; margin: 0; padding: 8px;
  list-style: none; background: #14161a; border: 1px solid rgba(255,255,255,.18); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.work-archive__filter-opt {
  display: block; width: 100%; text-align: left; padding: 11px 16px; border: 0; border-radius: 10px;
  background: transparent; color: rgba(255,255,255,.82); cursor: pointer;
  font-family: inherit; font-size: 15px; transition: background-color .16s ease, color .16s ease;
}
.work-archive__filter-opt:hover { background: rgba(255,255,255,.06); color: var(--fg); }
.work-archive__filter-opt[aria-selected="true"] { color: var(--accent, #63f9a2); }

/* ---- Grid ---------------------------------------------------------------- */
.work-archive__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 2.3vw, 44px) clamp(12px, 1.04vw, 20px);                  /* Figma: 20 gutter, 591 row pitch */
}
.work-archive__card { display: flex; flex-direction: column; color: var(--fg); text-decoration: none; }
.work-archive__card[hidden] { display: none; }
.work-archive__media {
  display: block; aspect-ratio: 849 / 506; overflow: hidden; margin-bottom: 19px; background: #1a1c20; border-radius: 0;   /* square in the Figma */
}
.work-archive__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-archive__card:hover .work-archive__photo { transform: scale(1.04); }
.work-archive__name {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(20px, 1.667vw, 32px); line-height: 1.1;                   /* 32 at 1920, white */
}
.work-archive__dash { color: inherit; }

@media (max-width: 900px) {
  .work-archive__hero-row { grid-template-columns: 1fr; gap: 24px; }
  .work-archive__hero-aside { align-self: start; }
}
@media (max-width: 680px) {
  .work-archive__grid { grid-template-columns: 1fr; gap: 34px; }
  .section--work-archive { padding-top: 120px; }
}
