/*
 * /en/work: case study index (Paper p-C-1 "Case studies index /work",
 * desktop 1440 + mobile 390). Values from get_jsx / get_computed_styles.
 */

/* ── Header (dark) ─────────────────────────────────────────────────── */
.work-head { background: var(--ink); color: var(--paper); }
.work-head__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
  padding-top: 176px;   /* 24 + nav 56 + 96, as on the board */
  padding-bottom: 96px;
}
.work-head__copy { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.work-head__eyebrow { color: var(--emerald); font-size: 13px; }
.work-head__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 33.14px + 3.81vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.955;
}
.work-head__sub { flex-shrink: 0; width: 380px; color: var(--text-on-ink); font-size: 18px; line-height: 28px; }

/* ── Cause filter ──────────────────────────────────────────────────── */
.work-filter__row { display: flex; align-items: center; gap: 10px; padding-top: 40px; }
.work-filter__label { padding-right: 8px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 18px; }
.work-filter__chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 3px 0; }

/* ── List ──────────────────────────────────────────────────────────── */
.work-list { padding-top: 56px; padding-bottom: 120px; }
.work-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.work-list__title { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.025em; line-height: 48px; }
.work-list__note { flex-shrink: 0; width: 400px; color: var(--muted); font-size: 15px; line-height: 22px; }
.work-list__empty { margin-top: 32px; color: var(--muted); font-size: 17px; }

/* Featured card */
.feat {
  display: flex;
  min-height: 520px;
  margin-top: 32px;
  border-radius: var(--radius-tile);
  background: var(--ink);
  overflow: clip;
}
.feat__img { flex-shrink: 0; width: 660px; height: auto; object-fit: cover; }
.feat__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  color: var(--paper);
}
.feat__top { display: flex; flex-direction: column; gap: 18px; }
.feat__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feat__title { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 44px; }
.feat__sum { color: var(--text-on-ink); font-size: 16px; line-height: 24px; }
.feat__proof { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.feat__stats { display: flex; align-items: flex-end; gap: 36px; }
.feat__stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.feat__stat-num { font-size: 40px; letter-spacing: -0.03em; line-height: 44px; }
.feat__stat--hero .feat__stat-num { color: var(--emerald); font-size: 72px; letter-spacing: -0.035em; line-height: 72px; }
.feat__stat-label { font-size: 15px; font-weight: 600; line-height: 20px; }
.feat__more { color: var(--emerald); font-size: 15px; font-weight: 600; line-height: 20px; }

/* Three cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--white);
  overflow: clip;
}
.case__img { flex-shrink: 0; width: 100%; height: 240px; object-fit: cover; }
.case__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 30px 32px;
}
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 30px; }
.case__sum { margin-top: -10px; color: var(--text-2); font-size: 15px; line-height: 22px; }
.case__proof { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--paper-2); }
.case__stat { display: flex; flex-direction: column; gap: 6px; }
.case__num { font-size: 48px; letter-spacing: -0.035em; line-height: 48px; }
.case__stat-label { font-size: 16px; font-weight: 600; line-height: 20px; }
.case__more { color: var(--deep-green); font-size: 15px; font-weight: 600; line-height: 20px; }

/* Hover: the photo leans in a little, the arrow moves (fine pointers only) */
.feat__img, .case__img { transition: transform 600ms var(--ease-out); }
.feat__more, .case__more { transition: transform var(--dur-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .feat:hover .feat__img, .case:hover .case__img { transform: scale(1.03); }
  .feat:hover .feat__more, .case:hover .case__more { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .feat__img, .case__img, .feat__more, .case__more { transition: none; transform: none !important; }
}

/* ══ Tablet ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1199px) {
  .work-head__inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .work-head__sub { width: auto; max-width: 520px; }
  .work-list__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-list__note { width: auto; max-width: 560px; }
  .feat { flex-direction: column; }
  .feat__img { width: 100%; height: 360px; }
  .cases { grid-template-columns: repeat(2, 1fr); }
}

/* ══ Mobile board (390) ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .work-head__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 114px 20px 48px; }
  .work-head__copy { gap: 16px; }
  .work-head__eyebrow { font-size: 12px; }
  .work-head__title { line-height: 48px; }
  .work-head__sub { width: auto; font-size: 16px; line-height: 24px; }

  /* Chips scroll sideways (Paper "M Filter chips (scrolls sideways)") */
  .work-filter__row { padding: 24px 0 0; }
  .work-filter__chips {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 3px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work-filter__chips::-webkit-scrollbar { display: none; }
  .work-filter .wrap { padding-inline: 0; }

  .work-list { padding: 48px 0 72px; }
  .work-list__head { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 4px 8px; border-bottom: 0; }
  .work-list__title { font-size: 32px; line-height: 36px; }
  .work-list__note { width: auto; font-size: 14px; line-height: 21px; }

  .feat { flex-direction: column; min-height: 0; margin-top: 16px; border-radius: var(--radius-card); }
  .feat__img { width: 100%; height: 230px; }
  .feat__body { gap: 14px; padding: 22px; }
  .feat__top { gap: 14px; }
  .feat__tags { gap: 6px; }
  .feat__tags .pill { padding: 5px 10px; }
  .feat__title { font-size: 26px; letter-spacing: -0.015em; line-height: 31px; }
  .feat__sum { font-size: 15px; line-height: 22px; }
  .feat__proof { gap: 12px; padding-top: 16px; }
  .feat__stats { flex-wrap: wrap; align-items: flex-start; column-gap: 28px; row-gap: 12px; }
  .feat__stat { gap: 2px; }
  .feat__stat--hero { flex-basis: 100%; }
  .feat__stat--hero .feat__stat-num { font-size: 56px; line-height: 56px; }
  .feat__stat-num { font-size: 30px; line-height: 34px; }
  .feat__stat-label { font-size: 14px; line-height: 18px; }
  .feat__stat--hero .feat__stat-label { font-size: 15px; line-height: 20px; }

  .cases { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .case { border-radius: var(--radius-card); }
  .case__img { height: 200px; }
  .case__body { gap: 14px; padding: 22px; }
  .case__tags { gap: 6px; }
  .case__tags .pill { padding: 5px 10px; }
  .case__title { font-size: 22px; letter-spacing: -0.015em; line-height: 28px; }
  .case__sum { margin-top: -4px; font-size: 14px; line-height: 21px; }
  .case__proof { gap: 14px; padding-top: 0; border-top: 0; }
  .case__stat { gap: 4px; }
  .case__num { font-size: 44px; letter-spacing: -0.03em; line-height: 44px; }
  .case__stat-label { font-size: 15px; line-height: 20px; }
}
