/* Growth case studies, editorial pass. Two featured cases, each with one focal point: the reported result set large, with
   the screenshot it comes from directly beneath it. Four supporting cases follow in a quieter two-column grid.
   Cases are named only by industry and angle. */
body { background: var(--obsidian); color: var(--milk); font-family: var(--text); }
.cs-wrap { padding: clamp(96px, 9vw, 150px) var(--gutter); }

.cs { padding-top: clamp(56px, 6vw, 96px); }
.cs + .cs { margin-top: clamp(72px, 8vw, 128px); box-shadow: inset 0 1px 0 var(--rule); }

/* case line: number, angle, industry */
/* case number with its industry stacked underneath; on the featured cases the angle sits beside that pair */
.cs-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no title" "cat title"; column-gap: clamp(18px, 2vw, 28px); row-gap: 4px; align-items: center; margin-bottom: clamp(28px, 3vw, 44px); }
.cs-meta .cs-no { grid-area: no; } .cs-meta .cs-cat { grid-area: cat; } .cs-meta .cs-angle { grid-area: title; }
.cs-card .cs-meta { grid-template-columns: auto; grid-template-areas: "no" "cat"; }
.cs-no { font-size: 14px; color: var(--growth); font-variant-numeric: tabular-nums; }
.cs-angle { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; }
.cs-cat { font-size: 15px; color: var(--ink-3); }

/* the result: the one thing to look at */
.cs-hero { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(32px, 3.4vw, 52px); }
.cs-num { font-family: var(--display); font-weight: 500; font-size: clamp(88px, 12vw, 184px); line-height: .82; letter-spacing: -0.055em; white-space: nowrap; }
.cs-num small { font-size: .3em; letter-spacing: -0.01em; margin-right: .18em; color: var(--ink-2); vertical-align: .14em; }
.cs-def { max-width: 30em; padding-bottom: .4em; }
.cs-def b { display: block; font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.35; margin-bottom: 10px; }
.cs-def p { font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* the evidence */
.cs-shot { position: relative; margin: 0; }
.cs-shot::before { content: ""; position: absolute; inset: -6% -4% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 40% 45%, rgba(122, 244, 208, 0.10), transparent 70%); }
.cs-frame { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.cs-frame img { display: block; width: 100%; height: auto; }
.cs-frame--wide { aspect-ratio: var(--ar, 1366 / 530); }
.cs-shot figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* the story and the supporting numbers */
.cs-body { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 46em; gap: clamp(32px, 6vw, 110px); margin-top: clamp(40px, 4.4vw, 68px); }
.cs-h, .cs-story .cs-h { font-family: var(--text); font-size: 14px; letter-spacing: 0; color: var(--ink-3); margin-bottom: 10px; }
.cs-story p { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance; margin-bottom: 30px; }
.cs-work { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.cs-work li { font-size: 14px; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-2); }
.cs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.cs-stats div { display: flex; flex-direction: column; padding-top: 16px; box-shadow: inset 0 1px 0 var(--rule-2); }
/* the figure reads first, its label and source underneath */
.cs-stats dd, .cs-facts dd { order: -1; }
.cs-stats dd { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3vw, 46px); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-stats dt { font-size: 15px; margin-top: 10px; }
.cs-stats span { display: block; font-size: 13px; color: var(--ink-4); margin-top: 4px; }

/* optional second look: smaller, quieter, clearly from another source */
.cs-more { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); align-items: center;
  margin-top: clamp(48px, 5vw, 80px); padding: clamp(24px, 3vw, 40px); border-radius: 22px; background: rgba(250, 250, 248, 0.025); }
.cs-more .cs-frame { border-radius: 14px; background: #fff; }
.cs-more-copy .cs-h { margin-bottom: 18px; }
.cs-facts div { display: flex; flex-direction: column; }
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-bottom: 22px; }
.cs-facts dd { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -0.03em; line-height: 1; }
.cs-facts dt { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.cs-note { font-size: 13px; line-height: 1.55; color: var(--ink-4); max-width: 46em; }

/* supporting cases: a quieter two-column grid, no boxes, a hairline above each */
.cs-support { margin-top: clamp(80px, 9vw, 140px); }
.cs-support-h { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; margin-bottom: clamp(28px, 3vw, 44px); }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(32px, 5vw, 88px); }
.cs-card { display: grid; align-content: start; padding-top: 24px; box-shadow: inset 0 1px 0 var(--rule-2); }
.cs-card .cs-meta { margin-bottom: 8px; }
.cs-card .cs-angle { font-size: clamp(22px, 1.9vw, 28px); margin-bottom: 26px; }
.cs-num--s { font-size: clamp(56px, 6vw, 92px); line-height: .86; }
.cs-d { font-size: 15px; color: var(--ink-2); margin-top: 14px; }
.cs-extra { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.cs-extra b { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.03em; color: var(--milk); }
/* two figures on one line: each figure stays with its label, the pair wraps as a whole */
.cs-extra { flex-wrap: wrap; column-gap: 22px; row-gap: 6px; }
.cs-extra span { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
/* a supporting case's screenshot: smaller frame, straight under its figure */
.cs-card .cs-shot { margin-top: 22px; }
.cs-card .cs-frame { border-radius: 14px; }
.cs-card .cs-work { margin-top: 22px; }
.cs-card .cs-work li { font-size: 13px; padding: 6px 12px; }
.cs-ev { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--ink-4); }
.cs-ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); }

@media (max-width: 1100px) {
  .cs-hero { grid-template-columns: 1fr; gap: 20px; }
  .cs-body, .cs-more { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cs-meta { grid-template-columns: auto; grid-template-areas: "no" "cat" "title"; }
  .cs-meta .cs-angle { margin-top: 10px; }
  .cs-num { font-size: clamp(64px, 19vw, 88px); }
  .cs-num--s { font-size: clamp(52px, 15vw, 64px); }
  .cs-frame { border-radius: 12px; }
  /* phone: zoom the main screenshot onto its left two-thirds (total sales, orders, conversion) so the figures stay readable */
  .cs-frame--wide { aspect-ratio: 900 / 530; }
  .cs-frame--wide img { width: 151.8%; max-width: none; height: auto; }
  /* except where the story is on the right of the chart: show the whole screenshot */
  .cs-frame--wide.cs-frame--whole { aspect-ratio: var(--ar); }
  .cs-frame--wide.cs-frame--whole img { width: 100%; }
  .cs-stats { gap: 14px; }
  .cs-stats dd { font-size: 26px; }
  .cs-stats dt { font-size: 13px; } .cs-stats span { font-size: 12px; }
  .cs-facts { grid-template-columns: 1fr; gap: 20px; }
  .cs-more { padding: 18px; border-radius: 18px; }
  .cs-grid { grid-template-columns: 1fr; gap: 48px; }
}
