/* Case studies (BRIEF_case-studies-homepage_20261129, Hamza 15:41 UK 29 Nov 2026): the four colourful cards directly under the home hero,
   the same four on /work, and the four case-study pages. One file for all three places (the home page loads home.css, the other pages
   site.css), no inline styles anywhere (CSP): every colour is a class. Colours and gradients are the ones of the PDFs
   (casestudy_build.py). Text on the coloured parts sits on a dark veil so white type keeps at least 4.5:1. */
.cs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the four palettes (gradient --g, accent --a) */
.cs-1{--g:linear-gradient(120deg,#6d28d9,#c026d3 60%,#f472b6);--a:#8b2fd6}
.cs-2{--g:linear-gradient(120deg,#047857,#0d9488 60%,#22c55e);--a:#0b8f6a}
.cs-3{--g:linear-gradient(120deg,#be123c,#e11d48 55%,#fb923c);--a:#d6214f}
.cs-4{--g:linear-gradient(120deg,#1d4ed8,#4f46e5 55%,#06b6d4);--a:#3b55e0}
/* the card colours used by the feature cards and the step badges */
.k-059669{--c:#059669}.k-0891b2{--c:#0891b2}.k-0d9488{--c:#0d9488}.k-16a34a{--c:#16a34a}.k-2563eb{--c:#2563eb}
.k-7c3aed{--c:#7c3aed}.k-db2777{--c:#db2777}.k-e11d48{--c:#e11d48}.k-ea580c{--c:#ea580c}

.cs-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:999px;font:700 16px/1.2 "Inter",system-ui,sans-serif;text-decoration:none;text-align:center;border:2px solid transparent;cursor:pointer}
.cs-btn:focus-visible{outline:3px solid #ffe066;outline-offset:3px}
.cs-btn--white{background:#fff;color:#16202e;border-color:#fff}
.cs-btn--gold{background:linear-gradient(135deg,#e8c874,#c9a24a);color:#0b0b0c;border-color:#e8c874;box-shadow:0 5px 0 #8a6d24}
.cs-btn--ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.55)}
.cs-btn--wide{width:100%;max-width:760px;font-size:18px;min-height:56px}

/* ---------- the block on the home page and /work ---------- */
.cs-home{position:relative;z-index:1;padding:30px 0 34px}
.cs-nb{white-space:nowrap}
.cs-wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.cs-head{text-align:center;margin:0 auto 22px;max-width:820px}
.cs-kicker{display:inline-block;font:700 12px/1 "Inter",system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#ffe066;border:1.5px solid rgba(255,224,102,.7);border-radius:999px;padding:7px 14px;margin-bottom:12px}
.cs-head h2{font:800 clamp(26px,5.4vw,46px)/1.1 "Inter",system-ui,sans-serif;color:#fff;margin:0 0 10px;letter-spacing:-.01em;text-transform:none;text-wrap:balance}
.cs-head h2 em{font-style:normal;color:#ffe066}
.cs-head p{font:500 clamp(16px,2.4vw,19px)/1.5 "Inter",system-ui,sans-serif;color:#d9dde5;margin:0}
.cs-grid{display:grid;grid-template-columns:1fr;gap:16px;list-style:none;margin:0;padding:0}
.cs-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:20px 20px 22px;border-radius:24px;color:#fff;background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3)),var(--g);box-shadow:0 8px 0 rgba(0,0,0,.28),0 18px 40px rgba(0,0,0,.35);overflow:hidden}
.cs-card__e{font-size:40px;line-height:1}
.cs-card h3{text-transform:none;letter-spacing:0;font:800 26px/1.1 "Inter",system-ui,sans-serif;margin:0;color:#fff}
.cs-card__line{font:600 16px/1.45 "Inter",system-ui,sans-serif;margin:0;color:#fff}
.cs-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;list-style:none;margin:4px 0 6px;padding:0}
.cs-tile{background:#fff;border:3px solid var(--a);border-radius:16px;padding:10px 8px;text-align:center;box-shadow:0 4px 0 rgba(0,0,0,.18);display:flex;flex-direction:column;justify-content:center}
.cs-tile b{display:block;font:800 22px/1.1 "Inter",system-ui,sans-serif;color:var(--a)}
.cs-tile span{display:block;font:500 12.5px/1.3 "Inter",system-ui,sans-serif;color:#334155;margin-top:3px}
.cs-card .cs-btn{margin-top:auto;width:100%}
.cs-foot{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:26px;text-align:center}
.cs-ring{margin:0;font:600 17px/1.4 "Inter",system-ui,sans-serif;color:#eef0f3}
.cs-ring a{color:#ffe066;font-weight:800;white-space:nowrap}
@media (min-width:760px){
  .cs-grid{grid-template-columns:1fr 1fr;gap:20px}
  .cs-card{padding:24px 26px 26px}
}
@media (min-width:760px) and (prefers-reduced-motion:no-preference){
  .cs-card{transition:transform .18s ease,box-shadow .18s ease}
  .cs-card:hover{transform:translateY(-5px);box-shadow:0 13px 0 rgba(0,0,0,.28),0 26px 50px rgba(0,0,0,.4)}
}

/* ---------- a case-study page ---------- */
.cs-page{position:relative;z-index:1;padding:28px 0 20px;color:#16202e}
.cs-crumb{margin:0 0 14px;font:600 14px/1.4 "Inter",system-ui,sans-serif}
.cs-crumb a{color:#ffe066}
.cs-hero{position:relative;border-radius:26px;padding:24px 22px 26px;color:#fff;background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.28)),var(--g);box-shadow:0 8px 0 rgba(0,0,0,.28),0 18px 40px rgba(0,0,0,.35);margin-bottom:18px}
.cs-hero .eyebrow{display:inline-block;background:rgba(255,255,255,.22);border:1.5px solid rgba(255,255,255,.75);border-radius:999px;font:700 12px/1.3 "Inter",system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#fff;padding:5px 14px;margin:0 0 12px}
.cs-hero .ukbadge{margin-bottom:12px}
.cs-hero__no{margin:0 0 8px;font:700 12px/1 "Inter",system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;opacity:.95}
.cs-hero h1{font:800 clamp(28px,5.2vw,44px)/1.12 "Inter",system-ui,sans-serif;margin:0 0 12px;color:#fff;letter-spacing:-.01em;padding-top:10px;text-transform:none;text-wrap:balance}
.cs-hero__sub{font:500 clamp(16px,2.2vw,19px)/1.55 "Inter",system-ui,sans-serif;margin:0;color:#fff;max-width:900px}
.cs-hero__sub b{color:#ffe066}
.cs-chips{display:grid;grid-template-columns:1fr 1fr;gap:12px;list-style:none;margin:0 0 20px;padding:0}
.cs-chip{background:#fff;border:3px solid var(--a);border-radius:18px;padding:12px 10px;text-align:center;box-shadow:0 5px 0 rgba(0,0,0,.18)}
.cs-chip b{display:block;font:800 clamp(24px,4vw,32px)/1.1 "Inter",system-ui,sans-serif;color:var(--a)}
.cs-chip span{display:block;font:500 14px/1.35 "Inter",system-ui,sans-serif;color:#334155;margin-top:4px}
.cs-box{border-radius:20px;padding:18px 20px;border:3px solid;margin:0 0 18px;font:500 16px/1.6 "Inter",system-ui,sans-serif;color:#16202e}
.cs-box h2{text-transform:none;letter-spacing:0;display:flex;align-items:center;gap:8px;font:800 21px/1.2 "Inter",system-ui,sans-serif;margin:0 0 10px}
.cs-box p{margin:0;font:inherit}
.cs-box ul{list-style:none;margin:0;padding:0}
.cs-box li{position:relative;padding-left:22px;margin:0 0 8px}
.cs-box li:last-child{margin-bottom:0}
.cs-box li:before{content:"";position:absolute;left:2px;top:.62em;width:10px;height:10px;border-radius:50%;background:currentColor}
.cs-box b{font-weight:800}
.cs-amber{background:#fff4d6;border-color:#f5a623}.cs-amber h2{color:#8a5200}.cs-amber li:before{background:#f5a623}
.cs-blue{background:#e5f1ff;border-color:#4a9bff}.cs-blue h2{color:#0e4fa0}.cs-blue li:before{background:#4a9bff}
.cs-pink{background:#ffe9f1;border-color:#ee4d8b}.cs-pink h2{color:#a8104a}.cs-pink li:before{background:#ee4d8b}
.cs-purple{background:#f1e8ff;border-color:#9b6bff}.cs-purple h2{color:#5421b8}.cs-purple li:before{background:#9b6bff}
.cs-teal{background:#dcf7f3;border-color:#14b8a6}.cs-teal h2{color:#0b6b61}.cs-teal li:before{background:#14b8a6}
.cs-two{display:grid;grid-template-columns:1fr;gap:18px;margin:0 0 18px}
.cs-two .cs-box{margin:0}
.cs-sec{text-transform:none;letter-spacing:0;display:flex;align-items:center;gap:12px;font:800 clamp(24px,4vw,30px)/1.2 "Inter",system-ui,sans-serif;color:#fff;margin:26px 0 14px}
.cs-sec:after{content:"";flex:1;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--a),transparent)}
.cs-feats{display:grid;grid-template-columns:1fr;gap:14px;list-style:none;margin:0 0 18px;padding:0}
.cs-feat{border-radius:18px;padding:16px 18px;color:#fff;background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2)),var(--c);box-shadow:0 5px 0 rgba(0,0,0,.25)}
.cs-feat i{display:block;font-style:normal;font-size:28px;line-height:1}
.cs-feat b{display:block;font:800 18px/1.25 "Inter",system-ui,sans-serif;margin:6px 0 4px}
.cs-feat span{display:block;font:500 15px/1.5 "Inter",system-ui,sans-serif}
.cs-flow{display:grid;grid-template-columns:1fr;gap:16px;list-style:none;margin:0 0 20px;padding:0}
.cs-step{position:relative;background:#fff;border:3px solid var(--c);border-radius:18px;padding:22px 14px 14px;text-align:center;box-shadow:0 5px 0 rgba(0,0,0,.14)}
.cs-step .cs-step__n{position:absolute;top:-14px;left:50%;transform:translateX(-50%);width:30px;height:30px;border-radius:50%;background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2)),var(--c);color:#fff;font:800 15px/30px "Inter",system-ui,sans-serif;text-align:center}
.cs-step i{display:block;font-style:normal;font-size:28px;line-height:1}
.cs-step b{display:block;font:800 16px/1.25 "Inter",system-ui,sans-serif;color:#16202e;margin:6px 0 4px}
.cs-step span{display:block;font:500 14px/1.45 "Inter",system-ui,sans-serif;color:#334155}
.cs-cta{background:linear-gradient(135deg,#17a34a,#0b7a34);border:4px solid #ffc83d;border-radius:24px;padding:22px 20px;color:#fff;text-align:center;box-shadow:0 6px 0 #075a26;margin:22px 0 0}
.cs-cta__l1{text-transform:none;letter-spacing:0;font:800 clamp(20px,3.6vw,28px)/1.25 "Inter",system-ui,sans-serif;margin:0 0 8px}
.cs-cta__l1 b{color:#ffe066}
.cs-cta__l2{font:500 16px/1.5 "Inter",system-ui,sans-serif;margin:0 0 16px}
.cs-cta__btns{display:flex;flex-direction:column;align-items:stretch;gap:12px;max-width:520px;margin:0 auto}
.cs-more{margin:26px 0 0;font:500 16px/1.6 "Inter",system-ui,sans-serif;color:#d9dde5;text-align:center}
.cs-more a{color:#ffe066;font-weight:700;white-space:nowrap}
@media (min-width:640px){
  .cs-chips{grid-template-columns:repeat(4,1fr)}
  .cs-feats{grid-template-columns:1fr 1fr}
  .cs-flow{grid-template-columns:repeat(3,1fr)}
  .cs-two{grid-template-columns:1fr 1fr}
  .cs-hero{padding:30px 32px 32px}
  .cs-hero__no{position:absolute;right:24px;top:22px;margin:0}
  .cs-cta__btns{flex-direction:row;flex-wrap:wrap;justify-content:center;max-width:none}
}
@media (min-width:1000px){
  .cs-flow{grid-template-columns:repeat(6,1fr)}
}

/* ---------- whole card = one link, compact header, first row in the first screen (BRIEF_home-first-sidebar_20261129) ----------
   The card's only link is its "Read the case study" button; the button's ::after covers the whole card, so a tap anywhere opens the
   case study (one link, one accessible name, no nested links). Emoji beside the name; four across from 1240 px. */
.cs-grid > li{display:flex}
.cs-card{flex:1;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto 1fr;align-items:center;column-gap:12px;row-gap:10px;cursor:pointer}
.cs-card > :not(.cs-card__e):not(h3){grid-column:1 / -1}
.cs-card__e{font-size:32px}
.cs-card .cs-btn{align-self:end;margin-top:2px}
.cs-card .cs-btn::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.cs-card:has(.cs-btn:focus-visible){outline:3px solid #ffe066;outline-offset:4px}
.cs-card:has(.cs-btn:focus-visible) .cs-btn{outline:none}
.cs-foot{margin-top:18px}
@media (max-width:899px){
  #case-studies.cs-home{padding-top:16px}
  .cs-head h2{font-size:clamp(23px,4.3vw,34px)}
}
@media (min-width:760px) and (max-width:899px){ .cs-card{padding:18px 20px 20px} }
@media (min-width:900px) and (max-height:800px){   /* short desktops (1024x768): more specific than the 900 px block below, which comes later */
  #case-studies.cs-home{padding-top:8px}
  .cs-grid .cs-card{padding:14px 16px 16px;row-gap:7px}
  .cs-grid .cs-card__e{font-size:28px}
  .cs-grid .cs-card h3{font-size:22px}
  .cs-grid .cs-tile{padding:6px 6px}
  .cs-tile span{font-size:12px}
}
@media (min-width:900px){
  .cs-home{padding:14px 0 26px}
  .cs-head{margin-bottom:16px;max-width:980px}
  .cs-kicker{margin-bottom:10px}
  .cs-head h2{font-size:clamp(24px,2.5vw,38px)}
  .cs-card{padding:18px 20px 20px;row-gap:9px}
  .cs-card h3{font-size:24px}
  .cs-card__line{font-size:15px}
  .cs-tile{padding:8px 6px}
  .cs-tile b{font-size:20px}
  .cs-card .cs-btn{min-height:44px;padding:10px 16px;font-size:15px}
}
@media (min-width:1240px){
  .cs-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .cs-card{padding:16px 16px 18px}
  .cs-card h3{font-size:22px}
}
