/* Case-study layout (work/*.html). Replaces the Framer hero + image stack.
   Header, testimonial and footer still use the Framer markup/CSS. */

:root {
  --cs-ink: #111;
  --cs-muted: #646465;
  --cs-line: #e8e8ea;
  --cs-stage: var(--token-d51b07a4-8062-4313-bddf-b9f678b42c75, #f7f7f9); /* same as testimonial band */
  --cs-link: #1fbf25;
  --cs-gutter: 24px;
  --cs-max: 1440px;
}

/* Seamless white page: no tinted margins or floating "sheet" shadow */
body.cs,
.cs [data-framer-root] { background: #fff !important; }
.cs [data-framer-name="Section Main"] { box-shadow: none !important; }

.cs-wrap {
  width: 100%;
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 var(--cs-gutter);
  box-sizing: border-box;
}

/* ---------- Hero ---------- */
.cs-hero {
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(40px, 6vw, 88px);
}
.cs-hero__title { margin: 0; max-width: 20em; font-size: clamp(28px, 3.3vw, 46px); }
.cs-hero__client {
  display: block;
  font: 400 clamp(20px, 2vw, 28px)/1.2 "Geist Medium", sans-serif;
  letter-spacing: -0.01em;
  color: #8a8a8c;
  margin-bottom: clamp(8px, 1vw, 14px);
}
.cs-hero__lede {
  display: block;
  font: 400 clamp(28px, 3.3vw, 46px)/1.12 "Geist Medium", sans-serif;
  letter-spacing: -0.025em;
  color: var(--cs-ink);
  text-wrap: balance;
}

/* Project facts: values in a row under the title. Labels stay for screen readers only. */
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  font: 400 17px/24px "Geist Regular", sans-serif;
}
.cs-meta dt {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cs-meta dd { margin: 0; color: var(--cs-muted); }
.cs-meta a { color: var(--cs-muted); text-decoration: none; }
.cs-meta a::after { content: " ↗"; color: var(--cs-muted); }
.cs-meta a:hover, .cs-meta a:hover::after { color: var(--cs-ink); }

/* ---------- Gallery ---------- */
.cs-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--cs-gutter);
  padding-bottom: var(--cs-gutter);
}
.cs-gallery + * { margin-top: 0; }

