/*
 * /en/work/<slug>: case study template (Paper p-C-1 "Case study template
 * /work/als-foundation", desktop 1440 + mobile 390). Values from get_jsx.
 */

.cs-eyebrow { color: var(--deep-green); font-size: 13px; }
.cs-eyebrow--green { color: var(--emerald); }
.cs-h2 { font-family: var(--font-display); font-size: clamp(32px, 26.06px + 1.52vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }

/* ── Hero (dark) ───────────────────────────────────────────────────── */
.cs-hero { background: var(--ink); color: var(--paper); }
.cs-hero__inner { display: flex; flex-direction: column; gap: 56px; padding-top: 136px; /* 24 + nav 56 + 56 */ }
.cs-hero__top { display: flex; flex-direction: column; gap: 28px; }
.cs-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cs-hero__tags { display: contents; }
.cs-hero__back {
  color: var(--text-on-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  padding-block: 13px;
  margin-block: -13px;
}
@media (hover: hover) and (pointer: fine) { .cs-hero__back:hover { color: var(--paper); } }
.cs-hero__rule { width: 1px; height: 16px; background: var(--ink-line); }
.cs-hero__title {
  max-width: 1100px;
  font-family: var(--font-display);
  font-size: clamp(40px, 25.14px + 3.81vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.facts { display: flex; border-top: 1px solid var(--ink-line); }
.facts__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 300px;
  padding: 20px 32px;
  border-right: 1px solid var(--ink-line);
}
.facts__item:first-child { padding-left: 0; }
.facts__item:nth-child(2) { flex-basis: 380px; }
.facts__item:last-child { flex: 1 1 0; border-right: 0; }
.facts__label { color: var(--faint-on-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; line-height: 16px; text-transform: uppercase; }
.facts__value { font-size: 17px; font-weight: 500; line-height: 22px; }
.cs-hero__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-tile) var(--radius-tile) 0 0;
}

/* ── Split sections: The challenge, What this means for you ───────── */
.cs-split__inner { display: flex; gap: 80px; padding-top: 112px; padding-bottom: 96px; }
.cs-split__head { flex: 0 0 460px; display: flex; flex-direction: column; gap: 16px; }
.cs-split__body { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; padding-top: 36px; }
.cs-lead { font-size: 20px; line-height: 32px; }
.cs-body { color: var(--muted); font-size: 18px; line-height: 30px; }

/* ── What we did ───────────────────────────────────────────────────── */
.cs-steps { padding-block: 96px; }
.cs-steps__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cs-steps__titles { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.cs-steps__note { flex-shrink: 0; width: 320px; color: var(--muted); font-size: 14px; line-height: 20px; }
.steps { display: flex; gap: 24px; margin-top: 56px; padding: 0; }
.step { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 2px solid var(--ink); }
.step__n { color: var(--deep-green); font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 20px; }
.step__text { display: flex; flex-direction: column; gap: 14px; }
.step__title { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 28px; }
.step__body { color: var(--muted); font-size: 16px; line-height: 24px; }

/* ── Results (dark) ────────────────────────────────────────────────── */
.cs-results { background: var(--ink); color: var(--paper); padding-block: 112px; }
.cs-results__head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.cs-results__title { font-family: var(--font-display); font-size: clamp(32px, 23.09px + 2.29vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.036; }
.nums { display: flex; margin-top: 64px; border-top: 1px solid var(--ink-line); }
.nums__item { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; padding: 36px 40px 0; border-left: 1px solid var(--ink-line); min-width: 0; }
.nums__item:first-child { padding-left: 0; border-left: 0; }
.nums__num { order: 1; font-size: clamp(72px, 54.17px + 4.57vw, 120px); letter-spacing: -0.045em; line-height: 0.934; white-space: nowrap; }
.nums__num--green { color: var(--emerald); }
.nums__label { order: 2; font-size: 19px; font-weight: 600; line-height: 26px; }
.nums__src { order: 3; padding-top: 8px; color: var(--text-on-ink); font-size: 13px; line-height: 22px; }
.cs-results__note { max-width: 720px; margin-top: 64px; color: var(--faint-on-ink); font-size: 15px; line-height: 22px; }

/* ── Quote (only rendered with a written OK) ───────────────────────── */
.cs-quote .wrap { padding-top: 96px; }
.quote {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  border: 2px dashed var(--line-dashed);
  border-radius: var(--radius-tile);
}
.quote__mark { flex-shrink: 0; height: 72px; color: var(--emerald); font-family: var(--font-display); font-size: 120px; font-weight: 800; line-height: 90px; }
.quote__text { display: flex; flex-direction: column; gap: 12px; }
.quote__line { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 42px; }
.quote__who { color: var(--muted); font-size: 15px; line-height: 22px; }

/* ── What this means for you ───────────────────────────────────────── */
.cs-split--you .cs-split__inner { padding-bottom: 112px; }
.cs-you__head { gap: 28px; }
.cs-you__cta { align-self: flex-start; }
.points { flex: 1 1 0; padding: 0; }
.point { display: flex; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.point:last-child { border-bottom: 1px solid var(--line); }
.point__n { flex: 0 0 40px; color: var(--deep-green); font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 28px; }
.point__text { display: flex; flex-direction: column; gap: 6px; }
.point__title { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 28px; }
.point__body { color: var(--muted); font-size: 16px; line-height: 24px; }

/* ── More cases ────────────────────────────────────────────────────── */
.more { padding-top: 96px; padding-bottom: 112px; }
.more__head { display: flex; align-items: flex-end; justify-content: space-between; }
.more__title { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 40px; }
.more__list { display: flex; gap: 24px; margin-top: 32px; }
.mini {
  flex: 1 1 0;
  display: flex;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: clip;
}
.mini__img { flex-shrink: 0; width: 220px; height: 100%; object-fit: cover; }
.mini__body { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 28px; }
.mini__top { display: flex; flex-direction: column; gap: 10px; }
.mini__tag { color: var(--deep-green); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; line-height: 14px; }
.mini__title { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 28px; }
.mini__stat { color: var(--muted); font-size: 14px; line-height: 18px; }
.mini__num { color: var(--ink); font-size: 20px; }
.mini__img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .mini:hover .mini__img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .mini__img { transition: none; transform: none !important; } }

/* ══ Tablet ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1199px) {
  .facts { flex-wrap: wrap; }
  .facts__item, .facts__item:nth-child(2), .facts__item:last-child { flex: 1 1 45%; padding-left: 0; border-right: 0; }
  .cs-split__inner { flex-direction: column; gap: 24px; }
  .cs-split__head { flex: none; }
  .cs-split__body { padding-top: 0; }
  .cs-steps__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cs-steps__note { width: auto; }
  .steps { flex-wrap: wrap; }
  .step { flex-basis: 40%; }
  .nums { flex-direction: column; }
  .nums__item, .nums__item:first-child { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--ink-line); }
  .more__list { flex-direction: column; }
}

/* ══ Mobile board (390) ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .cs-eyebrow { font-size: 12px; }
  .cs-h2 { letter-spacing: -0.025em; line-height: 36px; }

  .cs-hero__inner { gap: 36px; padding-top: 102px; }
  .cs-hero__top { gap: 18px; padding-inline: 4px; }
  .cs-hero__meta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cs-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .cs-hero__tags .pill { padding: 5px 10px; }
  .cs-hero__title { letter-spacing: -0.03em; line-height: 42px; }
  .facts { flex-direction: column; margin: -18px 4px 0; }
  .facts__item, .facts__item:nth-child(2), .facts__item:last-child {
    flex: none;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .facts__item:last-child { border-bottom: 0; }
  .facts__label { font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 18px; text-transform: none; }
  .facts__value { font-size: 14px; line-height: 18px; text-align: right; }
  .cs-hero__img { height: 240px; border-radius: 22px 22px 0 0; }

  .cs-split__inner { flex-direction: column; gap: 16px; padding: 56px 20px; }
  .cs-split__head { flex: none; }
  .cs-split__body { gap: 16px; padding-top: 0; }
  .cs-lead { font-size: 17px; line-height: 27px; }
  .cs-body { font-size: 16px; line-height: 25px; }

  .cs-steps { padding: 56px 4px; }
  .cs-steps__head { flex-direction: column; align-items: stretch; gap: 20px; }
  .cs-steps__titles { gap: 20px; }
  .cs-steps__note { width: auto; font-size: 13px; line-height: 19px; }
  .steps { flex-direction: column; gap: 0; margin-top: 20px; }
  .step { flex-direction: row; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line-input); }
  .step:first-child { border-top: 2px solid var(--ink); }
  .step__n { flex: 0 0 28px; font-size: 14px; line-height: 24px; }
  .step__text { gap: 4px; }
  .step__title { font-size: 19px; letter-spacing: 0; line-height: 24px; }
  .step__body { font-size: 15px; line-height: 22px; }

  .cs-results { padding: 56px 4px; }
  .cs-results__head { gap: 28px; }
  .cs-results__title { line-height: 36px; letter-spacing: -0.025em; }
  .nums { flex-direction: column; gap: 28px; margin-top: 28px; border-top: 0; }
  .nums__item, .nums__item:first-child { gap: 8px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--ink-line); }
  .nums__num { letter-spacing: -0.04em; line-height: 70px; }
  .nums__label { font-size: 16px; line-height: 22px; }
  .nums__src { padding-top: 0; font-size: 12px; line-height: 17px; }
  .cs-results__note { margin-top: 28px; font-size: 14px; line-height: 21px; }

  .cs-quote .wrap { padding-top: 48px; }
  .quote { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px; border-radius: var(--radius-card); }
  .quote__mark { height: 48px; font-size: 80px; line-height: 70px; }
  .quote__line { font-size: 24px; line-height: 30px; }

  .cs-split--you .cs-split__inner { padding-bottom: 56px; }
  .cs-you__head { gap: 16px; }
  .point { flex-direction: column; gap: 4px; padding-block: 16px; }
  .point__title { font-size: 19px; line-height: 24px; }
  .point__body { font-size: 15px; line-height: 22px; }
  .cs-you__cta-m { margin-top: 0; padding: 16px; }

  .more { padding: 48px 0 56px; }
  .more__head { padding: 0 4px 6px; }
  .more__title { font-size: 24px; letter-spacing: -0.015em; line-height: 30px; }
  .more__list { flex-direction: column; gap: 14px; margin-top: 8px; }
  .mini { flex: none; height: 132px; border-radius: 20px; }
  .mini__img { width: 112px; }
  .mini__body { padding: 14px 16px; }
  .mini__top { gap: 6px; }
  .mini__tag { font-size: 10px; line-height: 13px; }
  .mini__title { font-size: 16px; line-height: 20px; }
  .mini__stat { font-size: 12px; line-height: 16px; }
  .mini__num { font-size: 12px; font-weight: 700; font-family: var(--font-sans); }
}
