/* ==========================================================================
   Case study pages (velory.html) — builds on styles.css tokens
   ========================================================================== */

:root {
  --cs-ink: #1e1f26;
  --cs-caption: rgba(30, 31, 38, 0.66);
  --cs-band: #f4f0e8;
  --cs-gap: 128px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.case { font-family: var(--font-body); color: var(--cs-ink); }
.cs-wrap { overflow-x: clip; }
.cs-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: calc(var(--container) + 2 * 16px);
  margin: 18px auto 0;
  padding: 0 16px;
}
.cs-header .header { position: relative; top: 0; }
.case .page { padding-top: 0; padding-bottom: 0; }
.case .footer { margin-bottom: 0; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Hero ---------- */
.cs-hero { display: flex; flex-direction: column; align-items: center; padding: 72px 0 56px; text-align: center; }
.cs-back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color .25s var(--ease-out);
}
.cs-back:hover { color: var(--accent); }
.cs-hero__title { max-width: 680px; margin-inline: auto; text-wrap: balance; }
.cs-hero__lead { margin: 32px auto 0; max-width: 520px; text-wrap: balance; }
.cs-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 820px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
/* Same card style as the research benchmarks (e.g. "Google Maps") */
.cs-meta li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 22px;
  border-radius: 20px;
  background: #fbfaf4;
  box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .07);
}
.cs-meta__label { font-family: var(--font-display); font-size: 20px; line-height: 28px; color: var(--cs-ink); }
.cs-meta__value { font-size: 16px; line-height: 26px; color: var(--base-black); opacity: .75; }

/* Split-word title animation (case.js wraps words) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .14em .22em .04em; margin: 0 -.14em -.22em -.04em; } /* room for italic overhang and descenders (the y in "easy") */
.word > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out) var(--d, 0ms); }
.is-split .word > span { transform: none; }

/* ---------- Full-bleed collage ---------- */
.cs-collage {
  margin: 0;
  width: 100%;
  aspect-ratio: 1440 / 498;
  max-height: 620px;
  overflow: hidden;
  background: #f4f0e8;
}
.cs-collage img { width: 112%; max-width: none; height: 100%; object-fit: cover; object-position: left center; will-change: transform; }

/* ---------- Shared type ---------- */
.cs-h2 { font-family: var(--font-display); font-size: 32px; line-height: 44px; margin-bottom: 8px; }
.cs-h3 { font-family: var(--font-display); font-size: 24px; line-height: 32px; margin: 18px 0 8px; }
.cs-h3--caudex { font-family: var(--font-display); }
.cs-text { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 26px; }
.cs-text p { margin: 0; }
.cs-text b { font-weight: 700; }
.cs-list { margin: 0; padding-left: 24px; list-style: disc; }
.cs-list li::marker { color: var(--grey-light); }
.cs-list li + li { margin-top: 2px; }
.cs-pull { margin-top: 16px !important; max-width: 485px; }
figcaption {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  color: var(--cs-caption);
  text-align: center;
}

/* ---------- Image "shots" ---------- */
.shot { position: relative; overflow: hidden; border-radius: 16px; background: #f4f1ea; }
.shot--lg { border-radius: 24px; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.shot--top { margin-left: 0; }

/* ---------- Two-column rows ---------- */
.cs-row { display: grid; align-items: center; padding-top: var(--cs-gap); }
.cs-row--media-left { grid-template-columns: 525px 1fr; gap: 95px; }
.cs-media--stack { margin: 0; display: flex; flex-direction: column; gap: 17px; }

.cs-row--approach { grid-template-columns: 431px 1fr; gap: 114px; }
.cs-media--approach { display: flex; align-items: flex-start; gap: 25px; width: max-content; }
.cs-media__col { display: flex; flex-direction: column; gap: 24px; width: 317px; }
.cs-media--approach > .shot { width: 515px; }
/* Velory: keep the research shots inside the column instead of running off the right edge */
.cs-row--approach:not(.cs-row--approach-merged) .cs-media--approach { width: 100%; }
.cs-row--approach:not(.cs-row--approach-merged) .cs-media__col { width: 44%; flex: none; }
.cs-row--approach:not(.cs-row--approach-merged) .cs-media--approach > .shot { width: auto; flex: 1; }
/* Light outline so the white screenshots don't melt into the page */
.cs-media--approach .shot { box-shadow: 0 0 0 1px rgba(39, 35, 35, .1), 0 18px 40px -28px rgba(39, 35, 35, .3); }

.cs-row--iteration { grid-template-columns: 455px 727px; gap: 103px; }
.cs-iteration img { width: 100%; height: auto; display: block; }

.cs-row--store { grid-template-columns: 560px 1fr; gap: 96px; }
.cs-row--assets { grid-template-columns: 523px 1fr; gap: 64px; }
.cs-media--assets { display: flex; gap: 20px; width: max-content; }
.cs-media--assets .shot { width: 437px; }
.cs-row--outcome { grid-template-columns: 663px 1fr; gap: 72px; }

/* ---------- Centered sections ---------- */
.cs-center { padding-top: var(--cs-gap); text-align: center; }
.cs-center__text { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 26px; }
.cs-center__text .cs-h2 { margin-bottom: 4px; }
.cs-center--mobile .cs-center__text { font-family: var(--font-sans); padding-bottom: 72px; }
.cs-center--mobile .cs-h2 { font-family: var(--font-display); }

/* Design system board with floating cards */
.ds-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  width: 85%;
  margin: 64px auto 0;
  padding-bottom: 72px;
}
.ds-board > .shot { aspect-ratio: 600 / 498; }
.ds-card {
  position: absolute;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(38, 36, 30, .07), 0 24px 48px -24px rgba(38, 36, 30, .18);
  overflow: hidden;
}
.ds-card img { display: block; width: 100%; height: auto; }
.ds-board__c { left: 35%; top: 62%; width: 40.8%; padding: 12px 18px; }
.ds-board__d { left: 78%; top: 26%; width: 21.8%; padding: 9px 17px; }

/* ---------- Before / after store ---------- */
.cs-compare { margin: 0; }
.cs-compare__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 560 / 517;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 31, 38, .06);
  touch-action: pan-y;
}
.cs-compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cs-compare__label {
  position: absolute;
  top: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(255, 254, 248, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  line-height: 24px;
  color: var(--base-black);
  pointer-events: none;
}
.cs-compare__label--before { left: 14px; }
.cs-compare__label--after { right: 14px; }
.cs-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--base-black);
  pointer-events: none;
}
.cs-compare__handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--base-black);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.cs-compare__handle i::before,
.cs-compare__handle i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: solid var(--bg);
  border-width: 0 0 1.5px 1.5px;
}
.cs-compare__handle i::before { left: 12px; transform: rotate(45deg); }
.cs-compare__handle i::after { right: 12px; transform: rotate(-135deg); }
.cs-compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.cs-compare__range:focus-visible + .cs-compare__handle i { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Mobile band ---------- */
.cs-band { background: var(--cs-band); overflow: hidden; }
.cs-phones { display: flex; justify-content: center; gap: 23px; padding: 73px 16px 0; }
.cs-phones img { width: 261px; height: auto; display: block; }

/* ---------- Outcome ---------- */
.outcome-collage { position: relative; aspect-ratio: 663 / 368; }
.outcome-collage > * { position: absolute; }
.outcome-collage__a { left: 0; top: 0; width: 43%; aspect-ratio: 285 / 279; }
.outcome-collage__b { left: 45.7%; top: 0; width: 54.3%; aspect-ratio: 360 / 276; }
.outcome-collage__c { left: 27.1%; top: 55%; width: 48.1%; }
.outcome-collage__c img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(38, 36, 30, .3); }

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 96px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(39, 35, 35, .12);
}
.cs-stats li { display: flex; flex-direction: column; gap: 4px; padding: 32px 24px 0 0; }
.cs-stats li + li { padding-left: 32px; border-left: 1px solid rgba(39, 35, 35, .12); }
.cs-stats b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 52px; color: var(--accent); white-space: nowrap; }
.cs-stats li > span { font-size: 16px; line-height: 26px; color: var(--base-black); }

