/* =============================================================
   Case-study template — modular content blocks
   Inherits tokens from shared.css. Used by every case study.
   ============================================================= */

body.cs-page {
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}
body.cs-page .sw-chrome { mix-blend-mode: normal; }
body.cs-page .sw-mark { color: var(--ink); }
body.cs-page .sw-chrome-right a { color: var(--ink); }

/* ---------- Entry overlay (image handoff from homepage) ---------- */
.cs-entry {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s ease 0.4s;
}
.cs-entry.gone { opacity: 0; }
.cs-entry-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-entry-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 14, 0.3), rgba(15, 15, 14, 0.55)),
    var(--flood-bg, var(--accent, var(--ink)));
  background-blend-mode: multiply, normal;
  opacity: 0.78;
}
.cs-entry-title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-align: center;
  max-width: 21ch;
}

/* ---------- HERO: full-viewport image with centered title ---------- */
.cs-hero-img {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  height: 100svh;
  height: 100svh;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.cs-hero-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 14, 0.28), rgba(15, 15, 14, 0.52)),
    var(--accent, var(--ink));
  background-blend-mode: multiply, normal;
  opacity: 0.74;
}
.cs-hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
  text-align: center;
  max-width: 21ch;
  text-wrap: pretty;
}
.cs-hero-title em { font-style: italic; opacity: 0.62; }

/* Optional campaign marker at the head of the hero. It sits at the top rather
   than under the title because the title already overlaps the artwork, and a
   13px line has no chance over a busy render. Mirrors .cs-hero-cue at the base. */
.cs-hero-sub {
  position: absolute;
  left: 50%;
  top: clamp(96px, 13vh, 140px);
  transform: translateX(-50%);
  z-index: 2;
  width: max-content;
  max-width: calc(100vw - 2 * var(--pad-x));
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--paper-rgb) / 0.78);
  text-align: center;
}

/* Light-neutral hero: a transparent product render (e.g. the SSG booth mockup)
   floats on a soft studio backdrop instead of the dark/accent scrim */
.cs-hero-img.is-light {
  background: radial-gradient(125% 105% at 50% 38%, #F3EFE9 0%, #E6E1D8 100%);
}
.cs-hero-img.is-light > img {
  object-fit: contain;
  padding: clamp(56px, 10vh, 120px) var(--pad-x) clamp(72px, 11vh, 128px);
}
.cs-hero-img.is-light .cs-hero-scrim {
  background: rgba(243, 239, 233, 0.42);
  background-blend-mode: normal;
  opacity: 1;
}
.cs-hero-img.is-light .cs-hero-title { color: var(--ink); }
.cs-hero-img.is-light .cs-hero-title em { color: var(--ink); opacity: 0.5; }
.cs-hero-img.is-light .cs-hero-cue { color: rgba(15, 15, 14, 0.55); }
.cs-hero-img.is-light .cs-hero-sub { color: rgb(var(--ink-rgb) / 0.62); }
/* Scroll cue at the base of the hero */
.cs-hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.78);
}

