/* Long-form case study pages — load after tokens.css + layout.css + home.css */

/* Canvas: grey above hero, white after prose begins (class toggled via case-study.js) */
html:has(body.case-study-page),
body.layout.case-study-page {
  transition: background-color 0.45s ease;
}

html.case-study-page--body-white {
  background-color: var(--color-white);
}

body.layout.case-study-page.case-study-page--body-white {
  background: var(--color-white);
}

html.case-study-page--body-white .site-header,
html.case-study-page--body-white .site-footer {
  background: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.case-study-page),
  body.layout.case-study-page {
    transition: none;
  }
}

.case-study-page .layout__main {
  padding-block: 2rem 4rem;
}

@media (min-width: 768px) {
  .case-study-page .layout__main {
    padding-block: 3rem 5rem;
  }
}

.case-study {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* 1200px shell: header + hero span full width; body copy in 720px column */
.case-study--shell {
  max-width: min(100%, var(--layout-case-study-shell));
  margin-inline: auto;
  width: 100%;
  container-type: inline-size;
  container-name: case-study;
}

/* Reading column inside 1200 shell — keep scoped to shell so it always wins */
.case-study.case-study--shell .case-study__prose {
  max-width: min(100%, var(--layout-case-study-prose, 720px));
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Top edge of prose column — scroll + IntersectionObserver target */
.case-study.case-study--shell .case-study__scroll-sentinel {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Optional: break a figure/compare out to shell width (1200 max) — add class --wide */
.case-study__prose .case-study__figure--wide,
.case-study__prose .case-study__compare--wide,
.case-study__prose .case-study__key-features--wide {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--layout-case-study-shell), 100cqw);
  max-width: min(var(--layout-case-study-shell), 100cqw);
  box-sizing: border-box;
}

@supports not (width: 1cqw) {
  .case-study__prose .case-study__figure--wide,
  .case-study__prose .case-study__compare--wide,
  .case-study__prose .case-study__key-features--wide {
    width: min(var(--layout-case-study-shell), 100%);
    left: 0;
    transform: none;
  }
}

/*
 * Reading column (720) — pair to --wide. Figures inside .case-study__prose without --wide
 * already fill the prose column; add --prose when you want the cap explicit or for docs.
 */
.case-study__figure--prose {
  width: 100%;
  max-width: var(--layout-case-study-prose, 720px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.case-study__figure--prose img,
.case-study__figure--prose video {
  max-width: 100%;
  height: auto;
}

.case-study__img--prose {
  display: block;
  width: 100%;
  max-width: var(--layout-case-study-prose, 720px);
  height: auto;
  margin: 1.5rem auto 0;
  border-radius: 16px;
  box-sizing: border-box;
}

/* Key features — Figma: 1200px shell, row 1 image|text, row 2 text|image, alternating */
.case-study__key-features {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 1.5rem;
}

.case-study__key-feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

@media (max-width: 719px) {
  /* Between feature rows — scale up vs desktop to balance tighter copy↔image gap */
  .case-study__key-features {
    gap: calc(clamp(2rem, 4vw, 3.5rem) * 3 / 2);
  }

  .case-study__key-feature-row {
    grid-template-columns: 1fr;
    /* Copy↔image: 1.5× prior mobile gap (was ⅔ of clamp) + extra on figure */
    gap: calc(clamp(1.5rem, 3vw, 2.5rem) * 2 / 3 * 1.5);
  }

  /* Text above image on narrow viewports (DOM may alternate for desktop) */
  .case-study__key-feature-copy {
    order: 1;
    padding-right: 0;
  }

  .case-study__key-feature-figure {
    order: 2;
    margin-top: calc(8px * 1.5);
  }
}

.case-study__key-feature-figure {
  margin: 0;
  min-width: 0;
}

.case-study__key-feature-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.case-study__key-feature-copy {
  min-width: 0;
  padding-right: 32px;
}

.case-study__key-feature-copy h3 {
  margin: 0 0 0.6rem;
  font-family: var(--text-h3-family);
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  color: var(--color-black);
}

.case-study__key-feature-copy > p {
  margin: 0;
  line-height: var(--text-prose-line-height);
}

.case-study__key-feature-copy > ul {
  margin: 0;
  padding-left: 1.25rem;
}

.case-study__key-feature-copy > ul > li {
  margin-bottom: 0.5rem;
  line-height: var(--text-prose-line-height);
}

.case-study__key-feature-copy > ul > li:last-child {
  margin-bottom: 0;
}

/* Case study page header — Figma Section 1 (node 11:75) */
.case-study__page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 80px 4px;
  box-sizing: border-box;
  width: 100%;
}

.case-study__page-title {
  margin: 0;
  font-family: var(--text-h1-family);
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-letter-spacing);
  color: var(--color-black);
  text-wrap: balance;
}

.case-study__page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding-top: 32px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.case-study__page-meta-primary {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding-right: 48px;
  box-sizing: border-box;
}

.case-study__page-meta-secondary {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  min-width: 0;
}

.case-study__page-meta-col {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.case-study__page-label {
  margin: 0;
  width: 100%;
  color: var(--color-grey-700);
  /* Tight line box so flex gap: 4px reads as 4px below the label (not + extra from 24px lh) */
  line-height: 1.2;
}

.case-study__page-value {
  margin: 0;
  width: 100%;
  color: var(--color-black);
}

/* Beat .case-study p { margin-bottom: 1rem } so label→value spacing is only the flex gap (4px) */
.case-study__page-head p.case-study__page-label,
.case-study__page-head p.case-study__page-value {
  margin: 0;
}

.case-study__page-value--links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.case-study__page-value--links a:hover {
  opacity: 0.72;
}

/*
 * Case study hero meta (Company / Timeline / …): stack on tablet + mobile.
 * flex-grow on children was stretching rows apart; keep 24px gaps only.
 */
@media (max-width: 1023px) {
  .case-study__page-head {
    padding: 48px 0;
  }

  .case-study__page-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    row-gap: 24px;
    column-gap: 24px;
    padding-top: 24px;
  }

  .case-study__page-meta-primary,
  .case-study__page-meta-secondary {
    flex: 0 1 auto;
    min-height: 0;
    max-width: 100%;
  }

  .case-study__page-meta-primary {
    padding-right: 0;
  }

  .case-study__page-meta-secondary {
    flex-direction: column;
    gap: 24px;
    row-gap: 24px;
    column-gap: 24px;
    width: 100%;
  }

  .case-study__page-meta-col {
    flex: 0 1 auto;
    min-height: 0;
    max-width: 100%;
  }
}

.case-study__hero-img {
  margin: 0 0 2.5rem;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 2400 / 1200;
  background: var(--color-white);
  width: 100%;
}

.case-study__hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study__title {
  margin: 0 0 0.75rem;
  font-family: var(--text-h1-family);
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-letter-spacing);
  text-wrap: balance;
}

