/* AltxDesign — a case study page (site-v3/work/*.html, written by tools/work-build.mjs; Navin, 25 Nov 2026).
   Cream and ink like every page, with the project's own accent (--cs-accent, from its palette in
   js/main.js) on the small details only. Sizes are the type scale's (css/style.css TYPE); the pictures
   stay square-cornered, like the Work page's: they are the work itself. Content sits on the site's one
   edge (--edge, css/style.css THE PAGE WIDTH). */

.cs{padding-top:clamp(112px,16vh,168px)}
.cs > :not(.ask){padding-inline:var(--edge)}

/* ---------- the opening ---------- */
.cs-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;max-width:calc(var(--wrap) + 2 * var(--edge));margin-inline:auto}
.cs-crumb{font-size:var(--fs-small);color:var(--muted)}
.cs-crumb a{color:inherit;text-decoration:none;border-bottom:1px solid color-mix(in srgb,currentColor 35%,transparent)}
.cs-crumb a:hover{color:var(--near)}
.cs-hero__title{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.045em;line-height:.96;max-width:12em;text-wrap:balance}
.cs-hero__lead{font-size:var(--fs-lead);line-height:1.45;max-width:34em;text-wrap:pretty}
.cs-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 32px;margin-top:14px;padding-top:22px;border-top:1px solid rgba(11,11,13,.14)}
.cs-facts dt{font-size:var(--fs-label);font-weight:600;color:var(--muted);margin-bottom:8px}
.cs-facts dd{font-size:var(--fs-body);line-height:1.4}
.cs-facts__wide{grid-column:span 2}
.cs-facts .tags{list-style:none;padding:0;--p-line:rgba(11,11,13,.22)}
.cs-hero__live{justify-self:start;margin-top:6px}