/* ---------- INTRO row: description + meta / scope / tools / visit ---------- */
.cs-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding-bottom: clamp(48px, 8vh, 96px);
  border-bottom: 1px solid rgba(28, 28, 26, 0.12);
}
.cs-intro-desc p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 46ch;
  text-wrap: pretty;
  margin-bottom: 32px;
}
.cs-intro-desc .cta-link {
  color: var(--ink);
}
.cs-intro-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 10px;
}
.cs-intro-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}
.cs-intro-meta > div { display: flex; flex-direction: column; gap: 4px; }
.cs-intro-meta dt,
.cs-intro-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}
.cs-intro-meta dd {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.cs-intro-group { display: flex; flex-direction: column; gap: 12px; }
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.cs-tags li {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 7px 14px;
  border: 1px solid rgba(28, 28, 26, 0.18);
  border-radius: 999px;
}
.cs-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-tools img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(28, 28, 26, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

/* ---------- Case-study page wrapper ---------- */
.cs-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(112px, 14vh, 160px) var(--pad-x) clamp(24px, 3.5vh, 40px);
}

/* ---------- HERO (project name + tagline + meta strip) ---------- */
.cs-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: clamp(48px, 8vh, 96px);
  border-bottom: 1px solid rgba(28, 28, 26, 0.12);
}
.cs-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cs-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.cs-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: pretty;
}
.cs-title em { font-style: italic; opacity: 0.5; }
.cs-tagline {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.32;
  color: rgba(28, 28, 26, 0.78);
  max-width: 30ch;
  text-wrap: pretty;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 40px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(28, 28, 26, 0.12);
}
.cs-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}
.cs-meta dd {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Block defaults ---------- */
.cs-block {
  margin: clamp(64px, 10vh, 112px) 0;
}

/* ---------- Block: prose section ---------- */
.cs-block-prose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.cs-block-prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: pretty;
}
.cs-block-prose h2 em {
  font-style: italic;
  opacity: 0.5;
}
.cs-block-prose .cs-eyebrow { margin-bottom: 20px; }
.cs-block-prose > div > p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  color: rgba(28, 28, 26, 0.78);
  margin-bottom: 18px;
  max-width: 62ch;
  text-wrap: pretty;
}
.cs-block-prose > div > p:last-child { margin-bottom: 0; }
.cs-block-prose > div > p strong { color: var(--ink); font-weight: 600; }
.cs-block-prose > div > p em { font-style: italic; }

/* ---------- Block: full-bleed image ---------- */
.cs-block-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}
.cs-block-full img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 84vh;
}
/* Full-viewport-height variant (test) */
.cs-block-full.is-vh { height: 92vh; overflow: hidden; }
.cs-block-full.is-vh img { height: 92vh; max-height: none; }

/* ---------- Block: inset image (content width, full height, never cropped) ---------- */
.cs-block-inset {
  display: flex;
  justify-content: center;
}
.cs-block-inset img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 4px;
}

/* ---------- Block: 2-up image grid ---------- */
.cs-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.cs-block-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-block-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.cs-block-grid figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}
.cs-block-grid .cs-ph {
  aspect-ratio: 4 / 3;
  min-height: 0;
}
/* Wide page-screenshot variant (2:1 cells, no cropping) */
.cs-block-grid.is-pages img { aspect-ratio: 2 / 1; }
/* Square-cell variant (1:1, for moodboard / square reference imagery) */
.cs-block-grid.is-square img { aspect-ratio: 1 / 1; }
.cs-block-grid.is-square .cs-ph { aspect-ratio: 1 / 1; }

/* ---------- Key-decision callout (eyebrow / question / answer) ---------- */
.cs-decision {
  margin-top: 32px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid rgba(28, 28, 26, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(28, 28, 26, 0.025);
}
.cs-decision-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cs-decision-q {
  font-family: var(--sans);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.cs-decision-a {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  color: rgba(28, 28, 26, 0.78);
  max-width: 62ch;
  text-wrap: pretty;
}
.cs-decision-a em { font-style: italic; }

/* image set inside a prose block's right column */
.cs-block-prose > div > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 28px;
}

/* ---------- Storefront module mosaic (mixed-width banners, no crop) ---------- */
.cs-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.cs-modules img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(28, 28, 26, 0.10);
  background: #fff;
}
/* full-width tagline bands span both columns */
.cs-modules .cs-module-wide { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .cs-modules { grid-template-columns: minmax(0, 1fr); }
  .cs-modules .cs-module-wide { grid-column: auto; }
}