.case-study__lead {
  margin: 0 0 2.5rem;
  font-family: var(--text-h1-family);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-grey-700);
}

.case-study__section {
  margin-bottom: 2.75rem;
}

.case-study__section:last-of-type {
  margin-bottom: 0;
}

.case-study h2 {
  margin: 64px 0 1rem;
  font-family: var(--text-h2-family);
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

.case-study h2.case-study__h2--center {
  text-align: center;
  text-wrap: balance;
}

.case-study__h2--center + .case-study__key-features--wide {
  margin-top: calc(36px * 1.5);
}

/* Mobile: match home page section rhythm (2/3 of desktop vertical spacing) */
@media (max-width: 767px) {
  .case-study-page .layout__main {
    padding-block: calc(2rem * 2 / 3) calc(4rem * 2 / 3);
  }

  .case-study__hero-img {
    margin-bottom: calc(2.5rem * 2 / 3);
  }

  /* Raiffeisen: tighter space below hero (60% of mobile margin above) */
  .case-study-page--raiffeisen .case-study__hero-img {
    margin-bottom: calc(2.5rem * 2 / 3 * 60 / 100);
  }

  .case-study__section {
    margin-bottom: calc(2.75rem * 2 / 3);
  }

  /* Heading scale: h1 27px like home; h2 24px / 30px lh on mobile */
  .case-study__page-title,
  .case-study__title {
    font-size: 27px;
    line-height: 1.2;
  }

  .case-study h2 {
    margin: calc(64px * 2 / 3) 0 1rem;
    font-size: 24px;
    line-height: 30px;
  }

  .case-study h2.case-study__h2--center {
    text-align: left;
  }

  .case-study__h2--center + .case-study__key-features--wide {
    margin-top: calc(36px * 1.5 * 2 / 3);
  }

}

/* In-section h3 — same scale as Portfolio/H3 (tokens.css); was formerly 16px body-sized */
.case-study__subhead {
  margin: 1.9rem 0 0.6rem;
  font-family: var(--text-h3-family);
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  color: var(--color-black);
}

.case-study__page-head p.case-study__page-label--spaced {
  margin-top: 1rem;
}

.case-study__pullquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--color-grey-400);
}

.case-study p {
  margin: 0 0 1rem;
  line-height: var(--text-prose-line-height);
}

.case-study p:last-child {
  margin-bottom: 0;
}