/* ---------- Closing ---------- */
.cs-next { padding-top: var(--cs-gap); padding-bottom: 36px; }
/* Two equal-width buttons: the wider one sets the width, icons hug the outer edges */
.cs-next__ctas { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-next__ctas .btn { justify-content: space-between; }
.btn--ghost { gap: 8px; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  translate: 0 48px;
  transition: opacity 1.2s cubic-bezier(.22, .61, .36, 1), translate 1.2s cubic-bezier(.22, .61, .36, 1);
}
[data-reveal].is-visible { opacity: 1; translate: none; }
[data-parallax] { will-change: transform; }


/* ================= Guides case study ================= */
.cs-hero__logo { display: block; width: auto; height: 44px; margin-bottom: 36px; }
.cs-collage--guides { aspect-ratio: auto; max-height: none; padding: 120px 0; background: #f4eff6; }
.cs-collage__track { display: flex; gap: 48px; width: max-content; padding: 0 80px; will-change: transform; }
.cs-collage--guides .cs-collage__track img {
  display: block;
  width: auto;
  height: 460px;
  max-width: none;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(60, 20, 70, .06), 0 10px 30px -18px rgba(60, 20, 70, .3);
}
/* Frosted rim around each widget */
.glass {
  flex: none;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28));
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 0 0 1px rgba(60, 20, 70, .05), 0 30px 60px -36px rgba(60, 20, 70, .35);
}

/* Competitor research */
.cs-research .cs-center__text { max-width: 620px; }
/* Research reads as part of Approach: closer, left-aligned with the Approach column */
.cs-research--in-approach { padding-top: 56px; text-align: left; }
.cs-research--in-approach .cs-center__text { max-width: 640px; margin-left: 0; }
.cs-research--in-approach .research-sub { margin: 0; }
/* Research images take the media side of the Approach row */
.cs-row--approach-merged { align-items: start; }
.cs-row--approach-merged > .cs-text { position: sticky; top: 110px; }
.research-stack { display: flex; flex-direction: column; gap: 28px; }
.research-stack .research-shot { margin: 0; }
.bench {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.bench__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 26px;
  border-radius: 20px;
  background: #fbfaf4;
  box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .07);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.bench__item:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .07), 0 24px 40px -28px rgba(39, 35, 35, .35); }