/* ---------- Product lineup (3-up, uniform portrait cells, never cropped) ---------- */
.cs-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}
.cs-products figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-products img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(28, 28, 26, 0.025);
}
.cs-products figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
  text-align: center;
}
@media (max-width: 640px) {
  .cs-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Block: pull quote (one quiet accent moment, no dividers) ---------- */
.cs-block-quote {
  margin: clamp(96px, 14vh, 160px) 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-block-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 31ch;
  text-align: center;
  text-wrap: pretty;
}
/* Left-aligned inline pull quote (e.g. sitting under a prose column) */
.cs-block-quote.is-left {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  margin: clamp(30px, 4.5vh, 48px) 0 0;
}
.cs-block-quote.is-left p {
  text-align: left;
  max-width: 30ch;
  font-size: clamp(23px, 2.7vw, 36px);
}

/* ---------- Block: process / sketches grid (3-up captioned) ---------- */
.cs-block-process .cs-block-process-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(32px, 5vh, 56px);
  align-items: start;
}
.cs-block-process h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
}
.cs-block-process .cs-process-intro {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(28, 28, 26, 0.7);
  max-width: 56ch;
  text-wrap: pretty;
}
.cs-block-process .cs-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.cs-block-process figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-block-process img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}
.cs-block-process figcaption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.65);
}

/* ---------- Credits ---------- */
.cs-credits {
  margin: clamp(72px, 11vh, 128px) 0 clamp(48px, 8vh, 80px);
  padding-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid rgba(28, 28, 26, 0.12);
}
.cs-credits-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
  margin-bottom: 24px;
  display: inline-block;
}
.cs-credits-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-credit {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-credit .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}
.cs-credit .name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Next project nav ---------- */
.cs-next {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100vw;
  margin: clamp(56px, 9vh, 96px) 0 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Full-bleed band; inner content aligns to the page's content column */
  padding: clamp(56px, 9vh, 104px) calc((100vw - min(100vw, var(--max-w))) / 2 + var(--pad-x));
  background: var(--next-bg, var(--ink));
  color: var(--paper);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cs-next-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.6);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-next:hover .cs-next-eyebrow { transform: translateX(6px); }
.cs-next-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.cs-next-title em { font-style: italic; opacity: 0.55; }
.cs-next-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 244, 240, 0.7);
  max-width: 50ch;
}

/* ---------- Footer ---------- */
.cs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}
.cs-footer a { color: inherit; text-decoration: none; }
.cs-footer a:hover { color: var(--ink); }

/* ---------- Fade-ins ---------- */
.cs-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-fade.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cs-block-prose,
  .cs-block-process .cs-block-process-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .cs-block-prose h2 { max-width: 100%; }
  .cs-block-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-block-process .cs-process-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-block-process img { aspect-ratio: 16 / 10; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-next { padding: 40px 28px; }
  .cs-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .cs-intro-desc p { max-width: 100%; }
}

@media (max-width: 540px) {
  .cs-hero-img { min-height: 460px; }
  .cs-intro-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =============================================================
   Extended content components (outline-driven case studies)
   ============================================================= */

/* ---------- Section heading (standalone, above blocks) ---------- */
.cs-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60ch;
}
.cs-section-head .cs-intro-label { color: var(--accent); }
.cs-section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.cs-section-head h2 em { font-style: italic; opacity: 0.5; }

/* ---------- Old vs New compare ---------- */
.cs-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}
.cs-compare figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-compare img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.cs-compare figcaption,
.cs-cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}

/* ---------- Expanded palette strip ---------- */
.cs-palette {
  display: flex;
  flex-wrap: wrap;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(28, 28, 26, 0.10);
}
.cs-swatch {
  flex: 1 1 96px;
  min-height: 104px;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.cs-swatch.is-placeholder {
  background: rgba(28, 28, 26, 0.04);
  color: rgba(28, 28, 26, 0.40);
  border-left: 1px dashed rgba(28, 28, 26, 0.18);
}

/* ---------- Opposing-scroll mockup marquee ---------- */
.cs-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
}
.cs-marquee-row {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  will-change: transform;
  /* Pre-shift by the drift travel so neither direction exposes the background */
  margin-left: -150px;
}
.cs-marquee-row > * {
  flex: 0 0 auto;
  /* Three tiles + gaps span exactly 100vw + 2×150px drift headroom at any window size */
  width: calc((100vw + 300px - 2 * clamp(12px, 1.6vw, 20px)) / 3);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.cs-marquee-row img { object-fit: cover; }

/* ---------- Related-work cards (website / tradeshow) ---------- */
.cs-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.cs-related a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.cs-related-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(28, 28, 26, 0.04);
}
.cs-related-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-related a:hover .cs-related-media img { transform: scale(1.04); }
.cs-related .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-related h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cs-related h3 em { font-style: italic; opacity: 0.5; }
.cs-related p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28, 28, 26, 0.66);
  max-width: 44ch;
}
.cs-related .arr {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
}