/* Body 1 + black — beats .case-study p line-height/margins for usability quotes */
.case-study .case-study__pullquote p {
  margin: 0;
  font-family: var(--text-body-1-family);
  font-size: var(--text-body-1-size);
  font-weight: var(--text-body-1-weight);
  line-height: var(--text-body-1-line-height);
  letter-spacing: var(--text-body-1-letter-spacing);
  font-style: normal;
  color: var(--color-black);
}

.case-study ul {
  margin: 0 0 8px;
  padding-left: 1.25rem;
}

.case-study li {
  margin-bottom: 0.5rem;
  line-height: var(--text-prose-line-height);
}

.case-study li:last-child {
  margin-bottom: 0;
}

.case-study__meta-block {
  margin-bottom: 1.5rem;
}

.case-study__meta-block:last-child {
  margin-bottom: 0;
}

.case-study__meta-label {
  margin: 0 0 0.35rem;
  font-size: var(--text-body-1-size);
  font-weight: 600;
  font-family: var(--text-body-1-family);
}

.case-study__meta-text {
  margin: 0;
  line-height: var(--text-prose-line-height);
  color: var(--color-black);
}

.case-study__team {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study__team li {
  margin-bottom: 0.35rem;
  line-height: var(--text-prose-line-height);
}

.case-study__team li:last-child {
  margin-bottom: 0;
}

.case-study__press {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-study__press a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.case-study__press a:hover {
  opacity: 0.72;
}

.case-study__results-highlight {
  font-weight: 600;
}

.case-study__pager {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-grey-400);
}

.case-study__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--text-body-1-family);
  font-size: var(--text-body-1-size);
  font-weight: 500;
}

.case-study__back:hover {
  text-decoration: none;
  opacity: 0.72;
}

.case-study__back svg {
  flex-shrink: 0;
  color: var(--color-icon-muted);
}

.case-study strong {
  font-weight: 600;
}

.case-study__figure {
  margin: 1.5rem 0 0;
}

.case-study__figure:first-child {
  margin-top: 0;
}

.case-study__figure.case-study__figure--wide {
  margin-top: calc(48px * 2 / 3);
  margin-bottom: calc(48px * 2 / 3);
}

.case-study__figure img,
.case-study__figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.case-study__figure-caption {
  margin: 0 0 0.5rem;
  font-family: var(--text-body-1-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-grey-700);
}

.case-study__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 60px; /* 40px base + 20px above Before/After blocks */
  width: 100%;
}

@media (min-width: 640px) {
  .case-study__compare:not(.case-study__compare--stack) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }
}

.case-study__compare .case-study__figure {
  margin: 0;
}

.case-study__compare .case-study__figure-caption {
  text-align: center;
  width: 100%;
}

/* Single-column compare: extra space above “After” label */
@media (max-width: 639px) {
  .case-study__compare:not(.case-study__compare--catalog-pair-rows)
    > .case-study__figure:nth-of-type(2)
    > .case-study__figure-caption {
    margin: 8px 0 0.5rem;
  }

  .case-study__compare--catalog-pair-rows .case-study__compare-pair-rows__label--after {
    margin: 8px 0 0.5rem;
  }
}

/* Payment: 1200px breakout, two equal columns (~600px + ~600px), no gutter */
.case-study__compare.case-study__compare--payment {
  gap: 0;
}

@media (min-width: 640px) {
  .case-study__compare.case-study__compare--payment:not(.case-study__compare--stack) {
    gap: 0;
    align-items: start;
  }
}

/* Catalog of funds: same 1200px grid, white gutter between before/after (wireframe) */
.case-study__compare.case-study__compare--catalog {
  gap: 1rem;
}

@media (min-width: 640px) {
  .case-study__compare.case-study__compare--catalog:not(.case-study__compare--stack) {
    align-items: stretch;
  }
}

.case-study__compare.case-study__compare--payment .case-study__figure,
.case-study__compare.case-study__compare--catalog .case-study__figure {
  min-width: 0;
}

.case-study__compare.case-study__compare--payment .case-study__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  box-shadow: none;
  border-radius: 16px;
  max-height: none;
}

.case-study__compare.case-study__compare--catalog .case-study__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  box-shadow: none;
  border-radius: 16px;
  max-height: none;
}

/*
 * Catalogue Before/After pair (--catalog-pair-rows): matches Webflow 1200×600 row — 700 + 500 cols,
 * same 600px image height. Grid 7fr / 5fr inside max 1200 shell (not equal 50/50 columns).
 */
.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows:not(
    .case-study__compare--stack
  ) {
  column-gap: 0;
  row-gap: 0.5rem;
}

.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
  .case-study__compare-pair-rows__figure--before,
.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
  .case-study__compare-pair-rows__figure--after {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 600px;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
}

.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
  .case-study__compare-pair-rows__figure--before
  img,
