/* The case-study page (/work): each case states the number it moved under its headline, then the problem, the build
   and the result. */
:root { --case-y: 56px; }   /* the one gap on /work: above and below every ruled case, and between the page's sections (item 9: the studio sat twice as far down as each case on phones) */
.work-hero { padding: 150px 0 var(--case-y); }
.work-hero h1 { font-size: var(--fs-big); }
.work-intro { margin: 30px 0 0; max-width: 56ch; font-size: var(--fs-body-lg); line-height: 1.55; color: var(--body); text-wrap: pretty; }   /* wider than --measure so the three sentences set as three full lines under the display heading, not four with a two-word last line (owner, item 212) */

/* One case a row, ruled like the referral terms, read top to bottom: the headline, the industry it was for, what it
   moved in one plain line, then the facts beside each other. No column beside the headline and no display-size
   figure (owner, item 55, twice: "the numbers look so ugly", "I do not want the numbers on the left"), and the client
   is named by industry, never by company (owner, item 55). */
.work-cases { padding: 0; }   /* the cases' own padding is the gap; .sec's would double it */
.cases { border-bottom: 1px solid var(--line-soft); }
.case { padding: var(--case-y) 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 104px; }
.case-body h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 10px; text-wrap: balance; }
.case-org { margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.5; }   /* the industry as a byline, in sentence case: not one more uppercase label */
.case-result { margin: 14px 0 0; color: var(--txt); font-size: var(--fs-body-lg); font-weight: 500; line-height: 1.4; }   /* the number it moved, in body type */
.case-facts { margin: 36px 0 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 24px 48px; }   /* the problem, the build and the result side by side under the header, each label over its text; the build, the longest, gets the widest track */
.case-facts > div { display: flex; flex-direction: column; gap: 8px; }
.case-facts dt { color: var(--txt); font-size: var(--fs-body); font-weight: 600; line-height: var(--lh-body); }   /* sentence case, over its text */
.case-facts dd { margin: 0; max-width: var(--measure); color: var(--body); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }

.work-studio { padding: var(--case-y) 0; }
.work-studio h2 { margin-bottom: 14px; }
.studio-lead { margin: 0 0 28px; color: var(--body); }
.studio-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.studio-list a { display: flex; flex-direction: column; gap: 10px; height: 100%; background: var(--bg-soft); padding: clamp(24px, 3vw, 40px); text-decoration: none; transition: background var(--dur); }   /* the whole card is the link, a step lighter than the page; the padding hugs its three lines */
.studio-list a:hover { background: #1c1c1e; }
.studio-name { font-stretch: var(--display-stretch); font-weight: var(--display-weight); text-transform: uppercase; font-size: 24px; letter-spacing: .5px; color: var(--txt); }
.studio-list a:hover .studio-name { color: var(--red); }
.studio-what { color: var(--body); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.studio-go { margin-top: auto; padding-top: 6px; color: var(--red); font-weight: 700; font-size: var(--fs-small); }   /* says the card opens the product's site */

.work-cta { padding-top: var(--case-y); }
.work-cta .btn { margin-top: 30px; }

@media (max-width: 900px) {
  /* the facts one under another */
  :root { --case-y: 40px; }
  .case-facts { margin-top: 28px; grid-template-columns: 1fr; max-width: var(--measure); }
  .studio-list { grid-template-columns: 1fr; max-width: var(--measure); }
  .studio-list a { padding: 28px; }
}
@media (max-width: 640px) {
  .work-hero { padding-top: 120px; }
  :root { --case-y: 32px; }
  .studio-list a { padding: 24px 20px; }
}