.bench__name { font-family: var(--font-display); font-size: 20px; line-height: 28px; color: var(--cs-ink); }
.bench__works { margin: 0; font-size: 16px; line-height: 26px; color: var(--base-black); opacity: .75; }
.bench__took { margin: auto 0 0; padding-top: 14px; border-top: 1px solid rgba(39, 35, 35, .08); font-size: 16px; line-height: 26px; color: var(--cs-ink); }
.bench__took span { display: block; margin-bottom: 2px; font-size: 12px; line-height: 20px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Air Light board */
.cs-kicker { margin: 0 !important; font-size: 12px; line-height: 20px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-light); }
.cs-row--ds { grid-template-columns: 455px 1fr; gap: 80px; }
.ds-air {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 22px 22px 26px;
  border-radius: 24px;
  background-color: #f3f2ef;
  background-image: radial-gradient(rgba(39, 35, 35, .12) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .06);
}
.ds-air__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: "Inter", var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: #1e1f26;
}
.ds-air__head em { font-style: normal; font-weight: 400; color: #8a8a8a; margin-left: 4px; }
.ds-air__shot { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -32px rgba(39, 35, 35, .35); }
.ds-air__shot img { display: block; width: 100%; height: auto; transition: transform 1.6s var(--ease-out); }
.ds-air__dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, #a259ff, #0d99ff); }

.cs-media--city { position: relative; padding-bottom: 72px; }
.cs-media--city__float {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 68%;
  aspect-ratio: 1423 / 634;
  box-shadow: 0 2px 8px rgba(38, 36, 30, .07), 0 30px 60px -28px rgba(38, 36, 30, .35);
}

/* Templates gallery: each page scrolls inside its frame on hover */
.tpl-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.tpl { display: flex; flex-direction: column; gap: 12px; cursor: ns-resize; }
.tpl__frame {
  position: relative;
  aspect-ratio: 3 / 4.6;
  overflow: hidden;
  border-radius: 16px;
  background: #f4eff6;
  box-shadow: 0 0 0 1px rgba(30, 31, 38, .06), 0 20px 40px -26px rgba(30, 31, 38, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tpl__frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform var(--dur, 4s) cubic-bezier(.45, 0, .55, 1);
}
.tpl.is-scrolling .tpl__frame { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(30, 31, 38, .06), 0 30px 50px -26px rgba(30, 31, 38, .45); }
.tpl.is-scrolling .tpl__frame img { transform: translateY(var(--shift, 0px)); }
.tpl > span { font-size: 16px; line-height: 26px; color: var(--base-black); }
.tpl-hint { margin-top: 20px; font-size: 14px; line-height: 22px; color: var(--grey-light); }

/* Search / events switcher */
.cs-switch { margin: 0; }
.cs-switch__tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: #f1ede2;
  isolation: isolate;
}
.cs-switch__tabs button {
  min-width: 112px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--grey-light);
  cursor: pointer;
  transition: color .3s var(--ease-out);
}
.cs-switch__tabs button.is-active { color: var(--base-black); }
.cs-switch__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: -1;
  width: calc(50% - 4px);
  height: 36px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px -4px rgba(0, 0, 0, .12);
  transition: transform .5s var(--ease-out);
}
.cs-switch[data-active="1"] .cs-switch__thumb { transform: translateX(100%); }
.cs-switch__frame {
  position: relative;
  aspect-ratio: 560 / 517;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 31, 38, .06);
}
.cs-switch__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.cs-switch__frame img.is-active { opacity: 1; transform: none; }
.cs-switch__frame img.is-contain { object-fit: contain; object-position: center top; padding-top: 24px; }
.cs-switch__frame { background: #fbf9fb; }
.cs-switch figcaption { text-align: left; }

/* Phones band */
.cs-band--guides { background: #f4eff6; }
.cs-phones--four { gap: 28px; padding: 112px 16px; }
/* Phone frames with browser chrome. Real iPhone outline (about 1 : 2.06); everything inside
   is sized in container units, so the status bar and Safari bar keep their proportions at any width. */
.mphone {
  position: relative;
  flex: none;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 230px;
  aspect-ratio: 71.6 / 147.6;
  margin: 0;
  border: 7px solid #1e1f26;
  border-radius: 16.5% / 8%;
  background: #fbf9fc;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(60, 20, 70, .5);
}
.mphone__status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 15.5cqw; padding: 2cqw 8.5cqw 0 10.5cqw; font: 600 5.1cqw/1 var(--font-sans); color: #1e1f26; }
.mphone__island { position: absolute; left: 50%; top: 3.4cqw; width: 29cqw; height: 8.4cqw; border-radius: 4.5cqw; background: #1e1f26; transform: translateX(-50%); }
.mphone__icons { display: flex; align-items: center; gap: 1.6cqw; }
.mphone__icons svg { display: block; height: 3.6cqw; width: auto; fill: currentColor; }
.mphone__bar { flex: none; padding: 1.6cqw 4.4cqw 3.4cqw; }
.mphone__url { display: flex; align-items: center; justify-content: space-between; height: 12.6cqw; padding: 0 4.4cqw; border-radius: 4.4cqw; background: #efedf1; font: 500 4.8cqw/1 var(--font-sans); color: #3b3a40; }
.mphone__aa { font-size: 4cqw; font-weight: 600; letter-spacing: -.02em; }
.mphone__domain { display: flex; align-items: center; gap: 1.6cqw; }
.mphone__domain svg { width: 3.5cqw; height: auto; fill: currentColor; opacity: .55; }
.mphone__reload { width: 4.8cqw; height: auto; opacity: .7; }
.mphone__screen { flex: 1; min-height: 0; overflow: hidden; }
.mphone .mphone__screen img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: top; }
/* Home indicator floats over the page like on iOS, so the screen runs to the bottom edge;
   difference blending keeps it dark on light pages and light on dark ones */
.mphone__home { position: absolute; left: 50%; bottom: 2.4cqw; width: 32cqw; height: 1.7cqw; border-radius: 1cqw; background: #fff; mix-blend-mode: difference; transform: translateX(-50%); }

.cs-center--next .cs-center__text { max-width: 600px; }

.outcome-visual { position: relative; padding: 0 9% 64px 0; }
.outcome-visual__desk { overflow: hidden; border-radius: 12px; box-shadow: 0 30px 60px -36px rgba(39, 35, 35, .45); }
.outcome-visual__desk img { display: block; width: 100%; height: auto; }
.outcome-visual__phone.mphone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  border-width: 6px;
  box-shadow: 0 30px 60px -24px rgba(39, 35, 35, .45);
}
.outcome-visual__chip {
  position: absolute;
  left: -20px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(39, 35, 35, .06), 0 20px 40px -24px rgba(39, 35, 35, .4);
}
.outcome-visual__chip b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; color: var(--accent); }
.outcome-visual__chip span { font-size: 13px; line-height: 18px; color: var(--grey-light); }


/* TripAdvisor research board */
.research-board {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 56px;
  text-align: left;
}
.research-side { display: flex; flex-direction: column; gap: 24px; }
.research-shot { margin: 0; }
.research-shot__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(39, 35, 35, .07), 0 30px 60px -40px rgba(39, 35, 35, .4);
}
.research-shot__zoom img { display: block; width: 100%; height: auto; transition: transform 1.4s var(--ease-out); }
.research-shot__zoom:hover img { transform: scale(1.03); }
.research-shot figcaption { text-align: left; }
.research-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.research-notes li { padding-left: 18px; border-left: 2px solid rgba(71, 79, 170, .35); font-size: 16px; line-height: 26px; color: var(--base-black); }
.research-notes b { font-weight: 700; }
.research-sub { margin: 64px auto 0; max-width: 540px; font-size: 16px; line-height: 26px; }
.cs-research .bench { margin-top: 28px; }

/* Full-screen zoom */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(20, 18, 18, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.zoom[hidden] { display: none; }
.zoom.is-open { opacity: 1; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; background: #fff; transform: scale(.97); transition: transform .45s var(--ease-out); }
.zoom.is-open img { transform: none; }
.zoom__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; line-height: 44px; cursor: pointer; }


/* ================= Swan Market case study ================= */
/* Opening band: bleeds to the right edge of the screen like Velory's collage.
   The photo's cream background matches the page, so its oval edge melts into it. */
.swan-pill {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 40px;
  margin: 0;
  padding-left: max(24px, calc(50% - 603px));
  background: #f4f0e8;
}
.swan-pill__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 54px;
  color: var(--cs-ink);
}
.swan-pill__title em { display: block; font-style: italic; color: var(--accent); }
.swan-pill__media { overflow: hidden; }
.swan-pill__media img { display: block; width: 100%; height: auto; transition: scale 1.6s cubic-bezier(.22, .61, .36, 1); transform-origin: right center; }

.swan-context img { display: block; width: 100%; height: auto; }
.swan-approach { grid-template-columns: 431px 1fr; }
.swan-wire { width: 720px; aspect-ratio: 1440 / 1069; background: #fffef8; }

.swan-question {
  max-width: 720px;
  margin: var(--cs-gap) auto 0;
  padding: 72px 104px;
  border: 1px solid rgba(39, 35, 35, .22);
  border-radius: 50%;
  text-align: center;
}
.swan-question .cs-h2 { margin-bottom: 16px; }
.swan-question p:last-child { margin: 0 auto; max-width: 440px; font-size: 16px; line-height: 26px; }

.swan-band { margin-top: var(--cs-gap); padding: 80px 16px; background: #f3f2ec; overflow: hidden; }
.swan-band__inner { max-width: 1232px; margin: 0 auto; }
.swan-band__inner img { display: block; width: 100%; height: auto; }

.swan-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: var(--cs-gap);
}
.swan-split .cs-h2 { max-width: 380px; }
.swan-product { margin-top: 56px; aspect-ratio: 2400 / 1727; background: #fffef8; box-shadow: none; }

.swan-mobile { position: relative; margin-top: 64px; padding: 80px 16px; background: #f6f4ec; overflow: hidden; }
.swan-mobile__word {
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -.55em;
  font-family: var(--font-display);
  font-size: min(30vw, 440px);
  line-height: 1;
  white-space: nowrap;
  color: rgba(39, 35, 35, .05);
  pointer-events: none;
}
.swan-mobile__phones { position: relative; display: flex; justify-content: center; gap: 48px; }
.swan-mobile__phones img { width: 240px; height: auto; filter: drop-shadow(0 30px 40px rgba(39, 35, 35, .25)); }


/* Company at a glance (Velory) */
.cs-glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 80px;
  align-items: start;
  margin-top: var(--cs-gap);
  padding: 56px;
  border-radius: 32px;
  background: #faf8f0;
  box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .06);
}
.cs-glance__intro p:not(.cs-kicker) { margin: 12px 0 0; font-size: 16px; line-height: 26px; }
.cs-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cs-badges li { padding: 4px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .1); font-size: 14px; line-height: 24px; color: var(--base-black); }
.cs-glance__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.cs-glance__stats li { display: flex; flex-direction: column; gap: 2px; }
.cs-glance__stats b { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 52px; color: var(--accent); white-space: nowrap; }
.cs-glance__stats span { font-size: 16px; line-height: 26px; color: var(--base-black); }
.cs-glance__ai {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(71, 79, 170, .18);
}
.cs-glance__ai p { margin: 0; font-size: 16px; line-height: 26px; }
.cs-glance__tag { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; line-height: 22px; font-weight: 500; letter-spacing: .06em; }
.cs-glance__source { grid-column: 1 / -1; margin: -16px 0 0; font-size: 12px; line-height: 20px; color: var(--grey-light); }


/* ================= Skin AI case study ================= */
.skin-hero { margin-top: 0; overflow: hidden; background: #f3f2ec; }
.skin-hero img { display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto; }
.skin-callout {
  margin-top: 24px !important;
  max-width: 420px;
  padding: 20px 28px;
  border: 1px solid rgba(39, 35, 35, .7);
  border-radius: 999px;
}
.skin-callout b { font-weight: 700; }
.skin-figure { margin: 72px 0 0; }
.skin-figure img { display: block; width: 100%; height: auto; }
.skin-figure--old { max-width: 924px; margin-inline: auto; }
.skin-figure--outcome { max-width: 815px; margin: 72px auto 0; }
.skin-figure figcaption { margin-top: 16px; text-align: center; font-size: 14px; line-height: 22px; color: var(--grey-light); }

.skin-shifts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(39, 35, 35, .12); }
.skin-shifts li { display: flex; flex-direction: column; gap: 4px; padding: 32px 24px 0 0; }
.skin-shifts li + li { padding-left: 32px; border-left: 1px solid rgba(39, 35, 35, .12); }
.skin-shifts__from { font-size: 16px; line-height: 26px; color: var(--grey-light); text-decoration: line-through; text-decoration-thickness: 1px; }
.skin-shifts b { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 40px; line-height: 54px; color: var(--accent); }
.skin-shifts li > span:last-child { font-size: 16px; line-height: 26px; color: var(--base-black); }
.skin-feature {
  position: relative;
  isolation: isolate;
  height: 520px;
  margin-top: var(--cs-gap);
  border-radius: 28px;
  overflow: hidden;
  background: #3a2f2a;
  color: #fff;
}
.skin-feature__bg {
  position: absolute;
  inset: -10%;
  z-index: -1;
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: blur(28px) saturate(.9) brightness(.78);
}
.skin-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: .32;
}
.skin-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 14, 10, .4) 0%, rgba(20, 14, 10, .05) 60%), linear-gradient(0deg, rgba(20, 14, 10, .3), transparent 55%);
}
.skin-feature__badge {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: rgba(255, 255, 255, .85);
}
.skin-feature__badge span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: .04em;
  color: #fff;
}
.skin-feature__phone { position: absolute; right: 14%; top: 56px; width: 270px; }
.skin-feature__phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 9px solid #8f8c86;
  border-radius: 42px;
  box-shadow: 0 0 0 1.5px #c9c6bf, inset 0 0 0 1px rgba(0, 0, 0, .25), 0 40px 60px -10px rgba(0, 0, 0, .45);
  rotate: 9deg;
}
.skin-feature__text { position: absolute; left: 48px; bottom: 44px; max-width: 420px; }
.skin-feature__text h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 44px; }
.skin-feature__text p { margin: 0; font-size: 16px; line-height: 26px; color: rgba(255, 255, 255, .85); }
.skin-ui {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
  padding-top: var(--cs-gap);
}
.skin-ui__phones { display: flex; align-items: flex-start; gap: 20px; }
.skin-ui__phones img { width: 34%; height: auto; flex: none; }
.skin-ui__phones img:last-child { width: 22.4%; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.skin-ui__phones img:nth-child(2) { margin-top: 48px; }
.skin-ui__phones img:nth-child(3) { margin-top: 96px; }


/* ================= Claim your business ================= */
.claim-hero { position: relative; container-type: inline-size; margin: 24px 0 0; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px rgba(39, 35, 35, .08), 0 30px 60px -30px rgba(39, 35, 35, .3); }
.claim-hero > img { display: block; width: 100%; height: auto; }

.claim-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 72px 0 0; padding: 0; list-style: none; }
.claim-points li { padding: 28px; border-radius: 20px; background: #eeebe4; }
.claim-points__num { font-size: 14px; line-height: 22px; color: var(--grey-light); }
.claim-points h3 { margin: 8px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 32px; }
.claim-points p { margin: 0; font-size: 16px; line-height: 26px; }

.claim-proto { margin-top: var(--cs-gap); padding: 96px 16px; background: #eeebe4; overflow: hidden; }
.claim-proto__inner { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; max-width: 960px; margin: 0 auto; }
.claim-proto__text p { margin: 16px 0 0; font-size: 16px; line-height: 26px; }
.claim-steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; }
.claim-steps li { counter-increment: step; display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 16px; line-height: 26px; color: var(--grey-light); transition: color .5s ease; }
.claim-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .18); transition: background .5s ease, color .5s ease, box-shadow .5s ease; }
.claim-steps li.is-active { color: var(--cs-ink); }
.claim-steps li.is-active::before { background: var(--accent); color: #fff; box-shadow: none; }
.claim-phone { position: relative; width: 300px; aspect-ratio: 375 / 812; border: 10px solid #1e1f26; border-radius: 46px; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -30px rgba(40, 20, 50, .45); }
.claim-phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.claim-phone > img.is-active { opacity: 1; }
.claim-phone { container-type: inline-size; }

/* Live search: types a venue name and filters results (desktop panel + phone) */
.claim-live { position: absolute; font-family: "Host Grotesk", var(--font-body); color: #141416; pointer-events: none; }
.claim-live__q { display: flex; align-items: center; background: #fff; }
.claim-live__q i { display: block; background: #141416; animation: claim-caret 1s steps(1) infinite; }
@keyframes claim-caret { 50% { opacity: 0; } }
.claim-live__list { margin: 0; padding: 0; list-style: none; }
.claim-live__list li { display: flex; align-items: center; animation: claim-row .25s ease both; }
.claim-live__list li.is-hit { background: #f4f0f4; }
.claim-live__list img { display: block; flex: none; object-fit: cover; }
.claim-live__list b { display: block; font-weight: 600; }
.claim-live__list small { display: block; color: #6c6c72; }
.claim-live__list .claim-live__none { color: #6c6c72; }
@keyframes claim-row { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Desktop panel: positions in % of the 2880px-wide screenshot */
.claim-live--desk { left: 0; top: 0; width: 100%; }
.claim-live--desk .claim-live__q { position: absolute; left: 57.7cqw; top: 17.4cqw; width: 37.6cqw; height: 1.94cqw; font-size: 1.04cqw; }
.claim-live--desk .claim-live__q i { width: .07cqw; height: 1.2cqw; margin-left: .05cqw; }
.claim-live--desk .claim-live__list { position: absolute; left: 56.94cqw; top: 20.56cqw; width: 38.2cqw; padding: .42cqw; border-radius: .83cqw; background: #fff; box-shadow: 0 .2cqw 1.4cqw rgba(20, 20, 30, .12), 0 0 0 .04cqw rgba(20, 20, 30, .08); }
.claim-live--desk .claim-live__list:empty { display: none; }
.claim-live--desk .claim-live__list li { gap: .69cqw; padding: .42cqw; border-radius: .56cqw; }
.claim-live--desk .claim-live__list img { width: 3.33cqw; height: 3.33cqw; border-radius: .42cqw; }
.claim-live--desk .claim-live__list b { font-size: 1.04cqw; line-height: 1.5cqw; }
.claim-live--desk .claim-live__list small { font-size: .87cqw; line-height: 1.3cqw; }
.claim-live--desk .claim-live__none { padding: .8cqw; font-size: .9cqw; }
/* Once a venue is picked, the verification fields switch from disabled to enabled */
.claim-live--desk .claim-live__fields { opacity: 0; transition: opacity .45s ease; }
.claim-live--desk.is-picked .claim-live__fields { opacity: 1; }
.claim-live--desk.is-picked .claim-live__q i { display: none; }
.claim-live__field { position: absolute; display: flex; align-items: center; top: 28.13cqw; width: 20cqw; height: 3.19cqw; padding-left: 1.15cqw; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 .07cqw rgba(20, 20, 22, .5); font-size: 1.04cqw; color: #6c6c72; }
.claim-live__field--first { left: 55.63cqw; }
.claim-live__field--last { left: 77.15cqw; }
.claim-live__field--phone { left: 55.63cqw; top: 34.51cqw; }

/* Phone: positions in % of the 750px-wide screen, shown only on the search step */
.claim-live--phone { inset: 0; opacity: 0; transition: opacity .7s ease; }
.claim-live--phone.is-active { opacity: 1; }
.claim-live--phone .claim-live__q { position: absolute; left: 12.4cqw; top: 22cqw; width: 80cqw; height: 6.2cqw; font-size: 4.1cqw; background: transparent; }
.claim-live--phone .claim-live__q i { width: .3cqw; height: 5cqw; margin-left: .2cqw; }
.claim-live--phone .claim-live__list { position: absolute; left: 0; right: 0; top: 35.5cqw; padding: 0 3.4cqw; }
.claim-live--phone .claim-live__list li { gap: 4.4cqw; padding: 1.6cqw 1.4cqw; border-radius: 3cqw; }
.claim-live--phone .claim-live__list img { width: 12.8cqw; height: 12.8cqw; border-radius: 2cqw; }
.claim-live--phone .claim-live__list b { font-size: 4.3cqw; line-height: 6cqw; }
.claim-live--phone .claim-live__list small { font-size: 3.6cqw; line-height: 5cqw; }
.claim-live--phone .claim-live__none { padding: 3cqw 1.4cqw; font-size: 3.8cqw; }

.claim-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 780px; margin: 56px auto 0; }
.claim-cases figure { margin: 0; }
.claim-cases img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px rgba(39, 35, 35, .1), 0 24px 44px -26px rgba(39, 35, 35, .35); }
.claim-cases figcaption { margin-top: 14px; text-align: center; font-size: 14px; line-height: 22px; color: var(--grey-light); }
.claim-entry .shot { margin: 0; }
.claim-entry .shot img { display: block; width: 100%; height: auto; }

/* ================= Tablet ================= */
@media (max-width: 1100px) {
  :root { --cs-gap: 96px; }
  .cs-row,
  .cs-row--media-left,
  .cs-row--approach,
  .cs-row--iteration,
  .cs-row--store,
  .cs-row--assets,
  .cs-row--outcome { grid-template-columns: 1fr; gap: 40px; }
  .cs-row--media-left > :first-child { order: 2; }
  .cs-media--stack { max-width: 640px; }
  .cs-row--approach-merged > .cs-text { position: static; }
  .cs-media--approach { width: 100%; }
  .cs-media__col { width: 44%; flex: none; }
  .cs-media--approach > .shot { width: auto; flex: 1; }
  .cs-iteration { width: 100%; }
  .cs-compare { max-width: 640px; }
  .cs-media--assets { width: 100%; }
  .cs-media--assets .shot { width: auto; flex: 1; }
  .outcome-collage { max-width: 663px; }
  .cs-phones img { width: 30%; max-width: 240px; }
  .cs-stats b { font-size: 40px; line-height: 52px; }
  .bench { grid-template-columns: repeat(2, 1fr); }
  .research-board { grid-template-columns: 1fr; }
  .cs-glance { grid-template-columns: 1fr; padding: 40px; }
  .swan-pill { gap: 24px; }
  .swan-pill__title { font-size: 36px; line-height: 48px; }
  .swan-wire { width: 100%; }
  .swan-split { grid-template-columns: 1fr; gap: 24px; }
  .claim-points { grid-template-columns: 1fr; }
  .claim-proto__inner { grid-template-columns: 1fr; justify-items: center; gap: 48px; }
  .skin-ui { grid-template-columns: 1fr; gap: 40px; }
  .skin-feature__phone { right: 4%; width: 260px; }
  .swan-mobile__phones img { width: 200px; }
  .bench__item:last-child { grid-column: 1 / -1; }
  .cs-row--ds { grid-template-columns: 1fr; gap: 40px; }
  .tpl-gallery { grid-template-columns: repeat(5, 46%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .tpl-gallery::-webkit-scrollbar { display: none; }
  .tpl { scroll-snap-align: start; }
  .cs-media--city__float { right: 0; }
  .cs-switch { max-width: 640px; }
  .mphone { width: 22%; max-width: 210px; }
}

/* ================= Mobile ================= */
@media (max-width: 720px) {
  :root { --cs-gap: 72px; }
  .cs-hero { padding: 40px 0 40px; }
  .cs-back { margin-bottom: 20px; }
  .cs-meta { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  /* Phones: let the collage keep its natural shape so it never shows an empty edge while drifting */
  .cs-collage { aspect-ratio: auto; max-height: none; }
  .cs-collage img { width: 220%; height: auto; }
  .cs-collage--guides .cs-collage__track img { width: auto; }

  .cs-h2 { font-size: 30px; line-height: 40px; }
  .cs-h3 { font-size: 22px; line-height: 30px; }

  .cs-media--approach { flex-direction: column; }
  .cs-media__col { width: 100%; }
  .cs-media--approach > .shot { width: 100%; flex: none; }
  .cs-media--assets { flex-direction: column; }
  .cs-media--assets .shot { width: 100%; flex: none; }

  .ds-board { grid-template-columns: 1fr; gap: 12px; width: 100%; margin-top: 40px; padding-bottom: 0; }
  .ds-card { position: static; width: auto; }
  .ds-board__d { width: 62%; justify-self: end; margin-top: -48px; }

  .cs-compare__handle i { width: 38px; height: 38px; margin: -19px 0 0 -19px; }

  .cs-phones { gap: 10px; padding-top: 40px; }
  .cs-phones img { width: 31%; }

  .cs-stats { grid-template-columns: 1fr; margin-top: 64px; }
  .cs-stats li, .cs-stats li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgba(39, 35, 35, .12); }
  .cs-stats b { font-size: 36px; line-height: 48px; }

  .cs-next__ctas { grid-template-columns: 1fr; }
  .cs-hero__logo { height: 36px; margin-bottom: 20px; }
  .cs-collage--guides { padding: 56px 0; }
  .cs-collage__track { gap: 20px; padding: 0 20px; }
  .cs-collage--guides .cs-collage__track img { height: 220px; border-radius: 12px; }
  .glass { padding: 8px; border-radius: 20px; }
  .bench { grid-template-columns: 1fr; margin-top: 36px; }
  .zoom { padding: 16px; }
  .cs-glance { padding: 28px 20px; border-radius: 24px; }
  .cs-glance__stats b { font-size: 36px; line-height: 48px; }
  .cs-glance__ai { flex-direction: column; gap: 10px; }
  .swan-pill { grid-template-columns: 1fr; gap: 16px; padding-left: 0; }
  .swan-pill__title { padding: 0 20px; font-size: 32px; line-height: 40px; }
  .swan-question { padding: 48px 28px; border-radius: 40px; }
  .skin-figure { margin-top: 40px; }
  .skin-callout { padding: 16px 20px; border-radius: 28px; }
  .skin-ui__phones { gap: 10px; }
  .claim-proto { padding: 56px 16px; }
  .claim-phone { width: 250px; border-width: 8px; border-radius: 38px; }
  .claim-cases { grid-template-columns: 1fr 1fr; gap: 16px; }
  .claim-cases figure:last-child { display: none; }
  .skin-feature { height: auto; padding: 20px 24px 28px; border-radius: 24px; }
  .skin-feature__badge { position: static; }
  .skin-feature__phone { position: static; width: 190px; margin: 32px auto 40px; }
  .skin-feature__phone img { border-width: 7px; border-radius: 32px; rotate: 6deg; }
  .skin-feature__text { position: static; max-width: none; }
  .skin-feature__text h2 { font-size: 30px; line-height: 40px; }
  .skin-shifts { grid-template-columns: 1fr; margin-top: 56px; }
  .skin-shifts li, .skin-shifts li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgba(39, 35, 35, .12); }
  .skin-shifts b { font-size: 32px; line-height: 42px; }
  .skin-ui__phones img:nth-child(2) { margin-top: 20px; }
  .skin-ui__phones img:nth-child(3) { margin-top: 40px; }
  .swan-band { padding: 40px 16px; }
  .swan-mobile { padding: 48px 12px; }
  .swan-mobile__phones { gap: 10px; }
  .swan-mobile__phones img { width: 31%; }
  .ds-air { padding: 14px; }
  .tpl-gallery { grid-template-columns: repeat(5, 72%); }
  .cs-media--city { padding-bottom: 48px; }
  .outcome-visual__chip { left: 8px; }
  .cs-media--city__float { width: 80%; }
  .cs-switch__tabs button { min-width: 96px; }
  .cs-phones--four { flex-wrap: wrap; gap: 12px; padding: 56px 16px; }
  .mphone { width: 46%; border-width: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; translate: none; }
  .word > span { transform: none; }
}

/* Phones: same trimmed space under the copyright as the home page */


/* Case studies: side-by-side images 20% smaller than their column, kept to the outer edge (desktop) */
@media (min-width: 1101px) {
  :is(.case--guides, .case--velory, .case--swan, .case--skin) .cs-row > :not(.cs-text) { width: 80%; }
  :is(.case--guides, .case--velory, .case--swan, .case--skin) .cs-row > :not(.cs-text):last-child { justify-self: end; }
  .case--skin .skin-ui > .skin-ui__phones { width: 80%; justify-self: end; }
}

/* Hero visual bands: every case page uses the Velory collage height (1440:498, max 620px) */
@media (min-width: 721px) {
  .cs-collage--guides { display: flex; align-items: center; aspect-ratio: 1440 / 498; max-height: 620px; padding: 0; }
  .cs-collage--guides .cs-collage__track { height: 74%; }
  .cs-collage--guides .glass { height: 100%; box-sizing: border-box; }
  .cs-collage--guides .cs-collage__track img { height: 100%; }

  .cs-band--hero { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1440 / 498; max-height: 620px; padding: 0; }
  .cs-band--hero .claim-hero { height: 78%; width: auto; aspect-ratio: 2880 / 1800; margin: 0; }
  .cs-band--hero .claim-hero > img { height: 100%; width: auto; }

  .swan-pill { width: 100%; aspect-ratio: 1440 / 498; max-height: 620px; overflow: hidden; grid-template-rows: minmax(0, 1fr); }
  .swan-pill__media { height: 100%; display: flex; justify-content: flex-end; }
  .swan-pill__media img { width: auto; height: 100%; }

  .skin-hero { width: 100%; aspect-ratio: 1440 / 498; max-height: 620px; }
  .skin-hero img { height: 100%; object-fit: contain; }
}
@media (max-width: 720px) { .cs-band--hero { padding: 56px 20px; } }

/* Kicker → title → text: same rhythm as the homepage cards (20px, then 15px) */
.cs-kicker + .cs-h2 { margin: 20px 0 15px; }
.cs-kicker + .cs-h2 + p { margin-top: 0 !important; }
.cs-text > .cs-kicker + .cs-h2 { margin: 8px 0 3px; } /* the column already has a 12px gap */

/* Results row with two stats (Velory) */
.cs-stats--2 { grid-template-columns: repeat(2, 1fr); }

/* Pill groups in "My role" (Velory) */
.cs-chips { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.cs-chips + .cs-chips { margin-top: 12px; }

/* Velory hero: two static photo cards on the cream band */
.cs-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px max(24px, calc(50% - 648px));
  background: var(--cs-band);
}
.cs-pair img { display: block; width: 100%; height: auto; border-radius: 24px; }
@media (max-width: 720px) {
  .cs-pair { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .cs-pair img { border-radius: 20px; }
  .cs-pair img + img { display: none; }
}

/* Top back link: left-aligned to the content edge, styled like the header menu */
.cs-hero > .cs-back { align-self: flex-start; margin-bottom: 44px; font-size: 12px; line-height: 20px; letter-spacing: 0; }
@media (max-width: 720px) { .cs-hero > .cs-back { margin-bottom: 24px; } }

/* Back button sits on the nav line at the left content edge, styled like the other ghost buttons */
.cs-wrap { position: relative; }
/* Lines up with the nav but scrolls away instead of sticking */
.btn.cs-back-btn {
  position: absolute;
  z-index: 51;
  left: max(16px, calc(50% - var(--container) / 2));
  top: 6px;
}
/* Back buttons (header line and bottom CTA): icon first, same size as the other buttons */
.btn.btn--back { padding: 0 18px 0 6px; }
.btn--back .btn__icon { margin: 0; }
.btn.btn--back:hover .btn__icon svg { transform: translateX(-2px); }
.cs-hero > .cs-back { display: none; }
/* Narrow screens: no room beside the nav, so the back link stays in the hero */
@media (max-width: 880px) {
  .cs-back-btn { display: none; }
  /* Centred over the centred hero, in the button's sentence-case 14px */
  .cs-hero > .cs-back { display: inline-block; align-self: center; font-size: 14px; line-height: 24px; text-transform: none; }
}

/* Case hero titles match the 32px section headings at every width */
.display.cs-hero__title { font-size: 32px; line-height: 44px; }

/* Velory: influence points under the design system board */
.ds-influence__label { margin-top: 32px !important; }
.claim-points.ds-influence { margin-top: 20px; text-align: left; }

/* Velory Approach: screenshots start on the same line as the Problem statement text above */
@media (min-width: 1101px) {
  .case--velory .cs-row--approach:not(.cs-row--approach-merged) { grid-template-columns: 525px 1fr; gap: 95px; }
  .case--velory .cs-row--approach:not(.cs-row--approach-merged) > .cs-media--approach { width: 100%; justify-self: stretch; }
}

/* Guides: the two state/city banners in the hero strip are 20% smaller than the other screens */
.cs-collage--guides .glass--banner { align-self: center; }
@media (min-width: 721px) { .cs-collage--guides .glass.glass--banner { height: 80%; } }
@media (max-width: 720px) { .cs-collage--guides .glass--banner img { height: 176px; } }

/* Two-column text sections: right column starts on the same line (735px at 1440) as the image/text rows */
@media (min-width: 1101px) {
  .swan-split { grid-template-columns: 525px 1fr; gap: 95px; }
}

/* Swan hero: the laptop image takes the right half of the screen; the band grows to fit it */
@media (min-width: 721px) {
  .swan-pill { grid-template-columns: minmax(0, 1fr) 50vw; aspect-ratio: auto; max-height: none; gap: 40px; }
  .swan-pill__media { height: auto; display: block; }
  .swan-pill__media img { width: 100%; height: auto; }
}

/* One grid for every text + image row (desktop): 525px column, 95px gap, second column at the same line everywhere */
@media (min-width: 1101px) {
  :is(.case--velory, .case--guides, .case--swan, .case--skin) .cs-row { grid-template-columns: 525px minmax(0, 1fr); gap: 95px; }
  :is(.case--velory, .case--guides, .case--swan, .case--skin) .cs-row > :not(.cs-text) { width: 100%; justify-self: stretch; }
  .cs-row > figure { margin-inline: 0; }
}
