/* ==========================================================
   Case study draft layout (Providence Promise v2).
   Sticky info column + hero images, clear section headers,
   text/image strips, quote band, and a sticky section index.
   ========================================================== */
.cs2 { --cs-wrap: 1180px; --cs-text: 18px; --radius: 18px; }
.cs2 p { color: var(--body-text); font-size: var(--cs-text); line-height: 1.65; }
.cs2 p + p { margin-top: 1em; }
.cs2 h1, .cs2 h2 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.cs2 .eyebrow {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 10px;
}
.cs2 .cs-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 28px 0 8px; }
.cs2 .shot { margin: 0; }
.cs2 .shot img { width: 100%; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }

/* ---------- hero: sticky info column + image stack ---------- */
.cs-hero {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(32px, 5vw, 80px);
  max-width: var(--cs-wrap); margin: 0 auto; padding: 48px var(--gutter) 40px; align-items: start;
}
.cs-info { position: sticky; top: 96px; }
.cs-info h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; }
.cs-tags { margin-top: 10px; font-size: 14px !important; letter-spacing: .04em; color: var(--muted) !important; }
.cs-info p:not(.cs-label):not(.cs-tags) { font-size: 16px; }
.cs-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 24px; justify-content: start; margin: 28px 0 0; }
.cs-meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-meta dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.cs-btn {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px;
  transition: border-color .3s, color .3s;
}
.cs-btn:hover { border-color: var(--accent); color: var(--accent); }
.cs-btn span { transition: transform .35s var(--ease); }
.cs-btn:hover span { transform: translate(3px, -3px); }
.cs-hero-media { display: grid; gap: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); }
.duo .shot img { background: none; border-radius: 12px; }