/* ---------- Subtle related-work notes (sentence + inline link) ---------- */
.cs-related-notes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 64ch;
}
.cs-related-notes p {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(28, 28, 26, 0.78);
}
.cs-inline-link {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s ease;
}
.cs-inline-link:hover { opacity: 0.65; }

/* ---------- Show-planning checklist ---------- */
.cs-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 36px;
  max-width: 64ch;
}
.cs-checklist li {
  position: relative;
  padding-left: 28px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.78);
}
.cs-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Stat callout ---------- */
.cs-stat {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}
.cs-stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.cs-stat-text { display: flex; flex-direction: column; gap: 6px; }
.cs-stat-text strong {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  color: var(--ink);
}
.cs-stat-text span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.55);
}

/* ---------- Label highlight (packaging, in the prose column) ---------- */
.cs-labelgroup { margin-top: 32px; }
.cs-labelgroup .cs-sublabel {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}
.cs-label-imgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cs-label-imgs.is-one { grid-template-columns: minmax(0, 58%); }
.cs-label-imgs img,
.cs-label-imgs .cs-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  min-height: 0;
}
.cs-label-imgs img {
  object-fit: contain;
  background: rgba(28, 28, 26, 0.035);
  padding: 10px;
}

/* Sample tiles — product mockup that reveals its flat label on hover/tap */
.cs-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 8px;
}
.cs-sample {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(28, 28, 26, 0.035);
  cursor: pointer;
}
.cs-sample.is-single { cursor: default; }
.cs-sample img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: opacity 0.4s ease;
}
.cs-sample .cs-sample-label { opacity: 0; }
.cs-sample:hover .cs-sample-mockup,
.cs-sample:focus-within .cs-sample-mockup,
.cs-sample.show-label .cs-sample-mockup { opacity: 0; }
.cs-sample:hover .cs-sample-label,
.cs-sample:focus-within .cs-sample-label,
.cs-sample.show-label .cs-sample-label { opacity: 1; }
/* ---------- Click-to-zoom + full-screen lightbox ---------- */
.cs-zoom { position: relative; display: block; cursor: zoom-in; }
.cs-sample { cursor: zoom-in; }

/* ---------- Sample slideshow (stage + thumbnail strip) ---------- */
.cs-slideshow { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.cs-slide-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  background: rgba(28, 28, 26, 0.035);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
}
.cs-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
}
.cs-slide-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-thumb {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(28, 28, 26, 0.12);
  background: rgba(28, 28, 26, 0.035);
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.cs-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cs-thumb:hover { opacity: 0.85; }
.cs-thumb.is-active { opacity: 1; border-color: var(--accent); }
/* wrapped marquee thumbnails keep their sizing */
.cs-marquee-row > .cs-zoom { border-radius: 4px; overflow: hidden; }
.cs-marquee-row .cs-zoom img { width: 100%; height: 100%; object-fit: cover; }

.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 15, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 80px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.cs-lightbox.open { opacity: 1; visibility: visible; }
.cs-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cs-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 240, 0.4);
  background: transparent;
  color: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-lightbox-close:hover { background: rgba(245, 244, 240, 0.12); }

