
/* Case study: the page takes the client's card colour for the hero, cools to pearl for the story, and warms into the next client's colour at the end */
main{display:block}
.cs-hero{padding:calc(var(--annc,0px) + 150px) 0 0}
.cs-crumb{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--muted);margin-bottom:clamp(28px,4vw,56px)}
.cs-crumb a{color:inherit;text-decoration:none}
.cs-crumb a:hover{color:var(--fg)}
.cs-crumb i,.cs-crumb .t-i{font-style:normal;opacity:.5}.cs-crumb p{margin:0}
.cs-cap,.cs-lead,.cs-mv,.cs-ml,.cs-dd,.ws-theme{margin-top:0}.cs-cap{font-size:clamp(15px,1.2vw,18px);color:var(--accent);margin:0 0 18px;font-weight:500}
.cs-title{font-size:clamp(64px,13.5vw,220px);font-stretch:82%;margin:0 0 clamp(32px,4vw,56px);text-wrap:balance}
.cs-row{display:grid;grid-template-columns:minmax(0,1fr);gap:40px 64px;align-items:start;padding-bottom:clamp(48px,6vw,96px)}
.cs-lead{font-size:clamp(21px,2vw,30px);line-height:1.3;letter-spacing:-.02em;max-width:26ch;margin:0}
.cs-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:28px 32px;margin:0}
.cs-meta>div{border-top:1px solid var(--line);padding-top:14px}
.cs-meta .cs-dt{font-size:13px;color:var(--muted);margin-bottom:10px}
.cs-meta .cs-dd{margin:0;font-size:16px}
.cs-meta .ws-tags{--chip:var(--soft)}
.cs-meta .ws-tags .t-span{border:1px solid var(--line);background:transparent}
.cs-site{display:inline-flex;align-items:center;gap:8px;color:inherit}
.cs-site svg{width:12px;height:12px}
/* Client: the logo links to their live site */
.cs-client{display:inline-flex;flex-direction:column;align-items:flex-start;gap:14px;color:inherit;text-decoration:none}
.cs-clogo{display:block;max-width:170px;max-height:44px;width:auto;height:auto;transition:transform .6s var(--out),opacity .4s}
.cs-hero[data-tone="light"] .cs-clogo,.cs-hero[data-tone="haze"] .cs-clogo{filter:brightness(0);opacity:.85}
a.cs-client:hover .cs-clogo{transform:translateY(-3px)}
a.cs-client:hover .cs-site svg{transform:translate(2px,-2px)}
.cs-site svg{transition:transform .5s var(--out)}
.cs-side a{display:inline-block}

/* Lead visual: wiped in along the 21° cut, then eases up to full width as it scrolls */
.cs-visual{padding:0 var(--gr) clamp(64px,8vw,140px) var(--gl);max-width:1640px;margin:0 auto}
.cs-stage{position:relative;border-radius:clamp(18px,2vw,28px);overflow:hidden;background:var(--soft);display:grid;place-items:center;padding:clamp(20px,5vw,80px) clamp(16px,6vw,110px) 0;transform-origin:50% 0;--h:-70%;clip-path:polygon(0 calc(var(--h) + 70%),100% var(--h),100% 100%,0 100%)}
html.js .cs-stage{--h:100%}
.cs-stage .ws-glow{z-index:0}
.cs-stage .cs-frame{position:relative;z-index:1;width:100%;max-width:1180px;border-radius:14px 14px 0 0;box-shadow:0 40px 90px -30px rgba(0,0,0,.55),0 0 0 1px rgba(236,234,230,.12)}
.cs-stage .cs-frame .ws-vid,.cs-stage .cs-frame img{display:block;width:100%;aspect-ratio:1312/800;object-fit:cover;object-position:top;background:#fff}
.cs-stage .ws-stone{margin-bottom:clamp(20px,5vw,80px);width:min(70%,460px)}
.cs-stage .ws-stone img{width:52%;height:auto}

/* Story: a 70ch reading column with a sticky contents list */
.cs-story{padding:clamp(72px,9vw,150px) 0}
.cs-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:48px}
.cs-side{display:none}
.cs-body{max-width:70ch}
.cs-sec+.cs-sec{margin-top:clamp(64px,7vw,110px)}
.cs-sec .idx{margin-bottom:14px}
.cs-sec h2{font-size:clamp(32px,3.6vw,56px);letter-spacing:-.04em;line-height:1;margin:0 0 28px}
.cs-rt{font-size:clamp(18px,1.3vw,20px);line-height:1.65;color:var(--fg)}
.cs-rt>*+*{margin-top:1.1em}
.cs-rt h3{font-size:1.25em;letter-spacing:-.02em;margin-top:1.8em}
.cs-rt ul,.cs-rt ol{padding-left:1.2em}
.cs-rt li+li{margin-top:.4em}
.cs-rt a{color:var(--accent)}
.cs-rt img{max-width:100%;height:auto;border-radius:14px}
.cs-rt blockquote{border-left:2px solid var(--accent);padding-left:20px;font-size:1.15em;letter-spacing:-.01em}