/* ---------- the pictures ---------- */
.cs-cover{max-width:calc(var(--wrap) + 2 * var(--edge));margin:clamp(40px,6vw,72px) auto 0}
.cs-cover img,.cs-pic img{display:block;width:100%;height:auto;background:#e6e1d5}
.cs-cover img{aspect-ratio:16 / 9;object-fit:cover}
.cs-media{display:grid;gap:clamp(12px,1.6vw,24px);margin-top:clamp(32px,4vw,56px)}
.cs-media--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-media + .cs-media{margin-top:clamp(12px,1.6vw,24px)}
.cs-pic{margin:0}
.cs-pic__label{margin-top:10px;font-size:var(--fs-label);font-weight:600;color:var(--muted)}
.cs-pic__label::before{content:'';display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:var(--cs-accent);vertical-align:1px}
.cs-media--2 .cs-pic:first-child .cs-pic__label::before{background:var(--mid,#d0d0cc)}   /* before: grey dot, after: the project's colour */

/* ---------- the story: the heading on the left, the words on the right, the pictures underneath ---------- */
.cs-sec{max-width:calc(var(--wrap) + 2 * var(--edge));margin:clamp(72px,10vw,140px) auto 0}
.cs-sec__row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,3vw,40px) clamp(32px,5vw,96px);padding-top:28px;border-top:1px solid rgba(11,11,13,.14)}
/* the stage and the headline read as one heading across the page; the words sit under it on the right */
.cs-sec__h{grid-column:1 / -1;max-width:17em;font-size:var(--fs-h2);font-weight:700;letter-spacing:-.035em;line-height:1.02;text-wrap:balance}
.cs-sec__stage{color:color-mix(in srgb,var(--near) 38%,var(--cream))}
.cs-sec__text{grid-column:2}
.cs-sec__text{display:flex;flex-direction:column;gap:1.1em;max-width:38em}
.cs-sec__text p{font-size:var(--fs-lead);line-height:1.55;text-wrap:pretty}
.cs-sec__text a{color:inherit;text-decoration-color:var(--cs-accent);text-underline-offset:.2em}

/* ---------- the client's words ---------- */
.cs-quote{max-width:calc(var(--wrap) + 2 * var(--edge));margin:clamp(88px,12vw,160px) auto 0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px clamp(32px,5vw,96px)}
.cs-quote::before{content:'';display:block;width:56px;height:4px;margin-top:.7em;background:var(--cs-accent)}
.cs-quote__text p{font-size:var(--fs-h3);font-weight:600;letter-spacing:-.015em;line-height:1.3;text-wrap:pretty}
.cs-quote__by{grid-column:2;font-size:var(--fs-body);color:var(--muted)}
.cs-quote__by b{display:block;color:var(--near);font-weight:700}

/* ---------- share (Navin, 25 Nov 2026): the Notes' share row (css/page-notes.css SHARE), on the
   quote's two columns: the heading on the left, the round buttons on the right. Copy link and Instagram
   run in js/page-case.js; LinkedIn, X and Facebook are plain links. The icons come with css/style.css. ---------- */
.cs-share{max-width:calc(var(--wrap) + 2 * var(--edge));margin:clamp(72px,9vw,120px) auto 0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center;gap:16px clamp(32px,5vw,96px)}
.cs-share__title{font-size:var(--fs-h3);font-weight:700;letter-spacing:-.025em;line-height:1.1}
.cs-share__row{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.cs-share__row a,.cs-share__row button{display:inline-grid;place-items:center;width:48px;height:48px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 1.5px rgba(11,11,13,.2);font-size:var(--fs-body);color:var(--near);text-decoration:none;cursor:pointer;transition:background .3s ease,color .3s ease,box-shadow .3s ease,transform .5s var(--ease-out)}
.cs-share__row li:first-child button{background:var(--near);color:var(--cream);box-shadow:none}
.cs-share__row a:hover,.cs-share__row button:hover{background:var(--near);color:var(--cream);box-shadow:none;transform:translateY(-2px)}
.cs-share__row [data-share-copy].is-done,.cs-share__row [data-share-insta].is-done{background:var(--orange);color:var(--near);box-shadow:none}
.cs-share__row a:focus-visible,.cs-share__row button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.cs-share__say{grid-column:2;min-height:1.4em;font-size:var(--fs-small);color:var(--muted)}
@media(prefers-reduced-motion:reduce){.cs-share__row :is(a,button){transition:none}.cs-share__row :is(a,button):hover{transform:none}}

/* ---------- on to the next one: "All work" sits on the "Next project" label's line (the two share a baseline),
   the project's name and line below (Navin, 25 Nov 2026: it looked lost at the bottom right) ---------- */
.cs-next{max-width:calc(var(--wrap) + 2 * var(--edge));margin:clamp(88px,12vw,160px) auto clamp(72px,9vw,120px);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:24px 48px;padding-top:28px;border-top:1px solid rgba(11,11,13,.14)}
.cs-next__link{display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none}
.cs-next__lbl{font-size:var(--fs-label);font-weight:600;color:var(--muted)}
.cs-next__name{font-size:var(--fs-h2);font-weight:700;letter-spacing:-.035em;line-height:1;transition:color .3s ease}
.cs-next__blurb{font-size:var(--fs-body);color:var(--muted)}
.cs-next__link:hover .cs-next__name,.cs-next__link:focus-visible .cs-next__name{color:var(--cs-accent)}
.cs-next__link:focus-visible{outline:2px solid var(--ring,#0B0B0D);outline-offset:6px;border-radius:var(--r-sm)}

@media(max-width:900px){
  .cs-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-sec__row,.cs-quote{grid-template-columns:minmax(0,1fr)}
  .cs-sec__text{grid-column:auto}
  .cs-quote::before{margin-top:0}
  .cs-quote__by{grid-column:1}
  .cs-share{grid-template-columns:minmax(0,1fr)}
  .cs-share__say{grid-column:1}
}
@media(max-width:600px){
  .cs-facts{grid-template-columns:minmax(0,1fr)}
  .cs-facts__wide{grid-column:auto}
  .cs-media--2{grid-template-columns:minmax(0,1fr)}
  .cs-next{grid-template-columns:minmax(0,1fr)}
  .cs-cover img{aspect-ratio:4 / 3}
}
