/* Case study pages (case-study-*.html): one client's case study, in its original words from rayneta.com.
   - The file: a way back to every case study, the client's logo (white), the headline result as the page's title, the
     introduction, and the facts beside it (client, industry, service, channels).
   - The hero image, then Challenge, Solution and Result: headings in the left third, text, lists and images in the
     right two thirds, so the reading measure stays comfortable. A result that leads with its number sets that number
     large, in the homepage stats' type.
   - The client's own words where we have them (the homepage testimonials' .quote), then more case studies as tiles
     (case-studies.css). Looping clips play only while on screen (case-study.js). */
.cs-file{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;align-items:end;padding-top:clamp(96px,14vh,160px)}
.cs-file-main{grid-column:1/9}
.cs-back{display:inline-flex;align-items:center;gap:6px;font:500 14px/1.5 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted);transition:color .2s}
@media(hover:hover){.cs-back:hover{color:var(--white)}}
.cs-logo{display:block;width:auto;height:30px;margin-top:clamp(40px,6vh,64px);filter:brightness(0) invert(1)}
.cs-title{margin-top:28px;font:400 clamp(40px,4.1vw,60px)/1.02 var(--sans);letter-spacing:-.035em;color:var(--white);text-wrap:balance}
.cs-intro{max-width:680px;margin-top:28px;font-size:20px;line-height:1.45;color:var(--body);text-wrap:pretty}
.cs-intro p{margin:0}
.cs-intro p+p{margin-top:16px}
.cs-facts{grid-column:9/-1;margin:0;padding:0}
.cs-facts div{padding:12px 0 14px;border-top:1px solid var(--line)}
.cs-facts dt{font:500 12px/1.5 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.cs-facts dd{margin:4px 0 0;font-size:16px;line-height:1.4;color:var(--white)}

/* Figures: photographs, screenshots and clips, on the card's 4px corners. The hero crops to 3:2, the clients'
   photographs' own proportion, so a flat lay or a street scene keeps everything at its edges; an inline
   object-position can move a subject back into frame. A photograph smaller than the column (--inset) shows at its own
   size rather than enlarged and soft. A chart screenshot (white in the file) is inverted to sit dark on the page, its
   line colours kept. */
.cs-hero{margin:clamp(56px,8vh,96px) 0 0}
.cs-hero img,.cs-hero video{display:block;width:100%;height:auto;aspect-ratio:3 / 2;object-fit:cover;border-radius:4px;background:#1b1b18}
/* A logo composed over its own artwork (Mintlify's share image, rebuilt at full size): the vector logo centred over
   the ground, its width set inline to match the original. */
.cs-hero--logo{position:relative}
.cs-hero--logo .cs-hero-logo{position:absolute;left:50%;top:50%;height:auto;aspect-ratio:auto;object-fit:contain;border-radius:0;background:none;transform:translate(-50%,-50%)}
.cs-hero--triptych{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cs-hero--triptych img{aspect-ratio:3 / 4}
.cs-figure{margin:48px 0 0}
.cs-figure img,.cs-figure video{display:block;width:100%;height:auto;border-radius:4px;background:#1b1b18}
.cs-figure--inset img{width:auto;max-width:100%}
.cs-figure--chart img{filter:invert(.92) hue-rotate(180deg)}
/* Three looks side by side (--trio), each cropped 3:4, as the triptych hero is. */
.cs-figure--trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cs-figure--trio img{aspect-ratio:3 / 4;object-fit:cover}

/* The story: heading left, text right. Lists run between hairlines: the client's bullets in white, PolyAI's lead-ins as
   headings over their text, and the results larger still. */
.cs-section{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;padding-top:clamp(80px,11vh,128px)}
.cs-label{grid-column:1/5}
.cs-label h2{font-size:clamp(28px,2.78vw,40px);font-weight:500;line-height:1.05;letter-spacing:-.03em}
.cs-body{grid-column:5/-1}
.cs-body>p{max-width:720px;margin:0;font-size:20px;line-height:1.45;color:var(--body);text-wrap:pretty}
.cs-body>p+p{margin-top:20px}
.cs-body>p+ul,.cs-body>ul+p{margin-top:28px}
.cs-list,.cs-steps,.cs-results{margin:0;padding:0;list-style:none;border-bottom:1px solid var(--line)}
.cs-list>li,.cs-steps>li,.cs-results>li{padding:18px 0 20px;border-top:1px solid var(--line)}
.cs-list>li{font-size:20px;line-height:1.4;color:var(--white);text-wrap:pretty}
.cs-steps h3{font-size:20px;font-weight:500;line-height:1.25;letter-spacing:-.01em;color:var(--white)}
.cs-steps p{max-width:680px;margin-top:6px;font-size:18px;line-height:1.45;color:var(--body);text-wrap:pretty}
.cs-results>li{font-size:clamp(20px,1.9vw,26px);line-height:1.25;letter-spacing:-.015em;color:var(--white);text-wrap:pretty}
/* A result that leads with its number: the number on the left, the rest of the line beside it on the same baseline.
   A list's numbers share one column, only as wide as the widest of them, so each line starts a short, even step after
   its number and every line in the list starts at the same point. (A fixed third of the width stranded a short number,
   like 2.5x, far from its words.) */
.cs-results:has(.cs-result--figure){display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:clamp(24px,2.5vw,36px)}
.cs-results:has(.cs-result--figure)>li{grid-column:1/-1}
.cs-result--figure{display:grid;grid-template-columns:subgrid;align-items:baseline}
.cs-result-figure{font-size:clamp(52px,6vw,88px);font-weight:400;line-height:.85;letter-spacing:-.05em}
.cs-result-sub{margin:10px 0 0;padding:0;list-style:none}
.cs-result-sub li{font-size:18px;line-height:1.45;letter-spacing:0;color:var(--body);text-wrap:pretty}

/* More case studies. */
.cs-more{padding:clamp(96px,13vh,160px) 0 clamp(96px,13vh,160px)}
.cs-more-head{display:flex;justify-content:space-between;align-items:baseline;gap:24px}
.cs-more-head h2{font-size:clamp(28px,2.78vw,40px);font-weight:500;line-height:1.05;letter-spacing:-.03em}
.cs-all{display:inline-flex;align-items:center;gap:4px;font:500 14px/1.5 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--white)}
.cs-all img{width:16px;height:16px;transition:transform .2s}
@media(hover:hover){.cs-all:hover img{transform:translateX(3px)}}

@media(max-width:1100px){
 .cs-file-main{grid-column:1/-1}
 .cs-facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;margin-top:40px}
 .cs-label{grid-column:1/-1}
 .cs-body{grid-column:1/-1;margin-top:28px}
}
@media(max-width:800px),(max-height:500px){
 .cs-file{padding-top:72px}
 .cs-logo{height:24px;margin-top:40px}
 .cs-intro,.cs-body>p,.cs-list>li{font-size:18px}
 .cs-facts{grid-template-columns:1fr}
 .cs-hero--triptych,.cs-figure--trio{gap:8px}
 .cs-results:has(.cs-result--figure),.cs-result--figure{display:block}
 .cs-result-figure{display:block;margin-bottom:10px;font-size:64px}
 .cs-section{padding-top:72px}
 .cs-more-head{flex-direction:column;gap:12px}
}

/* Mobile pass (2026-11-11): on phones the three-photo heroes (BNTO, Playground, Frankies) and the looks row are a
   swipeable row of large photos instead of three 109px-wide ones. Each photo takes most of the width (never taller than
   70% of the screen, for a sideways phone) and the next one peeks in; the row runs to the screen's edges. */
@media(max-width:800px),(max-height:500px){
 .cs-hero--triptych,.cs-figure--trio{display:flex;gap:8px;margin-inline:-16px;padding-inline:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:16px;scrollbar-width:none}
 .cs-hero--triptych::-webkit-scrollbar,.cs-figure--trio::-webkit-scrollbar{display:none}
 .cs-hero--triptych img,.cs-figure--trio img{flex:0 0 min(78%,52svh);min-width:0;scroll-snap-align:start}
}
/* Touch screens: the "All case studies" links (top and foot of the page) get 44px tap areas. */
@media(pointer:coarse){
 .cs-back,.cs-all{position:relative}
 .cs-back::after,.cs-all::after{content:"";position:absolute;inset:-12px -4px}
}
