/* case-study-v3.css — shared v3 case study layout */

:root {
  color-scheme: light !important;
  --ink-1:  #0c0e12;
  --ink-2:  rgba(12, 14, 18, 0.62);
  --ink-3:  rgba(12, 14, 18, 0.40);
  --ink-4:  rgba(12, 14, 18, 0.16);
  --bg-1:   #ffffff;
  --bg-2:   #f1f3f6;
  --bg-3:   #e7eaf0;
  --surface: #f3f4f6;
  --line-1: rgba(12, 14, 18, 0.06);
  --line-2: rgba(12, 14, 18, 0.10);
  --line-3: rgba(12, 14, 18, 0.20);
  --accent: #1e3a8a;
  --pill-bg:      #0c0e12;
  --pill-ink:     #ffffff;
  --frost-bg:     rgba(255, 255, 255, 0.55);
  --frost-border: rgba(255, 255, 255, 0.65);
  --frost-ink:    #0c0e12;
  --shadow-card:  0 1px 2px rgba(12, 14, 24, 0.06), 0 14px 36px -18px rgba(12, 14, 24, 0.18);
  --shadow-pop:   0 1px 2px rgba(12, 14, 24, 0.05), 0 22px 52px -28px rgba(12, 14, 24, 0.30);
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1:  120ms;
  --dur-2:  220ms;
  --dur-3:  320ms;
  --gutter: clamp(20px, 4vw, 72px);
  --container: 1120px;
  --section: clamp(72px, 10vw, 120px);
  --radius-card: 8px;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fs-body: 15px;
  --fs-small: 13.5px;
  --fs-h2: clamp(24px, 2.6vw, 32px);
  --fs-lead: clamp(28px, 3.2vw, 38px);
  --lh-body: 1.62;
  --lh-tight: 1.04;
  --content-max: 620px;
  --prose-narrow: 620px;
  --prose-wide: 720px;
  --asset-max: 1180px;
  --phone-col-w: min(220px, 22vw);
  --phone-chassis-r: clamp(36px, 4.2vw, 52px);
  --phone-screen-r: clamp(28px, 3.2vw, 40px);
  --phone-bezel: clamp(8px, 1vw, 12px);
  --toc-marble: 14px;
  --toc-marble-gap: 10px;
  --nav-h: 44px;
}


/* ── Nav (index-v3) ──────────────────────────────────────────── */
.nav {
  --nav-h: 44px;
  --nav-fade: clamp(8px, 1.2vh, 14px);
  font-family: var(--font-display);
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: var(--nav-fade);
  margin-top: 0;
  margin-bottom: calc(-1 * var(--nav-fade));
  border-bottom: none;
  background-color: transparent;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0px,
    rgba(255, 255, 255, 0.82) calc(var(--nav-h) - 10px),
    rgba(255, 255, 255, 0.48) var(--nav-h),
    rgba(255, 255, 255, 0.14) calc(var(--nav-h) + 6px),
    rgba(255, 255, 255, 0) calc(var(--nav-h) + var(--nav-fade))
  );
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  gap: clamp(12px, 2vw, 24px);
}
.nav__group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 26px);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-1);
}
.nav__group--start { justify-self: start; }
.nav__group--end { justify-self: end; }
.nav__center {
  justify-self: center;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
}
.nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}
.nav a:hover { color: var(--ink-1); }
@media (max-width: 760px) {
  .nav {
    --nav-h: 64px;
    --nav-fade: clamp(8px, 1.2vh, 12px);
  }
  :root {
    --nav-h: 64px;
  }
  .nav__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 48px;
    padding: 8px 0;
    gap: 8px 16px;
  }
  .nav__group--start { grid-column: 1; grid-row: 1; }
  .nav__center { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .nav__group--end { grid-column: 2; grid-row: 1; }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.cs-content .cs-prose--narrow .case-study__section-title,
.cs-content .cs-prose--wide .case-study__section-title {
  max-width: none;
}

.cs-prose--narrow,
.cs-asset--narrow {
  max-width: var(--prose-narrow);
  margin-left: auto;
  margin-right: auto;
}
.cs-prose--wide,
.cs-asset--wide {
  max-width: var(--prose-wide);
  margin-left: auto;
  margin-right: auto;
}
.case-study-v3 .cs-prose + .cs-asset,
.helsinki-v3 .cs-prose + .cs-asset,
.case-study-v3 .cs-prose + .cs-media,
.helsinki-v3 .cs-prose + .cs-media,
.case-study-v3 .cs-prose + .phone-grid,
.helsinki-v3 .cs-prose + .phone-grid,
.case-study-v3 .cs-prose + .phase-row,
.helsinki-v3 .cs-prose + .phase-row,
.case-study-v3 .cs-prose + .service-map-figure,
.helsinki-v3 .cs-prose + .service-map-figure,
.case-study-v3 .cs-prose + .solution-flow,
.helsinki-v3 .cs-prose + .solution-flow,
.case-study-v3 .cs-prose + .reframe-graphic,
.helsinki-v3 .cs-prose + .reframe-graphic {
  margin-top: clamp(36px, 5vw, 52px);
}

/* Photo / video frames */
.case-study-v3 .cs-media__frame,
.helsinki-v3 .cs-media__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(12px, 1.2vw, 18px);
  background: var(--bg-2);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.05),
    0 20px 48px rgba(15, 23, 42, 0.08);
}
.case-study-v3 .cs-media__frame img,
.case-study-v3 .cs-media__frame video,
.helsinki-v3 .cs-media__frame img,
.helsinki-v3 .cs-media__frame video {
  display: block;
  width: 100%;
  height: auto;
}
.case-study-v3 .cs-media__frame:has(.image-credit) img,
.helsinki-v3 .cs-media__frame:has(.image-credit) img,
.case-study-v3 .helsinki-lead__media img,
.helsinki-v3 .helsinki-lead__media img {
  filter: grayscale(1);
}