/* ---------- Hashtag chips ---------- */
.cs-tags.is-hash li {
  color: var(--accent);
  border-color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---------- Annotated booth mockup with tooltips ---------- */
.cs-booth { position: relative; max-width: 1040px; margin: 0 auto; }
.cs-booth-img { width: 100%; display: block; border-radius: 6px; }
.cs-hotspot { position: absolute; transform: translate(-50%, -50%); }
.cs-hotspot-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid var(--paper);
  background: var(--accent);
  cursor: pointer;
  padding: 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.cs-hotspot-tip {
  position: absolute;
  bottom: 150%;
  left: 50%;
  width: 220px;
  transform: translateX(-50%) translateY(6px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-hotspot-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.cs-hotspot-tip strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--paper);
  margin-bottom: 4px;
}
.cs-hotspot-tip span {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 244, 240, 0.72);
}
.cs-hotspot:hover .cs-hotspot-tip,
.cs-hotspot.open .cs-hotspot-tip,
.cs-hotspot-btn:focus-visible ~ .cs-hotspot-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}
@media (max-width: 640px) {
  .cs-hotspot-tip { width: 168px; }
}

/* ---------- Full-width campaign timeline ---------- */
.cs-timeline {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 9vh, 104px) calc((100vw - min(100vw, var(--max-w))) / 2 + var(--pad-x));
}
.cs-timeline-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.cs-timeline h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.cs-timeline h2 em { font-style: italic; opacity: 0.55; }
.cs-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 56px);
}
.cs-phase { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--paper-rule); }
.cs-phase-step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-phase h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  color: var(--paper);
}
.cs-phase ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cs-phase li {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 244, 240, 0.66);
}

/* ---------- 3-up columns (e.g. digital channels) ---------- */
.cs-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.cs-col { display: flex; flex-direction: column; gap: 14px; }
.cs-col .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-col h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  color: var(--ink);
}
.cs-col p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28, 28, 26, 0.66);
}

@media (max-width: 860px) {
  .cs-timeline-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cs-cols { grid-template-columns: minmax(0, 1fr); }
  .cs-checklist { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Labeled placeholder zone (asset to come) ---------- */
.cs-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  min-height: 220px;
  background: rgba(28, 28, 26, 0.035);
  border: 1px dashed rgba(28, 28, 26, 0.24);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.5);
}
.cs-ph small {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(28, 28, 26, 0.42);
  max-width: 36ch;
}
.cs-ph.is-video { aspect-ratio: 16 / 9; min-height: 0; }
.cs-marquee-row .cs-ph { width: min(40vw, 440px); aspect-ratio: 4 / 3; min-height: 0; }

/* ---------- Disclosure toggles (brand-guideline excerpts) ---------- */
.cs-toggles {
  margin-top: 36px;
  border-top: 1px solid rgba(28, 28, 26, 0.14);
}
.cs-toggle { border-bottom: 1px solid rgba(28, 28, 26, 0.14); }
.cs-toggle > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.cs-toggle > summary::-webkit-details-marker { display: none; }
.cs-toggle > summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
}
.cs-toggle[open] > summary::after { content: '–'; }
.cs-toggle-body {
  padding: 2px 2px 22px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.66;
  color: rgba(28, 28, 26, 0.72);
  max-width: 60ch;
}
.cs-toggle-body p { margin-bottom: 12px; }
.cs-toggle-body .cs-tags { margin-top: 4px; }

/* Campaign-timeline cards inside toggles */
.cs-toggles.is-wide .cs-toggle-body { max-width: none; }
.cs-tl-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.cs-tl-card {
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.08);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.cs-tl-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.45);
}
.cs-tl-card h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.cs-tl-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.6);
  margin: 0;
}
/* 3-up variant for standalone lesson/card rows */
.cs-tl-cards.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .cs-tl-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Brand pillars inside a toggle */
.cs-toggle-body .cs-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px 28px;
  margin-top: 4px;
}
.cs-toggle-body .cs-pillar { display: flex; flex-direction: column; gap: 8px; }
.cs-toggle-body .cs-pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.cs-toggle-body .cs-pillar h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}
.cs-toggle-body .cs-pillar > p {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 4px;
}
.cs-toggle-body .cs-pillar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-toggle-body .cs-pillar li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.62);
}
.cs-toggle-body .cs-pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Tone of voice inside a toggle */
.cs-toggle-body .cs-tone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px 28px;
  margin-top: 4px;
}
.cs-toggle-body .cs-tone-item { display: flex; flex-direction: column; gap: 6px; }
.cs-toggle-body .cs-tone-item h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}
.cs-toggle-body .cs-tone-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(28, 28, 26, 0.62);
  margin: 0;
}
.cs-toggle-body .cs-tone-item .cs-tone-eg {
  font-family: var(--sans);
  font-style: italic;
  font-size: 15px;
  line-height: 1.35;
  color: var(--accent);
}