/* Outcomes: verified numbers only */
.cs-metrics{padding:0 0 clamp(72px,9vw,150px)}
.cs-mgrid{display:grid;grid-template-columns:minmax(0,1fr);border-top:1px solid var(--line)}
.cs-m{padding:32px 0;border-bottom:1px solid var(--line)}
.cs-mv{display:block;font-size:clamp(56px,8vw,128px);letter-spacing:-.05em;line-height:.9;font-weight:500;color:var(--accent);font-variant-numeric:tabular-nums}
.cs-ml{display:block;margin-top:14px;color:var(--muted);max-width:28ch}

/* Gallery: alternates full width and inset */
.cs-gallery{padding:0 0 clamp(72px,9vw,150px)}
.cs-gal{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(12px,1.6vw,24px)}
.cs-gal>*{display:block;width:100%;height:auto;border-radius:clamp(14px,1.6vw,22px);grid-column:1/-1}
.cs-gal>:nth-child(3n+2){grid-column:1/span 7}
.cs-gal>:nth-child(3n+3){grid-column:8/-1;align-self:end}
/* Prototype sample images: crops of the client screenshot, and the logo on a stone */
.cs-gal .sm{object-fit:cover;object-position:top;aspect-ratio:16/9;background:var(--soft)}
.cs-gal .sm:nth-child(3n+2){aspect-ratio:4/3}
.cs-gal .sm:nth-child(3n+3){aspect-ratio:4/5;object-position:22% 0}
.cs-gal .sm-stone{display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#3a2f6e,#17123A 55%,#0a0820 100%)}
.cs-gal .sm-stone img{width:38%;max-width:240px;height:auto}
/* Marks sample copy so nobody mistakes it for real project facts */
.cs-sample{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1;padding:6px 11px;border-radius:99px;border:1px dashed var(--line);color:var(--muted);margin:0 0 18px;vertical-align:middle}
.cs-sample::before{content:"";width:6px;height:6px;border-radius:50%;background:#E8A23A}
.cs-wrap-sample{margin:0 0 24px}

/* Review: the words light up as the reader reaches them */
.cs-review{padding:clamp(96px,12vw,200px) 0}
.cs-rv{max-width:1100px}
.cs-rv .rv-stars{margin-bottom:28px}
.cs-quote{margin:0;font-size:clamp(34px,4.6vw,76px);line-height:1.04;letter-spacing:-.04em;font-weight:500;text-wrap:balance}
.cs-quote::before{content:"\201C"}
.cs-quote::after{content:"\201D"}
.cs-quote .w{opacity:.18}
html:not(.js) .cs-quote .w,.cs-quote.static .w{opacity:1}
.cs-who{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;margin-top:36px;color:var(--muted);font-size:16px}
.cs-who b{color:var(--fg);font-weight:500}
.cs-who .ulink{color:var(--fg)}

/* Next project: the page warms into the next client's colour, and the name slides in */
.cs-next{padding:clamp(80px,10vw,160px) 0 clamp(96px,11vw,180px);overflow:hidden}
.cs-nlink{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;color:inherit;text-decoration:none}
.cs-nk{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:clamp(28px,3vw,48px)}
.cs-nname{font-size:clamp(52px,8.4vw,150px);font-stretch:82%;line-height:.9;letter-spacing:-.05em;font-weight:500;margin:0;text-wrap:balance}
.cs-nn{margin-right:.18em}
.cs-nname svg{display:inline-block;width:.42em;height:.42em;vertical-align:.05em;transition:transform .7s var(--out)}
.cs-nlink:hover .cs-nname svg,.cs-nlink:focus-visible .cs-nname svg{transform:translateX(.12em) rotate(-45deg)}
.cs-ncap{margin:18px 0 0;color:var(--muted);font-size:clamp(16px,1.3vw,20px)}
.cs-nshot{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:1312/800;background:var(--soft);clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transition:clip-path .9s var(--ease)}
.cs-nshot img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;transform:scale(1.04);transition:transform 1.2s var(--out)}
.cs-nlink:hover .cs-nshot{clip-path:polygon(0 0,100% 0,100% 72%,86% 100%,0 100%)}
.cs-nlink:hover .cs-nshot img{transform:scale(1)}

/* Reading progress */
.cs-prog{position:fixed;left:0;right:0;top:0;height:2px;z-index:80;pointer-events:none;background:var(--accent);transform:scaleX(var(--p,0));transform-origin:0 50%}

/* Empty CMS fields: sections hide, unless the prototype is showing placeholders */
.cs-empty{display:none!important}
.ph{border:1px dashed var(--line);border-radius:14px;padding:22px;display:grid;gap:12px}
.ph em{font-style:normal;font-size:13px;color:var(--muted)}
.ph i{display:block;height:12px;border-radius:6px;background:var(--soft)}
.ph i:nth-child(3n){width:82%}.ph i:nth-child(4n){width:64%}
.cs-mv.ph-v,.cs-ml.ph-v{color:var(--muted);opacity:.5}
.cs-gal .ph{grid-column:1/-1;aspect-ratio:16/8;place-items:center}
.cs-gal .ph:nth-child(3n+2){grid-column:1/span 7;aspect-ratio:4/3}
.cs-gal .ph:nth-child(3n+3){grid-column:8/-1;aspect-ratio:4/5}

@media (min-width:900px){
  .cs-row{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
  .cs-grid{grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:clamp(48px,7vw,140px)}
  .cs-side{display:block}
  .cs-side-in{position:sticky;top:130px}
  .cs-logo{display:block;max-width:150px;max-height:48px;width:auto;height:auto;margin-bottom:36px;filter:brightness(0);opacity:.8}
  .cs-toc{list-style:none;margin:0;padding:0;border-left:1px solid var(--line)}
  .cs-toc a{display:flex;gap:14px;padding:9px 0 9px 18px;margin-left:-1px;border-left:1px solid transparent;color:var(--muted);text-decoration:none;font-size:15px;transition:color .4s,border-color .4s}
  .cs-toc a small{font-size:12px;opacity:.7;padding-top:2px}
  .cs-toc a.on{color:var(--fg);border-color:var(--accent)}
  .cs-mgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cs-m{padding:40px 32px 40px 0;border-bottom:0}
  .cs-m+.cs-m{border-left:1px solid var(--line);padding-left:32px}
  .cs-nlink{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:end}
  .cs-nk{grid-column:1/-1;margin-bottom:0}
}
@media (max-width:899px){.cs-gal>*,.cs-gal>:nth-child(n){grid-column:1/-1}.cs-gal .sm:nth-child(n){aspect-ratio:4/3}}
@media (prefers-reduced-motion:reduce){.cs-stage{clip-path:none!important}.cs-quote .w{opacity:1}}

/* Prototype controls (not part of the site) */
.proto{position:fixed;left:16px;bottom:16px;z-index:95;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px;border-radius:14px;background:rgba(18,18,24,.88);color:#F4F6F7;font:500 13px/1 var(--f);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 30px rgba(0,0,0,.25);max-width:calc(100vw - 32px)}
.proto b{padding:0 6px;opacity:.6;font-weight:500}
.proto select,.proto label{font:inherit;color:inherit;background:rgba(255,255,255,.1);border:0;border-radius:9px;padding:8px 10px}
.proto label{display:flex;gap:8px;align-items:center;cursor:pointer}
.proto select option{color:#121218}

/* Webflow markup: block elements stand in for the prototype's inline tags */
.cs-whot p{display:inline;margin:0}.cs-whot p+p::before{content:", "}.cs-rname{color:var(--fg);font-weight:500}
.cs-rsrc .cs-rplat{display:inline}.cs-rsrc .cs-rplat::before{content:"Read on "}
.cs-nname .cs-nn{display:inline}.cs-nk .t-span{display:block}
.cs-nsrc{display:none!important}
.cs-meta p,.cs-mv{margin:0}.cs-ml{margin-bottom:0}
.cs-rt>:first-child{margin-top:0}
.cs-gal .w-dyn-list,.cs-gal .w-dyn-empty{display:none}

/* Headline words rise inside masks: give the masks room for apostrophes and descenders */
.cs-title .hm-mask{padding:.1em .06em .2em;margin:-.1em -.06em -.2em}