.case-study-v3 .helsinki-lead__media,
.helsinki-v3 .helsinki-lead__media {
  width: 100%;
  max-width: min(var(--content-max), calc(100vw - 2 * var(--gutter)));
  margin-left: auto;
  margin-right: auto;
}
.case-study-v3 .helsinki-lead__media .cs-media__frame,
.helsinki-v3 .helsinki-lead__media .cs-media__frame {
  aspect-ratio: 16 / 9;
}
.case-study-v3 .helsinki-lead__media img,
.helsinki-v3 .helsinki-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-media__frame .image-credit,
.helsinki-lead__media .image-credit {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(20, 20, 20, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  cursor: default;
  outline: none;
}
.cs-media__frame .image-credit::after,
.helsinki-lead__media .image-credit::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  transform: translateY(4px);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  color: #fafafa;
  background: rgba(20, 20, 20, 0.92);
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 14px rgba(15, 18, 24, 0.18);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-media__frame .image-credit::before,
.helsinki-lead__media .image-credit::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  transform: translateY(4px) rotate(45deg);
  background: rgba(20, 20, 20, 0.92);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.cs-media__frame .image-credit:hover::after,
.cs-media__frame .image-credit:focus-visible::after,
.helsinki-lead__media .image-credit:hover::after,
.helsinki-lead__media .image-credit:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.cs-media__frame .image-credit:hover::before,
.cs-media__frame .image-credit:focus-visible::before,
.helsinki-lead__media .image-credit:hover::before,
.helsinki-lead__media .image-credit:focus-visible::before {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}

/* Hero — v3mock canonical (source: helsinki-bus-v3 / HSL)
   Full viewport above the fold; lead statement starts below. */
.helsinki-hero--v3mock {
  min-height: calc(100svh - var(--nav-h, 44px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.helsinki-hero--v3mock::after {
  display: none;
}
.helsinki-hero--v3mock .helsinki-hero__canvas {
  display: none;
}
.helsinki-hero--v3mock.helsinki-hero .helsinki-hero__container {
  min-height: calc(100svh - var(--nav-h, 44px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding-top: clamp(20px, 3vh, 36px);
  padding-bottom: clamp(20px, 3vh, 36px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  box-sizing: border-box;
}
.helsinki-hero--v3mock .helsinki-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "phone text";
  align-items: center;
  width: 100%;
  min-height: 0;
  gap: clamp(20px, 3vw, 40px);
  max-width: var(--container);
  margin: 0 auto;
}
.helsinki-hero--v3mock .helsinki-hero__media {
  grid-area: phone;
  position: relative;
  align-self: center;
  justify-self: center;
  width: fit-content;
  max-width: min(420px, 44vw);
}
.helsinki-hero--v3mock .helsinki-hero__mosaic {
  --mosaic-edge-pad: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 114%;
  height: 124%;
  transform: translate(-50%, -50%);
  padding: var(--mosaic-edge-pad);
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
  background-color: transparent;
  background-image: radial-gradient(circle, rgba(12, 14, 18, 0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  background-position: 8px 8px;
  mask-image: radial-gradient(ellipse 88% 76% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 48%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.55) 48%, transparent 72%);
}
.helsinki-hero--v3mock .helsinki-hero__mosaic.is-live {
  background-image: none;
}
.helsinki-hero--v3mock .helsinki-hero__mosaic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.helsinki-hero--v3mock .phone-frame:not(.phone-frame--landscape) {
  position: relative;
  z-index: 1;
  width: min(350px, 37.85vh);
  height: auto;
  aspect-ratio: 9 / 19.5;
}
.helsinki-hero--v3mock .helsinki-hero__text-col {
  grid-area: text;
  transform: none;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: clamp(8px, 1.5vh, 16px) 0;
}
.helsinki-hero--v3mock.helsinki-hero--phone .helsinki-hero__text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: stretch;
  grid-template-rows: none;
  transform: none;
  max-width: none;
  gap: 0;
  padding: 0;
}
.helsinki-hero--v3mock .helsinki-hero__top-slot {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: clamp(32px, 4vh, 48px);
  border: none;
}
.helsinki-hero--v3mock .helsinki-hero__copy-block {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vh, 36px);
}
/* Credential line */
.helsinki-hero--v3mock .helsinki-hero__client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.helsinki-hero--v3mock .helsinki-hero__client-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(12, 14, 24, 0.08);
}
.helsinki-hero--v3mock .helsinki-hero__client-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.35;
  color: rgba(12, 14, 18, 0.55);
}
.helsinki-hero--v3mock .helsinki-hero__client-role {
  color: rgba(12, 14, 18, 0.72);
  text-transform: capitalize;
}
.helsinki-hero--v3mock .helsinki-hero__client-sub {
  text-transform: capitalize;
}
.helsinki-hero--v3mock .helsinki-hero__client-atword {
  font-weight: 400;
  color: rgba(12, 14, 18, 0.42);
}
.helsinki-hero--v3mock .helsinki-hero__client-org {
  font-weight: 600;
  color: var(--ink-1);
}
.helsinki-hero--v3mock .helsinki-hero__client-org-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.helsinki-hero--v3mock .helsinki-hero__client-org-link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  border-bottom: 1.5px dashed var(--ink-4);
  transition: opacity 0.2s ease;
}
.helsinki-hero--v3mock .helsinki-hero__client-org-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink-1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.helsinki-hero--v3mock .helsinki-hero__client-org-link:hover,
.helsinki-hero--v3mock .helsinki-hero__client-org-link:focus-visible {
  text-decoration: none;
}
.helsinki-hero--v3mock .helsinki-hero__client-org-link:hover::before,
.helsinki-hero--v3mock .helsinki-hero__client-org-link:focus-visible::before {
  opacity: 0;
}
.helsinki-hero--v3mock .helsinki-hero__client-org-link:hover::after,
.helsinki-hero--v3mock .helsinki-hero__client-org-link:focus-visible::after {
  transform: scaleX(1);
}
.helsinki-hero--v3mock .helsinki-hero__client-ext {
  display: none;
}
.helsinki-hero--v3mock .helsinki-hero__summary {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 42ch;
  color: var(--ink-2);
}
.helsinki-hero--v3mock .helsinki-hero__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 20ch;
  margin-bottom: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--ink-1);
}
.helsinki-hero--v3mock .helsinki-hero__meta {
  font-family: var(--font-body);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding-top: clamp(24px, 3vh, 36px);
  border: none;
  max-width: 100%;
}
.helsinki-hero--v3mock .helsinki-hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.helsinki-hero--v3mock .helsinki-hero__meta dt {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}
.helsinki-hero--v3mock .helsinki-hero__meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink-1);
}