.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
  .case-study__compare-pair-rows__figure--after
  img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: contain;
  object-position: center center;
  border-radius: 16px;
  box-shadow: none;
}

.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
  .case-study__compare-pair-rows__figure--before
  video.case-study__video,
.case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
  .case-study__compare-pair-rows__figure--after
  video.case-study__video {
  display: block;
  width: 100%;
  height: 600px;
  box-sizing: border-box;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-grey-00);
  box-shadow: none;
}

/* Stacked mobile: same image treatment as payment Before/After (hug aspect, no 600px letterbox) */
@media (max-width: 639px) {
  .case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
    .case-study__compare-pair-rows__figure--before,
  .case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
    .case-study__compare-pair-rows__figure--after {
    display: block;
    height: auto;
    align-items: unset;
    justify-content: unset;
  }

  .case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
    .case-study__compare-pair-rows__figure--before
    img,
  .case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows
    .case-study__compare-pair-rows__figure--after
    img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }
}

@media (min-width: 640px) {
  /*
   * Grid (not flex) so media row gets a real height: flex + flex-basis 0 + min-height 0 on <img>
   * collapsed tall / mixed img+video compares. Caption row + minmax(0,1fr) matches row height.
   */
  .case-study__compare.case-study__compare--catalog:not(
      .case-study__compare--stack
    ):not(.case-study__compare--catalog-pair-rows)
    .case-study__figure {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
  }

  .case-study__compare.case-study__compare--catalog:not(
      .case-study__compare--stack
    ):not(.case-study__compare--catalog-pair-rows)
    .case-study__figure
    img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
  }

  /*
   * Img+img catalogue pair: 700 + 500 at 1200 shell (7:5), ~600px row.
   * Do not set width/max-width here — would override .case-study__prose .case-study__compare--wide
   * and trap the block in the 720px prose column; --wide supplies min(1200px, 100cqw).
   */
  .case-study__compare.case-study__compare--catalog.case-study__compare--catalog-pair-rows:not(
      .case-study__compare--stack
    ) {
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto 600px;
    align-items: stretch;
    column-gap: 0;
    row-gap: 0.5rem;
  }

  .case-study__compare--catalog-pair-rows .case-study__compare-pair-rows__label--before {
    grid-column: 1;
    grid-row: 1;
  }

  .case-study__compare--catalog-pair-rows .case-study__compare-pair-rows__label--after {
    grid-column: 2;
    grid-row: 1;
  }

  .case-study__compare--catalog-pair-rows .case-study__compare-pair-rows__figure--before {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    min-width: 0;
  }

  .case-study__compare--catalog-pair-rows .case-study__compare-pair-rows__figure--after {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    min-width: 0;
  }
}

/* Videos in compare rows: light matte on the video only (not behind Before/After captions) */
.case-study__compare.case-study__compare--payment .case-study__figure video.case-study__video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
  max-height: none;
  background: var(--color-grey-00);
}

.case-study__compare.case-study__compare--catalog:not(.case-study__compare--catalog-pair-rows)
  .case-study__figure
  video.case-study__video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
  max-height: none;
  background: var(--color-grey-00);
}

/* Stacked catalog compares: show full video frame (no forced 9:16 + cover crop) */
@media (max-width: 639px) {
  .case-study__compare.case-study__compare--catalog:not(.case-study__compare--catalog-pair-rows)
    .case-study__figure
    video.case-study__video {
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (min-width: 640px) {
  .case-study__compare.case-study__compare--catalog:not(.case-study__compare--stack):not(
      .case-study__compare--catalog-pair-rows
    )
    .case-study__figure
    video.case-study__video {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }
}

/* Catalog-style compare: full shell width (with --wide), stacked, matching frame sizes */
.case-study__compare.case-study__compare--stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.case-study__compare.case-study__compare--stack .case-study__figure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.case-study__compare.case-study__compare--stack .case-study__figure img {
  width: 100%;
  aspect-ratio: 1200 / 680;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background: var(--color-grey-00);
  border-radius: 16px;
  box-shadow: none;
}

.case-study__compare.case-study__compare--stack .case-study__figure video.case-study__video {
  width: 100%;
  aspect-ratio: 1200 / 680;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  background: var(--color-grey-00);
  border-radius: 16px;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .case-study__compare.case-study__compare--stack .case-study__figure video.case-study__video {
    max-height: none;
  }
}

.case-study__stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
  width: 100%;
}

.case-study__stack .case-study__figure {
  margin: 0;
}

.case-study__video {
  width: 100%;
  max-height: 70vh;
  /* Light matte: letterboxing reads softer than black; native controls stay dark */
  background: var(--color-grey-00);
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .case-study__video {
    max-height: none;
  }
}
