/* =========================================================
   Case-study pages (Nissan, Rockwell, Intertek, EY)
   Loaded after style.css. Figma frame width: 1280px.
   ========================================================= */

.case-page {
  position: relative;
  --blue: #ebf2ff;
  --cs-font: "Nunito Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  --cs-pad: clamp(20px, 6.9vw, 88px);
  font-family: var(--cs-font);
}

.cs-frame {
  max-width: 1280px;
  margin-inline: auto;
  background: #fff;
}
.cs-inner { padding-inline: var(--cs-pad); }

/* ---------- hero ---------- */

.cs-hero {
  padding: clamp(110px, 15.6vw, 300px) var(--cs-pad) 0;
  min-height: 575px;
}
.cs-hero__text { position: relative; max-width: 626px; display: flex; flex-direction: column; gap: 31px; }
.cs-logo { position: relative; width: 180px; height: 21px; overflow: hidden; }
.cs-logo img { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 180px; height: 150px; max-width: none; }
.cs-hero__title { font-weight: 500; font-size: clamp(40px, 5.5vw, 70px); line-height: 1.04; color: #000; }
.cs-hero__intro { display: flex; flex-direction: column; gap: 0; margin-top: 1px; font-weight: 400; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.9; color: #393939; }
.cs-hero__stars { position: absolute; left: 527px; top: 11px; width: 49px; height: 49px; }
.cs-hero__image {
  position: absolute;
  top: 60px;
  right: -9px;
  width: min(628px, 49vw);
  pointer-events: none;
  z-index: 2;
}
.cs-hero__image img { width: 100%; height: auto; transform: scaleX(-1); }

/* ---------- generic rows ---------- */

.cs-section { margin-top: clamp(56px, 6.5vw, 125px); }
.cs-row { display: flex; gap: 20px; align-items: flex-start; }
.cs-row + .cs-row { margin-top: 80px; }
.cs-row__label,
.cs-h {
  flex: 0 0 265px;
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.375;
  color: #000;
}
.cs-row__body { flex: 1 1 0; max-width: 834px; min-width: 0; font-weight: 400; font-size: clamp(16px, 1.56vw, 20px); line-height: 1.9; color: #393939; }
.cs-row__body p + p { margin-top: 1.9em; }
.cs-row__body ul { padding-left: 30px; list-style: disc; line-height: 1.5; }
.cs-row__body li + li { margin-top: 1.9em; }

.cs-p {
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(0,0,0,.6);
  max-width: 1061px;
}
.cs-p--dark { color: rgba(0,0,0,.8); line-height: 38px; }

.cs-band { background: var(--blue); }
.cs-band--pad { padding-block: 50px; }
.cs-block { padding-top: clamp(32px, 3vw, 36px); }
.cs-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.cs-head h2 { font-weight: 500; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.375; color: #000; }

/* ---------- existing solutions ---------- */

.cs-solutions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-bottom: 20px; }
.cs-solutions li {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
  font-size: clamp(16px, 1.56vw, 20px);
  line-height: 78px;
  color: #000;
}
.cs-solutions li::before {
  content: "";
  position: absolute;
  left: 0; top: 37px;
  width: 18px; height: 4px;
  border-radius: 10px;
  background: #000;
}

/* ---------- benchmark strip ---------- */

.cs-bench {
  overflow-x: auto;
  padding: 10px 0 20px;
  margin-top: 20px;
  scrollbar-width: thin;
}
.cs-bench__track { display: flex; gap: 118px; width: max-content; padding-inline: var(--cs-pad); }
.cs-bench__col { flex: none; width: 311px; display: flex; flex-direction: column; gap: 32px; }
.cs-bench__col img.cs-bench__logo { height: 70px; width: auto; max-width: none; object-fit: contain; object-position: left; }
.cs-bench__col ul { padding-left: 27px; list-style: disc; font-size: 18px; letter-spacing: .018em; color: #000; }
.cs-bench__col li { line-height: 1.25; margin-bottom: 15px; }
.cs-bench__col .cs-bench__crop { position: relative; width: 75px; height: 63px; overflow: hidden; }
.cs-bench__col .cs-bench__crop img { position: absolute; max-width: none; height: 185.82%; left: -26.41%; top: -29.2%; width: 155.56%; }

/* ---------- feature columns ---------- */

.cs-cols3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 338px));
  column-gap: clamp(20px, 4vw, 51px);
  row-gap: 60px;
  justify-content: start;
}
.cs-chip {
  display: flex;
  align-items: center;
  height: 60px;
  padding-inline: 18px;
  border-radius: 4px;
  background: var(--blue);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .0086em;
  text-transform: uppercase;
  color: #000;
}
.cs-cols3 ul { margin-top: 20px; padding-left: 41px; list-style: disc; font-weight: 400; font-size: 18px; line-height: 35px; letter-spacing: .01em; color: #1f1f1f; }

/* ---------- images ---------- */

.cs-fig { margin: 0; }
.cs-fig img { width: 100%; height: auto; display: block; }
.cs-shadow { box-shadow: 0 4px 4px rgba(0,0,0,.25); }
.cs-shadow-lg { box-shadow: 0 4px 20px rgba(0,0,0,.16); border-radius: 8px; }

/* absolutely-composed canvases (kept from Figma, collapse on small screens) */
.xg { position: relative; width: 100%; }
.xa { position: absolute; overflow: hidden; }
.xa > img { position: absolute; max-width: none; }
.xa--fill > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xcap__t { font-weight: 900; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; color: #000; white-space: nowrap; }
.xcap__t span { font-weight: 300; }
.xcap__d { margin-top: 20px; font-weight: 400; font-size: 14px; line-height: 1.4; color: #455a64; max-width: 469px; }
.xcap--right { text-align: right; }
.xcap--right .xcap__d { margin-left: auto; }

.journey { position: relative; width: 100%; aspect-ratio: 1118 / 1274; margin-top: 60px; }
.journey > * { position: absolute; }
.journey img { width: 100%; height: 100%; max-width: none; }
.journey .xa { overflow: hidden; }

/* ---------- MVP browser frame ---------- */

.cs-browser { max-width: 1080px; margin-inline: auto; }
.cs-browser__bar { height: 35px; background: #fff; border-radius: 20px 20px 0 0; }
.cs-browser__shot { position: relative; aspect-ratio: 1080 / 614; overflow: hidden; border-radius: 0 0 20px 20px; }
.cs-browser__shot img { position: absolute; max-width: none; height: 118.66%; left: -3.97%; top: -13.19%; width: 107.73%; }

/* ---------- design system ---------- */

.cs-ds { display: grid; grid-template-columns: 404px minmax(0, 562px); column-gap: clamp(32px, 8vw, 107px); justify-content: center; }
.cs-ds__title { font-weight: 900; font-size: 20px; color: #000; margin-bottom: 24px; }
.cs-ds__stack { display: flex; flex-direction: column; gap: 31px; }
.cs-ds__stack img { width: 100%; height: auto; }
.cs-ds__right { display: flex; flex-direction: column; gap: 68px; }
.type-labels { display: flex; gap: clamp(20px, 3vw, 40px); font-family: "Montserrat", sans-serif; font-size: 20px; line-height: 36px; color: rgba(0,0,0,.6); }
.type-labels b { font-weight: 800; } .type-labels i { font-style: normal; font-weight: 500; } .type-labels span { font-weight: 400; }
.type-sample { margin-top: 12px; font-family: "Montserrat", sans-serif; font-size: 18px; line-height: 36px; color: rgba(0,0,0,.6); white-space: pre-wrap; }
.btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; align-items: start; }
.nbtn { display: inline-flex; align-items: center; justify-content: center; width: 156px; padding: 12px 30px; border-radius: 40px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.nbtn--solid { background: #000; color: #fff; }
.nbtn--outline { border: 2px solid #000; color: #000; }
.nlink { display: inline-flex; flex-direction: column; gap: 8px; padding: 11px 0 3px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: 2px; text-transform: uppercase; color: #000; }
.nlink::after { content: ""; height: 2px; background: #000; }
.nicon { display: inline-flex; align-items: center; gap: 16px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: #000; }
.nicon span { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #000; border-radius: 40px; }
.swatches { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; }
.sw { display: flex; align-items: center; justify-content: center; width: 124px; height: 80px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.15); font-family: "Montserrat", sans-serif; font-size: 16px; }
.color-strip { display: block; width: 100%; height: auto; margin-top: 20px; }

/* ---------- lessons ---------- */

.cs-lessons { display: flex; flex-direction: column; gap: 60px; max-width: 1003px; }
.cs-lessons h3 { font-weight: 800; font-size: clamp(18px, 1.7vw, 22px); line-height: 35px; padding-left: 33px; position: relative; color: #000; }
.cs-lessons h3::before { content: ""; position: absolute; left: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: #000; }
.cs-lessons p { margin-top: 16px; padding-left: 23px; font-weight: 300; font-size: clamp(16px, 1.56vw, 20px); line-height: 35px; color: #000; max-width: 971px; }

.cs-bottom { padding-bottom: clamp(64px, 8vw, 130px); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .cs-hero { min-height: 0; }
  .cs-hero__image { position: static; z-index: auto; width: 100%; max-width: 628px; margin: 32px 0 0 auto; }
  .cs-hero__stars { display: none; }
  .cs-ds { grid-template-columns: 1fr; row-gap: 48px; }
}

@media (max-width: 900px) {
  .cs-row { flex-direction: column; gap: 12px; }
  .cs-row__label, .cs-h { flex: none; }
  .cs-solutions { grid-template-columns: 1fr; }
  .cs-row__body .cs-solutions li { line-height: 52px; }
  .cs-cols3 { grid-template-columns: 1fr; }
  .btns { grid-template-columns: 1fr; }

  .xg { aspect-ratio: auto !important; display: flex; flex-direction: column; gap: 24px; }
  .xg > .xa, .xg > .xcap { position: static !important; width: 100% !important; height: auto !important; left: auto !important; top: auto !important; }
  .xg > .xa { aspect-ratio: var(--ar, auto); }
  .xcap--right { text-align: left; }
  .xcap--right .xcap__d { margin-left: 0; }
  .xcap__t { white-space: normal; }
  .xg--phones .xa { width: 22% !important; display: inline-block; }
  .journey { aspect-ratio: auto; display: flex; flex-direction: column; gap: 24px; }
  .journey > * { position: static !important; width: 100% !important; height: auto !important; }
  .journey .journey__connector { display: none; }
}

/* caption + phone row used inside absolute canvases */
.xcap { position: absolute; }
.xrow { position: absolute; display: flex; gap: 4.5%; }
.xrow img { width: 21.6%; height: 100%; object-fit: cover; box-shadow: 0 4px 4px rgba(0,0,0,.15); }
@media (max-width: 900px) {
  .xg > .xrow { position: static !important; width: 100% !important; height: auto !important; }
  .xrow img { height: auto; aspect-ratio: 124 / 258; }
}

/* ---------- Rockwell-specific ---------- */
.rk-hero { padding-top: clamp(100px, 12vw, 155px); min-height: 600px; position: relative; }
.rk-hero__text { max-width: 626px; display: flex; flex-direction: column; gap: 32px; }
.rk-hero__logo { width: 175px; height: 41px; object-fit: cover; }
.rk-hero__img {
  position: absolute; top: 0; right: 0;
  width: 45.94%; aspect-ratio: 588 / 599; overflow: hidden; pointer-events: none;
}
.rk-hero__img img { position: absolute; max-width: none; height: 100%; left: -23.5%; top: 0; width: 181.2%; }
.rk-asks { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 34px 20px; }
.rk-ask { display: flex; gap: 20px; font-size: clamp(16px,1.56vw,20px); line-height: 30px; color: #393939; }
.rk-ask b { font-family: "Antic Didone", Georgia, serif; font-weight: 400; font-size: 40px; line-height: 44px; color: #000; }
.rk-text-lg { font-size: clamp(18px, 2vw, 26px) !important; line-height: 1.6 !important; }
.rk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rk-pair h4 { font-weight: 800; font-size: clamp(16px,1.56vw,20px); line-height: 30px; margin-bottom: 20px; color: #393939; }
.rk-pair p + p { margin-top: 1em; }
.rk-framed { border: 1px solid #c5c5c5; }
.rk-devices { position: relative; }
.rk-devices img { width: 100%; max-width: 804px; height: auto; }
.rk-devices__labels { position: relative; height: 70px; }
.rk-devices__labels div { position: absolute; top: 8px; font-size: 20px; line-height: 30px; color: #393939; }
.rk-devices__labels strong { display: block; font-weight: 800; font-size: 24px; }
.rk-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rk-sizes img { transform: scaleX(-1); width: 100%; max-width: 403px; height: auto; margin-top: 20px; }
.rk-ds { display: flex; flex-direction: column; gap: 60px; max-width: 849px; }
.rk-ds img { width: 100%; height: auto; }
.rk-ds__row { display: flex; }
.rk-ds__row > * { flex: none; }
.rk-ds .crop { position: relative; overflow: hidden; border: 1px solid #e0e0e0; }
.rk-ds .crop img { position: absolute; max-width: none; height: 100%; top: 0; }
.rk-band { background: #e7ecef; padding: clamp(32px,4.9vw,63px) var(--cs-pad) clamp(48px,6vw,90px); }
.rk-band__shot { mix-blend-mode: multiply; margin-inline: auto; max-width: 1047px; }
.rk-band__shot img { width: 100%; height: auto; }
.rk-band__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,5.5vw,71px); margin-top: 53px; max-width: 1119px; margin-inline: auto; }
.rk-band__pair img { width: 100%; height: auto; }
.rk-band__pair .framed { border: 1px solid #ccc; }
.rk-eco { margin-top: 60px; }
.rk-eco img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .rk-asks, .rk-pair, .rk-sizes, .rk-band__pair { grid-template-columns: 1fr; }
  .rk-asks { grid-template-rows: none; grid-auto-flow: row; }
  .rk-hero__img { position: static; width: 100%; margin-top: 32px; }
  .rk-hero { min-height: 0; }
  .rk-devices__labels { height: auto; display: flex; flex-wrap: wrap; gap: 16px 32px; }
  .rk-devices__labels div { position: static; }
  .rk-ds__row { flex-direction: column; gap: 20px; }
  .rk-ds .crop { width: 100% !important; aspect-ratio: var(--ar); }
}

/* ---------- Intertek-specific ---------- */
.it-hero { position: relative; aspect-ratio: 1280 / 628; margin-bottom: 6.64%; }
.it-hero > img.it-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.it-hero__card { position: absolute; left: 6.25%; top: 44.6%; width: 42.2%; }
.it-hero__card img { width: 100%; height: auto; display: block; }
.it-h { font-weight: 500; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.375; color: #000; }
.it-p { margin-top: 10px; font-weight: 400; font-size: clamp(16px, 1.56vw, 20px); line-height: 2.2; color: #393939; max-width: 1120px; }
.it-wide { margin-left: 6.6%; width: 87.1%; }               /* 85 / 1280, 1115 / 1280 */
.it-col { margin-left: 20.3%; width: 73.4%; }               /* 260 / 1280, 940 / 1280 */
.it-col img, .it-wide img { width: 100%; height: auto; display: block; }
.it-variant { display: flex; gap: 13px; align-items: flex-start; color: rgba(0,0,0,.7); }
.it-variant__n { font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.4; color: #000; padding-block: 4px; }
.it-variant__t { font-family: "Roboto Condensed", sans-serif; font-weight: 500; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.03em; line-height: 1; }
.it-variant__d { margin-top: 14px; font-family: "Inter", sans-serif; font-weight: 300; font-size: clamp(14px, 1.8vw, 23px); line-height: 1; }
.it-wire { display: grid; grid-template-columns: 753fr 326fr; column-gap: 3.7%; align-items: start; }
.it-wire__text h3 { font-weight: 500; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.375; margin-top: 28px; }
.it-wire__text p { margin-top: 24px; font-weight: 400; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; color: #393939; }
.it-wire2 { display: grid; grid-template-columns: 300fr 791fr; column-gap: 2.5%; margin-top: 87px; align-items: start; }
.it-wire img, .it-wire2 img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .it-hero { aspect-ratio: auto; min-height: 300px; margin-bottom: 0; padding-bottom: 24px; }
  .it-hero__card { position: relative; left: auto; top: auto; width: min(100%, 540px); margin: 140px auto 0; }
  .it-wide, .it-col { margin-left: 0; width: 100%; }
  .it-wire, .it-wire2 { grid-template-columns: 1fr; row-gap: 24px; }
  .it-wire2 { margin-top: 32px; }
}

/* ---------- EY-specific ---------- */
.ey-page { --ey-text: #393939; font-family: "Montserrat", system-ui, sans-serif; }
.ey-hero { position: relative; aspect-ratio: 1280 / 626; padding: 10.55% 6.9% 0; }
.ey-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; pointer-events: none; }
.ey-hero__body { position: relative; }
.ey-hero__logo { width: 112px; height: 113px; object-fit: cover; display: block; }
.ey-hero__title { margin-top: 32px; font-family: "Bayon", Impact, sans-serif; font-weight: 400; font-size: clamp(36px, 5.16vw, 66px); line-height: 1.1; color: #000; }
.ey-hero__lead { margin-top: 11px; max-width: 626px; font-weight: 500; font-size: clamp(16px, 1.8vw, 23px); line-height: 2.17; color: var(--ey-text); }
.ey-sec { padding-inline: clamp(20px, 5.08vw, 65px); margin-top: clamp(56px, 6.4vw, 82px); }
.ey-h {
  position: relative;
  display: block;
  margin: 0 0 32px 16px;
  padding: 10px 0 10px 14px;
  font-weight: 700;
  font-size: clamp(20px, 2.34vw, 30px);
  line-height: 50px;
  text-transform: capitalize;
  color: var(--ey-text);
}
.ey-h::before { content: ""; position: absolute; left: 0; top: 0; width: 70px; height: 70px; background: #f7e459; z-index: -1; }
.ey-p, .ey-list { font-weight: 500; font-size: clamp(16px, 1.56vw, 20px); line-height: 38px; color: var(--ey-text); }
.ey-p { margin-left: 23px; max-width: 872px; }
.ey-p + .ey-p { margin-top: 38px; }
.ey-cols { display: grid; grid-template-columns: minmax(0, 538px) minmax(0, 512px); column-gap: clamp(24px, 3.1vw, 40px); justify-content: space-between; align-items: start; }
.ey-list { padding-left: 30px; list-style: disc; }
.ey-list--num { list-style: decimal; }
.ey-list li + li { margin-top: 38px; }
.ey-process { margin-left: 5.78%; width: 87.34%; aspect-ratio: 1118 / 291; position: relative; overflow: hidden; margin-top: 30px; }
.ey-process img { position: absolute; max-width: none; height: 147.87%; left: -.03%; top: -47.87%; width: 100.05%; }
.ey-users { display: grid; grid-template-columns: minmax(0, 583px) minmax(0, 492px); column-gap: 20px; justify-content: space-between; align-items: start; }
.ey-venn { position: relative; width: min(459px, 100%); aspect-ratio: 459 / 448; margin: clamp(0px, 7vw, 90px) 0 0 30px; }
.ey-venn img, .ey-venn span { position: absolute; }
.ey-venn img { max-width: none; }
.ey-venn span { font-weight: 700; font-size: clamp(14px, 1.56vw, 20px); line-height: 38px; white-space: nowrap; color: #000; }
.ey-final { margin: 0 0 0 7.42%; width: 87.34%; }
.ey-final img { width: 100%; height: auto; display: block; }
.ey-end { height: clamp(56px, 6vw, 100px); }
@media (max-width: 900px) {
  .ey-hero { aspect-ratio: auto; padding: 130px 20px 60px; }
  .ey-cols, .ey-users { grid-template-columns: 1fr; row-gap: 38px; }
  .ey-cols > .ey-list + .ey-list { margin-top: 0; }
  .ey-venn { margin-left: 0; }
  .ey-process, .ey-final { margin-left: 0; width: 100%; }
}


/* =========================================================
   UNIFIED LAYER: makes all four case studies feel like part of
   the main site (same header, type, colour, hero and footer).
   Keep this block last.
   ========================================================= */

.case-page {
  --cs-font: var(--f-body);
  --cs-band: #edf1f4;
  --blue: var(--cs-band);
  --cs-ink: #000;
  --cs-text: var(--text);
  --cs-heading-size: clamp(26px, 2.6vw, 36px);
  font-family: var(--cs-font);
  color: var(--cs-text);
  background: #fff;
}
.ey-page { --ey-text: var(--text); font-family: var(--cs-font); }

/* ----- header: same solid, readable bar on every case page ----- */
.case-page .site-header {
  position: sticky;
  top: 0;
  inset: 0 0 auto 0;
  padding: clamp(10px, 1.2vw, 16px) var(--gutter);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

/* ----- frame: one consistent rhythm top + bottom ----- */
.cs-frame { padding-bottom: clamp(72px, 8vw, 128px); }
.cs-bottom { padding-bottom: 0; }
.ey-end { height: 0; }
.case-page .site-footer { border-top: 1px solid var(--line); }

/* ----- bands: same colour, full-bleed ----- */
.cs-band, .rk-band {
  background: var(--cs-band);
  box-shadow: 0 0 0 100vmax var(--cs-band);
  clip-path: inset(0 -100vmax);
}

/* ----- shared hero (Rockwell pattern: text left, image right) ----- */
.cs-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  column-gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(36px, 4.4vw, 64px);
}
.cs-top__text { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); min-width: 0; }
.cs-brand { display: flex; align-items: center; min-height: 48px; }
.cs-brand .cs-logo { margin: 0; }
.cs-brand__img { display: block; width: auto; max-width: none; }
.cs-brand__img--rk { height: 41px; width: 175px; object-fit: cover; }
.cs-brand__img--ey { height: 72px; width: 72px; object-fit: cover; }
.cs-brand__img--it { height: 36px; }
.cs-top__title {
  position: relative;
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--cs-ink);
  text-wrap: balance;
}
.cs-top__spark { display: inline-block; width: .5em; height: .5em; margin: -.35em 0 0 .12em; vertical-align: top; }
.cs-top__intro {
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.9;
  color: var(--cs-text);
  max-width: 560px;
}
.cs-top__intro p + p { margin-top: .4em; }
.cs-top__media {
  position: relative;
  aspect-ratio: 588 / 560;
  overflow: hidden;
  background: var(--cs-band);
  pointer-events: none;
}
.cs-top__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-top__media--blend { background: #0b1830; }
.cs-top__media--blend img + img { mix-blend-mode: multiply; opacity: .9; }
.cs-top__media--car img { object-fit: contain; transform: scaleX(-1); padding: 8% 6%; }

/* ----- headings: one voice across all four ----- */
.cs-row__label, .cs-h, .cs-head h2, .it-h, .ey-h, .rk-pair h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--cs-heading-size);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--cs-ink);
}
.rk-pair h4 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; margin-bottom: 14px; }
.ey-h { margin: 0 0 24px; padding: 0; }
.ey-h::before { display: none; }
.rk-ask b { font-family: var(--f-serif); font-weight: 300; color: var(--cs-ink); }
.it-variant__n, .it-variant__t {
  font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; color: var(--cs-ink);
}
.it-variant__d { font-family: var(--f-body); font-weight: 400; line-height: 1.5; color: var(--cs-text); }

/* ----- body copy: one colour, one weight ----- */
.cs-row__body, .cs-p, .cs-p--dark, .it-p, .it-wire__text p, .ey-p, .ey-list, .rk-ask, .rk-pair p, .cs-cols3 ul, .cs-bench__col ul {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--cs-text);
}
.ey-p, .ey-list { line-height: 2; }
.cs-chip { color: var(--cs-ink); }

@media (max-width: 900px) {
  .cs-top { grid-template-columns: 1fr; row-gap: 32px; padding-top: 28px; }
  .cs-top__media { aspect-ratio: 4 / 3; }
}

/* EY: align its sections with the shared grid */
.ey-sec { padding-inline: var(--cs-pad); }
.ey-p { margin-left: 0; }
.ey-process, .ey-final { margin-left: 0; width: 100%; }

/* guard: wide design crops must never create sideways scroll on phones */
html, body.case-page { overflow-x: clip; }


/* =========================================================
   CONSISTENCY LAYER: one scale for the same kind of text.
   lead 18 | body 20 | compact 18 | list 20 | sub-heading 26 | label 16
   ========================================================= */
.case-page {
  --cs-body: clamp(16px, 1.4vw, 20px);
  --cs-compact: clamp(15px, 1.25vw, 18px);
  --cs-sub: clamp(20px, 1.8vw, 26px);
  --cs-lh: 1.9;
}
/* lead paragraph under every title = same as the home / work lead */
.cs-top__intro { font-size: clamp(16px, 1.25vw, 18px); line-height: 2; color: #000; }
/* body copy: every case study reads the same */
.cs-row__body, .it-p, .ey-p, .ey-list, .rk-ask span, .rk-pair p, .it-variant__d, .rk-devices__labels div {
  font-size: var(--cs-body); line-height: var(--cs-lh); font-weight: 400; color: var(--text);
}
.cs-row__body ul, .ey-list { line-height: var(--cs-lh); }
.rk-ask { font-size: var(--cs-body); line-height: var(--cs-lh); color: var(--text); }
/* compact copy (narrow columns, captions) */
.cs-p, .cs-p--dark, .it-wire__text p, .cs-cols3 ul, .cs-bench__col ul {
  font-size: var(--cs-compact); line-height: 1.8; color: var(--text); letter-spacing: 0;
}
/* sub-headings (h3 / h4): one style */
.rk-pair h4, .it-wire__text h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: var(--cs-sub); line-height: 1.3;
  letter-spacing: -.01em; color: #000; margin-top: 0; margin-bottom: 14px;
}
.it-wire__text h3 { margin-top: 28px; }
/* bold list items / chips: same weight everywhere */
.cs-solutions li, .cs-chip { font-weight: 600; }
.cs-solutions li { font-size: var(--cs-body); }
/* bar-bullet list: no disc, no inherited list spacing, so both columns share one baseline */
.cs-row__body ul.cs-solutions { list-style: none; padding-left: 0; margin: 0 0 20px; line-height: 1; align-items: center; }
.cs-row__body .cs-solutions li { margin: 0; line-height: 64px; padding-left: 32px; }
.cs-row__body .cs-solutions li + li { margin-top: 0; }
.cs-row__body .cs-solutions li::before { top: 50%; transform: translateY(-50%); }
/* one body colour (was #393939, #1f1f1f, black at 60%/80%) */
.ey-page { --ey-text: var(--text); }

.rk-text-lg, .cs-row__body.rk-text-lg { font-size: var(--cs-body) !important; line-height: var(--cs-lh) !important; }

/* ---------- alignment pass ---------- */
/* benchmark columns: logos sit in one fixed-height slot so every list starts on the same line */
.cs-bench__col { display: grid; grid-template-rows: 70px 1fr; row-gap: 32px; align-content: start; }
.cs-bench__col > img.cs-bench__logo, .cs-bench__col > .cs-bench__crop { align-self: center; justify-self: start; }
.cs-bench__col ul { margin: 0; }
/* colour swatches: label centred in the chip */
.swatches .sw { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0; line-height: 1; }

/* case-study pages use Lexend for display headings; core pages (Home, About, Work) keep the serif */
body.case-page { --f-serif: "Lexend", system-ui, sans-serif; }

/* benchmark logos: cropped tight in the file, shown at one height */
.cs-bench__col > img.cs-bench__logo { height: 58px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; }
/* persona cards: each card sits on its own white panel */
.cs-personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: end; }
.cs-personas img { display: block; width: 100%; height: auto; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
@media (max-width: 760px) { .cs-personas { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
/* Nissan hero: new artwork carries its own backdrop, so no tint, flip or padding */
.cs-top__media--car { background: none; overflow: visible; aspect-ratio: auto; }
.cs-top__media--car img { position: static; width: 100%; height: auto; object-fit: contain; transform: none; padding: 0; }

/* Intertek: the whole page sits on soft grey */
body.it-page, .it-page .cs-frame { background: #F4F4F4; }
.it-vs { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 96px); margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .it-vs .it-col { width: 100%; margin-left: 0; } }

/* Hero photo with the subject stepping out of the frame (same idea as the Nissan car).
   .out__frame is the square photo; .out__pop is a cut-out of the subject, laid exactly over it and rising past the top edge. */
.cs-top__media--out { background: none; overflow: visible; }
.cs-top__media--out .out__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-top__media--out .out__pop { position: absolute; top: auto; inset-block-start: auto; height: auto; max-width: none; pointer-events: none; }


/* role / team / duration strip */
.cs-meta{display:flex;flex-wrap:wrap;gap:14px clamp(24px,3vw,44px);margin:clamp(24px,2.6vw,36px) 0 0;padding-top:clamp(16px,1.6vw,22px);border-top:1px solid rgba(0,0,0,.12)}
.cs-meta dt{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#7a7a7a;margin:0 0 4px}
.cs-meta dd{font-size:15px;line-height:1.4;color:#000;margin:0}

/* Intertek hero: the real product dashboard rising out of a brand-yellow frame */
.cs-top__media--ui{position:relative;background:none}
.cs-top__media--ui::before{content:"";position:absolute;inset:0;background:#FFC800}
.cs-top__media--ui .ui__shot{position:absolute;left:7%;width:86%;top:-8%;bottom:0;overflow:hidden;border-radius:10px 10px 0 0;box-shadow:0 18px 50px rgba(0,0,0,.22);clip-path:inset(-80px -80px 0 -80px)}
.cs-top__media--ui .ui__shot img{display:block;width:100%;height:auto}