/* Lead — pullquote-style bridge into the body */
.helsinki-lead {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--gutter);
}
.case-study-v3 .helsinki-lead, .helsinki-v3 .helsinki-lead {
  padding: clamp(128px, 24vh, 260px) var(--gutter) clamp(64px, 10vh, 120px);
}
.helsinki-lead__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.case-study-v3 .helsinki-lead__statement, .helsinki-v3 .helsinki-lead__statement,
.case-study-v3 .case-study__section-title, .helsinki-v3 .case-study__section-title {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-bottom: 0.06em;
}
.case-study-v3 .case-study__section-title, .helsinki-v3 .case-study__section-title {
  color: var(--ink-1);
  -webkit-text-fill-color: currentColor;
  background: none;
}
.case-study-v3 .helsinki-lead__statement, .helsinki-v3 .helsinki-lead__statement,
.case-study-v3 .case-study__section--feature .case-study__section-title, .helsinki-v3 .case-study__section--feature .case-study__section-title {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.case-study-v3 .helsinki-lead__statement, .helsinki-v3 .helsinki-lead__statement {
  margin: 0;
}
.helsinki-lead__media {
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.case-study-v3 .helsinki-lead__media, .helsinki-v3 .helsinki-lead__media {
  margin-top: clamp(64px, 8vw, 112px);
}
.case-study-v3 .helsinki-lead__inner .helsinki-lead__media,
.helsinki-v3 .helsinki-lead__inner .helsinki-lead__media {
  margin-top: clamp(56px, 7vw, 104px);
}

/* Case study — index-v3 container rail + quiet sticky TOC */
.case-study-v3 .case-study, .helsinki-v3 .case-study {
  padding-top: 0;
}
.case-study-v3 .cs-layout, .helsinki-v3 .cs-layout {
  display: block !important;
  max-width: var(--container) !important;
  margin: 0 auto !important;
  padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(20px, 3vw, 32px) !important;
}
.case-study-v3 .cs-content, .helsinki-v3 .cs-content {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  overflow: visible;
  font-size: 14px;
  line-height: 1.58;
}
.case-study-v3 .cs-toc, .helsinki-v3 .cs-toc {
  position: fixed;
  left: calc(var(--gutter) - var(--toc-marble) - var(--toc-marble-gap));
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 40;
  width: max-content;
  max-width: min(200px, calc(100vw - 2 * var(--gutter)));
  max-height: min(42vh, 320px);
  padding: 0 !important;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transition: opacity 0.35s ease;
}
.case-study-v3 .cs-toc::-webkit-scrollbar, .helsinki-v3 .cs-toc::-webkit-scrollbar { display: none; }
.case-study-v3 .cs-toc.is-visible, .helsinki-v3 .cs-toc.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}
.case-study-v3.pillar-compact-toc .cs-toc, .helsinki-v3.pillar-compact-toc .cs-toc {
  display: block !important;
}
.case-study-v3 .cs-toc__list, .helsinki-v3 .cs-toc__list {
  margin: 0;
  padding: 0;
}
.case-study-v3 .cs-toc__link, .helsinki-v3 .cs-toc__link {
  display: grid;
  grid-template-columns: var(--toc-marble) 1fr;
  column-gap: var(--toc-marble-gap);
  align-items: center;
  position: relative;
  padding: 4px 0;
  font-size: 12.5px;
  line-height: 1.4;
}
.case-study-v3 .cs-toc__dot, .helsinki-v3 .cs-toc__dot {
  grid-column: 1;
  grid-row: 1;
  position: static;
  width: var(--toc-marble);
  height: var(--toc-marble);
  margin: 0;
  flex: none;
  opacity: 0;
  object-fit: contain;
  justify-self: center;
}
.case-study-v3 .cs-toc__link.is-active .cs-toc__dot, .helsinki-v3 .cs-toc__link.is-active .cs-toc__dot {
  opacity: 1;
  animation: tocDotPulse 2.8s ease-in-out infinite;
}
@media (max-width: 900px) {
  .case-study-v3 .cs-content, .helsinki-v3 .cs-content {
    width: 100%;
    max-width: 100%;
  }
  .case-study-v3 .cs-toc, .helsinki-v3 .cs-toc {
    display: none !important;
  }
}

/* Headings — same scale as lead statement */
.case-study-v3 .cs-prose, .helsinki-v3 .cs-prose {
  text-align: center;
}
.case-study-v3 .case-study__section-title, .helsinki-v3 .case-study__section-title {
  margin-bottom: clamp(6px, 1vw, 10px);
}
.case-study-v3 .case-study__section-text, .helsinki-v3 .case-study__section-text {
  font-size: 14px;
  line-height: 1.58;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.case-study-v3 .case-study__impact, .helsinki-v3 .case-study__impact {
  text-align: center;
}
.case-study-v3 .case-study__impact-text, .helsinki-v3 .case-study__impact-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 36ch;
}
.case-study-v3 .case-study__impact-title, .helsinki-v3 .case-study__impact-title {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  color: #ffffff;
  text-align: center;
}
.case-study-v3 .case-study__quote, .helsinki-v3 .case-study__quote {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Problem — language comparison pair (not phone frames) */
.case-study-v3 #problem .cs-media.cs-asset, .helsinki-v3 #problem .cs-media.cs-asset {
  width: 100%;
  max-width: min(var(--content-max), calc(100vw - 2 * var(--gutter)));
  margin-left: auto;
  margin-right: auto;
  transform: none;
}
.case-study-v3 #problem .cs-media__grid--current, .helsinki-v3 #problem .cs-media__grid--current {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  width: 100%;
}
/* Handoff — title leads, quote supports */
.case-study-v3 #handoff .case-study__section-title, .helsinki-v3 #handoff .case-study__section-title {
  margin-bottom: clamp(14px, 2vw, 20px);
}
.case-study-v3 #handoff .case-study__quote, .helsinki-v3 #handoff .case-study__quote {
  max-width: 100% !important;
  font-size: clamp(17px, 1.9vw, 20px) !important;
  font-weight: 500 !important;
  line-height: 1.48 !important;
  letter-spacing: -0.012em !important;
  margin: 0 auto clamp(24px, 3.5vw, 36px);
}
.case-study-v3 #handoff .case-study__quote .case-study__quote-gradient, .helsinki-v3 #handoff .case-study__quote .case-study__quote-gradient {
  display: block;
  max-width: 36ch;
  margin-inline: auto;
}
.case-study-v3 #handoff .case-study__quote span:not(.case-study__quote-gradient), .helsinki-v3 #handoff .case-study__quote span:not(.case-study__quote-gradient) {
  display: block;
  margin-top: clamp(10px, 1.4vw, 14px);
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--ink-3) !important;
  letter-spacing: 0 !important;
}
.case-study-v3 .case-study__section, .helsinki-v3 .case-study__section {
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: none !important;
}
.case-study-v3 .case-study__section--feature, .helsinki-v3 .case-study__section--feature {
  padding: clamp(48px, 7vw, 72px) 0;
  border-bottom: none !important;
}
.case-study-v3 .case-study__impact, .helsinki-v3 .case-study__impact {
  padding: clamp(36px, 5vw, 52px) clamp(28px, 3.5vw, 36px);
  margin-top: clamp(52px, 8vw, 88px);
  margin-bottom: clamp(56px, 8vw, 88px);
  box-sizing: border-box;
}
.case-study-v3 #learning.case-study__section, .helsinki-v3 #learning.case-study__section {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
}
.case-study-v3 .case-study__learning, .helsinki-v3 .case-study__learning {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  margin: 0;
}
.case-study-v3 .case-study__learning-label, .helsinki-v3 .case-study__learning-label {
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}
.case-study-v3 .case-study__learning-text, .helsinki-v3 .case-study__learning-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink-1);
  max-width: 26ch;
  text-align: center;
}
.case-study-v3 .page-footer, .helsinki-v3 .page-footer {
  display: none;
}
.case-study-v3 .cs-media, .helsinki-v3 .cs-media {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.case-study-v3 .cs-media--wide, .helsinki-v3 .cs-media--wide,
.case-study-v3 .cs-media--full, .helsinki-v3 .cs-media--full {
  margin-left: auto;
  margin-right: auto;
}
.case-study-v3 .cs-media--wide > .cs-media__inner, .helsinki-v3 .cs-media--wide > .cs-media__inner {
  max-width: 100%;
  margin-inline: auto;
}
.case-study-v3 .cs-content .cs-asset:not(.phone-grid), .helsinki-v3 .cs-content .cs-asset:not(.phone-grid),
.case-study-v3 .cs-content .cs-media, .helsinki-v3 .cs-content .cs-media,
.case-study-v3 .cs-content .phase-row, .helsinki-v3 .cs-content .phase-row,
.case-study-v3 .cs-content .service-map-figure, .helsinki-v3 .cs-content .service-map-figure {
  --cs-asset-w: min(var(--content-max), calc(100vw - 2 * var(--gutter)));
  width: 100%;
  max-width: var(--cs-asset-w);
  margin-left: auto;
  margin-right: auto;
}
.case-study-v3 .cs-content .cs-asset--wide:not(.phone-grid), .helsinki-v3 .cs-content .cs-asset--wide:not(.phone-grid),
.case-study-v3 .cs-content .cs-media.cs-asset--wide, .helsinki-v3 .cs-content .cs-media.cs-asset--wide {
  --cs-asset-w: min(var(--asset-max), calc(100vw - 2 * var(--gutter)));
  max-width: var(--cs-asset-w);
}
.case-study-v3 .cs-content .cs-asset--narrow, .helsinki-v3 .cs-content .cs-asset--narrow {
  --cs-asset-w: min(var(--content-max), calc(100vw - 2 * var(--gutter)));
  max-width: var(--cs-asset-w);
}
.case-study-v3 .cs-content .case-study__impact, .helsinki-v3 .cs-content .case-study__impact {
  --cs-asset-w: fit-content;
  width: fit-content;
  max-width: min(var(--content-max), calc(100vw - 2 * var(--gutter)));
  margin-left: auto !important;
  margin-right: auto !important;
}
.case-study-v3 .cs-media__grid--handoff, .helsinki-v3 .cs-media__grid--handoff {
  justify-content: center;
}
.case-study-v3 .cs-media__grid--current, .helsinki-v3 .cs-media__grid--current {
  justify-items: stretch;
  gap: clamp(20px, 3vw, 36px);
}
.case-study-v3 .cs-media__grid--current .cs-media__item, .helsinki-v3 .cs-media__grid--current .cs-media__item {
  align-items: center;
  width: 100%;
  max-width: none;
}
.case-study-v3 .service-map, .helsinki-v3 .service-map {
  justify-content: center;
  margin-inline: auto;
}
.case-study-v3 .cs-content .phone-grid, .helsinki-v3 .cs-content .phone-grid {
  --cs-asset-w: unset;
  width: fit-content;
  max-width: min(var(--asset-max), calc(100vw - 2 * var(--gutter)));
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}
.case-study-v3 .phone-grid, .helsinki-v3 .phone-grid {
  justify-items: center;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 20px);
}
.case-study-v3 .phone-grid:not(.phone-grid--2):not(.phone-grid--3), .helsinki-v3 .phone-grid:not(.phone-grid--2):not(.phone-grid--3) {
  grid-template-columns: repeat(4, var(--phone-col-w));
}
.case-study-v3 .phone-grid--2, .helsinki-v3 .phone-grid--2 {
  grid-template-columns: repeat(2, var(--phone-col-w));
  gap: clamp(20px, 4vw, 48px);
}
.case-study-v3 .phone-grid--3, .helsinki-v3 .phone-grid--3 {
  grid-template-columns: repeat(3, var(--phone-col-w));
  gap: clamp(16px, 3.2vw, 36px);
}
.case-study-v3 .phone-grid__cell, .helsinki-v3 .phone-grid__cell {
  align-items: center;
  width: 100%;
  overflow: visible;
}
.case-study-v3 .phone-grid .phone-frame--mini, .helsinki-v3 .phone-grid .phone-frame--mini {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 9 / 19.5;
}
.case-study-v3 .phone-grid .phone-frame--mini .phone-frame__chassis, .helsinki-v3 .phone-grid .phone-frame--mini .phone-frame__chassis {
  border-radius: var(--phone-chassis-r);
  padding: var(--phone-bezel);
}
.case-study-v3 .phone-grid .phone-frame--mini .phone-frame__screen, .helsinki-v3 .phone-grid .phone-frame--mini .phone-frame__screen {
  inset: var(--phone-bezel);
  border-radius: var(--phone-screen-r);
}
.case-study-v3 .phone-grid--2 .phone-opportunity-compare, .helsinki-v3 .phone-grid--2 .phone-opportunity-compare {
  max-width: var(--phone-col-w);
}
.case-study-v3 .phase-row, .helsinki-v3 .phase-row {
  justify-content: center;
  margin-inline: auto;
}
/* Captions below assets — index work__label style */
.case-study-v3 .phone-grid__cell > .phone-grid__caption, .helsinki-v3 .phone-grid__cell > .phone-grid__caption,
.case-study-v3 .phone-grid__cell > .phone-grid__text, .helsinki-v3 .phone-grid__cell > .phone-grid__text,
.case-study-v3 .cs-media__grid--current .phone-grid__text, .helsinki-v3 .cs-media__grid--current .phone-grid__text {
  order: unset;
}
.case-study-v3 .phone-grid__text, .helsinki-v3 .phone-grid__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
  margin: clamp(22px, 2vh, 30px) 0 0;
  text-align: center;
}
.case-study-v3 .phone-grid__caption, .helsinki-v3 .phone-grid__caption {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink-1);
  max-width: none;
  text-align: center;
}
.case-study-v3 .phone-grid__desc, .helsinki-v3 .phone-grid__desc {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
  max-width: 30ch;
  text-align: center;
}
.case-study-v3 .phone-grid__desc::before, .helsinki-v3 .phone-grid__desc::before {
  content: none;
  margin: 0;
}
.case-study-v3 #approach .phone-grid__text, .helsinki-v3 #approach .phone-grid__text,
.case-study-v3 .phone-grid--2 .phone-grid__text, .helsinki-v3 .phone-grid--2 .phone-grid__text,
.case-study-v3 .phone-grid--3 .phone-grid__text, .helsinki-v3 .phone-grid--3 .phone-grid__text,
.case-study-v3 .cs-media__grid--current .phone-grid__text, .helsinki-v3 .cs-media__grid--current .phone-grid__text {
  min-height: 0;
  margin: clamp(22px, 2vh, 30px) 0 0;
}

