/* Case Studies concept pages. Loaded after styles.css and layouts.css.
   Preview only. Does not change the public site. */

.cs-page { overflow-x: hidden; }
.cs-page h1,
.cs-page h2,
.cs-page h3,
.cs-page .section-title {
  overflow-wrap: break-word;
  max-width: 100%;
}
.cs-page .cs-domain {
  overflow-wrap: anywhere;
}

.cs-switch {
  background: var(--cream-2);
  border-bottom: 3px solid var(--ink);
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}
.cs-switch p {
  margin: 0;
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
}
.cs-switch a {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--ink);
  background: #fff;
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.cs-switch a[aria-current="page"] {
  background: var(--tangerine);
  color: #fff;
}
.cs-switch a:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.cs-shot,
.cs-shot-wrap img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.cs-shot-wrap {
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}
.cs-shot-wrap.dark { background: #0b1220; }
.cs-caption {
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 52ch;
}
.cs-tape {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
  margin-bottom: 12px;
}
.cs-tape-pink { background: var(--tangerine); color: #fff; }
.cs-tape-lime { background: var(--lemon); color: var(--ink); }
.cs-tape-teal { background: var(--cobalt); color: #fff; }
.cs-tape-ink { background: var(--ink); color: #fff; }

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}
.cs-meta strong { color: var(--ink); font-weight: 600; }

.cs-cta-band {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 80px 0;
  background: #00ACA8;
  color: #fff;
}
.cs-cta-band h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.92;
  max-width: 14ch;
  color: #fff;
}
.cs-cta-band p {
  color: #fff;
  max-width: 46ch;
  margin: 16px 0 28px;
  font-size: 18px;
}
.cs-cta-band .btn-primary {
  background: var(--ink);
  color: #fff;
}
.cs-cta-band .btn-ghost {
  background: #fff;
  color: var(--ink);
}

.cs-phones {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 28px;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
}
.wrap,
.cs1-split,
.cs-include,
.cs3-chapter,
.cs3-chapter > div {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.cs-phone {
  flex: 0 0 230px;
  width: 230px;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: 32px;
  overflow: hidden;
  padding: 12px 10px 18px;
}
.cs-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 2px solid var(--ink);
}
.cs-phone figcaption {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
}

.cs-include {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .cs-include { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .cs-include { grid-template-columns: 1fr 1fr 1fr; }
}
.cs-include article {
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 22px 20px;
  background: #fff;
}
.cs-include article .k {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.cs-include article h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.cs-include article p { margin: 0; font-size: 15px; color: var(--ink); }
.cs-include .tile-pink { background: #FDE7F1; }
.cs-include .tile-teal { background: #D7F3F2; }
.cs-include .tile-lime { background: #F3FCD4; }
.cs-include .tile-orange { background: #FFE6D1; }
.cs-include .tile-blue { background: #D9E4FF; }
.cs-include .tile-ink { background: var(--ink); color: #fff; }
.cs-include .tile-ink p { color: #fff; }

.cs-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 58ch;
  margin-top: 20px;
}

/* ---------- Concept 1: Editorial ---------- */
.cs1-hero {
  border-bottom: 3px solid var(--ink);
  padding: 72px 0 64px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.cs1-hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.84;
  max-width: 10ch;
  margin: 0;
}
.cs1-hero h1 .pop {
  color: #fff;
  background: var(--tangerine);
  display: inline-block;
  padding: 0 12px 4px;
  transform: rotate(-2deg);
  box-shadow: 8px 8px 0 var(--ink);
}
.cs1-hero .intro {
  margin-top: 28px;
  max-width: 540px;
  font-size: 18px;
}
.cs1-hero-art {
  position: absolute;
  right: 4%;
  top: 80px;
  width: min(280px, 28vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  transform: rotate(4deg);
}
.cs1-hero-art i {
  display: block;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.cs1-hero-art i:nth-child(1) { background: var(--tangerine); height: 110px; }
.cs1-hero-art i:nth-child(2) { background: var(--cobalt); height: 80px; margin-top: 24px; }
.cs1-hero-art i:nth-child(3) { background: var(--lemon); height: 70px; }
.cs1-hero-art i:nth-child(4) { background: #1F5BFF; height: 100px; }
@media (max-width: 800px) {
  .cs1-hero-art { display: none; }
}

.cs1-index { background: #fff; border-bottom: 3px solid var(--ink); }
.cs-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .cs-index-grid { grid-template-columns: 1fr 1fr; }
  .cs-index-card.featured { grid-column: 1 / -1; }
}
.cs-index-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cs-index-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
.cs-index-card img { width: 100%; height: auto; display: block; border-bottom: 3px solid var(--ink); }
.cs-index-card .pad { padding: 22px 24px 26px; }
.cs-index-card h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
  margin: 8px 0 8px;
  overflow-wrap: anywhere;
}
.cs-index-card p { margin: 0; color: var(--muted); }

.cs1-story { background: var(--cream); border-bottom: 3px solid var(--ink); }
.cs1-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .cs1-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.cs1-cols h2 { margin-top: 0; }
.cs1-compare { background: var(--cream-2, #FFF0F7); color: var(--ink); border-bottom: 3px solid var(--ink); }
.cs1-compare .section-title,
.cs1-compare h2 { color: var(--ink); }
.cs1-compare .lede,
.cs1-compare .cs-caption { color: var(--muted); }
.cs1-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 36px;
}
@media (min-width: 900px) {
  .cs1-split { grid-template-columns: 1fr 1fr; align-items: start; }
}
.cs1-pages { background: #fff; border-bottom: 3px solid var(--ink); }

/* ---------- Concept 2: Split before / after ---------- */
.cs2-hero {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
}
@media (min-width: 980px) {
  .cs2-hero { grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); }
}
.cs2-hero-copy {
  padding: 64px 28px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.cs2-hero-copy h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 0.88;
  color: #fff;
  margin: 0;
  overflow-wrap: break-word;
}
.cs2-hero-copy h1 .pop {
  color: var(--ink);
  background: var(--lemon);
  display: inline-block;
  padding: 0 10px 2px;
  transform: rotate(-1.5deg);
  box-shadow: 6px 6px 0 var(--tangerine);
}
.cs2-hero-copy .intro { color: #e6e7ea; margin-top: 22px; font-size: 18px; }
.cs2-hero-copy .actions { margin-top: 28px; }
.cs2-hero-copy .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.cs2-pair {
  display: grid;
  grid-template-columns: 1fr;
  background: #0b1220;
  border-left: 0;
}
@media (min-width: 980px) {
  .cs2-pair { border-left: 3px solid var(--ink); }
}
.cs2-pane { padding: 28px 24px 32px; }
.cs2-pane + .cs2-pane { border-top: 3px solid var(--ink); }
@media (min-width: 700px) {
  .cs2-pair { grid-template-columns: 1fr 1fr; }
  .cs2-pane + .cs2-pane { border-top: 0; border-left: 3px solid var(--ink); }
}
.cs2-pane .cs-shot-wrap { box-shadow: 6px 6px 0 var(--lemon); }
.cs2-pane.after .cs-shot-wrap { box-shadow: 6px 6px 0 var(--tangerine); }
.cs2-pane .cs-caption { color: #c9ccd1; }
.cs2-index-slim { background: #fff; border-bottom: 3px solid var(--ink); padding: 56px 0; }
.cs2-row { background: var(--cream); border-bottom: 3px solid var(--ink); }
.cs2-row.alt { background: var(--ink); color: #fff; }
.cs2-row.alt .section-title,
.cs2-row.alt h2 { color: #fff; }
.cs2-row.alt .lede,
.cs2-row.alt .cs-caption { color: #d5d7db; }
.cs2-row .cs1-split { margin-top: 28px; }

/* ---------- Concept 3: Project dossier ---------- */
.cs3-hero {
  background: var(--lemon);
  border-bottom: 3px solid var(--ink);
  padding: 72px 0 64px;
}
.cs3-hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.84;
  margin: 0;
  max-width: 12ch;
}
.cs3-kicker {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.cs3-work {
  background: #fff;
  border-bottom: 3px solid var(--ink);
}
.cs3-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 900px) {
  .cs3-card { grid-template-columns: 1.15fr 0.85fr; }
}
.cs3-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-bottom: 3px solid var(--ink); }
@media (min-width: 900px) {
  .cs3-card img { border-bottom: 0; border-right: 3px solid var(--ink); min-height: 360px; }
}
.cs3-card .pad { padding: 28px 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.cs3-card h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
  margin: 8px 0 10px;
  overflow-wrap: anywhere;
}

.cs3-dossier { background: var(--cream); border-bottom: 3px solid var(--ink); }
.cs3-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 40px;
  padding: 56px 0;
  border-bottom: 3px solid var(--ink);
}
.cs3-chapter:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .cs3-chapter { grid-template-columns: 200px 1fr; }
  .cs3-num { position: sticky; top: 110px; align-self: start; }
}
.cs3-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.9;
  color: var(--tangerine);
}
.cs3-num span {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.cs3-chapter h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.cs3-cta { background: var(--ink); color: #fff; border-top: 3px solid var(--ink); }
.cs3-cta h2 { color: #fff; }
.cs3-cta p { color: #e6e7ea; }

@media (max-width: 600px) {
  .cs1-hero, .cs2-hero-copy, .cs3-hero, .cs-cta-band { overflow: hidden; }
  .cs1-hero { padding: 48px 0 44px; }
  .cs1-hero h1 { font-size: 40px; }
  .cs1-hero h1 .pop,
  .cs2-hero-copy h1 .pop {
    padding: 0 8px 2px;
    box-shadow: 4px 4px 0 var(--ink);
    max-width: 100%;
    box-sizing: border-box;
  }
  .cs2-hero-copy { padding: 48px 20px 40px; }
  .cs2-hero-copy h1 { font-size: 36px; }
  .cs2-hero-copy h1 .pop { box-shadow: 4px 4px 0 var(--tangerine); }
  .cs3-hero { padding: 48px 0 44px; }
  .cs3-hero h1 { font-size: 40px; }
  .cs-index-card h2,
  .cs3-card h2 { font-size: 28px; }
  .cs-phone { flex-basis: 200px; width: 200px; }
  .cs-cta-band { padding: 56px 0; }
  .cs-cta-band h2 { font-size: 36px; }
  .cs-shot-wrap { box-shadow: 5px 5px 0 var(--ink); }
  .section-title { font-size: clamp(32px, 10vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-index-card,
  .cs-switch a,
  .cs-include article { transition: none; }
}

/* Keep long domain headings on as few lines as possible, and do not use the 16ch section-title cap. */
.cs-page h2.cs-domain,
.cs-page .section-title.cs-domain,
.cs-index-card h2 {
  max-width: 100%;
  overflow-wrap: break-word;
}
.cs-index-card h2 {
  font-size: clamp(22px, 3.2vw, 40px);
}
.cs-page .section-title.cs-domain {
  font-size: clamp(28px, 4.6vw, 56px);
}

/* Live case study v2: light compare, brand tiles, turquoise CTA */
.cs1-compare {
  background: var(--cream-2, #FFF0F7);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.cs1-compare .section-title,
.cs1-compare h2,
.cs1-compare h3 { color: var(--ink); }
.cs1-compare .lede,
.cs1-compare .cs-caption { color: var(--muted); }

.cs-include .tile-pink { background: #F2368E; color: #fff; }
.cs-include .tile-pink .k,
.cs-include .tile-pink h3,
.cs-include .tile-pink p { color: #fff; }
.cs-include .tile-teal { background: #00ACA8; color: #fff; }
.cs-include .tile-teal .k,
.cs-include .tile-teal h3,
.cs-include .tile-teal p { color: #fff; }
.cs-include .tile-lime { background: #A6E62E; color: var(--ink); }
.cs-include .tile-lime .k,
.cs-include .tile-lime h3,
.cs-include .tile-lime p { color: var(--ink); }
.cs-include .tile-orange { background: #FF7A1A; color: #fff; }
.cs-include .tile-orange .k,
.cs-include .tile-orange h3,
.cs-include .tile-orange p { color: #fff; }
.cs-include .tile-blue { background: #1F5BFF; color: #fff; }
.cs-include .tile-blue .k,
.cs-include .tile-blue h3,
.cs-include .tile-blue p { color: #fff; }

.cs-cta-band {
  background: #00ACA8;
  color: #fff;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.cs-cta-band h2,
.cs-cta-band p { color: #fff; }
.cs-cta-band .btn-primary {
  background: var(--ink);
  color: #fff;
}
.cs-cta-band .btn-ghost {
  background: #fff;
  color: var(--ink);
}
.cs-cta-band .tag-white {
  background: #fff;
  color: var(--ink) !important;
}

.cs-page h1.cs-domain {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 0.9;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
}
@media (max-width: 600px) {
  .cs-page h1.cs-domain { font-size: 30px; }
}


/* Live case study v3: tapes on mobile phone cards */
.cs-phones { align-items: flex-start; }
.cs-phone {
  overflow: visible;
}
.cs-phone .cs-tape {
  margin: 0 0 10px;
}