/* Strikethrough chips (words & claims to avoid) */
.cs-tags.is-strike li {
  text-decoration: line-through;
  color: rgba(28, 28, 26, 0.45);
}

/* Eyebrow label sitting above a heading in a 2-column prose block */
.cs-block-prose .cs-prose-head .cs-intro-label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
}
/* Outcome paragraph that follows the toggles in the prose column */
.cs-toggles + p { margin-top: 36px; }

/* ---------- Standalone prose paragraph (no heading column) ---------- */
.cs-prose-solo p {
  font-family: var(--sans);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.72;
  color: rgba(28, 28, 26, 0.82);
  max-width: 62ch;
  text-wrap: pretty;
}
.cs-prose-solo em { font-style: italic; }

/* Sub-headline that leads the copy column */
.cs-subhead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.cs-subhead em { font-style: italic; opacity: 0.5; }

/* ---------- Video showcase (hype film + event reels) ---------- */
.cs-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.8vw, 44px);
}
.cs-video { display: flex; flex-direction: column; gap: 16px; }
.cs-video-meta { display: flex; flex-direction: column; gap: 8px; }
.cs-video-meta .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-video-meta h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cs-video-meta h4 em { font-style: italic; opacity: 0.5; }
.cs-video-meta p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28, 28, 26, 0.66);
  max-width: 46ch;
}

/* Click-to-play video frame (loads the embed only on interaction).
   Add a poster with style="background-image:url(...)" when available. */
.cs-video-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--accent);
  background-size: cover;
  background-position: center;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cs-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 14, 0.34);
  transition: background 0.3s ease;
}
.cs-video-frame:hover::before,
.cs-video-frame:focus-visible::before { background: rgba(15, 15, 14, 0.2); }
.cs-video-play {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  background: rgba(245, 244, 240, 0.92);
  color: var(--ink);
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-video-frame:hover .cs-video-play,
.cs-video-frame:focus-visible .cs-video-play { transform: scale(1.08); }
.cs-video-frame-label { position: relative; z-index: 1; }
.cs-video-frame.is-playing { background: #000; cursor: default; }
.cs-video-frame.is-playing::before { display: none; }
.cs-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .cs-videos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .cs-compare { grid-template-columns: minmax(0, 1fr); }
  .cs-related { grid-template-columns: minmax(0, 1fr); }
  .cs-marquee-row { margin-left: 0; }
  .cs-marquee-row > * { width: 68vw; }
}

/* =============================================================
   Cross-document view-transition morph (Chromium)
   The homepage assigns matching names to the clicked project's image
   + title (js/home.js, pageswap); the hero here carries the receiving
   end. Tuning mirrors morph-demo.html. Non-supporting browsers ignore
   all of this and use the JS image-flood handoff instead.
   ============================================================= */
.cs-hero-img > img { view-transition-name: project-photo; }
.cs-hero-scrim     { view-transition-name: project-scrim; }
.cs-hero-title     { view-transition-name: project-title; }

/* Box morph (size + position) on the slow ~40% shared clock */
::view-transition-group(*) {
  animation-duration: 1.6s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Background + page content crossfade over the same window */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1.6s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Dark overlay only exists on the case-study side — build it gradually */
::view-transition-new(project-scrim) { animation: vt-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
::view-transition-old(project-scrim) { animation: vt-out 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Matched image + title morph as ONE element: swap the old/new captures fast
   so the two never read as a visible double, while the box keeps morphing. */
::view-transition-old(project-photo),
::view-transition-old(project-title) { animation: vt-out 0.4s ease both; }
::view-transition-new(project-photo),
::view-transition-new(project-title) { animation: vt-in 0.4s ease both; }
@keyframes vt-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-out { from { opacity: 1; } to { opacity: 0; } }

::view-transition-old(project-photo),
::view-transition-new(project-photo) { height: 100%; object-fit: cover; }

/* Layer order through the whole morph: photo < scrim < title */
::view-transition-group(project-photo) { z-index: 1; }
::view-transition-group(project-scrim) { z-index: 2; }
::view-transition-group(project-title) { z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 0.001s; }
}

/* ---------- Scrollable page frame (.cs-pageframe — tame a tall screenshot) ---------- */
.cs-pageframe {
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28, 28, 26, 0.12);
}
.cs-pageframe-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: var(--cream-2, #F2EDE6);
  border-bottom: 1px solid rgba(28, 28, 26, 0.1);
}
.cs-pageframe-dots { display: flex; gap: 7px; }
.cs-pageframe-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(28, 28, 26, 0.16);
}
.cs-pageframe-url {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(28, 28, 26, 0.5);
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.1);
  border-radius: 6px;
  padding: 5px 16px;
}
.cs-pageframe-scroll { max-height: 72vh; overflow-y: auto; }
.cs-pageframe-scroll img { display: block; width: 100%; height: auto; }