.cs-shot {
  margin: 0;
  background: var(--cs-stage);
  padding: clamp(20px, 7vw, 112px) clamp(12px, 9vw, 152px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-shot > * { width: 100%; max-width: 1080px; box-sizing: border-box; }
.cs-card { background: #fff; overflow: hidden; }
.cs-card img {
  display: block;
  width: 100%;
  height: auto;
}
/* Caption sits on the stage, directly under the image */
.cs-shot figcaption {
  padding-top: 16px;
  font: 400 15px/22px "Geist Regular", sans-serif;
  color: var(--cs-muted);
}
.cs-shot figcaption p { margin: 0; }
.cs-shot figcaption strong {
  font-family: "Geist Medium", sans-serif;
  font-weight: 400;
  color: var(--cs-ink);
}

@media (max-width: 679px) {
  .cs-gallery { gap: 12px; }
  /* Stage bleeds to the screen edge so the screenshot keeps its size */
  .cs-shot {
    margin: 0 calc(-1 * var(--cs-gutter));
    padding: 24px 12px;
  }
  .cs-shot figcaption {
    padding-top: 12px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* Several images in one stage: pairs side by side, phone screens in a grid of three */
.cs-shot--pair .cs-set,
.cs-shot--grid .cs-set {
  display: grid;
  gap: var(--cs-gutter);
  align-items: start;
}
.cs-shot--pair .cs-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-shot--grid .cs-set { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
.cs-shot--grid > figcaption { max-width: 960px; }
.cs-card video { display: block; width: 100%; height: auto; }
@media (max-width: 679px) {
  .cs-shot--pair .cs-set { grid-template-columns: 1fr; gap: 12px; }
  .cs-shot--grid .cs-set { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Text between images */
.cs-text {
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(48px, 7vw, 112px);
}
.cs-text p {
  max-width: 34em;
  margin: 0 0 0.9em;
  font: 400 clamp(20px, 2vw, 28px)/1.35 "Geist Regular", sans-serif;
  letter-spacing: -0.01em;
  color: var(--cs-ink);
  text-wrap: balance;
}
.cs-text p:last-child { margin-bottom: 0; }
/* Long-form (Verso's manifesto) */
.cs-text--long p {
  max-width: 36em;
  font: 400 clamp(17px, 1.4vw, 19px)/1.65 "PT Serif", Georgia, serif;
  letter-spacing: 0;
  text-wrap: pretty;   /* long-form: balance would make every line short */
}
.cs-text--long p:first-child { color: var(--cs-muted); }
/* Inline links in text blocks: look like the surrounding text, darken on hover */
.cs-text a { color: inherit; text-decoration: none; transition: color 0.15s; }
.cs-text a:hover { color: var(--cs-ink); }
.cs-text a:focus-visible { outline: 2px solid var(--cs-ink); outline-offset: 2px; }

/* Hero row action (e.g. Translucent's Loom walkthrough) */
.cs-meta button {
  all: unset;
  cursor: pointer;
  color: var(--cs-muted);
}
.cs-meta button:hover { color: var(--cs-ink); }
.cs-meta button:focus-visible { outline: 2px solid var(--cs-ink); outline-offset: 4px; }

/* Testimonial: no band, same inset as the screenshot stages */
.cs .cs-quote {
  width: calc(100% - 2 * var(--cs-gutter)) !important;
  max-width: calc(var(--cs-max) - 2 * var(--cs-gutter)) !important;
  background: transparent !important;
  align-self: center;
}
@media (max-width: 679px) {
  .cs .cs-quote { width: 100% !important; max-width: none !important; }
}

/* Testimonial: the whole avatar + name + role block is the LinkedIn link.
   The name's <a> is stretched over the Identity row; its wrappers are made
   static so the overlay positions against the row, not the name. */
.cs .cs-quote [data-framer-name="Identity"] { position: relative; width: fit-content !important; max-width: 100%; align-self: flex-start !important; }
.cs .cs-quote [data-framer-name="Name"],
.cs .cs-quote [data-framer-name="Name"] > div,
.cs .cs-quote [data-framer-name="Name"] h5 { position: static !important; }
.cs .cs-quote [data-framer-name="Name"] { flex: 0 1 auto !important; width: auto !important; }
.cs .cs-quote [data-framer-name="Name"] a::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px 12px 12px 999px;
}
.cs .cs-quote [data-framer-name="Name"] a:focus-visible { outline: none; }
.cs .cs-quote [data-framer-name="Name"] a:focus-visible::after { outline: 2px solid var(--cs-ink); }

/* "Let's collaborate" footer: same side edges as the hero and screenshot stages */
.cs .framer-6nw0s {
  padding-left: var(--cs-gutter) !important;
  padding-right: var(--cs-gutter) !important;
}

/* ---------- Work index (work/index.html) ----------
   One long stack of project images, works.pm-style. Each project is a run of
   .cs-shot stages; its first stage carries the caption. Testimonials sit between. */
.cs-hero__intro {
  max-width: 40em;
  margin: clamp(20px, 2.4vw, 32px) 0 0;
  font: 400 17px/26px "Geist Regular", sans-serif;
  color: var(--cs-muted);
  text-wrap: pretty;
}
.cs-hero__intro a { color: var(--cs-ink); text-decoration: none; }
.cs-hero__intro a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cs-project {
  display: flex;
  flex-direction: column;
  gap: var(--cs-gutter);
  scroll-margin-top: var(--cs-gutter);
}
a.cs-card { display: block; }
a.cs-card:focus-visible { outline: 2px solid var(--cs-ink); outline-offset: 4px; }

/* Testimonial between images: no band, right-aligned column like the case studies */
.cs-say {
  margin: 0;
  padding: clamp(32px, 6vw, 88px) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.cs-say > * { width: 100%; max-width: 780px; }
.cs-say blockquote { margin: 0; }
.cs-say blockquote p {
  margin: 0;
  font: 400 24px/32px "PT Serif", Georgia, serif;
  letter-spacing: -0.1px;
  color: var(--cs-ink);
  text-wrap: pretty;
}
.cs-say figcaption { margin-top: 24px; }
.cs-say__who {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.cs-say__who img { width: 48px; height: 48px; object-fit: cover; display: block; flex: none; }
.cs-say__who > span { display: flex; flex-direction: column; font: 400 15px/22px "Geist Regular", sans-serif; color: var(--cs-muted); }
.cs-say__who strong { font-family: "Geist Medium", sans-serif; font-weight: 400; color: var(--cs-ink); }
.cs-say__who:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.cs-say__who:focus-visible { outline: 2px solid var(--cs-ink); outline-offset: 4px; }
@media (max-width: 679px) {
  .cs-project { gap: 12px; }
  .cs-say blockquote p { font-size: 20px; line-height: 28px; }
  .cs-say__who img { width: 40px; height: 40px; }
}

/* No rounded corners anywhere in the stack */
.cs-index, .cs-index * { border-radius: 0 !important; }


/* Keep the site's standard nav untouched and fit the content to it instead, so the
   header doesn't shift between /work and the case studies. Nav: 1600px max inside
   64px sides (≥1200), 48px (810–1199), 32px (<810). */
.cs { --hub-gutter: 64px; }
@media (max-width: 1199px) { .cs { --hub-gutter: 48px; } }
@media (max-width: 809px) { .cs { --hub-gutter: 32px; } }
.cs [data-framer-name="Section Main"] { max-width: calc(1600px + 2 * var(--hub-gutter)) !important; }
.cs .cs-wrap {
  max-width: calc(1600px + 2 * var(--hub-gutter));
  padding-left: var(--hub-gutter);
  padding-right: var(--hub-gutter);
}
.cs .framer-6nw0s {
  padding-left: var(--hub-gutter) !important;
  padding-right: var(--hub-gutter) !important;
}
.cs .cs-quote {
  width: calc(100% - 2 * var(--hub-gutter)) !important;
  max-width: 1600px !important;
}
@media (max-width: 679px) {
  .cs .cs-shot { margin: 0 calc(-1 * var(--hub-gutter)); }
  .cs .cs-quote { width: calc(100% - 2 * var(--hub-gutter)) !important; }
}
/* Footer gets the same 1600px cap as the nav and stages, so its edges line up on wide screens */
.cs-hub .framer-12r6kto-container {
  max-width: calc(1600px + 2 * var(--hub-gutter));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Site nav ----------
   The same header as the home, about and /work pages (Framer component
   framer-ApGq1, copied from work/index.html), so it doesn't change when moving
   into a case study. Sits outside "Section Main", full width like on /work.
   Breakpoint variants: Desktop ≥1440, Laptop 1200–1439, Tablet 810–1199, Phone <810.
   The phone "Menu" toggle is wired up in site.js. */
@media (min-width: 1440px) { .hidden-tklkj3 { display: none !important; } }
@media (min-width: 1200px) and (max-width: 1439.98px) { .hidden-10mpoad { display: none !important; } }
@media (min-width: 810px) and (max-width: 1199.98px) { .hidden-v4uf0x { display: none !important; } }
@media (max-width: 809.98px) { .hidden-18fajlf { display: none !important; } }
.framer-h02nhg-container { flex: none; width: 100%; height: auto; position: relative; }
.framer-ApGq1.framer-1mtu69u,.framer-ApGq1 .framer-1mtu69u{display:block}
.framer-ApGq1.framer-1bwy05n{flex-flow:row;place-content:center;align-items:center;gap:0;width:1440px;height:min-content;padding:48px 64px;display:flex;position:relative;overflow:hidden}
.framer-ApGq1 .framer-12rhs4y{flex-flow:row;flex:1 0 0;place-content:center space-between;align-items:center;width:1px;max-width:1600px;height:min-content;padding:0;display:flex;position:relative;overflow:hidden}
.framer-ApGq1 .framer-19gxrrh{flex-flow:row;flex:none;place-content:center;align-items:center;gap:10px;width:min-content;height:min-content;padding:0;display:flex;position:relative;overflow:visible}
.framer-ApGq1 .framer-vg0efr{flex-flow:row;flex:none;place-content:center flex-start;align-items:center;gap:0;width:min-content;height:28px;padding:0;text-decoration:none;display:flex;position:relative;overflow:hidden}
.framer-ApGq1 .framer-138fz2d{flex:none;width:98px;height:12px;position:relative}
.framer-ApGq1 .framer-1gxojp1,.framer-ApGq1 .framer-xulm1b,.framer-ApGq1 .framer-6wz0b5,.framer-ApGq1 .framer-oksm8r{white-space:pre;flex:none;width:auto;height:auto;position:relative}
.framer-ApGq1 .framer-f11lu7{flex-flow:row;flex:1 0 0;place-content:center space-between;align-items:center;width:1px;max-width:780px;height:min-content;padding:0;display:flex;position:relative;overflow:visible}
.framer-ApGq1 .framer-1c2y8vc{flex-flow:row;flex:none;place-content:center;align-items:center;gap:24px;width:min-content;height:min-content;padding:0;display:flex;position:relative;overflow:hidden}
@supports (background:-webkit-named-image(i)) and (not (font-palette:dark)){.framer-ApGq1.framer-1bwy05n,.framer-ApGq1 .framer-19gxrrh,.framer-ApGq1 .framer-vg0efr,.framer-ApGq1 .framer-1c2y8vc{gap:0}.framer-ApGq1.framer-1bwy05n>*,.framer-ApGq1 .framer-vg0efr>*{margin:0}.framer-ApGq1.framer-1bwy05n>:first-child,.framer-ApGq1 .framer-19gxrrh>:first-child,.framer-ApGq1 .framer-vg0efr>:first-child,.framer-ApGq1 .framer-1c2y8vc>:first-child{margin-left:0}.framer-ApGq1.framer-1bwy05n>:last-child,.framer-ApGq1 .framer-19gxrrh>:last-child,.framer-ApGq1 .framer-vg0efr>:last-child,.framer-ApGq1 .framer-1c2y8vc>:last-child{margin-right:0}.framer-ApGq1 .framer-19gxrrh>*{margin:0 5px}.framer-ApGq1 .framer-1c2y8vc>*{margin:0 12px}}
.framer-ApGq1.framer-v-1m1tbd6.framer-1bwy05n{width:1200px}
.framer-ApGq1.framer-v-12odftv.framer-1bwy05n{width:810px;padding:40px 48px}
.framer-ApGq1.framer-v-12odftv .framer-f11lu7{max-width:480px}
.framer-ApGq1.framer-v-1bvr6n2.framer-1bwy05n{width:390px;padding:24px 32px}
.framer-ApGq1.framer-v-1bvr6n2 .framer-12rhs4y{flex-direction:column;order:0;place-content:flex-start;align-items:flex-start;gap:32px}
.framer-ApGq1.framer-v-1bvr6n2 .framer-19gxrrh,.framer-ApGq1.framer-v-uhwh58 .framer-19gxrrh{gap:unset;order:0;justify-content:space-between;width:100%}
.framer-ApGq1.framer-v-1bvr6n2 .framer-1gxojp1,.framer-ApGq1.framer-v-uhwh58 .framer-1gxojp1{cursor:pointer}
@supports (background:-webkit-named-image(i)) and (not (font-palette:dark)){.framer-ApGq1.framer-v-1bvr6n2 .framer-12rhs4y,.framer-ApGq1.framer-v-1bvr6n2 .framer-19gxrrh{gap:0}.framer-ApGq1.framer-v-1bvr6n2 .framer-12rhs4y>*{margin:16px 0}.framer-ApGq1.framer-v-1bvr6n2 .framer-12rhs4y>:first-child{margin-top:0}.framer-ApGq1.framer-v-1bvr6n2 .framer-12rhs4y>:last-child{margin-bottom:0}.framer-ApGq1.framer-v-1bvr6n2 .framer-19gxrrh>*,.framer-ApGq1.framer-v-1bvr6n2 .framer-19gxrrh>:first-child,.framer-ApGq1.framer-v-1bvr6n2 .framer-19gxrrh>:last-child{margin:0}}
.framer-ApGq1.framer-v-uhwh58.framer-1bwy05n{width:390px;padding:24px 32px 64px}
.framer-ApGq1.framer-v-uhwh58 .framer-12rhs4y{flex-direction:column;order:0;place-content:flex-start;align-items:flex-start;gap:48px}
.framer-ApGq1.framer-v-uhwh58 .framer-f11lu7{flex-direction:column;flex:none;order:1;justify-content:center;gap:16px;width:100%}
.framer-ApGq1.framer-v-uhwh58 .framer-1c2y8vc{flex-direction:column;place-content:flex-start;align-items:flex-start;gap:16px;width:100%}
.framer-ApGq1.framer-v-uhwh58 .framer-xulm1b{order:0}
.framer-ApGq1.framer-v-uhwh58 .framer-6wz0b5{order:3}
.framer-ApGq1.framer-v-uhwh58 .framer-oksm8r{white-space:pre-wrap;word-break:break-word;word-wrap:break-word;width:100%}
@supports (background:-webkit-named-image(i)) and (not (font-palette:dark)){.framer-ApGq1.framer-v-uhwh58 .framer-12rhs4y,.framer-ApGq1.framer-v-uhwh58 .framer-19gxrrh,.framer-ApGq1.framer-v-uhwh58 .framer-f11lu7,.framer-ApGq1.framer-v-uhwh58 .framer-1c2y8vc{gap:0}.framer-ApGq1.framer-v-uhwh58 .framer-12rhs4y>*{margin:24px 0}.framer-ApGq1.framer-v-uhwh58 .framer-12rhs4y>:first-child,.framer-ApGq1.framer-v-uhwh58 .framer-f11lu7>:first-child,.framer-ApGq1.framer-v-uhwh58 .framer-1c2y8vc>:first-child{margin-top:0}.framer-ApGq1.framer-v-uhwh58 .framer-12rhs4y>:last-child,.framer-ApGq1.framer-v-uhwh58 .framer-f11lu7>:last-child,.framer-ApGq1.framer-v-uhwh58 .framer-1c2y8vc>:last-child{margin-bottom:0}.framer-ApGq1.framer-v-uhwh58 .framer-19gxrrh>*,.framer-ApGq1.framer-v-uhwh58 .framer-19gxrrh>:first-child,.framer-ApGq1.framer-v-uhwh58 .framer-19gxrrh>:last-child{margin:0}.framer-ApGq1.framer-v-uhwh58 .framer-f11lu7>*,.framer-ApGq1.framer-v-uhwh58 .framer-1c2y8vc>*{margin:8px 0}}