@media (max-width: 900px) {
  .helsinki-hero--v3mock {
    min-height: auto;
  }
  .helsinki-hero--v3mock.helsinki-hero .helsinki-hero__container {
    min-height: auto;
  }
  .helsinki-hero--v3mock .helsinki-hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "phone"
      "text";
  }
  .helsinki-hero--v3mock .helsinki-hero__media {
    max-width: min(320px, 78vw);
  }
  .helsinki-hero--v3mock .phone-frame:not(.phone-frame--landscape) {
    width: min(277px, 30vh);
    height: auto;
    aspect-ratio: 9 / 19.5;
  }
  :root {
    --prose-narrow: 100%;
    --content-max: 100%;
    --prose-wide: 100%;
    --asset-max: 100%;
  }
  .case-study-v3 .helsinki-lead__statement, .helsinki-v3 .helsinki-lead__statement {
    font-size: clamp(24px, 6.5vw, 34px);
  }
}

/* Next project — index-v3 work card */
.case-study-v3 .cs-next, .helsinki-v3 .cs-next {
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(42px, calc(12vw - 30px), 110px);
}
.case-study-v3 .cs-next .case-study__learning-label, .helsinki-v3 .cs-next .case-study__learning-label {
  margin: 0;
  text-align: center;
}
.case-study-v3 .cs-next .work__row, .helsinki-v3 .cs-next .work__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  padding: 0;
  max-width: var(--asset-max);
  margin: 0 auto;
}
.case-study-v3 .cs-next .work__card, .helsinki-v3 .cs-next .work__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: min(373px, 100%);
  aspect-ratio: 16 / 10;
  padding: clamp(15px, 2.1%, 30px) clamp(18px, 2.7%, 38px);
  padding-top: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 18, 24, 0.04), 0 6px 18px rgba(15, 18, 24, 0.06);
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: inherit;
}
.case-study-v3 .cs-next .work__card::before, .helsinki-v3 .cs-next .work__card::before,
.case-study-v3 .cs-next .work__card::after, .helsinki-v3 .cs-next .work__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}
.case-study-v3 .cs-next .work__card::after, .helsinki-v3 .cs-next .work__card::after {
  opacity: 0;
}
.case-study-v3 .cs-next .work__card:hover, .helsinki-v3 .cs-next .work__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(15, 18, 24, 0.06), 0 30px 60px -20px rgba(15, 18, 24, 0.32);
}
.case-study-v3 .cs-next .work__card:hover::after, .helsinki-v3 .cs-next .work__card:hover::after,
.case-study-v3 .cs-next .work__card.is-inview::after, .helsinki-v3 .cs-next .work__card.is-inview::after {
  opacity: 1;
}
.case-study-v3 .cs-next .work__card--run.is-inview::before, .helsinki-v3 .cs-next .work__card--run.is-inview::before {
  opacity: 0;
}
.case-study-v3 .cs-next .work__card--run::before, .helsinki-v3 .cs-next .work__card--run::before {
  background:
    radial-gradient(62% 78% at 90% -2%, rgba(147, 197, 253, 0.2) 0%, transparent 56%),
    radial-gradient(56% 72% at 2% 102%, rgba(234, 179, 8, 0.11) 0%, transparent 64%),
    linear-gradient(145deg, #f2f4f7 0%, #e8edf3 45%, #f6f8fb 100%);
}
.case-study-v3 .cs-next .work__card--run::after, .helsinki-v3 .cs-next .work__card--run::after {
  background:
    radial-gradient(62% 78% at 90% -2%, rgba(147, 197, 253, 0.95) 0%, rgba(59, 130, 246, 0.62) 28%, rgba(37, 99, 235, 0.28) 48%, transparent 68%),
    radial-gradient(56% 72% at 2% 102%, rgba(253, 224, 71, 0.62) 0%, rgba(251, 191, 36, 0.52) 26%, rgba(245, 158, 11, 0.22) 46%, transparent 76%),
    linear-gradient(135deg, #020617 0%, #0c1929 38%, #1e3a8a 72%, #172554 100%);
}
.case-study-v3 .cs-next .work__card--run:hover::before, .helsinki-v3 .cs-next .work__card--run:hover::before {
  opacity: 0;
}
.case-study-v3 .cs-next .work-watch-device, .helsinki-v3 .cs-next .work-watch-device {
  --watch-screen-left: 11.151%;
  --watch-screen-top: 21.946%;
  --watch-screen-width: 77.178%;
  --watch-screen-height: 57.081%;
  --watch-screen-radius: 19.865%;
  position: relative;
  z-index: 1;
  width: min(42%, 147px);
  margin: 0 auto;
  aspect-ratio: 1148 / 1850;
  transform: scale(0.92);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter:
    drop-shadow(0 8px 10px rgba(37, 99, 235, 0.14))
    drop-shadow(0 22px 24px rgba(30, 58, 138, 0.12));
}
.case-study-v3 .cs-next .work-watch-device__frame, .helsinki-v3 .cs-next .work-watch-device__frame {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.case-study-v3 .cs-next .work-watch-device__screen, .helsinki-v3 .cs-next .work-watch-device__screen {
  position: absolute;
  left: var(--watch-screen-left);
  top: var(--watch-screen-top);
  width: var(--watch-screen-width);
  height: var(--watch-screen-height);
  border-radius: var(--watch-screen-radius);
  overflow: hidden;
}
.case-study-v3 .cs-next .work-watch-device__screen-bg, .helsinki-v3 .cs-next .work-watch-device__screen-bg,
.case-study-v3 .cs-next .work-watch-device__screen video, .helsinki-v3 .cs-next .work-watch-device__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.case-study-v3 .cs-next .work-watch-device__screen video, .helsinki-v3 .cs-next .work-watch-device__screen video {
  z-index: 1;
}
.case-study-v3 .cs-next .work__card--run:hover .work-watch-device, .helsinki-v3 .cs-next .work__card--run:hover .work-watch-device,
.case-study-v3 .cs-next .work__card--run.is-inview .work-watch-device, .helsinki-v3 .cs-next .work__card--run.is-inview .work-watch-device {
  transform: scale(0.98);
  filter:
    drop-shadow(0 10px 12px rgba(37, 99, 235, 0.18))
    drop-shadow(0 28px 30px rgba(30, 58, 138, 0.16));
}
.case-study-v3 .cs-next .work__card-link, .helsinki-v3 .cs-next .work__card-link {
  --work-control-h: 42px;
  position: absolute;
  right: clamp(8px, 1.2vw, 12px);
  bottom: clamp(8px, 1.2vw, 12px);
  z-index: 2;
  width: var(--work-control-h);
  height: var(--work-control-h);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-1);
  pointer-events: none;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}
.case-study-v3 .cs-next .glass, .helsinki-v3 .cs-next .glass {
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 1px rgba(12, 14, 24, 0.04),
    0 8px 28px -10px rgba(12, 14, 18, 0.28);
}
.case-study-v3 .cs-next .work__card:hover .work__card-link, .helsinki-v3 .cs-next .work__card:hover .work__card-link,
.case-study-v3 .cs-next .work__card.is-inview .work__card-link, .helsinki-v3 .cs-next .work__card.is-inview .work__card-link {
  background: #fff;
  color: var(--ink-1);
  border-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 24px -8px rgba(12, 14, 18, 0.24);
}
.case-study-v3 .cs-next .work__card-link svg, .helsinki-v3 .cs-next .work__card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Next project — bus / lego / pillar card previews */
.case-study-v3 .cs-next .work__card--bus,
.helsinki-v3 .cs-next .work__card--bus,
.case-study-v3 .cs-next .work__card--pillar,
.helsinki-v3 .cs-next .work__card--pillar {
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}
.case-study-v3 .cs-next .work__card--lego,
.helsinki-v3 .cs-next .work__card--lego {
  align-items: center;
  justify-content: center;
  padding-top: clamp(15px, 2.1%, 30px);
}
.case-study-v3 .cs-next .work__helsinki-preview,
.helsinki-v3 .cs-next .work__helsinki-preview {
  --helsinki-preview-r: clamp(28px, 3vw, 40px);
  --helsinki-crop-bottom: 8px;
  --helsinki-preview-width: min(78%, 100%);
  --helsinki-object-position: center 12%;
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: var(--helsinki-preview-width);
  max-width: 100%;
  aspect-ratio: 766 / 616;
  min-height: calc(var(--helsinki-preview-width) * 616 / 766);
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
  border-radius: 0 0 var(--helsinki-preview-r) var(--helsinki-preview-r);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 10px rgba(37, 99, 235, 0.16),
    0 22px 24px rgba(30, 58, 138, 0.14);
}
.case-study-v3 .cs-next .work__card--bus:hover .work__helsinki-preview,
.helsinki-v3 .cs-next .work__card--bus:hover .work__helsinki-preview,
.case-study-v3 .cs-next .work__card--bus.is-inview .work__helsinki-preview,
.helsinki-v3 .cs-next .work__card--bus.is-inview .work__helsinki-preview {
  transform: scale(0.98);
}
.case-study-v3 .cs-next .work__helsinki-preview video,
.helsinki-v3 .cs-next .work__helsinki-preview video {
  position: absolute;
  inset: 0 0 var(--helsinki-crop-bottom) 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: var(--helsinki-object-position);
  border-radius: 0 0 var(--helsinki-preview-r) var(--helsinki-preview-r);
  box-shadow: none;
  filter: none;
}
.case-study-v3 .cs-next .work__preview-slot,
.helsinki-v3 .cs-next .work__preview-slot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(88%, 100%);
}
.case-study-v3 .cs-next .work__card--lego .work__preview-slot,
.helsinki-v3 .cs-next .work__card--lego .work__preview-slot {
  max-width: min(92%, 100%);
  width: 100%;
  aspect-ratio: 844 / 390;
  max-height: min(32vw, 240px);
  overflow: hidden;
  border-radius: clamp(17px, 1.8vw, 28px);
  position: relative;
  isolation: isolate;
}
.case-study-v3 .cs-next .work__card--lego .work__card-img--lego-rest,
.helsinki-v3 .cs-next .work__card--lego .work__card-img--lego-rest {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: inherit;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter:
    drop-shadow(0 6px 8px rgba(15, 18, 24, 0.1))
    drop-shadow(0 16px 18px rgba(15, 18, 24, 0.09));
}
.case-study-v3 .cs-next .work__card--lego .work__preview-slot video,
.helsinki-v3 .cs-next .work__card--lego .work__preview-slot video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  opacity: 0;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.14);
  transform-origin: center center;
  border-radius: inherit;
  transition:
    opacity 0.35s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
  box-shadow: none;
}
.case-study-v3 .cs-next .work__card--lego:hover .work__preview-slot video,
.helsinki-v3 .cs-next .work__card--lego:hover .work__preview-slot video,
.case-study-v3 .cs-next .work__card--lego:focus-within .work__preview-slot video,
.helsinki-v3 .cs-next .work__card--lego:focus-within .work__preview-slot video {
  opacity: 1;
  transform: scale(1.18);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 28px 56px -12px rgba(74, 24, 56, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(232, 74, 158, 0.2);
}
.case-study-v3 .cs-next .work__card--lego:hover .work__card-img--lego-rest,
.helsinki-v3 .cs-next .work__card--lego:hover .work__card-img--lego-rest,
.case-study-v3 .cs-next .work__card--lego:focus-within .work__card-img--lego-rest,
.helsinki-v3 .cs-next .work__card--lego:focus-within .work__card-img--lego-rest {
  opacity: 0;
}
.case-study-v3 .cs-next .work__card--lego:hover .work__card-img--lego-rest,
.helsinki-v3 .cs-next .work__card--lego:hover .work__card-img--lego-rest,
.case-study-v3 .cs-next .work__card--lego:focus-within .work__card-img--lego-rest,
.helsinki-v3 .cs-next .work__card--lego:focus-within .work__card-img--lego-rest {
  transform: scale(1.02);
}
.case-study-v3 .cs-next .work__card--pillar .work__card-img,
.helsinki-v3 .cs-next .work__card--pillar .work__card-img {
  transform: scale(0.88);
}
.case-study-v3 .cs-next .work__card--bus::before,
.helsinki-v3 .cs-next .work__card--bus::before {
  background:
    radial-gradient(58% 75% at 92% 0%, rgba(147, 197, 253, 0.22) 0%, transparent 56%),
    radial-gradient(50% 68% at 0% 100%, rgba(56, 189, 248, 0.14) 0%, transparent 62%),
    linear-gradient(145deg, #f2f4f7 0%, #e8edf3 42%, #f6f8fb 100%);
}
.case-study-v3 .cs-next .work__card--bus::after,
.helsinki-v3 .cs-next .work__card--bus::after {
  background:
    radial-gradient(58% 75% at 92% 0%, rgba(147, 197, 253, 0.88) 0%, rgba(59, 130, 246, 0.46) 32%, transparent 65%),
    radial-gradient(50% 68% at 0% 100%, rgba(56, 189, 248, 0.48) 0%, rgba(37, 99, 235, 0.12) 42%, transparent 72%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
}
.case-study-v3 .cs-next .work__card--lego::before,
.helsinki-v3 .cs-next .work__card--lego::before {
  background:
    radial-gradient(58% 75% at 92% 0%, rgba(232, 74, 158, 0.14) 0%, transparent 56%),
    radial-gradient(50% 68% at 0% 100%, rgba(180, 45, 120, 0.1) 0%, transparent 62%),
    linear-gradient(145deg, #faf5f8 0%, #f0e6ec 44%, #faf7f9 100%);
}
.case-study-v3 .cs-next .work__card--lego::after,
.helsinki-v3 .cs-next .work__card--lego::after {
  background:
    radial-gradient(58% 52% at 90% 6%, rgba(232, 74, 158, 0.78) 0%, rgba(180, 45, 120, 0.48) 38%, transparent 70%),
    radial-gradient(52% 60% at 8% 88%, rgba(74, 24, 56, 0.42) 0%, transparent 62%),
    linear-gradient(148deg, #4a1838 0%, #7a2458 36%, #b42d78 68%, #d93d96 100%);
}
.case-study-v3 .cs-next .work__card--pillar::before,
.helsinki-v3 .cs-next .work__card--pillar::before {
  background:
    radial-gradient(58% 75% at 92% 0%, rgba(167, 139, 250, 0.18) 0%, transparent 56%),
    radial-gradient(50% 68% at 0% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 62%),
    linear-gradient(145deg, #f2f0f7 0%, #e9e6f0 45%, #f8f7fb 100%);
}
.case-study-v3 .cs-next .work__card--pillar::after,
.helsinki-v3 .cs-next .work__card--pillar::after {
  background:
    radial-gradient(58% 75% at 92% 0%, rgba(196, 181, 254, 0.82) 0%, rgba(124, 58, 237, 0.44) 32%, transparent 65%),
    radial-gradient(50% 68% at 0% 100%, rgba(34, 211, 238, 0.44) 0%, rgba(6, 182, 212, 0.12) 40%, transparent 72%),
    linear-gradient(135deg, #4c1d95 0%, #6d28d9 48%, #312e81 100%);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Beat case-study-v17.css nav hairline + fixed 64px height */
header.nav {
  height: auto !important;
  min-height: 0;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-bottom: none !important;
  background-color: transparent !important;
}
@media (min-width: 901px) {
  .case-study-v3 .cs-toc, .helsinki-v3 .cs-toc,
  .case-study-v3.pillar-compact-toc .cs-toc, .helsinki-v3.pillar-compact-toc .cs-toc {
    position: fixed !important;
    left: calc(var(--gutter) - var(--toc-marble) - var(--toc-marble-gap)) !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: max-content !important;
    max-width: min(200px, calc(100vw - 2 * var(--gutter))) !important;
    padding: 0 !important;
  }
  .case-study-v3 .cs-toc.is-visible, .helsinki-v3 .cs-toc.is-visible {
    transform: translateY(-50%) !important;
  }
}

/* Phone frame — v3 case studies (transit parity lives under .case-study-transit) */
.page-wrapper.case-study-v3 .phone-frame__chassis {
  position: absolute;
  inset: 0;
  border-radius: clamp(40px, 3.8vw, 58px);
  background: linear-gradient(155deg, #1c1c1c 0%, #0a0a0a 28%, #040404 55%, #161616 100%);
  padding: clamp(5px, 0.5vw, 8px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.4),
    0 0 0 0.5px rgba(15, 23, 42, 0.12);
}
.page-wrapper.case-study-v3 .phone-frame__screen {
  position: absolute;
  inset: clamp(5px, 0.5vw, 8px);
  border-radius: clamp(34px, 3.3vw, 50px);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.page-wrapper.case-study-v3 .phone-frame__screen img,
.page-wrapper.case-study-v3 .phone-frame__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
}
.page-wrapper.case-study-v3 .phone-frame__island {
  display: none;
}

/* LEGO adults hero — landscape phone on v3mock */
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero {
  position: relative;
  width: 100%;
  overflow: visible;
  background: #ffffff;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--phone .helsinki-hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .lego-adults-hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 0;
  transform: none;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .lego-adults-hero__stack {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  padding-bottom: 0;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--phone .lego-adults-hero__phone.phone-frame--landscape {
  position: relative;
  z-index: 2;
  height: auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 844 / 390;
  filter:
    drop-shadow(0 4px 8px rgba(88, 28, 135, 0.1))
    drop-shadow(0 18px 36px rgba(157, 23, 77, 0.14))
    drop-shadow(0 48px 96px rgba(126, 34, 206, 0.16));
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--phone .lego-adults-hero__phone.phone-frame--landscape .phone-frame__chassis {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  transform: none !important;
  border-radius: clamp(22px, 2.4vw, 36px);
  padding: clamp(4px, 0.45vw, 7px);
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--phone .lego-adults-hero__phone.phone-frame--landscape .phone-frame__screen {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  border-radius: clamp(16px, 1.8vw, 28px);
  background: #2a0f24;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--phone .lego-adults-hero__phone.phone-frame--landscape .phone-frame__screen video {
  object-fit: cover;
  object-position: center;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--v3mock .helsinki-hero__summary {
  max-width: 52ch;
}
.page-wrapper.case-study-v3.case-theme-lego.lego-adults-page .helsinki-hero--v3mock .helsinki-hero__title {
  max-width: 28ch;
}

/* Watch hero — v3mock (Freeletics) */
.helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__media,
.case-study-v3 .helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__media,
.helsinki-v3 .helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__media {
  max-width: min(340px, 40vw);
  align-self: center;
  justify-self: center;
}
.helsinki-hero--v3mock.helsinki-hero--watch .hero-watch-frame,
.case-study-v3 .helsinki-hero--v3mock.helsinki-hero--watch .hero-watch-frame,
.helsinki-v3 .helsinki-hero--v3mock.helsinki-hero--watch .hero-watch-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(300px, 100%);
  margin: 0 auto;
  aspect-ratio: 1148 / 1850;
}
.helsinki-hero--v3mock.helsinki-hero--watch {
  min-height: calc(100svh - var(--nav-h, 44px));
  display: flex;
  align-items: center;
}
.helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__container {
  min-height: calc(100svh - var(--nav-h, 44px));
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  padding-top: clamp(20px, 3vh, 36px);
  padding-bottom: clamp(20px, 3vh, 36px);
}
.helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__inner {
  width: 100%;
}
.helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__mosaic {
  width: 114%;
  height: 128%;
}

/* ── Freeletics / watch case study on v3 layout ───────────────── */
.page-wrapper.case-study-v3.case-theme-watch {
  --cs-hero-grad: linear-gradient(135deg, #020617 0%, #1d4ed8 52%, #fbbf24 100%);
  --cs-impact-bg: linear-gradient(135deg, #020617 0%, #0f172a 42%, #172554 100%);
  --cs-impact-glow1: radial-gradient(88% 70% at 24% 12%, rgba(56, 189, 248, 0.35), transparent 58%);
  --cs-impact-glow2: radial-gradient(65% 55% at 88% 88%, rgba(251, 191, 36, 0.28), transparent 62%);
}

.page-wrapper.case-study-v3.case-theme-watch .hero-gradient {
  background: var(--cs-hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-wrapper.case-study-v3.case-theme-watch .helsinki-lead__statement {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--ink-1) !important;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-layout {
  max-width: min(856px, calc(100vw - 2 * var(--gutter))) !important;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content {
  max-width: 100%;
  width: 100%;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-prose {
  max-width: var(--content-max);
  margin-inline: auto;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content .watch-compare-scrub,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .watch-compare-flow,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .watch-compare-scrub__controls,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .solution-flow,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .reframe-graphic,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .problem-graphic,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .implementation-demo,
.page-wrapper.case-study-v3.case-theme-watch .cs-content .implementation-demo__media {
  --cs-asset-w: 100%;
  max-width: min(820px, 100%) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content .case-study__impact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  padding: clamp(44px, 5vw, 68px) clamp(32px, 4vw, 56px) !important;
  margin-top: clamp(52px, 8vw, 88px);
  margin-bottom: clamp(56px, 8vw, 88px);
  border-radius: clamp(16px, 1.6vw, 24px);
  background: var(--cs-impact-bg);
  color: #fff;
  box-sizing: border-box;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content .case-study__impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cs-impact-glow1), var(--cs-impact-glow2);
  pointer-events: none;
  z-index: 0;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content .case-study__impact > * {
  position: relative;
  z-index: 1;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content .case-study__impact-title {
  font-size: clamp(1.95rem, 4.4vw, 3.15rem) !important;
  line-height: 1.08 !important;
  max-width: 36ch;
}

.page-wrapper.case-study-v3.case-theme-watch .cs-content .case-study__impact .stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.page-wrapper.case-study-v3.case-theme-watch .helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__media {
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__media,
  .case-study-v3 .helsinki-hero--v3mock.helsinki-hero--watch .helsinki-hero__media {
    max-width: min(280px, 72vw);
  }
  .helsinki-hero--v3mock.helsinki-hero--watch .hero-watch-frame,
  .case-study-v3 .helsinki-hero--v3mock.helsinki-hero--watch .hero-watch-frame {
    max-width: min(260px, 100%);
  }
}

@media (max-width: 880px) {
  .page-wrapper.case-study-v3.case-theme-watch .cs-content .case-study__impact .stats {
    grid-template-columns: 1fr !important;
  }
}

/* Pillar hero — desktop dashboard frame, HSL-aligned text column */
.page-wrapper.case-study-v3.case-theme-pillar {
  --cs-hero-grad: linear-gradient(135deg, #24105f 0%, #6d28d9 38%, #8b3fe2 68%, #a855f7 100%);
  --cs-impact-bg: linear-gradient(135deg, #120724 0%, #2b1163 44%, #4c1d95 72%, #6d28d9 100%);
  --cs-impact-glow1: radial-gradient(90% 70% at 20% 12%, rgba(109, 40, 217, 0.46), transparent 58%);
  --cs-impact-glow2: radial-gradient(72% 58% at 88% 92%, rgba(168, 85, 247, 0.24), transparent 62%);
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .helsinki-hero__media {
  max-width: none;
  width: calc(100% + clamp(40px, 6vw, 96px) + 40px);
  margin-left: calc(-1 * clamp(40px, 6vw, 96px) - 40px);
  justify-self: start;
  align-self: center;
  min-width: 0;
  overflow: visible;
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .helsinki-hero__copy-block {
  gap: 0;
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .helsinki-hero__title {
  margin-top: clamp(10px, 1.2vh, 14px);
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  transform: none;
  filter:
    drop-shadow(0 4px 8px rgba(76, 29, 149, 0.1))
    drop-shadow(0 18px 36px rgba(76, 29, 149, 0.16))
    drop-shadow(0 48px 96px rgba(76, 29, 149, 0.18));
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame__chassis {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  border-radius: clamp(14px, 1.25vw, 22px);
  padding: clamp(4px, 0.45vw, 7px);
  background: linear-gradient(145deg, #201735 0%, #100b1d 48%, #2b1163 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(76, 29, 149, 0.14);
  transform: none !important;
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame__screen {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  border-radius: clamp(9px, 0.75vw, 14px);
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(12, 14, 18, 0.08);
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame__screen img,
.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame__island {
  display: none;
}

@media (max-width: 900px) {
  .page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .helsinki-hero__media {
    width: 100%;
    margin-left: 0;
  }
  .page-wrapper.case-study-v3.case-theme-pillar .helsinki-hero--v3mock .phone-frame {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
    margin-left: 0;
  }
}