/* Tabbed browser frame — swap the page shown in one scrollable viewport */
.cs-pf-tabs { display: flex; gap: 6px; }
.cs-pf-tab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(28, 28, 26, 0.5);
  cursor: pointer;
}
.cs-pf-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 28, 26, 0.1);
}
.cs-pageframe.is-tabbed .cs-pageframe-url { margin-left: auto; }
.cs-pageframe.is-tabbed .cs-pageframe-scroll { display: none; }
.cs-pageframe.is-tabbed .cs-pageframe-scroll.is-active { display: block; }
@media (max-width: 600px) {
  .cs-pageframe.is-tabbed .cs-pageframe-url { display: none; }
}

/* ---------- Instagram profile portal (.cs-igframe) ---------- */
.cs-igframe {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28, 28, 26, 0.12);
}
.cs-ig-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(28, 28, 26, 0.08);
}
.cs-ig-avatar {
  width: clamp(70px, 11vw, 104px);
  height: clamp(70px, 11vw, 104px);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: rgba(28, 28, 26, 0.05);
}
.cs-ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cs-ig-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cs-ig-toprow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-ig-handle { font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--ink); }
.cs-ig-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.18);
  border-radius: 8px;
  padding: 7px 18px;
}
.cs-ig-stats { display: flex; gap: 28px; font-family: var(--sans); font-size: 14px; color: rgba(28, 28, 26, 0.7); }
.cs-ig-stats b { color: var(--ink); font-weight: 600; }
.cs-ig-bio { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: rgba(28, 28, 26, 0.8); }
.cs-ig-bio strong { font-weight: 600; color: var(--ink); }
.cs-ig-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 60px);
  border-bottom: 1px solid rgba(28, 28, 26, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.42);
}
.cs-ig-tabs span { padding: 14px 0; }
.cs-ig-tabs .is-active { color: var(--ink); box-shadow: inset 0 1.5px 0 var(--ink); }
.cs-ig-scroll { max-height: 62vh; overflow-y: auto; }
.cs-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cs-ig-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
@media (max-width: 600px) {
  .cs-ig-head { flex-direction: column; text-align: center; gap: 16px; }
  .cs-ig-stats { justify-content: center; }
}

/* ---------- Phone portal (.cs-phone — scrollable mobile mockup) ---------- */
.cs-phone {
  width: clamp(280px, 33vw, 372px);
  margin: 0 auto;
  background: #15150f;
  border-radius: 46px;
  padding: 13px;
  box-shadow: 0 34px 80px rgba(28, 28, 26, 0.30), 0 0 0 1px rgba(28, 28, 26, 0.04);
}
.cs-phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 9 / 19.5;
}
.cs-phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 26px;
  background: #15150f;
  border-radius: 14px;
  z-index: 3;
}
.cs-phone-scroll { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cs-phone-scroll img { display: block; width: 100%; height: auto; }
.cs-phone-scroll .cs-ph { height: 100%; border-radius: 0; }

/* ---------- Stat row (.cs-stats — 3-up editorial figures, .is-four for 4) ---------- */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 52px);
}
.cs-stat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 28, 26, 0.16);
}
.cs-stat-val {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.cs-stat-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(28, 28, 26, 0.62);
  max-width: 30ch;
}
/* 4-up variant. Steps through 2x2 before it collapses to one column, so the
   fourth figure never strands alone on a row of its own. */
