/* =========================================================
   Case study pages (e.g. molly-maid.html)
   Uses the main site look: Poppins, cream / white / black /
   orange sections that fade into each other, orange accents.
   The client's own colours only appear inside their work
   (images and the palette strip), plus one small brand dot.
   ========================================================= */

.case-page { --brand: #D27D96; --brand-navy: #0A2358; }

.cs-wrap { width: min(1180px, 88%); margin: 0 auto; }

.cs-section { padding: 140px 0; }

/* ---------- hero ---------- */
.cs-hero { padding: 170px 0 120px; }
.cs-back {
  display: flex;
  width: fit-content;
  gap: 8px;
  margin-bottom: 46px;
  color: var(--brown);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .3s ease, gap .3s ease;
}
.cs-back:hover { color: var(--orange); gap: 12px; }
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 130, 0, .45);
  border-radius: 100px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* the one small touch of the client's own colour */
.cs-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring, rgba(210, 125, 150, .2));
}
.cs-title {
  max-width: 1050px;
  font-size: max(40px, calc(84 * var(--u)));
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: #191919;
}
.cs-intro {
  max-width: 700px;
  margin-top: 30px;
  font-size: max(17px, calc(22 * var(--u)));
  line-height: 1.55;
  color: var(--brown);
}
.cs-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 60px 0 0;
  padding: 26px 0;
  border-top: 1px solid rgba(74, 68, 62, .18);
  border-bottom: 1px solid rgba(74, 68, 62, .18);
}
.cs-meta dt {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.cs-meta dd { margin: 0; font-size: 15px; line-height: 1.5; color: #191919; }
.cs-note {
  max-width: 760px;
  margin-top: 46px;
  padding: 26px 30px;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  background: #fff;
}
.cs-note p { font-size: 15px; line-height: 1.6; color: #3d3833; }
.cs-note p + p { margin-top: 10px; }
.cs-note-label {
  margin-bottom: 10px;
  font-size: 12.5px !important;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange) !important;
}

/* ---------- shared type ---------- */
.cs-label {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.cs-h2 {
  max-width: 820px;
  font-size: max(32px, calc(60 * var(--u)));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: #191919;
}
.cs-h3 {
  margin-bottom: 18px;
  font-size: max(21px, calc(26 * var(--u)));
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.cs-text p + p { margin-top: 16px; }
.cs-text, .cs-text p { font-size: 17px; line-height: 1.7; color: #3d3833; }
.cs-lead { max-width: 720px; margin: 26px 0 56px; }
.cs-small, .cs-small p { font-size: 15px; }
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.cs-split + .cs-wrap, .cs-wrap + .cs-split { margin-top: 70px; }
.cs-split-tight { margin-top: 44px; }
.cs-question { margin-top: 24px !important; padding-top: 24px; border-top: 1px solid #EDE5DA; }
.cs-question strong { color: #191919; }
.cs-quote {
  font-size: max(30px, calc(64 * var(--u)));
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: #191919;
}
.cs-quote span { color: var(--orange); }

/* ---------- figures ---------- */
.cs-figure { margin: 0 0 40px; }
.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .35);
}
.cs-figure figcaption, .cs-post figcaption {
  max-width: 680px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #5c554e;
}
.cs-figure figcaption strong, .cs-post figcaption strong { color: #191919; }
.cs-figure-card img { padding: 12px; background: #fff; border: 1px solid #EEE7DE; }

/* ---------- dark sections ---------- */
.cs-dark .cs-h2, .cs-dark .cs-idea { color: #F2E7DA; }
.cs-dark .cs-text, .cs-dark .cs-text p { color: #B9B1A9; }
.cs-idea {
  font-size: max(46px, calc(128 * var(--u)));
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.05em;
}
.cs-key {
  margin-bottom: 20px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 178, 30, .35);
  border-radius: 14px;
  background: linear-gradient(160deg, #1f1d1b, #121212);
}
.cs-key-label {
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FFB21E;
}
.cs-key-text { font-size: max(19px, calc(24 * var(--u))); font-weight: 500; line-height: 1.35; color: #fff; }

/* ---------- channels ---------- */
.cs-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.cs-channel {
  padding: 34px 32px 30px;
  border: 1px solid #EEE7DE;
  border-radius: 16px;
  background: #FBF5EC;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease;
}
.cs-channel:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(255, 130, 0, .55); }
.cs-channel-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.cs-channel h3 { margin: 8px 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.cs-channel-job { font-size: 15.5px; line-height: 1.55; color: #5c554e; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.cs-chips span {
  padding: 7px 14px;
  border: 1px solid #E3D6C6;
  border-radius: 100px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4A443E;
}
.cs-rhythm { font-size: 15px; color: #3d3833; }

/* ---------- posts and mock-ups ---------- */
.cs-posts, .cs-mocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.cs-mocks { grid-template-columns: repeat(2, minmax(0, 380px)); margin-top: 26px; }
.cs-post { margin: 0; }
.cs-post-img {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .4);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), box-shadow .7s ease;
}
.cs-post-img img { display: block; width: 100%; height: auto; transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.cs-post:hover .cs-post-img { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .45); }
.cs-post:hover .cs-post-img img { transform: scale(1.04); }

.cs-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs-copy-card {
  padding: 28px 28px 26px;
  border-radius: 14px;
  background: #fff;
}
.cs-copy-label {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.cs-copy-text { font-size: 15.5px; line-height: 1.65; color: #191919; }
.cs-copy-text + .cs-copy-text { margin-top: 12px; }
.cs-copy-note { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: #7a726a; }

/* client palette strip */
.cs-palette {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 50px;
  padding: 28px 32px;
  border-radius: 16px;
  background: #fff;
}
.cs-palette-text { max-width: 380px; }
.cs-palette-text .cs-copy-label { margin-bottom: 8px; }
.cs-swatches { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.cs-swatches li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cs-swatch {
  width: 66px;
  height: 66px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--c);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.cs-swatch-line { box-shadow: inset 0 0 0 1px #E8D6DB; }
.cs-swatches li:hover .cs-swatch { transform: translateY(-6px) scale(1.06); }
.cs-swatches b { font-size: 13.5px; font-weight: 600; color: #191919; }
.cs-swatches i { font-size: 12px; font-style: normal; color: #7a726a; letter-spacing: .04em; }

/* ---------- measurement ---------- */
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cs-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #E7E0D8;
}
.cs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.cs-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.cs-kpi {
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: linear-gradient(160deg, #1f1d1b, #121212);
  transition: border-color .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.cs-kpi:hover { border-color: rgba(255, 178, 30, .4); transform: translateY(-4px); }
.cs-kpi-num { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: #FFB21E; }
.cs-kpi p { margin: 14px 0 6px; font-size: 18px; font-weight: 600; color: #fff; }
.cs-kpi small { font-size: 13.5px; color: #9C948C; }
.cs-fine { margin-top: 34px; font-size: 13.5px; line-height: 1.6; color: #8E867E; }
.cs-fine-dark { color: #7a726a; }

/* ---------- SOSTAC ---------- */
.cs-sostac {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(74, 68, 62, .18);
}
.cs-sostac > div {
  position: relative;
  padding: 30px 26px 30px 70px;
  border-bottom: 1px solid rgba(74, 68, 62, .18);
}
.cs-sostac span {
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--orange);
}
.cs-sostac h3 { margin-bottom: 6px; font-size: 19px; font-weight: 600; }
.cs-sostac p { font-size: 15px; line-height: 1.6; color: #5c554e; }
.cs-finding {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 80px;
}
.cs-finding .cs-figure { margin: 0; }

/* ---------- ten year view ---------- */
.cs-steps { list-style: none; margin: 0 0 46px; padding: 0; display: grid; gap: 14px; max-width: 780px; }
.cs-steps li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #3d3833;
}
.cs-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.cs-steps strong { color: #191919; }

/* ---------- takeaways (orange) ---------- */
.cs-orange .cs-label { color: #452800; }
.cs-lessons { list-style: none; margin: 10px 0 0; padding: 0; }
.cs-lessons li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(69, 40, 0, .22);
}
.cs-lessons span { font-size: 15px; font-weight: 600; letter-spacing: .08em; color: #452800; padding-top: 10px; }
.cs-lessons p {
  font-size: max(22px, calc(40 * var(--u)));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #2b1700;
}
.cs-lessons strong { font-weight: 600; color: #000; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 60px; }
.btn-pill-dark { background: #191919; color: #fff; }

/* ---------- notes ---------- */
.cs-notes { padding: 90px 0 120px; }
.cs-notes p { max-width: 820px; font-size: 13.5px; line-height: 1.65; color: #7a726a; }
.cs-notes p + p { margin-top: 10px; }

/* =========================================================
   PHONE
   ========================================================= */
@media (max-width: 767px) {
  .cs-wrap { width: auto; margin: 0 20px; }
  .cs-section { padding: 90px 0; }
  .cs-hero { padding: 130px 0 80px; }
  .cs-back { margin-bottom: 30px; }
  .cs-eyebrow { font-size: 11px; padding: 7px 14px; }
  .cs-title { font-size: 9.6vw; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 40px; }
  .cs-note { padding: 22px 20px; }
  .cs-h2 { font-size: 8.4vw; }
  .cs-split, .cs-finding { grid-template-columns: 1fr; gap: 24px; }
  .cs-split + .cs-wrap, .cs-wrap + .cs-split { margin-top: 44px; }
  .cs-text, .cs-text p { font-size: 15.5px; }
  .cs-lead { margin: 20px 0 36px; }
  .cs-quote { font-size: 7.6vw; }
  .cs-idea { font-size: 13vw; }
  .cs-channels, .cs-posts, .cs-copy, .cs-kpis, .cs-sostac { grid-template-columns: 1fr; }
  .cs-mocks { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cs-channel { padding: 26px 22px; }
  .cs-palette { flex-direction: column; align-items: flex-start; gap: 22px; padding: 24px 20px; }
  .cs-swatches { gap: 16px; flex-wrap: wrap; }
  .cs-swatch { width: 52px; height: 52px; }
  .cs-kpis { margin-top: 40px; }
  .cs-sostac > div { padding: 24px 0 24px 56px; }
  .cs-sostac span { font-size: 38px; }
  .cs-finding { margin-top: 50px; }
  .cs-lessons li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .cs-lessons span { padding-top: 0; }
  .cs-lessons p { font-size: 6.2vw; }
  .btn-pill { font-size: 16px; padding: 12px 22px; }
}

/* even line lengths on big headings and the pull quote */
.cs-title, .cs-h2, .cs-quote, .cs-quote span, .cs-lessons p { text-wrap: balance; }
.cs-text + .cs-text { margin-top: 16px; }

/* =========================================================
   Extra pieces used by the Teffie page (reusable)
   ========================================================= */

/* big audit numbers */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 10px 0 50px; }
.cs-stat {
  padding: 26px 24px 24px;
  border-radius: 14px;
  background: #fff;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease;
}
.cs-stat:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(255, 130, 0, .55); }
.cs-stat b {
  display: block;
  font-size: max(46px, calc(64 * var(--u)));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--orange);
}
.cs-stat span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: #3d3833; }

/* dark insight card */
.cs-insight {
  margin-top: 50px;
  padding: 32px 36px;
  border-radius: 16px;
  background: linear-gradient(160deg, #1f1d1b, #121212);
  color: #E7E0D8;
  font-size: max(17px, calc(20 * var(--u)));
  line-height: 1.6;
}
.cs-insight strong { color: #FFB21E; font-weight: 600; }

/* tables */
.cs-table-wrap { overflow-x: auto; margin: 34px 0 0; border-radius: 14px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.cs-table th {
  padding: 16px 18px;
  background: #191919;
  color: #F2E7DA;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: top;
}
.cs-table td { padding: 18px; border-bottom: 1px solid rgba(74, 68, 62, .15); vertical-align: top; color: #3d3833; background: #fff; }
.cs-table td:first-child { font-weight: 600; color: #191919; white-space: nowrap; }
.cs-table .cs-accent { color: var(--orange); }
.cs-table td small { display: block; font-size: 13px; font-weight: 500; color: var(--orange); }
.cs-table tbody tr { transition: background .3s ease; }
.cs-table tbody tr:hover td { background: #FBF5EC; }

/* two side by side text cards */
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.cs-pair article {
  padding: 30px 30px 28px;
  border: 1px solid #EEE7DE;
  border-radius: 16px;
  background: #FBF5EC;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease;
}
.cs-pair article:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(255, 130, 0, .55); }
.cs-pair h3 { margin-bottom: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.cs-pair .cs-sub { margin-bottom: 12px; font-size: 14.5px; color: var(--orange); font-weight: 500; }
.cs-pair p { font-size: 15.5px; line-height: 1.65; color: #3d3833; }

/* wide creatives */
.cs-wide { display: grid; gap: 50px; margin-top: 10px; }
.cs-wide .cs-post-img { border-radius: 16px; }
.cs-wide .cs-post:hover .cs-post-img { transform: translateY(-8px); }

/* objective tiles on dark */
.cs-objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.cs-objective {
  padding: 30px 28px 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: linear-gradient(160deg, #1f1d1b, #121212);
  transition: border-color .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.cs-objective:hover { border-color: rgba(255, 178, 30, .4); transform: translateY(-6px); }
.cs-objective b {
  display: block;
  font-size: max(46px, calc(70 * var(--u)));
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  color: #FFB21E;
}
.cs-objective h3 { margin: 18px 0 10px; font-size: 19px; font-weight: 600; color: #fff; }
.cs-objective p { font-size: 15px; line-height: 1.6; color: #B9B1A9; }

/* KPI lists in three columns on dark */
.cs-kpi-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.cs-kpi-cols h4 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FFB21E;
}
.cs-kpi-cols ul { list-style: none; margin: 0; padding: 0; }
.cs-kpi-cols li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cs-kpi-cols li p { font-size: 15.5px; color: #fff; }
.cs-kpi-cols li small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: #9C948C; }
.cs-dark .cs-table th { background: #FF8200; color: #191919; }
.cs-dark .cs-table td { background: #141414; color: #CFC7BF; border-bottom-color: rgba(255, 255, 255, .08); }
.cs-dark .cs-table td:first-child { color: #fff; }
.cs-dark .cs-table tbody tr:hover td { background: #1d1b19; }

@media (max-width: 767px) {
  .cs-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cs-stat { padding: 20px 18px; }
  .cs-stat span { font-size: 13.5px; }
  .cs-insight { padding: 24px 22px; }
  .cs-pair, .cs-objectives, .cs-kpi-cols { grid-template-columns: 1fr; }
  .cs-table { font-size: 14px; min-width: 560px; }
  .cs-table th, .cs-table td { padding: 14px 12px; }
  .cs-table td:first-child { white-space: normal; }
}

@media (min-width: 768px) { .cs-meta-6 { grid-template-columns: repeat(6, 1fr); } }
.cs-lessons-long p { font-size: max(19px, calc(30 * var(--u))); line-height: 1.3; }
@media (max-width: 767px) { .cs-lessons-long p { font-size: 5.2vw; } }