/* ---------- problem / solution cards ---------- */
/* cover image under the original header, same size as the home page card */
.cs-cover { max-width: 1093px; margin: 0 auto; }
.cs-cover .shot img { border-radius: 22px; }
.cs-band { max-width: 1093px; margin: 0 auto; padding: 16px 0 8px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-p { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.card-p.accent { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.card-p .big { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--ink); }

/* ---------- body: sticky index + sections ---------- */
.cs-body {
  display: grid; grid-template-columns: 130px 1fr; gap: clamp(24px, 3.5vw, 56px);
  margin: 0 auto;
}
.cs-rail { position: sticky; top: 110px; align-self: start; padding-top: 80px; }
.stage { scroll-margin-top: 80px; }
.cs-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.cs-rail a {
  display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 1px solid transparent;
  font-size: 13px; color: var(--muted); text-decoration: none; transition: color .25s, border-color .25s;
}
.cs-rail a:hover { color: var(--ink); }
.cs-rail a.on { color: var(--ink); border-left-color: var(--accent); }
.cs-main { min-width: 0; }
.cs-sec { padding: 72px 0 0; scroll-margin-top: 90px; }
/* the key sentence is the header; the section name sits small above it */
.cs-sec h2, .cs-final h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.28; margin-bottom: 26px; max-width: 920px; }
.cs-sec.h-long h2 { font-size: clamp(21px, 1.9vw, 26px); }
.narrow { max-width: 900px; }   /* text runs further right */
.cs-sec > .shot.center { margin: 32px 0 0; }

/* text + image strips */
.strip { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin: 8px 0 0; }
.strip.flip .strip-text { order: 2; }
.strip + * { margin-top: 32px; }

/* marks: ➞ questions, ✓ worked, ✗ didn't */
.marks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.marks li { position: relative; padding-left: 28px; color: var(--body-text); font-size: 17px; line-height: 1.55; }
.marks li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.marks li.q::before { content: "\2192"; color: var(--accent); }
.marks li.yes::before { content: "\2713"; color: #8fc79a; }
.marks li.no::before { content: "\2715"; color: #e08f8f; }
.qcards { margin: 40px 0 0; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); }
.qcards .cs-label { margin-top: 0; }
.qcards .marks li { color: var(--ink); font-size: 18px; }
.qcards + .narrow { margin-top: 32px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.cards3 .card-p p { font-size: 16px; }

/* quote band for How Might We */
.cs-quote {
  margin: 72px 0 0; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius);
  background: var(--surface); scroll-margin-top: 90px;
}
.cs-quote .marks { gap: 20px; }
.cs-quote .marks li { font-size: clamp(19px, 1.8vw, 24px); color: var(--ink); line-height: 1.45; padding-left: 36px; }

/* wireframe comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); margin-top: 32px; }
.compare-col .shot { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.compare-col .shot img { max-height: 420px; width: auto; margin: 0 auto; background: none; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.phones .shot img { border-radius: 12px; }

/* personas: full width, one above the other */
.stack { display: grid; gap: 16px; margin-top: 28px; }

/* testing numbers */
.stats { display: flex; gap: clamp(28px, 6vw, 72px); margin: 0 0 28px; }
.stats b { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 600; color: var(--ink); line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.before-after { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.before-after .arrow { font-size: 26px; color: var(--accent); }

/* final product */
.cs-final { padding: 72px 0 0; scroll-margin-top: 90px; }
.cs-final .duo.big { padding: clamp(28px, 6vw, 80px) clamp(40px, 10vw, 160px); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .cs-hero { grid-template-columns: 1fr; }
  .cs-info { position: static; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-rail { display: none; }
  .strip, .cards2, .cards3, .compare { grid-template-columns: 1fr; }
  .strip.flip .strip-text { order: 0; }
  .phones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cs2 { --cs-text: 16px; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .stats { gap: 24px; }
}

/* ---------- pieces built from the Google Doc ---------- */
/* key sentence: a bolded phrase from the doc stays bright, the rest a touch softer */
.cs2 h2.has-bold { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.cs2 h2.has-bold strong { color: var(--ink); font-weight: 600; }
.marks li.dot::before { content: "\2022"; color: var(--accent); }

/* affinity-map takeaways: theme + parent quotes */
.takeaways { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 4px; }
.takeaway { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; }
.takeaway h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.takeaway blockquote { margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent); color: var(--body-text); font-size: 15.5px; line-height: 1.55; }
.takeaway blockquote + blockquote { margin-top: 10px; }

/* personas */
.persona { display: grid; grid-template-columns: 160px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start;
  background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); margin-top: 16px; }
.persona-who .shot img { border-radius: 50%; background: none; cursor: default; }
.persona h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.persona-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 6px; }
.persona-cols .marks li { font-size: 15.5px; }

/* the four tabs */
.tabs-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.tabs-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; }
.tabs-list b { color: var(--ink); font-weight: 600; }
.tabs-list span { color: var(--body-text); }
.cards3 .card-p h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.compare-col .cs-label { margin-top: 0; }
.cs-sec > .cs-label { margin-top: 36px; }

@media (max-width: 900px) {
  .persona { grid-template-columns: 1fr; }
  .persona-who { max-width: 140px; }
  .persona-cols { grid-template-columns: 1fr; }
}
.cs-sec .shot.big-img { margin: 32px 0 0; }
.cs-sec .shot.big-img img { width: 100%; }
.cs-sec .narrow.after-img { margin-top: 32px; }
/* more breathing room under the cover image and the problem/solution cards */
.cs2 .cs-cover { margin-bottom: 28px; }
.cs2 .cs-band { padding-bottom: 72px; }

/* ---------- the same format on every case study ---------- */
.cs2 .cs-body.no-rail { grid-template-columns: 1fr; max-width: 1093px; }
.cs2 .cs-main .prose { max-width: 900px; margin-left: 0; margin-right: 0; }
.cs2 .cs-main .cols { margin-left: 0; margin-right: 0; }
.cs2 .cs-main .row { margin-left: 0; margin-right: auto; }
.cs2 .cs-main .row.solo { margin-left: auto; }
.cs2 h2.cs-h { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.28; margin: 72px 0 22px; max-width: 920px; }
.cs2 .cs-hgroup { margin: 72px 0 22px; }
.cs2 .cs-hgroup h2.cs-h { margin: 0; }
.cs2 .stage > h2.cs-h:first-child, .cs2 .stage > .cs-hgroup:first-child { margin-top: 64px; }
.cs2 .slides { border-radius: 18px; }
.cs2 .shot figcaption { color: var(--muted); }

/* side index sits in the page margin, so photos keep the full width */
.cs2 .cs-body.float-rail { grid-template-columns: 1fr; max-width: 1093px; }
.cs2 .cs-body.float-rail .cs-rail { position: fixed; left: max(20px, calc(50% - 546px - 170px)); top: 50%; transform: translateY(-50%); width: 130px; padding-top: 0; z-index: 3; }
@media (max-width: 1360px) { .cs2 .cs-body.float-rail .cs-rail { display: none; } }

/* Heatwave, Critter, Fern & Fable: photos one per row like the original site, with room to breathe */
.cs2 .as-site .row { margin: 0 auto 56px; max-width: 100% !important; gap: 24px; }
.cs2 .as-site .row.solo { margin-left: auto; }
.cs2 .as-site .shot img { border-radius: 18px; }
.cs2 .as-site .cs-hgroup, .cs2 .as-site h2.cs-h { margin-top: 88px; }

/* pages with a floating side index (Heatwave): text sits in the same indented column as
   Providence Promise, while photos keep the full width and stay centred under the cover */
.cs2 .cs-body.float-rail .stage > :not(.row):not(.shot):not(.arrow-row) { margin-left: 165px; max-width: 928px; }
@media (max-width: 900px) { .cs2 .cs-body.float-rail .stage > :not(.row):not(.shot):not(.arrow-row) { margin-left: 0; } }
.cs2 .as-site .cs-hgroup h2.cs-h { margin-top: 0; }
.cs2 .as-site .prose + .row, .cs2 .as-site .cols + .row { margin-top: 40px; }
/* same gap under the cover photo as between photos, on Heatwave, Critter and Fern & Fable */
.cs2 .cs-cover:has(+ .cs-body.as-site) { margin-bottom: 56px; }
.cs2 .as-site .cs-main > .row:first-child { margin-top: 0; }

/* text sits in the Providence Promise column on every page with written sections */
.cs2 .cs-body.as-site .stage > :not(.row):not(.shot):not(.arrow-row) { margin-left: 165px; max-width: 928px; }
.cs2 .as-site .shot figcaption { margin-top: 14px; }
.cs2 .as-site .row + .shot figcaption { margin-top: 0; }
@media (max-width: 900px) { .cs2 .cs-body.as-site .stage > :not(.row):not(.shot):not(.arrow-row) { margin-left: 0; } }

/* phones: photos full width one per row; rows of 3+ small shots go two-up */
@media (max-width: 600px) {
  .cs2 .as-site .row { flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
  .cs2 .as-site .row > * { flex: 1 1 100% !important; }
  .cs2 .as-site .row:has(> :nth-child(3)) > * { flex: 1 1 calc(50% - 6px) !important; }
  .cs2 .cs-cover:has(+ .cs-body.as-site) { margin-bottom: 36px; }
}
.cs2 .anchor { height: 1px; scroll-margin-top: 90px; }
/* a caption that belongs to a whole row sits under the row's left edge */
.cs2 .as-site .row + figure.shot { max-width: 100% !important; margin: -36px 0 56px !important; }