.cs-stats.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .cs-stats.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: clamp(28px, 4vh, 44px);
  }
}
@media (max-width: 760px) {
  .cs-stats { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cs-stats.is-four { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Before/after navigation diagram (.cs-nav) ---------- */
.cs-nav {
  --nav-green: #3F6B4D;   /* added */
  --nav-terra: #B5613F;   /* restructured */
  --nav-dark:  #1E4A40;   /* CTA + dropdown accent */
  --nav-line:  rgba(28, 28, 26, 0.14);
  background: rgba(28, 28, 26, 0.04);
  border: 1px solid rgba(28, 28, 26, 0.08);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
}

/* Legend */
.cs-nav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--nav-line);
}
.cs-nav-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.5);
}
.cs-nav-key i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.cs-nav-key .d-un  { background: rgba(28, 28, 26, 0.24); }
.cs-nav-key .d-add { background: var(--nav-green); }
.cs-nav-key .d-re  { background: var(--nav-terra); }
.cs-nav-key .d-cta { background: var(--nav-dark); }

/* Stage (one for before, one for after) */
.cs-nav-stage + .cs-nav-stage { margin-top: 34px; }
.cs-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.62);
}
.cs-nav-label::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  flex: none;
}

/* URL chip */
.cs-nav-url {
  display: inline-block;
  margin: 18px 0 0;
  padding: 14px 26px;
  background: #fff;
  border: 1px solid var(--nav-line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(28, 28, 26, 0.05);
  font-family: var(--sans);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink);
  position: relative;
}
.cs-nav-url::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 100%;
  width: 1.5px;
  height: 18px;
  background: var(--nav-line);
}

/* Pill row */
.cs-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.cs-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--nav-line);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.cs-pill.is-add {
  color: var(--nav-green);
  border-color: rgba(63, 107, 77, 0.5);
  background: rgba(63, 107, 77, 0.09);
}
.cs-pill.is-re {
  color: var(--nav-terra);
  border-color: rgba(181, 97, 63, 0.42);
  background: rgba(181, 97, 63, 0.08);
}
.cs-pill.is-cta {
  color: #fff;
  background: var(--nav-dark);
  border-color: var(--nav-dark);
}

/* Dropdown callout */
.cs-nav-drop {
  margin: 22px 0 0 32px;
  padding: 22px 26px 26px;
  background: #fff;
  border: 1px solid var(--nav-line);
  border-left: 4px solid var(--nav-dark);
  border-radius: 0 12px 12px 0;
}
.cs-nav-droplabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nav-dark);
}
.cs-nav-drop .cs-nav-bar { margin-top: 16px; }

@media (max-width: 600px) {
  .cs-pill { font-size: 14px; padding: 10px 16px; }
  .cs-nav-drop { margin-left: 16px; }
}

/* ---------- Fluid layout: reading sections center on wide screens ---------- */
.cs-intro,
.cs-block.cs-block-prose { max-width: var(--prose-w); margin-inline: auto; }

/* ---------- Hit areas ----------
   Marks stay exactly the size they are. ::before only enlarges what a thumb can
   land on, so these clear the 44px WCAG 2.5.5 target without moving any layout. */
.cs-inline-link, .cs-handoff, .cs-hotspot-btn, .cs-pf-tab { position: relative; }
.cs-inline-link::before, .cs-handoff::before,
.cs-hotspot-btn::before, .cs-pf-tab::before {
  content: '';
  position: absolute;
  left: -10px; right: -10px;
  top: 50%; transform: translateY(-50%);
  height: 44px;
  pointer-events: auto;
}
